открытие настроек

chapo

Глава фан клуба Джона Кристо
Автор темы
Проверенный
4,433
3,189
Версия MoonLoader
.026-beta
как открыть настройки игры? Способ открытия карты я нашел, а вот настроек - нет.
Lua:
function menuOpen(list)
    if list == 'MAP' then
        local reduceZoom = settings_window.map_zoomout.v
        lua_thread.create(function()
            local menuPtr = 0x00BA6748
            while true do
                wait(20)
                if isPlayerPlaying(playerHandle) then
                    if PAUSE_MAP_OPENED then
                        writeMemory(menuPtr + 0x33, 1, 1, false) -- activate menu
                        -- wait for a next frame
                        wait(0)
                        writeMemory(menuPtr + 0x15C, 1, 1, false) -- textures loaded
                        writeMemory(menuPtr + 0x15D, 1, 5, false) -- current menu
                        if reduceZoom then
                            writeMemory(menuPtr + 0x64, 4, representFloatAsInt(300.0), false)
                        end
                        while PAUSE_MAP_OPENED do
                            wait(80)
                        end
                        writeMemory(menuPtr + 0x32, 1, 1, false) -- close menu
                    end
                end
            end
        end)
    elseif list == 'SETTINGS' then
        --???
    end
end

Нашел:
Lua:
--==[OPEN GAME MENU]==--
function menuOpenMap()
    local reduceZoom = settings_window.map_zoomout.v
    lua_thread.create(function()
        local menuPtr = 0x00BA6748
        while true do
            wait(20)
            if isPlayerPlaying(playerHandle) then
                if PAUSE_MAP_OPENED then
                    writeMemory(menuPtr + 0x33, 1, 1, false) -- activate menu
                    -- wait for a next frame
                    wait(0)
                    writeMemory(menuPtr + 0x15C, 1, 1, false) -- textures loaded
                    writeMemory(menuPtr + 0x15D, 1, 5, false) -- current menu
                    if reduceZoom then
                        writeMemory(menuPtr + 0x64, 4, representFloatAsInt(300.0), false)
                    end
                    while PAUSE_MAP_OPENED do
                        wait(80)
                    end
                    writeMemory(menuPtr + 0x32, 1, 1, false) -- close menu
                end
            end
        end
    end)
end

function menuOpenSettings()
    lua_thread.create(function()
        local menuPtr = 0x00BA6748
        while true do
            wait(20)
            if isPlayerPlaying(playerHandle) then
                if PAUSE_SETTINGS_OPENED then
                    writeMemory(menuPtr + 0x33, 1, 1, false) -- activate menu
                    -- wait for a next frame
                    wait(0)
                    writeMemory(menuPtr + 0x15C, 1, 1, false) -- textures loaded
                    writeMemory(menuPtr + 0x15D, 1, 33, false) -- current menu
                    while PAUSE_SETTINGS_OPENED do
                        wait(80)
                    end
                    writeMemory(menuPtr + 0x32, 1, 1, false) -- close menu
                end
            end
        end
    end)
end
 
Последнее редактирование: