|
| 14 Aug 2011 02:26 PM |
plug1n = PluginManager:CreatePlugin() plug2n = plug1n:CreateToolbar() plug3n = plug2n:CreateButton("Button","IDK","button.jpg") plug3n.Click:connect(function() print("Clicked") end) |
|
|
| Report Abuse |
|
|
Fl0x
|
  |
| Joined: 06 Aug 2010 |
| Total Posts: 5169 |
|
|
| 14 Aug 2011 02:27 PM |
| I ate the ability for it to work. |
|
|
| Report Abuse |
|
|
|
| 14 Aug 2011 02:27 PM |
plug1n = PluginManager:CreatePlugin() plug2n = plug1n:CreateToolbar() plug3n = plug2n:CreateButton("Button","IDK","button.jpg") plug3n.Click:connect(function( print("Clicked") end) |
|
|
| Report Abuse |
|
|
|
| 14 Aug 2011 02:28 PM |
| I don't even see the button... do I have to resize my image to 15x15 or something..? |
|
|
| Report Abuse |
|
|
|
| 14 Aug 2011 02:28 PM |
ohhhh wait nvm
plug1n = PluginManager():CreatePlugin() plug2n = plug1n:CreateToolbar() plug3n = plug2n:CreateButton("Button","IDK","button.jpg") plug3n.Click:connect(function() print("Clicked") end)
try that |
|
|
| Report Abuse |
|
|
| |
|
|
| 14 Aug 2011 02:48 PM |
Okay I resized the image, and saved it as myplugin.lua as All Files(*.*)
It still won't work, nothing in the output.
plug1n = PluginManager:CreatePlugin() print("..") plug2n = plug1n:CreateToolbar("toolbar") print("...") plug3n = plug2n:CreateButton("Button","IDK","buttonpic.png") print("....") plug3n.Click:connect(function() print("Clicked") end) |
|
|
| Report Abuse |
|
|
|
| 14 Aug 2011 02:49 PM |
plug1n = PluginManager():CreatePlugin() plug2n = plug1n:CreateToolbar() plug3n = plug2n:CreateButton("Button","IDK","button.jpg") plug3n.Click:connect(function() print("Clicked") end)
|
|
|
| Report Abuse |
|
|