display.tools_frame documentation - wladekpal/The-Lazy-Snek GitHub Wiki
ToolsFrame
Frame for buttons that are tools.
Properties
buttons
- buttons listactive_tool
- tool that is active
set_all_buttons_inactive()
Make all buttons inactive.
handle_click(pos, active_tool, active_id, editor_container)
Make tool corresponding to button active.
get_active_tool()
Return active tool.
refresh()
Refresh look of tool buttons frame.
ToolButton
Class for button which is 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.