Skip to content

Commit

Permalink
Merge pull request #814 from AntlerForce/master
Browse files Browse the repository at this point in the history
Add a tooltip to host button when disabled
  • Loading branch information
AntlerForce authored Nov 15, 2024
2 parents 69acca9 + a8ed555 commit c4a3772
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1612,6 +1612,7 @@ function BattleListWindow:OpenHostWindow()
end

local function reenableHost()
buttonHost.tooltip = "Request a hosted battle. Please be patient while the lobby spins up."
buttonHost.suppressButtonReaction = false
buttonHost:SetEnabled(true)
buttonHost.OnClick = {
Expand All @@ -1622,6 +1623,7 @@ function BattleListWindow:OpenHostWindow()
end

function buttonHostOnClick()
buttonHost.tooltip = "Please wait for more time before requesting another hosted battle"
buttonHost.suppressButtonReaction = true
buttonHost:SetEnabled(false)
buttonHost.OnClick = {}
Expand Down

0 comments on commit c4a3772

Please sign in to comment.