Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: TomTom Crazy Arrow integration #3

Open
LoneWanderer-GH opened this issue Sep 9, 2018 · 0 comments
Open

Feature: TomTom Crazy Arrow integration #3

LoneWanderer-GH opened this issue Sep 9, 2018 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed

Comments

@LoneWanderer-GH
Copy link
Owner

LoneWanderer-GH commented Sep 9, 2018

It would be great to have a mover for the TomTom Crazy Arrow.

However, after many attempts, it seems that the arrow frame does not exist when player enters world (WoW API PLAYER_ALIVE event). I can create the mover manually using the Wow LUA addon when I'm in game, using the ElvUI API. see screenhsot
movers_for_coolline_tomtom

It would be nice to hook on the frame creation, or delay mover creation using a timer (AceTimer would do the trick).

However, since the addon is based on an Elvui plugin, I faced issues using the provided Ace timer.

1. using the ElvUI provided Timer

local E, L, V, P, G = unpack(ElvUI);
local ElvUI_CoolLine_Wrapper = E:NewModule('ElvUI_CoolLine_Wrapper', 'AceHook-3.0', 'AceEvent-3.0', 'AceTimer-3.0');
...
function ElvUI_CoolLine_Wrapper:CreateMovers()
    ...
end
...
function ElvUI_CoolLine_Wrapper:Initialize()
    ...
    E:ScheduleTimer(CreateMovers, 15) -- <== raises an AceTimer error due to function not existing in module
    ...
end

Ace Timer Error :
Tried to register 'CreateMovers' as the callback, but it doesn't exist in the module.

2. Using own timer lib instance(?) :

    local AceTimer = LibStub("AceTimer-3.0");
    AceTimer:ScheduleTimer(CreateMovers, 15)

I get:
AceTimer-3.0-17: ScheduleTimer(callback, delay, args...): 'callback' and 'delay' must have set values.

@LoneWanderer-GH LoneWanderer-GH added bug Something isn't working enhancement New feature or request help wanted Extra attention is needed labels Sep 9, 2018
@LoneWanderer-GH LoneWanderer-GH self-assigned this Sep 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant