Logo

Adding conditions in metrics.ini in SM5?

登録 ログイン フォーラム戻る

ポスト #1 · 2016-02-04 02:10:32amにポスト 8.2年前

Offline MadkaT
MadkaT Avatar Member
820 ポスト
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.

ポスト #2 · 2016-02-04 04:58:15amにポスト 8.2年前

Offline Th3_Ov3rHell_3XoduZ
Th3_Ov3rHell_3XoduZ Avatar Member
313 ポスト
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
登録 ログイン フォーラム戻る

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

©2006-2024 Zenius -I- vanisher.com -5th style- IIPrivacy Policy
Web Server: 6% · Database: 4% · Server Time: 2024-05-19 16:04:20
このページは0.003秒サーバータイム使用する。
Theme: starlight · Language: japanese
Reset Theme & Language