Der Interface-Basteleien-Thread!

Es ist zwar nicht direkt ein Add-on, aber ich hab meine Add-on-Seite gestern neuprogrammiert. :-)
Englishe Übersetzungen werde ich auch noch einbauen, sodass die Englishe Community auch was davon hat. :-)

*** ***

Zählt das nu eigentlich unter Werbung? :o
 
Zuletzt bearbeitet von einem Moderator:
Nicht wenn wir sie möchten
biggrin.gif
 
*** ***? Gief!

Edit: Sogar Kommis? Geil :O
 
Zuletzt bearbeitet von einem Moderator:
*** ***? Gief![/quote]Würde dir zurzeit nicht viel bringen!^^
Da kann man nur als Administrator etwas machen... Add-ons verwalten, Seiten neu generieren, Module verwalten, Kommentare verwalten, ect. pp.

_Noch_ nichts für normale Benutzer. :-)

Kann momentan nicht mehr viel machen, da ich bald in die Schweiz für eine Woche fahre. :-)
 
Zuletzt bearbeitet von einem Moderator:
Links entfernt

/wink maladin
 
hey,
hoffe ihr könnt mir helfen.
hab mich jetzt ein wenig in lua reingefunden, aber ich hab ne frage:

kann man bei dieser modifizierten version von ractionbarstyler auch die bars sichtbar machen?
EDIT: ich kann momentan nur eine bar benutzen
hier mal der code:

-- roth 2009

local _G = getfenv(0)

---------------------------------------------------
-- CONFIG START
---------------------------------------------------

local testmode = 0 -- only shows backgrounds for bars, nothing more

--[[ Info about settings table:
a: Anchor Point and Relative point of frame
x: X offset in pixels
y: Y offset in pixels
mouseover: 1 means bar will be shown only when mouse is over it
scale: scale multiplier, i.e. 1 = 100%
disable: 1 mean bar will be hidden all the time ]]

local settings = {
["BonusBar"] = {a = "BOTTOM", x = 0, y = 25, scale = 0.8}, -- ActionBar1, VehicleBar, changes with stances etc
["Bar2"] = {a = "BOTTOM", x = 0, y = 59, mouseover = 0, scale = 0.8, disable = 0},
["Bar3"] = {a = "BOTTOM", x = 0, y = 93, mouseover = 0, scale = 0.8, disable = 0},
["Right"] = {a = "RIGHT", x = -35, y = 0, mouseover = 0, scale = 0.8, disable = 0},
["Left"] = {a = "RIGHT", x = -1, y = 0, mouseover = 0, scale = 0.8, disable = 0},
["Pet"] = {a = "BOTTOM", x = 0, y = 130, mouseover = 0, scale = 0.8, disable = 0},
["Shapeshift"] = {a = "BOTTOM", x = 0, y = 160, mouseover = 0, scale = 0.8, disable = 1},
}

---------------------------------------------------
-- CONFIG END
---------------------------------------------------

--[[ holder creation func ]]
local CreateHolder = function(name, width, height, setting, numslots, buttonname)
local frame = CreateFrame("Frame", name, UIParent)
frame:SetWidth(width)
frame:SetHeight(height)
frame:SetPoint(settings[setting].a, settings[setting].x / settings[setting].scale, settings[setting].y / settings[setting].scale)
frame:SetScale(settings[setting].scale)

if(settings[setting].mouseover==1) then
local ShowHide = function(alpha)
for i=1, numslots do
local bu = _G[buttonname..i]
if(bu and bu:IsShown()) then
bu:SetAlpha(alpha)
end
end
end
frame:EnableMouse(true)
frame:SetScript("OnEnter", function(self) ShowHide(1) end)
frame:SetScript("OnLeave", function(self) ShowHide(0) end)
for i=1, numslots do
local pb = _G[buttonname..i]
pb:SetAlpha(0)
pb:HookScript("OnEnter", function(self) ShowHide(1) end)
pb:HookScript("OnLeave", function(self) ShowHide(0) end)
end
end

if(testmode==1) then
frame:SetBackdrop({bgFile = "Interface/Tooltips/UI-Tooltip-Background", edgeFile = "",
tile = true, tileSize = 16, edgeSize = 16, insets = { left = 0, right = 0, top = 0, bottom = 0 }})
end

if(settings[setting].disable==1) then
frame:Hide()
end

return frame
end

