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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|