self.myplugin was changed.
writeline i placed in a few places. before, in and after IF statement (nothing) writeline placed outside this function ( i got spammed ) This function is defined in the update part of the LUA, which gets called alot. SetWantsKeyEvents havnt been used |
Quote:
|
Quote:
so in the case of my original example, you would need to precede it with the following line for it to work: Code:
self.SetWantsKeyEvents(true); |
K, thanks. Ill give that a go then :)
|
Ok, i got it to work and tweaked it to do everything i need it to for Mouse Cursor Highlighter Advanced.
Decided to post my part of the code for others to get an idea of what to add/do..
Code:
self:SetWantsKeyEvents(true); |
Quote:
Thanks for clueing me in, Garan! Your plugin is insanely awesome!! |
In case it helps, I'm using the following in my plugins, so I can manage my windows generically for F12 and Escape (the actual version I use also handles CTRL+\ for my drag bars, but I stripped that here):
Code:
import "Turbine.UI"; Note: I use weak references to 'managed' windows so as to not prevent the garbage collector from getting rid of unused windows. |
All times are GMT -5. The time now is 10:50 AM. |
vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI