stephengold / tonegodgui

ToneGod's graphical user-interface library for jMonkeyEngine3
Other
9 stars 5 forks source link

Added support for PNG pictures for cursors. #2

Closed bob0bob closed 1 year ago

bob0bob commented 1 year ago

A new attribute is added to the style sheet to support loading png files. "imgType" attribute supports "cur" or "png".

Basically, if empty or "cur" in the field will cause the cursor data to be loade through JMECursor. Otherwise it will define a new JMECursor and load the PNG as a texture and convert it to the right format and set the image within JMECursor.

stephengold commented 1 year ago

Thanks for your contribution @bob0bob !