mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
rename
This commit is contained in:
@@ -22,7 +22,7 @@ public class MapSprite extends Actor {
|
|||||||
static public int BackgroundLayer = -1;
|
static public int BackgroundLayer = -1;
|
||||||
static public int SpriteLayer = 0;
|
static public int SpriteLayer = 0;
|
||||||
TextureRegion texture;
|
TextureRegion texture;
|
||||||
TextraLabel leaf;
|
TextraLabel searchPost;
|
||||||
boolean isCaveDungeon, isOldorVisited;
|
boolean isCaveDungeon, isOldorVisited;
|
||||||
PointOfInterest poi;
|
PointOfInterest poi;
|
||||||
|
|
||||||
@@ -30,7 +30,7 @@ public class MapSprite extends Actor {
|
|||||||
poi = point;
|
poi = point;
|
||||||
isCaveDungeon = point != null && (point.getData().type.equalsIgnoreCase("cave") || point.getData().type.equalsIgnoreCase("dungeon"));
|
isCaveDungeon = point != null && (point.getData().type.equalsIgnoreCase("cave") || point.getData().type.equalsIgnoreCase("dungeon"));
|
||||||
isOldorVisited = poi != null && WorldSave.getCurrentSave().getPointOfInterestChanges(poi.getID() + poi.getData().map).hasDeletedObjects();
|
isOldorVisited = poi != null && WorldSave.getCurrentSave().getPointOfInterestChanges(poi.getID() + poi.getData().map).hasDeletedObjects();
|
||||||
leaf = Controls.newTextraLabel("[%80][+SearchPost]");
|
searchPost = Controls.newTextraLabel("[%80][+SearchPost]");
|
||||||
texture = sprite;
|
texture = sprite;
|
||||||
setPosition(pos.x, pos.y);
|
setPosition(pos.x, pos.y);
|
||||||
setHeight(texture.getRegionHeight());
|
setHeight(texture.getRegionHeight());
|
||||||
@@ -81,8 +81,8 @@ public class MapSprite extends Actor {
|
|||||||
return;
|
return;
|
||||||
batch.draw(texture, getX(), getY());
|
batch.draw(texture, getX(), getY());
|
||||||
if (isCaveDungeon && !isOldorVisited) {
|
if (isCaveDungeon && !isOldorVisited) {
|
||||||
leaf.setPosition(getX() - 7, getY() + 7);
|
searchPost.setPosition(getX() - 7, getY() + 7);
|
||||||
leaf.draw(batch, parentAlpha);
|
searchPost.draw(batch, parentAlpha);
|
||||||
}
|
}
|
||||||
//font.draw(batch,String.valueOf(getZIndex()),getX()-(getWidth()/2),getY());
|
//font.draw(batch,String.valueOf(getZIndex()),getX()-(getWidth()/2),getY());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user