Initial commit.

This commit is contained in:
AJ Kelly
2010-01-26 21:00:30 -06:00
parent 80057f53cd
commit 3e51544930
4074 changed files with 588945 additions and 543956 deletions
@@ -0,0 +1 @@
return Def.Actor { }
@@ -0,0 +1,12 @@
local File, Width = ...
assert( File );
assert( Width );
local FullFile = THEME:GetPathB('','_frame files 3x1/'..File )
local Frame = LoadActor( FullFile )
return Def.ActorFrame {
Frame .. { InitCommand=cmd(setstate,0;pause;horizalign,right;x,-Width/2) };
Frame .. { InitCommand=cmd(setstate,1;pause;zoomtowidth,Width) };
Frame .. { InitCommand=cmd(setstate,2;pause;horizalign,left;x,Width/2) };
};
@@ -0,0 +1,18 @@
local File, Width, Height = ...
assert( File );
assert( Width );
assert( Height );
local FullFile = THEME:GetPathB('','_frame files 3x3/'..File )
local Frame = LoadActor( FullFile )
return Def.ActorFrame {
Frame .. { InitCommand=cmd(setstate,0;pause;horizalign,right;vertalign,bottom;x,-Width/2;y,-Height/2) };
Frame .. { InitCommand=cmd(setstate,1;pause;zoomtowidth,Width;vertalign,bottom;zoomtowidth,Width;y,-Height/2) };
Frame .. { InitCommand=cmd(setstate,2;pause;horizalign,left;vertalign,bottom;x,Width/2;y,-Height/2) };
Frame .. { InitCommand=cmd(setstate,3;pause;horizalign,right;x,-Width/2;zoomtoheight,Height) };
Frame .. { InitCommand=cmd(setstate,4;pause;zoomtowidth,Width;zoomtoheight,Height) };
Frame .. { InitCommand=cmd(setstate,5;pause;horizalign,left;x,Width/2;zoomtoheight,Height) };
Frame .. { InitCommand=cmd(setstate,6;pause;horizalign,right;vertalign,top;x,-Width/2;y,Height/2) };
Frame .. { InitCommand=cmd(setstate,7;pause;zoomtowidth,Width;vertalign,top;zoomtowidth,Width;y,Height/2) };
Frame .. { InitCommand=cmd(setstate,8;pause;horizalign,left;vertalign,top;x,Width/2;y,Height/2) };
};
@@ -0,0 +1,8 @@
local t = Def.ActorFrame { };
t[#t+1] = LoadActor( THEME:GetPathB("","_shared background normal") );
t[#t+1] = LoadActor( THEME:GetPathB("","_fade in normal") ) .. {
OnCommand=cmd(playcommand,"StartTransitioning");
};
return t;
@@ -0,0 +1,7 @@
# This "font" just pulls in default characters for a 16-pixel
# font. Other import fonts can be created for other sizes.
# Also, themes can create new fonts, and overload this file to
# have them pulled in for every 16-pixel font.
[main]
import=_meiryo Bold 16px,_korean 16px,_misc 16px,_game chars 16px
+15
View File
@@ -0,0 +1,15 @@
# This "font" just pulls in default characters for a 20-pixel
# font. Other import fonts can be created for other sizes.
# Also, themes can create new fonts, and overload this file to
# have them pulled in for every 20-pixel font.
[main]
# We don't have a 20px Japanese font, so use the 24px one instead;
# pulling in a Kanji font that's a little too big looks fine, but
# pulling in one that's a little too small looks bad.
# The characters in _game chars 16px are actually very large; they'll
# look fine here, too.
import=_japanese 24px,_korean 24px,_game chars 16px
# XXX ,_misc 16px
Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

@@ -0,0 +1,46 @@
[common]
Top=8
Baseline=23
LineSpacing=20
DefaultWidth=20
TextureHints=grayscale 16bpp
[jamo 1]
line 0=경고교굴기길나넛
line 1=놀누는니단도듀라
line 2=랑래랩레련로론루
line 3=를리막매맨머몽밀
line 4=바박배뱃뱩뱻벗브
line 5=삐사샤서션스승신
line 6=써쓰애야어에영옝
line 7=와요워위유윤이잉
[jamo 2]
line 0=자잦잭젠준지직찾
line 1=책초치캉커쿨크클
line 2=키타틴파팍패플피
line 3=하허혁현혠화정꿔
line 4=와부담별컨츄꼬백
line 5=호심아름다운대한
line 6=민국성숙가감강같
line 7=거건검게곡과구그
[jamo 3]
line 0=김께꼭꾸꿍난널네
line 1=녀논눈님더돌둥드
line 2=들따때또뛰띠렁렛
line 3=룰른만말면모몰뫼
line 4=뭐미발밴봐비뻐뻤
line 5=뿌상소속수싫않알
line 6=양억언엄업여연예
line 7=오올우울원은을의
[jamo 4]
line 0=잊제젝조존좋줘증
line 1=진집짜착찬처추칼
line 2=큰탑터투트티펌페
line 3=폼핑할함해행헤혀
line 4=환회휘태난터까시
line 5=간너샐러버문쳐달
line 6=깡천림홍석
Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

@@ -0,0 +1,45 @@
[common]
Top=5
Baseline=26
LineSpacing=28
DefaultWidth=28
TextureHints=grayscale 16bpp
[jamo 1]
line 0=경고교굴기길나넛
line 1=놀누는니단도듀라
line 2=랑래랩레련로론루
line 3=를리막매맨머몽밀
line 4=바박배뱃뱩뱻벗브
line 5=삐사샤서션스승신
line 6=써쓰애야어에영옝
line 7=와요워위유윤이잉
[jamo 2]
line 0=자잦잭젠준지직찾
line 1=책초치캉커쿨크클
line 2=키타틴파팍패플피
line 3=하허혁현혠화정꿔
line 4=와부담별컨츄꼬백
line 5=호심아름다운대한
line 6=민국성숙가감강같
line 7=거건검게곡과구그
[jamo 3]
line 0=김께꼭꾸꿍난널네
line 1=녀논눈님더돌둥드
line 2=들따때또뛰띠렁렛
line 3=룰른만말면모몰뫼
line 4=뭐미발밴봐비뻐뻤
line 5=뿌상소속수싫않알
line 6=양억언엄업여연예
line 7=오올우울원은을의
[jamo 4]
line 0=잊제젝조존좋줘증
line 1=진집짜착찬처추칼
line 2=큰탑터투트티펌페
line 3=폼핑할함해행헤혀
line 4=환회휘태난터까시
line 5=간너샐러버문쳐달
line 6=깡천림홍석
Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 493 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 395 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

File diff suppressed because it is too large Load Diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

@@ -0,0 +1,353 @@
[common]
Baseline=15
Top=5
LineSpacing=16
DrawExtraPixelsLeft=1
DrawExtraPixelsRight=1
AdvanceExtraPixels=0
DefaultStrokeColor=#FFFFFF00
[main]
Line 0= !"#$%&'()*+,-.
Line 1=/0123456789:;<=
Line 2=>?@ABCDEFGHIJKL
Line 3=MNOPQRSTUVWXYZ[
Line 4=\]^_`abcdefghij
Line 5=klmnopqrstuvwxy
Line 6=z{|}~€‚ƒ„…†‡ˆ‰Š
Line 7=‹ŒŽ‘’“”•–—˜™š›œ
Line 8=žŸ ¡¢£¤¥¦§¨©ª«¬
Line 9=­®¯°±²³´µ¶·¸¹º»
Line 10=¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊ
Line 11=ËÌÍÎÏÐÑÒÓÔÕÖרÙ
Line 12=ÚÛÜÝÞßàáâãäåæçè
Line 13=éêëìíîïðñòóôõö÷
Line 14=øùúûüýþÿ
0=3
1=4
2=5
3=8
4=7
5=10
6=10
7=3
8=6
9=6
10=6
11=8
12=4
13=6
14=4
15=6
16=9
17=4
18=8
19=7
20=7
21=8
22=9
23=7
24=9
25=9
26=4
27=4
28=8
29=8
30=8
31=7
32=10
33=8
34=9
35=8
36=9
37=8
38=8
39=9
40=9
41=4
42=7
43=9
44=8
45=11
46=9
47=9
48=8
49=9
50=9
51=8
52=7
53=9
54=8
55=12
56=9
57=8
58=8
59=6
60=6
61=6
62=7
63=8
64=4
65=7
66=7
67=7
68=7
69=7
70=4
71=7
72=8
73=3
74=3
75=7
76=3
77=11
78=8
79=8
80=7
81=7
82=5
83=7
84=4
85=7
86=7
87=9
88=8
89=7
90=7
91=6
92=3
93=6
94=8
95=8
96=3
97=15
98=6
99=12
100=8
101=8
102=6
103=14
104=8
105=8
106=14
107=8
108=3
109=3
110=6
111=6
112=6
113=8
114=10
115=4
116=13
117=7
118=8
119=12
120=7
121=8
122=8
123=4
124=7
125=7
126=15
127=8
128=3
129=15
130=5
131=11
132=5
133=7
134=20
135=20
136=9
137=20
138=7
139=15
140=5
141=5
142=4
143=15
144=9
145=4
146=5
147=4
148=6
149=7
150=4
151=4
152=4
153=7
154=8
155=8
156=8
157=8
158=8
159=8
160=12
161=8
162=8
163=8
164=8
165=8
166=3
167=3
168=3
169=3
170=9
171=9
172=9
173=9
174=9
175=9
176=9
177=7
178=9
179=9
180=9
181=9
182=9
183=8
184=8
185=8
186=7
187=7
188=7
189=7
190=7
191=7
192=12
193=7
194=7
195=7
196=7
197=7
198=3
199=3
200=4
201=3
202=7
203=8
204=8
205=8
206=8
207=8
208=8
209=7
210=8
211=7
212=7
213=7
214=7
215=7
216=7
217=7
[alt]
Line 0= Ą˘Ł¤ĽŚ§¨Š
Line 1=ŞŤŹ­ŽŻ°ą˛ł
Line 2=´ľśˇ¸šşťź˝
Line 3=žżŔÁÂĂÄĹĆÇ
Line 4=ČÉĘËĚÍÎĎĐŃ
Line 5=ŇÓÔŐÖ×ŘŮÚŰ
Line 6=ÜÝŢßŕáâăäĺ
Line 7=ćçčéęëěíîď
Line 8=đńňóôőö÷řů
Line 9=úűüýţ˙
0=8
1=20
2=15
3=8
4=15
5=20
6=20
7=15
8=5
9=8
10=20
11=20
12=20
13=20
14=8
15=20
16=7
17=20
18=15
19=4
20=4
21=20
22=20
23=6
24=5
25=7
26=20
27=20
28=20
29=13
30=7
31=20
32=20
33=8
34=8
35=20
36=8
37=20
38=20
39=8
40=20
41=8
42=20
43=8
44=20
45=3
46=3
47=20
48=20
49=20
50=20
51=9
52=9
53=20
54=9
55=7
56=20
57=20
58=9
59=20
60=9
61=8
62=20
63=8
64=20
65=7
66=7
67=20
68=7
69=20
70=20
71=7
72=20
73=7
74=20
75=7
76=20
77=3
78=4
79=20
80=20
81=20
82=20
83=8
84=8
85=20
86=8
87=7
88=20
89=20
90=7
91=20
92=7
93=7
94=20
95=15
@@ -0,0 +1 @@
_blank
@@ -0,0 +1,10 @@
return LoadFont("Common Normal") .. {
Text="Exit";
InitCommand=cmd(x,SCREEN_CENTER_X;zoom,0.75;shadowlength,0;diffuse,color("#808080"));
OnCommand=cmd(diffusealpha,0;decelerate,0.5;diffusealpha,1);
OffCommand=cmd(stoptweening;accelerate,0.3;diffusealpha,0;queuecommand,"Hide");
HideCommand=cmd(hidden,true);
GainFocusCommand=cmd(diffuseshift;effectcolor2,color("#808080");effectcolor1,color("#FFFFFF"));
LoseFocusCommand=cmd(stopeffect);
};
@@ -0,0 +1 @@
_blank
@@ -0,0 +1 @@
_blank
@@ -0,0 +1 @@
_blank
@@ -0,0 +1 @@
_blank
@@ -0,0 +1 @@
_blank
@@ -0,0 +1 @@
_blank
@@ -0,0 +1 @@
_blank
@@ -0,0 +1 @@
_blank
@@ -0,0 +1 @@
_blank
@@ -0,0 +1,10 @@
return Def.HelpDisplay {
File = THEME:GetPathF("HelpDisplay", "text");
InitCommand=function(self)
local s = THEME:GetMetric(Var "LoadingScreen","HelpText");
self:SetTipsColonSeparated(s);
end;
SetHelpTextCommand=function(self, params)
self:SetTipsColonSeparated( params.Text );
end;
};
@@ -0,0 +1 @@
_blank
@@ -0,0 +1 @@
_blank
@@ -0,0 +1 @@
_blank
@@ -0,0 +1 @@
_blank
+167
View File
@@ -0,0 +1,167 @@
--
-- Load a resizable 1-d frame. p contains an odd number of parts.
-- Even parts are resized; odd parts are not (unless the requested
-- width is too small). The frame is centered on the midway part
-- of p; parts to the left and right are anchored on the inside.
--
-- A 3-part frame; the center third is dynamic, expanding outwards
-- in both directions:
-- p = { 1/3, 1/3, 1/3 };
-- --oo--
-- --oooooooooo--
--
-- A 2-part frame. The left half is static, the right side dynamic;
-- the left part stays in place as the right half expands to the right,
-- with the frame centered on the boundary:
-- <<--
-- <<-----------
-- p = { 1/2, 0, 0, 1/2, 0 };
--
-- A 5-part frame, with an anchored center and static caps on each
-- end, expanding outwards:
-- <<--oo-->>
-- <<----------oo---------->>
-- p = { 1/5, 1/5, 1/10, 0, 1/10, 1/5, 1/5 };
--
local p, a = ...
assert( (#p%2) == 1 );
local t = Def.ActorFrame {
};
local Widths = { }
local TextureXPos = 0
for i = 1,#p do
t[i] = a .. {
Name = tostring(i);
InitCommand = function(self)
if i < math.ceil(#p/2) then self:horizalign("HorizAlign_Right");
elseif i == math.ceil(#p/2) then self:horizalign("HorizAlign_Center");
else self:horizalign("HorizAlign_Left");
end
Widths[i] = self:GetWidth();
end;
SetPartSizeCommand = function(self, params)
self:x( params.XPos[i] );
self:zoomtowidth( params.Zooms[i] );
end;
};
local Width = p[i];
t[i].Frames =
{
{ -- state 0
{ x=TextureXPos, y=0 }, -- top-left
{ x=(TextureXPos+Width), y=1 } -- bottom-right
}
};
TextureXPos = TextureXPos + Width;
end
t.InitCommand = function(self, params)
local Child = self:GetChild("1");
local Height = Child:GetHeight();
self:SetHeight(Height);
end
t.SetPartSizeCommand = function(self, params)
self:zoomx( params.FrameZoom );
end
t.SetSizeCommand = function(self, params)
local Width = params.Width;
assert( Width );
self:SetWidth( Width );
if params.tween then
params.tween(self);
self:RunCommandsOnChildren( params.tween );
end;
local UnscaledPartWidth = 0;
local ScaledPartWidth = 0;
for i = 1,#p do
if(i%2)==0 then
ScaledPartWidth = ScaledPartWidth + Widths[i];
else
UnscaledPartWidth = UnscaledPartWidth + Widths[i];
end
end
local WidthToScale = Width - UnscaledPartWidth;
local CurrentScaledPartWidth = math.max( WidthToScale, 0 );
params.Zooms = {};
params.XPos = {};
local pos = 0;
for i = math.ceil(#p/2),1,-1 do
local ThisScaledPartWidth = Widths[i];
if (i % 2) == 0 then
ThisScaledPartWidth = scale( CurrentScaledPartWidth, 0, ScaledPartWidth, 0, Widths[i] );
end
params.XPos[i] = pos;
if i == math.ceil(#p/2) then
pos = pos - ThisScaledPartWidth/2;
else
pos = pos - ThisScaledPartWidth;
end
params.Zooms[i] = ThisScaledPartWidth;
end
pos = 0;
for i = math.ceil(#p/2),#p do
local ThisScaledPartWidth = Widths[i];
if (i % 2) == 0 then
ThisScaledPartWidth = scale( CurrentScaledPartWidth, 0, ScaledPartWidth, 0, Widths[i] );
end
params.XPos[i] = pos;
if i == math.ceil(#p/2) then
pos = pos + ThisScaledPartWidth/2;
else
pos = pos + ThisScaledPartWidth;
end
params.Zooms[i] = ThisScaledPartWidth;
end
params.FrameZoom = math.min(Width / UnscaledPartWidth, 1);
self:playcommand("SetPartSize", params);
end
return t;
--
-- (c) 2007 Glenn Maynard
-- All rights reserved.
--
-- Permission is hereby granted, free of charge, to any person obtaining a
-- copy of this software and associated documentation files (the
-- "Software"), to deal in the Software without restriction, including
-- without limitation the rights to use, copy, modify, merge, publish,
-- distribute, and/or sell copies of the Software, and to permit persons to
-- whom the Software is furnished to do so, provided that the above
-- copyright notice(s) and this permission notice appear in all copies of
-- the Software and that both the above copyright notice(s) and this
-- permission notice appear in supporting documentation.
--
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
-- THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS
-- INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT
-- OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
-- OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
-- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-- PERFORMANCE OF THIS SOFTWARE.
--
@@ -0,0 +1 @@
_blank
+3
View File
@@ -0,0 +1,3 @@
-- sm-ssc _fallback to StepMania 4 default compatibility layer.
if not ScreenString then ScreenString = Screen.String; end;
if not ScreenMetric then ScreenMetric = Screen.Metric; end;
+286
View File
@@ -0,0 +1,286 @@
function ScreenTitleBranch()
-- Don't show the title menu (says "Press Start") if there are 0 credits
-- inserted and CoinMode is pay.
if GAMESTATE:GetCoinsNeededToJoin() > GAMESTATE:GetCoins() then
return THEME:GetMetric( "Common", "InitialScreen" )
end
if GAMESTATE:GetCoinMode() == "CoinMode_Home" then return "ScreenTitleMenu" end
return "ScreenTitleJoin"
end
function ScreenCautionBranch()
if PREFSMAN:GetPreference("ShowCaution") then return "ScreenCaution" end
return "ScreenSelectStyle"
end
function ScreenSelectGroupBranch()
if PREFSMAN:GetPreference("ShowSelectGroup") then return "ScreenSelectGroup" end
return GetScreenInstructions()
end
function SongSelectionScreen()
local pm = GAMESTATE:GetPlayMode()
if pm ~= "PlayMode_Regular" and IsNetConnected() then
SCREENMAN:SystemMessage( THEME:GetString("NetworkSyncManager","Not Supported") )
return "ScreenSelectDifficulty"
end
if pm == "PlayMode_Nonstop" then return "ScreenSelectCourseNonstop" end
if pm == "PlayMode_Oni" then return "ScreenSelectCourseOni" end
if pm == "PlayMode_Endless" then return "ScreenSelectCourseEndless" end
if IsNetConnected() then ReportStyle() end
if IsNetSMOnline() then return SMOnlineScreen() end
if IsNetConnected() then return "ScreenNetSelectMusic" end
return "ScreenSelectMusic"
end
function ScreenSelectMusicBranch()
if IsNetConnected() then ReportStyle() end
if IsNetSMOnline() then return SMOnlineScreen() end
if IsNetConnected() then return "ScreenNetSelectMusic" end
return "ScreenSelectMusic"
end
function NextNetworkScreen()
if IsNetConnected() then return "ScreenCaution" end
return "ScreenTitleMenu"
end
function SMOnlineScreen()
if not IsSMOnlineLoggedIn(PLAYER_1) and GAMESTATE:IsPlayerEnabled(PLAYER_1) then return "ScreenSMOnlineLogin" end
if not IsSMOnlineLoggedIn(PLAYER_2) and GAMESTATE:IsPlayerEnabled(PLAYER_2) then return "ScreenSMOnlineLogin" end
return "ScreenNetRoom"
end
function GetSelectMusicNext()
if SCREENMAN:GetTopScreen():GetGoToOptions() then
return SelectFirstOptionsScreen()
else
return "ScreenStage"
end
end
function SelectFirstOptionsScreen()
if GAMESTATE:GetPlayMode() == "PlayMode_Rave" then return "ScreenRaveOptions" end
return "ScreenPlayerOptions"
end
function ScreenPlayerOptionsNext()
if SCREENMAN:GetTopScreen():GetGoToOptions() then
return "ScreenSongOptions"
else
return "ScreenStage"
end
end
function GetGameplayScreen()
local st = GAMESTATE:GetCurrentStyle():GetStyleType()
if st == "StyleType_TwoPlayersSharedSides" then return "ScreenGameplayShared" end
return "ScreenGameplay"
end
function SelectEvaluationScreen()
if IsNetConnected() then return "ScreenNetEvaluation" end
local pm = GAMESTATE:GetPlayMode()
if( GAMESTATE:GetMultiplayer() ) then return "ScreenEvaluationMultiplayer" end
if( pm == "PlayMode_Regular" ) then return "ScreenEvaluationStage" end
if( pm == "PlayMode_Nonstop" ) then return "ScreenEvaluationNonstop" end
if( pm == "PlayMode_Oni" ) then return "ScreenEvaluationOni" end
if( pm == "PlayMode_Endless" ) then return "ScreenEvaluationEndless" end
if( pm == "PlayMode_Rave" ) then return "ScreenEvaluationRave" end
if( pm == "PlayMode_Battle" ) then return "ScreenEvaluationBattle" end
end
function GetTopScreenMetric( sElement )
local sClass = SCREENMAN:GetTopScreen():GetName();
return THEME:GetMetric( sClass, sElement )
end
local function GetEvaluationNextScreenInternal( sNextScreen, sFailedScreen, sEndScreen )
Trace( "GetEvaluationNextScreen: " .. sNextScreen .. ", " .. sFailedScreen .. ", " .. sEndScreen )
if GAMESTATE:IsEventMode() then
Trace( "IsEventMode" )
return sNextScreen
end
local bIsExtraStage = GAMESTATE:IsAnExtraStage()
-- Not in event mode. If failed, go to the game over screen.
if STATSMAN:GetCurStageStats():AllFailed() and not bIsExtraStage then
Trace( "Failed" )
return sFailedScreen
end
local sIsStage = not GetTopScreenMetric( "Summary" ) and not GAMESTATE:IsCourseMode()
if sIsStage then
local bLastStage = GAMESTATE:GetSmallestNumStagesLeftForAnyHumanPlayer() <= 0
if not bLastStage then
Trace( "Another" )
return sNextScreen
end
end
Trace( "End" )
return sEndScreen
end
function GetEvaluationSummaryNextScreen()
return GetEvaluationNextScreenInternal( "ScreenNameEntry", "ScreenProfileSave", "ScreenNameEntry" );
end
function GetEvaluationNextScreen()
if IsEventMode() then
return "ScreenProfileSave";
end
local sFailedScreen;
local sEndScreen;
local pm = GAMESTATE:GetPlayMode();
if pm == "PlayMode_Regular" or
pm == "PlayMode_Rave" then
sFailedScreen = "ScreenProfileSave";
sEndScreen = "ScreenEvaluationSummary";
elseif pm == "PlayMode_Nonstop" or
pm == "PlayMode_Oni" or
pm == "PlayMode_Endless" then
sFailedScreen = "ScreenNameEntry";
sEndScreen = "ScreenNameEntry";
else
assert(false);
end
local sNextScreen;
if IsNetSMOnline() then sNextScreen = "ScreenNetRoom"
elseif( IsNetConnected() ) then sNextScreen = "ScreenNetSelectMusic"
else sNextScreen = SongSelectionScreen(); end
return GetEvaluationNextScreenInternal( sNextScreen, sFailedScreen, sEndScreen );
end
function ScreenBranchNetAfterEval()
if IsNetSMOnline() then return "ScreenSMOnlineSelectMusic" end
if IsNetConnected() then return "ScreenNetSelectMusic" end
return "ScreenSelectMusic"
end
function SelectEndingScreen()
local bIsExtraStage = GAMESTATE:IsAnExtraStage()
if STATSMAN:GetCurStageStats():AllFailed() and not bIsExtraStage then
return "ScreenGameOver"
end
local grade = STATSMAN:GetBestFinalGrade()
if Grade:Compare( grade, "Grade_Tier03" ) >= 0 then return "ScreenEnding3" end
if Grade:Compare( grade, "Grade_Tier05" ) >= 0 then return "ScreenEnding2" end
return "ScreenEnding1"
end
function ScreenProfileSaveNextScreen()
if IsEventMode() then
return SongSelectionScreen();
end
return SelectEndingScreen();
end
function IsEventMode()
return PREFSMAN:GetPreference( "EventMode" )
end
-- For "EvalOnFail", do:
-- function GetGameplayNextScreen() return SelectEvaluationScreen() end
function GetGameplayNextScreen()
Trace( "GetGameplayNextScreen: " )
local Passed = not STATSMAN:GetCurStageStats():AllFailed()
Trace( " Passed = "..tostring(Passed) )
Trace( " IsCourseMode = "..tostring(GAMESTATE:IsCourseMode()) )
Trace( " IsExtraStage = "..tostring(GAMESTATE:IsExtraStage()) )
Trace( " IsExtraStage2 = "..tostring(GAMESTATE:IsExtraStage2()) )
Trace( " Event mode = "..tostring(IsEventMode()) )
return SelectEvaluationScreen()
-- if Passed or GAMESTATE:IsCourseMode() or
-- GAMESTATE:IsExtraStage() or GAMESTATE:IsExtraStage2()
-- then
-- Trace( "Go to evaluation screen" )
-- return SelectEvaluationScreen()
-- end
--
-- if IsEventMode() then
-- Trace( "Go to song selection screen" )
-- -- DeletePreparedScreens()
-- return SongSelectionScreen()
-- end
--
-- Trace( "ScreenGameOver" )
-- return "ScreenGameOver"
end
local function ShowScreenInstructions()
if not PREFSMAN:GetPreference("ShowInstructions") then
return false
end
if not GAMESTATE:GetPlayMode() then
Trace( "ShowScreenInstructions: called without PlayMode set" )
return true
end
if GAMESTATE:GetPlayMode() ~= "PlayMode_Regular" then
return true
end
for pn in ivalues(PlayerNumber) do
if Difficulty:Compare( GAMESTATE:GetPreferredDifficulty(pn), "Difficulty_Easy" ) <= 0 then
return true
end
end
return false
end
function GetScreenInstructions()
if not ShowScreenInstructions() then
return THEME:GetMetric("ScreenInstructions","NextScreen")
else
return "ScreenInstructions"
end
end
function OptionsMenuAvailable()
if GAMESTATE:IsAnExtraStage() then return false end
if GAMESTATE:GetPlayMode() == "PlayMode_Oni" then return false end
return true
end
function ModeMenuAvailable()
if GAMESTATE:IsAnExtraStage() then
return false
end
return true
end
-- (c) 2005 Glenn Maynard, Chris Danford
-- All rights reserved.
--
-- Permission is hereby granted, free of charge, to any person obtaining a
-- copy of this software and associated documentation files (the
-- "Software"), to deal in the Software without restriction, including
-- without limitation the rights to use, copy, modify, merge, publish,
-- distribute, and/or sell copies of the Software, and to permit persons to
-- whom the Software is furnished to do so, provided that the above
-- copyright notice(s) and this permission notice appear in all copies of
-- the Software and that both the above copyright notice(s) and this
-- permission notice appear in supporting documentation.
--
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
-- THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS
-- INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT
-- OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
-- OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
-- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-- PERFORMANCE OF THIS SOFTWARE.
@@ -0,0 +1 @@
_cancel
@@ -0,0 +1 @@
Common start
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
EditMenu row
@@ -0,0 +1 @@
ScreenEdit save
@@ -0,0 +1 @@
EditMenu value
@@ -0,0 +1 @@
_common row
@@ -0,0 +1 @@
_common value
@@ -0,0 +1 @@
_clap
@@ -0,0 +1 @@
_clap
@@ -0,0 +1 @@
_clap
@@ -0,0 +1 @@
_common row
@@ -0,0 +1 @@
_common value
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
_silent.ogg
@@ -0,0 +1 @@
_memcard error
@@ -0,0 +1 @@
_memcard error
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
_prompt
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
_silent
@@ -0,0 +1 @@
_silent
@@ -0,0 +1 @@
Player battle attack ending
@@ -0,0 +1 @@
Player battle attack launch
Binary file not shown.
@@ -0,0 +1 @@
_silent
@@ -0,0 +1 @@
_silent
Binary file not shown.
@@ -0,0 +1 @@
_silent
@@ -0,0 +1 @@
_silent
@@ -0,0 +1 @@
_common row
@@ -0,0 +1 @@
_edit marker

Some files were not shown because too many files have changed in this diff Show More