Skip to content

Commit

Permalink
fix: multiple errors produced in #621 (#712)
Browse files Browse the repository at this point in the history
* fix: missing font [1]

* fix: Error console [2]

* fix: impossible to click checkbox [3]

* fix: crash (patch solution) [4]

* cleaning: remove incessant print [5]

* Fix: isEnabledWASD was only updated on login

* fix: Panels/widgets not saving positions #703

* fix: No websocket
  • Loading branch information
kokekanon authored Mar 2, 2024
1 parent d0d708c commit 64338a5
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 11 deletions.
7 changes: 7 additions & 0 deletions data/fonts/small-9px.otfont
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Font
name: small-9px
texture: small-9px
height: 9
glyph-size: 9 9
space-width: 3
spacing: 1 0
Binary file added data/fonts/small-9px.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion mods/game_bot/default_configs/vBot_4.8/_Loader.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ local luaFiles = {
"extras",
"cavebot",
"playerlist",
"BotServer",
--"BotServer", --currently 02/03/24 No websocket
"alarms",
"Conditions",
"Equipper",
Expand Down
2 changes: 1 addition & 1 deletion mods/game_bot/default_configs/vBot_4.8/vBot/extras.lua
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ if true then
guild = guild:sub(1, 10) -- change to proper (last) values
guild = guild .. "..."
end
local voc
local voc = "?"
if text:lower():find("sorcerer") then
voc = "MS"
elseif text:lower():find("druid") then
Expand Down
6 changes: 3 additions & 3 deletions mods/game_bot/default_configs/vBot_4.8/vBot/new_healer.otui
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ PriorityEntry < ToolTipLabel
tooltip: Decrease Priority

TargetSettings < Panel
size: 280 125
size: 280 135
padding: 3
image-source: /images/ui/window
image-border: 6
Expand All @@ -131,7 +131,7 @@ TargetSettings < Panel
anchors.verticalCenter: prev.verticalCenter

Groups < FlatPanel
size: 150 90
size: 150 105
padding: 3
padding-top: 5

Expand Down Expand Up @@ -176,7 +176,7 @@ Groups < FlatPanel
text: BotServer Members

Vocations < FlatPanel
size: 100 90
size: 100 105
padding: 3
padding-top: 5

Expand Down
3 changes: 2 additions & 1 deletion mods/game_bot/default_configs/vBot_4.8/vBot/playerlist.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ local function clearCachedPlayers()
end

local refreshStatus = function()
if g_game.getLocalPlayer():getHealthPercent() <= 0 then return end
for _, spec in ipairs(getSpectators()) do
if spec:isPlayer() and not spec:isLocalPlayer() then
if config.outfits then
Expand Down Expand Up @@ -86,7 +87,7 @@ end
refreshStatus()

local checkStatus = function(creature)
if not creature:isPlayer() or creature:isLocalPlayer() then return end
if not creature:isPlayer() or creature:isLocalPlayer() or g_game.getLocalPlayer():getHealthPercent() <= 0 then return end

local specName = creature:getName()
local specOutfit = creature:getOutfit()
Expand Down
2 changes: 0 additions & 2 deletions modules/corelib/ui/uiminiwindow.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ function UIMiniWindow:open(dontSave)
self:setSettings({ closed = false })
end

self:raise()

if self:getParent() then
self:getParent():saveChildren()
end
Expand Down
1 change: 0 additions & 1 deletion modules/corelib/ui/uiminiwindowcontainer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ function UIMiniWindowContainer:fitAll(noRemoveChild)

-- close widgets
for i = 1, #removeChildren do
print(removeChildren[i]:getId())
if removeChildren[i].forceOpen then
removeChildren[i]:minimize(true)
else
Expand Down
3 changes: 1 addition & 2 deletions modules/game_console/console.lua
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,7 @@ function load()
end

function isEnabledWASD()
local settings = g_settings.getNode('game_console')
return settings.wasdMode
return consoleToggleChat:isChecked()
end

function onTabChange(tabBar, tab)
Expand Down

0 comments on commit 64338a5

Please sign in to comment.