16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 11:39:19 +02:00

basic text localization system

This commit is contained in:
tmj-fstate
2018-09-02 16:09:05 +02:00
parent 955e8915a5
commit 6d16d52356
11 changed files with 555 additions and 318 deletions

View File

@@ -22,6 +22,10 @@ public:
void update() override;
bool is_expanded { false };
private:
// members
std::array<char, 256> m_buffer;
};
class timetable_panel : public ui_panel {
@@ -33,6 +37,10 @@ public:
void update() override;
bool is_expanded{ false };
private:
// members
std::array<char, 256> m_buffer;
};
class debug_panel : public ui_panel {
@@ -64,9 +72,13 @@ private:
void update_section_eventqueue( std::vector<text_line> &Output );
void update_section_camera( std::vector<text_line> &Output );
void update_section_renderer( std::vector<text_line> &Output );
// section update helpers
std::string update_vehicle_coupler( int const Side );
std::string update_vehicle_brake() const;
// renders provided lines, under specified collapsing header
void render_section( std::string const &Header, std::vector<text_line> const &Lines );
// members
std::array<char, 1024> m_buffer;
input_data m_input;
std::vector<text_line>
m_vehiclelines,