new GuiChunkedBitmapCtrl(congratsGui) { profile = "GuiContentProfile"; horizSizing = "width"; vertSizing = "height"; position = "0 0"; extent = "640 480"; minExtent = "8 8"; visible = "1"; helpTag = "0"; bitmap = "./congrats.jpg"; useVariable = "0"; tile = "0"; new GuiBitmapButtonCtrl() { profile = "GuiButtonProfile"; horizSizing = "center"; vertSizing = "top"; position = "280 415"; extent = "111 59"; minExtent = "8 8"; visible = "1"; command = "setPlayMissionGui();gameIsCompleteSignalForEndGameGui(0);"; accelerator = "escape"; helpTag = "0"; text = "play"; groupNum = "-1"; buttonType = "PushButton"; bitmap = "./play/play"; }; }; function congratsGui::onWake() { if (!alxIsPlaying($WinSoundHandle)) { $WinSoundHandle = alxCreateSource("AudioChannel0", expandFilename("~/data/sound/congrats.wav")); alxPlay($WinSoundHandle); } }