t_demo: enable metrics overlays, custom ticks, about config info
This commit is contained in:
1 parent
d7bcf1241b
commit
257c2bbf03
1 file changed
+6
@@ -21,6 +21,12 @@ ImGui.TreeNode = function(label, ...)
|
|||||||
ImGui.SetNextItemOpen(true)
|
ImGui.SetNextItemOpen(true)
|
||||||
return TreeNode(label, ...)
|
return TreeNode(label, ...)
|
||||||
end
|
end
|
||||||
|
-- turn on every "Show ..." checkbox (metrics overlays, custom ticks/labels, about config info)
|
||||||
|
local Checkbox = ImGui.Checkbox
|
||||||
|
ImGui.Checkbox = function(label, v)
|
||||||
|
if string.sub(label, 1, 5) == "Show " or label == "Config/Build Information" then return false, true end
|
||||||
|
return Checkbox(label, v)
|
||||||
|
end
|
||||||
local tabs = { "Plots", "Axes", "Tools", "Custom", "Config", "Help" }
|
local tabs = { "Plots", "Axes", "Tools", "Custom", "Config", "Help" }
|
||||||
local style_tabs = { "Variables", "Colors", "Colormaps" }
|
local style_tabs = { "Variables", "Colors", "Colormaps" }
|
||||||
local phase, seen = 1, {}
|
local phase, seen = 1, {}
|
||||||
|
|||||||
Reference in new issue
Block a user