Gemlocker
|
  |
 |
| Joined: 25 Jun 2010 |
| Total Posts: 42 |
|
| |
|
Studio Plugin Full API Posted: 04 Aug 2011 03:39 PM |
Full description from Cyrion:
PluginManager
PluginManager(): Returns the PluginManager
CreatePlugin(): Returns a new Plugin object Sample call: self = PluginManager():CreatePlugin()
-----------------------------------------------------------------------------
Plugin
Activate(): Activates the Plugin object you call it from. Activating makes the Mouse object returned by this plugin's GetMouse() function the active one. It makes the Mouse objects of every other plugin stop being updated, and sends a Deactivation event to the other plugins. Sample call: self:Activate()
Deactivation: This event is triggered whenever another Plugin object calls Activate() Sample call: self.Deactivation:connect(onDeactivation)
GetMouse(): Returns the Mouse object for the plugin. The mouse object is identical to the one used for in-game tools. You can find documentation for it at http://news.roblox.com/index.php/RBX.lua.Mouse_(Object) Sample call: self:GetMouse()
CreateToolbar(NAME): Returns a Toolbar object and visually makes a toolbar appear in Studio. Parameter 1: A string that is the name of the toolbar returned. If two different plugins use a toolbar with the same name, they actually get the same Toolbar object back and will be able to create buttons on the same toolbar. Sample call: toolbar = self:CreateToolbar("Test")
-----------------------------------------------------------------------------
Toolbar
CreateButton(NAME, TOOLTIP, ICON): Returns a Button object and visually makes a button appear on whatever toolbar you call it for. Parameter 1: A string that is the text that appears on the button. Leave blank if you do not want text. Parameter 2: A string that is the text that appears in the tooltip when you hover over the button with your mouse. Parameter 3: A string with the file name of a 16x16 interlaced PNG icon. The icon should be in the same folder as the .lua script file. Sample call: button = toolbar:CreateButton("Test", "This is a test plugin.", "testicon.png")
-----------------------------------------------------------------------------
Button
Click: This event is triggered when the button is clicked. Sample call: button.Click:connect(onClick)
SetActive(BOOLEAN): Sets the Button object to be active or inactive. The button representing an active Button object on the toolbar will be highlighted. Parameter 1: true/false, set whether the button is highlighted Sample calls: button:SetActive(true) button:SetActive(false)
-----------------------------------------------------------------------------
I updated the API with even more info and reformatted it a bit. Let me know if you have any questions.
-Cyrion |
|
|
| Post ReplyReport Abuse |
|
|
Re: Studio Plugin Full API Posted: 04 Aug 2011 03:50 PM |
| You know that we can use crash__() to crash Studio, right? |
|
|
| Post ReplyReport Abuse |
|
|
Re: Studio Plugin Full API Posted: 04 Aug 2011 03:54 PM |
| Post all the methods and events of the Button object, pl0x. |
|
|
| Post ReplyReport Abuse |
|
Cyrion
|
  |
| Joined: 14 May 2011 |
| Total Posts: 70 |
|
| |
|
Re: Studio Plugin Full API Posted: 04 Aug 2011 03:56 PM |
| Uh oh you are right, I forgot some things... Working on fixing it |
|
|
| Post ReplyReport Abuse |
|
|
Re: Studio Plugin Full API Posted: 04 Aug 2011 03:56 PM |
| Does the Button object have a SetVerb() function? |
|
|
| Post ReplyReport Abuse |
|
LordMercy
|
  |
| Joined: 26 Jul 2011 |
| Total Posts: 68 |
|
| |
|
Re: Studio Plugin Full API Posted: 04 Aug 2011 03:57 PM |
You should be able to use the plugin provided for the button's main clicked event...
That's all the button's really good for...
Anyway, just transfer control to GUIs and you should be able to make decent plugins. |
|
|
| Post ReplyReport Abuse |
|
|
Re: Studio Plugin Full API Posted: 04 Aug 2011 03:59 PM |
| Never mind my previous post. I realized that wouldn't work very well. |
|
|
| Post ReplyReport Abuse |
|
coplox
|
  |
| Joined: 07 Jun 2008 |
| Total Posts: 2566 |
|
| |
|
Re: Studio Plugin Full API Posted: 04 Aug 2011 04:01 PM |
| This isn't exactly the Full API. It doesn't mention the methods or events that are in each object. |
|
|
| Post ReplyReport Abuse |
|
coplox
|
  |
