there is an option to store the order of your team, this order will be restored after a match

This commit is contained in:
gunnar_g 2009-06-24 20:02:50 +00:00
parent b12080e6f2
commit 6f389198c6
18 changed files with 2283 additions and 1928 deletions

View File

@ -11,6 +11,7 @@
- foul probabilities in the live game are more sophisticated now
- added a simple GUI for editing Bygfoot constants in the
preferences (enabling users to fine-tune the game)
- there is an option to store the order of your team, this order will be restored after a match
- updated Danish translation and hints (thanks to Joe Dalton)
29/01/2009: v2.3.1

View File

@ -1,4 +1,4 @@
# Makefile.in generated by automake 1.10.1 from Makefile.am.
# Makefile.in generated by automake 1.10.2 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
@ -33,7 +33,8 @@ subdir = .
DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
$(srcdir)/Makefile.in $(srcdir)/config.h.in \
$(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
TODO acconfig.h depcomp install-sh missing mkinstalldirs
TODO acconfig.h config.guess config.sub depcomp install-sh \
missing mkinstalldirs
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/configure.in
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
@ -175,6 +176,7 @@ sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
AM_CFLAGS = -Wall #-fprofile-arcs -ftest-coverage -pg
@ -2084,7 +2086,7 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
mkid -fID $$unique
tags: TAGS

View File

@ -18,6 +18,7 @@
<property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
<property name="focus_on_map">True</property>
<property name="urgency_hint">False</property>
<signal name="delete_event" handler="on_window_options_delete_event" last_modification_time="Thu, 14 Jul 2005 15:49:01 GMT"/>
<child>
@ -1076,49 +1077,83 @@
</child>
<child>
<widget class="GtkVBox" id="vbox7">
<widget class="GtkAlignment" id="alignment7">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xscale">1</property>
<property name="yscale">1</property>
<property name="top_padding">0</property>
<property name="bottom_padding">0</property>
<property name="left_padding">0</property>
<property name="right_padding">0</property>
<child>
<widget class="GtkCheckButton" id="checkbutton_swap_adapts">
<widget class="GtkVBox" id="vbox7">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Whether swapping two players automatically adapts the team structure to the player positions</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Swap adapts structure</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<widget class="GtkCheckButton" id="checkbutton_show_overall">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Whether to show the player games/goals value in all competitions</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Show overall games/goals</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
<child>
<widget class="GtkCheckButton" id="checkbutton_swap_adapts">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Whether swapping two players automatically adapts the team structure to the player positions</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Swap adapts structure</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton_show_overall">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Whether to show the player games/goals value in all competitions</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Show overall games/goals</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton_store_restore_default_team">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Always store/restore your default team before/after a match</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Always store/restore your default team</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
</widget>
<packing>
@ -3692,6 +3727,7 @@
<property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
<property name="focus_on_map">True</property>
<property name="urgency_hint">False</property>
<signal name="destroy_event" handler="on_window_constants_destroy_event" last_modification_time="Mon, 09 Mar 2009 18:40:09 GMT"/>
<signal name="delete_event" handler="on_window_constants_delete_event" last_modification_time="Mon, 09 Mar 2009 18:40:18 GMT"/>

3583
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -74,7 +74,7 @@ if test x$ENABLE_GST = xyes; then
AC_MSG_RESULT(GStreamer)
fi
ifdef(`__unix__', `AC_MSG_RESULT([OK]'')')
AC_OUTPUT([

View File

@ -16,7 +16,7 @@ GETTEXT_PACKAGE = bygfoot
PACKAGE = bygfoot
VERSION = 0.1
SHELL = /bin/sh
SHELL = /bin/bash
srcdir = .
@ -263,8 +263,7 @@ POTFILES: POTFILES.in
Makefile: Makefile.in.in ../config.status POTFILES
cd .. \
&& CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \
$(SHELL) ./config.status
&& $(SHELL) ./config.status $(subdir)/$@.in
# Tell versions [3.59,3.63) of GNU make not to export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.

View File

@ -16,7 +16,7 @@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
PACKAGE = @PACKAGE@
VERSION = @VERSION@
SHELL = /bin/sh
SHELL = @SHELL@
@SET_MAKE@
srcdir = @srcdir@
@ -263,8 +263,7 @@ POTFILES: POTFILES.in
Makefile: Makefile.in.in ../config.status POTFILES
cd .. \
&& CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \
$(SHELL) ./config.status
&& $(SHELL) ./config.status $(subdir)/$@.in
# Tell versions [3.59,3.63) of GNU make not to export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.

View File

@ -1,8 +1,8 @@
# Makefile.in generated by automake 1.7.1 from Makefile.am.
# Makefile.in generated by automake 1.10.2 from Makefile.am.
# @configure_input@
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
# Free Software Foundation, Inc.
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
@ -14,16 +14,11 @@
@SET_MAKE@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = ..
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
INSTALL = @INSTALL@
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
@ -35,9 +30,70 @@ POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
bin_PROGRAMS = bygfoot$(EXEEXT)
subdir = src
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/configure.in
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
am__installdirs = "$(DESTDIR)$(bindir)"
binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
PROGRAMS = $(bin_PROGRAMS)
am_bygfoot_OBJECTS = bet.$(OBJEXT) callback_func.$(OBJEXT) \
callbacks.$(OBJEXT) cup.$(OBJEXT) debug.$(OBJEXT) \
file.$(OBJEXT) finance.$(OBJEXT) fixture.$(OBJEXT) \
free.$(OBJEXT) game.$(OBJEXT) game_gui.$(OBJEXT) gui.$(OBJEXT) \
interface.$(OBJEXT) job.$(OBJEXT) language.$(OBJEXT) \
lg_commentary.$(OBJEXT) league.$(OBJEXT) live_game.$(OBJEXT) \
load_save.$(OBJEXT) main.$(OBJEXT) maths.$(OBJEXT) \
misc.$(OBJEXT) misc_callbacks.$(OBJEXT) \
misc_callback_func.$(OBJEXT) misc2_callbacks.$(OBJEXT) \
misc3_callbacks.$(OBJEXT) misc2_callback_func.$(OBJEXT) \
misc_interface.$(OBJEXT) misc2_interface.$(OBJEXT) \
misc3_interface.$(OBJEXT) name.$(OBJEXT) news.$(OBJEXT) \
option.$(OBJEXT) option_gui.$(OBJEXT) \
options_callbacks.$(OBJEXT) options_interface.$(OBJEXT) \
player.$(OBJEXT) start_end.$(OBJEXT) stat.$(OBJEXT) \
strategy.$(OBJEXT) support.$(OBJEXT) table.$(OBJEXT) \
team.$(OBJEXT) training.$(OBJEXT) training_callbacks.$(OBJEXT) \
training_interface.$(OBJEXT) transfer.$(OBJEXT) \
treeview.$(OBJEXT) treeview2.$(OBJEXT) \
treeview_helper.$(OBJEXT) user.$(OBJEXT) window.$(OBJEXT) \
xml.$(OBJEXT) xml_loadsave_cup.$(OBJEXT) \
xml_loadsave_fixtures.$(OBJEXT) xml_loadsave_jobs.$(OBJEXT) \
xml_loadsave_league.$(OBJEXT) \
xml_loadsave_leagues_cups.$(OBJEXT) \
xml_loadsave_league_stat.$(OBJEXT) \
xml_loadsave_live_game.$(OBJEXT) xml_loadsave_misc.$(OBJEXT) \
xml_loadsave_newspaper.$(OBJEXT) \
xml_loadsave_players.$(OBJEXT) \
xml_loadsave_season_stats.$(OBJEXT) \
xml_loadsave_table.$(OBJEXT) xml_loadsave_teams.$(OBJEXT) \
xml_loadsave_transfers.$(OBJEXT) xml_loadsave_users.$(OBJEXT) \
xml_cup.$(OBJEXT) xml_country.$(OBJEXT) xml_league.$(OBJEXT) \
xml_lg_commentary.$(OBJEXT) xml_mmatches.$(OBJEXT) \
xml_name.$(OBJEXT) xml_news.$(OBJEXT) xml_strategy.$(OBJEXT) \
xml_team.$(OBJEXT) youth_academy.$(OBJEXT)
bygfoot_OBJECTS = $(am_bygfoot_OBJECTS)
am__DEPENDENCIES_1 =
bygfoot_DEPENDENCIES = $(am__DEPENDENCIES_1)
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
depcomp = $(SHELL) $(top_srcdir)/depcomp
am__depfiles_maybe = depfiles
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
SOURCES = $(bygfoot_SOURCES)
DIST_SOURCES = $(bygfoot_SOURCES)
ETAGS = etags
CTAGS = ctags
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
AMDEP_FALSE = @AMDEP_FALSE@
AMDEP_TRUE = @AMDEP_TRUE@
AMTAR = @AMTAR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
@ -62,9 +118,11 @@ EXEEXT = @EXEEXT@
GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
GMOFILES = @GMOFILES@
GMSGFMT = @GMSGFMT@
GREP = @GREP@
GST_CFLAGS = @GST_CFLAGS@
GST_LIBS = @GST_LIBS@
HAVE_GSTREAMER = @HAVE_GSTREAMER@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
@ -77,9 +135,8 @@ LIBS = @LIBS@
LOCALEDIR = @LOCALEDIR@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@
MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
MAKEINFO = @MAKEINFO@
MKDIR_P = @MKDIR_P@
MKINSTALLDIRS = @MKINSTALLDIRS@
MSGFMT = @MSGFMT@
MSGFMT_OPTS = @MSGFMT_OPTS@
@ -104,42 +161,54 @@ STRIP = @STRIP@
USE_NLS = @USE_NLS@
VERSION = @VERSION@
XGETTEXT = @XGETTEXT@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_CC = @ac_ct_CC@
ac_ct_STRIP = @ac_ct_STRIP@
ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
bindir = @bindir@
build_alias = @build_alias@
builddir = @builddir@
datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
host_alias = @host_alias@
htmldir = @htmldir@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
AM_CFLAGS = -Wall #-fprofile-arcs -ftest-coverage -pg
INCLUDES = \
-DPACKAGE_DATA_DIR=\""$(datadir)"\" \
-DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
@PACKAGE_CFLAGS@ @GST_CFLAGS@
bin_PROGRAMS = bygfoot
bygfoot_SOURCES = \
bet.c bet.h finance.h fixture.h game_gui.h league.h main.h maths.h misc.h option.h player.h support.h treeview2.h user.h \
callback_func.c bet.h callback_func.h callbacks.h cup.h finance.h fixture.h game_gui.h gui.h league.h live_game.h maths.h misc.h option.h player.h start_end.h team.h transfer.h treeview.h treeview_helper.h user.h window.h \
@ -220,140 +289,50 @@ bygfoot_SOURCES = \
xml_team.c file.h free.h main.h misc.h option.h player.h team.h variables.h xml_team.h \
youth_academy.c free.h maths.h name.h option.h player.h team.h user.h youth_academy.h
bygfoot_LDADD = @PACKAGE_LIBS@ @GST_LIBS@ $(INTLLIBS)
subdir = src
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
bin_PROGRAMS = bygfoot$(EXEEXT)
PROGRAMS = $(bin_PROGRAMS)
am_bygfoot_OBJECTS = bet.$(OBJEXT) callback_func.$(OBJEXT) \
callbacks.$(OBJEXT) cup.$(OBJEXT) debug.$(OBJEXT) \
file.$(OBJEXT) finance.$(OBJEXT) fixture.$(OBJEXT) \
free.$(OBJEXT) game.$(OBJEXT) game_gui.$(OBJEXT) gui.$(OBJEXT) \
interface.$(OBJEXT) job.$(OBJEXT) language.$(OBJEXT) \
lg_commentary.$(OBJEXT) league.$(OBJEXT) live_game.$(OBJEXT) \
load_save.$(OBJEXT) main.$(OBJEXT) maths.$(OBJEXT) \
misc.$(OBJEXT) misc_callbacks.$(OBJEXT) \
misc_callback_func.$(OBJEXT) misc2_callbacks.$(OBJEXT) \
misc3_callbacks.$(OBJEXT) misc2_callback_func.$(OBJEXT) \
misc_interface.$(OBJEXT) misc2_interface.$(OBJEXT) \
misc3_interface.$(OBJEXT) name.$(OBJEXT) news.$(OBJEXT) \
option.$(OBJEXT) option_gui.$(OBJEXT) \
options_callbacks.$(OBJEXT) options_interface.$(OBJEXT) \
player.$(OBJEXT) start_end.$(OBJEXT) stat.$(OBJEXT) \
strategy.$(OBJEXT) support.$(OBJEXT) table.$(OBJEXT) \
team.$(OBJEXT) training.$(OBJEXT) training_callbacks.$(OBJEXT) \
training_interface.$(OBJEXT) transfer.$(OBJEXT) \
treeview.$(OBJEXT) treeview2.$(OBJEXT) \
treeview_helper.$(OBJEXT) user.$(OBJEXT) window.$(OBJEXT) \
xml.$(OBJEXT) xml_loadsave_cup.$(OBJEXT) \
xml_loadsave_fixtures.$(OBJEXT) xml_loadsave_jobs.$(OBJEXT) \
xml_loadsave_league.$(OBJEXT) \
xml_loadsave_leagues_cups.$(OBJEXT) \
xml_loadsave_league_stat.$(OBJEXT) \
xml_loadsave_live_game.$(OBJEXT) xml_loadsave_misc.$(OBJEXT) \
xml_loadsave_newspaper.$(OBJEXT) xml_loadsave_players.$(OBJEXT) \
xml_loadsave_season_stats.$(OBJEXT) \
xml_loadsave_table.$(OBJEXT) xml_loadsave_teams.$(OBJEXT) \
xml_loadsave_transfers.$(OBJEXT) xml_loadsave_users.$(OBJEXT) \
xml_cup.$(OBJEXT) xml_country.$(OBJEXT) xml_league.$(OBJEXT) \
xml_lg_commentary.$(OBJEXT) xml_mmatches.$(OBJEXT) \
xml_name.$(OBJEXT) xml_news.$(OBJEXT) xml_strategy.$(OBJEXT) \
xml_team.$(OBJEXT) youth_academy.$(OBJEXT)
bygfoot_OBJECTS = $(am_bygfoot_OBJECTS)
bygfoot_DEPENDENCIES =
bygfoot_LDFLAGS =
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
depcomp = $(SHELL) $(top_srcdir)/depcomp
am__depfiles_maybe = depfiles
@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/bet.Po ./$(DEPDIR)/callback_func.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/callbacks.Po ./$(DEPDIR)/cup.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/debug.Po ./$(DEPDIR)/file.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/finance.Po ./$(DEPDIR)/fixture.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/free.Po ./$(DEPDIR)/game.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/game_gui.Po ./$(DEPDIR)/gui.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/interface.Po ./$(DEPDIR)/job.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/language.Po ./$(DEPDIR)/league.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/lg_commentary.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/live_game.Po ./$(DEPDIR)/load_save.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/main.Po ./$(DEPDIR)/maths.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/misc.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/misc2_callback_func.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/misc2_callbacks.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/misc2_interface.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/misc3_callbacks.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/misc3_interface.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/misc_callback_func.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/misc_callbacks.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/misc_interface.Po ./$(DEPDIR)/name.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/news.Po ./$(DEPDIR)/option.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/option_gui.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/options_callbacks.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/options_interface.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/player.Po ./$(DEPDIR)/start_end.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/stat.Po ./$(DEPDIR)/strategy.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/support.Po ./$(DEPDIR)/table.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/team.Po ./$(DEPDIR)/training.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/training_callbacks.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/training_interface.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/transfer.Po ./$(DEPDIR)/treeview.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/treeview2.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/treeview_helper.Po ./$(DEPDIR)/user.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/window.Po ./$(DEPDIR)/xml.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/xml_country.Po ./$(DEPDIR)/xml_cup.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/xml_league.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/xml_lg_commentary.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/xml_loadsave_cup.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/xml_loadsave_fixtures.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/xml_loadsave_jobs.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/xml_loadsave_league.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/xml_loadsave_league_stat.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/xml_loadsave_leagues_cups.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/xml_loadsave_live_game.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/xml_loadsave_misc.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/xml_loadsave_newspaper.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/xml_loadsave_players.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/xml_loadsave_season_stats.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/xml_loadsave_table.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/xml_loadsave_teams.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/xml_loadsave_transfers.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/xml_loadsave_users.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/xml_mmatches.Po ./$(DEPDIR)/xml_name.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/xml_news.Po ./$(DEPDIR)/xml_strategy.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/xml_team.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/youth_academy.Po
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
DIST_SOURCES = $(bygfoot_SOURCES)
DIST_COMMON = Makefile.am Makefile.in
SOURCES = $(bygfoot_SOURCES)
all: all-am
.SUFFIXES:
.SUFFIXES: .c .o .obj
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
&& { if test -f $@; then exit 0; else break; fi; }; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu src/Makefile
Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
install-binPROGRAMS: $(bin_PROGRAMS)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(bindir)
test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
@list='$(bin_PROGRAMS)'; for p in $$list; do \
p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
if test -f $$p \
; then \
f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f"; \
$(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f || exit 1; \
echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
$(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
else :; fi; \
done
@ -361,18 +340,18 @@ uninstall-binPROGRAMS:
@$(NORMAL_UNINSTALL)
@list='$(bin_PROGRAMS)'; for p in $$list; do \
f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
rm -f $(DESTDIR)$(bindir)/$$f; \
echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
rm -f "$(DESTDIR)$(bindir)/$$f"; \
done
clean-binPROGRAMS:
-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
bygfoot$(EXEEXT): $(bygfoot_OBJECTS) $(bygfoot_DEPENDENCIES)
@rm -f bygfoot$(EXEEXT)
$(LINK) $(bygfoot_LDFLAGS) $(bygfoot_OBJECTS) $(bygfoot_LDADD) $(LIBS)
$(LINK) $(bygfoot_OBJECTS) $(bygfoot_LDADD) $(LIBS)
mostlyclean-compile:
-rm -f *.$(OBJEXT) core *.core
-rm -f *.$(OBJEXT)
distclean-compile:
-rm -f *.tab.c
@ -456,48 +435,29 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xml_team.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/youth_academy.Po@am__quote@
distclean-depend:
-rm -rf ./$(DEPDIR)
.c.o:
@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
@am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
@am__fastdepCC_TRUE@ fi
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(COMPILE) -c $<
.c.obj:
@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
@am__fastdepCC_TRUE@ -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'`; \
@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
@am__fastdepCC_TRUE@ fi
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(COMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'`
uninstall-info-am:
ETAGS = etags
ETAGSFLAGS =
CTAGS = ctags
CTAGSFLAGS =
tags: TAGS
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
mkid -fID $$unique
tags: TAGS
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
@ -507,23 +467,23 @@ TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
test -z "$(ETAGS_ARGS)$$tags$$unique" \
|| $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$tags $$unique
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$tags $$unique; \
fi
ctags: CTAGS
CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$tags $$unique
@ -535,28 +495,23 @@ GTAGS:
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
top_distdir = ..
distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
distdir: $(DISTFILES)
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
list='$(DISTFILES)'; for file in $$list; do \
case $$file in \
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
esac; \
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
list='$(DISTFILES)'; \
dist_files=`for file in $$list; do echo $$file; done | \
sed -e "s|^$$srcdirstrip/||;t" \
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
case $$dist_files in \
*/*) $(MKDIR_P) `echo "$$dist_files" | \
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
sort -u` ;; \
esac; \
for file in $$dist_files; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
dir="/$$dir"; \
$(mkinstalldirs) "$(distdir)$$dir"; \
else \
dir=''; \
fi; \
if test -d $$d/$$file; then \
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
fi; \
@ -570,10 +525,10 @@ distdir: $(DISTFILES)
check-am: all-am
check: check-am
all-am: Makefile $(PROGRAMS)
installdirs:
$(mkinstalldirs) $(DESTDIR)$(bindir)
for dir in "$(DESTDIR)$(bindir)"; do \
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
done
install: install-am
install-exec: install-exec-am
install-data: install-data-am
@ -585,7 +540,7 @@ install-am: all-am
installcheck: installcheck-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
INSTALL_STRIP_FLAG=-s \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
@ -593,7 +548,7 @@ mostlyclean-generic:
clean-generic:
distclean-generic:
-rm -f Makefile $(CONFIG_CLEAN_FILES)
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@ -603,30 +558,42 @@ clean: clean-am
clean-am: clean-binPROGRAMS clean-generic mostlyclean-am
distclean: distclean-am
distclean-am: clean-am distclean-compile distclean-depend \
distclean-generic distclean-tags
-rm -rf ./$(DEPDIR)
-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic \
distclean-tags
dvi: dvi-am
dvi-am:
html: html-am
info: info-am
info-am:
install-data-am:
install-dvi: install-dvi-am
install-exec-am: install-binPROGRAMS
install-html: install-html-am
install-info: install-info-am
install-man:
install-pdf: install-pdf-am
install-ps: install-ps-am
installcheck-am:
maintainer-clean: maintainer-clean-am
-rm -rf ./$(DEPDIR)
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
@ -641,18 +608,22 @@ ps: ps-am
ps-am:
uninstall-am: uninstall-binPROGRAMS uninstall-info-am
uninstall-am: uninstall-binPROGRAMS
.MAKE: install-am install-strip
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
clean-generic ctags distclean distclean-compile \
distclean-depend distclean-generic distclean-tags distdir dvi \
dvi-am info info-am install install-am install-binPROGRAMS \
install-data install-data-am install-exec install-exec-am \
install-info install-info-am install-man install-strip \
distclean-generic distclean-tags distdir dvi dvi-am html \
html-am info info-am install install-am install-binPROGRAMS \
install-data install-data-am install-dvi install-dvi-am \
install-exec install-exec-am install-html install-html-am \
install-info install-info-am install-man install-pdf \
install-pdf-am install-ps install-ps-am install-strip \
installcheck installcheck-am installdirs maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-compile \
mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \
uninstall-am uninstall-binPROGRAMS uninstall-info-am
uninstall-am uninstall-binPROGRAMS
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.

View File

@ -56,8 +56,15 @@ callback_show_next_live_game(void)
gint i, j;
for(i=0;i<users->len;i++)
for(i=0;i<users->len;i++) {
usr(i).counters[COUNT_USER_TOOK_TURN] = 0;
// Store the player order before the live match this process is
// repeated so check first if it hasn't been done yet
if (usr(i).default_team->len==0 && option_int("int_opt_user_store_restore_default_team",
&usr(i).options)) {
store_default_team(&usr(i));
}
}
counters[COUNT_NEWS_SHOWN] =
counters[COUNT_NEW_NEWS] = 0;
@ -94,6 +101,14 @@ callback_show_next_live_game(void)
window_destroy(&window.live);
/* Restore the player_order as it was before the match */
for(i=0;i<users->len;i++) {
if (usr(i).default_team->len!=0 && option_int("int_opt_user_store_restore_default_team",
&usr(i).options)) {
restore_default_team(&usr(i));
}
}
treeview_show_user_player_list();
/* no more user games to show: end round. */
end_week_round();

View File

@ -197,6 +197,7 @@ free_user(User *user)
free_g_array(&user->bets[0]);
free_g_array(&user->bets[1]);
g_array_free(user->default_team, TRUE);
}
/** Free the memorable matches array of the user and the memorable matches

View File

@ -47,6 +47,7 @@ enum BooleanOptions
BOOL_OPT_PROGRESSBAR_PICS,
BOOL_OPT_SKIP,
BOOL_OPT_AUTOSAVE,
BOOL_OPT_AUTO_STORE_RESTORE_DEFAULT_TEAM,
BOOL_OPT_SHOW_LIVE,
BOOL_OPT_SHOW_TENDENCY,
BOOL_OPT_PAUSE_INJURY,
@ -125,7 +126,9 @@ option_gui_write_bool_widgets(gint **bool_options, GtkToggleButton **bool_widget
bool_widgets[BOOL_OPT_SAVE_OVERWRITE] =
GTK_TOGGLE_BUTTON(lookup_widget(window.options, "checkbutton_save_overwrite"));
bool_options[BOOL_OPT_SAVE_OVERWRITE] = opt_intp("int_opt_save_will_overwrite");
bool_widgets[BOOL_OPT_AUTO_STORE_RESTORE_DEFAULT_TEAM] =
GTK_TOGGLE_BUTTON(lookup_widget(window.options, "checkbutton_store_restore_default_team"));
bool_options[BOOL_OPT_AUTO_STORE_RESTORE_DEFAULT_TEAM] = opt_user_intp("int_opt_user_store_restore_default_team");
bool_widgets[BOOL_OPT_MAXIMIZE] =
GTK_TOGGLE_BUTTON(lookup_widget(window.options, "checkbutton_maximize"));
bool_options[BOOL_OPT_MAXIMIZE] = opt_intp("int_opt_maximize_main_window");

View File

@ -94,9 +94,11 @@ create_window_options (void)
GtkWidget *label38;
GtkWidget *checkbutton_show_all_leagues;
GtkWidget *vseparator3;
GtkWidget *alignment7;
GtkWidget *vbox7;
GtkWidget *checkbutton_swap_adapts;
GtkWidget *checkbutton_show_overall;
GtkWidget *checkbutton_store_restore_default_team;
GtkWidget *label3;
GtkWidget *hbox4;
GtkWidget *vbox4;
@ -536,9 +538,13 @@ create_window_options (void)
gtk_box_pack_start (GTK_BOX (hbox6), vseparator3, FALSE, FALSE, 0);
gtk_widget_set_size_request (vseparator3, 10, 1);
alignment7 = gtk_alignment_new (0.5, 0.5, 1, 1);
gtk_widget_show (alignment7);
gtk_box_pack_start (GTK_BOX (hbox6), alignment7, TRUE, TRUE, 0);
vbox7 = gtk_vbox_new (FALSE, 0);
gtk_widget_show (vbox7);
gtk_box_pack_start (GTK_BOX (hbox6), vbox7, TRUE, TRUE, 0);
gtk_container_add (GTK_CONTAINER (alignment7), vbox7);
checkbutton_swap_adapts = gtk_check_button_new_with_mnemonic (_("Swap adapts structure"));
gtk_widget_show (checkbutton_swap_adapts);
@ -550,6 +556,11 @@ create_window_options (void)
gtk_box_pack_start (GTK_BOX (vbox7), checkbutton_show_overall, FALSE, FALSE, 0);
gtk_tooltips_set_tip (tooltips, checkbutton_show_overall, _("Whether to show the player games/goals value in all competitions"), NULL);
checkbutton_store_restore_default_team = gtk_check_button_new_with_mnemonic (_("Always store/restore your default team"));
gtk_widget_show (checkbutton_store_restore_default_team);
gtk_box_pack_start (GTK_BOX (vbox7), checkbutton_store_restore_default_team, FALSE, FALSE, 0);
gtk_tooltips_set_tip (tooltips, checkbutton_store_restore_default_team, _("Always store/restore your default team before/after a match"), NULL);
label3 = gtk_label_new (_("Gameplay"));
gtk_widget_show (label3);
gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 1), label3);
@ -1317,9 +1328,11 @@ create_window_options (void)
GLADE_HOOKUP_OBJECT (window_options, label38, "label38");
GLADE_HOOKUP_OBJECT (window_options, checkbutton_show_all_leagues, "checkbutton_show_all_leagues");
GLADE_HOOKUP_OBJECT (window_options, vseparator3, "vseparator3");
GLADE_HOOKUP_OBJECT (window_options, alignment7, "alignment7");
GLADE_HOOKUP_OBJECT (window_options, vbox7, "vbox7");
GLADE_HOOKUP_OBJECT (window_options, checkbutton_swap_adapts, "checkbutton_swap_adapts");
GLADE_HOOKUP_OBJECT (window_options, checkbutton_show_overall, "checkbutton_show_overall");
GLADE_HOOKUP_OBJECT (window_options, checkbutton_store_restore_default_team, "checkbutton_store_restore_default_team");
GLADE_HOOKUP_OBJECT (window_options, label3, "label3");
GLADE_HOOKUP_OBJECT (window_options, hbox4, "hbox4");
GLADE_HOOKUP_OBJECT (window_options, vbox4, "vbox4");

View File

@ -1671,3 +1671,4 @@ query_player_star_balks(const Player *pl, const Team *tm, gboolean transfer)
const_float("float_transfer_star_prob_decrease"));
}
}

View File

@ -29,6 +29,7 @@
#include "bygfoot.h"
#include "fixture_struct.h"
#include "maths.h"
#include "user_struct.h"
#include "player_struct.h"
#include "team_struct.h"

View File

@ -80,6 +80,7 @@ user_new(void)
new.bets[0] = g_array_new(FALSE, FALSE, sizeof(BetUser));
new.bets[1] = g_array_new(FALSE, FALSE, sizeof(BetUser));
new.default_team = g_array_new(FALSE, FALSE, sizeof(gint));
return new;
}
@ -1310,3 +1311,45 @@ user_mm_export_file(const gchar *filename)
g_array_free(mmatches, TRUE);
}
/**
* This will store the default team of a user
*/
void
store_default_team(User *user)
{
#ifdef DEBUG
printf("store_player_order\n");
#endif
gint i;
user->default_team = g_array_sized_new(FALSE, FALSE, sizeof(gint), user->tm->players->len);
for (i = 0; i < user->tm->players->len; i++) {
g_array_append_val(user->default_team, g_array_index(user->tm->players, Player, i).id);
}
user->default_structure = user->tm->structure;
}
/**
* This will restore the default team
*/
void
restore_default_team(User *user)
{
#ifdef DEBUG
printf("restore_player_order\n");
#endif
gint i, player1, player2;
for (i=0;i<user->tm->players->len; i++){
player1 = g_array_index(user->default_team, gint, i);
player2 = g_array_index(user->tm->players, Player, i).id;
if (player1 != player2) {
player_swap(user->tm,player_id_index(user->tm,player1), user->tm, player_id_index(user->tm,player2));
}
}
team_change_structure(user->tm, user->default_structure);
user->default_structure=-1;
g_array_free(user->default_team, TRUE);
user->default_team = g_array_new(FALSE, FALSE, sizeof(gint));
}

View File

@ -145,4 +145,10 @@ user_mm_load_file(const gchar *filename, GArray *mmatches);
void
user_mm_export_file(const gchar *filename);
void
store_default_team(User *user);
void
restore_default_team(User *user);
#endif

View File

@ -185,6 +185,10 @@ typedef struct
GArray *mmatches;
/** Array of current and recent bets. */
GArray *bets[2];
// An array of gint that will be used to store the default team of a user
GArray *default_team;
// the default structure of a user team.
gint default_structure;
} User;
enum EventType

View File

@ -13,6 +13,7 @@ int_opt_user_show_tendency_bar 1
int_opt_user_pause_injury 1
int_opt_user_pause_red 1
int_opt_user_pause_break 1
int_opt_user_store_restore_default_team 1
int_opt_user_auto_sub 0
int_opt_user_show_job_offers 1
int_opt_user_swap_adapts 1