--[[ Creating holders ]]
local fbar1 = CreateHolder("rABS_Bar1Holder", 498, 36, "BonusBar", 12, "BonusActionButton", "ActionButton")
local fbar2 = CreateHolder("rABS_Bar2Holder", 498, 36, "Bar2", 12, "MultiBarBottomLeftButton")
local fbar3 = CreateHolder("rABS_Bar3Holder", 498, 36, "Bar3", 12, "MultiBarBottomRightButton")
local fbar4 = CreateHolder("rABS_Bar4Holder", 36, 498, "Right", 12, "MultiBarRightButton")
local fbar5 = CreateHolder("rABS_Bar5Holder", 36, 498, "Left", 12, "MultiBarLeftButton")
local fpet = CreateHolder("rABS_PetBarHolder", 371, 30, "Pet", NUM_PET_ACTION_SLOTS, "PetActionButton")
local fshift = CreateHolder("rABS_ShapeShiftHolder", 355, 30, "Shapeshift", NUM_SHAPESHIFT_SLOTS, "ShapeshiftButton")

--[[ Moving buttons to holders ]]
for i = 1, 12 do
_G["ActionButton"..i]:SetParent(fbar1)
end
ActionButton1:ClearAllPoints()
ActionButton1:SetPoint("BOTTOMLEFT", fbar1, "BOTTOMLEFT")

BonusActionBarFrame:SetParent(fbar1)
BonusActionBarFrame:SetWidth(0.01)
BonusActionBarTexture0:Hide()
BonusActionBarTexture1:Hide()
BonusActionButton1:ClearAllPoints()
BonusActionButton1:SetPoint("BOTTOMLEFT", fbar1, "BOTTOMLEFT")

MultiBarBottomLeft:SetParent(fbar2)
MultiBarBottomLeftButton1:ClearAllPoints()
MultiBarBottomLeftButton1:SetPoint("BOTTOMLEFT", fbar2, "BOTTOMLEFT")

MultiBarBottomRight:SetParent(fbar3)
MultiBarBottomRightButton1:ClearAllPoints()
MultiBarBottomRightButton1:SetPoint("BOTTOMLEFT", fbar3, "BOTTOMLEFT")

ShapeshiftBarFrame:SetParent(fshift)
ShapeshiftBarFrame:SetWidth(0.01)
ShapeshiftButton1:ClearAllPoints()
ShapeshiftButton1:SetPoint("BOTTOMLEFT",fshift,"BOTTOMLEFT")
local function rABS_MoveShapeshift()
ShapeshiftButton1:SetPoint("BOTTOMLEFT", fshift, "BOTTOMLEFT")
end
hooksecurefunc("ShapeshiftBar_Update", rABS_MoveShapeshift)

PossessBarFrame:SetParent(fshift)
PossessButton1:ClearAllPoints()
PossessButton1:SetPoint("BOTTOMLEFT", fshift, "BOTTOMLEFT")

PetActionBarFrame:SetParent(fpet)
PetActionBarFrame:SetWidth(0.01)
PetActionButton1:ClearAllPoints()
PetActionButton1:SetPoint("BOTTOMLEFT", fpet, "BOTTOMLEFT")

MultiBarLeft:SetParent(fbar5)
MultiBarLeft:ClearAllPoints()
MultiBarLeft:SetPoint("TOPRIGHT")

MultiBarRight:SetParent(fbar4)
MultiBarRight:ClearAllPoints()
MultiBarRight:SetPoint("TOPRIGHT")

--[[ Hide actionbuttons1 if bonus bar is shown ]]
local function rABS_showhideactionbuttons(alpha)
for i = 1, 12 do
_G["ActionButton"..i]:SetAlpha(alpha)
end
end
BonusActionBarFrame:HookScript("OnShow", function(self) rABS_showhideactionbuttons(0) end)
BonusActionBarFrame:HookScript("OnHide", function(self) rABS_showhideactionbuttons(1) end)
if BonusActionBarFrame:IsShown() then
rABS_showhideactionbuttons(0)
end

--[[ Hiding default frames ]]
local FramesToHide = {
MainMenuBar,
VehicleMenuBar,
}

for _, f in pairs(FramesToHide) do
f:SetScale(0.001)
f:SetAlpha(0)
f:EnableMouse(false)
end

--[[ Range coloring. This function is taken from nMainBar, so all credits for it go to Neal ]]
function ActionButton_OnUpdate(self, elapsed)
if(ActionButton_IsFlashing(self)) then
local flashtime = self.flashtime
flashtime = flashtime - elapsed

