xml->lua for files that use %
This commit is contained in:
@@ -1 +1 @@
|
||||
_shared edit courses.xml
|
||||
_shared edit courses
|
||||
|
||||
@@ -1 +1 @@
|
||||
_shared edit courses.xml
|
||||
_shared edit courses
|
||||
|
||||
@@ -1 +1 @@
|
||||
_shared edit courses.xml
|
||||
_shared edit courses
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
local frame = Def.ActorFrame
|
||||
{
|
||||
OnCommand=cmd(x,SCREEN_CENTER_X+180;y,SCREEN_CENTER_Y);--;addx,SCREEN_WIDTH/2;decelerate,0.5;addx,-SCREEN_WIDTH/2);
|
||||
OffCommand=cmd(accelerate,0.5;addx,SCREEN_WIDTH/2);
|
||||
children = {
|
||||
Def.BitmapText {
|
||||
Font="Common Normal";
|
||||
Text="";
|
||||
OnCommand=cmd(horizalign,left;x,-80;y,-130;zoom,0.65;playcommand,"CurrentCourseChanged");
|
||||
CurrentCourseChangedMessageCommand=function(self)
|
||||
local c = GAMESTATE:GetCurrentCourse()
|
||||
if c then
|
||||
self:settext( c:GetDisplayFullTitle() )
|
||||
else
|
||||
self:settext( "" )
|
||||
end
|
||||
end;
|
||||
};
|
||||
Def.BitmapText {
|
||||
Font="Common Normal";
|
||||
Text="";
|
||||
OnCommand=cmd(horizalign,left;x,-80;y,-100;zoom,0.65;playcommand,"CurrentTrailP1Changed");
|
||||
CurrentTrailP1ChangedMessageCommand=function(self)
|
||||
local t = GAMESTATE:GetCurrentTrail( PLAYER_1 )
|
||||
if t then
|
||||
local st = GAMEMAN:StepsTypeToLocalizedString( t:GetStepsType() )
|
||||
local cd = CourseDifficultyToLocalizedString( t:GetDifficulty() )
|
||||
self:settext( st .. ", " .. cd )
|
||||
else
|
||||
self:settext( "" )
|
||||
end
|
||||
end;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
return Def.ActorFrame { children = { frame } };
|
||||
Reference in New Issue
Block a user