Post #1 · Posted at 2016-01-02 05:21:53am 9.7 years ago
![]() | |
---|---|
![]() |
Member |
142 Posts | |
Not Set | |
Reg. 2015-01-13 | |
"But enough talk! Have at you!" |
Sorry if this is the wrong place... This seems like the most active forum on SM theming so I figure you guys would know the most.
1. My graphics are being zoomed in when displaying, making them blurry. How can I fix this?
2. I want the operator button to go to the title screen instead of going to the options, is there a way to do this in lua? Or do I need to edit metrics.ini?
1. My graphics are being zoomed in when displaying, making them blurry. How can I fix this?
2. I want the operator button to go to the title screen instead of going to the options, is there a way to do this in lua? Or do I need to edit metrics.ini?
Post #2 · Posted at 2016-01-02 05:30:32am 9.7 years ago
I think this is the proper subforum to be asking SM5 theming questions in. People certainly do it all the time, and there's not really a dedicated StepMania board, much less a dedicated StepMania theming board.
1. There are many strategies to making graphics less blurry or less zoomed in. If you can provide an example of your code and some details about the image you are loading (height and width in pixels), I can offer a more helpful suggestion.
2. The screen that the operator menu button brings you to is defined the _fallback theme's Metrics.ini, and your theme is inheriting this.
See: https://github.com/stepmania/stepmania/blob/14caac26ca09308abc9269251bb4c500270e6b84/Themes/_fallback/metrics.ini#L48-L49
1. There are many strategies to making graphics less blurry or less zoomed in. If you can provide an example of your code and some details about the image you are loading (height and width in pixels), I can offer a more helpful suggestion.
2. The screen that the operator menu button brings you to is defined the _fallback theme's Metrics.ini, and your theme is inheriting this.
See: https://github.com/stepmania/stepmania/blob/14caac26ca09308abc9269251bb4c500270e6b84/Themes/_fallback/metrics.ini#L48-L49
Post #3 · Posted at 2016-01-02 05:38:10am 9.7 years ago
![]() | |
---|---|
![]() |
Member |
142 Posts | |
Not Set | |
Reg. 2015-01-13 | |
"But enough talk! Have at you!" |
Last updated: 2016-01-02 05:49am
Quote: dbk2
1. There are many strategies to making graphics less blurry or less zoomed in. If you can provide an example of your code and some details about the image you are loading (height and width in pixels), I can offer a more helpful suggestion.
2. The screen that the operator menu button brings you to is defined the _fallback theme's Metrics.ini, and your theme is inheriting this.
See: https://github.com/stepmania/stepmania/blob/14caac26ca09308abc9269251bb4c500270e6b84/Themes/_fallback/metrics.ini#L48-L49
2. The screen that the operator menu button brings you to is defined the _fallback theme's Metrics.ini, and your theme is inheriting this.
See: https://github.com/stepmania/stepmania/blob/14caac26ca09308abc9269251bb4c500270e6b84/Themes/_fallback/metrics.ini#L48-L49
This is the code I'm using to load it:
LoadActor("title_bg")..{ InitCommand=cmd(CenterX;); };
LoadActor("playdata_sel_font")..{ InitCommand=cmd(CenterX;y,SCREEN_TOP); };
title_bg is 632x96... I want it to display in a 632x96 area on the screen, exactly as the image is sized.
2. Thanks for that. Guess I should look in fallback more often.
Post #4 · Posted at 2016-01-02 05:47:42am 9.7 years ago
Your code looks okay, so here's something to keep in mind – the _fallback theme defines what is considered the normal height and width of every theme that inherits from it with the metrics ScreenHeight and ScreenWidth under the Common section.
Check here: https://github.com/stepmania/stepmania/blob/14caac26ca09308abc9269251bb4c500270e6b84/Themes/_fallback/metrics.ini#L18-L22
Notice that the _fallback theme defines ScreenHeight as 480. (It also defines the ScreenWidth as 1, but that is because the Width is actually calculated by multiplying the ScreenHeight by the DisplayAspectRatio preference.) What this means is that you effectively have 480 pixels of height to work with in your theme unless you change those values in the Common section of your theme's Metrics.ini. All visuals and theme elements are automatically scaled with this value in mind.
The value of ScreenHeight as it is set in Metrics impacts what things SCREEN_HEIGHT and SCREEN_WIDTH and SCREEN_CENTER_X (and so on) evaluate to. If you set ScreenHeight to, say, 720, you'll notice quickly that everything feels much more "zoomed out."
It's difficult to explain what this is like using words (a visual is worth a thousand of them), so I encourage you to experiment with this setting and find what works for your purposes. As always, if you make a change to Metrics, you can immediately see the changes in your theme by pressing SHIFT + F2 and reloading the current screen (F3 + F6 to get into themer menu, and then F3 + 2 to reload.
Hopes this helps a bit.
Check here: https://github.com/stepmania/stepmania/blob/14caac26ca09308abc9269251bb4c500270e6b84/Themes/_fallback/metrics.ini#L18-L22
Notice that the _fallback theme defines ScreenHeight as 480. (It also defines the ScreenWidth as 1, but that is because the Width is actually calculated by multiplying the ScreenHeight by the DisplayAspectRatio preference.) What this means is that you effectively have 480 pixels of height to work with in your theme unless you change those values in the Common section of your theme's Metrics.ini. All visuals and theme elements are automatically scaled with this value in mind.
The value of ScreenHeight as it is set in Metrics impacts what things SCREEN_HEIGHT and SCREEN_WIDTH and SCREEN_CENTER_X (and so on) evaluate to. If you set ScreenHeight to, say, 720, you'll notice quickly that everything feels much more "zoomed out."
It's difficult to explain what this is like using words (a visual is worth a thousand of them), so I encourage you to experiment with this setting and find what works for your purposes. As always, if you make a change to Metrics, you can immediately see the changes in your theme by pressing SHIFT + F2 and reloading the current screen (F3 + F6 to get into themer menu, and then F3 + 2 to reload.
Hopes this helps a bit.
Post #5 · Posted at 2016-01-02 07:00:03am 9.7 years ago
![]() | |
---|---|
![]() |
Member |
142 Posts | |
Not Set | |
Reg. 2015-01-13 | |
"But enough talk! Have at you!" |
Last updated: 2016-01-02 07:27am
Okay, thanks... I hate to keep bothering you, but I'm still trying to figure things out...
1. My Y axis is off, but my X axis is fine. Graphics are being placed at -20Y or something.
2. How do I modify the songwheel? I want it to be moved more to the right, since it's now sitting in the middle. (I tried changing some values in metrics but it didn't appear to do anything.)
And how to change songwheel graphics.
1. My Y axis is off, but my X axis is fine. Graphics are being placed at -20Y or something.
2. How do I modify the songwheel? I want it to be moved more to the right, since it's now sitting in the middle. (I tried changing some values in metrics but it didn't appear to do anything.)
And how to change songwheel graphics.
Post #6 · Posted at 2016-01-02 07:49:45am 9.7 years ago
1. It sounds like perhaps the parent ActorFrame has a y of -20. It's difficult to ascertain or to help more on this without seeing your code.
2. You are probably looking for the MusicWheelX metric which goes under the ScreenSelectMusic section. In the _fallback theme, it's set like this: https://github.com/stepmania/stepmania/blob/master/Themes/_fallback/metrics.ini#L2155
My guess is you "zoomed out" using my previous suggestion and that now (SCREEN_CENTER_X + 160) isn't enough of an offset. perhaps a more appropriate value might be something like...
MusicWheelX=_screen.w - 200
That will position the MusicWheel 200 pixels away from the right edge of the screen.
As an aside, _screen.w is my preferred shorthand for SCREEN_WIDTH. I find it easier to type, but use whichever works for you.
The _screen table has the following values:
_screen.w
_screen.h
_screen.cx
_screen.cy
They are all defined here in the _fallback theme: https://github.com/stepmania/stepmania/blob/108b29733f54ecb78f760da3147d1173ff3f8fc6/Themes/_fallback/Scripts/01%20alias.lua#L5-L10
2. You are probably looking for the MusicWheelX metric which goes under the ScreenSelectMusic section. In the _fallback theme, it's set like this: https://github.com/stepmania/stepmania/blob/master/Themes/_fallback/metrics.ini#L2155
My guess is you "zoomed out" using my previous suggestion and that now (SCREEN_CENTER_X + 160) isn't enough of an offset. perhaps a more appropriate value might be something like...
MusicWheelX=_screen.w - 200
That will position the MusicWheel 200 pixels away from the right edge of the screen.
As an aside, _screen.w is my preferred shorthand for SCREEN_WIDTH. I find it easier to type, but use whichever works for you.
The _screen table has the following values:
_screen.w
_screen.h
_screen.cx
_screen.cy
They are all defined here in the _fallback theme: https://github.com/stepmania/stepmania/blob/108b29733f54ecb78f760da3147d1173ff3f8fc6/Themes/_fallback/Scripts/01%20alias.lua#L5-L10