Many toggle buttons

Geyser is an object oriented framework for creating, updating and organizing GUI elements within Mudlet.
Post Reply
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?

Posts: 1100
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 2 guests