Pixel Perfection for Specific Resolution
View Single Post
04-11-10, 02:34 PM
A Molten Giant
Join Date: Sep 2009
Originally Posted by
If you don't want to override the user's uiScale, you can use the following code to position a frame on real pixel boundaries:
It includes some test code that renders pixel-wide nested borders. The top one in this screenshot is adjusted, the bottom one isn't.
Hence my above post
One problem though, neither GetCVar("uiScale") or UIParent:GetScale() return values instantly, you'll have to hook an event like PLAYER_ENTERING_WORLD(I don't know the first event that they are available, I do know that they are available at PLAYER_ENTERING_WORLD).
Three things are certain,
Death, taxes and site not found,
You, victim of one.
View Public Profile
Send a private message to nightcracker
Find More Posts by nightcracker