This update addresses the issue where a selected GUI control remains behind other overlapping controls. Now, when a control is clicked, it will be brought to the front of the z-order, ensuring it is not obscured by other controls.
Changes include:
Added bring_to_front method in GUIContainer to manage z-order.
Updated GUI class to call bring_to_front when a control is clicked.
Modified GUIContainer to track and update the z-order of its children.
Updated GUIControl to include z_order in its JSON representation.
This update addresses the issue where a selected GUI control remains behind other overlapping controls. Now, when a control is clicked, it will be brought to the front of the z-order, ensuring it is not obscured by other controls.
Changes include:
bring_to_front
method inGUIContainer
to manage z-order.GUI
class to callbring_to_front
when a control is clicked.GUIContainer
to track and update the z-order of its children.GUIControl
to includez_order
in its JSON representation.Closes #93