if ( flashtime <= 0 ) then
local overtime = -flashtime
if ( overtime >= ATTACK_BUTTON_FLASH_TIME ) then
overtime = 0
end
flashtime = ATTACK_BUTTON_FLASH_TIME - overtime

local flashTexture = _G[self:GetName().."Flash"]
if (flashTexture:IsShown()) then
flashTexture:Hide()
else
flashTexture:Show()
end
end

self.flashtime = flashtime
end

local rangeTimer = self.rangeTimer
if(rangeTimer) then
rangeTimer = rangeTimer - elapsed
if(rangeTimer<=0) then

local isInRange = false
if(ActionHasRange(self.action) and IsActionInRange(self.action)==0) then
_G[self:GetName().."Icon"]:SetVertexColor(0.9, 0.1, 0.1)
isInRange = true
end

if (self.isInRange~=isInRange) then
self.isInRange = isInRange
ActionButton_UpdateUsable(self)
end
rangeTimer = 0.2
end
self.rangeTimer = rangeTimer
end
end


edit: bracuht man für keybindings eig bei ractionbarstyler nen extra addon?
 
Zuletzt bearbeitet von einem Moderator:
Welche beiden Bars sind denn nicht da? Möchte nicht das ganze Addon durch gucken
tongue.gif


Gucke mal nachm Raid oder morgen über den Code.
 
Zuletzt bearbeitet von einem Moderator:
ich kann momentan nur die "Bonus Bar" benutzen
 
Zuletzt bearbeitet von einem Moderator:
Hätte da ein problem und zwar ich spiele atm mit ouF Atrophia so nun habe ich das problem das dort meine namen nicht angezeigt werden habe shcon am font rum gebastelt abe ric kriegs einfahc nicht hin hie rmal der code:

oUF_Atrophia.settings = {}
local s = oUF_Atrophia.settings

-- Basic frame settings
s.frames = {
["default"] = {
["width"] = 100,
["height"] = 40,
["castbar"] = false
},
["player"] = {
["width"] = 205,
["castbar"] = false
},
["target"] = {
["width"] = 205,
["castbar"] = false
},
["focus"] = {
["castbar"] = false
},
["party"] = {
["width"] = 100,
["spacing"] = 5
},
["raid"] = {
["width"] = 50,
["height"] = 50,
["spacing"] = 0
},
}

-- Aura settings
s.aura = {}
s.aura.sorting = {
["reverse"] = false,
}
s.aura.default = {}
s.aura.default.buff = {
["embed"] = "true",
["cooldownSpiral"] = false,
["castable"] = false,
["filter"] = "HELPFUL",
["size"] = 14,
["spacing"] = 0,
["num"] = 4,
["growth-x"] = "LEFT",
["growth-y"] = "UP",
["initialAnchor"] = "BOTTOMRIGHT",
}
s.aura.default.debuff = {
["embed"] = "true",
["cooldownSpiral"] = false,
["castable"] = false,
["filter"] = "HARMFUL",
["size"] = 14,
["spacing"] = 0,
["num"] = 2,
["showDebuffType"] = true,
["growth-x"] = "RIGHT",
["growth-y"] = "UP",
["initialAnchor"] = "BOTTOMLEFT"
}

-- Aura (Player)
s.aura.player = {}
s.aura.player.buff = {
["embed"] = false,
["cooldownSpiral"] = true,
["size"] = 20,
["num"] = 40,
["sort"] = false,
["growth-x"] = "RIGHT",
["growth-y"] = "DOWN",
["initialAnchor"] = "TOPLEFT"
}
s.aura.player.debuff = {
["embed"] = false,
["cooldownSpiral"] = true,
["size"] = 20,
["num"] = 40,
["sort"] = false,
["growth-x"] = "RIGHT",
["growth-y"] = "UP",
["initialAnchor"] = "BOTTOMLEFT"
}

-- Aura (Target)
s.aura.target = s.aura.player

-- Aura (Raid)
s.aura.raid = {}
s.aura.raid.buff = {
["filter"] = 'HELPFUL RAID',
["num"] = 2
}
s.aura.raid.debuff = {
["num"] = 1,
}

-- Castbar
s.castbar = {
["enabled"] = true,
["icon"] = true,
["height"] = 20,
["spacing"] = 12,
["fontSize"] = 14
}

