From 7092e5ed69e5424af5b3ea2478a4ef8cea92bd9c Mon Sep 17 00:00:00 2001 From: MinaciousGrace Date: Sat, 14 Jan 2017 07:46:54 -0500 Subject: [PATCH] load the mini preference during underlay init instead of during overlay --- .../ScreenGameplay overlay/WifeJudgmentSpotting.lua | 5 ----- .../BGAnimations/ScreenGameplay underlay/default.lua | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Themes/Til Death/BGAnimations/ScreenGameplay overlay/WifeJudgmentSpotting.lua b/Themes/Til Death/BGAnimations/ScreenGameplay overlay/WifeJudgmentSpotting.lua index e777e99186..33fd95ea8f 100644 --- a/Themes/Til Death/BGAnimations/ScreenGameplay overlay/WifeJudgmentSpotting.lua +++ b/Themes/Til Death/BGAnimations/ScreenGameplay overlay/WifeJudgmentSpotting.lua @@ -39,11 +39,6 @@ local playcommand = Actor.queuecommand local settext = BitmapText.settext local Broadcast = MessageManager.Broadcast --- temporary measure so mini option aka receptor size selection saves -local modslevel = topscreen == "ScreenEditOptions" and "ModsLevel_Stage" or "ModsLevel_Preferred" -local playeroptions = GAMESTATE:GetPlayerState(PLAYER_1):GetPlayerOptions(modslevel) -playeroptions:Mini( 2 - playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).ReceptorSize/50 ) - -- Screenwide params --==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-- diff --git a/Themes/Til Death/BGAnimations/ScreenGameplay underlay/default.lua b/Themes/Til Death/BGAnimations/ScreenGameplay underlay/default.lua index 1bb680859d..53dc2fee8a 100644 --- a/Themes/Til Death/BGAnimations/ScreenGameplay underlay/default.lua +++ b/Themes/Til Death/BGAnimations/ScreenGameplay underlay/default.lua @@ -1,3 +1,8 @@ +-- load this before screenfilter gets sized so it's right the first time +local modslevel = topscreen == "ScreenEditOptions" and "ModsLevel_Stage" or "ModsLevel_Preferred" +local playeroptions = GAMESTATE:GetPlayerState(PLAYER_1):GetPlayerOptions(modslevel) +playeroptions:Mini( 2 - playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).ReceptorSize/50 ) + local t = Def.ActorFrame{} t[#t+1] = LoadActor("bg") t[#t+1] = LoadActor("ScreenFilter")