[Wish] Remove read-only from CMlControl.ControlClasses

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
reaby
Posts: 1032
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

[Wish] Remove read-only from CMlControl.ControlClasses

Post by reaby »

Hi,

I'm starting to like stylesheets in manialinks, and by this I do mean A LOT.
Unfortunately I'm not able to add and remove classes from controls since Control.ControlClasses is read-only.
My wish follows: would it be possible to make the property read-write :)

Code: Select all

(menuLabel as CMlLabel).ControlClasses.add("active");

// and later you could say:

(menuLabel as CMlLabel).ControlClasses.remove("active");
Thanks,
Reaby
Post Reply

Return to “ManiaScript”

Who is online

Users browsing this forum: No registered users and 0 guests