Label Widget
A simple text line label used for category grouping or headers.
Label Specification#
1local Label = Section:CreateLabel(text)
Label Methods#
Label:SetText(newText): Update displayed text string programmatically.
Complete Code Example#
Here is a complete copy-pasteable script demonstrating how to create and update label widgets dynamically:
1local ValincUi = loadstring(game:HttpGet("https://cdn.vinzhub.com/scripts/Liblery%20Ui/VALINC-QUARTZ/57319f29599c47672f19f8d56d53ffbe/a6b3ccb1f04d1d7d06232a9c5d25779e2af89c12992bebae.lua"))()
2
3local Window = ValincUi:CreateWindow("Label Hub", "tag", "gold")
4local Tab = Window:CreateTab("Dashboard")
5local Section = Tab:CreateSection("Player Stats")
6
7-- Create a dynamic text label
8local StatusLabel = Section:CreateLabel("Current Status: Idle")
9
10-- Update label text dynamically when clicking a button
11Section:CreateButton("Start Farming", function()
12 StatusLabel:SetText("Current Status: Farming Goblins...")
13end, "Updates the status label text.")