Skip to content

Commit

Permalink
Initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
Numynum committed Apr 25, 2021
0 parents commit a835a8b
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: CI

on:
release:
types: [published]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Create Retail Package
run: curl -s https://raw.githubusercontent.com/BigWigsMods/packager/master/release.sh | bash -s -- -p 475676
env:
CF_API_KEY: ${{ secrets.CF_API_KEY }}
GITHUB_OAUTH: ${{ secrets.GH_OAUTH }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea
65 changes: 65 additions & 0 deletions BlizzMovePlugin_QuestTracker.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
-- upvalue the globals
local _G = getfenv(0);
local CreateFrame = _G.CreateFrame;
local ObjectiveTrackerFrame = _G.ObjectiveTrackerFrame;
local BlizzMoveAPI = _G.BlizzMoveAPI;
local print = _G.print;
local IsAddOnLoaded = _G.IsAddOnLoaded;

local name = ...;

_G.BlizzMovePlugin_QuestTracker = {};
local plugin = _G.BlizzMovePlugin_QuestTracker;

local frame = CreateFrame('Frame');
frame:HookScript('OnEvent', function(_, _, addonName) plugin:ADDON_LOADED(addonName); end);
frame:RegisterEvent('ADDON_LOADED');

plugin.frameTable = {
[name] = {
["ObjectiveTrackerFrame"] = {
MinVersion = 20000,
IgnoreMouse = true,
SubFrames = {
['BlizzMovePlugin_QuestTracker.MoveHandleFrame'] = {
MinVersion = 20000,
},
},
},
},
};

function plugin:CreateMoveHandleAtPoint(parentFrame, anchorPoint, relativePoint, offX, offY)
if (not parentFrame) then return nil; end

local handleFrame = CreateFrame('Frame');
handleFrame:SetPoint(anchorPoint, parentFrame, relativePoint, offX, offY);
handleFrame:SetHeight(16);
handleFrame:SetWidth(16);

handleFrame.texture = handleFrame:CreateTexture();
handleFrame.texture:SetTexture('Interface/Buttons/UI-Panel-BiggerButton-Up');
handleFrame.texture:SetTexCoord(0.15, 0.85, 0.15, 0.85);
handleFrame.texture:SetAllPoints();

return handleFrame;
end

function plugin:ADDON_LOADED(addonName)
if (addonName == 'BlizzMove' or (addonName == name and IsAddOnLoaded('BlizzMove'))) then
if (not BlizzMoveAPI or not BlizzMoveAPI.RegisterAddOnFrames) then
print(name .. ' - Incompatible BlizzMove version is installed, please update BlizzMove!');
return;
end
self.MoveHandleFrame = self:CreateMoveHandleAtPoint(
ObjectiveTrackerFrame,
'CENTER',
'TOPRIGHT',
8,
-12
)
BlizzMoveAPI:RegisterAddOnFrames(self.frameTable);
end
end


8 changes: 8 additions & 0 deletions BlizzMovePlugin_QuestTracker.toc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## Interface: 90005
## Title: BlizzMove Plugin - QuestTracker
## Notes: Allows you to move the QuestTracker with BlizzMove
## Author: Numy
## RequiredDeps: BlizzMove
## Version: @project-version@

BlizzMovePlugin_QuestTracker.lua

0 comments on commit a835a8b

Please sign in to comment.