mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-21 15:13:26 +02:00
Version 2.2 - retro layout + bug fixes
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user