I've been working on a plugin in which I'm trying to implement a slider type control. Currently what I'm doing is using the plugin to replace a variable with an image. Then the plugin has an event that the user would assign to the click event of the image. The event causes the plugin looks at the properties of the button to determine the relative location of the mouse on the button. So if I click the button 3/4's of the way across it will return 75%, or 25% if I click a quarter of the way across. Simple right? And it works IF the event occurs on the xlobby server. If it is done from a thin client or the web client it doesn't. Why, because the plugin is using a windows function to determine where the mouse is currently located. So if called from a client, it looks to see where the mouse is on the server. Since the mouse on the server is more then likely not in the exact same location as that of the thin client, the relative location is incorrect.
How can I determine that the event was called by a client? If it was called by a client how can I determine the relative location on the client?
Of course if anyone has other thoughts on how something like this could be implemented I'm up for those ideas as well.
Thanks,
Aaron