From c37dc7112b276940e201a532cc5d2a594c9debe6 Mon Sep 17 00:00:00 2001 From: Cyberarm Date: Tue, 10 Dec 2024 11:26:26 -0600 Subject: [PATCH] Fixed crash when commiting variable name update, fixed crashed from wip editor --- lib/pages/editor.rb | 2 +- lib/states/editor.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pages/editor.rb b/lib/pages/editor.rb index 0c7d191..7af516b 100644 --- a/lib/pages/editor.rb +++ b/lib/pages/editor.rb @@ -458,7 +458,7 @@ module TAC type = find_element_by_tag(variable_container, "type") value = find_element_by_tag(variable_container, "value") - label.value = name + para.value = name type.value = "Type: #{variable.type}" value.value = "Value: #{variable.value}" diff --git a/lib/states/editor.rb b/lib/states/editor.rb index 2badd1f..17d1d21 100644 --- a/lib/states/editor.rb +++ b/lib/states/editor.rb @@ -62,7 +62,7 @@ class Editor < CyberarmEngine::GuiState end button get_image("#{TAC::MEDIA_PATH}/icons/menuList.png"), margin: 4, tip: "Editor", image_width: 1.0 do - page(TAC::Pages::EditorV3) + page(TAC::Pages::Editor) end @tacnet_button = button get_image("#{TAC::MEDIA_PATH}/icons/signal3.png"), margin: 4, tip: "TACNET", image_width: 1.0 do