Options for news.

This commit is contained in:
gyboth 2008-12-16 12:59:55 +00:00
parent e40e37beb2
commit e7285746aa
4 changed files with 716 additions and 384 deletions

View File

@ -18,7 +18,6 @@
<property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
<property name="focus_on_map">True</property>
<property name="urgency_hint">False</property>
<signal name="delete_event" handler="on_window_options_delete_event" last_modification_time="Thu, 14 Jul 2005 15:49:01 GMT"/>
<child>
@ -813,6 +812,271 @@
</packing>
</child>
<child>
<widget class="GtkHBox" id="hbox6">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<widget class="GtkVBox" id="vbox6">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<widget class="GtkCheckButton" id="checkbutton_conf_youth">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Whether a confirmation popup is shown when you kick out a youth from your academy</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Confirm removing youths</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton_show_job">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Whether to show job offers when a user is successful</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Show job offers</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkEventBox" id="eventbox1">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Set to 0 to switch off warning</property>
<property name="visible_window">True</property>
<property name="above_child">False</property>
<child>
<widget class="GtkHBox" id="hbox10">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<widget class="GtkLabel" id="label37">
<property name="visible">True</property>
<property name="label" translatable="yes">Show warning if a player contract gets below </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>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="angle">0</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkSpinButton" id="spinbutton_contract">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="climb_rate">1</property>
<property name="digits">0</property>
<property name="numeric">True</property>
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
<property name="snap_to_ticks">False</property>
<property name="wrap">False</property>
<property name="adjustment">1 0 24 1 10 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="label38">
<property name="visible">True</property>
<property name="label" translatable="yes"> months</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>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="angle">0</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</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="GtkCheckButton" id="checkbutton_show_all_leagues">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Whether in the weekly fixture view all leagues or only the user league is shown</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Show all leagues in the fixture view</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</child>
<child>
<widget class="GtkVSeparator" id="vseparator3">
<property name="width_request">10</property>
<property name="height_request">1</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="vbox7">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<widget class="GtkCheckButton" id="checkbutton_swap_adapts">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Whether swapping two players automatically adapts the team structure to the player positions</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Swap adapts structure</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton_show_overall">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Whether to show the player games/goals value in all competitions</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Show overall games/goals</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</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">Gameplay</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>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="angle">0</property>
</widget>
<packing>
<property name="type">tab</property>
</packing>
</child>
<child>
<widget class="GtkHBox" id="hbox4">
<property name="visible">True</property>
@ -1123,271 +1387,6 @@
</packing>
</child>
<child>
<widget class="GtkHBox" id="hbox6">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<widget class="GtkVBox" id="vbox6">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<widget class="GtkCheckButton" id="checkbutton_conf_youth">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Whether a confirmation popup is shown when you kick out a youth from your academy</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Confirm removing youths</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton_show_job">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Whether to show job offers when a user is successful</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Show job offers</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkEventBox" id="eventbox1">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Set to 0 to switch off warning</property>
<property name="visible_window">True</property>
<property name="above_child">False</property>
<child>
<widget class="GtkHBox" id="hbox10">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<widget class="GtkLabel" id="label37">
<property name="visible">True</property>
<property name="label" translatable="yes">Show warning if a player contract gets below </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>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="angle">0</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkSpinButton" id="spinbutton_contract">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="climb_rate">1</property>
<property name="digits">0</property>
<property name="numeric">True</property>
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
<property name="snap_to_ticks">False</property>
<property name="wrap">False</property>
<property name="adjustment">1 0 24 1 10 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="label38">
<property name="visible">True</property>
<property name="label" translatable="yes"> months</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>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="angle">0</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</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="GtkCheckButton" id="checkbutton_show_all_leagues">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Whether in the weekly fixture view all leagues or only the user league is shown</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Show all leagues in the fixture view</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</child>
<child>
<widget class="GtkVSeparator" id="vseparator3">
<property name="width_request">10</property>
<property name="height_request">1</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="vbox7">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<widget class="GtkCheckButton" id="checkbutton_swap_adapts">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Whether swapping two players automatically adapts the team structure to the player positions</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Swap adapts structure</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton_show_overall">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Whether to show the player games/goals value in all competitions</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Show overall games/goals</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</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">Misc.</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>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="angle">0</property>
</widget>
<packing>
<property name="type">tab</property>
</packing>
</child>
<child>
<widget class="GtkTable" id="table2">
<property name="visible">True</property>
@ -2989,14 +2988,6 @@
<property name="fill">True</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
</widget>
<packing>
<property name="tab_expand">False</property>
@ -3270,6 +3261,212 @@
<property name="type">tab</property>
</packing>
</child>
<child>
<widget class="GtkVBox" id="vbox11">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">4</property>
<child>
<widget class="GtkHBox" id="hbox17">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">5</property>
<child>
<widget class="GtkCheckButton" id="checkbutton_news_user">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Create user news</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton_news_cup">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Create cup news</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton_news_league">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Create league news</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton_news_recent">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Show only recent news</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkHBox" id="hbox18">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">5</property>
<child>
<widget class="GtkRadioButton" id="radiobutton_news_popup_no">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">No automatic popup</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkRadioButton" id="radiobutton_news_popup_user">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Show news window after a matchday when new user news was created</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Popup for user news</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
<property name="group">radiobutton_news_popup_no</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkRadioButton" id="radiobutton_news_popup_always">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Always show news window after a matchday</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Automatic popup</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
<property name="group">radiobutton_news_popup_no</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
</widget>
<packing>
<property name="tab_expand">False</property>
<property name="tab_fill">True</property>
</packing>
</child>
<child>
<widget class="GtkLabel" id="label48">
<property name="visible">True</property>
<property name="label" translatable="yes">News</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>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="angle">0</property>
</widget>
<packing>
<property name="type">tab</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>

