Demo: port subplot, legend, drag tool, querying, annotation, tag and DnD demos
This commit is contained in:
1 parent
e01ff90a1e
commit
dc6cdeb67e
2 files changed
+638
-4
No files matched your search
+12
-1
@@ -32,6 +32,13 @@ ImPlot.BeginPlot = function(title, ...)
|
||||
return r
|
||||
end
|
||||
|
||||
local BeginSubplots, subplotted = ImPlot.BeginSubplots, {}
|
||||
ImPlot.BeginSubplots = function(title, ...)
|
||||
local r = BeginSubplots(title, ...)
|
||||
if r then subplotted[title] = true end
|
||||
return r
|
||||
end
|
||||
|
||||
local frame, done = 0, false
|
||||
game:GetService("RunService").Stepped:Connect(function()
|
||||
if done then return end
|
||||
@@ -56,9 +63,13 @@ game:GetService("RunService").Stepped:Connect(function()
|
||||
"##MarkerStyles", "##NaNValues", "Colorful Lines", "Colorful Shaded Plots", "Colorful Scatter", "Colorful Bubbles",
|
||||
"Colorful Stairstep Plot", "Colorful Bar Plot", "Colorful Stem Plots", "Colorful Infinite Lines", "Log Plot",
|
||||
"SymLog Plot", "##Time", "Sqrt", "Multi-Axis Plot", "Plot A", "Plot B", "##AxisConstraints", "##EqualAxes",
|
||||
"##DataFitting" } do
|
||||
"##DataFitting", "##Legend", "##Bezier", "##lines", "##Main", "##rect", "##Centroid", "##Annotations",
|
||||
"##Tags", "##DND1", "##DND2" } do
|
||||
assert(plotted[p], "plot never began: " .. p)
|
||||
end
|
||||
for _, p in { "My Subplots", "##ItemSharing", "##AxisLinking" } do
|
||||
assert(subplotted[p], "subplots never began: " .. p)
|
||||
end
|
||||
ImPlot.DestroyContext()
|
||||
print("OK")
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user