Description:
InputField is an upgraded and highly customizable text
input component designed for UI applications and game editors.
It allows users to enter text, supports placeholder hints, and
offers full control over fonts, colors, and sizing.
from VertexEngine import VertexUI
input_field = VertexUI.InputField(
placeholder="Enter your name...",
width=300,
height=40,
text_color=(255, 255, 255),
bg_color=(30, 30, 30),
font_name="Arial",
font_size=16
)
placeholder (str, optional): Grey hint text shown when the field is emptywidth (int, optional): Width of the input fieldheight (int, optional): Height of the input fieldtext_color (tuple, optional): Color of entered textbg_color (tuple, optional): Background colorfont_name (str, optional): Font familyfont_size (int, optional): Font sizeparent (UI element, optional): Parent container
An InputField instance that stores and provides access
to the user-entered text.