1. #1
    Pit Lord shade3891's Avatar
    15+ Year Old Account
    Join Date
    Oct 2008
    Location
    Boat to the Dragon Ilses
    Posts
    2,345

    Weakaura Mouseover script not working

    I have made a texture (weakaura) that is clickable.
    - Texture base Alpha is 0%. So it is invisible by default. (works)
    - Trigger 1 is always true, and the aura is loaded when any trigger returns true. (works)
    - On click it will cast Arcane Missiles. (works)
    - Will show the aura when channeling Arcane missiles. Set Alpha to 100% for the duration. (works)

    What doesn't work is getting Alpha set to 100% so it becomes visible when I mouseover the region

    I have made a custom trigger that listens for "mouseoverFrame_event" and used a condition to check if it returns true, if it does set Alpha to 100%.

    ACTION SCRIPT:
    Code:
    if not aura_env.button then
        local r = aura_env.region
        aura_env.button = CreateFrame("Button", "ARC_CAST_MO_AM", r, "SecureActionButtonTemplate")  
    end
    
    aura_env.button:SetAllPoints()
    aura_env.button:RegisterForClicks("LeftButtonDown", "LeftButtonUp")
    aura_env.button:SetAttribute("type", "spell")
    aura_env.button:SetAttribute("spell", 5143)
    aura_env.button:SetScript("OnEnter", function() WeakAuras.ScanEvents("_mouseoverFrame_event", true) end)
    aura_env.button:SetScript("OnLeave", function() WeakAuras.ScanEvents("_mouseoverFrame_event", false) end)

    CUSTOM TRIGGER: (for the mouseover part)




    CONDITIONS



    Where did i go wrong? I suspect my action script is wrong. But don't know what.



    Full Aura Import:

    Code:
    !WA:2!LA13VTrsD84gDkOvItnHsoUccTYhkk5uJdo5sO0JQwVBSX(QttyTBAbfv7z3zS35Y6z2BMzDsQajKfsWBiLdUxqIhmIxq8KL4DuF44bKqJQqIxUN6FafP8apc8DMnX5UEv6KalL2zN57p)8973pZuO2cdwaVa(xCVWmjr05KcJPrCwlEMiIuiFVJRFN)IZTt)D)JxxC8U96jjQ6)5FYN8bF8lEX)uCYfB8J)n)Y3BMzM5SECbPVGNXW(8eU49Mf(nrIgqAtowLjiDxptKK(1JvQu5TwBTJq95LO81UxTJlJhUr5G12WZeaDp7qcjTImLePcqkkp(ujjP3ECktf6x9(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oiLluEpHZhuiCavi4I4jugqhMdjlobwgrQA7c7MZQE8SJT4KfJlCQLuZG8HnUFRgBx1lHJW7hQqjGolgmilrrDepbauOmFfpdf)IAPtqucsknR8KqezwKo)Lz1f0WB9zOHba4GhsqhwbQfYd2JFeryxUdbtrhKVR5F3yueFGb9LXNHyrX88PgtHkSLFq1Q3FspZgq1fUV4Riq2oA5w6h44bLh1sA)JVszhhApBx70o5WmLIZCHjEg0V76MWJqjUc3pvZEo)V90xwTB76lig(pJRxUOND3I3WTyLa)CQSD2TtLDGDGHQITiraauXgz5I2Mma4UuKIR46Mp5(sE4wTiQkjj2BnLlVYN7ytpe0niacy)eA0HYLl2K0tLB9TbQAtWC5opiT4kVsxOa(l4tihmZcgLSJXFHsNl1nC3S87SXRu2wrcAQA5I7YQAk7GOtzBwXDAHVuRielVLC5IVsIrqrZfgR4cO0xGJAsqdj))4OEiyWo3tNI5DYPp7QFStOKmaKoOCPVDP1pfU2MHnJjRdV6Oif)8pBrFsEBQT0P)Y2Rs8p)(tqj4jrWDzhrXQ46397)h(9WyEHNbpba0y3uBRRZzxo74F(T4)TFR93NFXSckZWTqIxpJINSfP6nBjK(pYtnHlOqAzN9tV6(vdA3WVsZonUpSSv1XrtVh9TxsxFl9QV2OHib18Mepzm)OGHOKmYSIOyeRprE9L0)QzhbuUMhdDI2nxN50NQ)q4a9V2EU(J0UJU4TcXclDc8cNfKHBwQ8gLwFHH)9h9Fp
    - - - Updated - - -

    Less clean, but I managed to get it to work.

    Separated the aura in two, one aura handles the clicking part the other aura the visual part. (mouseover and casting)
    I just needed to make sure the visual aura sits a level above the "clicking one" or it would block the region of the visual one and the mouseover would not trigger.

    For now I will continue with my new UI. If anyone has a better solution I am all ears.
    Last edited by shade3891; 2024-06-16 at 03:25 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •