Sno
14th March 2003, 19:22
Easy and simple
OGC and HL have the same command menu system
First we start with a regular item
"0" "Sno's commandmenu" "echo hi this is made by Sno"
0 stands for the number on the left hand side so when you press 0 when the command menu it open it will execute that # now this variable in OGC can also be replaced with * so there is no number
The second variable is what is shown on the command menu the thrid variable is the command executed when clicked or selected
Now we have an open tree
"1" "Open Tree" {
That opens a tree the first 2 variables are the same as the item
this character "{" is what opens the tree
to close the tree use "}"
ex.
"1" "Open Tree" {
"0" "Item 1" "echo item 1"
}
This will show a tree with 1 view
Very simple that is it and here is the complete menu
"0" "Sno's commandmenu" "echo hi this is made by Sno"
"1" "Open Tree" {
"0" "Item 1" "echo item 1"
}
For HLH it is very simple
For an Item do this
ITEM "Item 1" "echo Item 1"
the variable Item starts and Item
variable 2 "Item 1" Is the alias that shows up
variable 3 is the command that is executed
To start a tree do
MENU "sno"
this starts the tree to end a tree use
"ENDMENU"
Finish script
ITEM "Item 1" "echo Item 1"
MENU "sno"
ITEM "Item 1" "echo Item 1"
ENDMENU
OGC and HL have the same command menu system
First we start with a regular item
"0" "Sno's commandmenu" "echo hi this is made by Sno"
0 stands for the number on the left hand side so when you press 0 when the command menu it open it will execute that # now this variable in OGC can also be replaced with * so there is no number
The second variable is what is shown on the command menu the thrid variable is the command executed when clicked or selected
Now we have an open tree
"1" "Open Tree" {
That opens a tree the first 2 variables are the same as the item
this character "{" is what opens the tree
to close the tree use "}"
ex.
"1" "Open Tree" {
"0" "Item 1" "echo item 1"
}
This will show a tree with 1 view
Very simple that is it and here is the complete menu
"0" "Sno's commandmenu" "echo hi this is made by Sno"
"1" "Open Tree" {
"0" "Item 1" "echo item 1"
}
For HLH it is very simple
For an Item do this
ITEM "Item 1" "echo Item 1"
the variable Item starts and Item
variable 2 "Item 1" Is the alias that shows up
variable 3 is the command that is executed
To start a tree do
MENU "sno"
this starts the tree to end a tree use
"ENDMENU"
Finish script
ITEM "Item 1" "echo Item 1"
MENU "sno"
ITEM "Item 1" "echo Item 1"
ENDMENU