Mercurial > wow > ouroloot
comparison options.lua @ 138:8345df517488 2.20.2
- Redo instance tagging for new GetInstanceInfo return values. Normal raids
should no longer "randomly" detect as heroic mode.
- If loaded during combat, do not prescan history.
- Fix nil error caused by reassigning loot inside an instance after having
been loaded during combat.
- "Peppers!" sound test.
author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
---|---|
date | Fri, 19 Oct 2012 14:34:34 -0400 |
parents | feca7e0e1f89 |
children | e1a90e398231 |
comparison
equal
deleted
inserted
replaced
137:aec6325c80b5 | 138:8345df517488 |
---|---|
65 ]] | 65 ]] |
66 local mkbutton = addon.gui_state_pointer.mkbutton | 66 local mkbutton = addon.gui_state_pointer.mkbutton |
67 local gui = addon.gui_state_pointer | 67 local gui = addon.gui_state_pointer |
68 local AceGUI = LibStub("AceGUI-3.0") | 68 local AceGUI = LibStub("AceGUI-3.0") |
69 local flib = LibStub("LibFarmbuyer") | 69 local flib = LibStub("LibFarmbuyer") |
70 local opts | 70 local opts |
71 | 71 |
72 local error, assert = addon.error, addon.assert | 72 local error, assert = addon.error, addon.assert |
73 | 73 |
74 local function mktoggle (opt, label, width, desc, opt_func) | 74 local function mktoggle (opt, label, width, desc, opt_func) |
75 local w = mkbutton("CheckBox", nil, "", desc) | 75 local w = mkbutton("CheckBox", nil, "", desc) |
673 simple:SetLayout("Flow") | 673 simple:SetLayout("Flow") |
674 --simple:SetRelativeWidth(0.95) | 674 --simple:SetRelativeWidth(0.95) |
675 simple:SetFullWidth(true) | 675 simple:SetFullWidth(true) |
676 w = mkbutton("MidS-H", [[not exactly an Easter egg, with sound]]) | 676 w = mkbutton("MidS-H", [[not exactly an Easter egg, with sound]]) |
677 w:SetRelativeWidth(0.2) | 677 w:SetRelativeWidth(0.2) |
678 w:SetCallback("OnClick", function() | 678 w:SetCallback("OnClick", function() |
679 PlaySoundFile ([[Sound\Music\WorldEvents\HordeFirepole.mp3]], "Master") | 679 PlaySoundFile ([[Sound\Music\WorldEvents\HordeFirepole.mp3]], "Master") |
680 end) | 680 end) |
681 simple:AddChild(w) | 681 simple:AddChild(w) |
682 w = mkbutton("MidS-A", [[not exactly an Easter egg, with sound]]) | 682 w = mkbutton("MidS-A", [[not exactly an Easter egg, with sound]]) |
683 w:SetRelativeWidth(0.2) | 683 w:SetRelativeWidth(0.2) |
684 w:SetCallback("OnClick", function() | 684 w:SetCallback("OnClick", function() |
685 PlaySoundFile ([[Sound\Music\WorldEvents\AllianceFirepole.mp3]], "Master") | 685 PlaySoundFile ([[Sound\Music\WorldEvents\AllianceFirepole.mp3]], "Master") |
686 end) | 686 end) |
687 simple:AddChild(w) | 687 simple:AddChild(w) |
688 w = mkbutton("SFRR", [[test]]) | 688 w = mkbutton("SFRR", [[test]]) |
689 w:SetRelativeWidth(0.15) | 689 w:SetRelativeWidth(0.15) |
690 w:SetCallback("OnClick", function() | 690 w:SetCallback("OnClick", function() |
691 PlaySoundFile ([[Interface\AddOns\Ouro_Loot\sfrr.ogg]], "Master") | 691 PlaySoundFile ([[Interface\AddOns\Ouro_Loot\sfrr.ogg]], "Master") |
692 end) | |
693 simple:AddChild(w) | |
694 w = mkbutton("Peppers!", [[test 3]]) | |
695 w:SetRelativeWidth(0.20) | |
696 w:SetCallback("OnClick", function() | |
697 PlaySoundFile ([[Sound\CREATURE\UncleGao\VO_SB_GAO_EVENT_04.OGG]], "Master") | |
692 end) | 698 end) |
693 simple:AddChild(w) | 699 simple:AddChild(w) |
694 | 700 |
695 container:AddChild(simple) | 701 container:AddChild(simple) |
696 end | 702 end |
906 ]] | 912 ]] |
907 function addon:register_options_entry (plugin, unique, parent, text, options) | 913 function addon:register_options_entry (plugin, unique, parent, text, options) |
908 unique = (unique and tostring(unique)) | 914 unique = (unique and tostring(unique)) |
909 or assert(plugin.name, "plugin has no 'name' field") | 915 or assert(plugin.name, "plugin has no 'name' field") |
910 | 916 |
911 --if parent | 917 --if parent |
912 | 918 |
913 text = text or plugin:GetName() | 919 text = text or plugin:GetName() |
914 | 920 |
915 local handler | 921 local handler |
916 local pdb = plugin.moduleName and | 922 local pdb = plugin.moduleName and |