- Added a new tab on options panel for tooltip configuration.
- Added a new tab on options panel for broker config. - Added new abbreviation method called "comma". - Fully removed the delete button switch between instances, new all instances have a delete button. - Full re-write on the instance, delete and close buttons. - Fixed the total healing done by the raid group which was counting overheal too. - HotCorners now sort icons according with most used. - Few changes on all skins in order to fit on the new right menu buttons. - Added Horde avatars. - Fixed issue where shortcut panel shows below thw windows when its in Dialog strata. - Fixed problem with import data capture for charts. - API Cooltip: Added new option: TextShadow -> true or false. - New API: _detalhes.StatusBar:SetPlugin (instance, pluginname, anchor) - New API: _detalhes:SetPlayerDetailsWindowTexture (texture) - New API: _detalhes:SetOptionsWindowTexture (texture)
This commit is contained in:
+16
-12
@@ -163,24 +163,28 @@ local APIFrameFunctions
|
||||
--> methods
|
||||
|
||||
--> right click to close
|
||||
function PanelMetaFunctions:CreateRightClickLabel (textType, w, h)
|
||||
function PanelMetaFunctions:CreateRightClickLabel (textType, w, h, close_text)
|
||||
local text
|
||||
w = w or 20
|
||||
h = h or 20
|
||||
|
||||
if (textType) then
|
||||
textType = string.lower (textType)
|
||||
if (textType == "short") then
|
||||
text = Loc ["STRING_RIGHTCLICK_CLOSE_SHORT"]
|
||||
elseif (textType == "medium") then
|
||||
text = Loc ["STRING_RIGHTCLICK_CLOSE_MEDIUM"]
|
||||
elseif (textType == "large") then
|
||||
text = Loc ["STRING_RIGHTCLICK_CLOSE_LARGE"]
|
||||
end
|
||||
if (close_text) then
|
||||
text = close_text
|
||||
else
|
||||
text = Loc ["STRING_RIGHTCLICK_CLOSE_SHORT"]
|
||||
if (textType) then
|
||||
textType = string.lower (textType)
|
||||
if (textType == "short") then
|
||||
text = Loc ["STRING_RIGHTCLICK_CLOSE_SHORT"]
|
||||
elseif (textType == "medium") then
|
||||
text = Loc ["STRING_RIGHTCLICK_CLOSE_MEDIUM"]
|
||||
elseif (textType == "large") then
|
||||
text = Loc ["STRING_RIGHTCLICK_CLOSE_LARGE"]
|
||||
end
|
||||
else
|
||||
text = Loc ["STRING_RIGHTCLICK_CLOSE_SHORT"]
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
return gump:NewLabel (self, _, "$parentRightMouseToClose", nil, "|TInterface\\TUTORIALFRAME\\UI-TUTORIAL-FRAME:"..w..":"..h..":0:1:512:512:8:70:328:409|t " .. text)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user