From d1c9a9d7f15a8778669075ba10d2bb583ea1a81b Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Sat, 10 Sep 2011 12:13:41 -0500 Subject: [PATCH] updates to Hello World --- .../BGAnimations/GuideBase background.redir | 1 + .../BGAnimations/ScreenTitleMenu underlay.lua | 2 +- .../Graphics/ScreenReferenceMain header.lua | 2 +- .../HelloWorld/Graphics/_common/_generic.png | Bin 0 -> 991 bytes Themes/HelloWorld/Languages/en.ini | 6 +- Themes/HelloWorld/metrics.ini | 23 +++++- Themes/HelloWorld/readme.txt | 66 +++++++++++++++++- 7 files changed, 92 insertions(+), 8 deletions(-) create mode 100644 Themes/HelloWorld/BGAnimations/GuideBase background.redir create mode 100644 Themes/HelloWorld/Graphics/_common/_generic.png diff --git a/Themes/HelloWorld/BGAnimations/GuideBase background.redir b/Themes/HelloWorld/BGAnimations/GuideBase background.redir new file mode 100644 index 0000000000..f98a6ace22 --- /dev/null +++ b/Themes/HelloWorld/BGAnimations/GuideBase background.redir @@ -0,0 +1 @@ +ScreenWithMenuElements background \ No newline at end of file diff --git a/Themes/HelloWorld/BGAnimations/ScreenTitleMenu underlay.lua b/Themes/HelloWorld/BGAnimations/ScreenTitleMenu underlay.lua index f859b27bb9..3b01c1c4aa 100644 --- a/Themes/HelloWorld/BGAnimations/ScreenTitleMenu underlay.lua +++ b/Themes/HelloWorld/BGAnimations/ScreenTitleMenu underlay.lua @@ -57,7 +57,7 @@ return Def.ActorFrame { -- Creative Commons logo, using a local file in the same directory: LoadActor( "creativecommons" )..{ - InitCommand=cmd(x,SCREEN_LEFT+64;y,SCREEN_BOTTOM-48;Real); + InitCommand=cmd(x,SCREEN_LEFT+64;y,SCREEN_BOTTOM-43;Real); OnCommand=cmd(addy,32;cropbottom,1;fadebottom,1;decelerate,0.8;cropbottom,0;fadebottom,0;addy,-32); }; -- Making a cheap reflection effect for the sake of showing off the fov and diff --git a/Themes/HelloWorld/Graphics/ScreenReferenceMain header.lua b/Themes/HelloWorld/Graphics/ScreenReferenceMain header.lua index de33fdbea6..d21e98ea0c 100644 --- a/Themes/HelloWorld/Graphics/ScreenReferenceMain header.lua +++ b/Themes/HelloWorld/Graphics/ScreenReferenceMain header.lua @@ -15,7 +15,7 @@ local t = Def.ActorFrame{ LoadFont("_frutiger roman 24px")..{ Name="Header"; Text=THEME:GetString("ScreenReferenceMain","Explanation"); - InitCommand=cmd(x,-312;y,-14;align,0,0;diffuse,color("#111111FF");zoom,0.65;wrapwidthpixels,(SCREEN_WIDTH)*1.45); + InitCommand=cmd(x,-312;y,-14;align,0,0;diffuse,color("#111111FF");zoom,0.65;wrapwidthpixels,(SCREEN_WIDTH)); }; }; }; diff --git a/Themes/HelloWorld/Graphics/_common/_generic.png b/Themes/HelloWorld/Graphics/_common/_generic.png new file mode 100644 index 0000000000000000000000000000000000000000..687ff39b0aed18a337ee2e61347e75b1b1c4de18 GIT binary patch literal 991 zcmV<510ei~P)WdKuQbRaP>AX8;5ehc`F>nn4000SaNLh0L01FZT01FZU(%pXi00004XF*Lt006O%3;baP0009v zNkl@ z^!`anoP2jVY-2y```NPOC%I|PI&EE4J=^u|FKNG@uWIG02LQ~EpLgqvdDFbiH_Nlt z_V9m|Ak+bnGVin}2;~7#%y6(QIHuryx@ zf*k-b@63L@*_aO@+&%8rjUZf_n+Gk7jQjFq!nvru%8c|BL-TNTCZC(->By!EVDSv@ z1Ra2sc_$47N<1Y5IRJ`z4Fpa+1q2xYj(G_LNjxD0J^+b%4g^g+0R$cZjd=1Ft zFC*bj!0F_2c-pJBx?1h)CPw=-GKnY2F~$Kauh$5KZWVAlY7`_eF!L1k zs)JR61+=XKT>zFjyrxl^??C`rmTwE-$|fRGcrgF{zT0r~Ks(Sord<+`5vq6)zn(MCg+T5KJ5_iYTF3JN zfMD3GM2?a5GQ@#kk;8Kkq~=o)#IM5?2u2B!qVZG-krV{bA?E}^jJ#kvCm4G$9=e!G zQQEkGyA%BJ`9rP(Zhit`Y=AZ{5Z(#7_kT`dOT=T$A~_F@@y@1%aP)(t8VG|K9+yBE z+yn^@guzacp+Fe?B&iexka3RD+C0c+o*)z?9G|yVI6uK?qU3q1tSJC%2uC+r+7iOi zPM5cUaP%KcXdn#clNkww!F@EvfiT$5<|q&b|KX$$fuf3^&YpGZ`U4}%={&ubV^{zH N002ovPDHLkV1h52oe2N{ literal 0 HcmV?d00001 diff --git a/Themes/HelloWorld/Languages/en.ini b/Themes/HelloWorld/Languages/en.ini index e565cf168a..d0105f8015 100644 --- a/Themes/HelloWorld/Languages/en.ini +++ b/Themes/HelloWorld/Languages/en.ini @@ -1,5 +1,5 @@ [Common] -WindowTitle=Hello World (and other sm-ssc theming examples) +WindowTitle=Hello World (and other StepMania 5 theming examples) [ScreenTitleMenu] Guide=Guide @@ -8,7 +8,7 @@ Tutorial=Tutorials [ScreenGuideMain] Header=Guide -Explanation=The Guide section is meant for beginners who may not know the ins and outs of the StepMania theming system. It is also useful for themers coming from earlier versions of StepMania, as some things have changed in sm-ssc. +Explanation=The Guide section is meant for beginners who may not know the ins and outs of the StepMania theming system. It is also useful for themers coming from earlier versions of StepMania, as some things have changed in StepMania 5. Metrics=Metrics MetricsDesc=Metrics and Languages (since they're similar). @@ -36,7 +36,7 @@ Header=Reference Explanation=This section contains reference material. It is meant for themers who already somewhat know what they are looking for. Screens=Screens -ScreensDesc=A reference of all of sm-ssc's available screens. +ScreensDesc=A reference of all of StepMania 5's available screens. Managers=Managers and Singletons ManagersDesc=Various things that end in "Manager" (and sometimes not). Classes=Classes diff --git a/Themes/HelloWorld/metrics.ini b/Themes/HelloWorld/metrics.ini index ec6aa6bf85..a0b2e5a215 100644 --- a/Themes/HelloWorld/metrics.ini +++ b/Themes/HelloWorld/metrics.ini @@ -109,10 +109,13 @@ ScrollerTransform=function(self,offset,itemIndex,numItems) self:y((itemIndex-(nu [GuideBase] Class="ScreenSelectMaster" Fallback="ScreenSelectMaster" +PrevScreen="ScreenGuideMain" ## Metrics [GuideMetrics] Fallback="GuideBase" +### Metrics +### Languages ## Fonts [GuideFonts] @@ -188,6 +191,7 @@ ScrollerTransform=function(self,offset,itemIndex,numItems) self:y((itemIndex-(nu [ReferenceBase] Class="ScreenSelectMaster" Fallback="ScreenSelectMaster" +PrevScreen="ScreenReferenceMain" ## Screens [ReferenceScreens] @@ -272,10 +276,25 @@ Fallback="ReferenceBase" ### Trail [ReferenceTrail] -### and a ton of missing stuff +### and a ton of other missing stuff ################################################################################ # [tutor] Tutorials are guides to implementing specific things # +# All tutorial pages aside from ScreenTutorialMain MUST be prefixed with "Tutorial" +# in order to differentiate them from the core screens. [ScreenTutorialMain] +Class="ScreenSelectMaster" +Fallback="ScreenSelectMaster" +PrevScreen="ScreenTitleMenu" +AllowRepeatingInput=true -# todo: figure out what tutorials \ No newline at end of file +# modifying header position +HeaderY=SCREEN_TOP+72 + +# todo: figure out what tutorials + +# tutorial base screen (you know the drill by now -aj) # +[TutorialBase] +Class="ScreenSelectMaster" +Fallback="ScreenSelectMaster" +PrevScreen="ScreenTutorialMain" \ No newline at end of file diff --git a/Themes/HelloWorld/readme.txt b/Themes/HelloWorld/readme.txt index f834df5f0f..8cd60436cb 100644 --- a/Themes/HelloWorld/readme.txt +++ b/Themes/HelloWorld/readme.txt @@ -35,7 +35,7 @@ Table of Contents ================================================================================ Introduction [intro] -Hello, and welcome to Hello World (and other sm-ssc theming examples). +Welcome to Hello World (and other sm-ssc theming examples). This theme and accompanying documentation are provided for people new to theming for StepMania, using sm-ssc as a base. @@ -47,6 +47,70 @@ sm-ssc theming. The Guide is a general run-through of how Themes are constructed (along with NoteSkins, Announcers, and Characters) +================================================================================ +Guide [guide] +This section covers the basics of theming for StepMania. + +-------------------------------------------------------------------------------- +Metrics and Languages [g_met] + +Both the metrics and languages use the .ini format, so they're being lumped +together. If you're not familiar with an .ini file, here's the basics: + +# comment +[Section] +Key=Value + +This is simple enough for the languages, but the metrics require some more +knowledge to work with. + +-------------------------------------------------------------------------------- +Fonts [g_fon] + +-------------------------------------------------------------------------------- +Graphics [g_gfx] + +-------------------------------------------------------------------------------- +BGAnimations [g_bga] + +BGAnimations are the heart of any theme. Ever since late 2007, they've been +created using Lua. + +-------------------------------------------------------------------------------- +Sounds [g_sfx] + +-------------------------------------------------------------------------------- +Scripts [g_scr] + +Though Lua scripting has been available in StepMania since 2006, the current +iteration is a lot more powerful than before. This is mainly due to the +additional bindings added during sm-ssc (carried over to SM5). + +-------------------------------------------------------------------------------- +Other [g_oth] + +Ever wonder what all those files in the Other folder are for? + +-------------------------------------------------------------------------------- +NoteSkins [g_not] + +jousway is probably gonna have to work on this. + +-------------------------------------------------------------------------------- +Announcers [g_ann] + +Announcers are somewhat of a lost art. + +-------------------------------------------------------------------------------- +Characters [g_cha] + +This guide won't teach you how to model or animate, sorry. + +================================================================================ +Reference [ref] +This section contains a reference of various elements in StepMania. +For a reference of Lua bindings, check http://kki.ajworld.net/lua/sm5/Lua.xml + ================================================================================ Contributors [creds]