Last updated: Aug 1, 20262 min read

Dual Action Button

Combines a standard execute action button and a state toggle button side-by-side.

Dual Button Component#

LUA Script
1Section:CreateDualButton(name, btn1Text, btn2Text, defaultToggle, callback1, callback2, description)
  • btn1Text: Standard button text (e.g. "EXECUTE").
  • btn2Text: Toggle button text (e.g. "AUTO").

Complete Code Example#

Here is a complete copy-pasteable script showing how to instantiate dual side-by-side action buttons:

LUA Script
1local ValincUi = loadstring(game:HttpGet("https://cdn.vinzhub.com/scripts/Liblery%20Ui/VALINC-QUARTZ/57319f29599c47672f19f8d56d53ffbe/a6b3ccb1f04d1d7d06232a9c5d25779e2af89c12992bebae.lua"))()
2
3local Window = ValincUi:CreateWindow("Dual Action Hub", "columns", "gold")
4local Tab = Window:CreateTab("Automation")
5local Section = Tab:CreateSection("Quest Execution")
6
7-- Create a dual button widget combining manual trigger and auto-toggle
8Section:CreateDualButton(
9 "Quest Controller",
10 "EXECUTE ONCE",
11 "AUTO LOOP",
12 false,
13 function()
14 print("Manual quest execution triggered!")
15 end,
16 function(autoState)
17 print("Auto Quest Loop set to: " .. tostring(autoState))
18 end,
19 "Execute quest once manually, or enable automatic continuous loop."
20)