Shestak UI
Go Back   Shestak UI > Interface Forums > English Community > Modified Versions

Modified Versions Your modified version of ShestakUI.

Advertising

 
Thread Tools
Old 27.10.2012, 16:33   #1
 Elder Member User Information

rkw's Avatar
Question Bars and shadow design

hey
this is Photoshop Edit from ShestakUI


how do I do it for the game?

- rkw -
Old 27.10.2012, 16:33   #1.5 - Disable Ads

Advertise on this site

Old 27.10.2012, 16:54   #2
Shestak
 Junior Member User Information

Shestak's Avatar
Add in ShestakUI\Core\Function.lua
lua Code [Select]:
function T.CreateShadow(f)
    if f.shadow then return end

    local shadow = CreateFrame("Frame", nil, f)
    shadow:SetFrameLevel(1)
    shadow:SetFrameStrata(f:GetFrameStrata())
    shadow:SetPoint("TOPLEFT", -3, 3)
    shadow:SetPoint("BOTTOMLEFT", -3, -3)
    shadow:SetPoint("TOPRIGHT", 3, 3)
    shadow:SetPoint("BOTTOMRIGHT", 3, -3)
    shadow:SetBackdrop({
        edgeFile = "Interface\\AddOns\\ShestakUI\\Media\\Textures\\Glow.tga", edgeSize = 3,
        insets = {left = 5, right = 5, top = 5, bottom = 5},
    })
    shadow:SetBackdropColor(0, 0, 0, 0)
    shadow:SetBackdropBorderColor(0, 0, 0, 0.8)
    f.shadow = shadow
end

Then, for each frame use this function:
T.CreateShadow(FRAME_NAME)
Say Thank:
m2jest1c (27.10.2012)
Old 27.10.2012, 17:33   #3
rkw
 Elder Member User Information

rkw's Avatar
i add

lua Code [Select]:
function T.CreateShadow(f)
    if f.shadow then return end

    local shadow = CreateFrame("Frame", nil, f)
    shadow:SetFrameLevel(1)
    shadow:SetFrameStrata(f:GetFrameStrata())
    shadow:SetPoint("TOPLEFT", -3, 3)
    shadow:SetPoint("BOTTOMLEFT", -3, -3)
    shadow:SetPoint("TOPRIGHT", 3, 3)
    shadow:SetPoint("BOTTOMRIGHT", 3, -3)
    shadow:SetBackdrop({
        edgeFile = "Interface\\AddOns\\ShestakUI\\Media\\Textures\\Glow.tga", edgeSize = 3,
        insets = {left = 5, right = 5, top = 5, bottom = 5},
    })
    shadow:SetBackdropColor(0, 0, 0, 0)
    shadow:SetBackdropBorderColor(0, 0, 0, 0.8)
    f.shadow = shadow
end

too ShestakUI\Core\Function.lua

it is not a shadow because
where does "T.CreateShadow (FRAME_NAME)" there?
please give me an example

sorry i´m a lua noob :-(
Old 27.10.2012, 17:35   #4
Shestak
 Junior Member User Information

Shestak's Avatar
Quote:
Originally Posted by rkw View Post
sorry i´m a lua noob :-(
For this we need to change too many files. Most likely this option you just will not do.
Old 27.10.2012, 22:39   #5
rkw
 Elder Member User Information

rkw's Avatar
lua Code [Select]:
local BuffsAnchor = CreateFrame("Frame", "BuffsAnchor", UIParent)
BuffsAnchor:SetPoint(unpack(C.position.player_buffs))
BuffsAnchor:SetSize((15 * C.aura.player_buff_size) + 42, (C.aura.player_buff_size * 2) + 3)
T.CreateShadow(BuffsAnchor)


I need help with "buffs" and "unit frames" pls
Old 27.10.2012, 22:47   #6
Shestak
 Junior Member User Information

Shestak's Avatar
Quote:
Originally Posted by rkw View Post
BuffsAnchor
This is only anchor, not buffs. Search buff:CreateBackdrop("Default") and after add T.CreateShadow(buff)
Old 27.10.2012, 23:07   #7
rkw
 Elder Member User Information

rkw's Avatar
lua Code [Select]:
buff:SetSize(C.aura.player_buff_size, C.aura.player_buff_size)
    if i ~= 3 then
        buff:CreateBackdrop("true")
        buff.backdrop:SetAllPoints()
        if C.aura.classcolor_border == true then
            buff.backdrop:SetBackdropBorderColor(T.color.r, T.color.g, T.color.b)
T.CreateShadow(buff)
        end
    end

    icon:SetTexCoord(0.1, 0.9, 0.1, 0.9)
    icon:SetPoint("TOPLEFT", buff, 2, -2)
    icon:SetPoint("BOTTOMRIGHT", buff, -2, 2)

    duration:ClearAllPoints()
    duration:SetPoint("CENTER", 2, 1)
    duration:SetFont(C.font.auras_font, C.font.auras_font_size, C.font.auras_font_style)
    duration:SetShadowOffset(C.font.auras_font_shadow and 1 or 0, C.font.auras_font_shadow and -1 or 0)

    _G["TempEnchant2"]:ClearAllPoints()
    _G["TempEnchant2"]:SetPoint("RIGHT", _G["TempEnchant1"], "LEFT", -3, 0)
end

local function StyleBuffs(buttonName, index, debuff)
    local buff = _G[buttonName..index]
    local icon = _G[buttonName..index.."Icon"]
    local border = _G[buttonName..index.."Border"]
    local duration = _G[buttonName..index.."Duration"]
    local count = _G[buttonName..index.."Count"]

    if border then border:Hide() end

    if icon and not buff.isSkinned then
        buff:SetSize(C.aura.player_buff_size, C.aura.player_buff_size)
        buff:CreateBackdrop("true")
        buff.backdrop:SetAllPoints()
        if C.aura.classcolor_border == true then
            buff.backdrop:SetBackdropBorderColor(T.color.r, T.color.g, T.color.b)
T.CreateShadow(buff)

not work
Old 27.10.2012, 23:11   #8
Wetxius
 Assistant User Information

Wetxius's Avatar
Read the message. After buff:CreateBackdrop("Default") not buff.backdrop:SetBackdropBorderColor(T.color.r, T.color.g, T.color.b)
Old 27.10.2012, 23:41   #9
rkw
 Elder Member User Information

rkw's Avatar
english

Posted in 24 minutes
buff:CreateBackdrop("Default")
I must replace it with something?
or "default" replace?
Old 28.10.2012, 01:04   #10
Shestak
Offtop
 

Tags
black

Thread Tools



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