How to make a Printscreen on level Up
Hi,
I want to keep a diary of my WoW run and thought it would be funny to have a printscreen everytime I level up. I try to make an (very simple) addon for this but the Screenshot is giving me some headache. Can anyone tell me what I have done wrong or point me in the right direction? When I use Code:
local Congrats_EventFrame = CreateFrame("Frame") So I thought about adding the printscreen function like this: Code:
local Congrats_EventFrame = CreateFrame("Frame") So if someone could point me in the right direction that would be great :) |
This...
Lua Code:
...does nothing. It declares a local variable named "Screenshot" within that function, that's it. You also can only do one SetScript of each kind for each frame object. The second time you declare the "OnEvent" will replace the first one. You're also missing a quote right before Congratulations, I'm surprised you didn't get an error for that. This will do what you want: Lua Code:
|
All times are GMT -6. The time now is 03:19 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI