I decided to continue an abandoned game organizer plugin project. It basically will just let you organize your games.
The problem is, I can’t seem to put a pre-made GUI inside of the widget. Here is the entire code:
local HttpService = game:GetService("HttpService")
local Toolbar = plugin:CreateToolbar("Game Organizer")
local Button = Toolbar:CreateButton("View games", "View my games", "")
local Opened = false
local WidgetInfo = DockWidgetPluginGuiInfo.new(
Enum.InitialDockState.Left,
false, -- Widget will be initially enabled
false, -- Don't override the previous enabled state
200, -- Default width of the floating window
300, -- Default height of the floating window
150, -- Minimum width of the floating window (optional)
150 -- Minimum height of the floating window (optional)
)
local StudioUserId = game:GetService("StudioService"):GetUserId()
local Widget = plugin:CreateDockWidgetPluginGui("", WidgetInfo)
Widget.Title = "Game Organizer"
print("Widget: ", Widget)
local gameInfo = HttpService:JSONDecode(HttpService:GetAsync("http://rprxy.deta.dev/games/v2/users/1259508448/games?limit=50"))
print("game info: ", gameInfo)
local orgGui = script.Parent.OrgGui:Clone()
orgGui.Parent = Widget
--[[for i, experience in pairs(gameInfo.data) do
local gameIcon = script.Parent.Template:Clone()
gameIcon.Parent = orgGui.Main.Games
gameIcon.GameName.Text = experience.name
gameIcon.Image = "https://assetgame.roblox.com/Game/Tools/ThumbnailAsset.ashx?aid="..experience.id.."&fmt=png&wd=420&ht=420"
end]]
Button.Click:Connect(function()
if Opened then
Widget.Enabled = false
Opened = false
else
print("User ID: "..StudioUserId)
Widget.Enabled = true
Opened = true
end
end)
Here is what the plugin folder I am saving locally looks like:
Please help! Thanks!