- Added slash command /details profile <profile name>
This commit is contained in:
@@ -147,13 +147,13 @@ function DetailsCreateCoolTip()
|
||||
--> Create Frames
|
||||
|
||||
--> main frame
|
||||
local frame1 = CreateFrame ("Frame", "CoolTipFrame1", UIParent, "CooltipMainFrameTemplate")
|
||||
tinsert (UISpecialFrames, "CoolTipFrame1")
|
||||
local frame1 = CreateFrame ("Frame", "GameCoolTipFrame1", UIParent, "CooltipMainFrameTemplate")
|
||||
tinsert (UISpecialFrames, "GameCoolTipFrame1")
|
||||
gump:CreateFlashAnimation (frame1)
|
||||
|
||||
--> secondary frame
|
||||
local frame2 = CreateFrame ("Frame", "CoolTipFrame2", UIParent, "CooltipMainFrameTemplate")
|
||||
tinsert (UISpecialFrames, "CoolTipFrame2")
|
||||
local frame2 = CreateFrame ("Frame", "GameCoolTipFrame2", UIParent, "CooltipMainFrameTemplate")
|
||||
tinsert (UISpecialFrames, "GameCoolTipFrame2")
|
||||
gump:CreateFlashAnimation (frame2)
|
||||
frame2:SetClampedToScreen (true)
|
||||
|
||||
@@ -1082,9 +1082,7 @@ function DetailsCreateCoolTip()
|
||||
for i = 1, CoolTip.IndexesSub [index] do
|
||||
|
||||
local menuButton = frame2.Lines [i]
|
||||
|
||||
-- CoolTipFrame2.Lines [2].divbar
|
||||
|
||||
|
||||
if (menuButton.leftText:GetText() == "$div") then
|
||||
|
||||
--> height
|
||||
|
||||
+24
-22
@@ -1225,6 +1225,29 @@ function gump:IconPick (callback, close_when_select)
|
||||
|
||||
end
|
||||
|
||||
local simple_panel_counter = 1
|
||||
local simple_panel_mouse_down = function (self, button)
|
||||
if (button == "RightButton") then
|
||||
if (self.IsMoving) then
|
||||
self.IsMoving = false
|
||||
self:StopMovingOrSizing()
|
||||
end
|
||||
self:Hide()
|
||||
return
|
||||
end
|
||||
self.IsMoving = true
|
||||
self:StartMoving()
|
||||
end
|
||||
local simple_panel_mouse_up = function (self, button)
|
||||
if (self.IsMoving) then
|
||||
self.IsMoving = false
|
||||
self:StopMovingOrSizing()
|
||||
end
|
||||
end
|
||||
local simple_panel_settitle = function (self, title)
|
||||
self.title:SetText (title)
|
||||
end
|
||||
|
||||
function gump:CreateSimplePanel (parent, w, h, title, name)
|
||||
|
||||
if (not name) then
|
||||
@@ -1937,26 +1960,5 @@ function gump:CreateChartPanel (parent, w, h, name)
|
||||
return f
|
||||
end
|
||||
|
||||
local simple_panel_counter = 1
|
||||
local simple_panel_mouse_down = function (self, button)
|
||||
if (button == "RightButton") then
|
||||
if (self.IsMoving) then
|
||||
self.IsMoving = false
|
||||
self:StopMovingOrSizing()
|
||||
end
|
||||
self:Hide()
|
||||
return
|
||||
end
|
||||
self.IsMoving = true
|
||||
self:StartMoving()
|
||||
end
|
||||
local simple_panel_mouse_up = function (self, button)
|
||||
if (self.IsMoving) then
|
||||
self.IsMoving = false
|
||||
self:StopMovingOrSizing()
|
||||
end
|
||||
end
|
||||
local simple_panel_settitle = function (self, title)
|
||||
self.title:SetText (title)
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user