hi leute ... kennt sich wer mit Pitbull 4 aus? hab da nen Problem und find die Einstellungsmöglichkeit nicht und zwar gehts um folgendes:
Ich suche die Einstellung sich selber im Gruppenframe zu platzieren ... irgendwie geht das nich
Du musst unter der Rubrik "Gruppen" als Aktuelle Gruppe "Gruppe" wählen und dann siehst du ganz unten ein Kästchen mit "Spieler einbinden".
Da dann einfach ein Häkchen dran machen und schon sollte dein Char auch im Gruppenframe sein. :-)
[img=http://img5.imagebanana.com/img/2kjqj1z/thumb/pitbull.jpg]
So jetz zu meinem eigenen Problem
Ich habe vor kurzem angefangen auch ein bischen mit Lua zu arbeiten da ich es echt genial finde was ihr hier immer so mit Lua herbeizaubert.
Ich habe mir "sTooltip" geladen nur leider habe ich das Problem, dass die Lebensanzeige die untere Zeile des Tooltips verdeckt
[img=http://img5.imagebanana.com/img/3g9r1um9/thumb/sTooltip.jpg].
Das zweite Problem ist, dass ich den Tooltip gerne verschieben würde aber ich finde einfach nicht die Zeile wo ich das hinbekomme (falls es die überhaupt gibt).
Hier noch den Lua Code aus sTooltip:
[codebox]--[[
sTooltip
Copyright © 2008, Shantalya
All rights reserved.
]]
--[[ KONFIGURATION - START ]]--
local barHeight = 7; -- Die Höhe der Lebensleiste
local barHealthText = false; -- Lebensanzeige auf der Lebensleiste || true = Ja, false = Nein
local textSize = 10; -- Schriftgröße der Lebensleiste
local textFont = "Fonts\\FRIZQT__.ttf"; -- Schriftart der Lebensleiste
local statusBarTexture = "Interface\\Addons\\sTooltip\\statusbar"; -- Textur der Lebensleiste
--[[ KONFIGURATION - ENDE ]]--
old_HealthBar_OnValueChanged = HealthBar_OnValueChanged;
function HealthBar_OnValueChanged(self, value, smooth)
if ( not value ) then
return;
end
if ( GameTooltipStatusBar and barHealthText ) then
if ( not GameTooltipStatusBar.HealthText ) then
GameTooltipStatusBar.HealthText = GameTooltipStatusBar:CreateFontString("GameTooltipStatusBarHealthText", "ARTWORK");
GameTooltipStatusBar.HealthText:SetFont(textFont, textSize);
GameTooltipStatusBar.HealthText:SetShadowOffset( 1, -1);
GameTooltipStatusBar.HealthText:SetPoint("CENTER", GameTooltipStatusBar, "CENTER", 0, 1);
end
GameTooltipStatusBar.HealthText:SetText("");
local unit = select(2, GameTooltip:GetUnit());
if ( unit and UnitName(unit) ~= UNKNOWN ) then
if ( UnitHealth(unit) > 0 ) then
GameTooltipStatusBar.HealthText:SetText(UnitHealth(unit));
else
GameTooltipStatusBar.HealthText:SetText(DEAD);
end
end
end
end
function GameTooltip:GetReputation(fraction)
if ( fraction >= -42000 and fraction < -6000) then
return (fraction+42000).. "/36000";
elseif ( fraction >= -6000 and fraction < -3000) then
return (fraction+6000).. "/3000";
elseif ( fraction >= -3000 and fraction < 0) then
return (fraction+3000).. "/3000";
elseif ( fraction >= 0 and fraction < 3000) then
return fraction .. "/3000";
elseif ( fraction >= 3000 and fraction < 9000 ) then
return (fraction-3000) .. "/6000";
elseif( fraction >= 9000 and fraction < 21000 ) then
return (fraction-9000) .. "/12000";
elseif ( fraction >= 21000 and fraction < 42000 ) then
return (fraction-21000) .. "/21000";
elseif ( fraction >= 42000 ) then
return (fraction-42000) .. "/1000";
else
return "Unbekannter Ruf";
end
end
GameTooltip:HookScript("OnTooltipSetUnit", function(self)
local unit = select(2, self:GetUnit());
if ( unit and UnitName(unit) ~= UNKNOWN ) then
local unitIsPlayer = UnitIsPlayer(unit);
local unitClassColor = RAID_CLASS_COLORS[select(2,UnitClass(unit))] or { r = 1, g = 0, b = 1 };
local unitLevel = UnitLevel(unit);
local unitClassification = UnitClassification(unit);
local unitName = UnitName(unit);
local unitReactionColor = { r = select(1, UnitSelectionColor(unit)), g = select(2, UnitSelectionColor(unit)), b = select(3, UnitSelectionColor(unit)) };
local isInInstance = select(2, IsInInstance());
local difficultyColor = GetDifficultyColor(unitLevel);
local unitTargetName = UnitName(unit .. "target");
local unitTargetClassColor = RAID_CLASS_COLORS[select(2,UnitClass(unit .. "target"))] or { r = 1, g = 0, b = 1 };
local unitTargetReactionColor = { r = select(1, UnitSelectionColor(unit .. "target")), g = select(2, UnitSelectionColor(unit .. "target")), b = select(3, UnitSelectionColor(unit .. "target")) };
if ( UnitLevel(unit) == -1 ) then
unitLevel = "|cffff0000??|r";
end
if ( unitIsPlayer ) then
if ( IsInGuild() and GameTooltipTextLeft2:GetText():find("^" .. GetGuildInfo("player")) ) then
GameTooltipTextLeft2:SetTextColor(1, 0, 1);
end
for i=2, GameTooltip:NumLines(), 1 do
if ( getglobal("GameTooltipTextLeft" .. i):GetText():find("^" .. LEVEL) ) then
getglobal("GameTooltipTextLeft" .. i):SetText(format("|cff%02x%02x%02x%s|r", difficultyColor.r*255, difficultyColor.g*255, difficultyColor.b*255, unitLevel) .. " " .. UnitRace(unit) .. ", " .. format("|cff%02x%02x%02x%s|r", unitClassColor.r*255, unitClassColor.g*255, unitClassColor.b*255, UnitClass(unit)));
break;
end
end
--self:SetBackdropBorderColor(unitClassColor.r, unitClassColor.g, unitClassColor.b);
GameTooltipStatusBar:SetStatusBarColor(unitClassColor.r, unitClassColor.g, unitClassColor.b);
GameTooltipTextLeft1:SetTextColor(unitClassColor.r, unitClassColor.g, unitClassColor.b);
else
if ( unitClassification == "worldboss" ) then
unitClassification = " (" .. BOSS .. ") ";
elseif ( unitClassification == "rareelite" ) then
unitClassification = " (Rare Elite) ";
elseif ( unitClassification == "elite" ) then
unitClassification = " (" .. ELITE .. ") ";
elseif ( unitClassification == "rare" ) then
unitClassification = " (Rare) ";
else
unitClassification = " ";
end
for i=2, GameTooltip:NumLines(), 1 do
if ( getglobal("GameTooltipTextLeft" .. i):GetText():find("^" .. LEVEL) ) then
getglobal("GameTooltipTextLeft" .. i):SetText(format("|cff%02x%02x%02x%s|r", difficultyColor.r*255, difficultyColor.g*255, difficultyColor.b*255, unitLevel) .. unitClassification .. UnitCreatureType(unit));
break;
end
end
for i=3, GameTooltip:NumLines(), 1 do
for factionIndex=1, GetNumFactions(), 1 do
name, _, _, _, _, earnedValue, _, _, isHeader = GetFactionInfo(factionIndex);
if ( not isHeader and getglobal("GameTooltipTextLeft" .. i):GetText():find("^" .. name) ) then
getglobal("GameTooltipTextLeft" .. i):SetText(getglobal("GameTooltipTextLeft" .. i):GetText() .. " (" .. self:GetReputation(earnedValue) .. ")");
break;
end
end
end
if ( UnitIsTapped(unit) and not UnitIsTappedByPlayer(unit) ) then
self:SetBackdropBorderColor(0.5, 0.5, 0.5);
GameTooltipStatusBar:SetStatusBarColor(0.5, 0.5, 0.5);
GameTooltipTextLeft1:SetTextColor(0.5, 0.5, 0.5);
else
self:SetBackdropBorderColor(unitReactionColor.r, unitReactionColor.g, unitReactionColor.b);
GameTooltipStatusBar:SetStatusBarColor(unitReactionColor.r, unitReactionColor.g, unitReactionColor.b);
GameTooltipTextLeft1:SetTextColor(unitReactionColor.r, unitReactionColor.g, unitReactionColor.b);
end
end
if ( UnitExists(unit .. "target") ) then
if ( UnitName("player") == unitTargetName ) then
self:AddLine(TARGET .. ": |cffff00ff" .. string.upper(YOU) .. "|r", 1, 1, 1)
else
if UnitIsPlayer(unit .. "target") then
self:AddLine(TARGET .. ": " .. format("|cff%02x%02x%02x%s|r", unitTargetClassColor.r*255, unitTargetClassColor.g*255, unitTargetClassColor.b*255, unitTargetName), 1, 1, 1)
else
self:AddLine(TARGET .. ": " .. format("|cff%02x%02x%02x%s|r", unitTargetReactionColor.r*255, unitTargetReactionColor.g*255, unitTargetReactionColor.b*255, unitTargetName), 1, 1, 1)
end
end
end
if ( UnitIsPVP(unit) and isInInstance ~= "pvp" and isInInstance ~= "arena" and GetZonePVPInfo() ~= "combat" ) then
GameTooltipTextLeft1:SetText("|cffFF8800#|r " .. GameTooltipTextLeft1:GetText());
end
for i=2, GameTooltip:NumLines(), 1 do
if ( getglobal("GameTooltipTextLeft" .. i):GetText():find(PVP_ENABLED) ) then
getglobal("GameTooltipTextLeft" .. i):SetText(nil);
break
end
end
self:AddLine(" ")
GameTooltipStatusBar:ClearAllPoints();
GameTooltipStatusBar:SetPoint("BOTTOMLEFT", 7, 8);
GameTooltipStatusBar:SetPoint("BOTTOMRIGHT", -7, 8);
GameTooltipStatusBar:SetHeight(barHeight);
GameTooltipStatusBar:SetStatusBarTexture(statusBarTexture)
end
end);
GameTooltipStatusBar.background = GameTooltipStatusBar:CreateTexture("GameTooltipStatusBarBackground", "BACKGROUND");
GameTooltipStatusBar.background:SetPoint("TOPLEFT");
GameTooltipStatusBar.background:SetPoint("BOTTOMRIGHT");
GameTooltipStatusBar.background:SetTexture(statusBarTexture);
GameTooltipStatusBar.background:SetVertexColor(1, 1, 1, 0.6);
GameTooltip:SetBackdrop({ bgFile = "Interface\\Tooltips\\UI-Tooltip-Background", edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border", tile = true, tileSize = 8, edgeSize = 16, insets = { left = -2, right = -2, top = -2, bottom = -2 } });
GameTooltip:SetScript("OnShow", function(self) self:SetBackdropColor(0, 0, 0, 0.8); end);
ItemRefTooltip:SetBackdrop({ bgFile = "Interface\\Tooltips\\UI-Tooltip-Background", edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border", tile = true, tileSize = 8, edgeSize = 16, insets = { left = 4, right = 4, top = 4, bottom = 4 } });
ItemRefTooltip:SetScript("OnShow", function(self) self:SetBackdropColor(0, 0, 0, 0.6); end);
ShoppingTooltip1:SetBackdrop({ bgFile = "Interface\\Tooltips\\UI-Tooltip-Background", edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border", tile = true, tileSize = 8, edgeSize = 16, insets = { left = 4, right = 4, top = 4, bottom = 4 } });
ShoppingTooltip1:SetScript("OnShow", function(self) self:SetBackdropColor(0, 0, 0, 0.6); end);
ShoppingTooltip2:SetBackdrop({ bgFile = "Interface\\Tooltips\\UI-Tooltip-Background", edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border", tile = true, tileSize = 8, edgeSize = 16, insets = { left = 4, right = 4, top = 4, bottom = 4 } });
ShoppingTooltip2:SetScript("OnShow", function(self) self:SetBackdropColor(0, 0, 0, 0.6); end);
ShoppingTooltip3:SetBackdrop({ bgFile = "Interface\\Tooltips\\UI-Tooltip-Background", edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border", tile = true, tileSize = 8, edgeSize = 16, insets = { left = 4, right = 4, top = 4, bottom = 4 } });
ShoppingTooltip3:SetScript("OnShow", function(self) self:SetBackdropColor(0, 0, 0, 0.6); end);
DropDownList1MenuBackdrop:SetBackdrop({ bgFile = "Interface\\Tooltips\\UI-Tooltip-Background", edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border", tile = true, tileSize = 8, edgeSize = 16, insets = { left = 4, right = 4, top = 4, bottom = 4 } });
DropDownList1MenuBackdrop:SetScript("OnShow", function(self) self:SetBackdropColor(0, 0, 0, 0.6); end);
DropDownList2MenuBackdrop:SetBackdrop({ bgFile = "Interface\\Tooltips\\UI-Tooltip-Background", edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border", tile = true, tileSize = 8, edgeSize = 16, insets = { left = 4, right = 4, top = 4, bottom = 4 } });
DropDownList2MenuBackdrop:SetScript("OnShow", function(self) self:SetBackdropColor(0, 0, 0, 0.6); end);
local frame = CreateFrame("Frame", "ItemRefTooltipIconFrame", ItemRefTooltip);
frame:SetWidth(29);
frame:SetHeight(29);
frame:SetBackdrop({ edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border", tile = true, tileSize = 16, edgeSize = 16, insets = { left = 4, right = 4, top = 4, bottom = 4 }});
frame:SetPoint("TOPRIGHT", ItemRefTooltip, "TOPLEFT", -1, 1);
frame.icon = frame:CreateTexture(frame:GetName() .. "IconTexture", "BACKGROUND");
frame.icon:SetWidth(25);
frame.icon:SetHeight(25);
frame.icon:SetPoint("CENTER", frame, "CENTER", 0, 0);
frame.icon:SetTexCoord(0.07, 0.93, 0.07, 0.93);
frame.count = frame:CreateFontString(frame:GetName() .. "Count", "ARTWORK", "NumberFontNormal");
frame.count:SetJustifyH("RIGHT");
frame.count:SetPoint("BOTTOMRIGHT", frame.icon, -2, 2);
hooksecurefunc("SetItemRef", function(link, text, button)
if ( ItemRefTooltipIconFrame:IsShown() ) then
SetItemButtonCount(ItemRefTooltipIconFrame, 0);
ItemRefTooltipIconFrame:Hide();
end
if ( strsub(link, 1, 4) == "item" ) then
local itemStackCount, _, itemTexture = select(8, GetItemInfo(strmatch(link, "item
%d+)")));
itemStackCount = itemStackCount or 0;
SetItemButtonTexture(ItemRefTooltipIconFrame, itemTexture);
SetItemButtonCount(ItemRefTooltipIconFrame, itemStackCount);
ItemRefTooltipIconFrame:Show();
elseif ( strsub(link, 1, 5) == "spell" ) then
SetItemButtonTexture(ItemRefTooltipIconFrame, select(3, GetSpellInfo(strmatch(link, "spell
%d+)"))));
ItemRefTooltipIconFrame:Show();
elseif ( strsub(link, 1, 11) == "achievement") then
SetItemButtonTexture(ItemRefTooltipIconFrame, select(10, GetAchievementInfo(strmatch(link, "achievement
%d+)"))));
ItemRefTooltipIconFrame:Show();
end
end);
--[[
GameTooltipStatusBar:ClearAllPoints()
GameTooltipStatusBar:SetPoint("BOTTOMLEFT", 8, 9)
GameTooltipStatusBar:SetPoint("BOTTOMRIGHT", -8, 9)
GameTooltipStatusBar:SetHeight(10)
]]
GameTooltipStatusBar:ClearAllPoints()
GameTooltipStatusBar:SetPoint("BOTTOMLEFT", 8, 9)
GameTooltipStatusBar:SetPoint("BOTTOMRIGHT", -8, 9)
--borders ( quick and dirty
)
local frameborder = "Interface\\AddOns\\sTooltip\\frameborder"
local color_rb = 0.3
local color_gb = 0.3
local color_bb = 0.3
local scale = 12
local pos = 4
--Tooltip Border
local TopLeft = GameTooltip:CreateTexture(nil, "OVERLAY")
TopLeft:SetTexture(frameborder)
TopLeft:SetTexCoord(0, 1/3, 0, 1/3)
TopLeft:SetPoint("TOPLEFT", GameTooltip, -pos-0.5, pos+1)
TopLeft:SetWidth(scale) TopLeft:SetHeight(scale)
TopLeft:SetVertexColor(color_rb,color_gb,color_bb)
TopLeft:SetDrawLayer("BORDER")
local TopRight = GameTooltip:CreateTexture(nil, "OVERLAY")
TopRight:SetTexture(frameborder)
TopRight:SetTexCoord(2/3, 1, 0, 1/3)
TopRight:SetPoint("TOPRIGHT", GameTooltip, pos+0.5, pos+1)
TopRight:SetWidth(scale) TopRight:SetHeight(scale)
TopRight:SetVertexColor(color_rb,color_gb,color_bb)
TopRight:SetDrawLayer("BORDER")
local BottomLeft = GameTooltip:CreateTexture(nil, "OVERLAY")
BottomLeft:SetTexture(frameborder)
BottomLeft:SetTexCoord(0, 1/3, 2/3, 1)
BottomLeft:SetPoint("BOTTOMLEFT", GameTooltip, -pos-0.5, -pos-0.5)
BottomLeft:SetWidth(scale) BottomLeft:SetHeight(scale)
BottomLeft:SetVertexColor(color_rb,color_gb,color_bb)
BottomLeft:SetDrawLayer("BORDER")
local BottomRight = GameTooltip:CreateTexture(nil, "OVERLAY")
BottomRight:SetTexture(frameborder)
BottomRight:SetTexCoord(2/3, 1, 2/3, 1)
BottomRight:SetPoint("BOTTOMRIGHT", GameTooltip, pos+0.5, -pos-0.5)
BottomRight:SetWidth(scale) BottomRight:SetHeight(scale)
BottomRight:SetVertexColor(color_rb,color_gb,color_bb)
BottomRight:SetDrawLayer("BORDER")
local TopEdge = GameTooltip:CreateTexture(nil, "OVERLAY")
TopEdge:SetTexture(frameborder)
TopEdge:SetTexCoord(1/3, 2/3, 0, 1/3)
TopEdge:SetPoint("TOPLEFT", TopLeft, "TOPRIGHT")
TopEdge:SetPoint("TOPRIGHT", TopRight, "TOPLEFT")
TopEdge:SetHeight(scale)
TopEdge:SetVertexColor(color_rb,color_gb,color_bb)
TopEdge:SetDrawLayer("BORDER")
local BottomEdge = GameTooltip:CreateTexture(nil, "OVERLAY")
BottomEdge:SetTexture(frameborder)
BottomEdge:SetTexCoord(1/3, 2/3, 2/3, 1)
BottomEdge:SetPoint("BOTTOMLEFT", BottomLeft, "BOTTOMRIGHT")
BottomEdge:SetPoint("BOTTOMRIGHT", BottomRight, "BOTTOMLEFT")
BottomEdge:SetHeight(scale)
BottomEdge:SetVertexColor(color_rb,color_gb,color_bb)
BottomEdge:SetDrawLayer("BORDER")
local LeftEdge = GameTooltip:CreateTexture(nil, "OVERLAY")
LeftEdge:SetTexture(frameborder)
LeftEdge:SetTexCoord(0, 1/3, 1/3, 2/3)
LeftEdge:SetPoint("TOPLEFT", TopLeft, "BOTTOMLEFT")
LeftEdge:SetPoint("BOTTOMLEFT", BottomLeft, "TOPLEFT")
LeftEdge:SetWidth(scale)
LeftEdge:SetVertexColor(color_rb,color_gb,color_bb)
LeftEdge:SetDrawLayer("BORDER")
local RightEdge = GameTooltip:CreateTexture(nil, "OVERLAY")
RightEdge:SetTexture(frameborder)
RightEdge:SetTexCoord(2/3, 1, 1/3, 2/3)
RightEdge:SetPoint("TOPRIGHT", TopRight, "BOTTOMRIGHT")
RightEdge:SetPoint("BOTTOMRIGHT", BottomRight, "TOPRIGHT")
RightEdge:SetWidth(scale)
RightEdge:SetVertexColor(color_rb,color_gb,color_bb)
RightEdge:SetDrawLayer("BORDER")
--ItemRefTooltip Border
local TopLeft = ItemRefTooltip:CreateTexture(nil, "OVERLAY")
TopLeft:SetTexture(frameborder)
TopLeft:SetTexCoord(0, 1/3, 0, 1/3)
TopLeft:SetPoint("TOPLEFT", ItemRefTooltip, -pos+4, pos-3.5)
TopLeft:SetWidth(scale) TopLeft:SetHeight(scale)
TopLeft:SetVertexColor(color_rb,color_gb,color_bb)
TopLeft:SetDrawLayer("BORDER")
local TopRight = ItemRefTooltip:CreateTexture(nil, "OVERLAY")
TopRight:SetTexture(frameborder)
TopRight:SetTexCoord(2/3, 1, 0, 1/3)
TopRight:SetPoint("TOPRIGHT", ItemRefTooltip, pos-4, pos-3.5)
TopRight:SetWidth(scale) TopRight:SetHeight(scale)
TopRight:SetVertexColor(color_rb,color_gb,color_bb)
TopRight:SetDrawLayer("BORDER")
local BottomLeft = ItemRefTooltip:CreateTexture(nil, "OVERLAY")
BottomLeft:SetTexture(frameborder)
BottomLeft:SetTexCoord(0, 1/3, 2/3, 1)
BottomLeft:SetPoint("BOTTOMLEFT", ItemRefTooltip, -pos+4, -pos+3.5)
BottomLeft:SetWidth(scale) BottomLeft:SetHeight(scale)
BottomLeft:SetVertexColor(color_rb,color_gb,color_bb)
BottomLeft:SetDrawLayer("BORDER")
local BottomRight = ItemRefTooltip:CreateTexture(nil, "OVERLAY")
BottomRight:SetTexture(frameborder)
BottomRight:SetTexCoord(2/3, 1, 2/3, 1)
BottomRight:SetPoint("BOTTOMRIGHT", ItemRefTooltip, pos-4, -pos+3.5)
BottomRight:SetWidth(scale) BottomRight:SetHeight(scale)
BottomRight:SetVertexColor(color_rb,color_gb,color_bb)
BottomRight:SetDrawLayer("BORDER")
local TopEdge = ItemRefTooltip:CreateTexture(nil, "OVERLAY")
TopEdge:SetTexture(frameborder)
TopEdge:SetTexCoord(1/3, 2/3, 0, 1/3)
TopEdge:SetPoint("TOPLEFT", TopLeft, "TOPRIGHT")
TopEdge:SetPoint("TOPRIGHT", TopRight, "TOPLEFT")
TopEdge:SetHeight(scale)
TopEdge:SetVertexColor(color_rb,color_gb,color_bb)
TopEdge:SetDrawLayer("BORDER")
local BottomEdge = ItemRefTooltip:CreateTexture(nil, "OVERLAY")
BottomEdge:SetTexture(frameborder)
BottomEdge:SetTexCoord(1/3, 2/3, 2/3, 1)
BottomEdge:SetPoint("BOTTOMLEFT", BottomLeft, "BOTTOMRIGHT")
BottomEdge:SetPoint("BOTTOMRIGHT", BottomRight, "BOTTOMLEFT")
BottomEdge:SetHeight(scale)
BottomEdge:SetVertexColor(color_rb,color_gb,color_bb)
BottomEdge:SetDrawLayer("BORDER")
local LeftEdge = ItemRefTooltip:CreateTexture(nil, "OVERLAY")
LeftEdge:SetTexture(frameborder)
LeftEdge:SetTexCoord(0, 1/3, 1/3, 2/3)
LeftEdge:SetPoint("TOPLEFT", TopLeft, "BOTTOMLEFT")
LeftEdge:SetPoint("BOTTOMLEFT", BottomLeft, "TOPLEFT")
LeftEdge:SetWidth(scale)
LeftEdge:SetVertexColor(color_rb,color_gb,color_bb)
LeftEdge:SetDrawLayer("BORDER")
local RightEdge = ItemRefTooltip:CreateTexture(nil, "OVERLAY")
RightEdge:SetTexture(frameborder)
RightEdge:SetTexCoord(2/3, 1, 1/3, 2/3)
RightEdge:SetPoint("TOPRIGHT", TopRight, "BOTTOMRIGHT")
RightEdge:SetPoint("BOTTOMRIGHT", BottomRight, "TOPRIGHT")
RightEdge:SetWidth(scale)
RightEdge:SetVertexColor(color_rb,color_gb,color_bb)
RightEdge:SetDrawLayer("BORDER")
--DropDownList1MenuBackdrop Border
local TopLeft = DropDownList1MenuBackdrop:CreateTexture(nil, "OVERLAY")
TopLeft:SetTexture(frameborder)
TopLeft:SetTexCoord(0, 1/3, 0, 1/3)
TopLeft:SetPoint("TOPLEFT", DropDownList1MenuBackdrop, -pos+4.5, pos-4.5)
TopLeft:SetWidth(scale) TopLeft:SetHeight(scale)
TopLeft:SetVertexColor(color_rb,color_gb,color_bb)
TopLeft:SetDrawLayer("BORDER")
local TopRight = DropDownList1MenuBackdrop:CreateTexture(nil, "OVERLAY")
TopRight:SetTexture(frameborder)
TopRight:SetTexCoord(2/3, 1, 0, 1/3)
TopRight:SetPoint("TOPRIGHT", DropDownList1MenuBackdrop, pos-4.5, pos-4.5)
TopRight:SetWidth(scale) TopRight:SetHeight(scale)
TopRight:SetVertexColor(color_rb,color_gb,color_bb)
TopRight:SetDrawLayer("BORDER")
local BottomLeft = DropDownList1MenuBackdrop:CreateTexture(nil, "OVERLAY")
BottomLeft:SetTexture(frameborder)
BottomLeft:SetTexCoord(0, 1/3, 2/3, 1)
BottomLeft:SetPoint("BOTTOMLEFT", DropDownList1MenuBackdrop, -pos+4.5, -pos+4.5)
BottomLeft:SetWidth(scale) BottomLeft:SetHeight(scale)
BottomLeft:SetVertexColor(color_rb,color_gb,color_bb)
BottomLeft:SetDrawLayer("BORDER")
local BottomRight = DropDownList1MenuBackdrop:CreateTexture(nil, "OVERLAY")
BottomRight:SetTexture(frameborder)
BottomRight:SetTexCoord(2/3, 1, 2/3, 1)
BottomRight:SetPoint("BOTTOMRIGHT", DropDownList1MenuBackdrop, pos-4.5, -pos+4.5)
BottomRight:SetWidth(scale) BottomRight:SetHeight(scale)
BottomRight:SetVertexColor(color_rb,color_gb,color_bb)
BottomRight:SetDrawLayer("BORDER")
local TopEdge = DropDownList1MenuBackdrop:CreateTexture(nil, "OVERLAY")
TopEdge:SetTexture(frameborder)
TopEdge:SetTexCoord(1/3, 2/3, 0, 1/3)
TopEdge:SetPoint("TOPLEFT", TopLeft, "TOPRIGHT")
TopEdge:SetPoint("TOPRIGHT", TopRight, "TOPLEFT")
TopEdge:SetHeight(scale)
TopEdge:SetVertexColor(color_rb,color_gb,color_bb)
TopEdge:SetDrawLayer("BORDER")
local BottomEdge = DropDownList1MenuBackdrop:CreateTexture(nil, "OVERLAY")
BottomEdge:SetTexture(frameborder)
BottomEdge:SetTexCoord(1/3, 2/3, 2/3, 1)
BottomEdge:SetPoint("BOTTOMLEFT", BottomLeft, "BOTTOMRIGHT")
BottomEdge:SetPoint("BOTTOMRIGHT", BottomRight, "BOTTOMLEFT")
BottomEdge:SetHeight(scale)
BottomEdge:SetVertexColor(color_rb,color_gb,color_bb)
BottomEdge:SetDrawLayer("BORDER")
local LeftEdge = DropDownList1MenuBackdrop:CreateTexture(nil, "OVERLAY")
LeftEdge:SetTexture(frameborder)
LeftEdge:SetTexCoord(0, 1/3, 1/3, 2/3)
LeftEdge:SetPoint("TOPLEFT", TopLeft, "BOTTOMLEFT")
LeftEdge:SetPoint("BOTTOMLEFT", BottomLeft, "TOPLEFT")
LeftEdge:SetWidth(scale)
LeftEdge:SetVertexColor(color_rb,color_gb,color_bb)
LeftEdge:SetDrawLayer("BORDER")
local RightEdge = DropDownList1MenuBackdrop:CreateTexture(nil, "OVERLAY")
RightEdge:SetTexture(frameborder)
RightEdge:SetTexCoord(2/3, 1, 1/3, 2/3)
RightEdge:SetPoint("TOPRIGHT", TopRight, "BOTTOMRIGHT")
RightEdge:SetPoint("BOTTOMRIGHT", BottomRight, "TOPRIGHT")
RightEdge:SetWidth(scale)
RightEdge:SetVertexColor(color_rb,color_gb,color_bb)
RightEdge:SetDrawLayer("BORDER")
--frame Border
local TopLeft = frame:CreateTexture(nil, "OVERLAY")
TopLeft:SetTexture(frameborder)
TopLeft:SetTexCoord(0, 1/3, 0, 1/3)
TopLeft:SetPoint("TOPLEFT", frame, -pos+4.5, pos-4.5)
TopLeft:SetWidth(scale) TopLeft:SetHeight(scale)
TopLeft:SetVertexColor(color_rb,color_gb,color_bb)
TopLeft:SetDrawLayer("BORDER")
local TopRight = frame:CreateTexture(nil, "OVERLAY")
TopRight:SetTexture(frameborder)
TopRight:SetTexCoord(2/3, 1, 0, 1/3)
TopRight:SetPoint("TOPRIGHT", frame, pos-4.5, pos-4.5)
TopRight:SetWidth(scale) TopRight:SetHeight(scale)
TopRight:SetVertexColor(color_rb,color_gb,color_bb)
TopRight:SetDrawLayer("BORDER")
local BottomLeft = frame:CreateTexture(nil, "OVERLAY")
BottomLeft:SetTexture(frameborder)
BottomLeft:SetTexCoord(0, 1/3, 2/3, 1)
BottomLeft:SetPoint("BOTTOMLEFT", frame, -pos+4.5, -pos+4)
BottomLeft:SetWidth(scale) BottomLeft:SetHeight(scale)
BottomLeft:SetVertexColor(color_rb,color_gb,color_bb)
BottomLeft:SetDrawLayer("BORDER")
local BottomRight = frame:CreateTexture(nil, "OVERLAY")
BottomRight:SetTexture(frameborder)
BottomRight:SetTexCoord(2/3, 1, 2/3, 1)
BottomRight:SetPoint("BOTTOMRIGHT", frame, pos-4.5, -pos+4)
BottomRight:SetWidth(scale) BottomRight:SetHeight(scale)
BottomRight:SetVertexColor(color_rb,color_gb,color_bb)
BottomRight:SetDrawLayer("BORDER")
local TopEdge = frame:CreateTexture(nil, "OVERLAY")
TopEdge:SetTexture(frameborder)
TopEdge:SetTexCoord(1/3, 2/3, 0, 1/3)
TopEdge:SetPoint("TOPLEFT", TopLeft, "TOPRIGHT")
TopEdge:SetPoint("TOPRIGHT", TopRight, "TOPLEFT")
TopEdge:SetHeight(scale)
TopEdge:SetVertexColor(color_rb,color_gb,color_bb)
TopEdge:SetDrawLayer("BORDER")
local BottomEdge = frame:CreateTexture(nil, "OVERLAY")
BottomEdge:SetTexture(frameborder)
BottomEdge:SetTexCoord(1/3, 2/3, 2/3, 1)
BottomEdge:SetPoint("BOTTOMLEFT", BottomLeft, "BOTTOMRIGHT")
BottomEdge:SetPoint("BOTTOMRIGHT", BottomRight, "BOTTOMLEFT")
BottomEdge:SetHeight(scale)
BottomEdge:SetVertexColor(color_rb,color_gb,color_bb)
BottomEdge:SetDrawLayer("BORDER")
local LeftEdge = frame:CreateTexture(nil, "OVERLAY")
LeftEdge:SetTexture(frameborder)
LeftEdge:SetTexCoord(0, 1/3, 1/3, 2/3)
LeftEdge:SetPoint("TOPLEFT", TopLeft, "BOTTOMLEFT")
LeftEdge:SetPoint("BOTTOMLEFT", BottomLeft, "TOPLEFT")
LeftEdge:SetWidth(scale)
LeftEdge:SetVertexColor(color_rb,color_gb,color_bb)
LeftEdge:SetDrawLayer("BORDER")
local RightEdge = frame:CreateTexture(nil, "OVERLAY")
RightEdge:SetTexture(frameborder)
RightEdge:SetTexCoord(2/3, 1, 1/3, 2/3)
RightEdge:SetPoint("TOPRIGHT", TopRight, "BOTTOMRIGHT")
RightEdge:SetPoint("BOTTOMRIGHT", BottomRight, "TOPRIGHT")
RightEdge:SetWidth(scale)
RightEdge:SetVertexColor(color_rb,color_gb,color_bb)
RightEdge:SetDrawLayer("BORDER")[/codebox]
Über Hilfe wäre ich echt dankbar
MfG Kel