Skip to content

Commit

Permalink
rebirth fix all legacy option screen sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Dec 12, 2021
1 parent e1cc49c commit ac3551b
Showing 1 changed file with 73 additions and 0 deletions.
73 changes: 73 additions & 0 deletions Themes/Rebirth/metrics.ini
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,28 @@ NumWheelItems=-3
[NoteField]
ShowBoard=true

[OptionRow]
FrameX=SCREEN_CENTER_X-convertForThemeHeight(222)
TitleX=SCREEN_CENTER_X-convertForThemeHeight(222)
TitleOnCommand=shadowlength,0;uppercase,true;wrapwidthpixels,SCREEN_WIDTH*0.12/convertForThemeHeight(0.55);zoom,convertForThemeHeight(0.55)
ItemsStartX=SCREEN_CENTER_X-convertForThemeHeight(140)
ItemsEndX=SCREEN_CENTER_X+convertForThemeHeight(280)
ItemsGapX=convertForThemeHeight(14)
ItemsMinBaseZoom=convertForThemeHeight(0.65)
ItemOnCommand=shadowlength,0;zoom,convertForThemeHeight(0.5)

[OptionRowExit]
FrameX=SCREEN_CENTER_X-convertForThemeHeight(222)
TitleX=SCREEN_CENTER_X-convertForThemeHeight(222)
ItemsStartX=SCREEN_CENTER_X-convertForThemeHeight(140)
ItemsEndX=SCREEN_CENTER_X+convertForThemeHeight(280)
ItemsGapX=convertForThemeHeight(14)
ItemsMinBaseZoom=convertForThemeHeight(0.65)
ItemOnCommand=shadowlength,0;zoom,convertForThemeHeight(0.5)

[OptionRowService]
TitleOnCommand=shadowlength,0;uppercase,true;maxwidth,600/convertForThemeHeight(0.65);zoom,convertForThemeHeight(0.65)

[Player]
ReceptorArrowsYStandard=-164
ReceptorArrowsYReverse=164
Expand Down Expand Up @@ -148,16 +170,67 @@ Fallback="ScreenWithMenuElements"
PrevScreen="ScreenTitleMenu"
NextScreen="ScreenTitleMenu"

[ScreenDebugOverlay]
LineSpacing=convertForThemeHeight(16)
PageTextOnCommand=NoStroke;zoom,convertForThemeHeight(0.65)
ButtonTextOnCommand=NoStroke;zoom,convertForThemeHeight(0.75)
FunctionTextOnCommand=NoStroke;zoom,convertForThemeHeight(0.75)

[ScreenHelpMenu]
Class="ScreenWithMenuElements"
Fallback="ScreenWithMenuElements"
PrevScreen=Branch.ExitingHelpMenu()
NextScreen=Branch.ExitingHelpMenu()

[ScreenMapControllers]
DevicesY=SCREEN_TOP+convertForThemeHeight(4)
DevicesOnCommand=vertalign,top;maxheight,convertForThemeHeight(92);zoom,convertForThemeHeight(0.75);draworder,5;strokecolor,color("0,0,0,1")
ListHeaderP1S1Command=x,SCREEN_CENTER_X-convertForThemeHeight(270)
ListHeaderP1S2Command=x,SCREEN_CENTER_X-convertForThemeHeight(195)
ListHeaderP1S3Command=x,SCREEN_CENTER_X-convertForThemeHeight(120)
ListHeaderP2S1Command=x,SCREEN_CENTER_X+convertForThemeHeight(120)
ListHeaderP2S2Command=x,SCREEN_CENTER_X+convertForThemeHeight(195)
ListHeaderP2S3Command=x,SCREEN_CENTER_X+convertForThemeHeight(270)
ListHeaderCenterOnCommand=x,SCREEN_CENTER_X;y,convertForThemeHeight(-6);zoom,convertForThemeHeight(0.7);shadowlength,1;ztest,true
ListHeaderOnCommand=diffuse,color("#808080");shadowlength,0;max_dimension_use_zoom,true;zoom,convertForThemeHeight(0.75);maxwidth,convertForThemeHeight(130);
MappedToP1S1Command=x,SCREEN_CENTER_X-convertForThemeHeight(270)
MappedToP1S2Command=x,SCREEN_CENTER_X-convertForThemeHeight(195)
MappedToP1S3Command=x,SCREEN_CENTER_X-convertForThemeHeight(120)
MappedToP2S1Command=x,SCREEN_CENTER_X+convertForThemeHeight(120)
MappedToP2S2Command=x,SCREEN_CENTER_X+convertForThemeHeight(195)
MappedToP2S3Command=x,SCREEN_CENTER_X+convertForThemeHeight(270)
MappedToOnCommand=diffuse,color("#808080");shadowlength,0;zoom,convertForThemeHeight(0.75);max_dimension_use_zoom,true;maxwidth,convertForThemeHeight(130)
LineScrollerOnCommand=%function(self) self:draworder(-1); self:y(convertForThemeHeight(64)) self:setsecondsperitem(0.1) self:SetTransformFromHeight(convertForThemeHeight(20)) end
LabelP1OnCommand=x,SCREEN_CENTER_X*0.4;zoom,convertForThemeHeight(0.7);shadowlength,1
LabelP1OffCommand=linear,0.5;diffusealpha,0
LabelP2OnCommand=x,SCREEN_CENTER_X*1.6;zoom,convertForThemeHeight(0.7);shadowlength,1
LabelP2OffCommand=linear,0.5;diffusealpha,0
PrimaryOnCommand=x,SCREEN_CENTER_X;y,-6;zoom,convertForThemeHeight(0.7);shadowlength,1;ztest,true
SecondaryOnCommand=x,SCREEN_CENTER_X;y,6;zoom,convertForThemeHeight(0.5);shadowlength,1;ztest,true

