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
|
||||
|
||||
--[[
|
||||
|
Reference in New Issue
Block a user