Menu

#323 Clear existing GUI elements before loading GUI from file

closed-fixed
GUIEditor (1)
5
2021-05-02
2021-05-02
No

Currently, when a GUI file is loaded into GUIEditor, the editor UI itself stops responding to any events (can not select/add/remove/edit UI elements).

This is apparently caused by the fact that the UI elements that existed before the load keep present and editor UI is underneath the loaded GUI (on Z level; so only the loaded UI elements on top receive the events, but not the editor UI elements).

This patch removes the existing children elements, loads the GUI from file and then re-adds the editor UI elements.

1 Attachments

Discussion

  • Michael Zeilfelder

    • status: open --> closed-fixed
    • assigned_to: Michael Zeilfelder
     
  • Michael Zeilfelder

    Thank you! It's applied in r6210 in svn trunk.
    I changed it a bit, but should have the same effect. Main difference is probably that I call loadGUI later, but still seems to all work in my tests (loading, clearing, saving a few times).

     

Log in to post a comment.