Originally Posted by Saiket
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: http://pastey.net/134131
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).