mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-20 14:43:27 +02:00
Version 2.2 - retro layout + bug fixes
This commit is contained in:
@@ -553,9 +553,9 @@ function createThingMenu(menuPosition, lookThing, useThing, creatureThing)
|
||||
if g_game.getFeature(GameBot) and useThing and useThing:isItem() then
|
||||
menu:addSeparator()
|
||||
if useThing:getSubType() > 1 then
|
||||
menu:addOption("ID: " .. useThing:getId() .. " SubType: " .. useThing:getSubType())
|
||||
menu:addOption("ID: " .. useThing:getId() .. " SubType: " .. useThing:getSubType(), function() end)
|
||||
else
|
||||
menu:addOption("ID: " .. useThing:getId())
|
||||
menu:addOption("ID: " .. useThing:getId(), function() end)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -877,7 +877,9 @@ function refreshViewMode()
|
||||
|
||||
if classic then
|
||||
g_game.changeMapAwareRange(19, 15)
|
||||
gameRootPanel:addAnchor(AnchorTop, 'topMenu', AnchorBottom)
|
||||
if not modules.client_topmenu.getTopMenu().hideIngame then
|
||||
gameRootPanel:addAnchor(AnchorTop, 'topMenu', AnchorBottom)
|
||||
end
|
||||
gameMapPanel:addAnchor(AnchorLeft, 'gameLeftPanels', AnchorRight)
|
||||
gameMapPanel:addAnchor(AnchorRight, 'gameRightPanels', AnchorLeft)
|
||||
gameMapPanel:addAnchor(AnchorBottom, 'gameBottomPanel', AnchorTop)
|
||||
@@ -943,6 +945,9 @@ function updateSize()
|
||||
maxWidth = tileSize * (awareRange.width - 1)
|
||||
end
|
||||
gameMapPanel:setMarginTop(-tileSize)
|
||||
if modules.game_stats then
|
||||
modules.game_stats.ui:setMarginTop(tileSize)
|
||||
end
|
||||
if g_settings.getBoolean("cacheMap") then
|
||||
gameMapPanel:setMarginLeft(0)
|
||||
gameMapPanel:setMarginRight(0)
|
||||
@@ -958,7 +963,11 @@ function updateSize()
|
||||
child.onGeometryChange(child)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
else
|
||||
if modules.game_stats then
|
||||
modules.game_stats.ui:setMarginTop(0)
|
||||
end
|
||||
end
|
||||
|
||||
--[[
|
||||
|
@@ -23,7 +23,6 @@ GameMapPanel < UIGameMap
|
||||
UIWidget
|
||||
id: gameRootPanel
|
||||
anchors.fill: parent
|
||||
anchors.top: topMenu.bottom
|
||||
|
||||
GameMapPanel
|
||||
id: gameMapPanel
|
||||
@@ -77,4 +76,3 @@ UIWidget
|
||||
id: mouseGrabber
|
||||
focusable: false
|
||||
visible: false
|
||||
|
||||
|
@@ -6,6 +6,7 @@ Module
|
||||
sandboxed: true
|
||||
scripts: [ widgets/uigamemap, gameinterface ]
|
||||
load-later:
|
||||
- game_buttons
|
||||
- game_hotkeys
|
||||
- game_questlog
|
||||
- game_textmessage
|
||||
@@ -37,6 +38,7 @@ Module
|
||||
- game_actionbar
|
||||
- game_prey
|
||||
- game_imbuing
|
||||
- game_stats
|
||||
- game_bot
|
||||
@onLoad: init()
|
||||
@onUnload: terminate()
|
||||
|
Reference in New Issue
Block a user