1
1
mirror of https://github.com/tstellar/bygfoot.git synced 2024-12-16 18:29:21 +01:00
bygfoot/src/game_gui.h
2007-01-18 17:25:32 +00:00

129 lines
3.1 KiB
C

/*
game_gui.h
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.
*/
#ifndef GAME_GUI_H
#define GAME_GUI_H
#include <stdarg.h>
#include <glib/gprintf.h>
#include "bygfoot.h"
#include "job_struct.h"
#include "live_game_struct.h"
#include "option_struct.h"
#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)
#define getsav GTK_WIDGET_SENSITIVE(lookup_widget(window.main, "button_save"))
void
game_gui_live_game_show_unit(const LiveGameUnit *unit);
void
game_gui_live_game_set_hscale(const LiveGameUnit *unit, GtkHScale *hscale);
void
game_gui_live_game_show_opponent(void);
void
game_gui_set_main_window_header(void);
void
game_gui_show_main(void);
#ifdef G_OS_UNIX
void
game_gui_show_warning(const gchar *format, ...)
__attribute__ ((format (printf, 1, 2)));
#else
void
game_gui_show_warning(const gchar *format, ...);
#endif
#ifdef G_OS_UNIX
void
game_gui_print_message(gchar *format, ...)
__attribute__ ((format (printf, 1, 2)));
#else
void
game_gui_print_message(gchar *format, ...);
#endif
gboolean
game_gui_print_message_source(gpointer data);
#ifdef G_OS_UNIX
void
game_gui_print_message_with_delay(const gchar *format, ...)
__attribute__ ((format (printf, 1, 2)));
#else
void
game_gui_print_message_with_delay(const gchar *format, ...);
#endif
void
game_gui_get_radio_items(GtkWidget **style, GtkWidget **scout,
GtkWidget **physio, GtkWidget **boost,
GtkWidget **yc, GtkWidget **ya_pos_pref);
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
game_gui_write_av_skills(const Team *tm);
void
game_gui_write_meter_images(const Team *tm, GtkImage *style,
GtkImage *boost);
void
game_gui_write_meters(const Team *tm);
void
game_gui_show_job_offer(Team *team, Job *job, gint type);
void
game_gui_write_check_items(void);
void
game_gui_read_check_items(GtkWidget *widget);
void
game_gui_set_help_labels(void);
void
game_gui_write_money(void);
#endif