Page 1 of 1

GUIlist issue

Posted: August 28th, 2011, 2:28 pm
by Orrellgav
Hi I have used this as a means to make a lift go to 5 different floors within an oil rig

"level_trigger_1" = "showgui Riglift"
newgui Riglift [
guitext "Which floor?" chat
guibar
guilist [
guibutton "Ground Floor - Pumping Station, Emergency Liferaft, Exit" [
map Oilrig/RIGR]
guibar
guibutton "1st Floor - Sleeping Quarters" [
map Oilrig/RI1R]
guibar
guibutton "2nd Floor - Living Quarters, Kitchens" [
map Oilrig/RI2R]
guibar
guibutton "3rd Floor - Medical Rooms, Laundry" [
map Oilrig/RI3R]
guibar
guibutton "4th Floor - Ops Room, Helipad Evac Point" [
map Oilrig/RI4R]
]
]

trouble is the options dont list out in rows, they sprad out along one line, which means it looks like the attached image.
What do I add to make each option list on a differnt line?
thanks

Re: GUIlist issue

Posted: August 28th, 2011, 3:03 pm
by arcones
Using one or more guilist in a script can change it's look. Try using:

Code: Select all

guilist [
     guilist [
Also, when copying scripts to the forum try and minimize it by using the

Code: Select all

 command. Thanks,
Arcones

Re: GUIlist issue

Posted: August 28th, 2011, 5:29 pm
by chocolatepie33
I don't usually ever use guilists, and things seem to work out fine. Try coding without them.

Re: GUIlist issue

Posted: September 18th, 2011, 7:57 am
by Leo_V117
Okay, quick explanation on guilists...

newgui "menu" [ < Can act as the first guilist. So this makes a single column.
guilist [ < Second guilist, causes a row.
guilist [ < Third guilist, causes a column.
etc, etc. Get me?