mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
update inn and deck select scene
This commit is contained in:
@@ -14,6 +14,7 @@ import com.badlogic.gdx.utils.Align;
|
||||
import com.badlogic.gdx.utils.IntMap;
|
||||
import forge.Forge;
|
||||
import forge.adventure.player.AdventurePlayer;
|
||||
import forge.adventure.stage.GameHUD;
|
||||
import forge.adventure.util.Controls;
|
||||
import forge.adventure.util.Current;
|
||||
import forge.gui.GuiBase;
|
||||
@@ -53,6 +54,7 @@ public class DeckSelectScene extends UIScene {
|
||||
}
|
||||
|
||||
public void back() {
|
||||
GameHUD.getInstance().getTouchpad().setVisible(false);
|
||||
Forge.switchScene(SceneType.GameScene.instance);
|
||||
}
|
||||
|
||||
|
||||
@@ -8,30 +8,27 @@ import forge.adventure.util.Current;
|
||||
|
||||
/**
|
||||
* Scene for the Inn in towns
|
||||
*
|
||||
*/
|
||||
public class InnScene extends UIScene {
|
||||
public class InnScene extends UIScene {
|
||||
|
||||
public InnScene()
|
||||
{
|
||||
public InnScene() {
|
||||
super("ui/inn.json");
|
||||
}
|
||||
|
||||
public void done()
|
||||
{
|
||||
public void done() {
|
||||
GameHUD.getInstance().getTouchpad().setVisible(false);
|
||||
Forge.switchToLast();
|
||||
}
|
||||
public void heal()
|
||||
{
|
||||
|
||||
public void heal() {
|
||||
Current.player().heal();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void act(float delta) {
|
||||
|
||||
stage.act(delta);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void resLoaded() {
|
||||
super.resLoaded();
|
||||
@@ -61,10 +58,8 @@ public class InnScene extends UIScene {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean keyPressed(int keycode)
|
||||
{
|
||||
if (keycode == Input.Keys.ESCAPE)
|
||||
{
|
||||
public boolean keyPressed(int keycode) {
|
||||
if (keycode == Input.Keys.ESCAPE) {
|
||||
done();
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -11,6 +11,7 @@ import forge.Forge;
|
||||
import forge.adventure.character.EnemySprite;
|
||||
import forge.adventure.data.EnemyData;
|
||||
import forge.adventure.data.WorldData;
|
||||
import forge.adventure.stage.GameHUD;
|
||||
import forge.adventure.util.Controls;
|
||||
import forge.adventure.util.Current;
|
||||
import forge.player.GamePlayerUtil;
|
||||
@@ -47,6 +48,7 @@ public class PlayerStatisticScene extends UIScene {
|
||||
}
|
||||
|
||||
public boolean back() {
|
||||
GameHUD.getInstance().getTouchpad().setVisible(false);
|
||||
Forge.switchToLast();
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ import com.badlogic.gdx.Gdx;
|
||||
import com.badlogic.gdx.Input;
|
||||
import com.badlogic.gdx.scenes.scene2d.Actor;
|
||||
import forge.Forge;
|
||||
import forge.adventure.stage.GameHUD;
|
||||
import forge.adventure.world.WorldSave;
|
||||
import forge.gui.GuiBase;
|
||||
|
||||
@@ -39,6 +40,7 @@ public class StartScene extends UIScene {
|
||||
|
||||
public boolean Resume() {
|
||||
//Forge.switchToLast();
|
||||
GameHUD.getInstance().getTouchpad().setVisible(false);
|
||||
Forge.switchScene(SceneType.GameScene.instance);
|
||||
return true;
|
||||
}
|
||||
|
||||
BIN
forge-gui/res/adventure/Shandalar/ui/heal.png
Normal file
BIN
forge-gui/res/adventure/Shandalar/ui/heal.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
@@ -9,32 +9,56 @@
|
||||
"width": 480,
|
||||
"height": 270
|
||||
},
|
||||
{
|
||||
"type": "Image",
|
||||
"image": "ui/heal.png",
|
||||
"x": 60,
|
||||
"y": 85,
|
||||
"width": 100,
|
||||
"height": 100
|
||||
},
|
||||
{
|
||||
"type": "TextButton",
|
||||
"name": "heal",
|
||||
"text": "Heal",
|
||||
"width": 48,
|
||||
"height": 16,
|
||||
"x": 420,
|
||||
"y": 10
|
||||
"width": 100,
|
||||
"height": 30,
|
||||
"x": 60,
|
||||
"y": 200
|
||||
},
|
||||
{
|
||||
"type": "Image",
|
||||
"image": "ui/sell.png",
|
||||
"x": 190,
|
||||
"y": 85,
|
||||
"width": 100,
|
||||
"height": 100
|
||||
},
|
||||
{
|
||||
"type": "TextButton",
|
||||
"name": "sell",
|
||||
"text": "Sell cards",
|
||||
"width": 48,
|
||||
"height": 16,
|
||||
"x": 420,
|
||||
"y": 34
|
||||
"width": 100,
|
||||
"height": 30,
|
||||
"x": 190,
|
||||
"y": 200
|
||||
},
|
||||
{
|
||||
"type": "Image",
|
||||
"image": "ui/leave.png",
|
||||
"x": 320,
|
||||
"y": 85,
|
||||
"width": 100,
|
||||
"height": 100
|
||||
},
|
||||
{
|
||||
"type": "TextButton",
|
||||
"name": "done",
|
||||
"text": "Leave",
|
||||
"width": 48,
|
||||
"height": 16,
|
||||
"x": 420,
|
||||
"y": 58
|
||||
"width": 100,
|
||||
"height": 30,
|
||||
"x": 320,
|
||||
"y": 200
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
forge-gui/res/adventure/Shandalar/ui/leave.png
Normal file
BIN
forge-gui/res/adventure/Shandalar/ui/leave.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
BIN
forge-gui/res/adventure/Shandalar/ui/sell.png
Normal file
BIN
forge-gui/res/adventure/Shandalar/ui/sell.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
Reference in New Issue
Block a user