34
34
import com .badlogic .gdx .scenes .scene2d .utils .TextureRegionDrawable ;
35
35
import com .badlogic .gdx .utils .viewport .ScreenViewport ;
36
36
import com .bladecoder .engine .assets .EngineAssetManager ;
37
+ import com .bladecoder .engine .i18n .I18N ;
37
38
import com .bladecoder .engine .model .World ;
38
39
import com .bladecoder .engine .ui .UI .Screens ;
39
40
import com .bladecoder .engine .util .Config ;
@@ -141,7 +142,7 @@ public boolean keyUp(InputEvent event, int keycode) {
141
142
142
143
if (World .getInstance ().savedGameExists ()
143
144
|| World .getInstance ().getCurrentScene () != null ) {
144
- TextButton continueGame = new TextButton ("Continue" , ui .getSkin (),
145
+ TextButton continueGame = new TextButton (I18N . getString ( "ui.continue" ) , ui .getSkin (),
145
146
style .textButtonStyle );
146
147
147
148
continueGame .addListener (new ClickListener () {
@@ -156,7 +157,7 @@ public void clicked(InputEvent event, float x, float y) {
156
157
table .add (continueGame ).pad (BUTTON_PADDING ).width (buttonWidth );
157
158
}
158
159
159
- TextButton newGame = new TextButton ("New Game" , ui .getSkin (),
160
+ TextButton newGame = new TextButton (I18N . getString ( "ui.new" ) , ui .getSkin (),
160
161
style .textButtonStyle );
161
162
newGame .addListener (new ClickListener () {
162
163
public void clicked (InputEvent event , float x , float y ) {
@@ -168,7 +169,7 @@ public void clicked(InputEvent event, float x, float y) {
168
169
table .row ();
169
170
table .add (newGame ).pad (BUTTON_PADDING ).width (buttonWidth );
170
171
171
- TextButton help = new TextButton ("Help" , ui .getSkin (),
172
+ TextButton help = new TextButton (I18N . getString ( "ui.help" ) , ui .getSkin (),
172
173
style .textButtonStyle );
173
174
help .addListener (new ClickListener () {
174
175
public void clicked (InputEvent event , float x , float y ) {
@@ -179,7 +180,7 @@ public void clicked(InputEvent event, float x, float y) {
179
180
table .row ();
180
181
table .add (help ).pad (BUTTON_PADDING ).width (buttonWidth );
181
182
182
- TextButton credits = new TextButton ("Credits" , ui .getSkin (),
183
+ TextButton credits = new TextButton (I18N . getString ( "ui.credits" ) , ui .getSkin (),
183
184
style .textButtonStyle );
184
185
credits .addListener (new ClickListener () {
185
186
public void clicked (InputEvent event , float x , float y ) {
@@ -205,7 +206,7 @@ public void clicked(InputEvent event, float x, float y) {
205
206
table .add (debug ).pad (BUTTON_PADDING ).width (buttonWidth );
206
207
}
207
208
208
- TextButton quit = new TextButton ("Quit Game" , ui .getSkin (),
209
+ TextButton quit = new TextButton (I18N . getString ( "ui.quit" ) , ui .getSkin (),
209
210
style .textButtonStyle );
210
211
quit .addListener (new ClickListener () {
211
212
public void clicked (InputEvent event , float x , float y ) {
0 commit comments