Instead of a button having text, can we allow for a button to have an image (and for the image to be changeable in scripting?)
Instead of a button having text, can we allow for a button to have an image (and for the image to be changeable in scripting?)
A fine suggestion. Maybe we could hook it up with the decal system so we could make buttons with decals instead of text. Then people could have easy access to the image sources too
Yea this would be really powerful. Ideally, the image would replace the actual default button "image" (though an option to keep it could be good).
If this is added, some controls over how the mouseover effect would look would also be important. Just making it darker, like it is now, would probably not be clear enough and players wouldn't realize that an image would be a button.
Hang on - I just thought of something... can decals be spawned and altered by scripting yet?
@FoaS
Sadly, no.
Dang...
All this is by way of me trying to find a better way to do dials other than states with models that have different UVs. Buttons that let you have textures instead of text, and to have those textures changable by way of scripting would be a wonderful solution.
I wouldn't necessarily want it INSTEAD of text, though it would be good to have as a choice. With or without should be allowed.
I can imagine a lot of interesting applications for scripted decals, as long as they had at least as much control as buttons do. (I'd be happier if it didn't take index chasing, but that goes for regular buttons too.)
Moved to Scripting Suggestions![]()