KGPanels and the 1Pixel border

WoW UI Gallery » Forums » General Discussions » KGPanels and the 1Pixel border
  1. RSS Feed Email Twitter Digg Facebook Delicious Stumble Upon

    Original Post by Kyuushi

    Currently, I've been working on setting a 1px border around my unit frame elements. Using KGPanels, I've tried various approaches and can't seem to get the effect I'm looking for w/out going into overly complex layouts that involve a 1px line for each side of the element: Top, Bottom, Left, Right. It feels like I'm missing something -very- simple. While I could use a solid black box that is one pixel wider than the element, I'd prefer to have a semi-opaque background to the element when the value is less than 100%.

    Using a square border texture on the panel( set to a pixel width of 8 since any less makes sections of the border disappear ), I'm able to produce a border'd area w/ a semi opaque background but the background always seems to extend just one pixel beyond the border no matter how finely I adjust the background inset.

    Does anyone have any suggestions or tips?

    I can provide screenshots if my descriptions aren't adequate.

    Comments

  2. Taeo ( Admin ) - Posted 1 year ago #

    I've had similar problems trying to do pixel perfect stuff in kgPanels. I never quite got things perfectly the way I wanted.

    Since then i've started using LitePanels which I think is much nicer and makes doing borders very easy. The only drawback (for some) is that there is no GUI. All the config is done in LUA. It sounds scary but it's actually very simple and it comes with a detailed guide.

  3. Ferous ( Member ) - Posted 1 year ago #

    You can get pixel perfect kgPanels by doing these steps but its tedious:

    Use this macro -

    /run SetCVar("uiScale", 768/string.match(({GetScreenResolutions()})[GetCurrentResolution()], "%d+x(%d+)"))

    It makes it to where you have perfect pixels on your UI. Other ways to make pixel perfect UIs, is to use the nudge feature in kgPanels. Moving it around while locked and then unlock it when you get the borders as perfect as you can get them, move it back to where you want the panel, then lock it again, and make the width and height numbers absolute. You don't want them to be 25.1524 when you have your panel locked and set to where you want it, you want to go back and make all panels numbers 25, for example

  4. Kyuushi ( Member ) - Posted 1 year ago #

    I've been able to accomplish it by forming borders constructed of indiviual 1px lines. i.e. 2x horizontal 1px lines and 2x vertical pixel lines form a square. Its just very tedious and I really feel like I'm missing out on a much more simple solution.

  5. haylie ( Member ) - Posted 1 year ago #

    Well, if you use oUF for your unitframes, you can code the 1px borders directly in the layout. Same goes for most Lua-only addons (one of the many reasons why I like them and would like to see them used more).

    Also, I support the use of LitePanels. A truly amazing mod.

  6. Led ( Member ) - Posted 1 year ago #

    haylie said:
    Well, if you use oUF for your unitframes, you can code the 1px borders directly in the layout. Same goes for most Lua-only addons (one of the many reasons why I like them and would like to see them used more).

    Also, I support the use of LitePanels. A truly amazing mod.

    So everyone has to learn lua?

    I couldn't even do 10% of my UI if I had to use lua only addons.

  7. Kyuushi ( Member ) - Posted 1 year ago #

    What I've managed is here: http://i914.photobucket.com/albums/ac345/KyuushiAlleria/WoWScrnShot_030510_120805.jpg

    It's not entirely impressive, I know.

    Each element of the UF( Power, HP ) has 4 kgpanels slaved to it. Top, Bottom, Left, Right - each 1px in width or height. It seems -very- laborious and overly complex to do it this way.

    I'm not against looking into lua-config'd addons. It shouldn't be too big of a leap.

  8. Ferous ( Member ) - Posted 1 year ago #

    Led said:
    So everyone has to learn lua?

    I couldn't even do 10% of my UI if I had to use lua only addons.

    QFT - Not all people are willing or tolerant of Lua AddOns. Not everyone wants to. Its perfectly feasable to get pixel perfect borders if you play around with them and use that reso macro :)

  9. Kyuushi ( Member ) - Posted 1 year ago #

    Ferous,

    I did try the macro and I dig it. It did rekajigger( it's a term... I think it's metric! ) my scale to a degree that shifted a bunch of elements. It did show that some of my elements were a pixel or two off though.

    My general problem is that here has to be a way to create a border in KGPanels w/out using a ton of extraneous panels. Workable: Yes. Elegant: No. I'd say Schmelegant( also metric ).

  10. Ferous ( Member ) - Posted 1 year ago #

    Just make a border out of kgpanels then, and play with the border width and nudge feature. You can get crisp borders using the border feature if you play with nudge, while the panel is locked and numbers are absolute, then unlock it, move it to where you want after you nudge it in lock so you get crisp borders, and then lock it again, making numbers absolute. I know that is tedious as well but you don't need more than one panel this way.

    I said it in a confusing way - see my thingy on it :P

    http://ferous.wowinterface.com/portal.php?&id=558&pageid=218

  11. haylie ( Member ) - Posted 1 year ago #

    Led said:
    So everyone has to learn lua?

    I couldn't even do 10% of my UI if I had to use lua only addons.

    I didn't say that. The OP asked for a solution beside kgPanels, so I gave him one: code it into the addon.

    Also, why use a macro? I thought it was possible to go into the config.wtf file and change the resolution from there.

  12. Ferous ( Member ) - Posted 1 year ago #

    haylie said:
    Also, why use a macro? I thought it was possible to go into the config.wtf file and change the resolution from there.

    It is, its just easier to do a macro while ingame rather than editing the config.wtf and then having to reload UI :)

  13. Lily.Petal ( Member ) - Posted 1 year ago #

    Actually, I have found a nice way to get a 1px border. Arch Inventory has a border that is listed as 'ArckInventory Square 3' It's actually 3 pixes but if you change the border edge size to about 3, it should reduce it evenly to a 1 pixel. I will send a screen shot in a bit if you would care to view it. =]

  14. haylie ( Member ) - Posted 1 year ago #

    Ferous said:
    It is, its just easier to do a macro while ingame rather than editing the config.wtf and then having to reload UI :)

    Hmm. Do you only need to do the macro once and then forget about it? Does it reset when you delete your WTF folder?

    I've been having problems with the FBS myself. Namely my action bars (rActionBarStyler+rActionButtonStyler). I've set my resolution to 768/900 (my screen is 1440x900) and no matter what scale I set the action bars at they still look fuzzy. Could just be my retarded PC, but I get the feeling I'm missing something.

  15. Ferous ( Member ) - Posted 1 year ago #

    haylie said:
    Hmm. Do you only need to do the macro once and then forget about it? Does it reset when you delete your WTF folder?

    I've been having problems with the FBS myself. Namely my action bars (rActionBarStyler+rActionButtonStyler). I've set my resolution to 768/900 (my screen is 1440x900) and no matter what scale I set the action bars at they still look fuzzy. Could just be my retarded PC, but I get the feeling I'm missing something.

    The macro always works unless you delete your WTF folder, then yeah, it resets back to blizzards UI Scale. The macro that I posted is universal to all resolutions as well :)

    edit - You also want to set your video multisamplings to x1, though its lower graphics, it makes your UI elements more pixel perfect

Reply »

You must log in to post.