UItraEX
(UltraEX)
March 27, 2022, 5:21pm
#1
Hello!
I have a issue regarding my plugin issue icon, i try to load in the image, yet its not working. I tried on a different image, and it works ok, but its not mine. Heres the code:
local toolbar = plugin:CreateToolbar("Plugin Name")
local pluginButton = toolbar:CreateButton(
"UI Tools",
"Open UI Tools",
"http://www.roblox.com/asset/?id=9212837555")
local info = DockWidgetPluginGuiInfo.new(
Enum.InitialDockState.Right,
false,
false,
200,
300,
150,
150
)
local widget = plugin:CreateDockWidgetPluginGui(
"TestPlugin",
info
)
widget.Title = "UITOOLSUI"
script.Parent.UITOOLSUI.Parent = widget
pluginButton.Click:Connect(function()
widget.Enabled = not widget.Enabled
end)
I do not know what to do, also here is the image in question:
Katrist
(Katrist)
March 27, 2022, 5:23pm
#2
Probably because the image link doesn’t exist:
UItraEX
(UltraEX)
March 27, 2022, 5:24pm
#3
Oh, i never saw this. How would i write out this image link correctly? Ive tried getting its exact link, yet it will not work.
Katrist
(Katrist)
March 27, 2022, 5:25pm
#4
Try this link:
https://www.roblox.com/library/9212837555/StarterUIPicture
UItraEX
(UltraEX)
March 27, 2022, 5:27pm
#5
Nope, same issue. I dont know whats happening.
Katrist
(Katrist)
March 27, 2022, 5:27pm
#6
I’ll just write the script for you here:
local toolbar = plugin:CreateToolbar("Plugin Name")
local pluginButton = toolbar:CreateButton(
"UI Tools",
"Open UI Tools",
"rbxassetid://9212837555")
local info = DockWidgetPluginGuiInfo.new(
Enum.InitialDockState.Right,
false,
false,
200,
300,
150,
150
)
local widget = plugin:CreateDockWidgetPluginGui(
"TestPlugin",
info
)
widget.Title = "UITOOLSUI"
script.Parent.UITOOLSUI.Parent = widget
pluginButton.Click:Connect(function()
widget.Enabled = not widget.Enabled
end)
UItraEX
(UltraEX)
March 27, 2022, 5:28pm
#7
Katrist:
local toolbar = plugin:CreateToolbar("Plugin Name")
local pluginButton = toolbar:CreateButton(
"UI Tools",
"Open UI Tools",
"rbxassetid://9212837555")
local info = DockWidgetPluginGuiInfo.new(
Enum.InitialDockState.Right,
false,
false,
200,
300,
150,
150
)
local widget = plugin:CreateDockWidgetPluginGui(
"TestPlugin",
info
)
widget.Title = "UITOOLSUI"
script.Parent.UITOOLSUI.Parent = widget
pluginButton.Click:Connect(function()
widget.Enabled = not widget.Enabled
end)
Still is not working…plus, ive tried doing the exact thing you have tried.
UItraEX
(UltraEX)
March 27, 2022, 5:29pm
#8
Could the issue be me saving it as a local plugin?
Katrist
(Katrist)
March 27, 2022, 5:33pm
#9
No, I don’t think so, sorry that I couldn’t help though.
UItraEX
(UltraEX)
March 27, 2022, 5:34pm
#10
Its all good, hopefully somebody else can help me out with this as ive been working on this for over an hour.
Mister33j
(qharntne)
March 27, 2022, 5:39pm
#11
i think if that when the image doesn’t exist anymore, it’ll refuse to load because studio can’t find the image file
UItraEX
(UltraEX)
March 27, 2022, 5:40pm
#12
The image is not deleted nor moderated, so i cant see the issue.
nakoyasha
(Haruka)
March 27, 2022, 6:02pm
#13
PluginToolbar:CreateButton() will only take ids that have the “Image” type, aka this (notice how the type is “Image”, rather than “Decal”)
You can get the ID by putting the ID inside of a decal and then copying the ID Studio has auto-converted for you.
1 Like
UItraEX
(UltraEX)
March 27, 2022, 6:20pm
#14
This worked absolutely perfect! Thanks so much!