Page 1 of 1

LuaRendering.draw_sprite{respect_alt_mode=}

Posted: Fri May 24, 2019 11:44 am
by eradicator
What?
A method (i don't care what method) to make rendered sprites respect each players alt-mode setting.

Why?
To make vanilla-style informative overlays that the player can dis/enabled at will.
Because a native implementation would hopefully be much faster than manually calling set_players() on thousands of objects.

Re: LuaRendering.draw_sprite{respect_alt_mode=}

Posted: Thu May 30, 2019 3:29 pm
by Boodals
I have implemented this for 0.17.45 (didn't make it into todays release unfortunately). All rendering.draw_X functions will have the only_in_alt_mode parameter, as well as a getter and setter.

Re: LuaRendering.draw_sprite{respect_alt_mode=}

Posted: Thu May 30, 2019 3:54 pm
by eradicator
Awesome. Thank you.
Why don't you have a staff name though?

Re: LuaRendering.draw_sprite{respect_alt_mode=}

Posted: Thu May 30, 2019 5:28 pm
by Boodals
Sorry, I usually mention that I have source access. I can submit pull requests to add small stuff like api requests and bug fixes, but i'm not a wube dev.