• 0

    posted a message on Unofficial oUF - methods used for layouts
    Hi again people, long time no see.. I have a problem i need help with. I just rewrote my oUF_Kosken for oUF 1.1 and i have a few minor problems.. I can't get the combo-points, my powerspark or the outline on my power text to show..

    http://www.wowinterface.com/downloads/info8729-oUF_Kosken.html

    I'd be extremely happy if you could spot and help me solve my problems..
    Posted in: Unit Frames
  • 0

    posted a message on Unofficial oUF - methods used for layouts
    Quote from Sajk »

    BTW
    - on my druid I have percentage of mana left, shown in center of mana bar it's not full
    but on any other char like my lock, hunter and priest it doesn't happen.


    If you got LibDruidMana-x.x installed it should be that, otherwise you've altered your layout to show it in the middle of the bar. As for Gooxen; You might want to create a fontstring that the function can react to (I'm not sure, i'm just a newb). I guess it's the same with the leader..
    Posted in: Unit Frames
  • 0

    posted a message on Unofficial oUF - methods used for layouts
    Quote from Firedancer »
    Is there any way to get the debuff highlighting without needing the debuff icons visible on the frame?

    I think oUF_DispelColor has a function that colors the frame without debuffs showing. Try to steal the code.. :P
    Posted in: Unit Frames
  • 0

    posted a message on Unofficial oUF - methods used for layouts
    looks really nice.. In my opinion the target name could use another color or outline when applied to a white background like that.. :P But overall im gonna give it a nine.. ^^
    Posted in: Unit Frames
  • 0

    posted a message on Unofficial oUF - methods used for layouts
    Quote from zypher »

    http://ace.pastey.net/86118

    RAWR~!

    very very similar to rUnits
    care to post a screen? i'm to lazy to copy-paste the code and make it work.. :P
    Posted in: Unit Frames
  • 0

    posted a message on Unofficial oUF - methods used for layouts
    Quote from haste »

    usually you have values from 0 - 255, now you have values from 0 - 1. This means:

    .25/1 = x/255 | *255
    (.25/1) * 255 = x
    .25 * 255 = x
    .25 * 255 = 63.75


    Welcome math :).

    Thats also a solution, i'm lazy when looking for colors so i consult this: Link

    But if you want to learn for real, you really should do the math.. :P
    Posted in: Unit Frames
  • 0

    posted a message on Unofficial oUF - methods used for layouts
    Quote from Gazban »



    Link Removed: http://www.mediafire.com/?4lnmjtszzqc
    looks nice, not something i'd use, but good work!
    Posted in: Unit Frames
  • 0

    posted a message on Unofficial oUF - methods used for layouts
    About oUF_TsoHG, it looks like this: Img
    Posted in: Unit Frames
  • 0

    posted a message on Unofficial oUF - methods used for layouts
    Quote from vuq »


    Hi, that looks cool, could you please explain a little bit more about your Addon? How to get it working actually, for me it does not show anything.

    Im using oUF Kosken and oUF_oUF_TsoHG
    I tested it on my layout and it works fine. To explain it simpler (or atleast try to), put this code in your main function outside the frames like the name code etc etc.
    	local ct = hp:CreateFontString(nil, "OVERLAY")
    	ct:SetPoint("CENTER", 0, -1)
    	ct:SetFont("Fonts\\FRIZQT__.ttf", 14)
    	ct:SetTextColor(1, 1, 1)
    	self.CombatText = ct
    	hp.CombatText = ct

    Change what you like.. If you'd like to make it custom for different frames or hide it for a specific frame you could do: (taken from my code)
    	if unit=="player" then 
    		if LibDruidMana then 
    			local druid = hp:CreateFontString(nil, "OVERLAY")
    			druid:SetFont(font, 12, "OUTLINE")
    			druid:SetTextColor(1,1,1) 
    			druid:SetPoint("RIGHT", hp, "LEFT", -50, 0)
    			druid:SetJustifyH("LEFT")
    			druidMana = druid
    		end
    		name:Hide() 
    		ppp:SetPoint("LEFT", hp, "LEFT", 2, 0)
    		ppp:SetJustifyH"LEFT"
    		local missing = hp:CreateFontString(nil, "OVERLAY")
    		missing:SetPoint("CENTER", hp, "CENTER", -20, 0)
    		missing:SetJustifyH("CENTER")
    		missing:SetFont(font, 12, "OUTLINE")
    		self.Missing = missing
    -- Combat text below (not in my code, this is just an example) --
    		local ct = hp:CreateFontString(nil, "OVERLAY")
    		ct:SetPoint("LEFT", self, "RIGHT", 20, -1) -- <witch side to anchor to>, <frame>, <to witch side of frame>, <xOffset>, <yOffset>
    		ct:SetFont("Fonts\\skurri.ttf", 14) -- <Font file>, <size>, <layer>
    		ct:SetJustifyH("RIGHT") -- Justify Horisontal
    		ct:SetTextColor(1, 1, 1) -- color
    		self.CombatText = ct
    		hp.CombatText = ct
    -- Ends --
    	end
    Posted in: Unit Frames
  • 0

    posted a message on Unofficial oUF - methods used for layouts
    Code updated and uploaded @ WoWI.
    Posted in: Unit Frames
  • 0

    posted a message on Unofficial oUF - methods used for layouts
    Have a pastey!

    Pastey

    If it is insuficient you can dl my layout from WoWI.
    Posted in: Unit Frames
  • 0

    posted a message on Unofficial oUF - methods used for layouts
    Quote from Coldfury »

    thats because when the unitisdead or ghost, you change the hp text value to "Ghost/Dead" but you are not touching to the missing value fontstring.

    add self.Missing:SetText("") to the if UnitIsDead and UnitIsGhost check.

    next time you import something from another layout, import it correctly :P
    Thanks alot Cold, i'm just a novice and still learning on my spare time so i try as good as i can. The code works.

    When a raidmember is spawned it gets the text "Ghost" and it stays there forever. (Only tested in AV since i don't raid)
    Played around with the code, but can't find the issue.. I'll have another check tomorrow..
    Posted in: Unit Frames
  • 0

    posted a message on Unofficial oUF - methods used for layouts
    Quote from p3lim »

    if(UnitIsDead(unit) or UnitIsGhost(unit)) then
    	:SetText()
    end


    looks good, work some more on it and put it up at wowinterface.com :)
    Don't mean to be rude p3lim, but that is already in the code, and that's what's weird, i can't really find the fault.
    Posted in: Unit Frames
  • 0

    posted a message on Unofficial oUF - methods used for layouts
    I have a problem that should be taken care of asap. It's located in my new layout oUF_Kosken.
    The party- and raid-frames wont update their healthtext properly, you can see the result in the raid picture


    Also, does anyone know how to make the deficit text dissapear when the target/party/raidmember is dead/ghost?

    I just can't figure it out.

    Thanks alot for the help.
    Posted in: Unit Frames
  • 0

    posted a message on Unofficial oUF - methods used for layouts
    oUF_Kosken uploaded at WoWI,

    Link

    Hope you'll like it.
    Posted in: Unit Frames
  • To post a comment, please or register a new account.