How to add GUI

  • bowserinator
    30th Sep 2014 Member 0 Permalink

    Can anyone tell me how you can add (step by step) a new gui and buttons and stuff? Also can anyone tell me if it is possible for me to move some the element sections (GAS, SOLID, etc...) to the left side so it won't be crowded?

  • jacob1
    30th Sep 2014 Developer 0 Permalink
    I would look at some simple existing guis like the local save ui: https://github.com/simtr/The-Powder-Toy/blob/master/src/gui/save/LocalSaveActivity.cpp

    You don't need to use the Model/View/Controller thing that all the other guis there use. It might take a bit of understanding in the source to make it work though.

    Also moving the menus to the left side of the game would be extremely hard, the graphics and other things in the game always assume that the simulation is in the top left corner and everything is on the right/bottom edges.