1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 21:13:05 +01:00

Move track design list window to UI module

This commit is contained in:
Marijn van der Werf
2017-10-21 16:37:30 +02:00
parent 61255e25a7
commit ee6c3cfc56
7 changed files with 42 additions and 31 deletions

View File

@@ -1659,9 +1659,10 @@ static void window_editor_object_selection_manage_tracks()
rct_ride_entry* ride_entry = get_ride_entry(entry_index);
uint8 ride_type = ride_entry_get_first_non_null_ride_type(ride_entry);
ride_list_item item = { ride_type, (uint8) entry_index };
// track_load_list(item);
window_track_list_open(item);
auto intent = Intent(WC_TRACK_DESIGN_LIST);
intent.putExtra(INTENT_EXTRA_RIDE_TYPE, ride_type);
intent.putExtra(INTENT_EXTRA_RIDE_ENTRY_INDEX, entry_index);
context_open_intent(&intent);
}
/**