#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.32) ATTRIB(VoretWinnerDialog, rows, float, 12) ATTRIB(VoretWinnerDialog, columns, float, 3) ENDCLASS(VoretWinnerDialog) #endif #ifdef IMPLEMENTATION void fillVoretWinnerDialog(entity me) { entity e; me.TR(me); me.TD(me, me.rows - 2, 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