comparison LightClone/Source/Dialog.h @ 40:00d17d8f407d

Hookup game over dialog; Remove Code class
author koryspansel
date Thu, 22 Sep 2011 10:21:14 -0700
parents d0ce73ced12e
children a986355cca5f
comparison
equal deleted inserted replaced
39:d0ce73ced12e 40:00d17d8f407d
7 7
8 #include "Core.h" 8 #include "Core.h"
9 #include "GuiDialog.h" 9 #include "GuiDialog.h"
10 #include "GuiLabel.h" 10 #include "GuiLabel.h"
11 #include "GuiButton.h" 11 #include "GuiButton.h"
12 #include <stdarg.h>
13 #include <stdio.h>
12 14
13 /* 15 /*
14 * DialogResult 16 * DialogResult
15 */ 17 */
16 enum 18 enum
101 } 103 }
102 104
103 /* 105 /*
104 * SetMessage 106 * SetMessage
105 */ 107 */
106 void SetMessage(const char* pMessage) 108 void SetMessage(const char* pFormat, ...)
107 { 109 {
108 kLabel.SetText(pMessage); 110 va_list kArguments;
111 va_start(kArguments, pFormat);
112
113 char kBuffer[128];
114 vsprintf(kBuffer, pFormat, kArguments);
115
116 kLabel.SetText(kBuffer);
117
118 va_end(kArguments);
109 } 119 }
110 120
111 /* 121 /*
112 * SetButton 122 * SetButton
113 */ 123 */