Mercurial > wow > ouroloot
comparison gui.lua @ 77:a07c9dd79f3a
Formalize the code handling unique ID collisions that turn out to not be avoidable with improv numbers. Turn on debug.comm and debug.loot with @debug@ markers.
author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
---|---|
date | Mon, 11 Jun 2012 21:03:16 +0000 |
parents | 124da015c4a2 |
children | f8118aa5fbb8 |
comparison
equal
deleted
inserted
replaced
76:124da015c4a2 | 77:a07c9dd79f3a |
---|---|
1873 simple:SetLayout("Flow") | 1873 simple:SetLayout("Flow") |
1874 simple:SetRelativeWidth(0.85) | 1874 simple:SetRelativeWidth(0.85) |
1875 w = mkbutton("MidS-H", [[not exactly an Easter egg, with sound]]) | 1875 w = mkbutton("MidS-H", [[not exactly an Easter egg, with sound]]) |
1876 w:SetRelativeWidth(0.15) | 1876 w:SetRelativeWidth(0.15) |
1877 w:SetCallback("OnClick", function() | 1877 w:SetCallback("OnClick", function() |
1878 PlaySoundFile[[Sound\Music\WorldEvents\HordeFirepole.mp3]] | 1878 PlaySoundFile ([[Sound\Music\WorldEvents\HordeFirepole.mp3]], "Master") |
1879 end) | 1879 end) |
1880 simple:AddChild(w) | 1880 simple:AddChild(w) |
1881 w = mkbutton("MidS-A", [[not exactly an Easter egg, with sound]]) | 1881 w = mkbutton("MidS-A", [[not exactly an Easter egg, with sound]]) |
1882 w:SetRelativeWidth(0.15) | 1882 w:SetRelativeWidth(0.15) |
1883 w:SetCallback("OnClick", function() | 1883 w:SetCallback("OnClick", function() |
1884 PlaySoundFile[[Sound\Music\WorldEvents\AllianceFirepole.mp3]] | 1884 PlaySoundFile ([[Sound\Music\WorldEvents\AllianceFirepole.mp3]], "Master") |
1885 end) | |
1886 simple:AddChild(w) | |
1887 w = mkbutton("SFRR", [[test]]) | |
1888 w:SetRelativeWidth(0.15) | |
1889 w:SetCallback("OnClick", function() | |
1890 PlaySoundFile ([[Interface\AddOns\Ouro_Loot\sfrr.ogg]], "Master") | |
1885 end) | 1891 end) |
1886 simple:AddChild(w) | 1892 simple:AddChild(w) |
1887 grp:AddChild(simple) | 1893 grp:AddChild(simple) |
1888 | 1894 |
1889 grp:ResumeLayout() | 1895 grp:ResumeLayout() |
2661 dialog.editBox:HighlightText() | 2667 dialog.editBox:HighlightText() |
2662 end, | 2668 end, |
2663 } | 2669 } |
2664 | 2670 |
2665 StaticPopupDialogs["OUROL_REMIND"] = flib.StaticPopup{ | 2671 StaticPopupDialogs["OUROL_REMIND"] = flib.StaticPopup{ |
2666 text = "Do you wish to activate Ouro Loot?\n\n(Hit the Escape key to close this window without clicking; Enter is the same as Activate)", | 2672 text = "Do you wish to activate Ouro Loot?|n|n(Hit the Escape key to close this window without clicking; Enter is the same as Activate)", |
2667 button1 = "Activate recording", -- "accept", left | 2673 button1 = "Activate recording", -- "accept", left |
2668 button2 = "Broadcast Only", -- "cancel", middle | 2674 button2 = "Broadcast Only", -- "cancel", middle |
2669 button3 = HELP_LABEL, -- "alt", right | 2675 button3 = HELP_LABEL, -- "alt", right |
2670 OnAccept = function (dialog, addon) | 2676 OnAccept = function (dialog, addon) |
2671 addon:Activate() | 2677 addon:Activate() |
2855 end) | 2861 end) |
2856 | 2862 |
2857 t = flib.StaticPopup{ | 2863 t = flib.StaticPopup{ |
2858 -- Concatenate this once at load time. There is no ITEM_QUALITY_LEGENDARY constant. | 2864 -- Concatenate this once at load time. There is no ITEM_QUALITY_LEGENDARY constant. |
2859 text = "Include a snapshot of the " .. ITEM_QUALITY_COLORS[5].hex | 2865 text = "Include a snapshot of the " .. ITEM_QUALITY_COLORS[5].hex |
2860 .. "CURRENT|r raid?\n\nClicking '" .. YES .. "' will allow this entry to " | 2866 .. "CURRENT|r raid?|n|nClicking '" .. YES .. "' will allow this entry to " |
2861 .. "appear in attendance lists, but with the roster as it is NOW, not as it " | 2867 .. "appear in attendance lists, but with the roster as it is NOW, not as it " |
2862 .. "was THEN. Clicking '" .. NO .."' means this kill cannot be included in " | 2868 .. "was THEN. Clicking '" .. NO .."' means this kill cannot be included in " |
2863 .. "attendance.\n\n(Enter = '" .. YES .."', Escape = '" .. CANCEL .. "')", | 2869 .. "attendance.|n|n(Enter = '" .. YES .."', Escape = '" .. CANCEL .. "')", |
2864 button1 = YES, -- "accept", left | 2870 button1 = YES, -- "accept", left |
2865 button2 = NO, -- "cancel", middle | 2871 button2 = NO, -- "cancel", middle |
2866 button3 = CANCEL, -- "alt", right | 2872 button3 = CANCEL, -- "alt", right |
2867 } | 2873 } |
2868 -- Hitting Escape still hides the frame, but doesn't run OnCancel (which | 2874 -- Hitting Escape still hides the frame, but doesn't run OnCancel (which |