A convenient way to call standard tes3mp GUI functions.
Adds a function for every GUI type, which does basic work for you: gets and stores GUI ids and returns button/list labels as well as their number.
Most of them have arguments similar to the originals, but with id replaced with name, which should be a unique string. I recommend adding your module's name as a prefix, e.g. "CustomAlchemy_PotionName". callback, where necessary, will be called after the player closes the GUI element.
GuiFramework.MessageBox(opt)opt = { --mandatory pid, name, label }
GuiFramework.CustomMessageBox(opt)opt = { --mandatory pid, name, buttons, --optional label, callback, returnValues, parameters }
buttonsis an array of button labels.
callback(pid, name, input, value, parameters),inputis the number of the box inbuttonsandvalueis its label.returnValuesoptional array of data you would like to be returned instead of a button's label
parametersdata to be passed through tocallbackGuiFramework.InputDialog(opt)opt = { --mandatory pid, name, --optional label, note, callback, parameters }
callback(pid, name, data, parameters),datais the string that player has put in.GuiFramework.PasswordDialog(opt)opt = { --mandatory pid, name, --optional label, note, callback, parameters }
callback(pid, name, data),datais the string that player has put in.GuiFramework.ListBox(opt)opt = { --mandatory pid, name, rows, --optional label, callback, returnValues, parameters }
rowsis an array of strings, without line breaks.
callback(pid, name, input, value),inputis the number of chosen row inrows,valueis its string. If the player clicked theOkbutton,inputwill be the same as with the standard function, andvalueis going to benil.
returnValuesoptional array of data you would like to be returned instead of a row's label