News:

Simutrans Wiki Manual
The official on-line manual for Simutrans. Read and contribute.

r2403- Display dialogue: scroolspeed and traffic density are reverse

Started by z9999, April 04, 2009, 10:08:14 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

z9999

gui/colors.cc:81-92
Quote
   // scrollspeed
   scrollspeed.set_pos( koord(RIGHT_WIDTH-10-40,SCROLL_SPEED) );
   scrollspeed.set_groesse( koord( 40, BUTTON_HEIGHT-1 ) );
   scrollspeed.set_value( welt->get_einstellungen()->get_verkehr_level() );
   scrollspeed.set_limits( 1, 9 );
   scrollspeed.add_listener(this);
   add_komponente(&scrollspeed);

   // traffic density
   traffic_density.set_pos( koord(RIGHT_WIDTH-10-50,DENS_TRAFFIC) );
   traffic_density.set_groesse( koord( 50, BUTTON_HEIGHT-1 ) );
   traffic_density.set_value( abs(umgebung_t::scroll_multi) );

prissi

THank you, need to remove also the remaining 6 buttons and add toggling of the vehicle messages ...