aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororwell <orwell@bleipb.de>2025-06-23 23:30:17 +0200
committerorwell <orwell@bleipb.de>2025-06-23 23:30:17 +0200
commit8724d23395890611e6ce2a70efb76ecb6c7f03cd (patch)
tree537e8826fcf959f0f13f2d27fa22b7411f976d76
parente04728f0424d4e42943fc187f295eb62a73bc5ce (diff)
downloadadvtrains-8724d23395890611e6ce2a70efb76ecb6c7f03cd.tar.gz
advtrains-8724d23395890611e6ce2a70efb76ecb6c7f03cd.tar.bz2
advtrains-8724d23395890611e6ce2a70efb76ecb6c7f03cd.zip
Store line_state in train, fix button label in line editor
-rw-r--r--advtrains/init.lua2
-rw-r--r--advtrains_line_automation/line_editor.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/advtrains/init.lua b/advtrains/init.lua
index cd63104..86bd240 100644
--- a/advtrains/init.lua
+++ b/advtrains/init.lua
@@ -496,7 +496,7 @@ advtrains.avt_save = function(remove_players_from_wagons)
"text_outside", "text_inside", "line", "routingcode",
"il_sections", "speed_restriction", "speed_restrictions_t", "is_shunt",
"path_ori_cp", "autocouple", "atc_wait_autocouple", "ars_disable",
- "staticdata",
+ "staticdata", "line_status",
})
--then save it
tmp_trains[id]=v
diff --git a/advtrains_line_automation/line_editor.lua b/advtrains_line_automation/line_editor.lua
index fcba9dd..530eb6e 100644
--- a/advtrains_line_automation/line_editor.lua
+++ b/advtrains_line_automation/line_editor.lua
@@ -207,7 +207,7 @@ local function get_formspec(custom_state)
end
if has_rights_to_open_variant then
table.insert(formspec, "button[10,15;4.5,0.75;save;"..
- ifthenelse(custom_state.compiled_linevar == nil, S("Apply/Save").."]", S("Create/Save").."]"))
+ ifthenelse(custom_state.compiled_linevar == nil, S("Verify/Save").."]", S("Save changes").."]"))
end
table.insert(formspec, "button[15,15.25;4,0.5;reset;"..S("Reset changes").."]")
table.insert(formspec, "tooltip[line;"..