change font and use some conditional magic to show the frames for players that are joined
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
local font = LoadFont( "blaster" );
|
local font = LoadFont( "_zeroesthree" );
|
||||||
local frame = LoadActor( "_score frame" );
|
local frame = LoadActor( "_score frame" );
|
||||||
local text = GAMESTATE:GetPlayMode() == 'PlayMode_Oni' and "time" or "score";
|
local text = GAMESTATE:GetPlayMode() == 'PlayMode_Oni' and "time" or "score";
|
||||||
return Def.ActorFrame {
|
return Def.ActorFrame {
|
||||||
@@ -6,20 +6,22 @@ return Def.ActorFrame {
|
|||||||
frame;
|
frame;
|
||||||
font .. {
|
font .. {
|
||||||
Text = "player 1 " .. text;
|
Text = "player 1 " .. text;
|
||||||
InitCommand = cmd(addy,14;addx,-20;zoom,0.4;shadowlength,0);
|
InitCommand = cmd(horizalign,left;addy,16;addx,-80;zoom,0.75;shadowlength,0);
|
||||||
};
|
};
|
||||||
InitCommand = cmd(x,SCREEN_LEFT-100;y,SCREEN_CENTER_Y+202);
|
InitCommand = cmd(x,SCREEN_LEFT-100;y,SCREEN_CENTER_Y+202);
|
||||||
OnCommand = cmd(linear,1;x,SCREEN_CENTER_X-208);
|
OnCommand = cmd(linear,1;x,SCREEN_CENTER_X-208);
|
||||||
OffCommand = cmd(linear,1;x,SCREEN_LEFT-100)
|
OffCommand = cmd(linear,1;x,SCREEN_LEFT-100);
|
||||||
|
Condition=GAMESTATE:IsSideJoined(PLAYER_1) == true;
|
||||||
};
|
};
|
||||||
Def.ActorFrame {
|
Def.ActorFrame {
|
||||||
frame;
|
frame;
|
||||||
font .. {
|
font .. {
|
||||||
Text = "player 2 " .. text;
|
Text = "player 2 " .. text;
|
||||||
InitCommand = cmd(addy,14;addx,20;zoom,0.4;shadowlength,0);
|
InitCommand = cmd(horizalign,right;addy,16;addx,80;zoom,0.75;shadowlength,0);
|
||||||
};
|
};
|
||||||
InitCommand = cmd(x,SCREEN_RIGHT+100;y,SCREEN_CENTER_Y+202);
|
InitCommand = cmd(x,SCREEN_RIGHT+100;y,SCREEN_CENTER_Y+202);
|
||||||
OnCommand = cmd(linear,1;x,SCREEN_CENTER_X+210);
|
OnCommand = cmd(linear,1;x,SCREEN_CENTER_X+210);
|
||||||
OffCommand = cmd(linear,1;x,SCREEN_RIGHT+100)
|
OffCommand = cmd(linear,1;x,SCREEN_RIGHT+100);
|
||||||
|
Condition=GAMESTATE:IsSideJoined(PLAYER_2) == true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user