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.
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"
)
text (str, optional): Text displayed on the buttonwidth (int, optional): Button widthheight (int, optional): Button heightbg_color (tuple, optional): Background colorhover_color (tuple, optional): Color when hovering over the buttontext_color (tuple, optional): Text colorborder_radius (int, optional): Corner roundnessborder_color (tuple, optional): Border colorborder_width (int, optional): Border thicknessfont_name (str, optional): Font family namefont_size (int, optional): Font sizefont_weight (str, optional): Font weight (e.g. normal, bold)parent (UI element, optional): Parent container
A FancyButton instance capable of handling click,
hover, and interaction events.