UI Layout Binding
To enable interaction between code and layout, we enable binding.
Create a property on your component's code.
Bind it to any property by adding @ before the property name.
The property will be updated when your variable changes.
You can create a reference to an element.
This variable will be available immediately after the layout is loaded.
You can call events from elements
The method is called on the panel which loaded the layout.
Similar to events, you can wire up Panel Events that don't need any code. In this example clicking on the Options button toggles the game_title class on it.
You can also target this towards other panels by name
.console to the event name will run the string as a console command when the event triggers.