Skip to content

Commit

Permalink
Add tab that shows available gems in MoP Remix
Browse files Browse the repository at this point in the history
  • Loading branch information
teelolws committed May 19, 2024
1 parent 0e21e5a commit f9884ce
Show file tree
Hide file tree
Showing 8 changed files with 815 additions and 5 deletions.
405 changes: 405 additions & 0 deletions Source/MOPRemixGemsTab.lua

Large diffs are not rendered by default.

34 changes: 34 additions & 0 deletions Source/MOPRemixGemsTab.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<Ui>
<Script file="MOPRemixGemsTab.lua"/>

<Frame name="MOPRemixGemsJournal" parent="CollectionsJournal" mixin="MOPRemixGemsMixin" setAllPoints="true" hidden="true">
<Frames>
<Frame parentKey="iconsFrame" inherits="CollectionsBackgroundTemplate">
<Layers>
<Layer level="BORDER" textureSubLevel="1">
<Texture parentKey="watermark" atlas="collections-watermark-heirloom" useAtlasSize="true">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="-33" y="17"/>
</Anchors>
</Texture>
</Layer>
</Layers>
</Frame>

<Frame parentKey="PagingFrame" inherits="CollectionsPagingFrameTemplate">
<Anchors>
<Anchor point="BOTTOM" x="21" y="43"/>
</Anchors>
</Frame>
</Frames>
<Scripts>
<OnLoad>
local LibDD = LibStub:GetLibrary("LibUIDropDownMenu-4.0")
self:OnLoad();
</OnLoad>
<OnShow function="MOPRemixGemsJournal_OnShow"/>
<OnMouseWheel function="MOPRemixGemsJournal_OnMouseWheel"/>
<OnEvent function="MOPRemixGemsJournal_OnEvent"/>
</Scripts>
</Frame>
</Ui>
1 change: 1 addition & 0 deletions Source/ManuscriptsJournal.toc
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ db\10-2.lua
db\Shapeshifts.lua
db\Soulshapes.lua
db\HexTomes.lua
db\MOPRemixGems.lua
db\PolymorphTomes.lua
db\TameTomes.lua
db\WarlockDemonTomes.lua
Expand Down
32 changes: 32 additions & 0 deletions Source/Templates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,37 @@
<OnLeave inherit="prepend" function="ManuscriptsJournalSpellButton_OnExit" />
</Scripts>
</CheckButton>

<CheckButton name="MOPRemixGemSpellButtonTemplate" inherits="ManuscriptSpellButtonTemplate" hidden="true" motionScriptsWhileDisabled="true" virtual="true">
<Layers>
<Layer level="OVERLAY" textureSubLevel="2">
<Texture parentKey="bling" file="interface\cooldown\star4" alphaMode="ADD" alpha="0">
<Size x="70" y="70"/>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
<Color r="0.31373" g="0.627451" b="1.0"/>
</Texture>
</Layer>
</Layers>

<Scripts>
<OnLoad>
CollectionsSpellButton_OnLoad(self, MOPRemixGemsJournal_UpdateButton)
</OnLoad>

<OnShow>
CollectionsSpellButton_OnShow(self);
</OnShow>

<OnHide>
CollectionsSpellButton_OnHide(self);
</OnHide>

<OnEnter function="MOPRemixGemsJournalSpellButton_OnEnter"/>
<OnLeave inherit="prepend" function="MOPRemixGemsJournalSpellButton_OnExit" />
</Scripts>
</CheckButton>

<StatusBar name="ManuscriptMountBarTemplate" virtual="true">
<Size x="55" y="13"/>
Expand Down Expand Up @@ -265,4 +296,5 @@
<Include file="GrimoiresTab.xml"/>
<Include file="TameTomesTab.xml"/>
<Include file="SideTabs.xml"/>
<Include file="MOPRemixGemsTab.xml"/>
</Ui>
Loading

0 comments on commit f9884ce

Please sign in to comment.