Jass:GameOverDialogBJ
Aus Mappedia
| Funktion: GameOverDialogBJ | |
|---|---|
| Parameter: | player boolean |
| Rückgabewert: | nothing |
| Autor: | Blizzard |
| Quelle: | Blizzard.j |
| Synchron: | Unbekannt |
Code
function GameOverDialogBJ takes player whichPlayer, boolean leftGame returns nothing local trigger t = CreateTrigger() local dialog d = DialogCreate() local string s // Display "player left the game" message call DisplayTimedTextFromPlayer(whichPlayer, 0, 0, 60, GetLocalizedString( "PLAYER_LEFT_GAME" )) if (GetIntegerGameState(GAME_STATE_DISCONNECTED) != 0) then set s = GetLocalizedString( "GAMEOVER_DISCONNECTED" ) else set s = GetLocalizedString( "GAMEOVER_GAME_OVER" ) endif call DialogSetMessage( d, s ) set t = CreateTrigger() call TriggerRegisterDialogButtonEvent( t, DialogAddQuitButton( d, true, GetLocalizedString( "GAMEOVER_OK" ), GetLocalizedHotkey("GAMEOVER_OK") ) ) call DialogDisplay( whichPlayer, d, true ) call StartSoundForPlayerBJ( whichPlayer, bj_defeatDialogSound ) endfunction
Parameter
| Typ | Name | Beschreibung |
|---|---|---|
| player | whichPlayer | |
| boolean | leftGame |
