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

@@ -186,7 +186,7 @@ itemproperties_panel::render() {
if( size_min.x > 0 ) {
ImGui::SetNextWindowSizeConstraints( ImVec2( size_min.x, size_min.y ), ImVec2( size_max.x, size_max.y ) );
}
if( true == ImGui::Begin( name.c_str(), nullptr, flags ) ) {
if( true == ImGui::Begin( identifier.c_str(), nullptr, flags ) ) {
// header section
for( auto const &line : text_lines ) {
ImGui::TextColored( ImVec4( line.color.r, line.color.g, line.color.b, line.color.a ), line.data.c_str() );