mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-29 12:46:37 +01:00
feat(ui): names and texts of the data shown with their letters
MaSzyna-EU07/maszyna#94. What the panels took the marks off, they show as written, in utf-8: - timetable panel: the relation, the train, the station rows (the column cut and filled by characters, a letter being more than one byte now) - transcripts of the sounds and the assignment of a trainset, which lost their polish letters when read - debug panel (event of the current signal, scan table) and the editor panels (names of nodes, layers, events, tracks and include files), which went through Bezogonkow() Bezogonkow() and win1250_to_ascii() are left where the ascii form is what is wanted: file names, the python dictionary, the multiplayer packets, the search key of the editor's station list.
This commit is contained in:
@@ -250,8 +250,8 @@ state_serializer::deserialize_assignment( cParser &Input, scene::scratch_data &S
|
||||
while( false == token.empty()
|
||||
&& token != "endassignment" ) {
|
||||
// assignment is expected to come as string pairs: language id and the actual assignment enclosed in quotes to form a single token
|
||||
auto assignment{ Input.getToken<std::string>() };
|
||||
win1250_to_ascii( assignment );
|
||||
// the assignment is only shown to the player, so it's kept with its letters, in utf-8 as the user interface takes it
|
||||
auto const assignment{ data_text_to_utf8( Input.getToken<std::string>() ) };
|
||||
Scratchpad.trainset.assignment.emplace( token, assignment );
|
||||
token = Input.getToken<std::string>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user