Many toggle buttons

Geyser is an object oriented framework for creating, updating and organizing GUI elements within Mudlet.
Post Reply
vizman
Posts: 10
Joined: Fri Feb 09, 2018 8:48 pm

Many toggle buttons

Post by vizman »

Hello, I want to create many toggle buttons using f.e. Geyser.Label. Buttons task is to show/hide different layout elements.
I know I need variable storing toggle state. But f.e. if I need 100 buttons, i have to declare 100 different variables? Or is there other way?

Jor'Mox
Posts: 1101
Joined: Wed Apr 03, 2013 2:19 am

Re: Many toggle buttons

Post by Jor'Mox »

You can make a table that stores those values via some key, that links back to the labels you are using in a unique fashion.

Post Reply