[ report ]
     
Home   Search   Register  
ROBLOX Forum  > Game Creation and Development  > Game Test  > Studio Plugin Full API  
 
Display using:  
Previous Thread :: Next Thread 
 Author Thread: Studio Plugin Full API
Gemlocker is not online. Gemlocker
Forum Moderator
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
Piedude777 is not online. Piedude777
Joined: 01 Oct 2008
Total Posts: 10013
 
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
Piedude777 is not online. Piedude777
Joined: 01 Oct 2008
Total Posts: 10013
 
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 is not online. 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
Piedude777 is not online. Piedude777
Joined: 01 Oct 2008
Total Posts: 10013
 
Re: Studio Plugin Full API
Posted: 04 Aug 2011 03:56 PM
Does the Button object have a SetVerb() function?
Post ReplyReport Abuse
LordMercy is not online. 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
Piedude777 is not online. Piedude777
Joined: 01 Oct 2008
Total Posts: 10013
 
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 is online. 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 is online. 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
MARIOSTAR6464 is not online. MARIOSTAR6464
Joined: 21 Jul 2008
Total Posts: 13278
 
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 is not online. Gemlocker
Forum Moderator
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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. drager980
Joined: 25 May 2009
Total Posts: 2715
 
Re: Studio Plugin Full API
Posted: 05 Aug 2011 03:19 AM
Ah, nice work.
Post ReplyReport Abuse
kingofthehill1234 is not online. kingofthehill1234
Joined: 15 Mar 2010
Total Posts: 449
 
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
Piedude777 is not online. Piedude777
Joined: 01 Oct 2008
Total Posts: 10013
 
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 is not online. 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
Piedude777 is not online. Piedude777
Joined: 01 Oct 2008
Total Posts: 10013
 
Re: Studio Plugin Full API
Posted: 05 Aug 2011 02:51 PM
^

lol, im dum
Post ReplyReport Abuse
blueburden is not online. blueburden
Joined: 05 Aug 2010
Total Posts: 29
 
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 is not online. blocco
Joined: 14 Aug 2008
Total Posts: 24345
 
Re: Studio Plugin Full API
Posted: 06 Aug 2011 01:41 PM
GuiService::AddKey(string key)
Post ReplyReport Abuse
Cyrion is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 3Goto to page: [1], 2, 3 Next
 
ROBLOX Forum  > Game Creation and Development  > Game Test  > Studio Plugin Full API