From ece5f8d724f92b8afef86d29d2cafe2bb1184e4f Mon Sep 17 00:00:00 2001 From: The 64th Gamer <69170079+The64thGamer@users.noreply.github.com> Date: Tue, 8 Apr 2025 04:45:37 -0600 Subject: [PATCH] tooltips for output exact values (mindblown) --- Scripts/GL_Node_Point.gd | 1 + Scripts/GL_Timeline.gd | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Scripts/GL_Node_Point.gd b/Scripts/GL_Node_Point.gd index c2df894..5d4b593 100644 --- a/Scripts/GL_Node_Point.gd +++ b/Scripts/GL_Node_Point.gd @@ -21,6 +21,7 @@ func _process(delta): var iter = 0 for child:Line2D in allLines: var output = mainNode.rows[valueName]["output"] + tooltip_text = str(output) match typeof(output): TYPE_FLOAT: child.default_color = Color(0.254902 * output, 0.411765 * output, 0.882353 * output, 1) diff --git a/Scripts/GL_Timeline.gd b/Scripts/GL_Timeline.gd index e41854b..f66b5c9 100644 --- a/Scripts/GL_Timeline.gd +++ b/Scripts/GL_Timeline.gd @@ -13,5 +13,11 @@ func _ready(): func _process(delta): super._process(delta) apply_pick_values() - #rows["Output"]["output"] = rows["Output"]["pickValue"] + if rows["Play"]["input"] == true: + if rows["Rewind"]["input"] == true: + rows["Time"]["output"] = max(float(rows["Time"]["output"] - delta),0) + else: + rows["Time"]["output"] += delta + if rows["Restart"]["input"] == true: + rows["Time"]["output"] = 0.0 _send_input("Time")