Forums » Themes » PlayerOptions on top of SelectMusic

1
Hey guys I need help with something so I'm making a DDR theme and I want to know if it's possible to get the Options SCreen on top of the Music Screen I know Jindev has done it but I wanna know if it's possible with the local topscreen = SCREENMAN:GetTopScreen() Code
Reply
Hey guys I need help with something so I'm making a DDR theme and I want to know if it's possible to get the Options SCreen on top of the Music Screen I know Jindev has done it but I wanna know if it's possible with the local topscreen = SCREENMAN:GetTopScreen() Code

StepMania has some built-in functionality to support PlayerOptions on top of ScreenSelectMusic, actually, no lua required. In StepMania terminology, it's referred to as the OptionsList. To start, in your theme's Metrics, place this line in your [ScreenSelectMusic] section:

UseOptionsList=true


You'll be overriding the _fallback theme, which has that metric set to false. Of course, that means that the default theme (and most SM5 themes as a result) don't use OptionsList. I've never tried using one, myself, so my ability to advise is limited.

Metro Quad X is one theme that does use OptionsList. I'll link you to the relevant parts to get you started:

1. There is an OptionsList section in the Metrics: https://github.com/Ov3rHell3XoduZ/MetroQuadX/blob/2488bd0090c166dfc19faba18a6afb3d2afa7321/metrics.ini#L800-L918

2. There are OptionsListP1 and OptionsListP2 sections defined that both simply fallback on the OptionsList section: https://github.com/Ov3rHell3XoduZ/MetroQuadX/blob/2488bd0090c166dfc19faba18a6afb3d2afa7321/metrics.ini#L920-L924

3. The ScreenSelectMusic section refers to OptionsListP1 and OptionsListP2 like so: https://github.com/Ov3rHell3XoduZ/MetroQuadX/blob/2488bd0090c166dfc19faba18a6afb3d2afa7321/metrics.ini#L1302-L1305

4. The ./Graphics/ directory defines an OptionsList Cursor file: https://github.com/Ov3rHell3XoduZ/MetroQuadX/blob/2488bd0090c166dfc19faba18a6afb3d2afa7321/Graphics/OptionsList%20cursor.lua

It's probably worth your time to download and use the theme to see how it behaves. Hopefully this is enough to get you started. I can't really help much more than that on this topic.
Reply
Will it be like how it does in jindev's theme?
Reply
Nope.
Reply
I have no idea what jindev's menu is like, but I bet my system is better.
I should document my menu system and distribute it. It's designed for nested extensible menus that can do anything. It also supports showing different menu options for each player.
< cybik> til Kyzentun fixes bugs for breakfast
--
< maxvg1> shakesoda: then why do i still play lol
<@shakesoda> because you're an ITG player. And thus, a masochist
--
<@shakesoda> Kyzentun: I think you might need to put down the meshes for a bit
Reply
It's probably worth your time to download and use the theme to see how it behaves.
Will it be like how it does in jindev's theme?

It's probably worth your time to download and use the theme to see how it behaves.

Last edited: 28 December 2015 4:23pm

Reply