mirror of
https://github.com/tstellar/bygfoot.git
synced 2025-02-21 14:01:03 +01:00
"Splash screen first draft."
This commit is contained in:
parent
f09635c29d
commit
653d236453
@ -2,6 +2,10 @@
|
||||
- fixed a bug that led to a 'cup not found' exit after a few
|
||||
seasons
|
||||
- fixed a minor youth academy bug
|
||||
- added a splash screen
|
||||
- added definition for the Euro 2008
|
||||
- added a definition for Sweden and a Swedish translation (thanks
|
||||
to Daniel Nylander)
|
||||
|
||||
|
||||
12/22/2005: v1.9.4
|
||||
|
File diff suppressed because one or more lines are too long
@ -571,38 +571,17 @@
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="team_selection_cancel">
|
||||
<widget class="GtkButton" id="button_team_selection_back">
|
||||
<property name="border_width">2</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="tooltip" translatable="yes">Esc</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="label">gtk-cancel</property>
|
||||
<property name="use_stock">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
<property name="focus_on_click">True</property>
|
||||
<signal name="clicked" handler="on_team_selection_cancel_clicked" last_modification_time="Wed, 12 May 2004 15:44:37 GMT"/>
|
||||
<accelerator key="Escape" modifiers="0" signal="clicked"/>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="team_selection_load">
|
||||
<property name="border_width">2</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="tooltip" translatable="yes">Ctrl-O</property>
|
||||
<property name="tooltip" translatable="yes">Go back to the splash screen</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
<property name="focus_on_click">True</property>
|
||||
<signal name="clicked" handler="on_team_selection_load_clicked" last_modification_time="Fri, 06 Feb 2004 17:05:28 GMT"/>
|
||||
<accelerator key="o" modifiers="GDK_CONTROL_MASK" signal="clicked"/>
|
||||
<signal name="clicked" handler="on_button_team_selection_back_clicked" last_modification_time="Wed, 15 Feb 2006 09:53:37 GMT"/>
|
||||
|
||||
<child>
|
||||
<widget class="GtkAlignment" id="alignment3">
|
||||
<widget class="GtkAlignment" id="alignment24">
|
||||
<property name="visible">True</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
@ -614,15 +593,15 @@
|
||||
<property name="right_padding">0</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkHBox" id="hbox6">
|
||||
<widget class="GtkHBox" id="hbox77">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">2</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkImage" id="image4">
|
||||
<widget class="GtkImage" id="image64">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-open</property>
|
||||
<property name="stock">gtk-go-back</property>
|
||||
<property name="icon_size">4</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
@ -637,85 +616,9 @@
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label5">
|
||||
<widget class="GtkLabel" id="label122">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Load game</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="button_startup_resume">
|
||||
<property name="visible">True</property>
|
||||
<property name="tooltip" translatable="yes">Load the last game that was saved or loaded.</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
<property name="focus_on_click">True</property>
|
||||
<signal name="clicked" handler="on_button_startup_resume_clicked" last_modification_time="Wed, 06 Apr 2005 10:52:45 GMT"/>
|
||||
|
||||
<child>
|
||||
<widget class="GtkAlignment" id="alignment21">
|
||||
<property name="visible">True</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xscale">0</property>
|
||||
<property name="yscale">0</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="GtkHBox" id="hbox70">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">2</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkImage" id="image61">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-revert-to-saved</property>
|
||||
<property name="icon_size">4</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label114">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">_Resume last game</property>
|
||||
<property name="label" translatable="yes">Back to splash</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
@ -743,6 +646,26 @@
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="team_selection_cancel">
|
||||
<property name="border_width">2</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="tooltip" translatable="yes">Esc</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="label">gtk-quit</property>
|
||||
<property name="use_stock">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
<property name="focus_on_click">True</property>
|
||||
<signal name="clicked" handler="on_team_selection_cancel_clicked" last_modification_time="Wed, 12 May 2004 15:44:37 GMT"/>
|
||||
<accelerator key="Escape" modifiers="0" signal="clicked"/>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
|
@ -200,4 +200,723 @@
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget class="GtkWindow" id="window_splash">
|
||||
<property name="border_width">5</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="title" translatable="yes"></property>
|
||||
<property name="type">GTK_WINDOW_TOPLEVEL</property>
|
||||
<property name="window_position">GTK_WIN_POS_CENTER_ALWAYS</property>
|
||||
<property name="modal">False</property>
|
||||
<property name="resizable">True</property>
|
||||
<property name="destroy_with_parent">False</property>
|
||||
<property name="decorated">True</property>
|
||||
<property name="skip_taskbar_hint">False</property>
|
||||
<property name="skip_pager_hint">False</property>
|
||||
<property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
|
||||
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
|
||||
<signal name="delete_event" handler="on_window_splash_delete_event" last_modification_time="Fri, 10 Feb 2006 14:27:35 GMT"/>
|
||||
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox2">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">3</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkNotebook" id="notebook1">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="show_tabs">True</property>
|
||||
<property name="show_border">True</property>
|
||||
<property name="tab_pos">GTK_POS_TOP</property>
|
||||
<property name="scrollable">False</property>
|
||||
<property name="enable_popup">False</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkImage" id="image1">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">bygfoot_splash.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="tab_expand">False</property>
|
||||
<property name="tab_fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label2">
|
||||
<property name="visible">True</property>
|
||||
<property name="label"> </property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="type">tab</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkScrolledWindow" id="scrolledwindow2">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="hscrollbar_policy">GTK_POLICY_ALWAYS</property>
|
||||
<property name="vscrollbar_policy">GTK_POLICY_ALWAYS</property>
|
||||
<property name="shadow_type">GTK_SHADOW_IN</property>
|
||||
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkTreeView" id="treeview_splash_contributors">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="headers_visible">True</property>
|
||||
<property name="rules_hint">False</property>
|
||||
<property name="reorderable">False</property>
|
||||
<property name="enable_search">True</property>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="tab_expand">False</property>
|
||||
<property name="tab_fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label3">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Contributors</property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="type">tab</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkHSeparator" id="hseparator3">
|
||||
<property name="width_request">1</property>
|
||||
<property name="height_request">10</property>
|
||||
<property name="visible">True</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox3">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">0</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkHBox" id="hbox2">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">3</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkImage" id="image2">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-dialog-info</property>
|
||||
<property name="icon_size">5</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label4">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes" comments="Splash screen hint question.">Did you know?</property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">True</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label_splash_hintcounter">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes"></property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="pack_type">GTK_PACK_END</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="button_splash_hint_back">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
<property name="focus_on_click">True</property>
|
||||
<signal name="clicked" handler="on_button_splash_hint_back_clicked" last_modification_time="Fri, 10 Feb 2006 14:49:00 GMT"/>
|
||||
|
||||
<child>
|
||||
<widget class="GtkAlignment" id="alignment4">
|
||||
<property name="visible">True</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xscale">0</property>
|
||||
<property name="yscale">0</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="GtkHBox" id="hbox8">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">2</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkImage" id="image6">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-go-back</property>
|
||||
<property name="icon_size">4</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label11">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Previous</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="button_splash_hint_next">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
<property name="focus_on_click">True</property>
|
||||
<signal name="clicked" handler="on_button_splash_hint_next_clicked" last_modification_time="Fri, 10 Feb 2006 14:49:10 GMT"/>
|
||||
|
||||
<child>
|
||||
<widget class="GtkAlignment" id="alignment5">
|
||||
<property name="visible">True</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xscale">0</property>
|
||||
<property name="yscale">0</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="GtkHBox" id="hbox9">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">2</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkImage" id="image7">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-go-forward</property>
|
||||
<property name="icon_size">4</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label12">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Next</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</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>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label_splash_hint">
|
||||
<property name="height_request">90</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes"></property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">True</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">5</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">True</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkHSeparator" id="hseparator4">
|
||||
<property name="width_request">1</property>
|
||||
<property name="height_request">10</property>
|
||||
<property name="visible">True</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkHBox" id="hbox3">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">3</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="button_splash_new_game">
|
||||
<property name="visible">True</property>
|
||||
<property name="tooltip" translatable="yes">Ctrl-N</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
<property name="focus_on_click">True</property>
|
||||
<signal name="clicked" handler="on_button_splash_new_game_clicked" last_modification_time="Fri, 10 Feb 2006 14:25:43 GMT"/>
|
||||
<accelerator key="n" modifiers="GDK_CONTROL_MASK" signal="clicked"/>
|
||||
|
||||
<child>
|
||||
<widget class="GtkAlignment" id="alignment1">
|
||||
<property name="visible">True</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xscale">0</property>
|
||||
<property name="yscale">0</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="GtkHBox" id="hbox4">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">2</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkImage" id="image3">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-new</property>
|
||||
<property name="icon_size">4</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label7">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Start _new game</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="button_splash_load_game">
|
||||
<property name="visible">True</property>
|
||||
<property name="tooltip" translatable="yes">Ctrl-O</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
<property name="focus_on_click">True</property>
|
||||
<signal name="clicked" handler="on_button_splash_load_game_clicked" last_modification_time="Fri, 10 Feb 2006 14:25:49 GMT"/>
|
||||
<accelerator key="o" modifiers="GDK_CONTROL_MASK" signal="clicked"/>
|
||||
|
||||
<child>
|
||||
<widget class="GtkAlignment" id="alignment2">
|
||||
<property name="visible">True</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xscale">0</property>
|
||||
<property name="yscale">0</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="GtkHBox" id="hbox5">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">2</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkImage" id="image4">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-open</property>
|
||||
<property name="icon_size">4</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label8">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">_Load game</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="button_splash_resume_game">
|
||||
<property name="visible">True</property>
|
||||
<property name="tooltip" translatable="yes">Ctrl-R</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
<property name="focus_on_click">True</property>
|
||||
<signal name="clicked" handler="on_button_splash_resume_game_clicked" last_modification_time="Fri, 10 Feb 2006 14:26:33 GMT"/>
|
||||
<accelerator key="r" modifiers="GDK_CONTROL_MASK" signal="clicked"/>
|
||||
|
||||
<child>
|
||||
<widget class="GtkAlignment" id="alignment3">
|
||||
<property name="visible">True</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xscale">0</property>
|
||||
<property name="yscale">0</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="GtkHBox" id="hbox6">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">2</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkImage" id="image5">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-revert-to-saved</property>
|
||||
<property name="icon_size">4</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label9">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">_Resume game</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="button_splash_quit">
|
||||
<property name="visible">True</property>
|
||||
<property name="tooltip" translatable="yes">Esc</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="label">gtk-quit</property>
|
||||
<property name="use_stock">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
<property name="focus_on_click">True</property>
|
||||
<signal name="clicked" handler="on_button_splash_quit_clicked" last_modification_time="Fri, 10 Feb 2006 14:27:04 GMT"/>
|
||||
<accelerator key="Escape" modifiers="0" signal="clicked"/>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkHBox" id="hbox7">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">5</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label_splash_progress">
|
||||
<property name="width_request">400</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Ready</property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkProgressBar" id="progressbar_splash">
|
||||
<property name="height_request">10</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="orientation">GTK_PROGRESS_LEFT_TO_RIGHT</property>
|
||||
<property name="fraction">0</property>
|
||||
<property name="pulse_step">0.10000000149</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="pack_type">GTK_PACK_END</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
</glade-interface>
|
||||
|
@ -1,86 +0,0 @@
|
||||
## Process this file with automake to produce Makefile.in
|
||||
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 bet_struct.h \
|
||||
callback_func.c 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 \
|
||||
callbacks.c callback_func.h callbacks.h debug.h free.h game_gui.h game.h gui.h league.h load_save.h main.h option.h player.h table.h team.h transfer.h treeview2.h treeview.h treeview_helper.h user.h window.h \
|
||||
cup.c cup.h fixture.h free.h league.h main.h maths.h misc.h option.h table.h team.h variables.h xml_league.h \
|
||||
debug.c callbacks.h debug.h game_gui.h option.h support.h user.h variables.h \
|
||||
file.c file.h free.h main.h misc.h option.h support.h variables.h \
|
||||
finance.c callbacks.h finance.h game_gui.h maths.h option.h player.h team.h user.h \
|
||||
fixture.c cup.h fixture.h free.h league.h main.h maths.h misc.h option.h table.h team.h user.h variables.h \
|
||||
free.c free.h lg_commentary_struct.h transfer.h user.h variables.h \
|
||||
game.c cup.h finance.h fixture.h game_gui.h game.h league.h live_game.h main.h maths.h misc.h option.h player.h table.h team.h treeview.h user.h variables.h \
|
||||
game_gui.c callbacks.h file.h game_gui.h gui.h league.h live_game.h maths.h misc.h option.h support.h team.h treeview.h user.h variables.h window.h \
|
||||
gui.c gui.h misc.h support.h variables.h window.h \
|
||||
interface.c callbacks.h interface.h support.h \
|
||||
job.c job.h \
|
||||
language.c callbacks.h free.h language.h lg_commentary.h misc.h option.h variables.h window.h \
|
||||
lg_commentary.c cup.h file.h fixture.h free.h league.h lg_commentary.h live_game.h main.h maths.h misc.h option.h player.h team.h variables.h xml_lg_commentary.h \
|
||||
league.c cup.h free.h league.h main.h maths.h misc.h option.h player.h stat.h table.h team.h user.h variables.h \
|
||||
live_game.c callbacks.h fixture.h free.h game_gui.h game.h league.h lg_commentary.h live_game.h main.h maths.h misc_callback_func.h misc.h option.h player.h support.h team.h treeview.h user.h variables.h window.h \
|
||||
load_save.c callbacks.h file.h game_gui.h gui.h language.h load_save.h misc.h option.h support.h user.h variables.h window.h xml.h xml_loadsave_cup.h xml_loadsave_league.h xml_loadsave_leagues_cups.h xml_loadsave_misc.h xml_loadsave_season_stats.h xml_loadsave_transfers.h xml_loadsave_users.h \
|
||||
main.c file.h free.h language.h lg_commentary_struct.h live_game.h load_save.h main.h misc_callbacks.h misc.h name_struct.h option.h stat_struct.h team_struct.h transfer_struct.h variables.h window.h \
|
||||
maths.c maths.h misc.h variables.h \
|
||||
misc.c main.h maths.h misc.h \
|
||||
misc_callbacks.c callback_func.h callbacks.h game_gui.h game.h gui.h live_game.h load_save.h main.h maths.h misc_callback_func.h misc_callbacks.h option.h user.h variables.h window.h xml_country.h \
|
||||
misc_callback_func.c callbacks.h finance.h game_gui.h game.h gui.h load_save.h maths.h misc_callback_func.h misc.h option.h start_end.h support.h treeview.h treeview_helper.h user.h variables.h window.h xml_country.h xml_name.h \
|
||||
misc2_callbacks.c callback_func.h callbacks.h debug.h finance.h free.h game_gui.h load_save.h main.h misc2_callback_func.h misc2_callbacks.h misc2_interface.h player.h support.h transfer.h treeview2.h treeview.h treeview_helper.h user.h window.h \
|
||||
misc3_callbacks.c misc3_callbacks.h misc3_interface.h support.h \
|
||||
misc2_callback_func.c callback_func.h callbacks.h file.h finance.h free.h game_gui.h maths.h misc2_callback_func.h misc.h option.h player.h support.h team.h transfer.h treeview2.h treeview.h treeview_helper.h user.h window.h \
|
||||
misc_interface.c misc_callbacks.h misc_interface.h support.h \
|
||||
misc2_interface.c misc2_callbacks.h misc2_interface.h support.h \
|
||||
misc3_interface.c misc3_callbacks.h misc3_interface.h support.h \
|
||||
name.c main.h name.h option.h variables.h xml_name.h \
|
||||
option.c main.h misc.h option.h variables.h \
|
||||
option_gui.c callbacks.h file.h game_gui.h language.h misc.h option_gui.h option.h support.h treeview.h user.h variables.h \
|
||||
options_callbacks.c file.h option_gui.h options_callbacks.h options_interface.h support.h user.h variables.h window.h \
|
||||
options_interface.c options_callbacks.h options_interface.h support.h \
|
||||
player.c cup.h fixture.h free.h game_gui.h league.h main.h maths.h misc.h name.h option.h player.h team.h transfer.h user.h \
|
||||
start_end.c cup.h file.h finance.h fixture.h free.h game_gui.h gui.h league.h live_game.h load_save.h main.h maths.h misc.h name.h option.h start_end.h stat.h table.h team.h transfer.h user.h variables.h xml_name.h xml_strategy.h youth_academy.h \
|
||||
stat.c cup.h free.h league.h option.h player.h stat.h table_struct.h team.h variables.h \
|
||||
strategy.c main.h misc.h player.h strategy.h team.h \
|
||||
support.c support.h \
|
||||
table.c cup.h league.h misc.h table.h variables.h \
|
||||
team.c cup.h file.h fixture.h game_gui.h game.h league.h main.h maths.h misc.h option.h player.h strategy.h team.h transfer.h user.h xml_team.h \
|
||||
transfer.c callbacks.h cup.h finance.h free.h game_gui.h main.h maths.h misc.h option.h player.h support.h team.h transfer.h treeview.h user.h \
|
||||
treeview.c cup.h finance.h fixture.h free.h game.h language.h league.h live_game.h maths.h misc.h option.h player.h support.h team.h transfer.h treeview.h treeview_helper.h user.h \
|
||||
treeview2.c fixture.h league.h live_game.h option.h support.h treeview2.h treeview_helper.h user.h \
|
||||
treeview_helper.c cup.h file.h fixture.h free.h league.h misc.h option.h player.h support.h team.h transfer.h treeview2.h treeview.h treeview_helper.h user.h variables.h \
|
||||
user.c cup.h file.h finance.h fixture.h free.h game_gui.h league.h live_game.h main.h maths.h misc.h name.h option.h player.h support.h team.h transfer.h treeview.h user.h window.h xml_mmatches.h youth_academy.h \
|
||||
window.c callbacks.h file.h finance.h free.h game_gui.h gui.h interface.h league.h live_game.h load_save.h main.h misc2_interface.h misc_callback_func.h misc_interface.h option_gui.h option.h options_interface.h support.h transfer.h treeview2.h treeview.h treeview_helper.h user.h window.h \
|
||||
xml.c cup.h file.h free.h gui.h league.h misc.h option.h support.h table.h transfer_struct.h user.h variables.h xml.h xml_loadsave_cup.h xml_loadsave_fixtures.h xml_loadsave_league.h xml_loadsave_league_stat.h xml_loadsave_live_game.h xml_loadsave_table.h xml_loadsave_teams.h xml_loadsave_transfers.h xml_loadsave_users.h \
|
||||
xml_loadsave_cup.c cup.h file.h misc.h table.h team.h xml.h xml_loadsave_cup.h xml_loadsave_fixtures.h xml_loadsave_table.h xml_loadsave_teams.h \
|
||||
xml_loadsave_fixtures.c file.h fixture.h misc.h team.h xml.h xml_loadsave_fixtures.h \
|
||||
xml_loadsave_jobs.c xml_loadsave_jobs.h \
|
||||
xml_loadsave_league.c file.h league.h misc.h xml.h xml_loadsave_cup.h xml_loadsave_fixtures.h xml_loadsave_league.h xml_loadsave_league_stat.h xml_loadsave_table.h xml_loadsave_teams.h \
|
||||
xml_loadsave_leagues_cups.c cup.h file.h free.h league_struct.h misc.h xml.h xml_loadsave_cup.h xml_loadsave_league.h xml_loadsave_leagues_cups.h \
|
||||
xml_loadsave_league_stat.c file.h misc.h stat.h team.h xml.h xml_loadsave_league_stat.h \
|
||||
xml_loadsave_live_game.c cup.h file.h fixture.h league.h live_game.h misc.h option.h variables.h xml.h xml_loadsave_live_game.h \
|
||||
xml_loadsave_misc.c cup.h file.h misc.h variables.h xml.h xml_loadsave_cup.h xml_loadsave_league.h xml_loadsave_misc.h \
|
||||
xml_loadsave_players.c misc.h player.h team.h xml.h xml_loadsave_players.h \
|
||||
xml_loadsave_season_stats.c file.h free.h misc.h stat.h variables.h xml.h xml_loadsave_league_stat.h xml_loadsave_season_stats.h \
|
||||
xml_loadsave_table.c file.h misc.h team.h xml.h xml_loadsave_table.h \
|
||||
xml_loadsave_teams.c file.h misc.h player.h team.h xml.h xml_loadsave_players.h xml_loadsave_teams.h \
|
||||
xml_loadsave_transfers.c file.h misc.h team.h transfer.h xml.h xml_loadsave_transfers.h \
|
||||
xml_loadsave_users.c file.h misc.h team.h user.h variables.h xml.h xml_loadsave_live_game.h xml_loadsave_players.h xml_loadsave_users.h \
|
||||
xml_cup.c cup.h file.h main.h misc.h option.h variables.h xml_cup.h \
|
||||
xml_country.c file.h free.h misc.h option.h variables.h xml_country.h xml_cup.h xml_league.h \
|
||||
xml_league.c cup_struct.h file.h free.h league.h misc.h option.h table.h team.h variables.h xml_cup.h xml_league.h \
|
||||
xml_lg_commentary.c free.h lg_commentary.h live_game.h misc.h variables.h xml_lg_commentary.h \
|
||||
xml_mmatches.c file.h free.h live_game.h misc.h user.h xml.h xml_loadsave_live_game.h xml_mmatches.h \
|
||||
xml_name.c file.h free.h misc.h name.h variables.h xml_name.h \
|
||||
xml_strategy.c file.h free.h main.h misc.h team_struct.h xml_strategy.h \
|
||||
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)
|
||||
|
@ -40,7 +40,7 @@
|
||||
/**
|
||||
* Program version number.
|
||||
*/
|
||||
#define VERS "1.9.4"
|
||||
#define VERS "1.9.5"
|
||||
|
||||
/** Home dir name */
|
||||
#define HOMEDIRNAME ".bygfoot-cvs"
|
||||
@ -162,7 +162,8 @@ typedef struct
|
||||
*transfer_dialog,
|
||||
*sponsors,
|
||||
*mmatches,
|
||||
*bets;
|
||||
*bets,
|
||||
*splash;
|
||||
|
||||
/** The position of the horizontal divider is stored here. */
|
||||
gint paned_pos;
|
||||
|
@ -38,6 +38,7 @@ enum Counters
|
||||
COUNT_FIX_ID,
|
||||
COUNT_LG_COMM_ID,
|
||||
COUNT_SHOW_DEBUG,
|
||||
COUNT_HINT_NUMBER,
|
||||
COUNT_END
|
||||
};
|
||||
|
||||
@ -123,7 +124,7 @@ enum Status0Value
|
||||
STATUS_SHOW_PREVIEW,
|
||||
STATUS_SAVE_GAME,
|
||||
STATUS_LOAD_GAME,
|
||||
STATUS_LOAD_GAME_TEAM_SELECTION,
|
||||
STATUS_LOAD_GAME_SPLASH,
|
||||
STATUS_QUERY_UNFIT,
|
||||
STATUS_QUERY_QUIT,
|
||||
STATUS_QUERY_USER_NO_TURN,
|
||||
@ -139,6 +140,7 @@ enum Status0Value
|
||||
STATUS_PLACE_BET,
|
||||
STATUS_SHOW_JOB_EXCHANGE,
|
||||
STATUS_JOB_EXCHANGE_SHOW_TEAM,
|
||||
STATUS_SPLASH,
|
||||
STATUS_END
|
||||
};
|
||||
|
||||
|
117
src/file.c
117
src/file.c
@ -184,9 +184,10 @@ file_check_home_dir_create_dirs(void)
|
||||
}
|
||||
}
|
||||
|
||||
/** Copy the basic config files into the user home dir. */
|
||||
/** Add the basic config files to the list of file to copy
|
||||
into the user home dir. */
|
||||
void
|
||||
file_check_home_dir_copy_conf_files(void)
|
||||
file_check_home_dir_get_conf_files(GPtrArray **files_to_copy)
|
||||
{
|
||||
gint i;
|
||||
gchar *conf_files[2] =
|
||||
@ -203,14 +204,17 @@ file_check_home_dir_copy_conf_files(void)
|
||||
if(!g_file_test(buf, G_FILE_TEST_EXISTS))
|
||||
{
|
||||
conf_file = file_find_support_file(conf_files[i], TRUE);
|
||||
file_copy_file(conf_file, buf);
|
||||
g_ptr_array_add(files_to_copy[0], g_strdup(conf_file));
|
||||
g_ptr_array_add(files_to_copy[1], g_strdup(buf));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** Copy the xml definition files into the home dir. */
|
||||
/** Add the xml definition files to the list of files to copy
|
||||
into the home dir. */
|
||||
void
|
||||
file_check_home_dir_copy_definition_dir(const gchar *dirname, const gchar *basename)
|
||||
file_check_home_dir_get_definition_dir(const gchar *dirname, const gchar *basename,
|
||||
GPtrArray **files_to_copy)
|
||||
{
|
||||
gint i;
|
||||
gchar buf[SMALL], buf2[SMALL];
|
||||
@ -237,7 +241,8 @@ file_check_home_dir_copy_definition_dir(const gchar *dirname, const gchar *basen
|
||||
|
||||
sprintf(buf2, "%s%s%s", dirname, G_DIR_SEPARATOR_S,
|
||||
(gchar*)g_ptr_array_index(dir_contents, i));
|
||||
file_copy_file(buf2, buf);
|
||||
g_ptr_array_add(files_to_copy[0], g_strdup(buf2));
|
||||
g_ptr_array_add(files_to_copy[1], g_strdup(buf));
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -248,7 +253,7 @@ file_check_home_dir_copy_definition_dir(const gchar *dirname, const gchar *basen
|
||||
{
|
||||
sprintf(buf2, "%s%s%s", basename, G_DIR_SEPARATOR_S,
|
||||
(gchar*)g_ptr_array_index(dir_contents, i));
|
||||
file_check_home_dir_copy_definition_dir(buf, buf2);
|
||||
file_check_home_dir_get_definition_dir(buf, buf2, files_to_copy);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -256,28 +261,97 @@ file_check_home_dir_copy_definition_dir(const gchar *dirname, const gchar *basen
|
||||
free_gchar_array(&dir_contents);
|
||||
}
|
||||
|
||||
/** Copy the xml definition files into the home dir. */
|
||||
/** Step through the support dirs to find xml definition files
|
||||
that get copied into the home dir. */
|
||||
void
|
||||
file_check_home_dir_copy_definition_files(void)
|
||||
file_check_home_dir_get_definition_files(GPtrArray **files_to_copy)
|
||||
{
|
||||
GList *elem = support_directories;
|
||||
|
||||
while(elem != NULL)
|
||||
{
|
||||
if(g_str_has_suffix((gchar*)elem->data, "definitions"))
|
||||
file_check_home_dir_copy_definition_dir((const gchar*)elem->data, "definitions");
|
||||
file_check_home_dir_get_definition_dir((const gchar*)elem->data,
|
||||
"definitions",
|
||||
files_to_copy);
|
||||
|
||||
elem = elem->next;
|
||||
}
|
||||
}
|
||||
|
||||
/** Copy some files into the user's home directory. */
|
||||
/** Execute the copy commands on the files assembled earlier. */
|
||||
void
|
||||
file_check_home_dir_copy_files(GPtrArray **files_to_copy)
|
||||
{
|
||||
gint i;
|
||||
gchar buf[SMALL];
|
||||
const gchar *filename = NULL;
|
||||
GtkLabel *label_splash_progress =
|
||||
GTK_LABEL(lookup_widget(window.splash, "label_splash_progress"));
|
||||
GtkProgressBar *progressbar_splash =
|
||||
GTK_PROGRESS_BAR(lookup_widget(window.splash, "progressbar_splash"));
|
||||
GtkWidget *hint_buttons[2] =
|
||||
{lookup_widget(window.splash, "button_splash_hint_back"),
|
||||
lookup_widget(window.splash, "button_splash_hint_next")};
|
||||
GtkWidget *hbox_buttons = lookup_widget(window.splash, "hbox3");
|
||||
|
||||
if(files_to_copy[0]->len > 0)
|
||||
{
|
||||
gtk_widget_set_sensitive(hint_buttons[0], FALSE);
|
||||
gtk_widget_set_sensitive(hint_buttons[1], FALSE);
|
||||
gtk_widget_set_sensitive(hbox_buttons, FALSE);
|
||||
}
|
||||
|
||||
for(i=0;i<files_to_copy[0]->len;i++)
|
||||
{
|
||||
filename = g_strrstr((gchar*)g_ptr_array_index(files_to_copy[0], i),
|
||||
G_DIR_SEPARATOR_S);
|
||||
if(filename == NULL)
|
||||
filename = (gchar*)g_ptr_array_index(files_to_copy[0], i);
|
||||
else
|
||||
filename = filename + 1;
|
||||
|
||||
sprintf(buf, _("Copying %s"), filename);
|
||||
gtk_label_set_text(label_splash_progress, buf);
|
||||
gtk_progress_bar_set_fraction(progressbar_splash,
|
||||
(gdouble)i /(gdouble)files_to_copy[0]->len);
|
||||
while(gtk_events_pending())
|
||||
gtk_main_iteration();
|
||||
|
||||
file_copy_file((gchar*)g_ptr_array_index(files_to_copy[0], i),
|
||||
(gchar*)g_ptr_array_index(files_to_copy[1], i));
|
||||
}
|
||||
|
||||
gtk_progress_bar_set_fraction(progressbar_splash, 1);
|
||||
gtk_label_set_text(label_splash_progress, _("Ready"));
|
||||
|
||||
while(gtk_events_pending())
|
||||
gtk_main_iteration();
|
||||
|
||||
if(files_to_copy[0]->len > 0)
|
||||
{
|
||||
gtk_widget_set_sensitive(hint_buttons[0], TRUE);
|
||||
gtk_widget_set_sensitive(hint_buttons[1], TRUE);
|
||||
gtk_widget_set_sensitive(hbox_buttons, TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
/** Copy some files into the user's home directory. */
|
||||
gboolean
|
||||
file_check_home_dir(void)
|
||||
{
|
||||
GPtrArray *files_to_copy[2] = {g_ptr_array_new(),
|
||||
g_ptr_array_new()};
|
||||
|
||||
file_check_home_dir_create_dirs();
|
||||
file_check_home_dir_copy_conf_files();
|
||||
file_check_home_dir_copy_definition_files();
|
||||
file_check_home_dir_get_conf_files(files_to_copy);
|
||||
file_check_home_dir_get_definition_files(files_to_copy);
|
||||
file_check_home_dir_copy_files(files_to_copy);
|
||||
|
||||
free_gchar_array(&(files_to_copy[0]));
|
||||
free_gchar_array(&(files_to_copy[1]));
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -480,6 +554,7 @@ file_load_conf_files(void)
|
||||
file_load_opt_file(opt_str("string_opt_constants_file"), &constants);
|
||||
file_load_opt_file(opt_str("string_opt_appearance_file"), &constants_app);
|
||||
file_load_opt_file("bygfoot_tokens", &tokens);
|
||||
file_load_opt_file("bygfoot_hints", &hints);
|
||||
|
||||
for(i=0;i<tokens.list->len;i++)
|
||||
g_array_index(tokens.list, Option, i).value = i;
|
||||
@ -658,3 +733,19 @@ file_copy_file(const gchar *source_file, const gchar *dest_file)
|
||||
|
||||
file_my_system(buf);
|
||||
}
|
||||
|
||||
/** Find out where the Bygfoot directory we can write to resides
|
||||
and write the location into the string. */
|
||||
void
|
||||
file_get_bygfoot_dir(gchar *dir)
|
||||
{
|
||||
const gchar *home = g_get_home_dir();
|
||||
gchar *pwd = g_get_current_dir();
|
||||
|
||||
if(os_is_unix)
|
||||
sprintf(dir, "%s%s%s", home, G_DIR_SEPARATOR_S, HOMEDIRNAME);
|
||||
else
|
||||
sprintf(dir, "%s%s", pwd, G_DIR_SEPARATOR_S);
|
||||
|
||||
g_free(pwd);
|
||||
}
|
||||
|
15
src/file.h
15
src/file.h
@ -66,17 +66,21 @@ file_load_conf_files(void);
|
||||
void
|
||||
file_load_user_conf_file(User *user);
|
||||
|
||||
void
|
||||
gboolean
|
||||
file_check_home_dir(void);
|
||||
|
||||
void
|
||||
file_check_home_dir_copy_conf_files(void);
|
||||
file_check_home_dir_get_conf_files(GPtrArray **files_to_copy);
|
||||
|
||||
void
|
||||
file_check_home_dir_copy_definition_files(void);
|
||||
file_check_home_dir_get_definition_files(GPtrArray **files_to_copy);
|
||||
|
||||
void
|
||||
file_check_home_dir_copy_definition_dir(const gchar *dirname, const gchar *basename);
|
||||
file_check_home_dir_get_definition_dir(const gchar *dirname, const gchar *basename,
|
||||
GPtrArray **files_to_copy);
|
||||
|
||||
void
|
||||
file_check_home_dir_copy_files(GPtrArray **files_to_copy);
|
||||
|
||||
gboolean
|
||||
file_my_system(const gchar *command);
|
||||
@ -99,4 +103,7 @@ file_remove_files(const gchar *files);
|
||||
void
|
||||
file_copy_file(const gchar *source_file, const gchar *dest_file);
|
||||
|
||||
void
|
||||
file_get_bygfoot_dir(gchar *dir);
|
||||
|
||||
#endif
|
||||
|
20
src/main.c
20
src/main.c
@ -175,6 +175,7 @@ main_init_variables(void)
|
||||
|
||||
counters[COUNT_LEAGUE_ID] = ID_LEAGUE_START;
|
||||
counters[COUNT_CUP_ID] = ID_CUP_START;
|
||||
counters[COUNT_HINT_NUMBER] = -1;
|
||||
|
||||
window.main = window.startup =
|
||||
window.live = window.warning = window.progress = window.digits =
|
||||
@ -182,7 +183,7 @@ main_init_variables(void)
|
||||
window.options = window.font_sel =
|
||||
window.file_chooser = window.contract =
|
||||
window.menu_player = window.user_management =
|
||||
window.mmatches = window.bets = NULL;
|
||||
window.mmatches = window.bets = window.splash = NULL;
|
||||
|
||||
live_game_reset(&live_game_temp, NULL, FALSE);
|
||||
|
||||
@ -199,9 +200,11 @@ main_init_variables(void)
|
||||
save_file = NULL;
|
||||
|
||||
constants_app.list = settings.list =
|
||||
constants.list = options.list = tokens.list = NULL;
|
||||
constants.list = options.list = tokens.list =
|
||||
hints.list = NULL;
|
||||
constants_app.datalist = settings.datalist =
|
||||
constants.datalist = options.datalist = tokens.datalist = NULL;
|
||||
constants.datalist = options.datalist =
|
||||
tokens.datalist = hints.datalist = NULL;
|
||||
|
||||
popups_active = 0;
|
||||
selected_row = -1;
|
||||
@ -266,9 +269,6 @@ main_init(gint *argc, gchar ***argv)
|
||||
|
||||
main_init_variables();
|
||||
|
||||
if(os_is_unix)
|
||||
file_check_home_dir();
|
||||
|
||||
load_last_save = FALSE;
|
||||
main_parse_cl_arguments(argc, argv);
|
||||
}
|
||||
@ -301,8 +301,12 @@ main (gint argc, gchar *argv[])
|
||||
(!load_last_save && (argc == 1 ||
|
||||
(argc > 1 && !load_game_from_command_line(argv[1])))))
|
||||
{
|
||||
window_show_startup();
|
||||
stat0 = STATUS_TEAM_SELECTION;
|
||||
stat0 = STATUS_SPLASH;
|
||||
window_show_splash();
|
||||
|
||||
if(os_is_unix)
|
||||
/* g_timeout_add(20, (GSourceFunc)file_check_home_dir(), NULL); */
|
||||
file_check_home_dir();
|
||||
}
|
||||
|
||||
gtk_main ();
|
||||
|
@ -25,6 +25,8 @@
|
||||
|
||||
#include "bet.h"
|
||||
#include "fixture.h"
|
||||
#include "main.h"
|
||||
#include "misc_callback_func.h"
|
||||
#include "misc3_callbacks.h"
|
||||
#include "misc3_interface.h"
|
||||
#include "option.h"
|
||||
@ -157,3 +159,72 @@ on_checkbutton_bet_user_recent_button_press_event
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
gboolean
|
||||
on_window_splash_delete_event (GtkWidget *widget,
|
||||
GdkEvent *event,
|
||||
gpointer user_data)
|
||||
{
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
on_button_splash_new_game_clicked (GtkButton *button,
|
||||
gpointer user_data)
|
||||
{
|
||||
window_destroy(&window.splash, FALSE);
|
||||
|
||||
window_show_startup();
|
||||
stat0 = STATUS_TEAM_SELECTION;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
on_button_splash_load_game_clicked (GtkButton *button,
|
||||
gpointer user_data)
|
||||
{
|
||||
stat5 = STATUS_LOAD_GAME_SPLASH;
|
||||
window_show_file_sel();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
on_button_splash_resume_game_clicked (GtkButton *button,
|
||||
gpointer user_data)
|
||||
{
|
||||
misc_callback_startup_load("last_save");
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
on_button_splash_quit_clicked (GtkButton *button,
|
||||
gpointer user_data)
|
||||
{
|
||||
window_destroy(&window.splash, FALSE);
|
||||
main_exit_program(EXIT_OK, NULL);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
on_button_splash_hint_back_clicked (GtkButton *button,
|
||||
gpointer user_data)
|
||||
{
|
||||
counters[COUNT_HINT_NUMBER] = (counters[COUNT_HINT_NUMBER] == 0) ?
|
||||
hints.list->len - 1 : counters[COUNT_HINT_NUMBER] - 1;
|
||||
|
||||
window_splash_show_hint();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
on_button_splash_hint_next_clicked (GtkButton *button,
|
||||
gpointer user_data)
|
||||
{
|
||||
counters[COUNT_HINT_NUMBER] =
|
||||
(counters[COUNT_HINT_NUMBER] + 1) % hints.list->len;
|
||||
|
||||
window_splash_show_hint();
|
||||
}
|
||||
|
||||
|
@ -60,3 +60,32 @@ on_checkbutton_bet_user_recent_button_press_event
|
||||
GdkEventButton *event,
|
||||
gpointer user_data);
|
||||
#endif
|
||||
|
||||
gboolean
|
||||
on_window_splash_delete_event (GtkWidget *widget,
|
||||
GdkEvent *event,
|
||||
gpointer user_data);
|
||||
|
||||
void
|
||||
on_button_splash_new_game_clicked (GtkButton *button,
|
||||
gpointer user_data);
|
||||
|
||||
void
|
||||
on_button_splash_load_game_clicked (GtkButton *button,
|
||||
gpointer user_data);
|
||||
|
||||
void
|
||||
on_button_splash_resume_game_clicked (GtkButton *button,
|
||||
gpointer user_data);
|
||||
|
||||
void
|
||||
on_button_splash_quit_clicked (GtkButton *button,
|
||||
gpointer user_data);
|
||||
|
||||
void
|
||||
on_button_splash_hint_back_clicked (GtkButton *button,
|
||||
gpointer user_data);
|
||||
|
||||
void
|
||||
on_button_splash_hint_next_clicked (GtkButton *button,
|
||||
gpointer user_data);
|
||||
|
@ -148,3 +148,346 @@ create_window_bets (void)
|
||||
return window_bets;
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
create_window_splash (void)
|
||||
{
|
||||
GtkWidget *window_splash;
|
||||
GtkWidget *vbox2;
|
||||
GtkWidget *notebook1;
|
||||
GtkWidget *image1;
|
||||
GtkWidget *label2;
|
||||
GtkWidget *scrolledwindow2;
|
||||
GtkWidget *treeview_splash_contributors;
|
||||
GtkWidget *label3;
|
||||
GtkWidget *hseparator3;
|
||||
GtkWidget *vbox3;
|
||||
GtkWidget *hbox2;
|
||||
GtkWidget *image2;
|
||||
GtkWidget *label4;
|
||||
GtkWidget *label_splash_hintcounter;
|
||||
GtkWidget *button_splash_hint_back;
|
||||
GtkWidget *alignment4;
|
||||
GtkWidget *hbox8;
|
||||
GtkWidget *image6;
|
||||
GtkWidget *label11;
|
||||
GtkWidget *button_splash_hint_next;
|
||||
GtkWidget *alignment5;
|
||||
GtkWidget *hbox9;
|
||||
GtkWidget *image7;
|
||||
GtkWidget *label12;
|
||||
GtkWidget *label_splash_hint;
|
||||
GtkWidget *hseparator4;
|
||||
GtkWidget *hbox3;
|
||||
GtkWidget *button_splash_new_game;
|
||||
GtkWidget *alignment1;
|
||||
GtkWidget *hbox4;
|
||||
GtkWidget *image3;
|
||||
GtkWidget *label7;
|
||||
GtkWidget *button_splash_load_game;
|
||||
GtkWidget *alignment2;
|
||||
GtkWidget *hbox5;
|
||||
GtkWidget *image4;
|
||||
GtkWidget *label8;
|
||||
GtkWidget *button_splash_resume_game;
|
||||
GtkWidget *alignment3;
|
||||
GtkWidget *hbox6;
|
||||
GtkWidget *image5;
|
||||
GtkWidget *label9;
|
||||
GtkWidget *button_splash_quit;
|
||||
GtkWidget *hbox7;
|
||||
GtkWidget *label_splash_progress;
|
||||
GtkWidget *progressbar_splash;
|
||||
GtkAccelGroup *accel_group;
|
||||
GtkTooltips *tooltips;
|
||||
|
||||
tooltips = gtk_tooltips_new ();
|
||||
|
||||
accel_group = gtk_accel_group_new ();
|
||||
|
||||
window_splash = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (window_splash), 5);
|
||||
gtk_window_set_position (GTK_WINDOW (window_splash), GTK_WIN_POS_CENTER_ALWAYS);
|
||||
|
||||
vbox2 = gtk_vbox_new (FALSE, 3);
|
||||
gtk_widget_show (vbox2);
|
||||
gtk_container_add (GTK_CONTAINER (window_splash), vbox2);
|
||||
|
||||
notebook1 = gtk_notebook_new ();
|
||||
gtk_widget_show (notebook1);
|
||||
gtk_box_pack_start (GTK_BOX (vbox2), notebook1, TRUE, TRUE, 0);
|
||||
|
||||
image1 = create_pixmap (window_splash, "bygfoot_splash.png");
|
||||
gtk_widget_show (image1);
|
||||
gtk_container_add (GTK_CONTAINER (notebook1), image1);
|
||||
|
||||
label2 = gtk_label_new (" ");
|
||||
gtk_widget_show (label2);
|
||||
gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 0), label2);
|
||||
|
||||
scrolledwindow2 = gtk_scrolled_window_new (NULL, NULL);
|
||||
gtk_widget_show (scrolledwindow2);
|
||||
gtk_container_add (GTK_CONTAINER (notebook1), scrolledwindow2);
|
||||
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow2), GTK_SHADOW_IN);
|
||||
|
||||
treeview_splash_contributors = gtk_tree_view_new ();
|
||||
gtk_widget_show (treeview_splash_contributors);
|
||||
gtk_container_add (GTK_CONTAINER (scrolledwindow2), treeview_splash_contributors);
|
||||
|
||||
label3 = gtk_label_new (_("Contributors"));
|
||||
gtk_widget_show (label3);
|
||||
gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 1), label3);
|
||||
|
||||
hseparator3 = gtk_hseparator_new ();
|
||||
gtk_widget_show (hseparator3);
|
||||
gtk_box_pack_start (GTK_BOX (vbox2), hseparator3, FALSE, FALSE, 0);
|
||||
gtk_widget_set_size_request (hseparator3, 1, 10);
|
||||
|
||||
vbox3 = gtk_vbox_new (FALSE, 0);
|
||||
gtk_widget_show (vbox3);
|
||||
gtk_box_pack_start (GTK_BOX (vbox2), vbox3, TRUE, TRUE, 0);
|
||||
|
||||
hbox2 = gtk_hbox_new (FALSE, 3);
|
||||
gtk_widget_show (hbox2);
|
||||
gtk_box_pack_start (GTK_BOX (vbox3), hbox2, FALSE, FALSE, 0);
|
||||
|
||||
image2 = gtk_image_new_from_stock ("gtk-dialog-info", GTK_ICON_SIZE_DND);
|
||||
gtk_widget_show (image2);
|
||||
gtk_box_pack_start (GTK_BOX (hbox2), image2, FALSE, FALSE, 0);
|
||||
|
||||
/* Splash screen hint question. */
|
||||
label4 = gtk_label_new (_("Did you know?"));
|
||||
gtk_widget_show (label4);
|
||||
gtk_box_pack_start (GTK_BOX (hbox2), label4, FALSE, FALSE, 0);
|
||||
gtk_label_set_use_markup (GTK_LABEL (label4), TRUE);
|
||||
|
||||
label_splash_hintcounter = gtk_label_new ("");
|
||||
gtk_widget_show (label_splash_hintcounter);
|
||||
gtk_box_pack_end (GTK_BOX (hbox2), label_splash_hintcounter, FALSE, FALSE, 0);
|
||||
|
||||
button_splash_hint_back = gtk_button_new ();
|
||||
gtk_widget_show (button_splash_hint_back);
|
||||
gtk_box_pack_start (GTK_BOX (hbox2), button_splash_hint_back, FALSE, FALSE, 0);
|
||||
|
||||
alignment4 = gtk_alignment_new (0.5, 0.5, 0, 0);
|
||||
gtk_widget_show (alignment4);
|
||||
gtk_container_add (GTK_CONTAINER (button_splash_hint_back), alignment4);
|
||||
|
||||
hbox8 = gtk_hbox_new (FALSE, 2);
|
||||
gtk_widget_show (hbox8);
|
||||
gtk_container_add (GTK_CONTAINER (alignment4), hbox8);
|
||||
|
||||
image6 = gtk_image_new_from_stock ("gtk-go-back", GTK_ICON_SIZE_BUTTON);
|
||||
gtk_widget_show (image6);
|
||||
gtk_box_pack_start (GTK_BOX (hbox8), image6, FALSE, FALSE, 0);
|
||||
|
||||
label11 = gtk_label_new_with_mnemonic (_("Previous"));
|
||||
gtk_widget_show (label11);
|
||||
gtk_box_pack_start (GTK_BOX (hbox8), label11, FALSE, FALSE, 0);
|
||||
|
||||
button_splash_hint_next = gtk_button_new ();
|
||||
gtk_widget_show (button_splash_hint_next);
|
||||
gtk_box_pack_start (GTK_BOX (hbox2), button_splash_hint_next, FALSE, FALSE, 0);
|
||||
|
||||
alignment5 = gtk_alignment_new (0.5, 0.5, 0, 0);
|
||||
gtk_widget_show (alignment5);
|
||||
gtk_container_add (GTK_CONTAINER (button_splash_hint_next), alignment5);
|
||||
|
||||
hbox9 = gtk_hbox_new (FALSE, 2);
|
||||
gtk_widget_show (hbox9);
|
||||
gtk_container_add (GTK_CONTAINER (alignment5), hbox9);
|
||||
|
||||
image7 = gtk_image_new_from_stock ("gtk-media-forward", GTK_ICON_SIZE_BUTTON);
|
||||
gtk_widget_show (image7);
|
||||
gtk_box_pack_start (GTK_BOX (hbox9), image7, FALSE, FALSE, 0);
|
||||
|
||||
label12 = gtk_label_new_with_mnemonic (_("Next"));
|
||||
gtk_widget_show (label12);
|
||||
gtk_box_pack_start (GTK_BOX (hbox9), label12, FALSE, FALSE, 0);
|
||||
|
||||
label_splash_hint = gtk_label_new ("");
|
||||
gtk_widget_show (label_splash_hint);
|
||||
gtk_box_pack_start (GTK_BOX (vbox3), label_splash_hint, FALSE, FALSE, 0);
|
||||
gtk_widget_set_size_request (label_splash_hint, -1, 90);
|
||||
gtk_label_set_line_wrap (GTK_LABEL (label_splash_hint), TRUE);
|
||||
gtk_misc_set_padding (GTK_MISC (label_splash_hint), 0, 5);
|
||||
|
||||
hseparator4 = gtk_hseparator_new ();
|
||||
gtk_widget_show (hseparator4);
|
||||
gtk_box_pack_start (GTK_BOX (vbox2), hseparator4, FALSE, FALSE, 0);
|
||||
gtk_widget_set_size_request (hseparator4, 1, 10);
|
||||
|
||||
hbox3 = gtk_hbox_new (FALSE, 3);
|
||||
gtk_widget_show (hbox3);
|
||||
gtk_box_pack_start (GTK_BOX (vbox2), hbox3, TRUE, TRUE, 0);
|
||||
|
||||
button_splash_new_game = gtk_button_new ();
|
||||
gtk_widget_show (button_splash_new_game);
|
||||
gtk_box_pack_start (GTK_BOX (hbox3), button_splash_new_game, FALSE, FALSE, 0);
|
||||
gtk_tooltips_set_tip (tooltips, button_splash_new_game, _("Ctrl-N"), NULL);
|
||||
gtk_widget_add_accelerator (button_splash_new_game, "clicked", accel_group,
|
||||
GDK_n, GDK_CONTROL_MASK,
|
||||
GTK_ACCEL_VISIBLE);
|
||||
|
||||
alignment1 = gtk_alignment_new (0.5, 0.5, 0, 0);
|
||||
gtk_widget_show (alignment1);
|
||||
gtk_container_add (GTK_CONTAINER (button_splash_new_game), alignment1);
|
||||
|
||||
hbox4 = gtk_hbox_new (FALSE, 2);
|
||||
gtk_widget_show (hbox4);
|
||||
gtk_container_add (GTK_CONTAINER (alignment1), hbox4);
|
||||
|
||||
image3 = gtk_image_new_from_stock ("gtk-new", GTK_ICON_SIZE_BUTTON);
|
||||
gtk_widget_show (image3);
|
||||
gtk_box_pack_start (GTK_BOX (hbox4), image3, FALSE, FALSE, 0);
|
||||
|
||||
label7 = gtk_label_new_with_mnemonic (_("Start _new game"));
|
||||
gtk_widget_show (label7);
|
||||
gtk_box_pack_start (GTK_BOX (hbox4), label7, FALSE, FALSE, 0);
|
||||
|
||||
button_splash_load_game = gtk_button_new ();
|
||||
gtk_widget_show (button_splash_load_game);
|
||||
gtk_box_pack_start (GTK_BOX (hbox3), button_splash_load_game, FALSE, FALSE, 0);
|
||||
gtk_tooltips_set_tip (tooltips, button_splash_load_game, _("Ctrl-O"), NULL);
|
||||
gtk_widget_add_accelerator (button_splash_load_game, "clicked", accel_group,
|
||||
GDK_o, GDK_CONTROL_MASK,
|
||||
GTK_ACCEL_VISIBLE);
|
||||
|
||||
alignment2 = gtk_alignment_new (0.5, 0.5, 0, 0);
|
||||
gtk_widget_show (alignment2);
|
||||
gtk_container_add (GTK_CONTAINER (button_splash_load_game), alignment2);
|
||||
|
||||
hbox5 = gtk_hbox_new (FALSE, 2);
|
||||
gtk_widget_show (hbox5);
|
||||
gtk_container_add (GTK_CONTAINER (alignment2), hbox5);
|
||||
|
||||
image4 = gtk_image_new_from_stock ("gtk-open", GTK_ICON_SIZE_BUTTON);
|
||||
gtk_widget_show (image4);
|
||||
gtk_box_pack_start (GTK_BOX (hbox5), image4, FALSE, FALSE, 0);
|
||||
|
||||
label8 = gtk_label_new_with_mnemonic (_("_Load game"));
|
||||
gtk_widget_show (label8);
|
||||
gtk_box_pack_start (GTK_BOX (hbox5), label8, FALSE, FALSE, 0);
|
||||
|
||||
button_splash_resume_game = gtk_button_new ();
|
||||
gtk_widget_show (button_splash_resume_game);
|
||||
gtk_box_pack_start (GTK_BOX (hbox3), button_splash_resume_game, FALSE, FALSE, 0);
|
||||
gtk_tooltips_set_tip (tooltips, button_splash_resume_game, _("Ctrl-R"), NULL);
|
||||
gtk_widget_add_accelerator (button_splash_resume_game, "clicked", accel_group,
|
||||
GDK_r, GDK_CONTROL_MASK,
|
||||
GTK_ACCEL_VISIBLE);
|
||||
|
||||
alignment3 = gtk_alignment_new (0.5, 0.5, 0, 0);
|
||||
gtk_widget_show (alignment3);
|
||||
gtk_container_add (GTK_CONTAINER (button_splash_resume_game), alignment3);
|
||||
|
||||
hbox6 = gtk_hbox_new (FALSE, 2);
|
||||
gtk_widget_show (hbox6);
|
||||
gtk_container_add (GTK_CONTAINER (alignment3), hbox6);
|
||||
|
||||
image5 = gtk_image_new_from_stock ("gtk-revert-to-saved", GTK_ICON_SIZE_BUTTON);
|
||||
gtk_widget_show (image5);
|
||||
gtk_box_pack_start (GTK_BOX (hbox6), image5, FALSE, FALSE, 0);
|
||||
|
||||
label9 = gtk_label_new_with_mnemonic (_("_Resume game"));
|
||||
gtk_widget_show (label9);
|
||||
gtk_box_pack_start (GTK_BOX (hbox6), label9, FALSE, FALSE, 0);
|
||||
|
||||
button_splash_quit = gtk_button_new_from_stock ("gtk-quit");
|
||||
gtk_widget_show (button_splash_quit);
|
||||
gtk_box_pack_start (GTK_BOX (hbox3), button_splash_quit, TRUE, TRUE, 0);
|
||||
gtk_tooltips_set_tip (tooltips, button_splash_quit, _("Esc"), NULL);
|
||||
gtk_widget_add_accelerator (button_splash_quit, "clicked", accel_group,
|
||||
GDK_Escape, 0,
|
||||
GTK_ACCEL_VISIBLE);
|
||||
|
||||
hbox7 = gtk_hbox_new (FALSE, 5);
|
||||
gtk_widget_show (hbox7);
|
||||
gtk_box_pack_start (GTK_BOX (vbox2), hbox7, TRUE, TRUE, 0);
|
||||
|
||||
label_splash_progress = gtk_label_new (_("Ready"));
|
||||
gtk_widget_show (label_splash_progress);
|
||||
gtk_box_pack_start (GTK_BOX (hbox7), label_splash_progress, FALSE, FALSE, 0);
|
||||
gtk_widget_set_size_request (label_splash_progress, 400, -1);
|
||||
gtk_misc_set_alignment (GTK_MISC (label_splash_progress), 0, 0.5);
|
||||
|
||||
progressbar_splash = gtk_progress_bar_new ();
|
||||
gtk_widget_show (progressbar_splash);
|
||||
gtk_box_pack_end (GTK_BOX (hbox7), progressbar_splash, FALSE, FALSE, 0);
|
||||
gtk_widget_set_size_request (progressbar_splash, -1, 10);
|
||||
|
||||
g_signal_connect ((gpointer) window_splash, "delete_event",
|
||||
G_CALLBACK (on_window_splash_delete_event),
|
||||
NULL);
|
||||
g_signal_connect ((gpointer) button_splash_hint_back, "clicked",
|
||||
G_CALLBACK (on_button_splash_hint_back_clicked),
|
||||
NULL);
|
||||
g_signal_connect ((gpointer) button_splash_hint_next, "clicked",
|
||||
G_CALLBACK (on_button_splash_hint_next_clicked),
|
||||
NULL);
|
||||
g_signal_connect ((gpointer) button_splash_new_game, "clicked",
|
||||
G_CALLBACK (on_button_splash_new_game_clicked),
|
||||
NULL);
|
||||
g_signal_connect ((gpointer) button_splash_load_game, "clicked",
|
||||
G_CALLBACK (on_button_splash_load_game_clicked),
|
||||
NULL);
|
||||
g_signal_connect ((gpointer) button_splash_resume_game, "clicked",
|
||||
G_CALLBACK (on_button_splash_resume_game_clicked),
|
||||
NULL);
|
||||
g_signal_connect ((gpointer) button_splash_quit, "clicked",
|
||||
G_CALLBACK (on_button_splash_quit_clicked),
|
||||
NULL);
|
||||
|
||||
/* Store pointers to all widgets, for use by lookup_widget(). */
|
||||
GLADE_HOOKUP_OBJECT_NO_REF (window_splash, window_splash, "window_splash");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, vbox2, "vbox2");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, notebook1, "notebook1");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, image1, "image1");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, label2, "label2");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, scrolledwindow2, "scrolledwindow2");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, treeview_splash_contributors, "treeview_splash_contributors");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, label3, "label3");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, hseparator3, "hseparator3");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, vbox3, "vbox3");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, hbox2, "hbox2");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, image2, "image2");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, label4, "label4");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, label_splash_hintcounter, "label_splash_hintcounter");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, button_splash_hint_back, "button_splash_hint_back");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, alignment4, "alignment4");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, hbox8, "hbox8");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, image6, "image6");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, label11, "label11");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, button_splash_hint_next, "button_splash_hint_next");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, alignment5, "alignment5");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, hbox9, "hbox9");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, image7, "image7");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, label12, "label12");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, label_splash_hint, "label_splash_hint");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, hseparator4, "hseparator4");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, hbox3, "hbox3");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, button_splash_new_game, "button_splash_new_game");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, alignment1, "alignment1");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, hbox4, "hbox4");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, image3, "image3");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, label7, "label7");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, button_splash_load_game, "button_splash_load_game");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, alignment2, "alignment2");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, hbox5, "hbox5");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, image4, "image4");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, label8, "label8");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, button_splash_resume_game, "button_splash_resume_game");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, alignment3, "alignment3");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, hbox6, "hbox6");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, image5, "image5");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, label9, "label9");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, button_splash_quit, "button_splash_quit");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, hbox7, "hbox7");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, label_splash_progress, "label_splash_progress");
|
||||
GLADE_HOOKUP_OBJECT (window_splash, progressbar_splash, "progressbar_splash");
|
||||
GLADE_HOOKUP_OBJECT_NO_REF (window_splash, tooltips, "tooltips");
|
||||
|
||||
gtk_window_add_accel_group (GTK_WINDOW (window_splash), accel_group);
|
||||
|
||||
return window_splash;
|
||||
}
|
||||
|
||||
|
@ -3,3 +3,4 @@
|
||||
*/
|
||||
|
||||
GtkWidget* create_window_bets (void);
|
||||
GtkWidget* create_window_splash (void);
|
||||
|
@ -298,12 +298,12 @@ misc_callback_improve_stadium(void)
|
||||
void
|
||||
misc_callback_startup_load(const gchar *filename)
|
||||
{
|
||||
gtk_widget_hide(window.startup);
|
||||
gtk_widget_hide(window.splash);
|
||||
|
||||
if(load_save_load_game(filename, TRUE))
|
||||
window_destroy(&window.startup, TRUE);
|
||||
window_destroy(&window.splash, TRUE);
|
||||
else
|
||||
gtk_widget_show(window.startup);
|
||||
gtk_widget_show(window.splash);
|
||||
}
|
||||
|
||||
|
||||
|
@ -70,15 +70,6 @@ on_team_selection_cancel_clicked (GtkButton *button,
|
||||
main_exit_program(EXIT_OK, NULL);
|
||||
}
|
||||
|
||||
void
|
||||
on_team_selection_load_clicked (GtkButton *button,
|
||||
gpointer user_data)
|
||||
{
|
||||
stat5 = STATUS_LOAD_GAME_TEAM_SELECTION;
|
||||
window_show_file_sel();
|
||||
}
|
||||
|
||||
|
||||
gboolean
|
||||
on_button_font_sel_cancel_clicked (GtkWidget *widget,
|
||||
GdkEvent *event,
|
||||
@ -275,13 +266,6 @@ on_spinbutton_capacity_button_press_event (GtkWidget *widget,
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
void
|
||||
on_button_startup_resume_clicked (GtkButton *button,
|
||||
gpointer user_data)
|
||||
{
|
||||
misc_callback_startup_load("last_save");
|
||||
}
|
||||
|
||||
gboolean
|
||||
on_window_stadium_delete_event (GtkWidget *widget,
|
||||
GdkEvent *event,
|
||||
@ -465,3 +449,12 @@ on_eventbox_lg_boost_button_press_event (GtkWidget *widget,
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
void
|
||||
on_button_team_selection_back_clicked (GtkButton *button,
|
||||
gpointer user_data)
|
||||
{
|
||||
window_destroy(&window.startup, TRUE);
|
||||
stat0 = STATUS_SPLASH;
|
||||
window_show_splash();
|
||||
}
|
||||
|
@ -38,10 +38,6 @@ void
|
||||
on_team_selection_ok_clicked (GtkButton *button,
|
||||
gpointer user_data);
|
||||
|
||||
void
|
||||
on_team_selection_load_clicked (GtkButton *button,
|
||||
gpointer user_data);
|
||||
|
||||
gboolean
|
||||
on_button_font_sel_cancel_clicked (GtkWidget *widget,
|
||||
GdkEvent *event,
|
||||
@ -113,10 +109,6 @@ on_spinbutton_capacity_button_press_event
|
||||
GdkEventButton *event,
|
||||
gpointer user_data);
|
||||
|
||||
void
|
||||
on_button_startup_resume_clicked (GtkButton *button,
|
||||
gpointer user_data);
|
||||
|
||||
gboolean
|
||||
on_window_stadium_delete_event (GtkWidget *widget,
|
||||
GdkEvent *event,
|
||||
@ -180,4 +172,8 @@ on_eventbox_lg_boost_button_press_event
|
||||
(GtkWidget *widget,
|
||||
GdkEventButton *event,
|
||||
gpointer user_data);
|
||||
|
||||
void
|
||||
on_button_team_selection_back_clicked (GtkButton *button,
|
||||
gpointer user_data);
|
||||
#endif
|
||||
|
@ -67,17 +67,12 @@ create_window_startup (void)
|
||||
GtkWidget *hbox53;
|
||||
GtkWidget *image58;
|
||||
GtkWidget *label74;
|
||||
GtkWidget *button_team_selection_back;
|
||||
GtkWidget *alignment24;
|
||||
GtkWidget *hbox77;
|
||||
GtkWidget *image64;
|
||||
GtkWidget *label122;
|
||||
GtkWidget *team_selection_cancel;
|
||||
GtkWidget *team_selection_load;
|
||||
GtkWidget *alignment3;
|
||||
GtkWidget *hbox6;
|
||||
GtkWidget *image4;
|
||||
GtkWidget *label5;
|
||||
GtkWidget *button_startup_resume;
|
||||
GtkWidget *alignment21;
|
||||
GtkWidget *hbox70;
|
||||
GtkWidget *image61;
|
||||
GtkWidget *label114;
|
||||
GtkAccelGroup *accel_group;
|
||||
GtkTooltips *tooltips;
|
||||
|
||||
@ -269,7 +264,29 @@ create_window_startup (void)
|
||||
gtk_widget_show (label74);
|
||||
gtk_box_pack_start (GTK_BOX (hbox53), label74, FALSE, FALSE, 0);
|
||||
|
||||
team_selection_cancel = gtk_button_new_from_stock ("gtk-cancel");
|
||||
button_team_selection_back = gtk_button_new ();
|
||||
gtk_widget_show (button_team_selection_back);
|
||||
gtk_box_pack_start (GTK_BOX (hbox3), button_team_selection_back, FALSE, FALSE, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (button_team_selection_back), 2);
|
||||
gtk_tooltips_set_tip (tooltips, button_team_selection_back, _("Go back to the splash screen"), NULL);
|
||||
|
||||
alignment24 = gtk_alignment_new (0.5, 0.5, 0, 0);
|
||||
gtk_widget_show (alignment24);
|
||||
gtk_container_add (GTK_CONTAINER (button_team_selection_back), alignment24);
|
||||
|
||||
hbox77 = gtk_hbox_new (FALSE, 2);
|
||||
gtk_widget_show (hbox77);
|
||||
gtk_container_add (GTK_CONTAINER (alignment24), hbox77);
|
||||
|
||||
image64 = gtk_image_new_from_stock ("gtk-go-back", GTK_ICON_SIZE_BUTTON);
|
||||
gtk_widget_show (image64);
|
||||
gtk_box_pack_start (GTK_BOX (hbox77), image64, FALSE, FALSE, 0);
|
||||
|
||||
label122 = gtk_label_new_with_mnemonic (_("Back to splash"));
|
||||
gtk_widget_show (label122);
|
||||
gtk_box_pack_start (GTK_BOX (hbox77), label122, FALSE, FALSE, 0);
|
||||
|
||||
team_selection_cancel = gtk_button_new_from_stock ("gtk-quit");
|
||||
gtk_widget_show (team_selection_cancel);
|
||||
gtk_box_pack_start (GTK_BOX (hbox3), team_selection_cancel, TRUE, TRUE, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (team_selection_cancel), 2);
|
||||
@ -278,52 +295,6 @@ create_window_startup (void)
|
||||
GDK_Escape, 0,
|
||||
GTK_ACCEL_VISIBLE);
|
||||
|
||||
team_selection_load = gtk_button_new ();
|
||||
gtk_widget_show (team_selection_load);
|
||||
gtk_box_pack_start (GTK_BOX (hbox3), team_selection_load, TRUE, TRUE, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (team_selection_load), 2);
|
||||
gtk_tooltips_set_tip (tooltips, team_selection_load, _("Ctrl-O"), NULL);
|
||||
gtk_widget_add_accelerator (team_selection_load, "clicked", accel_group,
|
||||
GDK_o, GDK_CONTROL_MASK,
|
||||
GTK_ACCEL_VISIBLE);
|
||||
|
||||
alignment3 = gtk_alignment_new (0.5, 0.5, 0, 0);
|
||||
gtk_widget_show (alignment3);
|
||||
gtk_container_add (GTK_CONTAINER (team_selection_load), alignment3);
|
||||
|
||||
hbox6 = gtk_hbox_new (FALSE, 2);
|
||||
gtk_widget_show (hbox6);
|
||||
gtk_container_add (GTK_CONTAINER (alignment3), hbox6);
|
||||
|
||||
image4 = gtk_image_new_from_stock ("gtk-open", GTK_ICON_SIZE_BUTTON);
|
||||
gtk_widget_show (image4);
|
||||
gtk_box_pack_start (GTK_BOX (hbox6), image4, FALSE, FALSE, 0);
|
||||
|
||||
label5 = gtk_label_new_with_mnemonic (_("Load game"));
|
||||
gtk_widget_show (label5);
|
||||
gtk_box_pack_start (GTK_BOX (hbox6), label5, FALSE, FALSE, 0);
|
||||
|
||||
button_startup_resume = gtk_button_new ();
|
||||
gtk_widget_show (button_startup_resume);
|
||||
gtk_box_pack_start (GTK_BOX (hbox3), button_startup_resume, FALSE, FALSE, 0);
|
||||
gtk_tooltips_set_tip (tooltips, button_startup_resume, _("Load the last game that was saved or loaded."), NULL);
|
||||
|
||||
alignment21 = gtk_alignment_new (0.5, 0.5, 0, 0);
|
||||
gtk_widget_show (alignment21);
|
||||
gtk_container_add (GTK_CONTAINER (button_startup_resume), alignment21);
|
||||
|
||||
hbox70 = gtk_hbox_new (FALSE, 2);
|
||||
gtk_widget_show (hbox70);
|
||||
gtk_container_add (GTK_CONTAINER (alignment21), hbox70);
|
||||
|
||||
image61 = gtk_image_new_from_stock ("gtk-revert-to-saved", GTK_ICON_SIZE_BUTTON);
|
||||
gtk_widget_show (image61);
|
||||
gtk_box_pack_start (GTK_BOX (hbox70), image61, FALSE, FALSE, 0);
|
||||
|
||||
label114 = gtk_label_new_with_mnemonic (_("_Resume last game"));
|
||||
gtk_widget_show (label114);
|
||||
gtk_box_pack_start (GTK_BOX (hbox70), label114, FALSE, FALSE, 0);
|
||||
|
||||
g_signal_connect ((gpointer) window_startup, "delete_event",
|
||||
G_CALLBACK (on_team_selection_cancel_clicked),
|
||||
NULL);
|
||||
@ -342,15 +313,12 @@ create_window_startup (void)
|
||||
g_signal_connect ((gpointer) team_selection_ok, "clicked",
|
||||
G_CALLBACK (on_team_selection_ok_clicked),
|
||||
NULL);
|
||||
g_signal_connect ((gpointer) button_team_selection_back, "clicked",
|
||||
G_CALLBACK (on_button_team_selection_back_clicked),
|
||||
NULL);
|
||||
g_signal_connect ((gpointer) team_selection_cancel, "clicked",
|
||||
G_CALLBACK (on_team_selection_cancel_clicked),
|
||||
NULL);
|
||||
g_signal_connect ((gpointer) team_selection_load, "clicked",
|
||||
G_CALLBACK (on_team_selection_load_clicked),
|
||||
NULL);
|
||||
g_signal_connect ((gpointer) button_startup_resume, "clicked",
|
||||
G_CALLBACK (on_button_startup_resume_clicked),
|
||||
NULL);
|
||||
|
||||
/* Store pointers to all widgets, for use by lookup_widget(). */
|
||||
GLADE_HOOKUP_OBJECT_NO_REF (window_startup, window_startup, "window_startup");
|
||||
@ -390,17 +358,12 @@ create_window_startup (void)
|
||||
GLADE_HOOKUP_OBJECT (window_startup, hbox53, "hbox53");
|
||||
GLADE_HOOKUP_OBJECT (window_startup, image58, "image58");
|
||||
GLADE_HOOKUP_OBJECT (window_startup, label74, "label74");
|
||||
GLADE_HOOKUP_OBJECT (window_startup, button_team_selection_back, "button_team_selection_back");
|
||||
GLADE_HOOKUP_OBJECT (window_startup, alignment24, "alignment24");
|
||||
GLADE_HOOKUP_OBJECT (window_startup, hbox77, "hbox77");
|
||||
GLADE_HOOKUP_OBJECT (window_startup, image64, "image64");
|
||||
GLADE_HOOKUP_OBJECT (window_startup, label122, "label122");
|
||||
GLADE_HOOKUP_OBJECT (window_startup, team_selection_cancel, "team_selection_cancel");
|
||||
GLADE_HOOKUP_OBJECT (window_startup, team_selection_load, "team_selection_load");
|
||||
GLADE_HOOKUP_OBJECT (window_startup, alignment3, "alignment3");
|
||||
GLADE_HOOKUP_OBJECT (window_startup, hbox6, "hbox6");
|
||||
GLADE_HOOKUP_OBJECT (window_startup, image4, "image4");
|
||||
GLADE_HOOKUP_OBJECT (window_startup, label5, "label5");
|
||||
GLADE_HOOKUP_OBJECT (window_startup, button_startup_resume, "button_startup_resume");
|
||||
GLADE_HOOKUP_OBJECT (window_startup, alignment21, "alignment21");
|
||||
GLADE_HOOKUP_OBJECT (window_startup, hbox70, "hbox70");
|
||||
GLADE_HOOKUP_OBJECT (window_startup, image61, "image61");
|
||||
GLADE_HOOKUP_OBJECT (window_startup, label114, "label114");
|
||||
GLADE_HOOKUP_OBJECT_NO_REF (window_startup, tooltips, "tooltips");
|
||||
|
||||
gtk_widget_grab_focus (treeview_startup);
|
||||
|
@ -24,10 +24,12 @@
|
||||
*/
|
||||
|
||||
#include "cup.h"
|
||||
#include "file.h"
|
||||
#include "finance.h"
|
||||
#include "fixture.h"
|
||||
#include "free.h"
|
||||
#include "game.h"
|
||||
#include "game_gui.h"
|
||||
#include "language.h"
|
||||
#include "league.h"
|
||||
#include "live_game.h"
|
||||
@ -2368,9 +2370,10 @@ treeview_create_country_list(const GPtrArray *country_list)
|
||||
|
||||
/** Show the list of contributors in the help window.*/
|
||||
void
|
||||
treeview_show_contributors(const OptionList *help_list)
|
||||
treeview_show_contributors(GtkTreeView *treeview)
|
||||
{
|
||||
GtkTreeView *treeview = GTK_TREE_VIEW(lookup_widget(window.help, "treeview_contributors"));
|
||||
gchar *help_file = file_find_support_file("bygfoot_help", TRUE);
|
||||
OptionList help_list;
|
||||
GtkListStore *ls = gtk_list_store_new(1, G_TYPE_STRING);
|
||||
GtkTreeIter iter;
|
||||
GtkTreeViewColumn *col;
|
||||
@ -2378,6 +2381,17 @@ treeview_show_contributors(const OptionList *help_list)
|
||||
gint i;
|
||||
gchar buf[SMALL];
|
||||
|
||||
|
||||
if(help_file == NULL)
|
||||
{
|
||||
game_gui_show_warning(_("Didn't find file 'bygfoot_help'."));
|
||||
return;
|
||||
}
|
||||
|
||||
help_list.list = NULL;
|
||||
help_list.datalist = NULL;
|
||||
file_load_opt_file(help_file, &help_list);
|
||||
|
||||
gtk_tree_selection_set_mode(gtk_tree_view_get_selection(treeview),
|
||||
GTK_SELECTION_NONE);
|
||||
gtk_tree_view_set_rules_hint(treeview, FALSE);
|
||||
@ -2390,22 +2404,22 @@ treeview_show_contributors(const OptionList *help_list)
|
||||
gtk_tree_view_column_add_attribute(col, renderer,
|
||||
"markup", 0);
|
||||
|
||||
for(i=0;i<help_list->list->len;i++)
|
||||
for(i=0;i<help_list.list->len;i++)
|
||||
{
|
||||
gtk_list_store_append(ls, &iter);
|
||||
|
||||
if(g_str_has_prefix(g_array_index(help_list->list, Option, i).name,
|
||||
if(g_str_has_prefix(g_array_index(help_list.list, Option, i).name,
|
||||
"string_contrib_title"))
|
||||
{
|
||||
sprintf(buf, "\n<span %s>%s</span>",
|
||||
const_app("string_help_window_title_attribute"),
|
||||
g_array_index(help_list->list, Option, i).string_value);
|
||||
g_array_index(help_list.list, Option, i).string_value);
|
||||
gtk_list_store_set(ls, &iter, 0, buf, -1);
|
||||
}
|
||||
else if(g_str_has_prefix(g_array_index(help_list->list, Option, i).name,
|
||||
else if(g_str_has_prefix(g_array_index(help_list.list, Option, i).name,
|
||||
"string_contrib_"))
|
||||
{
|
||||
strcpy(buf, g_array_index(help_list->list, Option, i).string_value);
|
||||
strcpy(buf, g_array_index(help_list.list, Option, i).string_value);
|
||||
gtk_list_store_set(ls, &iter, 0, buf, -1);
|
||||
}
|
||||
|
||||
@ -2413,6 +2427,9 @@ treeview_show_contributors(const OptionList *help_list)
|
||||
|
||||
gtk_tree_view_set_model(treeview, GTK_TREE_MODEL(ls));
|
||||
g_object_unref(ls);
|
||||
|
||||
g_free(help_file);
|
||||
free_option_list(&help_list, FALSE);
|
||||
}
|
||||
|
||||
GtkTreeModel*
|
||||
|
@ -221,7 +221,7 @@ GtkTreeModel*
|
||||
treeview_create_country_list(const GPtrArray *country_list);
|
||||
|
||||
void
|
||||
treeview_show_contributors(const OptionList *help_list);
|
||||
treeview_show_contributors(GtkTreeView *treeview);
|
||||
|
||||
GtkTreeModel*
|
||||
treeview_create_league_list(void);
|
||||
|
@ -23,8 +23,8 @@
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifndef TREEVIEW_CELL_H
|
||||
#define TREEVIEW_CELL_H
|
||||
#ifndef TREEVIEW_HELPER_H
|
||||
#define TREEVIEW_HELPER_H
|
||||
|
||||
#include "bygfoot.h"
|
||||
|
||||
|
@ -123,3 +123,6 @@ gchar *save_file;
|
||||
|
||||
/** Whether we are using a Unix system or Windows. */
|
||||
gboolean os_is_unix;
|
||||
|
||||
/** The hints displayed in the splash screen. */
|
||||
OptionList hints;
|
||||
|
151
src/window.c
151
src/window.c
@ -69,6 +69,86 @@
|
||||
/* _("News")); */
|
||||
/* } */
|
||||
|
||||
/** Show the splash screen window. */
|
||||
void
|
||||
window_show_splash(void)
|
||||
{
|
||||
window_create(WINDOW_SPLASH);
|
||||
|
||||
treeview_show_contributors(
|
||||
GTK_TREE_VIEW(lookup_widget(window.splash, "treeview_splash_contributors")));
|
||||
|
||||
window_load_hint_number();
|
||||
window_splash_show_hint();
|
||||
}
|
||||
|
||||
/** Show the hint determined by the hint counter in the splash window. */
|
||||
void
|
||||
window_splash_show_hint(void)
|
||||
{
|
||||
gchar buf[SMALL];
|
||||
|
||||
gtk_label_set_text(
|
||||
GTK_LABEL(lookup_widget(window.splash, "label_splash_hint")),
|
||||
g_array_index(hints.list, Option, counters[COUNT_HINT_NUMBER]).string_value);
|
||||
|
||||
sprintf(buf, "(%d/%d)", counters[COUNT_HINT_NUMBER] + 1,
|
||||
hints.list->len);
|
||||
|
||||
gtk_label_set_text(
|
||||
GTK_LABEL(lookup_widget(window.splash, "label_splash_hintcounter")),
|
||||
buf);
|
||||
}
|
||||
|
||||
/** Load the index of the hint to show in the splash screen. */
|
||||
void
|
||||
window_load_hint_number(void)
|
||||
{
|
||||
gchar filename[SMALL];
|
||||
gchar dir[SMALL];
|
||||
FILE *fil;
|
||||
|
||||
file_get_bygfoot_dir(dir);
|
||||
|
||||
sprintf(filename, "%s%shint_num",
|
||||
dir, G_DIR_SEPARATOR_S);
|
||||
|
||||
fil = fopen(filename, "r");
|
||||
|
||||
if(fil == NULL)
|
||||
{
|
||||
counters[COUNT_HINT_NUMBER] = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
fscanf(fil, "%d", &counters[COUNT_HINT_NUMBER]);
|
||||
|
||||
fclose(fil);
|
||||
}
|
||||
|
||||
/** Save the index of the current hint. */
|
||||
void
|
||||
window_save_hint_number(void)
|
||||
{
|
||||
gchar filename[SMALL];
|
||||
gchar dir[SMALL];
|
||||
FILE *fil;
|
||||
|
||||
file_get_bygfoot_dir(dir);
|
||||
|
||||
sprintf(filename, "%s%shint_num",
|
||||
dir, G_DIR_SEPARATOR_S);
|
||||
|
||||
fil = fopen(filename, "w");
|
||||
|
||||
if(fil == NULL)
|
||||
return;
|
||||
|
||||
fprintf(fil, "%d", counters[COUNT_HINT_NUMBER]);
|
||||
|
||||
fclose(fil);
|
||||
}
|
||||
|
||||
/** Show the window with the progress bar,
|
||||
sometimes with a nice picture. */
|
||||
void
|
||||
@ -160,32 +240,18 @@ void
|
||||
window_show_help(gint page)
|
||||
{
|
||||
gchar buf[SMALL];
|
||||
gchar *help_file = file_find_support_file("bygfoot_help", TRUE);
|
||||
OptionList help_list;
|
||||
|
||||
if(help_file == NULL)
|
||||
{
|
||||
game_gui_show_warning(_("Didn't find file 'bygfoot_help'."));
|
||||
return;
|
||||
}
|
||||
|
||||
help_list.list = NULL;
|
||||
help_list.datalist = NULL;
|
||||
file_load_opt_file(help_file, &help_list);
|
||||
|
||||
window_create(WINDOW_HELP);
|
||||
|
||||
sprintf(buf, "<span %s>Bygfoot Football Manager %s</span>\n(c) 2005 Győző Both (gyboth@bygfoot.com)\nhttp://bygfoot.sourceforge.net", const_app("string_help_window_program_name_attribute"), VERS);
|
||||
gtk_label_set_markup(GTK_LABEL(lookup_widget(window.help, "label_about")), buf);
|
||||
|
||||
treeview_show_contributors(&help_list);
|
||||
treeview_show_contributors(
|
||||
GTK_TREE_VIEW(lookup_widget(window.help, "treeview_contributors")));
|
||||
|
||||
game_gui_set_help_labels();
|
||||
|
||||
gtk_notebook_set_current_page(GTK_NOTEBOOK(lookup_widget(window.help, "notebook1")), page);
|
||||
|
||||
g_free(help_file);
|
||||
free_option_list(&help_list, FALSE);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -242,7 +308,7 @@ window_show_file_sel(void)
|
||||
window_create(WINDOW_FILE_CHOOSER);
|
||||
|
||||
if(stat5 != STATUS_LOAD_GAME &&
|
||||
stat5 != STATUS_LOAD_GAME_TEAM_SELECTION)
|
||||
stat5 != STATUS_LOAD_GAME_SPLASH)
|
||||
gtk_file_chooser_set_action(GTK_FILE_CHOOSER(window.file_chooser),
|
||||
GTK_FILE_CHOOSER_ACTION_SAVE);
|
||||
else
|
||||
@ -252,7 +318,7 @@ window_show_file_sel(void)
|
||||
filter = gtk_file_filter_new();
|
||||
if(stat5 == STATUS_SAVE_GAME ||
|
||||
stat5 == STATUS_LOAD_GAME ||
|
||||
stat5 == STATUS_LOAD_GAME_TEAM_SELECTION)
|
||||
stat5 == STATUS_LOAD_GAME_SPLASH)
|
||||
{
|
||||
gtk_file_filter_set_name(filter, _("Bygfoot Save Files"));
|
||||
gtk_file_filter_add_pattern(filter, "*.zip");
|
||||
@ -272,7 +338,7 @@ window_show_file_sel(void)
|
||||
|
||||
if((stat5 == STATUS_SAVE_GAME ||
|
||||
stat5 == STATUS_LOAD_GAME ||
|
||||
stat5 == STATUS_LOAD_GAME_TEAM_SELECTION) &&
|
||||
stat5 == STATUS_LOAD_GAME_SPLASH) &&
|
||||
save_file != NULL)
|
||||
gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(window.file_chooser),
|
||||
save_file);
|
||||
@ -301,7 +367,7 @@ window_show_file_sel(void)
|
||||
|
||||
if(stat5 == STATUS_LOAD_GAME)
|
||||
load_save_load_game(filename, FALSE);
|
||||
else if(stat5 == STATUS_LOAD_GAME_TEAM_SELECTION)
|
||||
else if(stat5 == STATUS_LOAD_GAME_SPLASH)
|
||||
misc_callback_startup_load(filename);
|
||||
else if(stat5 == STATUS_SAVE_GAME)
|
||||
load_save_save_game(filename);
|
||||
@ -336,7 +402,7 @@ window_show_file_sel(void)
|
||||
user_mm_export_file(filename);
|
||||
|
||||
if(stat5 == STATUS_LOAD_GAME ||
|
||||
stat5 == STATUS_LOAD_GAME_TEAM_SELECTION)
|
||||
stat5 == STATUS_LOAD_GAME_SPLASH)
|
||||
{
|
||||
cur_user = 0;
|
||||
on_button_back_to_main_clicked(NULL, NULL);
|
||||
@ -552,19 +618,14 @@ void
|
||||
window_main_save_geometry(void)
|
||||
{
|
||||
gchar filename[SMALL];
|
||||
const gchar *home = g_get_home_dir();
|
||||
gchar *pwd = g_get_current_dir();
|
||||
gchar dir[SMALL];
|
||||
FILE *fil = NULL;
|
||||
gint width, height, pos_x, pos_y, paned_pos;
|
||||
|
||||
if(os_is_unix)
|
||||
sprintf(filename, "%s%s%s%swindow_settings",
|
||||
home, G_DIR_SEPARATOR_S, HOMEDIRNAME, G_DIR_SEPARATOR_S);
|
||||
else
|
||||
sprintf(filename, "%s%swindow_settings",
|
||||
pwd, G_DIR_SEPARATOR_S);
|
||||
file_get_bygfoot_dir(dir);
|
||||
|
||||
g_free(pwd);
|
||||
sprintf(filename, "%s%swindow_settings",
|
||||
dir, G_DIR_SEPARATOR_S);
|
||||
|
||||
if(window.main != NULL && file_my_fopen(filename, "w", &fil, FALSE))
|
||||
{
|
||||
@ -589,18 +650,13 @@ void
|
||||
window_main_load_geometry(void)
|
||||
{
|
||||
gchar filename[SMALL];
|
||||
const gchar *home = g_get_home_dir();
|
||||
gchar *pwd = g_get_current_dir();
|
||||
gchar dir[SMALL];
|
||||
OptionList optionlist;
|
||||
|
||||
if(os_is_unix)
|
||||
sprintf(filename, "%s%s%s%swindow_settings",
|
||||
home, G_DIR_SEPARATOR_S, HOMEDIRNAME, G_DIR_SEPARATOR_S);
|
||||
else
|
||||
sprintf(filename, "%s%swindow_settings",
|
||||
pwd, G_DIR_SEPARATOR_S);
|
||||
file_get_bygfoot_dir(dir);
|
||||
|
||||
g_free(pwd);
|
||||
sprintf(filename, "%s%swindow_settings",
|
||||
dir, G_DIR_SEPARATOR_S);
|
||||
|
||||
if(g_file_test(filename, G_FILE_TEST_EXISTS))
|
||||
{
|
||||
@ -829,12 +885,19 @@ window_create(gint window_type)
|
||||
wind = window.bets;
|
||||
strcpy(buf, _("Betting"));
|
||||
break;
|
||||
case WINDOW_SPLASH:
|
||||
if(window.splash != NULL)
|
||||
g_warning("window_create: called on already existing window\n");
|
||||
else
|
||||
window.splash = create_window_splash();
|
||||
wind = window.splash;
|
||||
break;
|
||||
}
|
||||
|
||||
if(window_type != WINDOW_FILE_CHOOSER)
|
||||
gtk_window_set_title(GTK_WINDOW(wind), buf);
|
||||
|
||||
if(window_type != WINDOW_PROGRESS)
|
||||
if(window_type != WINDOW_PROGRESS && window_type != WINDOW_SPLASH)
|
||||
g_timeout_add(20, (GSourceFunc)window_show, (gpointer)wind);
|
||||
else
|
||||
gtk_widget_show(wind);
|
||||
@ -865,6 +928,14 @@ window_destroy(GtkWidget **wind, gboolean count_popups)
|
||||
gtk_widget_set_sensitive(window.main, TRUE);
|
||||
}
|
||||
|
||||
if(*wind == window.splash)
|
||||
{
|
||||
counters[COUNT_HINT_NUMBER] =
|
||||
(counters[COUNT_HINT_NUMBER] + 1) % hints.list->len;
|
||||
|
||||
window_save_hint_number();
|
||||
}
|
||||
|
||||
gtk_widget_destroy(*wind);
|
||||
|
||||
*wind = NULL;
|
||||
|
13
src/window.h
13
src/window.h
@ -52,6 +52,7 @@ enum Windows
|
||||
WINDOW_SPONSORS,
|
||||
WINDOW_MMATCHES,
|
||||
WINDOW_BETS,
|
||||
WINDOW_SPLASH,
|
||||
WINDOW_END
|
||||
};
|
||||
|
||||
@ -113,4 +114,16 @@ window_show_bets(void);
|
||||
void
|
||||
window_show_progress(gint pictype);
|
||||
|
||||
void
|
||||
window_show_splash(void);
|
||||
|
||||
void
|
||||
window_load_hint_number(void);
|
||||
|
||||
void
|
||||
window_save_hint_number(void);
|
||||
|
||||
void
|
||||
window_splash_show_hint(void);
|
||||
|
||||
#endif
|
||||
|
@ -14,9 +14,10 @@ string_contrib_title Patches and ideas
|
||||
string_contrib_entry Mark Calderbank, Michal Rudolf
|
||||
|
||||
string_contrib_title Country definitions
|
||||
string_contrib_entry Győző Both (Australia, Brazil, Italy, Scotland, USA, WC2006)
|
||||
string_contrib_entry Győző Both (Australia, Brazil, Italy, Scotland, USA, WC2006, Euro 2008)
|
||||
string_contrib_entry Mark Calderbank (Bulgaria, England, Ireland, Spain, Victoria, Wales)
|
||||
string_contrib_entry Tobe & Arne Deprez (Belgium)
|
||||
string_contrib_entry Daniel Nylander (Sweden)
|
||||
string_contrib_entry Theodore Dimitriadis (Greece)
|
||||
string_contrib_entry Pechorin (Serbia & Montenegro)
|
||||
string_contrib_entry Koen Pijnenburg (Netherlands)
|
||||
@ -32,6 +33,7 @@ string_contrib_entry Tobe & Arne Deprez (Dutch)
|
||||
string_contrib_entry Marcelo Garrone, Carlos Garces (Spanish)
|
||||
string_contrib_entry Kristian Poul Herkild (Danish)
|
||||
string_contrib_entry Benyuan Liu (Chinese)
|
||||
string_contrib_entry Daniel Nylander (Swedish)
|
||||
string_contrib_entry Rostislav "zbrox" Raykov (Bulgarian)
|
||||
string_contrib_entry Michal Rudolf (Polish)
|
||||
string_contrib_entry Cristian Spoiala, Marin Florian (Romanian)
|
||||
|
Loading…
x
Reference in New Issue
Block a user