- 111
- 4
- Версия MoonLoader
- .026-beta
как исправить?
Lua:
imgui.OnInitialize(function()
blue_theme()
imagestart = imgui.CreateTextureFromFile(getGameDirectory() .. "\\moonloader\\D-Shool_Helper\\DrivingShoolMenuStart.jpg")
end)
local newFrame = imgui.OnFrame(
function() return Menu_Script[0] end,
function(self)
local resX, resY = getScreenResolution()
local sizeX, sizeY = 600, 600
imgui.SetNextWindowPos(imgui.ImVec2(resX / 2, resY / 2), imgui.Cond.FirstUseEver, imgui.ImVec2(0.5, 0.5))
imgui.SetNextWindowSize(imgui.ImVec2(sizeX, sizeY), imgui.Cond.FirstUseEver)
imgui.Begin('Main Window', Menu_Script)
imgui.Text("Text")
if imgui.IsItemHovered() then
imgui.BeginTooltip()
imgui.Image(imagestart, imgui.ImVec2(150,300))
imgui.EndTooltip()
end
imgui.End()
end
)