summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2018-12-03 02:11:52 +0100
committerNao Pross <naopross@thearcway.org>2018-12-03 02:11:52 +0100
commit9960152dd898af1129cf183762c1297b7d5aa41d (patch)
treed982b00ff0dcdfca60bdf428bbfc620aa6c7d2a1
parentAdd widget anchors to place widgets in relative positions (diff)
downloadSubconscious-java-9960152dd898af1129cf183762c1297b7d5aa41d.tar.gz
Subconscious-java-9960152dd898af1129cf183762c1297b7d5aa41d.zip
Update ActorInfo
Diffstat (limited to '')
-rw-r--r--src/subconscious/graphics/WorldScene.java2
-rw-r--r--src/subconscious/graphics/widget/ActorInfo.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/subconscious/graphics/WorldScene.java b/src/subconscious/graphics/WorldScene.java
index d2ea1db..f23aa06 100644
--- a/src/subconscious/graphics/WorldScene.java
+++ b/src/subconscious/graphics/WorldScene.java
@@ -22,7 +22,7 @@ public class WorldScene extends MapScene {
@Override
public void build() {
- this.actorInfoWidget = new ActorInfo("actorinfo", 0, 0);
+ this.actorInfoWidget = new ActorInfo("actorinfo");
this.addWidget(this.actorInfoWidget);
}
diff --git a/src/subconscious/graphics/widget/ActorInfo.java b/src/subconscious/graphics/widget/ActorInfo.java
index 82aecd4..10bba9f 100644
--- a/src/subconscious/graphics/widget/ActorInfo.java
+++ b/src/subconscious/graphics/widget/ActorInfo.java
@@ -18,8 +18,8 @@ public class ActorInfo extends Widget {
protected Actor observingActor = null;
- public ActorInfo(String uniqueName, int x, int y) {
- super(uniqueName, x, y, ActorInfo.WIDTH, ActorInfo.HEIGHT);
+ public ActorInfo(String uniqueName) {
+ super(uniqueName, 0, 0, ActorInfo.WIDTH, ActorInfo.HEIGHT);
}
@Override