Is it possible to make this work with Alt Left mouse down instead of just the mouse button? I've tried different things but they don't seem to work. Thankyou in advance :D
Interestingly, copy/pasting using a WYSIWYG editor has the undesired effect of colorizing everything. Yay.
Yeah, I've noticed recently that more and more applications are assuming you want WYSIWYG copy-and-paste. It's very annoying having to paste stuff into Notepad to get it to be plain text, then copy and paste it again somewhere else. :mad:
Is it possible to make this work with Alt Left mouse down instead of just the mouse button? I've tried different things but they don't seem to work. Thankyou in advance :D
local frame = RuneButtonIndividual1
frame:SetMovable(true)
frame:EnableMouse(true)
frame:SetScript("OnMouseDown",function(f, button)
if IsAltKeyDown() and button == "LeftButton" then
f:StartMoving()
f.isMoving = true
end
end)
frame:SetScript("OnMouseUp",function(f)
f:StopMovingOrSizing()
f.isMoving = false
end)
[/php]
& i optimized your code a bit :D
Using "=" assigns the value. The "==" checks for equality.
Interestingly, copy/pasting using a WYSIWYG editor has the undesired effect of colorizing everything. Yay.
Edit: works perfectly :D Now I can stop dragging my runes all over the sam hell :D
Yeah, I've noticed recently that more and more applications are assuming you want WYSIWYG copy-and-paste. It's very annoying having to paste stuff into Notepad to get it to be plain text, then copy and paste it again somewhere else. :mad:
give me a [lua] tag then that colorizes things :P i don't care to go to yet another site, gist, and then cross link it back here...
[gist]31393[/gist]