- textures changes:

*copy.tga
*custom_bg.tga
*options_window.tga

*added border_welcome.tga
*removed welcome.tga
This commit is contained in:
Tercio
2015-05-07 17:07:27 -03:00
parent dadddbfa9a
commit 06b23a2b44
15 changed files with 165 additions and 109 deletions
+3 -3
View File
File diff suppressed because one or more lines are too long
+57 -60
View File
@@ -1591,28 +1591,52 @@
_detalhes:CriarInstancia (_, true)
end)
function _detalhes:CreateWelcomePanel (name, parent, width, height, make_movable)
local f = CreateFrame ("frame", name, parent or UIParent)
f:SetBackdrop ({bgFile = [[Interface\DialogFrame\UI-DialogBox-Background-Dark]], tile = true, tileSize = 128, insets = {left=3, right=3, top=3, bottom=3},
edgeFile = [[Interface\AddOns\Details\images\border_welcome]], edgeSize = 16})
f:SetBackdropColor (1, 1, 1, 0.75)
f:SetSize (width or 1, height or 1)
if (make_movable) then
f:SetScript ("OnMouseDown", function(self, button)
if (self.isMoving) then
return
end
if (button == "RightButton") then
self:Hide()
else
self:StartMoving()
self.isMoving = true
end
end)
f:SetScript ("OnMouseUp", function(self, button)
if (self.isMoving and button == "LeftButton") then
self:StopMovingOrSizing()
self.isMoving = nil
end
end)
f:SetToplevel (true)
f:SetMovable (true)
end
return f
end
function _detalhes:OpenBrokerTextEditor()
if (not DetailsWindowOptionsBrokerTextEditor) then
local panel = _detalhes.gump:NewPanel (UIParent, nil, "DetailsWindowOptionsBrokerTextEditor", nil, 650, 200)
local panel = _detalhes:CreateWelcomePanel ("DetailsWindowOptionsBrokerTextEditor", nil, 650, 210, true)
panel:SetPoint ("center", UIParent, "center")
panel:Hide()
panel:SetFrameStrata ("FULLSCREEN")
panel:SetBackdrop ({ bgFile = [[Interface\AddOns\Details\images\background]], tile = true, tileSize = 64, insets = {left=3, right=3, top=3, bottom=3}})
panel:DisableGradient()
panel:SetBackdropColor (0, 0, 0, 0)
panel.locked = false
local bg_texture = _detalhes.gump:NewImage (panel, [[Interface\AddOns\Details\images\welcome]], 1, 1, "background")
bg_texture:SetPoint ("topleft", panel, "topleft")
bg_texture:SetPoint ("bottomright", panel, "bottomright")
local textentry = _detalhes.gump:NewSpecialLuaEditorEntry (panel.widget, 450, 180, "editbox", "$parentEntry", true)
textentry:SetPoint ("topleft", panel.widget, "topleft", 10, -10)
local textentry = _detalhes.gump:NewSpecialLuaEditorEntry (panel, 450, 185, "editbox", "$parentEntry", true)
textentry:SetPoint ("topleft", panel, "topleft", 10, -12)
textentry.editbox:SetScript ("OnTextChanged", function()
local text = panel.widget.editbox:GetText()
local text = panel.editbox:GetText()
_detalhes.data_broker_text = text
_detalhes:BrokerTick()
if (_G.DetailsOptionsWindow) then
@@ -1642,7 +1666,7 @@
end
local d = _detalhes.gump:NewDropDown (panel, _, "$parentTextOptionsDropdown", "TextOptionsDropdown", 150, 20, buildAddMenu, 1)
d:SetPoint ("topright", panel, "topright", -10, -14)
d:SetPoint ("topright", panel, "topright", -12, -14)
--d:SetFrameStrata ("TOOLTIP")
local optiontable = {"{dmg}", "{dps}", "{dpos}", "{ddiff}", "{heal}", "{hps}", "{hpos}", "{hdiff}", "{time}"}
@@ -1766,11 +1790,11 @@
local color_button = _detalhes.gump:NewColorPickButton (panel, "$parentButton5", nil, color_func)
color_button:SetSize (80, 20)
color_button:SetPoint ("topright", panel, "topright", -10, -102)
color_button:SetPoint ("topright", panel, "topright", -12, -102)
color_button.tooltip = Loc ["STRING_OPTIONS_TEXTEDITOR_COLOR_TOOLTIP"]
local done = function()
local text = panel.widget.editbox:GetText()
local text = panel.editbox:GetText()
_detalhes.data_broker_text = text
if (_G.DetailsOptionsWindow) then
_G.DetailsOptionsWindow19BrokerEntry.MyObject:SetText (_detalhes.data_broker_text)
@@ -1782,7 +1806,7 @@
local ok_button = _detalhes.gump:NewButton (panel, nil, "$parentButtonOk", nil, 80, 20, done, nil, nil, nil, Loc ["STRING_OPTIONS_TEXTEDITOR_DONE"], 1)
ok_button.tooltip = Loc ["STRING_OPTIONS_TEXTEDITOR_DONE_TOOLTIP"]
ok_button:InstallCustomTexture()
ok_button:SetPoint ("topright", panel, "topright", -10, -174)
ok_button:SetPoint ("topright", panel, "topright", -12, -174)
local reset_button = _detalhes.gump:NewButton (panel, nil, "$parentDefaultOk", nil, 80, 20, function() textentry.editbox:SetText ("") end, nil, nil, nil, "Reset", 1)
reset_button.tooltip = Loc ["STRING_OPTIONS_TEXTEDITOR_RESET_TOOLTIP"]
@@ -1796,51 +1820,44 @@
end
local panel = DetailsWindowOptionsBrokerTextEditor.MyObject
local panel = DetailsWindowOptionsBrokerTextEditor
local text = _detalhes.data_broker_text:gsub ("||", "|")
panel.default_text = text
panel.widget.editbox:SetText (text)
panel.editbox:SetText (text)
panel:Show()
end
--> row text editor
local panel = _detalhes.gump:NewPanel (UIParent, nil, "DetailsWindowOptionsBarTextEditor", nil, 650, 200)
local panel = _detalhes:CreateWelcomePanel ("DetailsWindowOptionsBarTextEditor", nil, 650, 210, true)
panel:SetPoint ("center", UIParent, "center")
panel:Hide()
panel:SetFrameStrata ("FULLSCREEN")
panel:SetBackdrop ({ bgFile = [[Interface\AddOns\Details\images\background]], tile = true, tileSize = 64, insets = {left=3, right=3, top=3, bottom=3}})
panel:DisableGradient()
panel:SetBackdropColor (0, 0, 0, 0)
panel.locked = false
local bg_texture = _detalhes.gump:NewImage (panel, [[Interface\AddOns\Details\images\welcome]], 1, 1, "background")
bg_texture:SetPoint ("topleft", panel, "topleft")
bg_texture:SetPoint ("bottomright", panel, "bottomright")
function panel.widget:Open (text, callback, host, default)
function panel:Open (text, callback, host, default)
if (host) then
panel:SetPoint ("center", host, "center")
end
text = text:gsub ("||", "|")
panel.default_text = text
panel.widget.editbox:SetText (text)
panel.editbox:SetText (text)
panel.callback = callback
panel.default = default or ""
panel:Show()
end
local textentry = _detalhes.gump:NewSpecialLuaEditorEntry (panel.widget, 450, 180, "editbox", "$parentEntry", true)
textentry:SetPoint ("topleft", panel.widget, "topleft", 10, -10)
local textentry = _detalhes.gump:NewSpecialLuaEditorEntry (panel, 450, 185, "editbox", "$parentEntry", true)
textentry:SetPoint ("topleft", panel, "topleft", 10, -12)
local arg1_button = _detalhes.gump:NewButton (panel, nil, "$parentButton1", nil, 80, 20, function() textentry.editbox:Insert ("{data1}") end, nil, nil, nil, string.format (Loc ["STRING_OPTIONS_TEXTEDITOR_DATA"], "1"), 1)
local arg2_button = _detalhes.gump:NewButton (panel, nil, "$parentButton2", nil, 80, 20, function() textentry.editbox:Insert ("{data2}") end, nil, nil, nil, string.format (Loc ["STRING_OPTIONS_TEXTEDITOR_DATA"], "2"), 1)
local arg3_button = _detalhes.gump:NewButton (panel, nil, "$parentButton3", nil, 80, 20, function() textentry.editbox:Insert ("{data3}") end, nil, nil, nil, string.format (Loc ["STRING_OPTIONS_TEXTEDITOR_DATA"], "3"), 1)
arg1_button:SetPoint ("topright", panel, "topright", -10, -14)
arg2_button:SetPoint ("topright", panel, "topright", -10, -36)
arg3_button:SetPoint ("topright", panel, "topright", -10, -58)
arg1_button:SetPoint ("topright", panel, "topright", -12, -14)
arg2_button:SetPoint ("topright", panel, "topright", -12, -36)
arg3_button:SetPoint ("topright", panel, "topright", -12, -58)
arg1_button:InstallCustomTexture()
arg2_button:InstallCustomTexture()
arg3_button:InstallCustomTexture()
@@ -1961,8 +1978,8 @@
local func_button = _detalhes.gump:NewButton (panel, nil, "$parentButton4", nil, 80, 20, function() textentry.editbox:Insert ("{func local player = ...; return 0;}") end, nil, nil, nil, Loc ["STRING_OPTIONS_TEXTEDITOR_FUNC"], 1)
local color_button = _detalhes.gump:NewColorPickButton (panel, "$parentButton5", nil, color_func)
color_button:SetSize (80, 20)
func_button:SetPoint ("topright", panel, "topright", -10, -80)
color_button:SetPoint ("topright", panel, "topright", -10, -102)
func_button:SetPoint ("topright", panel, "topright", -12, -80)
color_button:SetPoint ("topright", panel, "topright", -12, -102)
func_button:InstallCustomTexture()
color_button.tooltip = Loc ["STRING_OPTIONS_TEXTEDITOR_COLOR_TOOLTIP"]
@@ -1981,7 +1998,7 @@
--tok_button:SetPoint ("topright", panel, "topright", -100, -36)
local done = function()
local text = panel.widget.editbox:GetText()
local text = panel.editbox:GetText()
text = text:gsub ("\n", "")
local test = text
@@ -2007,7 +2024,7 @@
local ok_button = _detalhes.gump:NewButton (panel, nil, "$parentButtonOk", nil, 80, 20, done, nil, nil, nil, Loc ["STRING_OPTIONS_TEXTEDITOR_DONE"], 1)
ok_button.tooltip = Loc ["STRING_OPTIONS_TEXTEDITOR_DONE_TOOLTIP"]
ok_button:InstallCustomTexture()
ok_button:SetPoint ("topright", panel, "topright", -10, -174)
ok_button:SetPoint ("topright", panel, "topright", -12, -174)
local reset_button = _detalhes.gump:NewButton (panel, nil, "$parentDefaultOk", nil, 80, 20, function() textentry.editbox:SetText (panel.default) end, nil, nil, nil, Loc ["STRING_OPTIONS_TEXTEDITOR_RESET"], 1)
reset_button.tooltip = Loc ["STRING_OPTIONS_TEXTEDITOR_RESET_TOOLTIP"]
@@ -2105,29 +2122,9 @@
end
end
local f = CreateFrame ("frame", nil, UIParent) --"DetailsSelectProfile"
f:SetSize (250, 300)
local f = _detalhes:CreateWelcomePanel (nil, nil, 250, 300, true)
f:SetPoint ("right", UIParent, "right", -5, 0)
f:SetMovable (true)
f:SetScript ("OnMouseDown", function (self)
if (not self.moving) then
self:StartMoving()
self.moving = true
end
end)
f:SetScript ("OnMouseUp", function (self)
if (self.moving) then
self:StopMovingOrSizing()
self.moving = false
end
end)
local background = f:CreateTexture (nil, "background")
background:SetAllPoints()
background:SetTexture ([[Interface\AddOns\Details\images\welcome]])
local logo = f:CreateTexture (nil, "artwork")
logo:SetTexture ([[Interface\AddOns\Details\images\logotipo]])
logo:SetSize (256*0.8, 128*0.8)
+4 -4
View File
@@ -1267,10 +1267,10 @@ function gump:CreateSimplePanel (parent, w, h, title, name)
f:SetScript ("OnMouseDown", simple_panel_mouse_down)
f:SetScript ("OnMouseUp", simple_panel_mouse_up)
local bg = f:CreateTexture (nil, "background")
bg:SetAllPoints (f)
bg:SetTexture ([[Interface\AddOns\Details\images\welcome]])
f:SetBackdrop ({bgFile = [[Interface\DialogFrame\UI-DialogBox-Background-Dark]], tile = true, tileSize = 128, insets = {left=3, right=3, top=3, bottom=3},
edgeFile = [[Interface\AddOns\Details\images\border_welcome]], edgeSize = 16})
f:SetBackdropColor (1, 1, 1, 0.75)
local close = CreateFrame ("button", name .. "Close", f, "UIPanelCloseButton")
close:SetSize (32, 32)
-4
View File
@@ -40,10 +40,6 @@ local _
edgeFile = [[Interface\AddOns\Details\images\border_3]], edgeSize = 9, insets = {left = 2, right = 2, top = 3, bottom = 3}})
background_frame:SetBackdropColor (0, 0, 0, 0.95)
-- local background_frame_image = background_frame:CreateTexture (nil, "background")
-- background_frame_image:SetAllPoints (background_frame)
-- background_frame_image:SetTexture ([[Interface\AddOns\Details\images\welcome]])
local haveHFlip = false
local haveVFlip = false
+1 -1
View File
@@ -724,7 +724,7 @@ function gump:NewSpecialLuaEditorEntry (parent, w, h, member, name, nointent)
IndentationLib.enable (scrollframe.editbox, nil, 4)
end
borderframe:SetBackdrop ({bgFile = [[Interface\Tooltips\UI-Tooltip-Background]], edgeFile = [[Interface\Tooltips\UI-Tooltip-Border]],
borderframe:SetBackdrop ({bgFile = [[Interface\Tooltips\UI-Tooltip-Background]], edgeFile = [[Interface\AddOns\Details\images\border_3]],
tile = 1, tileSize = 16, edgeSize = 16, insets = {left = 5, right = 5, top = 5, bottom = 5}})
borderframe:SetBackdropColor (0.090195, 0.090195, 0.188234, 1)
borderframe:SetBackdropBorderColor (1, 1, 1, 1)
+34 -26
View File
@@ -6,39 +6,47 @@ do
--> panel
function _detalhes:CreateCopyPasteWindow()
local panel = DetailsFrameWork:NewPanel (UIParent, _, "DetailsCopy", _, 512, 128, false)
local panel = CreateFrame ("frame", "DetailsCopy", UIParent, "ButtonFrameTemplate")
panel:SetSize (512, 148)
tinsert (UISpecialFrames, "DetailsCopy")
panel:SetFrameStrata ("TOOLTIP")
panel:SetPoint ("center", UIParent, "center")
panel.locked = false
DetailsFrameWork:NewImage (panel, "Interface\\AddOns\\Details\\images\\copy", 512, 128, "background", nil, "background", "$parentBackGround")
panel.background:SetPoint()
--> title
DetailsFrameWork:NewLabel (panel, _, "$parentTitle", "title", "Paste & Copy", "GameFontHighlightLeft", 12, {227/255, 186/255, 4/255})
panel.title:SetPoint ("center", panel, "center")
panel.title:SetPoint ("top", panel, "top", 0, -18)
--> close
panel.fechar = CreateFrame ("Button", nil, panel.widget, "UIPanelCloseButton")
panel.fechar:SetWidth (32)
panel.fechar:SetHeight (32)
panel.fechar:SetPoint ("TOPRIGHT", panel.widget, "TOPRIGHT", -1, -8)
panel.fechar:SetText ("X")
panel.fechar:SetFrameLevel (panel:GetFrameLevel()+2)
panel.fechar:SetScript ("OnClick", function()
panel:Hide()
panel:SetToplevel (true)
panel:SetMovable (true)
panel:SetScript ("OnMouseDown", function(self, button)
if (self.isMoving) then
return
end
if (button == "RightButton") then
self:Hide()
else
self:StartMoving()
self.isMoving = true
end
end)
panel:SetScript ("OnMouseUp", function(self, button)
if (self.isMoving and button == "LeftButton") then
self:StopMovingOrSizing()
self.isMoving = nil
end
end)
DetailsFrameWork:NewImage (panel, "Interface\\AddOns\\Details\\images\\copy", 512, 128, "overlay", nil, "background", "$parentBackGround")
panel.background:SetPoint (0, -25)
--> title
panel.TitleText:SetText ("Paste & Copy")
panel.portrait:SetTexture ([[Interface\CHARACTERFRAME\TEMPORARYPORTRAIT-FEMALE-BLOODELF]])
DetailsFrameWork:NewTextEntry (panel, _, "$parentTextEntry", "text", 476, 14)
panel.text:SetPoint (20, -106)
panel.text:SetPoint (20, -127)
panel.text:SetHook ("OnEditFocusLost", function() panel:Hide() end)
panel.text:SetHook ("OnChar", function() panel:Hide() end)
DetailsFrameWork:NewLabel (panel, _, _, "desc", "paste on your web browser address bar", "OptionsFontHighlightSmall", 12)
panel.desc:SetPoint (340, -54)
panel.desc:SetPoint (340, -78)
panel.desc.width = 150
panel.desc.height = 25
panel.desc.align = "|"
@@ -48,10 +56,10 @@ do
end
function _detalhes:CopyPaste (link)
_G.DetailsCopy.MyObject.text.text = link
_G.DetailsCopy.MyObject.text:HighlightText()
_G.DetailsCopy.MyObject:Show()
_G.DetailsCopy.MyObject.text:SetFocus()
_G.DetailsCopy.text.text = link
_G.DetailsCopy.text:HighlightText()
_G.DetailsCopy:Show()
_G.DetailsCopy.text:SetFocus()
end
end
+17 -1
View File
@@ -146,10 +146,26 @@
custom_window.icon = custom_window:CreateTexture (nil, "background")
custom_window.icon:SetPoint ("topleft", custom_window, "topleft", 4, 0)
custom_window.icon:SetSize (64, 64)
custom_window.icon:SetDrawLayer ("background", 1)
custom_window.icon:SetDrawLayer ("background", 2)
custom_window.icon:SetTexture ([[Interface\AddOns\Details\images\classes_plus]])
custom_window.icon:SetTexCoord (0, 0.25, 0.25, 0.5)
--> menu background
custom_window.menubackground = custom_window:CreateTexture (nil, "background")
custom_window.menubackground:SetTexture ([[Interface\DialogFrame\UI-DialogBox-Background-Dark]])
custom_window.menubackground:SetPoint ("topleft", custom_window, "topleft", 19, -34)
custom_window.menubackground:SetSize (151, 326)
custom_window.menubackground:SetDrawLayer ("background", 1)
custom_window.menubackground:SetAlpha (0.75)
--> select panel background
custom_window.selectbackground = custom_window:CreateTexture (nil, "background")
custom_window.selectbackground:SetTexture ([[Interface\DialogFrame\UI-DialogBox-Background-Dark]])
custom_window.selectbackground:SetPoint ("topleft", custom_window, "topleft", 175, -36)
custom_window.selectbackground:SetSize (666, 324)
custom_window.selectbackground:SetDrawLayer ("background", 1)
custom_window.selectbackground:SetAlpha (0.75)
DetailsCustomPanel.BoxType = 1
DetailsCustomPanel.IsEditing = false
DetailsCustomPanel.IsImporting = false
+48 -9
View File
@@ -143,8 +143,30 @@ function _detalhes:OpenOptionsWindow (instance, no_reopen, section)
background:SetPoint (0, 0)
background:SetDrawLayer ("border")
background:SetTexCoord (0, 0.8759765625, 0, 0.578125)
local sub_background = window:CreateTexture ("DetailsOptionsWindowBackgroundWallpaper", "background")
--sub_background:SetTexture ([[Interface\FrameGeneral\UI-Background-Marble]], true)
sub_background:SetTexture ([[Interface\DialogFrame\UI-DialogBox-Background-Dark]])
sub_background:SetPoint ("topleft", window.widget, "topleft", 192, -80)
sub_background:SetPoint ("bottomright", window.widget, "bottomright", -30, 27)
--sub_background:SetVertTile (true)
--sub_background:SetHorizTile (true)
--sub_background:SetAlpha (0.81)
sub_background:SetAlpha (0.75)
--sub_background:Hide()
local menu_background = window:CreateTexture ("DetailsOptionsWindowBackgroundMenu", "background")
--menu_background:SetTexture ([[Interface\AddOns\Details\images\options_window]], true)
menu_background:SetTexture ([[Interface\DialogFrame\UI-DialogBox-Background-Dark]])
menu_background:SetPoint ("topleft", window.widget, "topleft", 29, -78)
menu_background:SetSize (164, 488)
--menu_background:SetTexCoord (327/1024, 488/1024, 627/1024, 663/1024)
--menu_background:SetAlpha (0.81)
menu_background:SetAlpha (0.75)
--menu_background:SetVertTile (true)
--menu_background:Hide()
local bigdog = g:NewImage (window, [[Interface\MainMenuBar\UI-MainMenuBar-EndCap-Human]], 180, 200, nil, {1, 0, 0, 1}, "backgroundBigDog", "$parentBackgroundBigDog")
local bigdog = g:NewImage (window, [[Interface\MainMenuBar\UI-MainMenuBar-EndCap-Human]], 180*0.9, 200*0.9, nil, {1, 0, 0, 1}, "backgroundBigDog", "$parentBackgroundBigDog")
bigdog:SetPoint ("bottomright", window, "bottomright", -8, 31)
bigdog:SetAlpha (.25)
@@ -8592,12 +8614,27 @@ function window:CreateFrame9()
f:SetSize (512, 150)
f:EnableMouse (true)
f:SetMovable (true)
f:SetScript ("OnMouseDown", function() f:StartMoving() end)
f:SetScript ("OnMouseUp", function() f:StopMovingOrSizing() end)
f:SetScript ("OnMouseDown", function(self, button)
if (self.isMoving) then
return
end
if (button == "RightButton") then
self:Hide()
else
self:StartMoving()
self.isMoving = true
end
end)
f:SetScript ("OnMouseUp", function(self, button)
if (self.isMoving and button == "LeftButton") then
self:StopMovingOrSizing()
self.isMoving = nil
end
end)
local bg = f:CreateTexture (nil, "background")
bg:SetAllPoints()
bg:SetTexture ([[Interface\AddOns\Details\images\welcome]])
f:SetBackdrop ({bgFile = [[Interface\DialogFrame\UI-DialogBox-Background-Dark]], tile = true, tileSize = 128, insets = {left=3, right=3, top=3, bottom=3},
edgeFile = [[Interface\AddOns\Details\images\border_welcome]], edgeSize = 16})
f:SetBackdropColor (1, 1, 1, 0.75)
tinsert (UISpecialFrames, "DetailsLoadWallpaperImage")
@@ -9291,9 +9328,11 @@ function window:CreateFrame11()
local f = DetailsAnnounceSelectCooldownIgnored
f:SetSize (250, 400)
f:SetPoint ("center", UIParent, "center", 0, 0)
local bg = f:CreateTexture (nil, "background")
bg:SetAllPoints (f)
bg:SetTexture ([[Interface\AddOns\Details\images\welcome]])
f:SetBackdrop ({bgFile = [[Interface\DialogFrame\UI-DialogBox-Background-Dark]], tile = true, tileSize = 128, insets = {left=3, right=3, top=3, bottom=3},
edgeFile = [[Interface\AddOns\Details\images\border_welcome]], edgeSize = 16})
f:SetBackdropColor (1, 1, 1, 0.75)
f:SetFrameStrata ("FULLSCREEN")
local close = CreateFrame ("button", "DetailsAnnounceSelectCooldownIgnoredClose", f, "UIPanelCloseButton")
close:SetSize (32, 32)
+1 -1
View File
@@ -16,7 +16,7 @@ function _detalhes:OpenWelcomeWindow ()
local instance = _detalhes.tabela_instancias [1]
window = CreateFrame ("frame", "DetailsWelcomeWindow", UIParent)
window = _detalhes:CreateWelcomePanel ("DetailsWelcomeWindow", UIParent)
window:SetPoint ("center", UIParent, "center", -200, 0)
window:SetWidth (512)
window:SetHeight (265)
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.