diff --git a/GameEngine/src/main/java/gameEngine/GameEditor.java b/GameEngine/src/main/java/gameEngine/GameEditor.java index 512ddcc..f18278a 100644 --- a/GameEngine/src/main/java/gameEngine/GameEditor.java +++ b/GameEngine/src/main/java/gameEngine/GameEditor.java @@ -32,6 +32,9 @@ private Button createMoveImageComponentViewButton; private Text createMoveImageComponentViewButtonText; + private Button createMoveStraightComponentViewButton; + private Text createMoveStraightComponentViewButtonText; + private Button createEntityViewButton; private Text createEntityViewButtonText; public InputField[][] inspectorInputFields; @@ -58,6 +61,9 @@ createMoveImageComponentViewButton = new Button(20, 73, 3.2f, 0.5f); createMoveImageComponentViewButtonText = new Text(20 +5.25f, 70.4f, "Add MoveImage", 24); + createMoveStraightComponentViewButton = new Button(20, 113, 3.2f, 0.5f); + createMoveStraightComponentViewButtonText = new Text(20 +5.25f, 113.4f, "Add MoveStraight", 24); + createEntityViewButton = new Button(240, 33, 3.2f, 0.5f); createEntityViewButtonText = new Text(240 +5.25f, 30.4f, "Add Entity", 24); @@ -165,13 +171,16 @@ createMoveImageComponentViewButton.clearListeners(); createMoveImageComponentViewButton.addListener(scene::addNewMoveImageComponent); + createMoveStraightComponentViewButton.clearListeners(); + createMoveStraightComponentViewButton.addListener(scene::addMoveStraightComponent); + createEntityViewButton.clearListeners(); createEntityViewButton.addListener(scene::addNewEntity); registerUpdatable(playButton, playButtonText, dtramButton, dtramButtonText, createMeshComponentViewButton, createMeshComponentViewButtonText, createMoveImageComponentViewButton, createMoveImageComponentViewButtonText, - createEntityViewButton, createEntityViewButtonText); + createEntityViewButton, createEntityViewButtonText, createMoveStraightComponentViewButton, createMoveStraightComponentViewButtonText); } public void setScene(Scene newScene) {