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


  • New
  • Enhancment
Open
Assigned to _ForgeUser10251
  • Wig0r created this issue Nov 2, 2009

    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

  • Wig0r added the tags New Enhancment Nov 2, 2009
  • Wig0r edited description Nov 2, 2009
  • Wig0r posted a comment Nov 2, 2009

    Clarified title


To post a comment, please login or register a new account.