-- Backdrops
s.backdrops = {
["default"] = {
bgFile = "Interface\\AddOns\\oUF_Atrophia\\textures\\background", tile = true, tileSize = 16,
edgeFile = "Interface\\AddOns\\oUF_Atrophia\\textures\\border", edgeSize = 16,
insets = {left = 5, right = 5, top = 5, bottom = 5},
color = {1, 1, 1, 0},
borderColor = {10/255, 10/255, 10/255, 1},
},
["debug"] = {
bgFile = "Interface\\AddOns\\oUF_Atrophia\\textures\\background", tile = true, tileSize = 16,
edgeFile = "Interface\\AddOns\\oUF_Atrophia\\textures\\border", edgeSize = 16,
insets = {left = 0, right = 0, top = 0, bottom = 0},
},
}

-- Textures
s.textures = {
["aura"] = [[Interface\AddOns\oUF_Atrophia\textures\aura]],
["castbar"] = {
["foreground"] = [[Interface\AddOns\oUF_Atrophia\textures\castbar]],
["background"] = [[Interface\AddOns\oUF_Atrophia\textures\background]],
},
["health"] = {
["foreground"] = [[Interface\AddOns\oUF_Atrophia\textures\healthbar]],
["background"] = [[Interface\AddOns\oUF_Atrophia\textures\background]],
},
["power"] = {
["foreground"] = [[Interface\AddOns\oUF_Atrophia\textures\powerbar]],
["background"] = [[Interface\AddOns\oUF_Atrophia\textures\powerbarBackground]],
["spark"] = [[Interface\AddOns\oUF_Atrophia\textures\powerspark]]
},
["runes"] = {
["bar"] = [[Interface\AddOns\oUF_Atrophia\textures\runebar]]
},
}

-- Fonts
s.font = {
["name"] = "Interface\\AddOns\\oUF_Atrophia\\fonts\\Morpheus.ttf",
["tiny"] = 10,
["small"] = 12,
["medium"] = 14,
}

-- Colors
s.colors = {
["castbarDeficit"] = {0.5, 0.5, 0.5, 0.5},
["castbarSafeZone"] = {1, 0, 0, 0.75},
["health"] = {46/255, 44/255, 46/255, 1},
["healthDeficit"] = {0.5, 0.5, 0.5, 0.5},
["cooldown"] = {
["day"] = {170/255, 1, 170/255},
["hour"] = {170/255, 1, 170/255},
["minute"] = {170/255, 1, 170/255},
["second"] = {1, 1, 1},
["critical"] = {242/255, 40/255, 0},
},
["dead"] = {1, 1, 1},
["threat"] = {
{69/255, 88/255, 0, 1}, -- Minor
{170/255, 115/255, 0, 1}, -- Danger
{70/255, 0, 0, 1}, -- Has threat
},
}

-- Dispelling meta data
s.canDispel = {
["PRIEST"] = {["Magic"] = true, ["Disease"] = true},
["SHAMAN"] = {["Curse"] = true, ["Poison"] = true, ["Disease"] = true},
["PALADIN"] = {["Magic"] = true, ["Poison"] = true, ["Disease"] = true},
["MAGE"] = {["Curse"] = true},
["DRUID"] = {["Curse"] = true, ["Poison"] = true}
}

-- Hidden frames
s.hiddenFrames = {
["BuffFrame"] = false,
}

Hoffe ihr könnt mir helfen
biggrin.gif

Ich zähl auf euch!
grüße
 
Dr.Disconnect: ESC -> Interface -> Aktionsleisten -> Haken setzen: Untere linke Leiste, untere rechte Leiste, rechte Leiste, rechte Leiste 2
-->2 Bars rechts, 3 reihen mittig.

ArowN: Siehe Anhang. In den Ordner oUF_Atrophia entpacken und die vorhandene Datei ersetzen. Sollte klappen.

-edit-
Und lieber die Fehlermeldungen anstellen, dann hätteste gewusst, dass etwas im Busch ist und Fehler ausgeworfen werden, was die Fehlersuche verkürzt hätte
tongue.gif
 
Zuletzt bearbeitet von einem Moderator:
oh man, da hätt ich auch von selbst drauf kommen können
wink.gif

danke dir
 
ich bräuchte ma nen link zu nem addon so wie bbar. möchte mir angucken wie cih stats und so aufn screen bekomme
biggrin.gif
 
Was machtn bBar? Wenns um Stats geht guck doch mal LynStats an
wink.gif
 
kann mir jemand sagen wie man den fokus bei x-perl löschen kann ? bin zu krieger dafür
tongue.gif
 
Zuletzt bearbeitet:
Zurück