Skip to content

Commit

Permalink
fix-supress-typo
Browse files Browse the repository at this point in the history
leaned on original PR from MasterBel2 for Spring-Chobby
Spring-Chobby/Chobby#547
  • Loading branch information
FIr3baL committed Apr 30, 2023
1 parent 7cc9fe4 commit 5495ae6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions LuaMenu/widgets/gui_battle_room_window.lua
Original file line number Diff line number Diff line change
Expand Up @@ -825,8 +825,8 @@ local function SetupInfoButtonsPanel(leftInfo, rightInfo, battle, battleID, myUs
ButtonUtilities.SetButtonSelected(btnPlay)
ButtonUtilities.SetCaption(btnPlay, i18n("playing"))

-- btnPlay.suppressButtonReaction = true -- not working (anymore ?)
-- btnSpectate.suppressButtonReaction = false
btnPlay.suppressButtonReaction = true
btnSpectate.suppressButtonReaction = false

btnPlay.tooltip = i18n("tooltip_is_player")
btnSpectate.tooltip = i18n("tooltip_become_spectator")
Expand All @@ -837,11 +837,11 @@ local function SetupInfoButtonsPanel(leftInfo, rightInfo, battle, battleID, myUs
-- playBtn
ButtonUtilities.SetButtonDeselected(btnPlay)
ButtonUtilities.SetCaption(btnPlay, i18n("play"))
-- btnPlay.suppressButtonReaction = false -- not working (anymore ?)
btnPlay.suppressButtonReaction = false

-- SpecBtn
ButtonUtilities.SetButtonSelected(btnSpectate)
-- btnSpectate.suppressButtonReaction = true -- not working (anymore ?)
btnSpectate.suppressButtonReaction = true

btnSpectate.tooltip = i18n("tooltip_is_spectator")
btnPlay.tooltip = i18n("tooltip_become_player")
Expand Down
4 changes: 2 additions & 2 deletions libs/chiliui/chili/headers/skinutils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ function DrawButton(obj)
local skLeft, skTop, skRight, skBottom = unpack4(obj.tiles)

local bgcolor = obj.backgroundColor
if not obj.supressButtonReaction then
if not obj.suppressButtonReaction then
if (obj.state.pressed) then
bgcolor = obj.pressBackgroundColor or mulColor(bgcolor, 0.4)
elseif (obj.state.hovered) --[[ or (obj.state.focused)]] then
Expand All @@ -542,7 +542,7 @@ function DrawButton(obj)
local fgcolor = obj.borderColor
if not obj.state.enabled then
fgcolor = mixColors(fgcolor, obj.disabledColor, 0.8)
elseif not obj.supressButtonReaction then
elseif not obj.suppressButtonReaction then
if (obj.state.pressed) then
fgcolor = obj.pressForegroundColor or mulColor(fgcolor, 0.4)
elseif (obj.state.hovered) --[[ or (obj.state.focused)]] then
Expand Down

0 comments on commit 5495ae6

Please sign in to comment.