123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768 |
- #include "AktionsThread.h"
- #include "..\Global\Variablen.h"
- #include <Zeit.h>
- // Inhalt der AktionsThread Klasse aus AktionsThread.h
- // Konstruktor
- AktionsThread::AktionsThread(int aktion, const void* arg1, const void* arg2, const void* arg3, const void* arg4, const void* arg5)
- : Thread()
- {
- this->aktion = aktion;
- this->arg1 = arg1;
- this->arg2 = arg2;
- this->arg3 = arg3;
- this->arg4 = arg4;
- this->arg5 = arg5;
- start();
- }
- // nicht constant
- void AktionsThread::thread()
- {
- switch (aktion)
- {
- case 1: // Login
- // arg1 = char* -- Account Name
- // arg2 = char* -- Account Passwort
- if (1)
- {
- uiFactory.initParam.bildschirm->setdeckFarbe(0x00000000);
- uiFactory.initParam.bildschirm->setOnTop(1);
- ladeAnimation->setSichtbar(1);
- int ret = 0;
- if (!loginClient)
- loginClient = mainClient->createLoginServerClient();
- do
- {
- if (!loginClient)
- {
- lastError = mainClient->getLetzterFehler();
- continue;
- }
- if (!loginClient->verbinde())
- {
- lastError = loginClient->getLetzterFehler();
- continue;
- }
- ret = loginClient->login((const char*)arg1, (const char*)arg2);
- if (ret != 1)
- {
- lastError = loginClient->getLetzterFehler();
- continue;
- }
- if (!infoClient)
- infoClient = mainClient->createInformationServerClient();
- if (!infoClient)
- {
- ret = 0;
- lastError = mainClient->getLetzterFehler();
- loginClient->logout();
- continue;
- }
- if (!infoClient->verbinde())
- {
- ret = 0;
- lastError = mainClient->getLetzterFehler();
- lastError = infoClient->getLetzterFehler();
- loginClient->logout();
- continue;
- }
- if (!chatClient)
- chatClient = mainClient->createChatServerClient();
- if (!chatClient)
- {
- ret = 0;
- lastError = mainClient->getLetzterFehler();
- loginClient->logout();
- continue;
- }
- if (!chatClient->verbinde())
- {
- ret = 0;
- loginClient->logout();
- infoClient->trenne(0);
- lastError = chatClient->getLetzterFehler();
- continue;
- }
- if (cmProcessor)
- cmProcessor = (ChatMessageProcessor*)cmProcessor->release();
- cmProcessor = new ChatMessageProcessor();
- loginClient->trenne(0);
- } while (0);
- ladeAnimation->setSichtbar(0);
- uiFactory.initParam.bildschirm->setOnTop(0);
- vorLogin->zLogin()->setLoginReturn(ret);
- }
- break;
- case 2: // Login Erfolgreich
- uiFactory.initParam.bildschirm->setdeckFarbe(0x00000000);
- uiFactory.initParam.bildschirm->setOnTop(1);
- ladeAnimation->setSichtbar(1);
- for (unsigned char deckAlpha = 0; deckAlpha < 255; )
- {
- uiFactory.initParam.bildschirm->setdeckFarbe(deckAlpha << 24);
- Sleep(40);
- deckAlpha += 15;
- }
- uiFactory.initParam.bildschirm->setdeckFarbe(255 << 24);
- uiFactory.initParam.bildschirm->setRenderZeichnungen(0);
- vorLogin->setSichtbar(0);
- nachLogin->setAnzeige(NLANormal);
- uiFactory.initParam.bildschirm->setRenderZeichnungen(1);
- ladeAnimation->setSichtbar(0);
- for (unsigned char deckAlpha = 255; deckAlpha > 0; )
- {
- uiFactory.initParam.bildschirm->setdeckFarbe(deckAlpha << 24);
- Sleep(40);
- deckAlpha -= 15;
- }
- uiFactory.initParam.bildschirm->setdeckFarbe(0 << 24);
- uiFactory.initParam.bildschirm->setOnTop(0);
- break;
- case 3: // Kick
- // arg1 = char* -- Account Name
- // arg2 = char* -- Account Passwort
- // arg3 = char* -- Account Geheimnis
- if (1)
- {
- uiFactory.initParam.bildschirm->setdeckFarbe(0x00000000);
- uiFactory.initParam.bildschirm->setOnTop(1);
- ladeAnimation->setSichtbar(1);
- int ret = 0;
- if (!loginClient)
- loginClient = mainClient->createLoginServerClient();
- do
- {
- if (!loginClient)
- {
- lastError = mainClient->getLetzterFehler();
- continue;
- }
- if (!loginClient->verbinde())
- {
- lastError = loginClient->getLetzterFehler();
- continue;
- }
- ret = (int)loginClient->kick((const char*)arg1, (const char*)arg2, (const char*)arg3);
- if (!ret)
- {
- lastError = loginClient->getLetzterFehler();
- continue;
- }
- if (!infoClient)
- infoClient = mainClient->createInformationServerClient();
- if (!infoClient)
- {
- ret = 2;
- lastError = mainClient->getLetzterFehler();
- loginClient->logout();
- continue;
- }
- if (!infoClient->verbinde())
- {
- ret = 2;
- lastError = infoClient->getLetzterFehler();
- loginClient->logout();
- continue;
- }
- if (!chatClient)
- chatClient = mainClient->createChatServerClient();
- if (!chatClient)
- {
- ret = 2;
- lastError = mainClient->getLetzterFehler();
- loginClient->logout();
- continue;
- }
- if (!chatClient->verbinde())
- {
- ret = 2;
- loginClient->logout();
- infoClient->trenne(0);
- lastError = chatClient->getLetzterFehler();
- continue;
- }
- if (cmProcessor)
- cmProcessor = (ChatMessageProcessor*)cmProcessor->release();
- cmProcessor = new ChatMessageProcessor();
- loginClient->trenne(0);
- } while (0);
- ladeAnimation->setSichtbar(0);
- uiFactory.initParam.bildschirm->setOnTop(0);
- vorLogin->zLogin()->setKickReturn(ret);
- }
- break;
- case 4: // Logout
- if (1)
- {
- uiFactory.initParam.bildschirm->setdeckFarbe(0x00000000);
- uiFactory.initParam.bildschirm->setOnTop(1);
- ladeAnimation->setSichtbar(1);
- if (loginClient)
- {
- if (!loginClient->verbinde())
- {
- nachLogin->zNachrichtenListe()->addNachricht(new Text("Fehler"), new Text("Das Ausloggen konnte nicht erfolgreich abgeschlossen werden."),
- new Text("Ok"), 0);
- ladeAnimation->setSichtbar(0);
- uiFactory.initParam.bildschirm->setOnTop(0);
- break;
- }
- bool ret = loginClient->logout();
- if (ret)
- {
- uiFactory.initParam.bildschirm->lock();
- nachLogin->zChatLeiste()->removeAll();
- nachLogin->zFreundesListe()->removeAll();
- nachLogin->zNachrichtenListe()->removeAll();
- uiFactory.initParam.bildschirm->unlock();
- if (infoClient)
- infoClient->trenne(0);
- if (spielClient)
- spielClient->trenne();
- if (smProcessor)
- smProcessor = (SpielMessageProcessor*)smProcessor->release();
- if (chatClient)
- chatClient->trenne(0);
- if (loginClient)
- loginClient->trenne(0);
- if (cmProcessor)
- cmProcessor = (ChatMessageProcessor*)cmProcessor->release();
- }
- else
- {
- nachLogin->zNachrichtenListe()->addNachricht(new Text("Fehler"), new Text("Das Ausloggen konnte nicht erfolgreich abgeschlossen werden."),
- new Text("Ok"), 0);
- ladeAnimation->setSichtbar(0);
- uiFactory.initParam.bildschirm->setOnTop(0);
- break;
- }
- }
- ladeAnimation->setSichtbar(0);
- uiFactory.initParam.bildschirm->setOnTop(0);
- }
- case 5: // Logout Erfolgreich
- uiFactory.initParam.bildschirm->setdeckFarbe(0x00000000);
- uiFactory.initParam.bildschirm->setOnTop(1);
- ladeAnimation->setSichtbar(1);
- for (unsigned char deckAlpha = 0; deckAlpha < 255; )
- {
- uiFactory.initParam.bildschirm->setdeckFarbe(deckAlpha << 24);
- Sleep(40);
- deckAlpha += 15;
- }
- uiFactory.initParam.bildschirm->setdeckFarbe(255 << 24);
- _render = 0;
- uiFactory.initParam.bildschirm->lock();
- nachLogin->setAnzeige(NLALogin);
- vorLogin->setSichtbar(1);
- uiFactory.initParam.bildschirm->unlock();
- _render = 1;
- ladeAnimation->setSichtbar(0);
- for (unsigned char deckAlpha = 255; deckAlpha > 0; )
- {
- uiFactory.initParam.bildschirm->setdeckFarbe(deckAlpha << 24);
- Sleep(40);
- deckAlpha -= 15;
- }
- uiFactory.initParam.bildschirm->setdeckFarbe(0 << 24);
- uiFactory.initParam.bildschirm->setOnTop(0);
- break;
- case 8: // Account E-Mail ändern
- // arg1 = char* -- Account Name
- // arg2 = char* -- Account Passwort
- // arg3 = char* -- Account Geheimnis
- // arg4 = char* -- Neue E-Mail
- if (1)
- {
- uiFactory.initParam.bildschirm->setdeckFarbe(0x00000000);
- uiFactory.initParam.bildschirm->setOnTop(1);
- ladeAnimation->setSichtbar(1);
- int ret = 0;
- if (!registerClient)
- registerClient = mainClient->createRegisterServerClient();
- do
- {
- if (!registerClient)
- {
- lastError = mainClient->getLetzterFehler();
- continue;
- }
- if (!registerClient->verbinde())
- {
- lastError = registerClient->getLetzterFehler();
- continue;
- }
- ret = registerClient->eMailÄndern((const char*)arg1, (const char*)arg2, (const char*)arg3, (const char*)arg4);
- if (!ret)
- {
- lastError = registerClient->getLetzterFehler();
- continue;
- }
- } while (0);
- registerClient->trenne(0);
- ladeAnimation->setSichtbar(0);
- uiFactory.initParam.bildschirm->setOnTop(0);
- vorLogin->zEMailÄndern()->setReturn(ret);
- }
- break;
- case 9: // Account E-Mail Vergessen
- // arg1 = char* -- Account Name
- // arg2 = char* -- Account Passwort
- // arg3 = char* -- Account Geheimnis
- if (1)
- {
- uiFactory.initParam.bildschirm->setdeckFarbe(0x00000000);
- uiFactory.initParam.bildschirm->setOnTop(1);
- ladeAnimation->setSichtbar(1);
- char* eMail = 0;
- char** pEMail = &eMail;
- int ret = 0;
- if (!registerClient)
- registerClient = mainClient->createRegisterServerClient();
- do
- {
- if (!registerClient)
- {
- lastError = mainClient->getLetzterFehler();
- continue;
- }
- if (!registerClient->verbinde())
- {
- lastError = registerClient->getLetzterFehler();
- continue;
- }
- ret = registerClient->eMailVergessen((const char*)arg1, (const char*)arg2, (const char*)arg3, pEMail);
- if (!ret)
- {
- lastError = registerClient->getLetzterFehler();
- continue;
- }
- } while (0);
- registerClient->trenne(0);
- ladeAnimation->setSichtbar(0);
- uiFactory.initParam.bildschirm->setOnTop(0);
- vorLogin->zEMailVergessen()->setReturn(ret, *pEMail);
- }
- break;
- case 10: // Account Geheimnis Ändern
- // arg1 = char* -- Account Name
- // arg2 = char* -- Account Passwort
- // arg3 = char* -- Account Geheimnis
- // arg4 = char* -- Neues Geheimnis
- if (1)
- {
- uiFactory.initParam.bildschirm->setdeckFarbe(0x00000000);
- uiFactory.initParam.bildschirm->setOnTop(1);
- ladeAnimation->setSichtbar(1);
- int ret = 0;
- if (!registerClient)
- registerClient = mainClient->createRegisterServerClient();
- do
- {
- if (!registerClient)
- {
- lastError = mainClient->getLetzterFehler();
- continue;
- }
- if (!registerClient->verbinde())
- {
- lastError = registerClient->getLetzterFehler();
- continue;
- }
- ret = registerClient->geheimnisÄndern((const char*)arg1, (const char*)arg2, (const char*)arg3, (const char*)arg4);
- if (!ret)
- {
- lastError = registerClient->getLetzterFehler();
- continue;
- }
- } while (0);
- registerClient->trenne(0);
- ladeAnimation->setSichtbar(0);
- uiFactory.initParam.bildschirm->setOnTop(0);
- vorLogin->zGeheimnisÄndern()->setResult(ret);
- }
- break;
- case 11: // Account Geheimnis Vergessen
- // arg1 = char* -- Account Name
- // arg2 = char* -- Account Passwort
- if (1)
- {
- uiFactory.initParam.bildschirm->setdeckFarbe(0x00000000);
- uiFactory.initParam.bildschirm->setOnTop(1);
- ladeAnimation->setSichtbar(1);
- int ret = 0;
- if (!registerClient)
- registerClient = mainClient->createRegisterServerClient();
- do
- {
- if (!registerClient)
- {
- lastError = mainClient->getLetzterFehler();
- continue;
- }
- if (!registerClient->verbinde())
- {
- lastError = registerClient->getLetzterFehler();
- continue;
- }
- ret = registerClient->geheimnisVergessen((const char*)arg1, (const char*)arg2);
- if (!ret)
- {
- lastError = registerClient->getLetzterFehler();
- continue;
- }
- } while (0);
- registerClient->trenne(0);
- ladeAnimation->setSichtbar(0);
- uiFactory.initParam.bildschirm->setOnTop(0);
- vorLogin->zGeheimnisVergessen()->setResult(ret);
- }
- break;
- case 12: // Account Name Vergessen
- // arg1 = char* -- Account Passwort
- // arg2 = char* -- Account Geheimnis
- if (1)
- {
- uiFactory.initParam.bildschirm->setdeckFarbe(0x00000000);
- uiFactory.initParam.bildschirm->setOnTop(1);
- ladeAnimation->setSichtbar(1);
- int ret = 0;
- if (!registerClient)
- registerClient = mainClient->createRegisterServerClient();
- do
- {
- if (!registerClient)
- {
- lastError = mainClient->getLetzterFehler();
- continue;
- }
- if (!registerClient->verbinde())
- {
- lastError = registerClient->getLetzterFehler();
- continue;
- }
- ret = registerClient->nameVergessen((const char*)arg1, (const char*)arg2);
- if (!ret)
- {
- lastError = registerClient->getLetzterFehler();
- continue;
- }
- } while (0);
- registerClient->trenne(0);
- ladeAnimation->setSichtbar(0);
- uiFactory.initParam.bildschirm->setOnTop(0);
- vorLogin->zNameVergessen()->setResult(ret);
- }
- break;
- case 13: // Account Passwort Ändern
- // arg1 = char* -- Account Name
- // arg2 = char* -- Account Passwort
- // arg3 = char* -- Account Geheimnis
- // arg4 = char* -- Neues Passwort
- if (1)
- {
- uiFactory.initParam.bildschirm->setdeckFarbe(0x00000000);
- uiFactory.initParam.bildschirm->setOnTop(1);
- ladeAnimation->setSichtbar(1);
- int ret = 0;
- if (!registerClient)
- registerClient = mainClient->createRegisterServerClient();
- do
- {
- if (!registerClient)
- {
- lastError = mainClient->getLetzterFehler();
- continue;
- }
- if (!registerClient->verbinde())
- {
- lastError = registerClient->getLetzterFehler();
- continue;
- }
- ret = registerClient->passwortÄndern((const char*)arg1, (const char*)arg2, (const char*)arg3, (const char*)arg4);
- if (!ret)
- {
- lastError = registerClient->getLetzterFehler();
- continue;
- }
- } while (0);
- registerClient->trenne(0);
- ladeAnimation->setSichtbar(0);
- uiFactory.initParam.bildschirm->setOnTop(0);
- vorLogin->zPasswortÄndern()->setResult(ret);
- }
- break;
- case 14: // Account Passwort Vergessen
- // arg1 = char* -- Account Name
- // arg2 = char* -- Account Geheimnis
- if (1)
- {
- uiFactory.initParam.bildschirm->setdeckFarbe(0x00000000);
- uiFactory.initParam.bildschirm->setOnTop(1);
- ladeAnimation->setSichtbar(1);
- int ret = 0;
- if (!registerClient)
- registerClient = mainClient->createRegisterServerClient();
- do
- {
- if (!registerClient)
- {
- lastError = mainClient->getLetzterFehler();
- continue;
- }
- if (!registerClient->verbinde())
- {
- lastError = registerClient->getLetzterFehler();
- continue;
- }
- ret = registerClient->passwortVergessen((const char*)arg1, (const char*)arg2);
- if (!ret)
- {
- lastError = registerClient->getLetzterFehler();
- continue;
- }
- } while (0);
- registerClient->trenne(0);
- ladeAnimation->setSichtbar(0);
- uiFactory.initParam.bildschirm->setOnTop(0);
- vorLogin->zPasswortVergessen()->setResult(ret);
- }
- break;
- case 15: // Account Erstellen
- // arg1 = char* -- Account Name
- // arg2 = char* -- Account Passwort
- // arg3 = char* -- Account Geheimnis
- // arg4 = char* -- Account E-Mail
- // arg5 = Datum* -- Geburtsdatum
- if (1)
- {
- uiFactory.initParam.bildschirm->setdeckFarbe(0x00000000);
- uiFactory.initParam.bildschirm->setOnTop(1);
- ladeAnimation->setSichtbar(1);
- int ret = 0;
- if (!registerClient)
- registerClient = mainClient->createRegisterServerClient();
- do
- {
- if (!registerClient)
- {
- lastError = mainClient->getLetzterFehler();
- continue;
- }
- if (!registerClient->verbinde())
- {
- lastError = registerClient->getLetzterFehler();
- continue;
- }
- ret = registerClient->accountErstellen((const char*)arg1,
- (const char*)arg2,
- (const char*)arg3,
- (const char*)arg4,
- (unsigned short)((Datum*)arg5)->getJahr(),
- (char)((Datum*)arg5)->getMonat(),
- (char)((Datum*)arg5)->getTag());
- if (!ret)
- {
- lastError = registerClient->getLetzterFehler();
- continue;
- }
- } while (0);
- registerClient->trenne(0);
- ladeAnimation->setSichtbar(0);
- uiFactory.initParam.bildschirm->setOnTop(0);
- vorLogin->zRegistrierung()->setWeiterReturn(ret);
- ((Datum*)arg5)->release();
- }
- break;
- case 17: // account Löschen Fertig
- // arg1 = char* -- Account Name
- // arg2 = char* -- Account Passwort
- // arg3 = char* -- Account Geheimnis
- if (1)
- {
- uiFactory.initParam.bildschirm->setdeckFarbe(0x00000000);
- uiFactory.initParam.bildschirm->setOnTop(1);
- ladeAnimation->setSichtbar(1);
- int ret = 0;
- if (!registerClient)
- registerClient = mainClient->createRegisterServerClient();
- do
- {
- if (!registerClient)
- {
- lastError = mainClient->getLetzterFehler();
- continue;
- }
- if (!registerClient->verbinde())
- {
- lastError = registerClient->getLetzterFehler();
- continue;
- }
- ret = registerClient->accountLöschen((const char*)arg1, (const char*)arg2, (const char*)arg3);
- if (!ret)
- {
- lastError = registerClient->getLetzterFehler();
- continue;
- }
- } while (0);
- registerClient->trenne(0);
- ladeAnimation->setSichtbar(0);
- uiFactory.initParam.bildschirm->setOnTop(0);
- vorLogin->zUnregistrierung()->setWeiterReturn(ret);
- }
- break;
- case 19: // Spiel Laden
- if (1)
- {
- uiFactory.initParam.bildschirm->setdeckFarbe(0x00000000);
- uiFactory.initParam.bildschirm->setOnTop(1);
- ladeAnimation->setSichtbar(1);
- for (unsigned char deckAlpha = 0; deckAlpha < 255; )
- {
- uiFactory.initParam.bildschirm->setdeckFarbe(deckAlpha << 24);
- Sleep(40);
- deckAlpha += 15;
- }
- uiFactory.initParam.bildschirm->setdeckFarbe(255 << 24);
- _render = 0;
- uiFactory.initParam.bildschirm->lock();
- int karteId = nachLogin->zSpielenFenster()->getKarteId();
- SpielerTeamStruktur* sts = nachLogin->zSpielenFenster()->getSTS();
- nachLogin->setAnzeige(NLAImSpiel);
- uiFactory.initParam.bildschirm->unlock();
- _render = 1;
- nachLogin->zImSpiel()->beginnLaden(karteId, sts);
- ladeAnimation->setSichtbar(0);
- for (unsigned char deckAlpha = 255; deckAlpha > 0; )
- {
- uiFactory.initParam.bildschirm->setdeckFarbe(deckAlpha << 24);
- Sleep(40);
- deckAlpha -= 15;
- }
- uiFactory.initParam.bildschirm->setdeckFarbe(0 << 24);
- uiFactory.initParam.bildschirm->setOnTop(0);
- }
- break;
- case 20: // Spiel Statistik laden
- if (1)
- {
- uiFactory.initParam.bildschirm->setdeckFarbe(0x00000000);
- uiFactory.initParam.bildschirm->setOnTop(1);
- ladeAnimation->setSichtbar(1);
- for (unsigned char deckAlpha = 0; deckAlpha < 255; )
- {
- uiFactory.initParam.bildschirm->setdeckFarbe(deckAlpha << 24);
- Sleep(40);
- deckAlpha += 15;
- }
- uiFactory.initParam.bildschirm->setdeckFarbe(255 << 24);
- _render = 0;
- uiFactory.initParam.bildschirm->lock();
- int karteId = nachLogin->zImSpiel()->getKarteId();
- nachLogin->setAnzeige(NLANormal);
- uiFactory.initParam.bildschirm->unlock();
- _render = 1;
- if (spielClient && spielClient->istVerbunden())
- nachLogin->zSpielenFenster()->ladeSpielStatistik(karteId);
- ladeAnimation->setSichtbar(0);
- for (unsigned char deckAlpha = 255; deckAlpha > 0; )
- {
- uiFactory.initParam.bildschirm->setdeckFarbe(deckAlpha << 24);
- Sleep(40);
- deckAlpha -= 15;
- }
- uiFactory.initParam.bildschirm->setdeckFarbe(0 << 24);
- uiFactory.initParam.bildschirm->setOnTop(0);
- }
- break;
- case 21: // Spiel Aufzeichnung betreten
- if (1)
- {
- uiFactory.initParam.bildschirm->setdeckFarbe(0x00000000);
- uiFactory.initParam.bildschirm->setOnTop(1);
- ladeAnimation->setSichtbar(1);
- for (unsigned char deckAlpha = 0; deckAlpha < 255; )
- {
- uiFactory.initParam.bildschirm->setdeckFarbe(deckAlpha << 24);
- Sleep(40);
- deckAlpha += 15;
- }
- uiFactory.initParam.bildschirm->setdeckFarbe(255 << 24);
- _render = 0;
- uiFactory.initParam.bildschirm->lock();
- nachLogin->setAnzeige(NLASpielVideo);
- uiFactory.initParam.bildschirm->unlock();
- _render = 1;
- ladeAnimation->setSichtbar(0);
- for (unsigned char deckAlpha = 255; deckAlpha > 0; )
- {
- uiFactory.initParam.bildschirm->setdeckFarbe(deckAlpha << 24);
- Sleep(40);
- deckAlpha -= 15;
- }
- uiFactory.initParam.bildschirm->setdeckFarbe(0 << 24);
- uiFactory.initParam.bildschirm->setOnTop(0);
- }
- break;
- case 22: // Spiel Aufzeichnung / Editor verlassen
- if (1)
- {
- uiFactory.initParam.bildschirm->setdeckFarbe(0x00000000);
- uiFactory.initParam.bildschirm->setOnTop(1);
- ladeAnimation->setSichtbar(1);
- for (unsigned char deckAlpha = 0; deckAlpha < 255; )
- {
- uiFactory.initParam.bildschirm->setdeckFarbe(deckAlpha << 24);
- Sleep(40);
- deckAlpha += 15;
- }
- uiFactory.initParam.bildschirm->setdeckFarbe(255 << 24);
- _render = 0;
- uiFactory.initParam.bildschirm->lock();
- nachLogin->setAnzeige(NLANormal);
- uiFactory.initParam.bildschirm->unlock();
- _render = 1;
- ladeAnimation->setSichtbar(0);
- for (unsigned char deckAlpha = 255; deckAlpha > 0; )
- {
- uiFactory.initParam.bildschirm->setdeckFarbe(deckAlpha << 24);
- Sleep(40);
- deckAlpha -= 15;
- }
- uiFactory.initParam.bildschirm->setdeckFarbe(0 << 24);
- uiFactory.initParam.bildschirm->setOnTop(0);
- }
- break;
- case 23: // Editor betreten
- if (1)
- {
- uiFactory.initParam.bildschirm->setdeckFarbe(0x00000000);
- uiFactory.initParam.bildschirm->setOnTop(1);
- ladeAnimation->setSichtbar(1);
- for (unsigned char deckAlpha = 0; deckAlpha < 255; )
- {
- uiFactory.initParam.bildschirm->setdeckFarbe(deckAlpha << 24);
- Sleep(40);
- deckAlpha += 15;
- }
- uiFactory.initParam.bildschirm->setdeckFarbe(255 << 24);
- _render = 0;
- uiFactory.initParam.bildschirm->lock();
- nachLogin->setAnzeige(NLAEditor);
- uiFactory.initParam.bildschirm->unlock();
- _render = 1;
- ladeAnimation->setSichtbar(0);
- for (unsigned char deckAlpha = 255; deckAlpha > 0; )
- {
- uiFactory.initParam.bildschirm->setdeckFarbe(deckAlpha << 24);
- Sleep(40);
- deckAlpha -= 15;
- }
- uiFactory.initParam.bildschirm->setdeckFarbe(0 << 24);
- uiFactory.initParam.bildschirm->setOnTop(0);
- }
- break;
- }
- release();
- }
|