From 2fd0c9d50f1eb83d46080fb114cba5465e8c4506 Mon Sep 17 00:00:00 2001 From: oroborus Date: Tue, 3 Jun 2008 21:26:17 +0000 Subject: - zaciatok podpory FR jazyka - server podporuje socre ( treb este zdokumentovat protokol ) - prelozene dve chybove hlasky pre siete - odosielam to na rychlo git-svn-id: http://opensvn.csie.org/tuxanci_ng@59 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/screen_analyze.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/screen_analyze.c') diff --git a/src/screen_analyze.c b/src/screen_analyze.c index c223677..de84679 100644 --- a/src/screen_analyze.c +++ b/src/screen_analyze.c @@ -22,6 +22,7 @@ static widget_image_t *image_backgorund; static list_t *listWidgetLabelName; static list_t *listWidgetLabelScore; static list_t *listAnalyze; +static widget_label_t *widgetLabelMsg; static widget_button_t *button_ok; @@ -66,6 +67,7 @@ void drawScreenAnalyze() drawWidgetLabel(this); } + drawWidgetLabel(widgetLabelMsg); drawWidgetButton(button_ok); } @@ -76,6 +78,8 @@ void eventScreenAnalyze() void stopScreenAnalyze() { + destroyWidgetLabel(widgetLabelMsg); + widgetLabelMsg = newWidgetLabel("", WINDOW_SIZE_X / 2 , 250, WIDGET_LABEL_CENTER); } static void eventWidget(void *p) @@ -106,6 +110,12 @@ void addAnalyze(char *name, int score) addList(listAnalyze, newAnalyze(name, score) ); } +void setMsgToAnalyze(char *msg) +{ + destroyWidgetLabel(widgetLabelMsg); + widgetLabelMsg = newWidgetLabel(msg, WINDOW_SIZE_X / 2 , 250, WIDGET_LABEL_CENTER); +} + void endAnalyze() { int i; @@ -145,6 +155,8 @@ void initScreenAnalyze() registerScreen( newScreen("analyze", startScreenAnalyze, eventScreenAnalyze, drawScreenAnalyze, stopScreenAnalyze) ); + + widgetLabelMsg = newWidgetLabel("", WINDOW_SIZE_X / 2 , 250, WIDGET_LABEL_CENTER); } void quitScreenAnalyze() @@ -156,5 +168,6 @@ void quitScreenAnalyze() destroyListItem(listAnalyze, destroyAnalyze); destroyWidgetButton(button_ok); + destroyWidgetLabel(widgetLabelMsg); } -- cgit v1.2.3