|
@@ -239,7 +239,7 @@ bool _o_rtME( void *p, void *obj, MausEreignis me )
|
|
if( _o_rt->zZeichnung( 1, i ) )
|
|
if( _o_rt->zZeichnung( 1, i ) )
|
|
( (KontrollKnopf*)_o_rt->zZeichnung( 1, i ) )->removeStyle( KontrollKnopf::Style::Hintergrund | KontrollKnopf::Style::SelectFarbe );
|
|
( (KontrollKnopf*)_o_rt->zZeichnung( 1, i ) )->removeStyle( KontrollKnopf::Style::Hintergrund | KontrollKnopf::Style::SelectFarbe );
|
|
}
|
|
}
|
|
- int zeile = (int)_o_rt->getMausZeile( me.my - _o_rt->getY() - _o_rt->getVertikalScrollPos() );
|
|
|
|
|
|
+ int zeile = (int)_o_rt->getMausZeile( me.my - _o_rt->getVertikalScrollPos() );
|
|
if( zeile <= 0 )
|
|
if( zeile <= 0 )
|
|
{
|
|
{
|
|
_o_rno->removeStyle( Knopf::Style::Erlaubt );
|
|
_o_rno->removeStyle( Knopf::Style::Erlaubt );
|
|
@@ -675,7 +675,7 @@ int KSGStart Framework::Start( Startparam p )
|
|
Fenster::Style::TitelHintergrund | Fenster::Style::BodyHintergrund | Fenster::Style::TitelHAlpha |
|
|
Fenster::Style::TitelHintergrund | Fenster::Style::BodyHintergrund | Fenster::Style::TitelHAlpha |
|
|
Fenster::Style::BodyHAlpha | Fenster::Style::Rahmen | Fenster::Style::ClosingKlickBuffer |
|
|
Fenster::Style::BodyHAlpha | Fenster::Style::Rahmen | Fenster::Style::ClosingKlickBuffer |
|
|
Fenster::Style::ClosingHintergrund | Fenster::Style::ClosingHAlpha | Fenster::Style::Beweglich | Fenster::Style::VScroll );
|
|
Fenster::Style::ClosingHintergrund | Fenster::Style::ClosingHAlpha | Fenster::Style::Beweglich | Fenster::Style::VScroll );
|
|
- _optionenF->setSize( 300, 300 );
|
|
|
|
|
|
+ _optionenF->setSize( 300, 330 );
|
|
_optionenF->setPosition( 100, 100 );
|
|
_optionenF->setPosition( 100, 100 );
|
|
_optionenF->setVSBMax( 300 );
|
|
_optionenF->setVSBMax( 300 );
|
|
_optionenF->zVScrollBar()->setKlickScroll( 10 );
|
|
_optionenF->zVScrollBar()->setKlickScroll( 10 );
|
|
@@ -791,9 +791,44 @@ int KSGStart Framework::Start( Startparam p )
|
|
_o_üle->addEintrag( "mb/s" );
|
|
_o_üle->addEintrag( "mb/s" );
|
|
_optionenF->addMember( _o_üle->getThis() );
|
|
_optionenF->addMember( _o_üle->getThis() );
|
|
|
|
|
|
|
|
+ bool exitPatcher = 0;
|
|
|
|
+
|
|
|
|
+ Knopf *o_repair = new Knopf();
|
|
|
|
+ o_repair->setStyle( Knopf::Style::Sichtbar | Knopf::Style::Erlaubt | Knopf::Style::Buffered | Knopf::Style::KlickBuffer | Knopf::Style::Rahmen );
|
|
|
|
+ o_repair->setPosition( 5, 254 );
|
|
|
|
+ o_repair->setSize( 100, 20 );
|
|
|
|
+ o_repair->setText( "Reparieren" );
|
|
|
|
+ o_repair->setSchriftZ( sNormal->getThis() );
|
|
|
|
+ o_repair->setMausEreignis( [ mainClient, &exitPatcher ]( void *p, void *o, MausEreignis me )
|
|
|
|
+ {
|
|
|
|
+ if( me.id == ME_RLinks )
|
|
|
|
+ {
|
|
|
|
+ _optionenF->removeStyle( Fenster::Style::Sichtbar );
|
|
|
|
+ exitPatcher = 1;
|
|
|
|
+ _patcher->warteAufPatch( INFINITE );
|
|
|
|
+ KSGTDatei dgs;
|
|
|
|
+ dgs.setPfad( "data/dg.ksgt" );
|
|
|
|
+ dgs.laden();
|
|
|
|
+ for( int i = 0; i < dgs.getZeilenAnzahl(); i++ )
|
|
|
|
+ {
|
|
|
|
+ if( dgs.zFeld( i, 1 )->getLength() )
|
|
|
|
+ DateiRemove( dgs.zFeld( i, 1 )->getText() );
|
|
|
|
+ }
|
|
|
|
+ DateiRemove( "data/dg.ksgt" );
|
|
|
|
+ DateiRemove( "data/update" );
|
|
|
|
+ DateiRemove( "data/versionen.ini" );
|
|
|
|
+ _patcher->release();
|
|
|
|
+ exitPatcher = 0;
|
|
|
|
+ _patcher = new Patcher( (FBalken *)_fortschritt->getThis(), (TextFeld *)_aktion->getThis(), (Knopf *)_play->getThis(), &exitPatcher, mainClient->createPatchServerClient() );
|
|
|
|
+ _patcher->startPatch();
|
|
|
|
+ }
|
|
|
|
+ return 1;
|
|
|
|
+ } );
|
|
|
|
+ _optionenF->addMember( o_repair );
|
|
|
|
+
|
|
Knopf *o_ok = new Knopf();
|
|
Knopf *o_ok = new Knopf();
|
|
o_ok->setStyle( Knopf::Style::Sichtbar | Knopf::Style::Erlaubt | Knopf::Style::Buffered | Knopf::Style::KlickBuffer | Knopf::Style::Rahmen );
|
|
o_ok->setStyle( Knopf::Style::Sichtbar | Knopf::Style::Erlaubt | Knopf::Style::Buffered | Knopf::Style::KlickBuffer | Knopf::Style::Rahmen );
|
|
- o_ok->setPosition( 178, 254 );
|
|
|
|
|
|
+ o_ok->setPosition( 178, 284 );
|
|
o_ok->setSize( 100, 20 );
|
|
o_ok->setSize( 100, 20 );
|
|
o_ok->setText( "Fertig" );
|
|
o_ok->setText( "Fertig" );
|
|
o_ok->setSchriftZ( sNormal->getThis() );
|
|
o_ok->setSchriftZ( sNormal->getThis() );
|
|
@@ -805,7 +840,7 @@ int KSGStart Framework::Start( Startparam p )
|
|
DWORD threadId;
|
|
DWORD threadId;
|
|
HANDLE handle = CreateThread( NULL, 0, runThread, screen, 0, &threadId );
|
|
HANDLE handle = CreateThread( NULL, 0, runThread, screen, 0, &threadId );
|
|
|
|
|
|
- _patcher = new Patcher( (FBalken*)_fortschritt->getThis(), (TextFeld*)_aktion->getThis(), (Knopf*)_play->getThis(), &_exitB, mainClient->createPatchServerClient() );
|
|
|
|
|
|
+ _patcher = new Patcher( (FBalken*)_fortschritt->getThis(), (TextFeld*)_aktion->getThis(), (Knopf*)_play->getThis(), &exitPatcher, mainClient->createPatchServerClient() );
|
|
_patcher->startPatch();
|
|
_patcher->startPatch();
|
|
|
|
|
|
StartNachrichtenSchleife();
|
|
StartNachrichtenSchleife();
|
|
@@ -815,6 +850,7 @@ int KSGStart Framework::Start( Startparam p )
|
|
|
|
|
|
news->release();
|
|
news->release();
|
|
|
|
|
|
|
|
+ exitPatcher = 1;
|
|
_patcher->warteAufPatch( INFINITE );
|
|
_patcher->warteAufPatch( INFINITE );
|
|
int returnVal = _patcher->getReturn();
|
|
int returnVal = _patcher->getReturn();
|
|
_patcher->release();
|
|
_patcher->release();
|
|
@@ -847,6 +883,7 @@ int KSGStart Framework::Start( Startparam p )
|
|
_frame->zerstören();
|
|
_frame->zerstören();
|
|
_frame->release();
|
|
_frame->release();
|
|
mainClient->release();
|
|
mainClient->release();
|
|
|
|
+ userOptions->release();
|
|
Network::Exit();
|
|
Network::Exit();
|
|
|
|
|
|
DateiPfadErstellen( new Text( "data/tmp/keinabsturz" ) );
|
|
DateiPfadErstellen( new Text( "data/tmp/keinabsturz" ) );
|