Skip to content

Commit

Permalink
Merge pull request #737 from FIr3baL/FB_AddSetting_QueuePrompt
Browse files Browse the repository at this point in the history
added a setting for changing the state of queueExitConfirmPromptDoNot…
  • Loading branch information
FIr3baL authored Jul 21, 2024
2 parents 8ebed84 + aad6122 commit bbd850c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions LuaMenu/widgets/chobby/i18n/chililobby.lua
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ return {
autoLaunchAsSpectator = "Auto-launch when spectating",
randomSkirmishSetup = "Random Skirmish AI and Map",
randomSkirmishSetup_tooltip = "Randomizes AIs and Map in Singleplayer Skirmish mode. Requires Restart.",
queueExitConfirmPromptDoNotAskAgain = "No prompt when leaving queue",
queueExitConfirmPromptDoNotAskAgain_tooltip = "Disabled = Shows a prompt when leaving the queue or game.",
ingame_notifcations = "Notifications while ingame",
ingame_notifcations_tooltip = "Allows chat from friends and other important notifications to be shown while you are playing",
non_friend_notifications = "Non-friend notifications",
Expand Down
10 changes: 10 additions & 0 deletions LuaMenu/widgets/gui_settings_window.lua
Original file line number Diff line number Diff line change
Expand Up @@ -993,6 +993,10 @@ local function GetLobbyTabControls()
children[#children + 1] = autoLogin
offset = offset + ITEM_OFFSET

local cbQueueExitConfirmPromptDoNotAskAgain
cbQueueExitConfirmPromptDoNotAskAgain, offset = AddCheckboxSetting(offset, i18n("queueExitConfirmPromptDoNotAskAgain"), "queueExitConfirmPromptDoNotAskAgain", true, nil , i18n("queueExitConfirmPromptDoNotAskAgain_tooltip"))
children[#children + 1] = cbQueueExitConfirmPromptDoNotAskAgain

children[#children + 1] = Label:New {
x = 20,
y = offset + TEXT_OFFSET,
Expand Down Expand Up @@ -1197,6 +1201,12 @@ local function GetLobbyTabControls()
end
--Configuration:SetConfigValue("randomSkirmishSetup", value)
end

if key == "queueExitConfirmPromptDoNotAskAgain" and cbQueueExitConfirmPromptDoNotAskAgain.checked ~= value then
cbQueueExitConfirmPromptDoNotAskAgain.checked = value
cbQueueExitConfirmPromptDoNotAskAgain.state.checked = cbQueueExitConfirmPromptDoNotAskAgain.checked
cbQueueExitConfirmPromptDoNotAskAgain:Invalidate()
end
end

freezeSettings = false
Expand Down

0 comments on commit bbd850c

Please sign in to comment.