Small fix
This commit is contained in:
parent
ee473c7218
commit
9fecd0ab30
@ -1,15 +1,7 @@
|
|||||||
if (Engine.InFrontend()) then
|
if (Engine.InFrontend()) then
|
||||||
local levelselectmenu = LUI.sp_menus.LevelSelectMenu
|
local levelselectmenu = LUI.sp_menus.LevelSelectMenu
|
||||||
levelselectmenu.DisplayUnlockAllFooterPrompt = function(f79_arg0, f79_arg1)
|
levelselectmenu.DisplayUnlockAllFooterPrompt = function(f79_arg0, f79_arg1)
|
||||||
if not Engine.GetDvarBool("profileMenuOption_hasUnlockedAll_SP") then
|
if Engine.GetDvarBool("profileMenuOption_hasUnlockedAll_SP") then
|
||||||
f79_arg0:AddHelp({
|
|
||||||
name = "add_button_helper_text",
|
|
||||||
button_ref = "button_alt2",
|
|
||||||
helper_text = Engine.Localize("@LUA_MENU_CAMPAIGN_UNLOCKED_ALL_TITLE"),
|
|
||||||
side = "right",
|
|
||||||
clickable = true
|
|
||||||
}, levelselectmenu.UnlockAllPopup)
|
|
||||||
else
|
|
||||||
f79_arg0:AddHelp({
|
f79_arg0:AddHelp({
|
||||||
name = "add_button_helper_text",
|
name = "add_button_helper_text",
|
||||||
button_ref = "button_alt2",
|
button_ref = "button_alt2",
|
||||||
@ -17,6 +9,14 @@ if (Engine.InFrontend()) then
|
|||||||
side = "right",
|
side = "right",
|
||||||
clickable = true
|
clickable = true
|
||||||
}, levelselectmenu.SetUnlockAll)
|
}, levelselectmenu.SetUnlockAll)
|
||||||
|
else
|
||||||
|
f79_arg0:AddHelp({
|
||||||
|
name = "add_button_helper_text",
|
||||||
|
button_ref = "button_alt2",
|
||||||
|
helper_text = Engine.Localize("@LUA_MENU_CAMPAIGN_UNLOCKED_ALL_TITLE"),
|
||||||
|
side = "right",
|
||||||
|
clickable = true
|
||||||
|
}, levelselectmenu.UnlockAllPopup)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user