Make place names translate
parent
a40ed3c1e0
commit
f6abfc7b8e
|
@ -1,6 +1,7 @@
|
|||
bin
|
||||
doc
|
||||
ir
|
||||
opts
|
||||
src_crap
|
||||
data*/codedefs
|
||||
data*/fonts
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
// Extern Objects ------------------------------------------------------------|
|
||||
|
||||
char const *G_Place = u8"地球軌道・朝";
|
||||
__str G_Place = s"place/default";
|
||||
unsigned long G_Time;
|
||||
|
||||
// Static Functions ----------------------------------------------------------|
|
||||
|
@ -130,6 +130,8 @@ void G_Stage_Run(unsigned stagenum)
|
|||
{
|
||||
printf("Stage: Beginning stage %u.\n", stagenum);
|
||||
|
||||
G_Place = M_StrCreate(M_StrFmt("place/stage%u", stagenum));
|
||||
|
||||
G_stage s = G_Stage_LoadMap(M_StrFmt("maps/stage%u.gmf0", stagenum));
|
||||
size_t i;
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ typedef struct G_stage
|
|||
|
||||
// Extern Objects ------------------------------------------------------------|
|
||||
|
||||
extern char const *G_Place;
|
||||
extern __str G_Place;
|
||||
extern long unsigned G_Time;
|
||||
|
||||
// Extern Functions ----------------------------------------------------------|
|
||||
|
|
|
@ -58,7 +58,7 @@ void R_DrawPost(ulfra delta)
|
|||
|
||||
DGE_Font_Bind(DGE_Font_Get(s"base"));
|
||||
DGE_Draw_SetTextAlign(DGE_Align_Center, DGE_Align_Top);
|
||||
DGE_Draw_Text(760, 20, G_Place);
|
||||
DGE_Draw_Text(760, 20, M_StrGet(G_Place));
|
||||
|
||||
DGE_Draw_SetTextAlign(DGE_Align_Left);
|
||||
DGE_Draw_Text(585, 70, M_StrGet(s"gui/highscore"));
|
||||
|
@ -68,13 +68,12 @@ void R_DrawPost(ulfra delta)
|
|||
for(int i = 0; i < G_Player_Count; i++)
|
||||
{
|
||||
DGE_Draw_SetTextAlign(DGE_Align_Left);
|
||||
DGE_Draw_Text(585, 120 + i * 20,
|
||||
M_StrFmt(M_StrGet(s"gui/player"), i + 1));
|
||||
DGE_Draw_Text(585, 120 + i * 20, M_StrFmt(M_StrGet(s"gui/player"), i+1));
|
||||
DGE_Draw_SetTextAlign(DGE_Align_Right);
|
||||
DGE_Draw_Text(945, 140 + i * 20, M_StrFmt("%.15i\n%i", 0, 5));
|
||||
}
|
||||
|
||||
//R_drawHitboxes();
|
||||
R_drawHitboxes();
|
||||
}
|
||||
|
||||
// EOF
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
language eng
|
||||
{
|
||||
place/default = "Default place";
|
||||
place/stage1 = "Low Earth Orbit - Morning";
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
language jpn
|
||||
{
|
||||
place/stage1 = "地球軌道・朝";
|
||||
}
|
Loading…
Reference in New Issue