This commit is contained in:
Rosia E Evans 2024-04-21 17:20:01 +01:00
parent 9ba5125c15
commit 7c4b6ea0af
4 changed files with 14 additions and 0 deletions

View file

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB

View file

@ -35,6 +35,13 @@ public class DieNetUi extends Actor{
renderer.end();
batch.begin();
}
private void getDieFaceLocation(int i)
{
}
public void setVisible(boolean b) {

View file

@ -61,6 +61,7 @@ public class Game extends ApplicationAdapter {
SegmentUI.setCriteriaSheet(new Texture("criteria.png"));
ShopeUi.setBacking(new Texture("shope.png"));
ShopeUi.setFaceBacking(new Texture("shope_die_border.png"));
ShopeUi.setBanner(new Texture("shope_banner.png"));
// SegmentUI.setCriteriaSheet(""); not made yet
// setting up font

View file

@ -10,6 +10,11 @@ public class ShopeUi extends Actor{
private static Texture backing;
private static Texture faceBacking;
private static Texture banner;
public static void setBanner(Texture banner) {
ShopeUi.banner = banner;
}
public static void setFaceBacking(Texture faceBacking) {
ShopeUi.faceBacking = faceBacking;
@ -32,6 +37,7 @@ public class ShopeUi extends Actor{
@Override
public void render(SpriteBatch batch) {
batch.draw(banner, 10, (Gdx.graphics.getHeight()/4)+5, banner.getWidth()/2, banner.getHeight()/2);
batch.draw(backing, 0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight()/4);
List<Face> shope = game.getShope();
for (int i = 0; i < shope.size(); i++) {