riperiperi / FreeSO

Re-implementation of The Sims Online.
http://freeso.org
Mozilla Public License 2.0
817 stars 95 forks source link

Admin Red Chat Balloon #173

Closed JDrocks450 closed 4 years ago

JDrocks450 commented 4 years ago

This will make the UIChatBalloon for an admin/moderator sim appear red instead of blue to stand out among users. It checks if the avatar's TSOState permissions attribute is set to Admin when the balloon text is updated. To maintain user customization settings, this does not have an impact on the chat text color of the balloon, but white is the easiest color to read in my opinion.

JDrocks450 commented 4 years ago

Second change is to fix pointer being drawn one pixel off from where it should be resulting in a minor graphical glitch.

riperiperi commented 4 years ago

LGTM, I forgot that the colour was actually just a multiply. Nice catch on the 9-slice rounding error.