CurseForge and Overwolf are joining forces!
Awesome More Information
  • 0

    posted a message on Something i want to make.
    the thing is i don't know basic programming concepts cux i've never learned any of it. So starting this addon is my first time looking at the language of lua. As to answer your question i think the entire string is nil cux it didn't error and it didn't change anything.

    i ended up using the first one for the mana color cux that makes the most sense to me. i haven't had a chance to try it on a mana user though.

    As of right now this is the entire code.
    http://paste.wowace.com/716/

    Also i haven't died a lot but last night the event to hide the frame while a ghost didn't work after a wipe in Uld. after a reloadui it didn't show till i was alive. did i mess up on something or is the griffin ghost thing different to being a normal ghost?
    Posted in: Addon Ideas
  • 0

    posted a message on Something i want to make.
    is it cux i'm calling the namelist in each line and that is not proper syntax?

    also why wasn't this part of the "getting started" part on the wiki for addons?

    this for the purpose of the "local" keywords?
    ( http://www.lua.org/manual/5.1/manual.html#2.4.7 )
    Posted in: Addon Ideas
  • 0

    posted a message on Something i want to make.
    can i do this?

    local PowerBarColor.MANA = {
    
    PowerBarColor.MANA.r = 0
    PowerBarColor.MANA.g = 144/255
    PowerBarColor.MANA.b = 1
    }
    Posted in: Addon Ideas
  • 0

    posted a message on Something i want to make.
    all the new changes work fine. hey a change that i didn't mess up, lol...

    i'll mess with the mana color thing later too tired.
    Posted in: Addon Ideas
  • 0

    posted a message on Something i want to make.
    sorry i ment unitpower color. the darkish blue for mana is hard to see sometimes.

    i added the events and put

    if UnitIsDeadOrGhost("player") then
    self:Hide()
    else
    self:Show()
    end

    somewhere around 118 ( using ur paste ). I'll test it out during tonight's raid.
    Posted in: Addon Ideas
  • 0

    posted a message on Something i want to make.
    it works sweet. previously i didn't log on any classes that had mana but some ppl might find the class color to be hard to see. i also logged on to a Druid, everything seems to be working nice and smooth. i don't think anyone will care about mana so i'll leave it as is.

    i want to hide the frame when i don't need to see it. i don't mind it always benig shown but dead/ghost is not needed.

    can i just apply

    if UnitIsDeadOrGhost("player") then
    self:Hide()
    else
    self:Show()
    end

    well i'm not sure where i can put it but looking at Speedometer you have it after your font string. does that mean i can also put it after mine?

    do i also have to put in

    self:RegisterEvent("PLAYER_DEAD")
    self:RegisterEvent("PLAYER_ALIVE")

    where do i put that or can that be with the rest of the new stuff i'm putting in?
    Posted in: Addon Ideas
  • 0

    posted a message on Something i want to make.
    oh shit.... /facepalm
    Posted in: Addon Ideas
  • 0

    posted a message on Something i want to make.
    http://paste.wowace.com/672/

    that is the entire code as it is right now

    this is the error report from swatter:

    Date: 2009-05-17 18:17:54
    ID: -1
    Error occured in: Global
    Count: 1
    Message: ..\AddOns\CustomPower\CustomPower.lua line 89:
    attempt to index local 'color' (a nil value)
    Debug:
    [C]: ?
    CustomPower\CustomPower.lua:89: in main chunk
    Posted in: Addon Ideas
  • 0

    posted a message on Something i want to make.
    erm was

    local _, powerType = UnitPowerType("player")
    local color = PowerBarColor[powerType]
    fontstring:SetColor(color.r, color.g, color.b)

    meant for me to fix it so it'd would work or use as it is?

    cux i ended up putting this

    local _, powerType = UnitPowerType("player")
    local color = PowerBarColor[powerType]
    text:SetTextColor(color.r, color.g, color.b)

    regardless fontstring = text and SetColor = a nil value so SetTextColor should be there.

    Or was it cux it was up that far in the first place that it was giving errors?
    Posted in: Addon Ideas
  • 0

    posted a message on Something i want to make.
    Quote from Phanx
    Your power type probably isn't available to addons yet at the time "file scope" code is run. Try moving the color bit into your event handler for ADDON_LOADED.


    did you mean moving the entire thing around or a certain part?
    Posted in: Addon Ideas
  • 0

    posted a message on Something i want to make.
    same thing if i put it around line 48 or 53. i tried moving it to line 90 but that didn't work either. can i only use 0-1 for any color the 4th one is transparent but leaving that out it assumes it's there anyway.
    Posted in: Addon Ideas
  • 0

    posted a message on Something i want to make.
    ah so i didn't have to put all the power type colors in.

    when i log in it errors cux it has

    "text:SetTextColor(color.r, color.g, color.b)" which on first load is a nil value

    but if i reload it doesn't error and it's the correct color.
    Posted in: Addon Ideas
  • 0

    posted a message on Something i want to make.
    doing it that way it thinks everything is mana. probably because the first settextcolor is blue. how to i get it to change depending on the type?
    Posted in: Addon Ideas
  • To post a comment, please or register a new account.