- Finished another cosmetic revamp on options panel.

- Rewrite on Raid Plugins Support, now can open more then 1 plugins at once on diferent windows.
- Functions inside custom right text now receives the actor object as first parameter.
- Added a large text editor for make changes on custom texts.
- Added cosmetic menus for report and erase segments button.
- Added new option for add borders on the bars.
- Added Death Barrier as a absorb spell.
- Speed improvaments on bar animations.
- Fixed a bug on overheal tooltip where was showing the Hps instead of overheal.
- Fixed few issues when ignoring combats with 5 seconds or less.
- Fixed bug when reloging inside a raid or dungeon instance was erasing pet owner database.
- Fixed Data Broker text where was passing the total damage/healing instead of Dps/Hps.

- Fixed a issue with _detalhes:Hex(): where wasn't correctly formating number below 16.
- New Api: _detalhes:SetBarBackdropSettings (enabled, size, color, texture): set row border settings.
- New Api: _detalhes:GetInstanceAttributeText(): return the text to show on the title text.
- New Api: _detalhes.RaidTables:DisableRaidMode (instance): turn off the raid mode in the instance.
- New Api: _detalhes:RaidPluginInstalled (plugin_name): return is the plugin is installed.
- New Api: _detalhes.RaidTables:EnableRaidMode (instance, plugin_name): enable the raid mode on the instance.
- New Api: _detalhes.RaidTables:GetAvailablePlugins(): return all plugins which is installed, enabled and not in use.
- New Api: _detalhes.RaidTables:IsAvailable (plugin_name, instance): return if the plugin is available for use.
- New Api: _detalhes.RaidTables:SetInUse (absolute_name, instance_number): declare a plugin as in use by a instance.
- New Api: _detalhes.RaidTables:switch (_, plugin_name, instance): change the plugin shown on the instance.
This commit is contained in:
tercio
2014-05-23 20:58:57 -03:00
parent e2e13288c0
commit b74b58ada6
41 changed files with 2080 additions and 1524 deletions
+16 -8
View File
@@ -362,13 +362,15 @@ function DetailsCreateCoolTip()
----------------------------------------------------------------------
function GameCooltipButtonMouseDown (button)
button.leftText:SetPoint ("center", button.leftIcon, "center", 0, 0)
button.leftText:SetPoint ("left", button.leftIcon, "right", 4, -1)
local mod = CoolTip.OptionsTable.TextHeightMod or 0
button.leftText:SetPoint ("center", button.leftIcon, "center", 0, 0+mod)
button.leftText:SetPoint ("left", button.leftIcon, "right", 4, -1+mod)
end
function GameCooltipButtonMouseUp (button)
button.leftText:SetPoint ("center", button.leftIcon, "center", 0, 0)
button.leftText:SetPoint ("left", button.leftIcon, "right", 3, 0)
local mod = CoolTip.OptionsTable.TextHeightMod or 0
button.leftText:SetPoint ("center", button.leftIcon, "center", 0, 0+mod)
button.leftText:SetPoint ("left", button.leftIcon, "right", 3, 0+mod)
end
function CoolTip:CreateButton (index, frame, name)
@@ -670,6 +672,10 @@ function DetailsCreateCoolTip()
flags = leftTextTable [8] or CoolTip.OptionsTable.TextShadow or nil
menuButton.leftText:SetFont (face, size, flags)
end
local height_mod = CoolTip.OptionsTable.TextHeightMod or 0
menuButton.leftText:SetPoint ("center", menuButton.leftIcon, "center", 0, 0+height_mod)
menuButton.leftText:SetPoint ("left", menuButton.leftIcon, "right", 3, 0+height_mod)
else
menuButton.leftText:SetText ("")
@@ -1551,6 +1557,10 @@ function DetailsCreateCoolTip()
--> frame [, x mod, y mod]
--> alias
function CoolTip:GetOwner()
return CoolTip.Host
end
function CoolTip:SetOwner (frame, myPoint, hisPoint, x, y)
return CoolTip:SetHost (frame, myPoint, hisPoint, x, y)
end
@@ -2543,22 +2553,20 @@ function DetailsCreateCoolTip()
function CoolTip:Close()
CoolTip.active = false
CoolTip.Host = nil
gump:Fade (frame1, 1)
gump:Fade (frame2, 1)
end
--> old function call
function CoolTip:ShowMe (host, arg2)
--> ignore if mouse is up me
if (CoolTip.mouseOver) then
return
end
if (not host or not arg2) then --> hideme
CoolTip.active = false
gump:Fade (frame1, 1)
gump:Fade (frame2, 1)
CoolTip:Close()
end
end
+1
View File
@@ -752,6 +752,7 @@ function gump:NewFillPanel (parent, rows, name, member, w, h, total_lines, fill_
editbox:SetBackdrop ({bgFile = [[Interface\DialogFrame\UI-DialogBox-Background]], edgeFile = "Interface\\ChatFrame\\ChatFrameBackground", edgeSize = 1})
editbox:SetBackdropColor (1, 1, 1, 0.1)
editbox:SetBackdropBorderColor (1, 1, 1, 0.1)
editbox.editbox.current_bordercolor = {1, 1, 1, 0.1}
--> insert in the table
tinsert (row.row_widgets, editbox)
+13 -10
View File
@@ -306,23 +306,25 @@ local SliderMetaFunctions = {}
local OnEnter = function (slider)
DetailsFrameworkSliderButtons:ShowMe (slider)
if (slider.MyObject.OnEnterHook) then
local interrupt = slider.MyObject.OnEnterHook (slider)
if (interrupt) then
return
end
end
DetailsFrameworkSliderButtons:ShowMe (slider)
slider.thumb:SetAlpha (1)
if (slider.MyObject.have_tooltip) then
_detalhes:CooltipPreset (1)
if (slider.MyObject.have_tooltip and slider.MyObject.have_tooltip ~= Loc ["STRING_RIGHTCLICK_TYPEVALUE"]) then
GameCooltip:Reset()
GameCooltip:AddLine (slider.MyObject.have_tooltip)
if (slider.MyObject.have_tooltip == Loc ["STRING_RIGHTCLICK_TYPEVALUE"]) then
GameCooltip:AddIcon ([[Interface\TUTORIALFRAME\UI-TUTORIAL-FRAME]], 1, 1, 16, 16, 0.015625, 0.15671875, 0.640625, 0.798828125)
end
GameCooltip:ShowCooltip (slider, "tooltip")
else
_detalhes:CooltipPreset (1)
GameCooltip:AddLine (Loc ["STRING_RIGHTCLICK_TYPEVALUE"])
GameCooltip:AddIcon ([[Interface\TUTORIALFRAME\UI-TUTORIAL-FRAME]], 1, 1, 16, 16, 0.015625, 0.15671875, 0.640625, 0.798828125)
GameCooltip:ShowCooltip (slider, "tooltip")
end
@@ -336,6 +338,9 @@ local SliderMetaFunctions = {}
end
local OnLeave = function (slider)
DetailsFrameworkSliderButtons:PrepareToHide()
if (slider.MyObject.OnLeaveHook) then
local interrupt = slider.MyObject.OnLeaveHook (slider)
if (interrupt) then
@@ -343,8 +348,6 @@ local SliderMetaFunctions = {}
end
end
DetailsFrameworkSliderButtons:PrepareToHide()
slider.thumb:SetAlpha (.7)
if (slider.MyObject.have_tooltip) then
+9 -6
View File
@@ -251,7 +251,7 @@ local TextEntryMetaFunctions = {}
------------------------------------------------------------------------------------------------------------
--> scripts
local OnEnter = function (textentry)
if (textentry.MyObject.OnEnterHook) then
local interrupt = textentry.MyObject.OnEnterHook (textentry)
if (interrupt) then
@@ -527,11 +527,14 @@ function gump:NewTextEntry (parent, container, name, member, w, h, func, param1,
TextEntryObject.editbox:SetJustifyH ("center")
TextEntryObject.editbox:EnableMouse (true)
TextEntryObject.editbox:SetText ("")
TextEntryObject.editbox:SetBackdrop ({bgFile = "Interface\\ChatFrame\\ChatFrameBackground",
edgeFile = "Interface\\ChatFrame\\ChatFrameBackground",
tile = true, edgeSize = 1, tileSize = 5})
TextEntryObject.editbox:SetBackdropColor (0, 0, 0, 0.5)
TextEntryObject.editbox:SetBackdropBorderColor (0.3, 0.3, 0.30, 0.80)
--TextEntryObject.editbox:SetBackdrop ({bgFile = "Interface\\ChatFrame\\ChatFrameBackground",
--edgeFile = "Interface\\ChatFrame\\ChatFrameBackground",
--tile = true, edgeSize = 1, tileSize = 5})
--TextEntryObject.editbox:SetBackdropColor (0, 0, 0, 0.5)
--TextEntryObject.editbox:SetBackdropBorderColor (0.3, 0.3, 0.30, 0.80)
TextEntryObject.editbox.current_bordercolor = {1, 1, 1, 1}
TextEntryObject.editbox:SetAutoFocus (false)
TextEntryObject.editbox:SetFontObject ("GameFontHighlightSmall")
+3 -3
View File
@@ -5,15 +5,15 @@
<EditBox name="DetailsEditBoxTemplate2" virtual="true">
<Size x="232" y="20"/>
<Backdrop bgFile="Interface\\ChatFrame\\ChatFrameBackground" edgeFile="Interface\\ChatFrame\\ChatFrameBackground" tile="true">
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
<EdgeSize>
<AbsValue val="1"/>
<AbsValue val="10"/>
</EdgeSize>
<TileSize>
<AbsValue val="16"/>
</TileSize>
<BackgroundInsets>
<AbsInset left="0" right="0" top="0" bottom="0"/>
<AbsInset left="1" right="1" top="0" bottom="1"/>
</BackgroundInsets>
</Backdrop>