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 » Wed Feb 21, 2018 4:27 am

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: 1092
Joined: Wed Apr 03, 2013 2:19 am

Re: Many toggle buttons

Post by Jor'Mox » Wed Feb 21, 2018 2:46 pm

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

Who is online

Users browsing this forum: No registered users and 1 guest