guiaccordionctrl: members
14 implemented, 0 reserved. Entries are sorted by name.
Implemented
Section titled “Implemented”addrow
Section titled “addrow”guiaccordionctrl.addrow(id: number) -> guiaccordionentry
Runs on: client only. Origin: compatibility. Since: M8. Playground: no.
Adds a row with that id at the end and returns it; set its image.
temp.row = Panels.addrow(1);row.image = "panel1.png";Specification: gui-legacy.md§24.
animationtime
Section titled “animationtime”guiaccordionctrl.animationtime: number
Runs on: client only. Origin: compatibility. Since: M8. Playground: no.
Seconds a move between rows takes (0.5); 0 moves at once.
Panels.animationtime = 0.25;Specification: gui-legacy.md§24.
backgroundimage
Section titled “backgroundimage”guiaccordionctrl.backgroundimage: string
Runs on: client only. Origin: compatibility. Since: M8. Playground: no.
Picture stretched over the open area of the selected row.
Panels.backgroundimage = "panelback.png";Specification: gui-legacy.md§24.
clearrows
Section titled “clearrows”guiaccordionctrl.clearrows() -> number
Runs on: client only. Origin: compatibility. Since: M8. Playground: no.
Removes every row.
Panels.clearrows();Specification: gui-legacy.md§24.
getselectedrow
Section titled “getselectedrow”guiaccordionctrl.getselectedrow() -> number
Runs on: client only. Origin: compatibility. Since: M8. Playground: no.
The index of the selected row.
echo(Panels.getselectedrow());Specification: gui-legacy.md§24.
insertrow
Section titled “insertrow”guiaccordionctrl.insertrow(index: number, id: number) -> guiaccordionentry
Runs on: client only. Origin: compatibility. Since: M8. Playground: no.
Inserts a row with that id at a position (the end when below 0 or past the end) and returns it.
temp.row = Panels.insertrow(0, 5);Specification: gui-legacy.md§24.
onAnimationEnd
Section titled “onAnimationEnd”guiaccordionctrl.onAnimationEnd(index: number)
Runs on: client only. Origin: compatibility. Since: M8. Playground: no.
Raised when a move ends, with the new row index.
function Panels.onAnimationEnd(index) { echo(index);}Specification: gui-legacy.md§24.
onAnimationStart
Section titled “onAnimationStart”guiaccordionctrl.onAnimationStart(from: number, to: number)
Runs on: client only. Origin: compatibility. Since: M8. Playground: no.
Raised when a move starts, with the current and the destination row index.
function Panels.onAnimationStart(from, to) { echo(from @ " -> " @ to);}Specification: gui-legacy.md§24.
removerow
Section titled “removerow”guiaccordionctrl.removerow(index: number) -> number
Runs on: client only. Origin: compatibility. Since: M8. Playground: no.
Removes the row at an index.
Panels.removerow(0);Specification: gui-legacy.md§24.
removerowbyid
Section titled “removerowbyid”guiaccordionctrl.removerowbyid(id: number) -> number
Runs on: client only. Origin: compatibility. Since: M8. Playground: no.
Removes the row with an id.
Panels.removerowbyid(5);Specification: gui-legacy.md§24.
rowcount
Section titled “rowcount”guiaccordionctrl.rowcount() -> number
Runs on: client only. Origin: compatibility. Since: M8. Playground: no.
The number of rows.
echo(Panels.rowcount());Specification: gui-legacy.md§24.
guiaccordionctrl.rows: guiaccordionentry[]
Runs on: client only. Origin: compatibility. Since: M8. Playground: no. read-only.
The rows; each has an id and an image.
for (temp.r: Panels.rows) echo(r.image);Specification: gui-legacy.md§24.
selectedrow
Section titled “selectedrow”guiaccordionctrl.selectedrow: number
Runs on: client only. Origin: compatibility. Since: M8. Playground: no.
The index of the selected row; setting it moves to that row.
Panels.selectedrow = 2;Specification: gui-legacy.md§24.
setselectedrow
Section titled “setselectedrow”guiaccordionctrl.setselectedrow(index: number) -> number
Runs on: client only. Origin: compatibility. Since: M8. Playground: no.
Moves to a row (kept inside the rows).
Panels.setselectedrow(1);Specification: gui-legacy.md§24.
Engine version 0.1.0. Built 2026-11-18.