mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-07-13 01:07:43 +07:00
Added version label to main menu
This commit is contained in:
@ -1,4 +1,5 @@
|
|||||||
diablo=Diablo II
|
diablo=Diablo II
|
||||||
|
version=V 1.0
|
||||||
|
|
||||||
press_any_key=Press any Key
|
press_any_key=Press any Key
|
||||||
press_any_button=Press any Button
|
press_any_button=Press any Button
|
||||||
|
@ -19,6 +19,7 @@ import gdx.diablo.codec.Animation;
|
|||||||
import gdx.diablo.codec.DC6;
|
import gdx.diablo.codec.DC6;
|
||||||
import gdx.diablo.graphics.PaletteIndexedBatch;
|
import gdx.diablo.graphics.PaletteIndexedBatch;
|
||||||
import gdx.diablo.loader.DC6Loader;
|
import gdx.diablo.loader.DC6Loader;
|
||||||
|
import gdx.diablo.widget.Label;
|
||||||
import gdx.diablo.widget.TextButton;
|
import gdx.diablo.widget.TextButton;
|
||||||
|
|
||||||
public class MenuScreen extends ScreenAdapter {
|
public class MenuScreen extends ScreenAdapter {
|
||||||
@ -41,6 +42,7 @@ public class MenuScreen extends ScreenAdapter {
|
|||||||
private Button btnSinglePlayer;
|
private Button btnSinglePlayer;
|
||||||
private Button btnMultiPlayer;
|
private Button btnMultiPlayer;
|
||||||
private Button btnExitDiablo;
|
private Button btnExitDiablo;
|
||||||
|
private Label lbVersion;
|
||||||
|
|
||||||
public MenuScreen() {
|
public MenuScreen() {
|
||||||
this(null, null);
|
this(null, null);
|
||||||
@ -120,6 +122,10 @@ public class MenuScreen extends ScreenAdapter {
|
|||||||
panel.setY(stage.getHeight() * 0.40f);
|
panel.setY(stage.getHeight() * 0.40f);
|
||||||
stage.addActor(panel);
|
stage.addActor(panel);
|
||||||
|
|
||||||
|
lbVersion = new Label(Diablo.bundle.get("version"), Diablo.fonts.font16);
|
||||||
|
lbVersion.setPosition(20, 20);
|
||||||
|
stage.addActor(lbVersion);
|
||||||
|
|
||||||
Diablo.input.addProcessor(stage);
|
Diablo.input.addProcessor(stage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user