Recent content by x3ro

  1. x3ro

    Future GUI - Reloaded

    You can always let the controller know about the context after it is created, so that it can respond to context-specific events: UIWindow window = guiManager.createUI("engine:inventory"); window.controller.setContext(this); If you're loading a certain layout, you're bound to having many...
  2. x3ro

    Future GUI - Reloaded

    It's probably about time I got back to this :) Firstly, I do think that going from Java-Code to a JSON based layout system is a big advantage. It might not be revolutionary, but I know that I wouldn't like to create website styles using Java code, as opposed to CSS (which I'd argue to be...
  3. x3ro

    Future GUI - Reloaded

    I'll look into that. You make it sound like you don't really think that the entire change is worth it in the first place, which I find a little discouraging, considering the work I've already put into it. Probably because I didn't know better. Will fix. This doesn't make sense to me. The...
  4. x3ro

    Future GUI - Reloaded

    I basically used Scala's Tuple2 and "ported" it to Java. I find it strange that such a generic class could be considered bad practice, because what you suggest seems to be to create a class "AssetManagerAndGuiManager", and if I'd need to return two values somewhere else, "FooAndBar" (please...
  5. x3ro

    Trouble with Dev setup

    I think you might want to run ./gradlew run Note the "./" in front, because "gradlew" is a file that lives in the Terasology repository (a wrapper around the gradle executable).
  6. x3ro

    Future GUI - Reloaded

    So, at last I've reached a "presentable" state for the GUI system modifications. It is currently possible to define UIWindows via JSON defintions, including its child widgets as well as the default styles. It is also possible to specify a controller for a menu, which is in charge of registering...
  7. x3ro

    Future GUI - Reloaded

    Thanks Skaldarnar - And sorry to everyone I might have forgotten to ping :whistle:
  8. x3ro

    Future GUI - Reloaded

    Thanks for your feedback Immortius. I agree that the UI should not use LWJGL directly. If I understand you correctly, what you propose would require a ground-up rewrite of the entire UI though, and I think that the UI customization "framework" can be implemented first. Bottom-line, the only...
  9. x3ro

    Future GUI - Reloaded

    This is the continuation of the "Future GUI" (http://forum.movingblocks.net/threads/future-gui.248/) Thread, which has gotten quite long and mazy, and hasn't been updated for a while. A rewrite of the current GUI system is our main goal, mainly in order to make the GUI more "moddable", i.e...
  10. x3ro

    TerasologyLauncher - www.terasologywiki.de

    Perdemot: Why would you recommend him to use Eclipse when the projects "official" IDE is IntelliJ?
  11. x3ro

    Height Limit

    While (and because) my knowledge on Java performance implications is limited, wouldn't it be feasible to code up an actual "benchmark" comparing different chunk storage forms. For this to work we'd need to gather information on how the data is actually used (i.e. how it is accessed...
  12. x3ro

    Future GUI

    Immortius: Groovy does just that by default, i.e. assigning a string to a property that takes an enum and automatically converting, but that is case-sensitive as well. How do you propose making it case insensitive with GSON?
  13. x3ro

    Future GUI

    I see your point, however doing all the conversion in the unserializer would entail an ass-load (sorry) of "problems". The problem is that the JSON file has no clue about types. The only thing it knows are Strings, Numbers, Arrays and Maps, nothing else. Because of this, if we'd want to put the...
  14. x3ro

    Future GUI

    So I've been working on this some more, and I'm currently trying to "re-build" the main menu using a JSON definition. This is what I've got so far: By using the following menu definition: { "id": "main-menu", "controller": "UIMainMenu", "children": [ {...
  15. x3ro

    Java durch Terasology lernen?

    http://openbook.galileocomputing.de/javainsel/ :)
Top