Skip to content

Commit

Permalink
Add tooltip_join_queue and tooltip_leave_queue.
Browse files Browse the repository at this point in the history
  • Loading branch information
AntlerForce committed Apr 7, 2023
1 parent 31df88f commit 3ff9b65
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
9 changes: 6 additions & 3 deletions LuaMenu/widgets/chobby/i18n/chililobby.lua
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,16 @@ return {
rejoin = "Rejoin",
abandon = "Abandon",

tooltip_is_spectator = "You will spectate this game.",
tooltip_become_spectator = "Press to watch the game as a spectator.",
spectate = "Spectate",
spectating = "Spectating",

tooltip_is_player = "You will play in this game.",
tooltip_is_spectator = "You will spectate this game when it starts.",
tooltip_become_spectator = "Press to watch the game as a spectator.",
tooltip_is_player = "You will play in this game when it starts.",
tooltip_become_player = "Press to play in this game.",
tooltip_join_queue = "Enter the join-queue to play in this game.",
tooltip_leave_queue = "Spectate this game and remove yourself from the join-queue.",

play = "Play",
playing = "Playing",

Expand Down
9 changes: 7 additions & 2 deletions LuaMenu/widgets/gui_battle_room_window.lua
Original file line number Diff line number Diff line change
Expand Up @@ -839,8 +839,13 @@ local function SetupInfoButtonsPanel(leftInfo, rightInfo, battle, battleID, myUs
btnSpectate.suppressButtonReaction = true
btnPlay.suppressButtonReaction = false

btnSpectate.tooltip = i18n("tooltip_is_spectator")
btnPlay.tooltip = i18n("tooltip_become_player")
if battleLobby.name ~= "singleplayer" then
btnSpectate.tooltip = i18n("tooltip_leave_queue")
btnPlay.tooltip = i18n("tooltip_join_queue")
else
btnSpectate.tooltip = i18n("tooltip_is_spectator")
btnPlay.tooltip = i18n("tooltip_become_player")
end

ButtonUtilities.SetCaption(btnSpectate, i18n("spectating"))
end
Expand Down

0 comments on commit 3ff9b65

Please sign in to comment.