Shestak UI
Go Back   Shestak UI > Interface Forums > English Community > Skinning

Skinning Share your custom skins with ShestakUI or others AddOns.

Advertising

 
Thread Tools
Old 17.09.2011, 06:20   #1
 Senior Member User Information

anj's Avatar
Lightbulb NPCScan

NPCScan is the only add-on I have that still has Blizzard frames. I hope this can be added to the ShestakUI_Extra. (There are also some tabs in Auctioneer that are not yet skinned… but that can wait ).

Thanks in advance.
Old 17.09.2011, 06:20   #1.5 - Disable Ads

Advertise on this site

Old 17.09.2011, 17:14   #2
Shestak
 Junior Member User Information

Shestak's Avatar
Quote:
Originally Posted by anj View Post
Auctioneer that are not yet skinned
Maybe Auctionator?


Quote:
Originally Posted by anj View Post
NPCScan is the only add-on I have that still has Blizzard frames.
Sceenshot NPCScan frames please.
Old 17.09.2011, 23:54   #3
anj
 Senior Member User Information

anj's Avatar
Here’s the NPCScan screenshot. Thanks.
http://imageshack.us/photo/my-images/38/anjnpcscan.png
Old 18.09.2011, 15:11   #4
Shestak
 Junior Member User Information

Shestak's Avatar
lua Code [Select]:
local T, C, L = unpack(select(2, ...))

----------------------------------------------------------------------------------------
--  Temporary stuff
----------------------------------------------------------------------------------------
local NPCSkin = CreateFrame("Frame")
NPCSkin:RegisterEvent("PLAYER_LOGIN")
NPCSkin:SetScript("OnEvent", function(self, event, addon)
    if not IsAddOnLoaded("_NPCScan") then return end
    _NPCScanButton:StripTextures()
    _NPCScanButton:SetTemplate("Transparent")
    _NPCScanButton:SetScale(1)

    for i = 1, _NPCScanButton:GetNumChildren() do
        local close = select(i, _NPCScanButton:GetChildren())
        if close.GetPushedTexture and close:GetPushedTexture() and not close:GetName() then
            close:StripTextures()
            close:Point("TOPRIGHT", 4, 4)
            close:SetScale(1)

            close:CreateBackdrop("Overlay")
            close.backdrop:Point("TOPLEFT", 8, -8)
            close.backdrop:Point("BOTTOMRIGHT", -8, 8)

            close.text = close:FontString(nil, C.media.normal_font, 17)
            close.text:SetPoint("CENTER", 0, 1)
            close.text:SetText("x")

            close:HookScript("OnEnter", function(self)
                close.backdrop:SetBackdropBorderColor(T.color.r, T.color.g, T.color.b)
                if close.backdrop.overlay then
                    close.backdrop.overlay:SetVertexColor(T.color.r, T.color.g, T.color.b, 0.3)
                end
            end)

            close:HookScript("OnLeave", function(self)
                close.backdrop:SetBackdropBorderColor(unpack(C.media.border_color))
                if close.backdrop.overlay then
                    close.backdrop.overlay:SetVertexColor(0.1, 0.1, 0.1, 1)
                end
            end)
        end

        local text = select(4, _NPCScanButton:GetRegions())
        text:SetTextColor(1, 1, 0)
        text:SetShadowOffset(1, -1)
    end
end)



The code can be shorter, but then the close button will not behave correctly:
lua Code [Select]:
local T, C, L = unpack(select(2, ...))

----------------------------------------------------------------------------------------
--  Temporary stuff
----------------------------------------------------------------------------------------
local NPCSkin = CreateFrame("Frame")
NPCSkin:RegisterEvent("PLAYER_LOGIN")
NPCSkin:SetScript("OnEvent", function(self, event, addon)
    if not IsAddOnLoaded("_NPCScan") then return end
    _NPCScanButton:StripTextures()
    _NPCScanButton:SetTemplate("Transparent")
    _NPCScanButton:SetScale(1)

    for i = 1, _NPCScanButton:GetNumChildren() do
        local close = select(i, _NPCScanButton:GetChildren())
        if close.GetPushedTexture and close:GetPushedTexture() and not close:GetName() then
            close:SetScale(1)
            T.SkinCloseButton(close)
        end

        local text = select(4, _NPCScanButton:GetRegions())
        text:SetTextColor(1, 1, 0)
        text:SetShadowOffset(1, -1)
    end
end)

Posted in 12 minute
Added in ShestakUI_Extra https://github.com/Shestak/ShestakUI...e1a5eeee1b1d95
Say Thank:
anj (18.09.2011)
Old 18.09.2011, 21:47   #5
anj
 Senior Member User Information

anj's Avatar
Great job. Thanks!
Old 03.01.2012, 07:46   #6
Bakira
 Member User Information

Bakira's Avatar
(Please excuse me for my english)
Hello

I'd also change the look of npcscan, but I do not understand or add your code. I also downloaded ShestakUI_Extra but I do not know how to install it.

In advance thank you for your help
Old 03.01.2012, 10:26   #7
Oz
 Senior Member User Information

Oz's Avatar
Quote:
Originally Posted by Bakira View Post
(Please excuse me for my english)
Hello

I'd also change the look of npcscan, but I do not understand or add your code. I also downloaded ShestakUI_Extra but I do not know how to install it.

In advance thank you for your help
Well, if you've downloaded ShestakUI_Extra do you need to install it as any other AddOn; I presume that you have downloaded it from gitHub: did you remember to rename the folder from Shestak-ShestakUI_Extra-XXXXXXX to ShestakUI_Extra?

To activate the skin go to ShestakUI_Extra\Config\ and open the file Settings.lua (you can use a simple text editor, but I always suggest to use Notepad++).

Then, change

lua Code [Select]:
["npcscan"] = false,

to

lua Code [Select]:
["npcscan"] = true,

That's all!
Say Thank:
Shestak (06.01.2012)
Old 03.01.2012, 12:05   #8
Bakira
 Member User Information

Bakira's Avatar
Thank you very much, it works perfectly.
Thank you for this great interface, convenient and efficient
Say Thank:
Shestak (06.01.2012)

Tags
npcscan, request, skinning

Thread Tools



Mobile Style Русский English Deutsch Italian Chinese