Post #1 · Posted at 2016-02-04 02:10:32am 8.2 years ago
MadkaT | |
---|---|
Member | |
820 Posts | |
Not Set | |
Reg. 2009-11-24 | |
Hi friends, it's me again with another 2 questions.
1. I want to do a shared header, with a variable string and position that is conditioned by the actual screen, for example "select mode", "select music", "check your scores" etc. Is possible to do this screen check to condition the string and position? I've checked tha parameter HeaderText in the metrics.ini and the default SM5 theme, but I don't know how to condition the position of the font actor.
2. Regarding the previous item, I have some variables to change the screen fit of some items like the song wheel, but how can I add the conditions in metrics.ini to check if a theme option boolean variable is true and return and A or B values to the X or Y position of for example the BPM indicator?
Thanks as always for the help.
1. I want to do a shared header, with a variable string and position that is conditioned by the actual screen, for example "select mode", "select music", "check your scores" etc. Is possible to do this screen check to condition the string and position? I've checked tha parameter HeaderText in the metrics.ini and the default SM5 theme, but I don't know how to condition the position of the font actor.
2. Regarding the previous item, I have some variables to change the screen fit of some items like the song wheel, but how can I add the conditions in metrics.ini to check if a theme option boolean variable is true and return and A or B values to the X or Y position of for example the BPM indicator?
Thanks as always for the help.
Post #2 · Posted at 2016-02-04 04:58:15am 8.2 years ago
Th3_Ov3rHell_3XoduZ | |
---|---|
Member | |
313 Posts | |
Reg. 2012-09-13 | |
"ITG, The Best Dance Machine!" |
Look, on my theme I made a function for Headers that works with a table that contains a Screen name (key) and the string (value) I want for each screen.
For the 2nd point I did something similar that was change the position of the music wheel if you are connected and other if you are not. You can use lua functions on metrics. You can create a function on a .lua file on the Scripts folder and use it on Metrics.ini
Or use conditions directly on metrics as u would do it on LUA. For Example. BannerX=GAMESTATE:IsEventMode() and SCREEN_LEFT+64 or SCREEN_RIGHT-56
For the 2nd point I did something similar that was change the position of the music wheel if you are connected and other if you are not. You can use lua functions on metrics. You can create a function on a .lua file on the Scripts folder and use it on Metrics.ini
Or use conditions directly on metrics as u would do it on LUA. For Example. BannerX=GAMESTATE:IsEventMode() and SCREEN_LEFT+64 or SCREEN_RIGHT-56