Skip to content

guiaccordionctrl: members

14 implemented, 0 reserved. Entries are sorted by name.

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.

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.

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.

guiaccordionctrl.clearrows() -> number

Runs on: client only. Origin: compatibility. Since: M8. Playground: no.

Removes every row.

Panels.clearrows();

Specification: gui-legacy.md§24.

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.

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.

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.

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.

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.

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.

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.

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.

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.