Version 1.3 - auto reconnect, better bot (with sound), animated mounts, bug fixes

This commit is contained in:
OTCv8
2019-11-11 17:10:03 +01:00
parent d78af570ea
commit 1072671986
48 changed files with 458 additions and 154 deletions

View File

@@ -34,6 +34,7 @@ inventoryWindow = nil
inventoryPanel = nil
inventoryButton = nil
purseButton = nil
marketButton = nil
combatControlsWindow = nil
fightOffensiveBox = nil
@@ -66,8 +67,9 @@ function init()
inventoryButton = modules.client_topmenu.addRightGameToggleButton('inventoryButton', tr('Inventory') .. ' (Ctrl+I)', '/images/topbuttons/inventory', toggle)
inventoryButton:setOn(true)
end
--[[
purseButton = inventoryPanel:getChildById('purseButton')
purseButton = inventoryWindow:recursiveGetChildById('purseButton')
marketButton = inventoryWindow:recursiveGetChildById('marketButton')
local function purseFunction()
local purse = g_game.getLocalPlayer():getInventoryItem(InventorySlotPurse)
if purse then
@@ -75,8 +77,8 @@ function init()
end
end
purseButton.onClick = purseFunction
]]--
-- controls
-- controls
fightOffensiveBox = inventoryWindow:recursiveGetChildById('fightOffensiveBox')
fightBalancedBox = inventoryWindow:recursiveGetChildById('fightBalancedBox')
fightDefensiveBox = inventoryWindow:recursiveGetChildById('fightDefensiveBox')
@@ -203,7 +205,8 @@ function refresh()
onStatesChange(player, player:getStates(), 0)
end
--purseButton:setVisible(g_game.getFeature(GamePurseSlot))
purseButton:setVisible(g_game.getFeature(GamePurseSlot))
marketButton:setVisible(g_game.getFeature(GamePurseSlot))
end
function toggle()

View File

@@ -72,14 +72,20 @@ AmmoSlot < InventoryItem
$on:
image-source: /images/game/slots/ammo-blessed
PurseButton < Button
PurseButton < UIButton
id: purseButton
size: 26 26
size: 24 24
!tooltip: tr('Open purse')
icon-source: /images/game/slots/purse
icon-size: 24 24
icon-offset: 1 1
MarketButton < UIButton
id: marketButton
size: 24 24
!tooltip: tr('Open Market')
icon-source: /images/game/slots/coins
icon-size: 24 24
CombatBox < UICheckBox
size: 20 20
image-clip: 0 0 20 20
@@ -91,7 +97,8 @@ CombatBox < UICheckBox
InventoryButton < Button
font: verdana-11px-antialised
height: 20
height: 18
margin-top: 1
SoulCapLabel < GameLabel
text-align: center
@@ -124,6 +131,7 @@ MiniWindow
height: 200
@onClose: modules.game_inventory.onMiniWindowClose()
&save: true
&autoOpen: 3
--&forceOpen: true
MiniWindowContents
@@ -254,6 +262,7 @@ MiniWindow
anchors.top: parent.top
Panel
id: buttonsPanel
margin-top: 4
margin-right: 5
anchors.fill: parent
@@ -265,10 +274,6 @@ MiniWindow
!text: tr('Stop')
@onClick: g_game.stop(); g_game.cancelAttackAndFollow()
InventoryButton
!text: tr('Quests')
@onClick: g_game.requestQuestLog()
InventoryButton
!text: tr('Options')
@onClick: modules.client_options.toggle()
@@ -280,3 +285,15 @@ MiniWindow
InventoryButton
!text: tr('Logout')
@onClick: modules.game_interface.tryLogout()
MarketButton
anchors.left: buttonsPanel.left
anchors.bottom: buttonsPanel.bottom
margin-bottom: 3
margin-left: 3
PurseButton
anchors.right: buttonsPanel.right
anchors.bottom: buttonsPanel.bottom
margin-bottom: 3
margin-right: 2