Logo

Adding conditions in metrics.ini in SM5?

Register Log In Back To Forums

Post #1 · Posted at 2016-02-04 02:10:32am 8.2 years ago

Offline MadkaT
MadkaT Avatar 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.

Post #2 · Posted at 2016-02-04 04:58:15am 8.2 years ago

Offline Th3_Ov3rHell_3XoduZ
Th3_Ov3rHell_3XoduZ Avatar Member
313 Posts
Chile
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
Quote: Released Themes for SM5 Beta 3
Quote: Released Themes for SM5 Beta 4 & 5.0.7
Quote: Simfles Packs Released
Register Log In Back To Forums

0 User(s) Viewing This Thread (Past 15 Minutes)

©2006-2024 Zenius -I- vanisher.com -5th style- IIPrivacy Policy
Web Server: 3% · Database: 8% · Server Time: 2024-05-07 06:54:56
This page took 0.004 seconds to execute.
Theme: starlight · Language: englishuk
Reset Theme & Language