| Joined: 07 Jun 2008 |
| Total Posts: 2566 |
|
| |
|
Re: Studio Plugin Full API Posted: 04 Aug 2011 04:06 PM |
The admins can edit posts and we can't?
I am very disturbed. |
|
|
| Post ReplyReport Abuse |
|
|
Re: Studio Plugin Full API Posted: 04 Aug 2011 04:08 PM |
| I don't like indexing it in a single line in command bar. |
|
|
| Post ReplyReport Abuse |
|
Gemlocker
|
  |
 |
| Joined: 25 Jun 2010 |
| Total Posts: 42 |
|
| |
|
Re: Studio Plugin Full API Posted: 04 Aug 2011 04:44 PM |
| UPDATE: More detailed description |
|
|
| Post ReplyReport Abuse |
|
bombpaw
|
  |
| Joined: 15 Mar 2009 |
| Total Posts: 3446 |
|
| |
|
Re: Studio Plugin Full API Posted: 04 Aug 2011 04:59 PM |
1 thing:
This would look better on the WIKI
~*Pokes*~ |
|
|
| Post ReplyReport Abuse |
|
Cyrion
|
  |
| Joined: 14 May 2011 |
| Total Posts: 70 |
|
| |
|
Re: Studio Plugin Full API Posted: 04 Aug 2011 05:02 PM |
| We will add it there once we are able to finalize more of the API. We are still getting feedback right now from you guys so we may have to make some changes. |
|
|
| Post ReplyReport Abuse |
|
bombpaw
|
  |
| Joined: 15 Mar 2009 |
| Total Posts: 3446 |
|
| |
|
Re: Studio Plugin Full API Posted: 04 Aug 2011 05:04 PM |
Well, all I hope for is: http://www.roblox.com/Forum/ShowPost.aspx?PostID=52071168
~*Pokes*~ |
|
|
| Post ReplyReport Abuse |
|
jtefurd
|
  |
| Joined: 01 May 2010 |
| Total Posts: 520 |
|
| |
|
Re: Studio Plugin Full API Posted: 04 Aug 2011 06:01 PM |
| Do you have to be able to script to do this? if so make it for the majority of roblox. the non scripters :| |
|
|
| Post ReplyReport Abuse |
|
phoca
|
  |
| Joined: 14 Nov 2009 |
| Total Posts: 483 |
|
| |
|
Re: Studio Plugin Full API Posted: 04 Aug 2011 09:14 PM |
| i will create a plugin of Herobrine |
|
|
| Post ReplyReport Abuse |
|
drager980
|
  |
| Joined: 25 May 2009 |
| Total Posts: 2715 |
|
| |
| |
|
Re: Studio Plugin Full API Posted: 05 Aug 2011 07:33 AM |
| Why is he a administrater when he joined last year in june? |
|
|
| Post ReplyReport Abuse |
|
|
Re: Studio Plugin Full API Posted: 05 Aug 2011 07:53 AM |
| How do I detect key presses using a plugin? |
|
|
| Post ReplyReport Abuse |
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 24345 |
|
| |
|
Re: Studio Plugin Full API Posted: 05 Aug 2011 12:12 PM |
Plugin:GetMouse().KeyDown
or even GuiService |
|
|
| Post ReplyReport Abuse |
|
| |
|
Re: Studio Plugin Full API Posted: 05 Aug 2011 06:07 PM |
The plugins sound fantastic!
Is there a way to bind a key to a plugin? So a key press activates the plugin? |
|
|
| Post ReplyReport Abuse |
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 24345 |
|
| |
| |
Cyrion
|
  |
| Joined: 14 May 2011 |
| Total Posts: 70 |
|
| |
|
Re: Studio Plugin Full API Posted: 06 Aug 2011 01:43 PM |
You have to activate the plugin before it can listen to keypress events. This is so that different plugins don't all try to listen to mouse/keyboard events at the same time and do different things.
I would recommend using the toolbar button to activate the plugin, and then once it's on you are the only plugin that has mouse/keyboard events so you can do whatever you want. |
|
|
| Post ReplyReport Abuse |
|
phoca
|
  |
| Joined: 14 Nov 2009 |
| Total Posts: 483 |
|
| |
|
Re: Studio Plugin Full API Posted: 06 Aug 2011 04:52 PM |
| the forums need links to download plugins |
|
|
| Post ReplyReport Abuse |
|