19 lines
593 B
Luau
19 lines
593 B
Luau
-- ImPlot demo window.
|
|
local RS = game:GetService("ReplicatedStorage")
|
|
local RunService = game:GetService("RunService")
|
|
local G = require(RS:WaitForChild("ImGui"))
|
|
local ImPlot = require(RS:WaitForChild("ImPlot"))(G)
|
|
require(RS:WaitForChild("ImPlotDemo"))(G, ImPlot)
|
|
local ImGui = G.ImGui
|
|
|
|
ImGui.CreateContext()
|
|
ImPlot.CreateContext()
|
|
G.ImGui_ImplRoblox.Init() -- defaults to LocalPlayer.PlayerGui
|
|
RunService.RenderStepped:Connect(function()
|
|
G.ImGui_ImplRoblox.NewFrame()
|
|
ImGui.NewFrame()
|
|
ImPlot.ShowDemoWindow()
|
|
ImGui.Render()
|
|
G.ImGui_ImplRoblox.RenderDrawData(ImGui.GetDrawData())
|
|
end)
|