2005-10-20 15:45:00 +00:00
|
|
|
/*
|
2005-11-26 16:52:51 +00:00
|
|
|
game_gui.h
|
|
|
|
|
2005-10-20 15:45:00 +00: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 18:01:55 +00:00
|
|
|
#ifndef GAME_GUI_H
|
|
|
|
#define GAME_GUI_H
|
|
|
|
|
2005-07-08 09:26:00 +00:00
|
|
|
#include <stdarg.h>
|
|
|
|
#include <glib/gprintf.h>
|
|
|
|
|
2005-01-24 18:01:55 +00:00
|
|
|
#include "bygfoot.h"
|
2005-12-01 11:50:54 +00:00
|
|
|
#include "job_struct.h"
|
2005-03-03 12:46:48 +00:00
|
|
|
#include "live_game_struct.h"
|
2005-05-22 13:33:24 +00:00
|
|
|
#include "option_struct.h"
|
2005-01-24 18:01:55 +00:00
|
|
|
|
2005-06-14 20:04:37 +00: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 16:44:33 +00:00
|
|
|
#define getsav GTK_WIDGET_SENSITIVE(lookup_widget(window.main, "button_save"))
|
|
|
|
|
2005-01-24 18:01:55 +00: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 20:50:48 +00:00
|
|
|
void
|
2005-10-28 09:11:33 +00:00
|
|
|
game_gui_live_game_show_opponent(void);
|
2005-10-24 20:50:48 +00:00
|
|
|
|
2005-03-03 12:46:48 +00:00
|
|
|
void
|
|
|
|
game_gui_set_main_window_header(void);
|
|
|
|
|
|
|
|
void
|
|
|
|
game_gui_show_main(void);
|
|
|
|
|
2006-02-28 22:17:08 +00:00
|
|
|
#ifdef G_OS_UNIX
|
2005-03-03 12:46:48 +00:00
|
|
|
void
|
2005-07-08 09:26:00 +00:00
|
|
|
game_gui_show_warning(const gchar *format, ...)
|
|
|
|
__attribute__ ((format (printf, 1, 2)));
|
2006-02-28 22:17:08 +00:00
|
|
|
#else
|
|
|
|
void
|
|
|
|
game_gui_show_warning(const gchar *format, ...);
|
|
|
|
#endif
|
2005-03-03 12:46:48 +00:00
|
|
|
|
2006-02-28 22:17:08 +00:00
|
|
|
#ifdef G_OS_UNIX
|
2005-10-09 09:35:44 +00:00
|
|
|
void
|
2005-07-08 09:26:00 +00:00
|
|
|
game_gui_print_message(gchar *format, ...)
|
|
|
|
__attribute__ ((format (printf, 1, 2)));
|
2006-02-28 22:17:08 +00:00
|
|
|
#else
|
|
|
|
void
|
|
|
|
game_gui_print_message(gchar *format, ...);
|
|
|
|
#endif
|
2005-03-03 12:46:48 +00:00
|
|
|
|
2005-10-09 09:35:44 +00:00
|
|
|
gboolean
|
|
|
|
game_gui_print_message_source(gpointer data);
|
|
|
|
|
2006-02-28 22:17:08 +00:00
|
|
|
#ifdef G_OS_UNIX
|
2005-06-28 02:08:56 +00:00
|
|
|
void
|
2005-07-08 09:26:00 +00:00
|
|
|
game_gui_print_message_with_delay(const gchar *format, ...)
|
|
|
|
__attribute__ ((format (printf, 1, 2)));
|
2006-02-28 22:17:08 +00:00
|
|
|
#else
|
|
|
|
void
|
|
|
|
game_gui_print_message_with_delay(const gchar *format, ...);
|
|
|
|
#endif
|
2005-07-08 09:26:00 +00:00
|
|
|
|
|
|
|
void
|
|
|
|
game_gui_get_radio_items(GtkWidget **style, GtkWidget **scout,
|
|
|
|
GtkWidget **physio, GtkWidget **boost,
|
2005-07-14 16:05:10 +00:00
|
|
|
GtkWidget **yc, GtkWidget **ya_pos_pref);
|
2005-06-28 02:08:56 +00:00
|
|
|
|
2005-03-03 12:46:48 +00: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 16:06:52 +00:00
|
|
|
game_gui_write_av_skills(const Team *tm);
|
2005-03-03 12:46:48 +00:00
|
|
|
|
2005-10-28 09:11:33 +00:00
|
|
|
void
|
|
|
|
game_gui_write_meter_images(const Team *tm, GtkImage *style,
|
|
|
|
GtkImage *boost);
|
|
|
|
|
2005-03-11 17:18:51 +00:00
|
|
|
void
|
2005-10-09 10:07:06 +00:00
|
|
|
game_gui_write_meters(const Team *tm);
|
2005-03-11 17:18:51 +00:00
|
|
|
|
2005-03-18 22:03:23 +00:00
|
|
|
void
|
2005-12-01 11:50:54 +00:00
|
|
|
game_gui_show_job_offer(Team *team, Job *job, gint type);
|
2005-03-18 22:03:23 +00:00
|
|
|
|
2005-03-24 13:00:01 +00:00
|
|
|
void
|
|
|
|
game_gui_write_check_items(void);
|
|
|
|
|
|
|
|
void
|
|
|
|
game_gui_read_check_items(GtkWidget *widget);
|
|
|
|
|
2005-05-22 13:33:24 +00:00
|
|
|
void
|
2005-05-24 18:31:07 +00:00
|
|
|
game_gui_set_help_labels(void);
|
2005-05-22 13:33:24 +00:00
|
|
|
|
2007-01-18 17:25:32 +00:00
|
|
|
void
|
|
|
|
game_gui_write_money(void);
|
|
|
|
|
2005-01-24 18:01:55 +00:00
|
|
|
#endif
|