So I have been documenting the lua things I can figure out over on GitHub and ran across the amazing MessageBox(). Most of it is self explanatory but a few comments below I don't understand.
Code
local options = {
title="This is a title", --string:
backColor="1.7", --string: numbers like "1.7" work, what is the ref?
timeout=10000, --number (MS)
timeoutResultCancel=false, --bool
timeoutResultID=99, --number
icon=nil, --string: What is the ref?
titleTextColor=nil, --string:numbers like "1.7" work, what is the ref?
messageTextColor="4.1", --string:numbers like "1.7" work, what is the ref?
message="This is a long\nMultiline\nMessage", --string
display= nil, --int | handle?
commands={
{value=0, name="NO"}, --int, string
{value=1, name="MAYBE"},
{value=2, name="YES"}
},
inputs={
{name="INPUT 1", value="123", blackFilter="", whiteFilter="", vkPlugin="", maxTextLength = 3}, -- filters?, vpPlugin?
{name="INPUT 2", value="789ABC", blackFilter="", whiteFilter="", vkPlugin="", maxTextLength = 6},
},
states={
{name="State 1", state = true, group = 1}, -- state works?, group works?
{name="State 2", state = false, group = 1},
{name="State 3", state = true, group = 2},
{name="State 4", state = false, group = 2},
{name="State 5", state = true, group = 3},
{name="State 6", state = false, group = 3}
}
}
--options = nil
local x = MessageBox(options)
--Echo(tableToString(x)) --returns the table as a string in the below image
Display More