Vertex Docs

LegacyButton

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.

Features

Example: Usage

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)
)

Parameters

Returns

A LegacyButton instance capable of handling basic click and interaction events.

Notes