Removed script select from the robotlist and added current script name to display.
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
using System.Collections.Generic;
|
||||
using Godot;
|
||||
|
||||
public partial class RobotDisplay : PanelContainer
|
||||
{
|
||||
[Export] public RichTextLabel listItem;
|
||||
[Export] public RichTextLabel currentScript;
|
||||
[Signal]
|
||||
public delegate void OnRobotJumpToEventHandler(Robot robot);
|
||||
public Robot robot;
|
||||
@@ -13,7 +15,10 @@ public partial class RobotDisplay : PanelContainer
|
||||
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
|
||||
if (robot.currentProgram != currentScript.Text)
|
||||
{
|
||||
currentScript.Text = robot.currentProgram;
|
||||
}
|
||||
}
|
||||
|
||||
public void OnJumpToClicked()
|
||||
|
||||
Reference in New Issue
Block a user