Permalink
Browse files

Actually add the elements from the JSON definition to our window

  • Loading branch information...
1 parent 4ecc83a commit ae44f413aa5871cac53ea2bcf065181149418797 @x3ro committed Aug 26, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/main/java/org/terasology/rendering/gui/framework/UIDisplayWindow.java
@@ -57,11 +57,15 @@ public UIDisplayWindow() {
this.elements = null;
}
-
public UIDisplayWindow(String id, AssetUri assetUri, List<UIDisplayElement> elements) {
this.id = id;
this.assetUri = assetUri;
this.elements = elements;
+
+ for(UIDisplayElement element : elements) {
+ addDisplayElement(element);
+ element.setVisible(true);
+ }
}
protected void drag(Vector2f value) {

0 comments on commit ae44f41

Please sign in to comment.