Hello!
Could someone explain to me how to make a scroll list.
I’ve been struggling with these scripts for a good week.
Here is my script in practice:
Can anyone explain to me why the scroll bar does not work, neither up nor down?
/////////////////////////////////////////
// SCROLL LIST //
/////////////////////////////////////////
itemDef {
name "Suwak"
group GROUP_NAME
rect 10 40 590 385
type ITEM_TYPE_LISTBOX
elementtype LISTBOX_TEXT
feeder FEEDER_MAPSINFO
elementwidth 200
elementheight 12
columns 1 0 200 33
visible 1
}
/////////////////////////////////////////
// MAPS INFO //
/////////////////////////////////////////
itemDef {
name "Siwa_Oasis"
group GROUP_NAME
rect 20 60 80 80
background "levelshots/oasis.tga"
style WINDOW_STYLE_SHADER
elementtype LISTBOX_TEXT
feeder FEEDER_MAPSINFO
visible 1
decoration
tooltip "^pSiwa Oasis"
}
itemDef {
name "Battery"
group GROUP_NAME
rect 115 60 80 80
background "levelshots/battery.tga"
style WINDOW_STYLE_SHADER
elementtype LISTBOX_TEXT
feeder FEEDER_MAPSINFO
visible 1
decoration
tooltip "^pBattery"
}
Im add to menudef.h definitions:
#define FEEDER_MAPSINFO 0x1e // mapinfo menu by mzk
On open
onOpen {
uiScript MapsInfo
}
Error:
I count on quick help.
I have tried everything possible
Greetings mAzak