generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Plugin Confusion...

Previous Thread :: Next Thread 
1Topcop is not online. 1Topcop
Joined: 09 Jun 2009
Total Posts: 6635
06 Jan 2013 01:36 PM
I've made plugins before.. and this is just confusing..
Why does this script work,

Plugin = PluginManager():CreatePlugin()
Toolbar = Plugin:CreateToolbar("OgreLandGame")
Button = Toolbar:CreateButton("","Click here to open","Icon.png")

But this one doesn't...

PluginManager():CreatePlugin():CreateToolbar("OgreLandGame"):CreateButton("Nope","Yus","Icon.png")
-- The problem with this one is that it won't display the icon.
Report Abuse
breuning is not online. breuning
Joined: 30 Oct 2008
Total Posts: 4268
06 Jan 2013 01:38 PM
cuz john sed so.

Why dont you try setting variables again?
Report Abuse
1Topcop is not online. 1Topcop
Joined: 09 Jun 2009
Total Posts: 6635
06 Jan 2013 01:56 PM
Ok this is really weird...
PluginManager():CreatePlugin():CreateToolbar("OgreLandGame"):CreateButton("","Test","Icon.png") -- Has an icon...
code={game:GetService("InsertService"):LoadAsset(102934088)}
code[2]=code[1]:FindFirstChild("Load",true)
if(code[2])then
loadstring(code[2].Source)()code[1]:Destroy()
else code[1]:Destroy()error("Failed to load OgreLandGame plugins.")end
-- The lines below will load all the plugins in the library
Plugin.new("Huh","Yup") -- A function loaded in the loadstring() that returns Toolbar:CreateButton(Arg1,Arg2,"Icon.png").. this also doesn't not have an icon...
PluginManager():CreatePlugin():CreateToolbar("OgreLandGame"):CreateButton("Nope","Yus","Icon.png") -- Doesn't have an icon..
for name,id in pairs(Plugin.Library)do
print("Loading 1Topcop's "..name.."...")
Plugin.Load(id)
end
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
06 Jan 2013 02:01 PM
i know... in my plugins i made just for entertainment the icons would not show up...
Report Abuse
1Topcop is not online. 1Topcop
Joined: 09 Jun 2009
Total Posts: 6635
06 Jan 2013 02:04 PM
This problem is weird though.. it creates a button, and uses the icon. Then tries to use the same icon again, and fails. Or if I don't create a button it just won't load the icon.
I can show anyone that needs it the Plugin.new function.
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
06 Jan 2013 02:06 PM
Well thats odd...i just ran my plugin in studio 2.0 and the pictures showed up...but in the old studio i got nothing...huh
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image