View File

@ -62,6 +62,10 @@ enum BooleanOptions
BOOL_OPT_BET_SHOW_ALL_LEAGUES,
BOOL_OPT_BET_SHOW_CUPS,
BOOL_OPT_BET_SHOW_MY_RECENT,
BOOL_OPT_NEWS_USER,
BOOL_OPT_NEWS_CUP,
BOOL_OPT_NEWS_LEAGUE,
BOOL_OPT_NEWS_RECENT,
BOOL_OPT_PL1_ATT_NAME,
BOOL_OPT_PL1_ATT_CPOS,
BOOL_OPT_PL1_ATT_POS,
@ -199,6 +203,22 @@ option_gui_write_bool_widgets(gint **bool_options, GtkToggleButton **bool_widget
GTK_TOGGLE_BUTTON(lookup_widget(window.options, "checkbutton_bet_show_only_recent"));
bool_options[BOOL_OPT_BET_SHOW_MY_RECENT] = opt_user_intp("int_opt_user_bet_show_my_recent");
bool_widgets[BOOL_OPT_NEWS_USER] =
GTK_TOGGLE_BUTTON(lookup_widget(window.options, "checkbutton_news_user"));
bool_options[BOOL_OPT_NEWS_USER] = opt_user_intp("int_opt_user_news_create_user");
bool_widgets[BOOL_OPT_NEWS_CUP] =
GTK_TOGGLE_BUTTON(lookup_widget(window.options, "checkbutton_news_cup"));
bool_options[BOOL_OPT_NEWS_CUP] = opt_user_intp("int_opt_user_news_create_cup");
bool_widgets[BOOL_OPT_NEWS_LEAGUE] =
GTK_TOGGLE_BUTTON(lookup_widget(window.options, "checkbutton_news_league"));
bool_options[BOOL_OPT_NEWS_LEAGUE] = opt_user_intp("int_opt_user_news_create_league");
bool_widgets[BOOL_OPT_NEWS_RECENT] =
GTK_TOGGLE_BUTTON(lookup_widget(window.options, "checkbutton_news_recent"));
bool_options[BOOL_OPT_NEWS_RECENT] = opt_user_intp("int_opt_user_news_show_recent");
bool_widgets[BOOL_OPT_PL1_ATT_NAME] =
GTK_TOGGLE_BUTTON(lookup_widget(window.options, "checkbutton1"));
bool_options[BOOL_OPT_PL1_ATT_NAME] = opt_user_intp("int_opt_user_pl1_att_name");
@ -423,7 +443,6 @@ option_gui_write_spin_widgets(gint **spin_options, GtkSpinButton **spin_widgets)
(gdouble)tmp);
}
/** Text entries. */
enum EntryOptions
{
@ -469,6 +488,11 @@ option_gui_set_up_window(void)
GtkEntry *entry_widgets[ENTRY_OPT_END];
gchar **entry_options[ENTRY_OPT_END];
GtkToggleButton *news_popup_buttons[3] =
{GTK_TOGGLE_BUTTON(lookup_widget(window.options, "radiobutton_news_popup_no")),
GTK_TOGGLE_BUTTON(lookup_widget(window.options, "radiobutton_news_popup_user")),
GTK_TOGGLE_BUTTON(lookup_widget(window.options, "radiobutton_news_popup_always"))};
treeview_show_language_combo();
treeview_show_training_hotels_combo();
@ -477,8 +501,8 @@ option_gui_set_up_window(void)
option_gui_write_entry_widgets(entry_options, entry_widgets);
for(i=0;i<BOOL_OPT_END;i++)
gtk_toggle_button_set_active(bool_widgets[i], *(bool_options[i]));
gtk_toggle_button_set_active(bool_widgets[i], *(bool_options[i]));
for(i=0;i<SPIN_OPT_END;i++)
gtk_spin_button_set_value(spin_widgets[i], (gfloat)(*(spin_options[i])));
@ -488,6 +512,8 @@ option_gui_set_up_window(void)
sprintf(buf, "%d", CAMP_SCALE_MAX - gtk_spin_button_get_value_as_int(
GTK_SPIN_BUTTON(lookup_widget(window.options, "spinbutton_recreation"))));
gtk_label_set_text(GTK_LABEL(lookup_widget(window.options, "label_training")), buf);
gtk_toggle_button_set_active(news_popup_buttons[opt_user_int("int_opt_user_news_popup")], TRUE);
}
/** Read the widget states in the options window and set the
@ -510,7 +536,11 @@ option_gui_write_options(void)
gint *spin_options[SPIN_OPT_END];
GtkEntry *entry_widgets[ENTRY_OPT_END];
gchar **entry_options[ENTRY_OPT_END];
GtkToggleButton *news_popup_buttons[3] =
{GTK_TOGGLE_BUTTON(lookup_widget(window.options, "radiobutton_news_popup_no")),
GTK_TOGGLE_BUTTON(lookup_widget(window.options, "radiobutton_news_popup_user")),
GTK_TOGGLE_BUTTON(lookup_widget(window.options, "radiobutton_news_popup_always"))};
language_set(language_index);
opt_user_set_int("int_opt_user_training_camp_hotel", training_camp_hotel);
@ -536,5 +566,12 @@ option_gui_write_options(void)
on_button_back_to_main_clicked(NULL, NULL);
}
for(i = 0; i < 3; i++)
if(gtk_toggle_button_get_active(news_popup_buttons[i]))
{
opt_user_set_int("int_opt_user_news_popup", i);
break;
}
game_gui_write_check_items();
}

View File

@ -77,6 +77,22 @@ create_window_options (void)
GtkWidget *eventbox2;
GtkWidget *combobox_languages;
GtkWidget *label1;
GtkWidget *hbox6;
GtkWidget *vbox6;
GtkWidget *checkbutton_conf_youth;
GtkWidget *checkbutton_show_job;
GtkWidget *eventbox1;
GtkWidget *hbox10;
GtkWidget *label37;
GtkObject *spinbutton_contract_adj;
GtkWidget *spinbutton_contract;
GtkWidget *label38;
GtkWidget *checkbutton_show_all_leagues;
GtkWidget *vseparator3;
GtkWidget *vbox7;
GtkWidget *checkbutton_swap_adapts;
GtkWidget *checkbutton_show_overall;
GtkWidget *label3;
GtkWidget *hbox4;
GtkWidget *vbox4;
GtkWidget *checkbutton_show_live;
@ -95,22 +111,6 @@ create_window_options (void)
GtkWidget *checkbutton_pause_red;
GtkWidget *checkbutton_pause_break;
GtkWidget *label2;
GtkWidget *hbox6;
GtkWidget *vbox6;
GtkWidget *checkbutton_conf_youth;
GtkWidget *checkbutton_show_job;
GtkWidget *eventbox1;
GtkWidget *hbox10;
GtkWidget *label37;
GtkObject *spinbutton_contract_adj;
GtkWidget *spinbutton_contract;
GtkWidget *label38;
GtkWidget *checkbutton_show_all_leagues;
GtkWidget *vseparator3;
GtkWidget *vbox7;
GtkWidget *checkbutton_swap_adapts;
GtkWidget *checkbutton_show_overall;
GtkWidget *label3;
GtkWidget *table2;
GtkWidget *label13;
GtkWidget *label14;
@ -198,6 +198,18 @@ create_window_options (void)
GtkWidget *label47;
GtkWidget *label_training;
GtkWidget *label43;
GtkWidget *vbox11;
GtkWidget *hbox17;
GtkWidget *checkbutton_news_user;
GtkWidget *checkbutton_news_cup;
GtkWidget *checkbutton_news_league;
GtkWidget *checkbutton_news_recent;
GtkWidget *hbox18;
GtkWidget *radiobutton_news_popup_no;
GSList *radiobutton_news_popup_no_group = NULL;
GtkWidget *radiobutton_news_popup_user;
GtkWidget *radiobutton_news_popup_always;
GtkWidget *label48;
GtkWidget *hseparator1;
GtkWidget *hbox1;
GtkWidget *vbox2;
@ -448,6 +460,75 @@ create_window_options (void)
gtk_widget_show (label1);
gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 0), label1);
hbox6 = gtk_hbox_new (FALSE, 0);
gtk_widget_show (hbox6);
gtk_container_add (GTK_CONTAINER (notebook1), hbox6);
vbox6 = gtk_vbox_new (FALSE, 0);
gtk_widget_show (vbox6);
gtk_box_pack_start (GTK_BOX (hbox6), vbox6, TRUE, TRUE, 0);
checkbutton_conf_youth = gtk_check_button_new_with_mnemonic (_("Confirm removing youths"));
gtk_widget_show (checkbutton_conf_youth);
gtk_box_pack_start (GTK_BOX (vbox6), checkbutton_conf_youth, FALSE, FALSE, 0);
gtk_tooltips_set_tip (tooltips, checkbutton_conf_youth, _("Whether a confirmation popup is shown when you kick out a youth from your academy"), NULL);
checkbutton_show_job = gtk_check_button_new_with_mnemonic (_("Show job offers"));
gtk_widget_show (checkbutton_show_job);
gtk_box_pack_start (GTK_BOX (vbox6), checkbutton_show_job, FALSE, FALSE, 0);
gtk_tooltips_set_tip (tooltips, checkbutton_show_job, _("Whether to show job offers when a user is successful"), NULL);
eventbox1 = gtk_event_box_new ();
gtk_widget_show (eventbox1);
gtk_box_pack_start (GTK_BOX (vbox6), eventbox1, FALSE, FALSE, 0);
gtk_tooltips_set_tip (tooltips, eventbox1, _("Set to 0 to switch off warning"), NULL);
hbox10 = gtk_hbox_new (FALSE, 0);
gtk_widget_show (hbox10);
gtk_container_add (GTK_CONTAINER (eventbox1), hbox10);
label37 = gtk_label_new (_("Show warning if a player contract gets below "));
gtk_widget_show (label37);
gtk_box_pack_start (GTK_BOX (hbox10), label37, FALSE, FALSE, 0);
spinbutton_contract_adj = gtk_adjustment_new (1, 0, 24, 1, 10, 0);
spinbutton_contract = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton_contract_adj), 1, 0);
gtk_widget_show (spinbutton_contract);
gtk_box_pack_start (GTK_BOX (hbox10), spinbutton_contract, FALSE, FALSE, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton_contract), TRUE);
label38 = gtk_label_new (_(" months"));
gtk_widget_show (label38);
gtk_box_pack_start (GTK_BOX (hbox10), label38, FALSE, FALSE, 0);
checkbutton_show_all_leagues = gtk_check_button_new_with_mnemonic (_("Show all leagues in the fixture view"));
gtk_widget_show (checkbutton_show_all_leagues);
gtk_box_pack_start (GTK_BOX (vbox6), checkbutton_show_all_leagues, FALSE, FALSE, 0);
gtk_tooltips_set_tip (tooltips, checkbutton_show_all_leagues, _("Whether in the weekly fixture view all leagues or only the user league is shown"), NULL);
vseparator3 = gtk_vseparator_new ();
gtk_widget_show (vseparator3);
gtk_box_pack_start (GTK_BOX (hbox6), vseparator3, FALSE, FALSE, 0);
gtk_widget_set_size_request (vseparator3, 10, 1);
vbox7 = gtk_vbox_new (FALSE, 0);
gtk_widget_show (vbox7);
gtk_box_pack_start (GTK_BOX (hbox6), vbox7, TRUE, TRUE, 0);
checkbutton_swap_adapts = gtk_check_button_new_with_mnemonic (_("Swap adapts structure"));
gtk_widget_show (checkbutton_swap_adapts);
gtk_box_pack_start (GTK_BOX (vbox7), checkbutton_swap_adapts, FALSE, FALSE, 0);
gtk_tooltips_set_tip (tooltips, checkbutton_swap_adapts, _("Whether swapping two players automatically adapts the team structure to the player positions"), NULL);
checkbutton_show_overall = gtk_check_button_new_with_mnemonic (_("Show overall games/goals"));
gtk_widget_show (checkbutton_show_overall);
gtk_box_pack_start (GTK_BOX (vbox7), checkbutton_show_overall, FALSE, FALSE, 0);
gtk_tooltips_set_tip (tooltips, checkbutton_show_overall, _("Whether to show the player games/goals value in all competitions"), NULL);
label3 = gtk_label_new (_("Gameplay"));
gtk_widget_show (label3);
gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 1), label3);
hbox4 = gtk_hbox_new (FALSE, 0);
gtk_widget_show (hbox4);
gtk_container_add (GTK_CONTAINER (notebook1), hbox4);
@ -532,76 +613,7 @@ create_window_options (void)
label2 = gtk_label_new (_("Live game"));
gtk_widget_show (label2);
gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 1), label2);
hbox6 = gtk_hbox_new (FALSE, 0);
gtk_widget_show (hbox6);
gtk_container_add (GTK_CONTAINER (notebook1), hbox6);
vbox6 = gtk_vbox_new (FALSE, 0);
gtk_widget_show (vbox6);
gtk_box_pack_start (GTK_BOX (hbox6), vbox6, TRUE, TRUE, 0);
checkbutton_conf_youth = gtk_check_button_new_with_mnemonic (_("Confirm removing youths"));
gtk_widget_show (checkbutton_conf_youth);
gtk_box_pack_start (GTK_BOX (vbox6), checkbutton_conf_youth, FALSE, FALSE, 0);
gtk_tooltips_set_tip (tooltips, checkbutton_conf_youth, _("Whether a confirmation popup is shown when you kick out a youth from your academy"), NULL);
checkbutton_show_job = gtk_check_button_new_with_mnemonic (_("Show job offers"));
gtk_widget_show (checkbutton_show_job);
gtk_box_pack_start (GTK_BOX (vbox6), checkbutton_show_job, FALSE, FALSE, 0);
gtk_tooltips_set_tip (tooltips, checkbutton_show_job, _("Whether to show job offers when a user is successful"), NULL);
eventbox1 = gtk_event_box_new ();
gtk_widget_show (eventbox1);
gtk_box_pack_start (GTK_BOX (vbox6), eventbox1, FALSE, FALSE, 0);
gtk_tooltips_set_tip (tooltips, eventbox1, _("Set to 0 to switch off warning"), NULL);
hbox10 = gtk_hbox_new (FALSE, 0);
gtk_widget_show (hbox10);
gtk_container_add (GTK_CONTAINER (eventbox1), hbox10);
label37 = gtk_label_new (_("Show warning if a player contract gets below "));
gtk_widget_show (label37);
gtk_box_pack_start (GTK_BOX (hbox10), label37, FALSE, FALSE, 0);
spinbutton_contract_adj = gtk_adjustment_new (1, 0, 24, 1, 10, 0);
spinbutton_contract = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton_contract_adj), 1, 0);
gtk_widget_show (spinbutton_contract);
gtk_box_pack_start (GTK_BOX (hbox10), spinbutton_contract, FALSE, FALSE, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton_contract), TRUE);
label38 = gtk_label_new (_(" months"));
gtk_widget_show (label38);
gtk_box_pack_start (GTK_BOX (hbox10), label38, FALSE, FALSE, 0);
checkbutton_show_all_leagues = gtk_check_button_new_with_mnemonic (_("Show all leagues in the fixture view"));
gtk_widget_show (checkbutton_show_all_leagues);
gtk_box_pack_start (GTK_BOX (vbox6), checkbutton_show_all_leagues, FALSE, FALSE, 0);
gtk_tooltips_set_tip (tooltips, checkbutton_show_all_leagues, _("Whether in the weekly fixture view all leagues or only the user league is shown"), NULL);
vseparator3 = gtk_vseparator_new ();
gtk_widget_show (vseparator3);
gtk_box_pack_start (GTK_BOX (hbox6), vseparator3, FALSE, FALSE, 0);
gtk_widget_set_size_request (vseparator3, 10, 1);
vbox7 = gtk_vbox_new (FALSE, 0);
gtk_widget_show (vbox7);
gtk_box_pack_start (GTK_BOX (hbox6), vbox7, TRUE, TRUE, 0);
checkbutton_swap_adapts = gtk_check_button_new_with_mnemonic (_("Swap adapts structure"));
gtk_widget_show (checkbutton_swap_adapts);
gtk_box_pack_start (GTK_BOX (vbox7), checkbutton_swap_adapts, FALSE, FALSE, 0);
gtk_tooltips_set_tip (tooltips, checkbutton_swap_adapts, _("Whether swapping two players automatically adapts the team structure to the player positions"), NULL);
checkbutton_show_overall = gtk_check_button_new_with_mnemonic (_("Show overall games/goals"));
gtk_widget_show (checkbutton_show_overall);
gtk_box_pack_start (GTK_BOX (vbox7), checkbutton_show_overall, FALSE, FALSE, 0);
gtk_tooltips_set_tip (tooltips, checkbutton_show_overall, _("Whether to show the player games/goals value in all competitions"), NULL);
label3 = gtk_label_new (_("Misc."));
gtk_widget_show (label3);
gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 2), label3);
gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 2), label2);
table2 = gtk_table_new (20, 3, FALSE);
gtk_widget_show (table2);
@ -1104,6 +1116,58 @@ create_window_options (void)
gtk_widget_show (label43);
gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 5), label43);
vbox11 = gtk_vbox_new (FALSE, 4);
gtk_widget_show (vbox11);
gtk_container_add (GTK_CONTAINER (notebook1), vbox11);
hbox17 = gtk_hbox_new (FALSE, 5);
gtk_widget_show (hbox17);
gtk_box_pack_start (GTK_BOX (vbox11), hbox17, FALSE, FALSE, 0);
checkbutton_news_user = gtk_check_button_new_with_mnemonic (_("Create user news"));
gtk_widget_show (checkbutton_news_user);
gtk_box_pack_start (GTK_BOX (hbox17), checkbutton_news_user, FALSE, FALSE, 0);
checkbutton_news_cup = gtk_check_button_new_with_mnemonic (_("Create cup news"));
gtk_widget_show (checkbutton_news_cup);
gtk_box_pack_start (GTK_BOX (hbox17), checkbutton_news_cup, FALSE, FALSE, 0);
checkbutton_news_league = gtk_check_button_new_with_mnemonic (_("Create league news"));
gtk_widget_show (checkbutton_news_league);
gtk_box_pack_start (GTK_BOX (hbox17), checkbutton_news_league, FALSE, FALSE, 0);
checkbutton_news_recent = gtk_check_button_new_with_mnemonic (_("Show only recent news"));
gtk_widget_show (checkbutton_news_recent);
gtk_box_pack_start (GTK_BOX (vbox11), checkbutton_news_recent, FALSE, FALSE, 0);
hbox18 = gtk_hbox_new (FALSE, 5);
gtk_widget_show (hbox18);
gtk_box_pack_start (GTK_BOX (vbox11), hbox18, FALSE, FALSE, 0);
radiobutton_news_popup_no = gtk_radio_button_new_with_mnemonic (NULL, _("No automatic popup"));
gtk_widget_show (radiobutton_news_popup_no);
gtk_box_pack_start (GTK_BOX (hbox18), radiobutton_news_popup_no, FALSE, FALSE, 0);
gtk_radio_button_set_group (GTK_RADIO_BUTTON (radiobutton_news_popup_no), radiobutton_news_popup_no_group);
radiobutton_news_popup_no_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radiobutton_news_popup_no));
radiobutton_news_popup_user = gtk_radio_button_new_with_mnemonic (NULL, _("Popup for user news"));
gtk_widget_show (radiobutton_news_popup_user);
gtk_box_pack_start (GTK_BOX (hbox18), radiobutton_news_popup_user, FALSE, FALSE, 0);
gtk_tooltips_set_tip (tooltips, radiobutton_news_popup_user, _("Show news window after a matchday when new user news was created"), NULL);
gtk_radio_button_set_group (GTK_RADIO_BUTTON (radiobutton_news_popup_user), radiobutton_news_popup_no_group);
radiobutton_news_popup_no_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radiobutton_news_popup_user));
radiobutton_news_popup_always = gtk_radio_button_new_with_mnemonic (NULL, _("Automatic popup"));
gtk_widget_show (radiobutton_news_popup_always);
gtk_box_pack_start (GTK_BOX (hbox18), radiobutton_news_popup_always, FALSE, FALSE, 0);
gtk_tooltips_set_tip (tooltips, radiobutton_news_popup_always, _("Always show news window after a matchday"), NULL);
gtk_radio_button_set_group (GTK_RADIO_BUTTON (radiobutton_news_popup_always), radiobutton_news_popup_no_group);
radiobutton_news_popup_no_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radiobutton_news_popup_always));
label48 = gtk_label_new (_("News"));
gtk_widget_show (label48);
gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 6), label48);
hseparator1 = gtk_hseparator_new ();
gtk_widget_show (hseparator1);
gtk_box_pack_start (GTK_BOX (vbox1), hseparator1, FALSE, FALSE, 0);
@ -1209,6 +1273,21 @@ create_window_options (void)
GLADE_HOOKUP_OBJECT (window_options, eventbox2, "eventbox2");
GLADE_HOOKUP_OBJECT (window_options, combobox_languages, "combobox_languages");
GLADE_HOOKUP_OBJECT (window_options, label1, "label1");
GLADE_HOOKUP_OBJECT (window_options, hbox6, "hbox6");
GLADE_HOOKUP_OBJECT (window_options, vbox6, "vbox6");
GLADE_HOOKUP_OBJECT (window_options, checkbutton_conf_youth, "checkbutton_conf_youth");
GLADE_HOOKUP_OBJECT (window_options, checkbutton_show_job, "checkbutton_show_job");
GLADE_HOOKUP_OBJECT (window_options, eventbox1, "eventbox1");
GLADE_HOOKUP_OBJECT (window_options, hbox10, "hbox10");
GLADE_HOOKUP_OBJECT (window_options, label37, "label37");
GLADE_HOOKUP_OBJECT (window_options, spinbutton_contract, "spinbutton_contract");
GLADE_HOOKUP_OBJECT (window_options, label38, "label38");
GLADE_HOOKUP_OBJECT (window_options, checkbutton_show_all_leagues, "checkbutton_show_all_leagues");
GLADE_HOOKUP_OBJECT (window_options, vseparator3, "vseparator3");
GLADE_HOOKUP_OBJECT (window_options, vbox7, "vbox7");
GLADE_HOOKUP_OBJECT (window_options, checkbutton_swap_adapts, "checkbutton_swap_adapts");
GLADE_HOOKUP_OBJECT (window_options, checkbutton_show_overall, "checkbutton_show_overall");
GLADE_HOOKUP_OBJECT (window_options, label3, "label3");
GLADE_HOOKUP_OBJECT (window_options, hbox4, "hbox4");
GLADE_HOOKUP_OBJECT (window_options, vbox4, "vbox4");
GLADE_HOOKUP_OBJECT (window_options, checkbutton_show_live, "checkbutton_show_live");
@ -1225,21 +1304,6 @@ create_window_options (void)
GLADE_HOOKUP_OBJECT (window_options, checkbutton_pause_red, "checkbutton_pause_red");
GLADE_HOOKUP_OBJECT (window_options, checkbutton_pause_break, "checkbutton_pause_break");
GLADE_HOOKUP_OBJECT (window_options, label2, "label2");
GLADE_HOOKUP_OBJECT (window_options, hbox6, "hbox6");
GLADE_HOOKUP_OBJECT (window_options, vbox6, "vbox6");
GLADE_HOOKUP_OBJECT (window_options, checkbutton_conf_youth, "checkbutton_conf_youth");
GLADE_HOOKUP_OBJECT (window_options, checkbutton_show_job, "checkbutton_show_job");
GLADE_HOOKUP_OBJECT (window_options, eventbox1, "eventbox1");
GLADE_HOOKUP_OBJECT (window_options, hbox10, "hbox10");
GLADE_HOOKUP_OBJECT (window_options, label37, "label37");
GLADE_HOOKUP_OBJECT (window_options, spinbutton_contract, "spinbutton_contract");
GLADE_HOOKUP_OBJECT (window_options, label38, "label38");
GLADE_HOOKUP_OBJECT (window_options, checkbutton_show_all_leagues, "checkbutton_show_all_leagues");
GLADE_HOOKUP_OBJECT (window_options, vseparator3, "vseparator3");
GLADE_HOOKUP_OBJECT (window_options, vbox7, "vbox7");
GLADE_HOOKUP_OBJECT (window_options, checkbutton_swap_adapts, "checkbutton_swap_adapts");
GLADE_HOOKUP_OBJECT (window_options, checkbutton_show_overall, "checkbutton_show_overall");
GLADE_HOOKUP_OBJECT (window_options, label3, "label3");
GLADE_HOOKUP_OBJECT (window_options, table2, "table2");
GLADE_HOOKUP_OBJECT (window_options, label13, "label13");
GLADE_HOOKUP_OBJECT (window_options, label14, "label14");
@ -1325,6 +1389,17 @@ create_window_options (void)
GLADE_HOOKUP_OBJECT (window_options, label47, "label47");
GLADE_HOOKUP_OBJECT (window_options, label_training, "label_training");
GLADE_HOOKUP_OBJECT (window_options, label43, "label43");
GLADE_HOOKUP_OBJECT (window_options, vbox11, "vbox11");
GLADE_HOOKUP_OBJECT (window_options, hbox17, "hbox17");
GLADE_HOOKUP_OBJECT (window_options, checkbutton_news_user, "checkbutton_news_user");
GLADE_HOOKUP_OBJECT (window_options, checkbutton_news_cup, "checkbutton_news_cup");
GLADE_HOOKUP_OBJECT (window_options, checkbutton_news_league, "checkbutton_news_league");
GLADE_HOOKUP_OBJECT (window_options, checkbutton_news_recent, "checkbutton_news_recent");
GLADE_HOOKUP_OBJECT (window_options, hbox18, "hbox18");
GLADE_HOOKUP_OBJECT (window_options, radiobutton_news_popup_no, "radiobutton_news_popup_no");
GLADE_HOOKUP_OBJECT (window_options, radiobutton_news_popup_user, "radiobutton_news_popup_user");
GLADE_HOOKUP_OBJECT (window_options, radiobutton_news_popup_always, "radiobutton_news_popup_always");
GLADE_HOOKUP_OBJECT (window_options, label48, "label48");
GLADE_HOOKUP_OBJECT (window_options, hseparator1, "hseparator1");
GLADE_HOOKUP_OBJECT (window_options, hbox1, "hbox1");
GLADE_HOOKUP_OBJECT (window_options, vbox2, "vbox2");

View File

@ -1,7 +1,14 @@
int_opt_user_confirm_youth 0
int_opt_user_show_live_game 0
int_opt_user_live_game_speed 40
int_opt_user_live_game_verbosity 7
# Bygfoot Football Manager
# Default user configuration file
# Most of these options are uncommented because their meaning
# is rather clear if you take a look at the options window in the game.
int_opt_user_confirm_youth 1
int_opt_user_show_live_game 1
int_opt_user_live_game_speed 20
int_opt_user_live_game_verbosity 5
int_opt_user_show_tendency_bar 1
int_opt_user_pause_injury 1
int_opt_user_pause_red 1
@ -10,15 +17,28 @@ int_opt_user_auto_sub 0
int_opt_user_show_job_offers 1
int_opt_user_swap_adapts 1
int_opt_user_show_overall 0
int_opt_user_show_all_leagues 1
int_opt_user_show_all_leagues 0
int_opt_user_contract_limit 12
int_opt_user_penalty_shooter -1
int_opt_user_bet_show_all_leagues 0
int_opt_user_bet_show_cups 1
int_opt_user_bet_show_my_recent 1
int_opt_user_bet_default_wager 5000
# default training camp hotel
int_opt_user_training_camp_hotel 1
int_opt_user_training_camp_recreation 5
int_opt_user_news_create_user 1
int_opt_user_news_create_cup 1
int_opt_user_news_create_league 1
int_opt_user_news_show_recent 0
int_opt_user_news_popup 0
# the order of these attributes is important
# don't change it, only the values
int_opt_user_pl1_att_name 1
int_opt_user_pl1_att_cpos 1
int_opt_user_pl1_att_pos 1
@ -37,6 +57,9 @@ int_opt_user_pl1_att_wage 0
int_opt_user_pl1_att_contract 0
int_opt_user_pl1_att_team 0
int_opt_user_pl1_att_league_cup 0
# the order of these attributes is important
# don't change it, only the values
int_opt_user_pl2_att_name 1
int_opt_user_pl2_att_cpos 0
int_opt_user_pl2_att_pos 1