#ifdef INTERFACE CLASS(VoretWinnerDialog) EXTENDS(VoretDialog) METHOD(VoretWinnerDialog, fill, void(entity)) ATTRIB(VoretWinnerDialog, title, string, "Winner") ATTRIB(VoretWinnerDialog, color, vector, SKINCOLOR_DIALOG_SINGLEPLAYER) ATTRIB(VoretWinnerDialog, intendedWidth, float, 0.54) ATTRIB(VoretWinnerDialog, rows, float, 14) ATTRIB(VoretWinnerDialog, columns, float, 3) ENDCLASS(VoretWinnerDialog) #endif #ifdef IMPLEMENTATION void fillVoretWinnerDialog(entity me) { entity e; me.TR(me); // this message must be sensitive for all possible campaigns! me.TD(me, 1, 1, e = makeVoretTextLabel(0, "And so it all ends, with one squeeze of the warm fleshy stomach.")); me.TR(me); me.TD(me, me.rows, me.columns, e = makeVoretImage("/gfx/winner", -1)); me.gotoRC(me, me.rows - 1, 0); me.TD(me, 1, me.columns, e = makeVoretButton("OK", '0 0 0')); e.onClick = Dialog_Close; e.onClickEntity = me; } #endif