[ScreenOptions]
ExplanationTogetherY=SCREEN_CENTER_Y+convertForThemeHeight(174)
ExplanationTogetherOnCommand=stoptweening;shadowlength,0;zoom,convertForThemeHeight(0.75);wrapwidthpixels,(SCREEN_WIDTH*0.9375)*1.25;cropright,1;linear,0.5;cropright,0
RowPositionTransformFunction=function(self,offsetFromCenter,itemIndex,numItems) self:y(SCREEN_CENTER_Y-convertForThemeHeight(146)+convertForThemeHeight(36)*offsetFromCenter) end
SeparateExitRowY=SCREEN_CENTER_Y+convertForThemeHeight(140)

[ScreenOptionsSimple]
ExplanationTogetherY=SCREEN_CENTER_Y+convertForThemeHeight(174)
ExplanationTogetherOnCommand=stoptweening;shadowlength,0;zoom,convertForThemeHeight(0.75);wrapwidthpixels,(SCREEN_WIDTH*0.9375)*1.25;cropright,1;linear,0.5;cropright,0
RowPositionTransformFunction=function(self,offsetFromCenter,itemIndex,numItems) self:y(SCREEN_CENTER_Y-convertForThemeHeight(146)+convertForThemeHeight(30)*offsetFromCenter) end

[ScreenOptionsService]
LineNames="GameType,GraphicSound,KeyConfig,InputOptions,SoundGraphics,Profiles,Network,Advanced"
RowPositionTransformFunction=function(self,offsetFromCenter,itemIndex,numItems) self:y(SCREEN_CENTER_Y-convertForThemeHeight(146)+convertForThemeHeight(28)*offsetFromCenter) end

[ScreenOptionsServiceChild]
ExplanationTogetherY=SCREEN_CENTER_Y+convertForThemeHeight(174)
ExplanationTogetherOnCommand=stoptweening;shadowlength,0;zoom,convertForThemeHeight(0.75);wrapwidthpixels,(SCREEN_WIDTH*0.9375)*1.25;cropright,1;linear,0.5;cropright,0
RowPositionTransformFunction=function(self,offsetFromCenter,itemIndex,numItems) self:y(SCREEN_CENTER_Y-convertForThemeHeight(146)+convertForThemeHeight(36)*offsetFromCenter) end

[ScreenPlayerOptions]
ExplanationP1Y=SCREEN_CENTER_Y+convertForThemeHeight(190)
ExplanationP1OnCommand=shadowlength,1;wrapwidthpixels,SCREEN_WIDTH/2/convertForThemeHeight(0.5);zoom,convertForThemeHeight(0.5);halign,0;cropright,1;linear,0.5;cropright,0;
#Main Page
LineRS="lua,ReceptorSize()"
LineCG="lua,CustomizeGameplay()"
Expand Down

0 comments on commit ac3551b

Please sign in to comment.