guide-me / GuideMe

an interactive story viewer
MIT License
4 stars 8 forks source link

Allow buttons to be disabled / greyed-out #35

Closed meson1 closed 9 years ago

meson1 commented 9 years ago

Allow buttons to be disabled or hidden with the use of an additional XML attribute such as style="normal" or "disabled" or "hidden" with an equivalent parameter accessible in the in Javascript override function. Default, of course, would be "normal".

This will allow the same button layout to be maintained. Normally the buttons shift about as you add and remove them. This feature would allow the author the option of having the same buttons appear in the same locations and allow them to be rendered inactive by either 'greying' them out ("disabled") or hidden altogether ("hidden") (if hiding them is possible).

This is really a stop gap until the next iteration of GuideMe (2.0?) when I understand you may be considering replacing the Java controls with HTML controls, which will allow the authoring of teases with fully customisable UI elements and layout.

But a simple feature such as this being available in 0.1.4 would be very useful.