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

fixes for sound transcripts, conversion of win1250cp to plain ascii, tga loader

This commit is contained in:
tmj-fstate
2017-02-15 00:37:12 +01:00
parent b0ed27ba91
commit cf48989f39
11 changed files with 148 additions and 24 deletions

View File

@@ -2611,6 +2611,7 @@ TWorld::Render_UI() {
}
// if ((Global::iTextMode!=VK_F3))
{ // stenogramy dźwięków (ukryć, gdy tabelka skanowania lub rozkład?)
/*
glColor3f( 1.0f, 1.0f, 0.0f ); //żółte
for( int i = 0; i < 5; ++i ) { // kilka linijek
if( Global::asTranscript[ i ].empty() )
@@ -2620,6 +2621,23 @@ TWorld::Render_UI() {
glPrint( Global::Bezogonkow( Global::asTranscript[ i ] ).c_str() );
}
}
*/
int i = 0;
for( auto const &transcript : Global::tranTexts.aLines ) {
if( Global::fTimeAngleDeg >= transcript.fShow ) {
cParser parser( transcript.asText );
while( true == parser.getTokens(1, false, "|") ) {
std::string transcriptline; parser >> transcriptline;
::glColor3f( 1.0f, 1.0f, 0.0f ); //żółte
::glRasterPos2f( -0.20f, -0.05f - 0.01f * i );
glPrint( transcriptline.c_str() );
++i;
}
}
}
}
}
// if (Global::iViewMode!=Global::iTextMode)