Post #1 · Posted at 2017-12-07 11:06:09pm 6.7 years ago
radicalfaith360 | |
---|---|
Member | |
58 Posts | |
Not Set | |
Reg. 2017-03-11 | |
during gameplay? Or can this only be done from the main menu?
Post #2 · Posted at 2017-12-08 02:52:52am 6.7 years ago
CuzcoBlocko | |
---|---|
Member | |
2,948 Posts | |
Reg. 2013-10-26 | |
"[Art by LilyBreez]" |
The default theme has options (if you have additional options enabled) to let you use a song's default BG (the .sm's background changes), static BG (song's background image), and random BG (cycles through videos in your RandomMovies directory). Not sure about other themes.
Post #3 · Posted at 2017-12-08 04:50:52am 6.7 years ago
radicalfaith360 | |
---|---|
Member | |
58 Posts | |
Not Set | |
Reg. 2017-03-11 | |
Ah, you see my problem is I'm bringing my setup to a convention and have to have the second set of options locked when attendees play it. I was hoping there was a way for them to toggle the videos on and off at their discretion without accessing the second menu.
Post #4 · Posted at 2017-12-08 05:20:11am 6.7 years ago
Kyzentun | |
---|---|
Member | |
3,209 Posts | |
Reg. 2008-02-20 | |
"I'm honestly pissed off." |
Add an option row for setting BGBrightness to the options screen of your theme. 0 turns it black, 1 turns it full brightness, in between makes it faded dark.
Post #5 · Posted at 2017-12-08 10:57:29pm 6.7 years ago
radicalfaith360 | |
---|---|
Member | |
58 Posts | |
Not Set | |
Reg. 2017-03-11 | |
How do I add that option? Do I write it into the code?
Post #6 · Posted at 2017-12-09 05:02:28am 6.7 years ago
Kyzentun | |
---|---|
Member | |
3,209 Posts | |
Reg. 2008-02-20 | |
"I'm honestly pissed off." |
Metrics:
# Add bgoff to the LineNames metric.
Linebgoff="lua,ops_row_bgoff()"
Scripts:
function ops_row_bgoff()
local choices= {1, .5, 0}
local names= {"BG On", "BG Dim", "BG Off"}
-- Add OptionTitles::bgoff and OptionExplanations::bgoff to en.ini
return {
Name= "bgoff",
LayoutType= "ShowAllInRow",
SelectType= "SelectOne",
OneChoiceForAllPlayers= true,
LoadSelections= function(self, list, pn)
local brightness= PREFSMAN:GetPreference("BGBrightness")
for i= 1, #choices do
-- Check how close the brightness is to each choice and pick the closest one.
local this_diff= math.abs(brightness - choices[i])
local next_diff= 1
if i < #choices then
next_diff= math.abs(brightness - choices[i+1])
end
if this_diff < next_diff then
list[i]= true
end
end
end,
SaveSelections= function(self, list, pn)
for i= 1, #choices do
if list[i] then
PREFSMANetPreference("BGBrightness", choices[i])
end
end
end,
Choices= names,
}
end
# Add bgoff to the LineNames metric.
Linebgoff="lua,ops_row_bgoff()"
Scripts:
function ops_row_bgoff()
local choices= {1, .5, 0}
local names= {"BG On", "BG Dim", "BG Off"}
-- Add OptionTitles::bgoff and OptionExplanations::bgoff to en.ini
return {
Name= "bgoff",
LayoutType= "ShowAllInRow",
SelectType= "SelectOne",
OneChoiceForAllPlayers= true,
LoadSelections= function(self, list, pn)
local brightness= PREFSMAN:GetPreference("BGBrightness")
for i= 1, #choices do
-- Check how close the brightness is to each choice and pick the closest one.
local this_diff= math.abs(brightness - choices[i])
local next_diff= 1
if i < #choices then
next_diff= math.abs(brightness - choices[i+1])
end
if this_diff < next_diff then
list[i]= true
end
end
end,
SaveSelections= function(self, list, pn)
for i= 1, #choices do
if list[i] then
PREFSMANetPreference("BGBrightness", choices[i])
end
end
end,
Choices= names,
}
end
Post #7 · Posted at 2017-12-09 07:18:27am 6.7 years ago
pm41224 | |
---|---|
Member | |
315 Posts | |
Reg. 2012-05-19 | |
"DanceDanceRevolution!" |
Shouldn't this code yield results similar to the "BGA DARK" option in PIU PRIME 2?