2005-10-20 17:45:00 +02:00
|
|
|
/*
|
2005-11-26 17:52:51 +01:00
|
|
|
game_gui.h
|
|
|
|
|
2005-10-20 17:45:00 +02:00
|
|
|
Bygfoot Football Manager -- a small and simple GTK2-based
|
|
|
|
football management game.
|
|
|
|
|
|
|
|
http://bygfoot.sourceforge.net
|
|
|
|
|
|
|
|
Copyright (C) 2005 Gyözö Both (gyboth@bygfoot.com)
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License
|
|
|
|
as published by the Free Software Foundation; either version 2
|
|
|
|
of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*/
|
|
|
|
|
2005-01-24 19:01:55 +01:00
|
|
|
#ifndef GAME_GUI_H
|
|
|
|
#define GAME_GUI_H
|
|
|
|
|
2005-07-08 11:26:00 +02:00
|
|
|
#include <stdarg.h>
|
|
|
|
#include <glib/gprintf.h>
|
|
|
|
|
2005-01-24 19:01:55 +01:00
|
|
|
#include "bygfoot.h"
|
2005-12-01 12:50:54 +01:00
|
|
|
#include "job_struct.h"
|
2005-03-03 13:46:48 +01:00
|
|
|
#include "live_game_struct.h"
|
2005-05-22 15:33:24 +02:00
|
|
|
#include "option_struct.h"
|
2005-01-24 19:01:55 +01:00
|
|
|
|
2005-06-14 22:04:37 +02:00
|
|
|
#define setsav1 gtk_widget_set_sensitive(lookup_widget(window.main, "button_save"), FALSE);gtk_widget_set_sensitive(lookup_widget(window.main, "menu_save"), FALSE)
|
|
|
|
#define setsav0 gtk_widget_set_sensitive(lookup_widget(window.main, "button_save"), TRUE);gtk_widget_set_sensitive(lookup_widget(window.main, "menu_save"), TRUE)
|
2005-04-07 18:44:33 +02:00
|
|
|
#define getsav GTK_WIDGET_SENSITIVE(lookup_widget(window.main, "button_save"))
|
|
|
|
|
2005-01-24 19:01:55 +01:00
|
|
|
void
|
|
|
|
game_gui_live_game_show_unit(const LiveGameUnit *unit);
|
|
|
|
|
|
|
|
void
|
|
|
|
game_gui_live_game_set_hscale(const LiveGameUnit *unit, GtkHScale *hscale);
|
|
|
|
|
2005-10-24 22:50:48 +02:00
|
|
|
void
|
2005-10-28 11:11:33 +02:00
|
|
|
game_gui_live_game_show_opponent(void);
|
2005-10-24 22:50:48 +02:00
|
|
|
|
2005-03-03 13:46:48 +01:00
|
|
|
void
|
|
|
|
game_gui_set_main_window_header(void);
|
|
|
|
|
|
|
|
void
|
|
|
|
game_gui_show_main(void);
|
|
|
|
|
2006-02-28 23:17:08 +01:00
|
|
|
#ifdef G_OS_UNIX
|
2005-03-03 13:46:48 +01:00
|
|
|
void
|
2005-07-08 11:26:00 +02:00
|
|
|
game_gui_show_warning(const gchar *format, ...)
|
|
|
|
__attribute__ ((format (printf, 1, 2)));
|
2006-02-28 23:17:08 +01:00
|
|
|
#else
|
|
|
|
void
|
|
|
|
game_gui_show_warning(const gchar *format, ...);
|
|
|
|
#endif
|
2005-03-03 13:46:48 +01:00
|
|
|
|
2006-02-28 23:17:08 +01:00
|
|
|
#ifdef G_OS_UNIX
|
2005-10-09 11:35:44 +02:00
|
|
|
void
|
2005-07-08 11:26:00 +02:00
|
|
|
game_gui_print_message(gchar *format, ...)
|
|
|
|
__attribute__ ((format (printf, 1, 2)));
|
2006-02-28 23:17:08 +01:00
|
|
|
#else
|
|
|
|
void
|
|
|
|
game_gui_print_message(gchar *format, ...);
|
|
|
|
#endif
|
2005-03-03 13:46:48 +01:00
|
|
|
|
2005-10-09 11:35:44 +02:00
|
|
|
gboolean
|
|
|
|
game_gui_print_message_source(gpointer data);
|
|
|
|
|
2006-02-28 23:17:08 +01:00
|
|
|
#ifdef G_OS_UNIX
|
2005-06-28 04:08:56 +02:00
|
|
|
void
|
2005-07-08 11:26:00 +02:00
|
|
|
game_gui_print_message_with_delay(const gchar *format, ...)
|
|
|
|
__attribute__ ((format (printf, 1, 2)));
|
2006-02-28 23:17:08 +01:00
|
|
|
#else
|
|
|
|
void
|
|
|
|
game_gui_print_message_with_delay(const gchar *format, ...);
|
|
|
|
#endif
|
2005-07-08 11:26:00 +02:00
|
|
|
|
|
|
|
void
|
|
|
|
game_gui_get_radio_items(GtkWidget **style, GtkWidget **scout,
|
|
|
|
GtkWidget **physio, GtkWidget **boost,
|
2005-07-14 18:05:10 +02:00
|
|
|
GtkWidget **yc, GtkWidget **ya_pos_pref);
|
2005-06-28 04:08:56 +02:00
|
|
|
|
2005-03-03 13:46:48 +01:00
|
|
|
void
|
|
|
|
game_gui_read_radio_items(GtkWidget *widget);
|
|
|
|
|
|
|
|
void
|
|
|
|
game_gui_write_radio_items(void);
|
|
|
|
|
|
|
|
gboolean
|
|
|
|
game_gui_clear_entry_message(gpointer data);
|
|
|
|
|
|
|
|
void
|
|
|
|
game_gui_set_main_window_sensitivity(gboolean value);
|
|
|
|
|
|
|
|
void
|
2006-06-29 18:06:52 +02:00
|
|
|
game_gui_write_av_skills(const Team *tm);
|
2005-03-03 13:46:48 +01:00
|
|
|
|
2005-10-28 11:11:33 +02:00
|
|
|
void
|
|
|
|
game_gui_write_meter_images(const Team *tm, GtkImage *style,
|
|
|
|
GtkImage *boost);
|
|
|
|
|
2005-03-11 18:18:51 +01:00
|
|
|
void
|
2005-10-09 12:07:06 +02:00
|
|
|
game_gui_write_meters(const Team *tm);
|
2005-03-11 18:18:51 +01:00
|
|
|
|
2005-03-18 23:03:23 +01:00
|
|
|
void
|
2005-12-01 12:50:54 +01:00
|
|
|
game_gui_show_job_offer(Team *team, Job *job, gint type);
|
2005-03-18 23:03:23 +01:00
|
|
|
|
2005-03-24 14:00:01 +01:00
|
|
|
void
|
|
|
|
game_gui_write_check_items(void);
|
|
|
|
|
|
|
|
void
|
|
|
|
game_gui_read_check_items(GtkWidget *widget);
|
|
|
|
|
2005-05-22 15:33:24 +02:00
|
|
|
void
|
2005-05-24 20:31:07 +02:00
|
|
|
game_gui_set_help_labels(void);
|
2005-05-22 15:33:24 +02:00
|
|
|
|
2007-01-18 18:25:32 +01:00
|
|
|
void
|
|
|
|
game_gui_write_money(void);
|
|
|
|
|
2005-01-24 19:01:55 +01:00
|
|
|
#endif
|