-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a835a8b
Showing
4 changed files
with
93 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |