Description:
LegacyButton is a simple, classic button designed for
minimalistic or old-school UI applications and game editors.
It prioritizes ease of use and clarity, making it ideal for
beginners or projects that do not require advanced styling.
from VertexEngine.VertexWidgets.SimpleGUI import *
button = LegacyButton(
text="OK",
width=120,
height=40,
bg_color=(200, 200, 200),
text_color=(0, 0, 0),
border_width=1,
border_color=(0, 0, 0)
)
text (str, optional): Text displayed on the buttonwidth (int, optional): Button widthheight (int, optional): Button heightbg_color (tuple, optional): Background colortext_color (tuple, optional): Text colorborder_width (int, optional): Border thicknessborder_color (tuple, optional): Border colorparent (UI element, optional): Parent container
A LegacyButton instance capable of handling basic
click and interaction events.