Instead of using an OnUpdate, you could try hooking CreateFrame(), i.e.
do
local uframe
hooksecurefunc("CreateFrame", function(_, _, parent)
if parent == Minimap then
if not uframe then
uframe = CreateFrame("Frame")
uframe:SetScript("OnUpdate", function(self)
--hide frame children of Minimap
self:Hide()
end)
end
uframe:Show()
end
end)
end
While on the subject; in Adapt's code it says that circular masks cannot be applied to 3D models. I think this comment is quite old, but is it still true?
I'm pretty sure that it's still impossible to apply a mask to 3D models.
So apparently SetVertexColor only adjusts the original color values of the texture rather than actually set them.
I wanted to make the playerportrait texture black&white, is this even possible?
You might be able to do it using :SetBlendMode() although I'm not certain.
Also if you un-commented out your code, D("Test over.") will never run, as you will return out of the function before D("Test over.") would ever be called.
So, what's the best way to set up some really basic raid frames?
and from oUFs description
oUF is a unit frame framework. It attempts to simplify the process of writing unit frames for WoW by doing all the trivial and painfully boring parts for you. So you can focus more on experimenting with the look of the frames.
I'm pretty sure oUF will help simplify or assist in creating raid frames.
what is your point in helping me solving my programming problems?
Quickly looked over your code and you have some more pressing issues at hand, i.e.
--- loops until a given time in seconds has passed
-- @param seconds - Integer Amount of seconds to wait
function GuildAdmin:WaitForSec(seconds)
local timer = GetTime()+seconds
while GetTime() <= timer
do
local i = 1
end
end
Use OnUpdate/Animation/Ace-Timer stuff instead, your method will lock WoW for x seconds (unless your using coroutines iirc).
finally Spam = Bad, and imo this "feature" should be removed in favour of the better built in opt in "Guild recruitment channel".
local EnumerateFrames = EnumerateFrames
local lastframe -- the last frame we met.
local otype
local function DarkenUnitTex(f)
local f = EnumerateFrames(f)
while f do
otype = f:GetObjectType()
if otype ~= "Button" then
if otype == "Texture" and f:GetTexture() == [[Interface\TargetingFrame\UI-TargetingFrame]] then
f:SetVertexColor(0.6, 0.6, 0.6)
end
lastframe = f
end
f = EnumerateFrames(f)
end
end
local function DarkenNewUnitTex()
DarkenUnitTex(lastframe)
end
hooksecurefunc("CreateFrame", DarkenNewUnitTex)
DarkenNewUnitTex()
Which will darken all Interface\TargetingFrame\UI-TargetingFrame textures.
0
0
WoW doesn't give addons access to os because they don't want people writing stuff to a file.
http://www.lua.org/demo.html
http://luaforwindows.luaforge.net/
http://www.lua.org/download.html
0
good?
0
0
0
0
I'm pretty sure that it's still impossible to apply a mask to 3D models.
0
You might be able to do it using :SetBlendMode() although I'm not certain.
edit: nvm just use :SetDesaturated(1)
0
0
Also if you un-commented out your code, D("Test over.") will never run, as you will return out of the function before D("Test over.") would ever be called.
0
0
Not at all, the original question was
and from oUFs description
I'm pretty sure oUF will help simplify or assist in creating raid frames.
0
0
Quickly looked over your code and you have some more pressing issues at hand, i.e.
Use OnUpdate/Animation/Ace-Timer stuff instead, your method will lock WoW for x seconds (unless your using coroutines iirc).
finally Spam = Bad, and imo this "feature" should be removed in favour of the better built in opt in "Guild recruitment channel".
0
Which will darken all Interface\TargetingFrame\UI-TargetingFrame textures.