X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=gui.pl;h=0ea57b38ef24417d6d01fde9349631be306f16ea;hb=9aec101d497a8b3549b7150b0371e18c4c843f6a;hp=8a00f244e431475dde98e9fe407c90da46ee1b4f;hpb=dda2866e78b9648e501050bfeee2aed36958aa10;p=slotcarman.git diff --git a/gui.pl b/gui.pl index 8a00f24..0ea57b3 100755 --- a/gui.pl +++ b/gui.pl @@ -25,6 +25,28 @@ if (!$no_reader) { Glib::IO->add_watch(fileno($reader->fh), 'in', \&scx_read, $reader); } +$track->car(0)->set_model('F1 Ferrari'); +$track->car(1)->set_model('F1 McLaren'); +$track->car(2)->set_model('F1 Williams'); +$track->car(3)->set_model('Citroen Xsara'); +$track->car(4)->set_model('Citroen C4'); +$track->car(5)->set_model('Ford Focus'); + +$track->car(0)->set_lap(13); +$track->car(1)->set_lap(11); +$track->car(2)->set_lap(10); +$track->car(3)->set_lap(undef); +$track->car(4)->set_lap(undef); +$track->car(5)->set_lap(undef); + +$track->car(0)->set_laptime(9.12322); +$track->car(1)->set_laptime(15.313); +$track->car(2)->set_laptime(8.193); + +$track->car(0)->set_driver('Ivi'); +$track->car(1)->set_driver('Filípek'); +$track->car(2)->set_driver('Táta'); + $gui->show; Gtk2->main();