ag_UnitFrames

95 - Set X/Y coords of a frame through options

What is the enhancement in mind? How should it look and feel?
Just another slider representing the X/Y of the frame in their options
I have setup my UIScale in a way that 1 'UI unit' represents exactly 1 pixel, so it is easier for me to place frames around in a pixelperfect manner.

Please provide any additional information below.
I hacked it in by myself, but I'l fairly sure that it is not the best way at all as I just added two sliders, "X" "Y" with the following get/set-functions
local function getUnitCoord(info)
    local frame = "aUF"..getClass(info,info.arg
    return aUF.db.profile.Positions[frame][info[#info]]
end

local function setUnitCoord(info, value)
    local frame = "aUF"..getClass(info,info.arg
    aUF.db.profile.Positions[frame][info[#info]] = value
    aUF:CallMethodOnUnit("LoadPosition",class)
    aUF:CallMethodOnUnit("SavePosition",class)
end

User When Change
Starfox Mon, 02 Nov 2009 21:04:45 Changed name from Set X/Y in through options to Set X/Y coords of a frame through options

Changed description:
  What is the enhancement in mind? How should it look and feel?
  Just another slider representing the X/Y of the frame in their options
- I have my UI scale set up so that wow uses a 1:1 represention for my resolution and the UI
+ I have setup my UIScale in a way that 1 'UI unit' represents exactly 1 pixel, so it is easier for me to place frames around in a pixelperfect manner.

  Please provide any additional information below.
  I hacked it in by myself, but I'l fairly sure that it is not the best way at all as I just added two sliders, "X" "Y" with the following get/set-functions
Starfox Mon, 02 Nov 2009 21:02:47 Create

You must login to post a comment. Don't have an account? Register to get one!

  • 1 comment
  • Avatar of Starfox Starfox Mon, 02 Nov 2009 21:04:45

    Clarified title

  • 1 comment

Facts

Last updated on
02 Nov 2009
Reported on
02 Nov 2009
Status
New - Issue has not had initial review yet.
Type
Enhancement - A change which is intended to better the project in some way
Priority
Medium - Normal priority.

Reported by

Possible assignees