Post #1 · Posté à 2013-07-01 05:45:54am il y a 11.2 années
Hello, every stepmania players. Because my old account can't be accessible due to both I forogtten the password and I have forgotten the registerred e-mail. So I have to register a new account to ask a theme question:
Now I am creating an SM5 theme, Like of this:
(The Green Square Area)
(The Yellow Square Area)
How to solve the problem with the ratio in widescreen? I want to make the Stream display should not be ranout or fillover the lifemeter bar. Have it got any elites to get some points?
Now I am creating an SM5 theme, Like of this:
(The Green Square Area)
(The Yellow Square Area)
How to solve the problem with the ratio in widescreen? I want to make the Stream display should not be ranout or fillover the lifemeter bar. Have it got any elites to get some points?
Post #2 · Posté à 2013-07-02 04:10:53am il y a 11.2 années
I suspect the problem has to do with the "container" image you've made and how you've chosen to render it.
The SM Theming Wiki has a page on Sizing Commands here: http://kki.ajworld.net/wiki/Commands:Main
My guess is that you have the size of the Lua actor for the container graphic hardcoded to a value. You may want to make it more flexible, taking SM constants like SCREEN_WIDTH into consideration.
-- maybe you have something like this...?
LoadActor("container.png") .. {
InitCommand=cmd( zoomto, 200, 20; );
};
--maybe try something like this
LoadActor("container.png") .. {
InitCommand=cmd(zoomto, SCREEN_WIDTH/2 - 40, 20 );
};
The SM Theming Wiki has a page on Sizing Commands here: http://kki.ajworld.net/wiki/Commands:Main
My guess is that you have the size of the Lua actor for the container graphic hardcoded to a value. You may want to make it more flexible, taking SM constants like SCREEN_WIDTH into consideration.
-- maybe you have something like this...?
LoadActor("container.png") .. {
InitCommand=cmd( zoomto, 200, 20; );
};
--maybe try something like this
LoadActor("container.png") .. {
InitCommand=cmd(zoomto, SCREEN_WIDTH/2 - 40, 20 );
};
Post #3 · Posté à 2013-07-02 10:42:41am il y a 11.2 années
Post #4 · Posté à 2013-07-02 10:22:52pm il y a 11.2 années
dbk2 | |
---|---|
Member | |
332 Messages | |
Not Set | |
Reg. 2012-04-30 | |
Do you only want speed modifiers or do you want ALL play modifiers (like... Reverse, Tornado, Little, etc.)?
Post #5 · Posté à 2013-07-03 04:34:33am il y a 11.2 années
Quote: dbk2
Do you only want speed modifiers or do you want ALL play modifiers (like... Reverse, Tornado, Little, etc.)?
Just Speed modifiers please. It would be a Good place to start.
Post #6 · Posté à 2013-07-03 06:18:40am il y a 11.2 années
2DXFTW | |
---|---|
Banned | |
21 Messages | |
Reg. 2013-06-29 | |
"meow meow rawr" |
I don't know how exactly to make a theme, but now since I've seen this thread, can anyone help me?
Post #7 · Posté à 2013-07-03 09:03:52am il y a 11.2 années
SM MaxX | |
---|---|
Member+ | |
911 Messages | |
Reg. 2012-08-30 | |
"I play too much touhou" |
You'll need to be more specific than that
Post #8 · Posté à 2013-07-03 10:21:15am il y a 11.2 années
2DXFTW | |
---|---|
Banned | |
21 Messages | |
Reg. 2013-06-29 | |
"meow meow rawr" |
Quote: SM MaxX
You'll need to be more specific than that
What do you mean?Post #9 · Posté à 2013-07-03 10:22:56am il y a 11.2 années
SM MaxX | |
---|---|
Member+ | |
911 Messages | |
Reg. 2012-08-30 | |
"I play too much touhou" |
like, do you want to know how to make a theme in general or have specific theming questions or what?
Post #10 · Posté à 2013-07-03 10:26:03am il y a 11.2 années
2DXFTW | |
---|---|
Banned | |
21 Messages | |
Reg. 2013-06-29 | |
"meow meow rawr" |
Quote: SM MaxX
like, do you want to know how to make a theme in general or have specific theming questions or what?
Mostly the bolded part in general.Post #11 · Posté à 2013-07-04 09:55:57am il y a 11.2 années
zGHRs | |
---|---|
Member | |
36 Messages | |
Reg. 2013-07-01 | |
Quote: dbk2
I suspect the problem has to do with the "container" image you've made and how you've chosen to render it.
The SM Theming Wiki has a page on Sizing Commands here: http://kki.ajworld.net/wiki/Commands:Main
My guess is that you have the size of the Lua actor for the container graphic hardcoded to a value. You may want to make it more flexible, taking SM constants like SCREEN_WIDTH into consideration.
-- maybe you have something like this...?
LoadActor("container.png") .. {
InitCommand=cmd( zoomto, 200, 20; );
};
--maybe try something like this
LoadActor("container.png") .. {
InitCommand=cmd(zoomto, SCREEN_WIDTH/2 - 40, 20 );
};
The SM Theming Wiki has a page on Sizing Commands here: http://kki.ajworld.net/wiki/Commands:Main
My guess is that you have the size of the Lua actor for the container graphic hardcoded to a value. You may want to make it more flexible, taking SM constants like SCREEN_WIDTH into consideration.
-- maybe you have something like this...?
LoadActor("container.png") .. {
InitCommand=cmd( zoomto, 200, 20; );
};
--maybe try something like this
LoadActor("container.png") .. {
InitCommand=cmd(zoomto, SCREEN_WIDTH/2 - 40, 20 );
};
I have got a new question, What file can we put this code to direct the LifeMeter Bar? Or I make the new lua to direct the LifemeterBar?
Post #12 · Posté à 2013-07-04 10:48:40am il y a 11.2 années
Quote: zGHRs
What file can we put this code to direct the LifeMeter Bar? Or I make the new lua to direct the LifemeterBar?
The file you change depends on how you are coding your theme...
Are you making your own theme, or using someone else's and changing graphics?
If you are making your own theme, the code will be in the file that you made to load the lifebar frame graphic.
If you are using someone else's theme and changing graphics, you can search through their lua files to find which one has the name of your lifebar frame. What is your lifebar frame called? That's what you should look for in lua.
For example, if your lifebar frame was called lifebarframe.png then you should look for
LoadActor("lifebarframe")..{
somewhere in one of the ScreenGameplay lua files.
Post #13 · Posté à 2013-07-04 03:09:21pm il y a 11.2 années
It's inside [StreamDisplay] that controls the size of streaming life bar.
Try this in your theme's metric.ini:
[StreamDisplay]
PillTransformFunction=function(self,offsetFromCenter,itemIndex,numItems) \
local fItemWidth = ( 230 / numItems ) \
self:x( ((itemIndex-(numItems/2))*fItemWidth) + ( numItems / 2 ) ); \
self:zoomtowidth(fItemWidth); \
self:zoomtoheight(14);
end;
TextureCoordScaleX=-30
NumPills=26
Try this in your theme's metric.ini:
[StreamDisplay]
PillTransformFunction=function(self,offsetFromCenter,itemIndex,numItems) \
local fItemWidth = ( 230 / numItems ) \
self:x( ((itemIndex-(numItems/2))*fItemWidth) + ( numItems / 2 ) ); \
self:zoomtowidth(fItemWidth); \
self:zoomtoheight(14);
end;
TextureCoordScaleX=-30
NumPills=26