-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make background type option persist through sessions
- Loading branch information
1 parent
7092e5e
commit f022192
Showing
5 changed files
with
51 additions
and
9 deletions.
There are no files selected for viewing
21 changes: 16 additions & 5 deletions
21
Themes/Til Death/BGAnimations/ScreenGameplay underlay/default.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,23 @@ | ||
-- load this before screenfilter gets sized so it's right the first time | ||
-- load certain preferences before gameplay initializes | ||
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 bgtype = playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).BackgroundType | ||
local songoptions = GAMESTATE:GetSongOptionsObject('ModsLevel_Preferred') | ||
-- this seems really stupid - mina | ||
if bgtype == 1 then | ||
songoptions:StaticBackground(false) | ||
songoptions:RandomBGOnly(false) | ||
elseif bgtype == 2 then | ||
songoptions:StaticBackground(true) | ||
songoptions:RandomBGOnly(false) | ||
elseif bgtype == 3 then | ||
songoptions:StaticBackground(false) | ||
songoptions:RandomBGOnly(true) | ||
end | ||
|
||
local t = Def.ActorFrame{} | ||
t[#t+1] = LoadActor("bg") | ||
t[#t+1] = LoadActor("ScreenFilter") | ||
--t[#t+1] = LoadActor("cbHighlight") | ||
--t[#t+1] = LoadActor("SpeedChange") | ||
--t[#t+1] = LoadActor("pause") | ||
return t --hurr almost everything here is useless | ||
return t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters