Vertex Docs

FancyButton

Description: FancyButton is an upgraded, highly customizable UI button designed for professional UI applications and in-engine editors. It supports advanced styling, hover effects, rounded corners, borders, and custom fonts out of the box.

Features

Example: Usage

from VertexEngine import VertexUI

button = VertexUI.FancyButton(
    text="Play",
    width=200,
    height=50,
    bg_color=(40, 40, 40),
    hover_color=(60, 60, 60),
    text_color=(255, 255, 255),
    border_radius=12,
    border_color=(255, 255, 255),
    border_width=2,
    font_name="Arial",
    font_size=18,
    font_weight="bold"
)

Parameters

Returns

A FancyButton instance capable of handling click, hover, and interaction events.

Notes