Alzter / TuxBuilder

A Godot re-implementation of SuperTux
GNU General Public License v3.0
212 stars 28 forks source link

Organize level editor scene and code #15

Closed skyace65 closed 5 years ago

skyace65 commented 5 years ago

There were a lot of changes made in this.

The scene tree was overhauled. The overlay section has been removed completely. Text is now part of the buttons. And the white overlay you wanted when clicking a button is now done with the focus style. An object uses the focus style when it's been clicked on and if there is a focus style for that object. Also arrow icons are now the children of their respective buttons.

Here's the code changes -The margin code for the top and bottom bar has been removed. The scene now uses anchors to keep the bars in the right place and they scale properly. -All input code has been put under the input event function. -Fixed an input issue, two inputs were using the same button which caused a bug. -Removed code relating to category selected. -Button code is now done with signals.