display.nontools_frame documentation - wladekpal/The-Lazy-Snek GitHub Wiki
NonToolsFrame
Frame for buttons that are not a tool.
Properties
buttons
- buttons list
create_buttons()
Create list of buttons.
handle_click(pos, active_tool, active_id, editor_container)
If button is clicked and active, execute handle_click
action in corresponding class to button.
validate_lavel(editor_container)
If level is valid, make all buttons active.
refresh():
Refresh the frame connected to class.
NonToolButton
Class for button which is not a tool.
scale_textures()
Scale texture of the button.
refresh(pos, side_length, surface)
Show actual state of the button.
self_draw(surface)
Draw the button.
pos_in_area(pos)
Return postion, where button should be placed.
handle_click(editor_container)
Execute function connected to button click.
SaveButton
handle_click(editor_container)
Save the level.
PlayButton
handle_click(editor_container)
Play the level simulation.