I am wondering how one uses all those nice gui functions, i know how to use a few, so i will post how to use the ones i know, for the rest, you think i could get some help? Kinda curious, want to use them
showgui: This function allows you to automatically display your gui on such things as triggers.
Useage:
Code: Select all
level_trigger_1 = [showgui ExampleGUI]
Useage:
Code: Select all
level_trigger_1 = [showgui ExampleGUI]
newgui ExampleGUI [
//Other gui code goes here...
]
Useage:
Code: Select all
level_trigger_1 = [showgui ExampleGUI]
newgui ExampleGUI [
guitext "This text will appear in your gui menu!"
]
Useage:
Code: Select all
level_trigger_1 = [showgui ExampleGUI]
newgui ExampleGUI [
guitext "Now there is a bar below this text!"
guibar
guitext "And a bar above this text!"
]
Useage:
Code: Select all
level_trigger_1 = [showgui ExampleGUI]
newgui ExampleGUI [
guitext "Now we will demonstrate a gui list!"
guibar
guilist [
guitext "Gui lists are very useful!"
guibar
guitext "And almost all gui functions can be used in them!"
]
]
Useage:
Code: Select all
gold = 0 //You'll see why...
level_trigger_1 = [showgui ExampleGUI]
newgui ExampleGUI [
guitext "Now we will demonstrate a gui button!"
guibar
guibutton "CLICK ME!" [
//Here is where you can add arguments and functions for the button, i will demonstrate a simple IF...THEN function...
If ( >= $gold 5) [
echo "You have more than 5 gold!"
] [ //Not so sure this method works...
echo "You have less than 5 gold :("
]
]
guibar
guitext "Now we will make one in a guilist!"
guibar
guilist [
guibutton "CLICK ME TOO!" [
echo "Thank you! Now you can has some gold!"
gold = ( + $gold 5)
]
]
]
These are all the gui functions that i know how to use, so if you can contribute i still need to know how to use:
* cleargui
* guikeyfield
* guirolloveraction
* guirollovername
* guilistslider
* guinameslider
* guistayopen
* guistrut
Thank you, and i hope this helps! and i hope people can help as well!
EDIT::
I have found the proper uses for the following gui functions, though, i still have yet to use them in any of my scripts- once i use them, and can assure that they are used right, i will add them to this list. The functions i now know how to use are:
* guiautotab
* cleargui
* guititle
* guiimage
* guislider
* guicheckbox
* guiradio
* guitab
* guifield
I still have to test all of these functions, so please allow a few days before i will be able to update this post on how to use them. However, if you would like to post a guide on how to use a function i have not covered, feel free to contribute!
Also, once i know how to use all these functions, i will add a GUI tutorial to the tutorial page- Also, i will be putting a tutorial up on how to make your own complex shop script, and i will tell you where it goes



