Version 2.2 - retro layout + bug fixes

This commit is contained in:
OTCv8
2020-03-31 21:34:09 +02:00
parent 1df9b82846
commit 6b39f061ae
189 changed files with 3384 additions and 4603 deletions

View File

@@ -34,7 +34,6 @@ inventoryWindow = nil
inventoryPanel = nil
inventoryButton = nil
purseButton = nil
marketButton = nil
combatControlsWindow = nil
fightOffensiveBox = nil
@@ -76,13 +75,6 @@ function init()
end
end
marketButton = inventoryWindow:recursiveGetChildById('marketButton')
marketButton.onClick = function()
if modules.game_shop then
modules.game_shop.toggle()
end
end
-- controls
fightOffensiveBox = inventoryWindow:recursiveGetChildById('fightOffensiveBox')
fightBalancedBox = inventoryWindow:recursiveGetChildById('fightBalancedBox')
@@ -211,7 +203,6 @@ function refresh()
end
purseButton:setVisible(g_game.getFeature(GamePurseSlot))
marketButton:setVisible(g_game.getFeature(GameIngameStore))
end
function toggle()
@@ -281,9 +272,9 @@ function update()
safeFightButton:setChecked(not safeFight)
if buttonPvp then
if safeFight then
buttonPvp:setColor("#00BB00FF")
buttonPvp:setOn(false)
else
buttonPvp:setColor("#FF0000FF")
buttonPvp:setOn(true)
end
end
@@ -384,9 +375,9 @@ function onSetSafeFight(self, checked)
g_game.setSafeFight(not checked)
if buttonPvp then
if not checked then
buttonPvp:setColor("#00BB00FF")
buttonPvp:setOn(false)
else
buttonPvp:setColor("#FF0000FF")
buttonPvp:setOn(true)
end
end
end