Browse Source

Make place names translate

master
Marrub 4 years ago
parent
commit
f6abfc7b8e
6 changed files with 17 additions and 6 deletions
  1. +1
    -0
      .gitignore
  2. +3
    -1
      src/g_stage.c
  3. +1
    -1
      src/g_stage.h
  4. +3
    -4
      src/r_draw.c
  5. +5
    -0
      text/place-eng.nts
  6. +4
    -0
      text/place-jpn.nts

+ 1
- 0
.gitignore View File

@@ -1,6 +1,7 @@
bin
doc
ir
opts
src_crap
data*/codedefs
data*/fonts


+ 3
- 1
src/g_stage.c View File

@@ -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;



+ 1
- 1
src/g_stage.h View File

@@ -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 ----------------------------------------------------------|


+ 3
- 4
src/r_draw.c View File

@@ -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

+ 5
- 0
text/place-eng.nts View File

@@ -0,0 +1,5 @@
language eng
{
place/default = "Default place";
place/stage1 = "Low Earth Orbit - Morning";
}

+ 4
- 0
text/place-jpn.nts View File

@@ -0,0 +1,4 @@
language jpn
{
place/stage1 = "地球軌道・朝";
}

Loading…
Cancel
Save