1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-03-17 20:58:13 +02:00

fix selecting runs

This commit is contained in:
danielmartin0 2024-09-15 21:59:25 +01:00
parent a31c1c5a10
commit e7fa32ab2f
2 changed files with 3 additions and 2 deletions

View File

@ -403,7 +403,7 @@ highscore_heading_version=Version
highscore_heading_difficulty=Difficulty
highscore_heading_peak_players=PeakPlayers
second_element=__2__
run_condition_private=, private
run_condition_captain_protected=, cap'n-protected
run_condition_blueprints_disabled=, BPs disabled

View File

@ -558,7 +558,7 @@ function Public.full_update(player)
count = #mem.crewplayerindices
end
wrappedmemories[#wrappedmemories + 1] = { '',
wrappedmemories[#wrappedmemories + 1] = { 'pirates.second_element', mem.id, { '',
mem.name .. " (" .. count .. (count == 1 and ' player' or ' players') .. ") — ",
'[item=', CoreData.difficulty_options[mem.difficulty_option].icon, '], ',
-- Utils.spritepath_to_richtext(CoreData.capacity_options[mem.capacity_option].icon) .. ", ",
@ -567,6 +567,7 @@ function Public.full_update(player)
mem.run_is_private and { 'pirates.run_condition_private' } or '',
mem.run_is_protected and { 'pirates.run_condition_captain_protected' } or '',
mem.run_has_blueprints_disabled and { 'pirates.run_condition_blueprints_disabled' } or ''
},
}
end
GuiCommon.update_listbox(flow.ongoing_runs.body.ongoing_runs_listbox, wrappedmemories)