diff --git a/GarrisonCommander.lua b/GarrisonCommander.lua
index f1ca64d..e3455c8 100644
--- a/GarrisonCommander.lua
+++ b/GarrisonCommander.lua
@@ -394,6 +394,17 @@ function addon:ApplyMSORT(value)
end
self:RefreshMissions()
end
+function addon:ApplyMHSORT(value)
+ local func=self[value]
+ if (type(func)=="function") then
+ Garrison_SortMissions=self[value]
+ else
+--@debug@
+ print("Could not found ",value," in addon")
+--@end-debug@
+ end
+ self:RefreshMissions()
+end
function addon:GetMain()
return GMF
end
@@ -406,6 +417,7 @@ end
function addon:GetMissionModule(followertype)
return ns.custom[followertype]
end
+
function addon:OnInitialized()
--@debug@
print("Initialize")
@@ -513,6 +525,7 @@ function addon:OnInitialized()
tabCO.Quantity:SetFormattedText("%d",GetItemCount(missionCompleteOrder))
tabCO:SetAttribute("type","item")
tabCO:SetAttribute("item",select(2,GetItemInfo(missionCompleteOrder)))
+ self:loadHelp()
--return true
end
function addon:showdata(fullargs,action,missionid)
@@ -3218,6 +3231,19 @@ function addon:GarrisonMissionPageFollowerFrame_OnEnter(this)
end
--@end-debug@
end
+function addon:HallSort()
+ self:AddSelect("MHSORT","Garrison_SortMissions_Original",
+ {
+ Garrison_SortMissions_Original=L["Original method"],
+ Garrison_SortMissions_Chance=L["Success Chance"],
+ Garrison_SortMissions_Followers=L["Number of followers"],
+ Garrison_SortMissions_Age=L["Expiration Time"],
+ Garrison_SortMissions_Xp=L["Global approx. xp reward"],
+ Garrison_SortMissions_Duration=L["Duration Time"],
+ Garrison_SortMissions_Class=L["Reward type"],
+ },
+ L["Sort missions by:"],L["Original sort restores original sorting method, whatever it was (If you have another addon sorting mission, it should kick in again)"])
+end
do local lasttime=0
function addon:HookedGarrisonMissionList_Update(t,...)
collectgarbage('step',200)
diff --git a/RelNotes.lua b/RelNotes.lua
index 508d784..3b031b4 100644
--- a/RelNotes.lua
+++ b/RelNotes.lua
@@ -22,85 +22,11 @@ self:Wiki([[
== Silent mode ==
typing /gac silent in chat will eliminate every chat messag from GarrisonCommander
]])
-self:RelNotes(2,1,3,[[
-Fix: Another step in hide and seek with Master Plan. Use GC Interface now works also with MP 0.22.1. This fix also reenables Garrison Mission Manager. Thanks to Careraider for pointing it
-Fix: A minor incompatibility wuth some addons was causing them to display very small menus in some options pages. Thanks to Goldshire for pointing it
-]])
-self:RelNotes(2,1,2,[[
-Fix: Mission should appear sorted as requested bith on startup and after a mission completion
-Fix: Removed a couple fo rare lua error
-]])
-self:RelNotes(2,1,1,[[
-Feature: Countered mechanics are now shown in standard mission button both in big and small screen mode
-Feature: New sort method: mission age
-Fix: Changed key for "skip auto fill" from shift to ctrl. Now it works
-Fix: In mission page, counter ability were not shown in follower icon
-]])
-self:RelNotes(2,1,0,[[
-Feature: new layout is now optional, you can revert to 1.1.8 layout disabling "big screen"
-Feature: Mission page autopopulation is now optional
-Feature: If Master Plan is detecte, you can choose which layout you want between GC's one and MP's one
-Fix: error "Message: ...rface\AddOns\GarrisonCommander\GarrisonCommander.lua:930: attempt to compare number with nil"
-]])
-self:RelNotes(2,0,1,[[
-Fixed: RU,KR,CH (both traditional and simplified) locales where broken
-Fixed: error when upgrading a follower for the first time
-]])
-self:RelNotes(2,0,0,[[
-Gui totally redesigned, tons of feature added
-Check curse site for complete changelog
-]])
-self:RelNotes(1,1,7,[[
-Fix: Followers cache was not initialized
-FIx: When filling a party using followers with no counters, was taking busy followers in all cases
-]])
-self:RelNotes(1,1,6,[[
-Fix: GarrisonCommander was unwilling triggering a mission reordering.
-Fix: First mission list button was opening the wrong mission
-Feature: Reduced memory footprint
-Feature: You can switch between considering busy follower or not via a checkbox in main mission panel
-Feature: Follower are now assigned to mission giving priority to highest level
-Feature: GarrisonCommander is now load on demand when opening Garrison interface
-]])
-self:RelNotes(1,1,5,[[
-Fix: Possible clash with another addon
-Fix: Improved follower data refresh. Hopefully no more "You dont have enough followers.." on every button
-]])
-self:RelNotes(1,1,4,[[
-Fixed: Was lagging when zoning inside Garrison
-Fixed: Sometimes clicking on a mission button opened the wrong mission page
-]])
-self:RelNotes(1,1,3,[[
-Fixed: When used for a long session of mission management, GarrisonCommander could starve with memory. Now it never go over 1M
-Feature: Preview of 1.2.0: Chance of success is now permanently displayed on every mission. In this version it get updated ONLY when you hover on it
-Feature: Preview of 1.2.0: Number of requested followers is now permanently displayed on every mission.
-Feature: Even if you enabled use of busy followers in calculation, you are warned if you miss enough followers for the mission
-]])
-self:RelNotes(1,1,2,[[
-Fixed: Solves a rare case of library incompatibility causing error ...rfaceGarrisonCommander\GarrisonCommander-1.1.1.lua:47: attempt to call method 'capitalize' (a nil value)
-Feature: Removed signature in tooltip... it was annoying me too.. :)
-]])
-self:RelNotes(1,1,1,[[
-Fixed: Added workaround to avoid that MasterPlan steals tooltip de facto
-disabling GarrisonCommander
-]])
-self:RelNotes(1,1,0,[[
-Feature: Level added to follower line
-Feature: All counterd traits listed on the same line
-Feature: For "In mission" follower time letf is shown instead of "In mission"
-Feature: Trait related lines are now silver, while abilities related are Blue
-Feature: Mission panel can now optionally be relocked
-Feature: You can select to ignore "busy" followers
-Feature: possible party and success chance with that party
-]])
-self:RelNotes(1,0,1,[[
-Fixed: Follower info refresh should be now more reliable
-Feature: Mission panel is now movable
-Feature: Shows also countered traits( i.e. environmente/racial bonuses)
-Feature: Shows icon for trait or ability countered. Abilities are blue lines, traits orange lines
-]])
-self:RelNotes(1,0,0,[[
-Initial release
+self:RelNotes(2,15,0,[[
+Feature: Right clicking minimap Icon opens Garrison Report
+Fix: Troops should now be used more wisely in Class Hall Missions
+Fix: Should not raise errors when clicking on followers
+Fix: No longer showing "Install an auction addon" even with auction addon installed
]])
end