ToboboT
|
  |
| Joined: 25 Jun 2011 |
| Total Posts: 2385 |
|
|
| 17 Aug 2013 10:30 AM |
If you were wondering that cruddy box guy was the aliens guy, ya frawb
Ok so I have just started to move onto plugins, and so far I have done pretty well but for some reason I need to get whenever the mouse is clicked I need to know when it clicked,where it clicked, and how (Hopefully button1down)
So here is mine:
p = PluginManager():CreatePlugin() t = p:CreateToolbar("TEST") m = p:GetMouse() button = t:CreateButton("QuickClick","TEST","new_icon.PNG") print("Hilly Plugin Working") print("This is a plugin made by, ToboboT")
--- ---- --FUNCTIONS ---- --- function mclick() print("Oh yeah!") end
function click()
--PROBLEM LINES p:Activate() --PROBLEM LINES m.Button1Down:connect(mclick) end
button.Click:connect(click)
|
|
|
| Report Abuse |
|
|
ToboboT
|
  |
| Joined: 25 Jun 2011 |
| Total Posts: 2385 |
|
| |
|
ToboboT
|
  |
| Joined: 25 Jun 2011 |
| Total Posts: 2385 |
|
| |
|
|
| 17 Aug 2013 11:30 AM |
MouseButton1Down? (Button1Down might be valid, I'm just tired...)
*Tell me about the rabbits, George* |
|
|
| Report Abuse |
|
|
ToboboT
|
  |
| Joined: 25 Jun 2011 |
| Total Posts: 2385 |
|
|
| 17 Aug 2013 11:33 AM |
| Not if I already set the mouse, it is something to do with the p:Activate() I just can't put my finger on it. BTW I can't use the mouse until the plugin is activated, that is all I know. |
|
|
| Report Abuse |
|
|
ToboboT
|
  |
| Joined: 25 Jun 2011 |
| Total Posts: 2385 |
|
| |
|
Desperian
|
  |
| Joined: 07 Feb 2012 |
| Total Posts: 3371 |
|
| |
|
ToboboT
|
  |
| Joined: 25 Jun 2011 |
| Total Posts: 2385 |
|
| |
|
ToboboT
|
  |
| Joined: 25 Jun 2011 |
| Total Posts: 2385 |
|
| |
|