tooltips for output exact values (mindblown)
This commit is contained in:
parent
917eb8d1c9
commit
ece5f8d724
2 changed files with 8 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue