You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Fixed weapon skills for Shamans and Druids
- Fixed a bug where it would still show learned spells on login
- Fixed a bug where the amount of rows were too many on login/reload ("phantom" rows)
- Fixed a bug where known weapon skills would still show
- Fixed a bug where lower rank spells still show as unlearned
- Made the whole frame draggable instead of only the title bar
tinsert(UISpecialFrames, FieldGuideFrame:GetName()) -- Allows us to close the window with escape.
647
645
initFrames()
648
-
selectedClass=actualClass
649
-
setBackground(selectedClass)
650
-
FieldGuide_ToggleButtons() -- Need to call this, or spells won't be hidden regardless of saved variables.
651
-
resetScroll()
646
+
setClass(nil, actualClass)
652
647
initDropdown()
653
648
initCheckboxes()
654
649
initMinimapButton()
655
650
initSlash()
656
-
FieldGuideFrameVerticalSlider:SetMinMaxValues(0, 30-NBR_OF_SPELL_ROWS) --If we show 5 spell rows, the scroll max value should be 25 (it scrolls to 25th row, and shows the last 5 already).
651
+
FieldGuide_ToggleButtons() --Need to call this, or spells won't be hidden regardless of saved variables.
657
652
FieldGuideFrameVerticalSlider:SetValue(1)
658
653
FieldGuideFrameVerticalSlider:SetValue(0)
659
654
ifnottomtomthen
@@ -829,13 +824,13 @@ function FieldGuide_Scroll(delta, horizontal)
829
824
end
830
825
831
826
-- Shows or hides the talents (type == 1), enemy spells (type == 2), or known spells (type == 3).
@@ -845,7 +840,6 @@ function FieldGuide_ToggleButtons(type)
845
840
updateButtons()
846
841
else
847
842
hideUnwantedWeapons()
848
-
resetScroll()
849
843
updateWeapons()
850
844
end
851
845
end
@@ -855,6 +849,7 @@ function FieldGuide_OnLoad(self)
855
849
self:RegisterForDrag("LeftButton")
856
850
self:RegisterEvent("ADDON_LOADED")
857
851
self:RegisterEvent("LEARNED_SPELL_IN_TAB")
852
+
self:RegisterEvent("PLAYER_ENTERING_WORLD")
858
853
end
859
854
860
855
-- Called on each event the frame receives.
@@ -866,15 +861,14 @@ function FieldGuide_OnEvent(self, event, ...)
866
861
FieldGuideOptions=FieldGuideOptionsor {}
867
862
FieldGuideOptions.pins= {}
868
863
end
869
-
print(nottomtomand"|cFFFFFF00Field Guide|r loaded! Type /fg help for commands and controls. By the way, it is highly recommended to use TomTom with Field Guide." or"|cFFFFFF00Field Guide|r loaded! Type /fg help for commands and controls.")
print(nottomtomand"|cFFFFFF00Field Guide|r loaded! Type /fg help for commands and controls. By the way, it is highly recommended to use TomTom with Field Guide." or"|cFFFFFF00Field Guide|r loaded! Type /fg help for commands and controls.")
878
872
self:UnregisterEvent("ADDON_LOADED")
879
873
end
880
874
elseifevent=="LEARNED_SPELL_IN_TAB" then
@@ -885,5 +879,9 @@ function FieldGuide_OnEvent(self, event, ...)
0 commit comments