mirror of
https://github.com/tstellar/bygfoot.git
synced 2025-02-15 11:00:39 +01:00
"Live game verbosity."
This commit is contained in:
parent
99c344ff84
commit
3d2ea206e5
@ -1328,18 +1328,107 @@
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkSpinButton" id="spinbutton_speed">
|
||||
<widget class="GtkTable" id="table2">
|
||||
<property name="visible">True</property>
|
||||
<property name="tooltip" translatable="yes">Change live game speed. The lower the value the faster the live game.</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">0 -10 20 1 10 10</property>
|
||||
<signal name="value_changed" handler="on_spinbutton_speed_value_changed" last_modification_time="Mon, 10 Jan 2005 15:04:50 GMT"/>
|
||||
<property name="n_rows">2</property>
|
||||
<property name="n_columns">2</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="row_spacing">1</property>
|
||||
<property name="column_spacing">3</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkSpinButton" id="spinbutton_speed">
|
||||
<property name="visible">True</property>
|
||||
<property name="tooltip" translatable="yes">Change live game speed. The lower the value the faster the live game.</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">0 -10 20 1 10 10</property>
|
||||
<signal name="value_changed" handler="on_spinbutton_speed_value_changed" last_modification_time="Mon, 10 Jan 2005 15:04:50 GMT"/>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="left_attach">1</property>
|
||||
<property name="right_attach">2</property>
|
||||
<property name="top_attach">1</property>
|
||||
<property name="bottom_attach">2</property>
|
||||
<property name="y_options"></property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label112">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Speed</property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_RIGHT</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="left_attach">1</property>
|
||||
<property name="right_attach">2</property>
|
||||
<property name="top_attach">0</property>
|
||||
<property name="bottom_attach">1</property>
|
||||
<property name="x_options">fill</property>
|
||||
<property name="y_options"></property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label113">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Verbosity</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="left_attach">0</property>
|
||||
<property name="right_attach">1</property>
|
||||
<property name="top_attach">0</property>
|
||||
<property name="bottom_attach">1</property>
|
||||
<property name="x_options">fill</property>
|
||||
<property name="y_options"></property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkSpinButton" id="spinbutton_verbosity">
|
||||
<property name="visible">True</property>
|
||||
<property name="tooltip" translatable="yes">Change commentary verbosity. The higher this value the more events you can see.</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 1 7 1 10 10</property>
|
||||
<signal name="value_changed" handler="on_spinbutton_verbosity_value_changed" last_modification_time="Thu, 19 May 2005 08:16:48 GMT"/>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="left_attach">0</property>
|
||||
<property name="right_attach">1</property>
|
||||
<property name="top_attach">1</property>
|
||||
<property name="bottom_attach">2</property>
|
||||
<property name="y_options"></property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
@ -2185,7 +2274,7 @@
|
||||
<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_stadium_ok_clicked" last_modification_time="Thu, 17 Mar 2005 13:26:43 GMT"/>
|
||||
<signal name="clicked" handler="on_button_stadium_ok_clicked" last_modification_time="Wed, 18 May 2005 16:55:59 GMT"/>
|
||||
<accelerator key="Return" modifiers="0" signal="clicked"/>
|
||||
|
||||
<child>
|
||||
|
@ -12,6 +12,11 @@
|
||||
<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>
|
||||
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox1">
|
||||
@ -49,6 +54,7 @@
|
||||
<property name="label" translatable="yes">Confirm quit when not saved</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>
|
||||
@ -68,6 +74,7 @@
|
||||
<property name="label" translatable="yes">Confirm when unfit</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>
|
||||
@ -86,6 +93,7 @@
|
||||
<property name="label" translatable="yes">Save overwrites</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>
|
||||
@ -104,6 +112,7 @@
|
||||
<property name="label" translatable="yes">Maximize main window</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>
|
||||
@ -122,6 +131,7 @@
|
||||
<property name="label" translatable="yes">Prefer messages</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>
|
||||
@ -169,6 +179,7 @@
|
||||
<property name="label" translatable="yes">Autosave</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>
|
||||
@ -399,6 +410,7 @@
|
||||
<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_font_name_clicked" last_modification_time="Thu, 24 Mar 2005 08:47:41 GMT"/>
|
||||
|
||||
<child>
|
||||
@ -408,6 +420,10 @@
|
||||
<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="hbox7">
|
||||
@ -520,6 +536,7 @@
|
||||
<property name="tooltip" translatable="yes">Reload the constants file</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_reload_constants_clicked" last_modification_time="Sun, 27 Mar 2005 15:40:44 GMT"/>
|
||||
|
||||
<child>
|
||||
@ -529,6 +546,10 @@
|
||||
<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">
|
||||
@ -646,6 +667,7 @@
|
||||
<property name="label" translatable="yes">Show live game</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>
|
||||
@ -664,6 +686,7 @@
|
||||
<property name="label" translatable="yes">Show tendency bar</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>
|
||||
@ -676,35 +699,66 @@
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkHBox" id="hbox5">
|
||||
<widget class="GtkTable" id="table3">
|
||||
<property name="visible">True</property>
|
||||
<property name="n_rows">2</property>
|
||||
<property name="n_columns">2</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">0</property>
|
||||
<property name="row_spacing">0</property>
|
||||
<property name="column_spacing">2</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label12">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Live game speed factor </property>
|
||||
<property name="label" translatable="yes">Live game speed factor</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="xalign">1</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="left_attach">0</property>
|
||||
<property name="right_attach">1</property>
|
||||
<property name="top_attach">0</property>
|
||||
<property name="bottom_attach">1</property>
|
||||
<property name="x_options">fill</property>
|
||||
<property name="y_options"></property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label39">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Live game verbosity</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">1</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="left_attach">0</property>
|
||||
<property name="right_attach">1</property>
|
||||
<property name="top_attach">1</property>
|
||||
<property name="bottom_attach">2</property>
|
||||
<property name="x_options">fill</property>
|
||||
<property name="y_options"></property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkSpinButton" id="spinbutton_live_speed">
|
||||
<property name="visible">True</property>
|
||||
<property name="tooltip" translatable="yes">The lower this value the faster the live game commentary will scroll.</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="climb_rate">1</property>
|
||||
<property name="digits">0</property>
|
||||
@ -715,9 +769,33 @@
|
||||
<property name="adjustment">0 -10 20 1 10 10</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="left_attach">1</property>
|
||||
<property name="right_attach">2</property>
|
||||
<property name="top_attach">0</property>
|
||||
<property name="bottom_attach">1</property>
|
||||
<property name="y_options"></property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkSpinButton" id="spinbutton_live_verbosity">
|
||||
<property name="visible">True</property>
|
||||
<property name="tooltip" translatable="yes">The higher this value, the more commentary you'll see.</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 1 7 1 10 10</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="left_attach">1</property>
|
||||
<property name="right_attach">2</property>
|
||||
<property name="top_attach">1</property>
|
||||
<property name="bottom_attach">2</property>
|
||||
<property name="y_options"></property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
@ -735,6 +813,7 @@
|
||||
<property name="label" translatable="yes">Automatic substitutions</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>
|
||||
@ -779,6 +858,7 @@
|
||||
<property name="label" translatable="yes">Pause when injury</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>
|
||||
@ -797,6 +877,7 @@
|
||||
<property name="label" translatable="yes">Pause when red card</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>
|
||||
@ -815,6 +896,7 @@
|
||||
<property name="label" translatable="yes">Pause when break</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>
|
||||
@ -877,6 +959,7 @@
|
||||
<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>
|
||||
@ -892,6 +975,8 @@
|
||||
<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">
|
||||
@ -977,6 +1062,7 @@
|
||||
<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>
|
||||
@ -1021,6 +1107,7 @@
|
||||
<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>
|
||||
@ -1039,6 +1126,7 @@
|
||||
<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>
|
||||
@ -1530,6 +1618,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -1551,6 +1640,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -1572,6 +1662,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -1593,6 +1684,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -1614,6 +1706,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -1635,6 +1728,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -1656,6 +1750,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -1677,6 +1772,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -1698,6 +1794,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -1719,6 +1816,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -1740,6 +1838,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -1761,6 +1860,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -1782,6 +1882,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -1803,6 +1904,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -1824,6 +1926,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -1845,6 +1948,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -1866,6 +1970,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -1887,6 +1992,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -1908,6 +2014,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -1929,6 +2036,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -1950,6 +2058,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -1971,6 +2080,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -1992,6 +2102,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -2013,6 +2124,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -2034,6 +2146,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -2055,6 +2168,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -2076,6 +2190,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -2097,6 +2212,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -2118,6 +2234,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -2139,6 +2256,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -2160,6 +2278,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -2181,6 +2300,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -2202,6 +2322,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -2223,6 +2344,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -2244,6 +2366,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -2265,6 +2388,7 @@
|
||||
<property name="label" translatable="yes"></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>
|
||||
@ -2463,6 +2587,7 @@
|
||||
<property name="label" translatable="yes">Save global settings to file</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>
|
||||
@ -2482,6 +2607,7 @@
|
||||
<property name="label" translatable="yes">Save user settings to file</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>
|
||||
@ -2508,6 +2634,7 @@
|
||||
<property name="label">gtk-apply</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_options_ok_clicked" last_modification_time="Wed, 23 Mar 2005 14:30:24 GMT"/>
|
||||
</widget>
|
||||
<packing>
|
||||
@ -2525,6 +2652,7 @@
|
||||
<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_button_options_cancel_clicked" last_modification_time="Wed, 23 Mar 2005 14:30:31 GMT"/>
|
||||
<accelerator key="Escape" modifiers="0" signal="clicked"/>
|
||||
</widget>
|
||||
|
@ -37,7 +37,8 @@ game_gui_live_game_show_unit(const LiveGameUnit *unit)
|
||||
|
||||
if(unit->event.type == LIVE_GAME_EVENT_START_MATCH)
|
||||
treeview_live_game_show_initial_commentary(unit);
|
||||
else
|
||||
else if(option_int("int_opt_user_live_game_verbosity",
|
||||
&usr(stat2).options) > unit->event.verbosity)
|
||||
treeview_live_game_show_commentary(unit);
|
||||
|
||||
treeview_live_game_show_result(unit);
|
||||
@ -55,8 +56,10 @@ game_gui_live_game_show_unit(const LiveGameUnit *unit)
|
||||
sprintf(buf, "%d.", live_game_unit_get_minute(unit));
|
||||
gtk_progress_bar_set_fraction(progress_bar, (fraction > 1) ? 1 : fraction);
|
||||
gtk_progress_bar_set_text(progress_bar, buf);
|
||||
usleep(500500 + option_int("int_opt_user_live_game_speed",
|
||||
&usr(stat2).options) * 50000);
|
||||
g_usleep(const_int("int_game_gui_live_game_speed_base") +
|
||||
(option_int("int_opt_user_live_game_speed", &usr(stat2).options) *
|
||||
const_int("int_game_gui_live_game_speed_step")));
|
||||
|
||||
while(gtk_events_pending())
|
||||
gtk_main_iteration();
|
||||
|
||||
|
@ -96,28 +96,44 @@ lg_commentary_get_commentaries(gint event_type)
|
||||
case LIVE_GAME_EVENT_START_MATCH:
|
||||
g_ptr_array_add(commentaries, g_string_new(_("It's a crowd of AT here as the whistle blows")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("We're under way")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("The two teams are greeted by a wall of noise as they take to the pitch")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("The crowd roars as the players run out from the tunnel to start the match")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("A cloudless day, gives the impression this match is going to sparkle")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("AT fans can't be wrong, this is the match we have all come to watch")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("The referee gets the nod from the linesman and we are away")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("The clash of the titans kicks off")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("The referees are ready, players set, the battle begins")));
|
||||
break;
|
||||
case LIVE_GAME_EVENT_HALF_TIME:
|
||||
g_ptr_array_add(commentaries, g_string_new(_("It's half time")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("It's a RE at half time.")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("It's a RE at half time, TL's manager has to find something special to spur his team on.")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("TL heads into the tunnel to await the managers scolding")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("TW are just 45 minutes away from a stunning victory")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("TL's manager cops a rollicking from the fans as he turns from the dugout")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("There are two teams out there and only one of them is playing football")));
|
||||
break;
|
||||
case LIVE_GAME_EVENT_EXTRA_TIME:
|
||||
g_ptr_array_add(commentaries, g_string_new(_("After a close match the game heads into extra time")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("It's still RE: extra time")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("After MI minutes it's still RE: extra time")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("Who will breakdown first, extra time it is")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("It's down to determination and fitness now as we head into extra time")));
|
||||
break;
|
||||
case LIVE_GAME_EVENT_PENALTIES:
|
||||
g_ptr_array_add(commentaries, g_string_new(_("Who would have thought MI minutes ago it would come down to this")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("And now we have the tense drama of a penalty shoot out")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("Two teams, equall till now in every respect,face off in penalties")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("The teams cant do it so now it's one on one. Striker against goalie")));
|
||||
break;
|
||||
case LIVE_GAME_EVENT_END_MATCH:
|
||||
g_ptr_array_add(commentaries, g_string_new(_("The match is over!")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("TW are triumphant!!!")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("The fans boo TL off the pitch")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("After MI minutes the match ends with a RE")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("The referee checks his watch and blows for full time")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("Well that's that. It ends RE")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("RE, what an astonishing result for TW")));
|
||||
break;
|
||||
case LIVE_GAME_EVENT_GENERAL:
|
||||
g_ptr_array_add(commentaries, g_string_new(_("P2 feeds the ball through to P1")));
|
||||
@ -140,13 +156,14 @@ lg_commentary_get_commentaries(gint event_type)
|
||||
g_ptr_array_add(commentaries, g_string_new(_("P1 wins the ball with a perfectly timed challenge")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("Bad control by P2 lets P1 steal the ball off him")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("P1 takes the ball away from P2 with a sliding tackle")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("Loose ball falls to P2")));
|
||||
break;
|
||||
case LIVE_GAME_EVENT_SCORING_CHANCE:
|
||||
g_ptr_array_add(commentaries, g_string_new(_("P1 charges towards goal and shoots!")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("P1 spins and shoots")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("Long ball from P2 finds P1 at far post")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("P1 can't quite get it under control but his miss kick heads toward goal")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("P1 shoots from 22 yards looks like its going wide")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("P1 shoots from 22 yards looks like it's going wide")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("P1 dribbles into the box, turns inside the defence and fires")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("P1 cuts in from the left flank and shoots")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("P1 tries his luck from 30 yards")));
|
||||
@ -162,19 +179,22 @@ lg_commentary_get_commentaries(gint event_type)
|
||||
g_ptr_array_add(commentaries, g_string_new(_("And the ball is smacked into the back of the net!!!")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("P1 scores!!!")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("And the ball flies straight past P2 and into the back of the net!!!")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("The ball flies past P2 and its a goal!!!")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("The ball flies past P2 and it's a goal!!!")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("P1 wheels away in celebration after a great goal sent the fans wild")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("P2's despairing dive can't keep P1's shot out and the ball is in the back of the net!!!")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("The dance ignites the fans, P1 celebrates in his own special fashion")));
|
||||
break;
|
||||
case LIVE_GAME_EVENT_OWN_GOAL:
|
||||
g_ptr_array_add(commentaries, g_string_new(_("Ohh no, the ball ricocheted off P1 into the net")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("It's a pinball in the penalty box, finally spinning off P1 across the line")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("Oh thats a great shot and its deflected off P1 and into the back of the net")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("Oh that's a great shot and it's deflected off P1 and into the back of the net")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("P1 passes the ball back to his goalie, oh no the keepers missed it! It's an own goal by P1!")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("That little missunderstanding has cost T2 a goal")));
|
||||
break;
|
||||
case LIVE_GAME_EVENT_HEADER:
|
||||
g_ptr_array_add(commentaries, g_string_new(_("P2 chips the ball towards P1 who heads the ball towards goal")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("Diving header by P1")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("He just floated in midair for ages then thunder heads it towards home")));
|
||||
break;
|
||||
case LIVE_GAME_EVENT_MISSED:
|
||||
g_ptr_array_add(commentaries, g_string_new(_("P1 fired wide!")));
|
||||
@ -188,10 +208,12 @@ lg_commentary_get_commentaries(gint event_type)
|
||||
case LIVE_GAME_EVENT_POST:
|
||||
g_ptr_array_add(commentaries, g_string_new(_("Sweet strike by P1, hits the post")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("And the shot glances wide off the post")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("I'm suprised the post has managed to withstand that cracking shot")));
|
||||
break;
|
||||
case LIVE_GAME_EVENT_CROSS_BAR:
|
||||
g_ptr_array_add(commentaries, g_string_new(_("Ball dinked over P2 but hit crossbar and bounced to safety")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("The ball smacks into the crossbar with P2 stranded")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("P2 seemed to be everywhere at once, finally tipping the ball off the crossbar")));
|
||||
break;
|
||||
case LIVE_GAME_EVENT_SAVE:
|
||||
g_ptr_array_add(commentaries, g_string_new(_("P2's fingertips flicks it wide")));
|
||||
@ -206,6 +228,8 @@ lg_commentary_get_commentaries(gint event_type)
|
||||
case LIVE_GAME_EVENT_PENALTY:
|
||||
g_ptr_array_add(commentaries, g_string_new(_("P1 steps up to take the penalty")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("P1 has a chance to score with a penalty kick")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("P1 has missed a penalty before but he now has a chance to redeem himself")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("You have to bury the nerves, swallow and concentrate when your taking penalties")));
|
||||
break;
|
||||
case LIVE_GAME_EVENT_FREE_KICK:
|
||||
g_ptr_array_add(commentaries, g_string_new(_("Short free-kick from P1")));
|
||||
@ -217,7 +241,7 @@ lg_commentary_get_commentaries(gint event_type)
|
||||
g_ptr_array_add(commentaries, g_string_new(_("Free kick whipped across the face of goal by P1")));
|
||||
break;
|
||||
case LIVE_GAME_EVENT_FOUL:
|
||||
g_ptr_array_add(commentaries, g_string_new(_("Owe nasty tackle on P1")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("Oww, nasty tackle on P1")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("Surely that's a sending off offence")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("P2 knocks over P1 with a double footed lunge")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("Crunching challenge on P1")));
|
||||
@ -246,8 +270,8 @@ lg_commentary_get_commentaries(gint event_type)
|
||||
g_ptr_array_add(commentaries, g_string_new(_("P2 for swearing at opposition fans")));
|
||||
break;
|
||||
case LIVE_GAME_EVENT_FOUL_RED_INJURY:
|
||||
g_ptr_array_add(commentaries, g_string_new(_("And the stretcher bearers come racing on with P1 lying in agony on the turf")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("P1 seems to have broken something.. he'll have to be substituted")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("P2 fouls and the stretcher bearers come racing on with P1 lying in agony on the turf")));
|
||||
g_ptr_array_add(commentaries, g_string_new(_("Foul by P2; P1 seems to have broken something.. he might have to be substituted")));
|
||||
break;
|
||||
case LIVE_GAME_EVENT_SEND_OFF:
|
||||
g_ptr_array_add(commentaries, g_string_new(_("P1 has been sent off")));
|
||||
|
@ -1274,6 +1274,8 @@ live_game_finish_unit(void)
|
||||
}
|
||||
|
||||
lg_commentary_generate(unit, match->fix);
|
||||
|
||||
unit->event.verbosity = live_game_event_get_verbosity(unit->event.type);
|
||||
}
|
||||
|
||||
if(show)
|
||||
@ -1419,3 +1421,64 @@ live_game_reset(LiveGame *live_game, Fixture *fix, gboolean free_variable)
|
||||
else
|
||||
live_game->home_advantage = 0;
|
||||
}
|
||||
|
||||
/** Determine verbosity level depending on the event type. */
|
||||
gint
|
||||
live_game_event_get_verbosity(gint event_type)
|
||||
{
|
||||
gint return_value;
|
||||
|
||||
if(event_type == LIVE_GAME_EVENT_START_MATCH ||
|
||||
event_type == LIVE_GAME_EVENT_HALF_TIME ||
|
||||
event_type == LIVE_GAME_EVENT_EXTRA_TIME ||
|
||||
event_type == LIVE_GAME_EVENT_END_MATCH ||
|
||||
event_type == LIVE_GAME_EVENT_PENALTIES ||
|
||||
event_type == LIVE_GAME_EVENT_GOAL ||
|
||||
event_type == LIVE_GAME_EVENT_OWN_GOAL)
|
||||
return_value = 0;
|
||||
else if(event_type == LIVE_GAME_EVENT_PENALTY ||
|
||||
event_type == LIVE_GAME_EVENT_SCORING_CHANCE ||
|
||||
event_type == LIVE_GAME_EVENT_HEADER ||
|
||||
event_type == LIVE_GAME_EVENT_FREE_KICK ||
|
||||
event_type == LIVE_GAME_EVENT_POST ||
|
||||
event_type == LIVE_GAME_EVENT_MISSED ||
|
||||
event_type == LIVE_GAME_EVENT_CROSS_BAR ||
|
||||
event_type == LIVE_GAME_EVENT_SAVE)
|
||||
return_value = 1;
|
||||
else if(event_type == LIVE_GAME_EVENT_SEND_OFF ||
|
||||
event_type == LIVE_GAME_EVENT_INJURY)
|
||||
return_value = 2;
|
||||
else if(event_type == LIVE_GAME_EVENT_FOUL_RED ||
|
||||
event_type == LIVE_GAME_EVENT_FOUL_YELLOW ||
|
||||
event_type == LIVE_GAME_EVENT_FOUL_RED_INJURY)
|
||||
return_value = 3;
|
||||
else if(event_type == LIVE_GAME_EVENT_FOUL ||
|
||||
event_type == LIVE_GAME_EVENT_TEMP_INJURY ||
|
||||
event_type == LIVE_GAME_EVENT_STADIUM_RIOTS ||
|
||||
event_type == LIVE_GAME_EVENT_STADIUM_BREAKDOWN ||
|
||||
event_type == LIVE_GAME_EVENT_STADIUM_FIRE ||
|
||||
event_type == LIVE_GAME_EVENT_LOST_POSSESSION)
|
||||
return_value = 4;
|
||||
else if(event_type == LIVE_GAME_EVENT_SUBSTITUTION ||
|
||||
event_type == LIVE_GAME_EVENT_STRUCTURE_CHANGE ||
|
||||
event_type == LIVE_GAME_EVENT_STYLE_CHANGE_ALL_OUT_DEFEND ||
|
||||
event_type == LIVE_GAME_EVENT_STYLE_CHANGE_DEFEND ||
|
||||
event_type == LIVE_GAME_EVENT_STYLE_CHANGE_BALANCED ||
|
||||
event_type == LIVE_GAME_EVENT_STYLE_CHANGE_ATTACK ||
|
||||
event_type == LIVE_GAME_EVENT_STYLE_CHANGE_ALL_OUT_ATTACK ||
|
||||
event_type == LIVE_GAME_EVENT_BOOST_CHANGE_ANTI ||
|
||||
event_type == LIVE_GAME_EVENT_BOOST_CHANGE_OFF ||
|
||||
event_type == LIVE_GAME_EVENT_BOOST_CHANGE_ON)
|
||||
return_value = 5;
|
||||
else if(event_type == LIVE_GAME_EVENT_GENERAL)
|
||||
return_value = 6;
|
||||
else
|
||||
{
|
||||
g_warning("live_game_event_get_verbosity: unknown event type %d \n",
|
||||
event_type);
|
||||
return_value = -1;
|
||||
}
|
||||
|
||||
return return_value;
|
||||
}
|
||||
|
||||
|
@ -109,4 +109,7 @@ live_game_unit_before(const LiveGameUnit* unit, gint gap);
|
||||
void
|
||||
live_game_set_match(LiveGame *live_game);
|
||||
|
||||
gint
|
||||
live_game_event_get_verbosity(gint event_type);
|
||||
|
||||
#endif
|
||||
|
@ -57,27 +57,14 @@ enum LiveGameEventType
|
||||
|
||||
/** Indices for the int_values in the
|
||||
#LiveGameEvent struct. */
|
||||
enum LiveGameEventValue1
|
||||
enum LiveGameEventValue
|
||||
{
|
||||
LIVE_GAME_EVENT_VALUE_TEAM = 0,
|
||||
LIVE_GAME_EVENT_VALUE_PLAYER,
|
||||
LIVE_GAME_EVENT_VALUE_PLAYER2,
|
||||
LIVE_GAME_EVENT_VALUE_CHANCE_CONVERTED,
|
||||
LIVE_GAME_EVENT_VALUE1_END
|
||||
LIVE_GAME_EVENT_VALUE_END
|
||||
};
|
||||
|
||||
/** Indices for the int_values in
|
||||
#LiveGameEvent struct. */
|
||||
enum LiveGameEventValue2
|
||||
{
|
||||
LIVE_GAME_EVENT_VALUE_NEW_STRUCTURE = LIVE_GAME_EVENT_VALUE_TEAM + 1,
|
||||
LIVE_GAME_EVENT_VALUE_OLD_STRUCTURE,
|
||||
LIVE_GAME_EVENT_VALUE_NEW_STYLE = LIVE_GAME_EVENT_VALUE_NEW_STRUCTURE,
|
||||
LIVE_GAME_EVENT_VALUE_OLD_STYLE,
|
||||
LIVE_GAME_EVENT_VALUE2_END
|
||||
};
|
||||
|
||||
|
||||
enum LiveGameUnitArea
|
||||
{
|
||||
LIVE_GAME_UNIT_AREA_DEFEND = 0,
|
||||
@ -147,9 +134,12 @@ typedef struct
|
||||
{
|
||||
/** @see #LiveGameEventType */
|
||||
gint type;
|
||||
/** Verbosity value. The lower the more important
|
||||
the event. */
|
||||
gint verbosity;
|
||||
/** @see #LiveGameEventValue1
|
||||
@see #LiveGameEventValue2 */
|
||||
gint values[MAX(LIVE_GAME_EVENT_VALUE1_END, LIVE_GAME_EVENT_VALUE2_END)];
|
||||
gint values[LIVE_GAME_EVENT_VALUE_END];
|
||||
/** The commentary for the event. */
|
||||
GString *commentary;
|
||||
|
||||
|
@ -229,6 +229,14 @@ on_spinbutton_speed_value_changed (GtkSpinButton *spinbutton,
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
on_spinbutton_verbosity_value_changed (GtkSpinButton *spinbutton,
|
||||
gpointer user_data)
|
||||
{
|
||||
option_set_int("int_opt_user_live_game_verbosity",
|
||||
&usr(stat2).options, gtk_spin_button_get_value_as_int(spinbutton));
|
||||
}
|
||||
|
||||
|
||||
gboolean
|
||||
on_treeview_users_button_press_event (GtkWidget *widget,
|
||||
|
@ -123,3 +123,7 @@ void
|
||||
on_combo_country_changed (GtkComboBox *combobox,
|
||||
gpointer user_data);
|
||||
#endif
|
||||
|
||||
void
|
||||
on_spinbutton_verbosity_value_changed (GtkSpinButton *spinbutton,
|
||||
gpointer user_data);
|
||||
|
@ -562,8 +562,13 @@ create_window_live (void)
|
||||
GtkWidget *image57;
|
||||
GtkWidget *label73;
|
||||
GtkWidget *button_live_close;
|
||||
GtkWidget *table2;
|
||||
GtkObject *spinbutton_speed_adj;
|
||||
GtkWidget *spinbutton_speed;
|
||||
GtkWidget *label112;
|
||||
GtkWidget *label113;
|
||||
GtkObject *spinbutton_verbosity_adj;
|
||||
GtkWidget *spinbutton_verbosity;
|
||||
GtkAccelGroup *accel_group;
|
||||
GtkTooltips *tooltips;
|
||||
|
||||
@ -716,13 +721,43 @@ create_window_live (void)
|
||||
gtk_box_pack_start (GTK_BOX (hbox48), button_live_close, FALSE, FALSE, 0);
|
||||
gtk_widget_set_sensitive (button_live_close, FALSE);
|
||||
|
||||
table2 = gtk_table_new (2, 2, FALSE);
|
||||
gtk_widget_show (table2);
|
||||
gtk_box_pack_end (GTK_BOX (hbox48), table2, FALSE, TRUE, 0);
|
||||
gtk_table_set_row_spacings (GTK_TABLE (table2), 1);
|
||||
gtk_table_set_col_spacings (GTK_TABLE (table2), 3);
|
||||
|
||||
spinbutton_speed_adj = gtk_adjustment_new (0, -10, 20, 1, 10, 10);
|
||||
spinbutton_speed = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton_speed_adj), 1, 0);
|
||||
gtk_widget_show (spinbutton_speed);
|
||||
gtk_box_pack_end (GTK_BOX (hbox48), spinbutton_speed, FALSE, TRUE, 0);
|
||||
gtk_table_attach (GTK_TABLE (table2), spinbutton_speed, 1, 2, 1, 2,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_tooltips_set_tip (tooltips, spinbutton_speed, _("Change live game speed. The lower the value the faster the live game."), NULL);
|
||||
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton_speed), TRUE);
|
||||
|
||||
label112 = gtk_label_new (_("Speed"));
|
||||
gtk_widget_show (label112);
|
||||
gtk_table_attach (GTK_TABLE (table2), label112, 1, 2, 0, 1,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label112), GTK_JUSTIFY_RIGHT);
|
||||
|
||||
label113 = gtk_label_new (_("Verbosity"));
|
||||
gtk_widget_show (label113);
|
||||
gtk_table_attach (GTK_TABLE (table2), label113, 0, 1, 0, 1,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
|
||||
spinbutton_verbosity_adj = gtk_adjustment_new (1, 1, 7, 1, 10, 10);
|
||||
spinbutton_verbosity = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton_verbosity_adj), 1, 0);
|
||||
gtk_widget_show (spinbutton_verbosity);
|
||||
gtk_table_attach (GTK_TABLE (table2), spinbutton_verbosity, 0, 1, 1, 2,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_tooltips_set_tip (tooltips, spinbutton_verbosity, _("Change commentary verbosity. The higher this value the more events you can see."), NULL);
|
||||
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton_verbosity), TRUE);
|
||||
|
||||
g_signal_connect ((gpointer) window_live, "delete_event",
|
||||
G_CALLBACK (on_live_window_delete_event),
|
||||
NULL);
|
||||
@ -738,6 +773,9 @@ create_window_live (void)
|
||||
g_signal_connect ((gpointer) spinbutton_speed, "value_changed",
|
||||
G_CALLBACK (on_spinbutton_speed_value_changed),
|
||||
NULL);
|
||||
g_signal_connect ((gpointer) spinbutton_verbosity, "value_changed",
|
||||
G_CALLBACK (on_spinbutton_verbosity_value_changed),
|
||||
NULL);
|
||||
|
||||
/* Store pointers to all widgets, for use by lookup_widget(). */
|
||||
GLADE_HOOKUP_OBJECT_NO_REF (window_live, window_live, "window_live");
|
||||
@ -772,7 +810,11 @@ create_window_live (void)
|
||||
GLADE_HOOKUP_OBJECT (window_live, image57, "image57");
|
||||
GLADE_HOOKUP_OBJECT (window_live, label73, "label73");
|
||||
GLADE_HOOKUP_OBJECT (window_live, button_live_close, "button_live_close");
|
||||
GLADE_HOOKUP_OBJECT (window_live, table2, "table2");
|
||||
GLADE_HOOKUP_OBJECT (window_live, spinbutton_speed, "spinbutton_speed");
|
||||
GLADE_HOOKUP_OBJECT (window_live, label112, "label112");
|
||||
GLADE_HOOKUP_OBJECT (window_live, label113, "label113");
|
||||
GLADE_HOOKUP_OBJECT (window_live, spinbutton_verbosity, "spinbutton_verbosity");
|
||||
GLADE_HOOKUP_OBJECT_NO_REF (window_live, tooltips, "tooltips");
|
||||
|
||||
gtk_window_add_accel_group (GTK_WINDOW (window_live), accel_group);
|
||||
|
@ -288,6 +288,7 @@ enum SpinOptions
|
||||
SPIN_OPT_PRECISION,
|
||||
SPIN_OPT_REFRESH,
|
||||
SPIN_OPT_LIVE_SPEED,
|
||||
SPIN_OPT_LIVE_VERBOSITY,
|
||||
SPIN_OPT_CONTRACT,
|
||||
SPIN_OPT_END
|
||||
};
|
||||
@ -316,6 +317,10 @@ option_gui_write_spin_widgets(gint **spin_options, GtkSpinButton **spin_widgets)
|
||||
GTK_SPIN_BUTTON(lookup_widget(window.options, "spinbutton_live_speed"));
|
||||
spin_options[SPIN_OPT_LIVE_SPEED] = opt_user_intp("int_opt_user_live_game_speed");
|
||||
|
||||
spin_widgets[SPIN_OPT_LIVE_VERBOSITY] =
|
||||
GTK_SPIN_BUTTON(lookup_widget(window.options, "spinbutton_live_verbosity"));
|
||||
spin_options[SPIN_OPT_LIVE_VERBOSITY] = opt_user_intp("int_opt_user_live_game_verbosity");
|
||||
|
||||
spin_widgets[SPIN_OPT_CONTRACT] =
|
||||
GTK_SPIN_BUTTON(lookup_widget(window.options, "spinbutton_contract"));
|
||||
spin_options[SPIN_OPT_CONTRACT] = opt_user_intp("int_opt_user_contract_limit");
|
||||
|
@ -74,10 +74,13 @@ create_window_options (void)
|
||||
GtkWidget *vbox4;
|
||||
GtkWidget *checkbutton_show_live;
|
||||
GtkWidget *checkbutton_show_tendency;
|
||||
GtkWidget *hbox5;
|
||||
GtkWidget *table3;
|
||||
GtkWidget *label12;
|
||||
GtkWidget *label39;
|
||||
GtkObject *spinbutton_live_speed_adj;
|
||||
GtkWidget *spinbutton_live_speed;
|
||||
GtkObject *spinbutton_live_verbosity_adj;
|
||||
GtkWidget *spinbutton_live_verbosity;
|
||||
GtkWidget *checkbutton_auto_sub;
|
||||
GtkWidget *vseparator2;
|
||||
GtkWidget *vbox5;
|
||||
@ -245,7 +248,6 @@ create_window_options (void)
|
||||
label6 = gtk_label_new (_("Autosave interval "));
|
||||
gtk_widget_show (label6);
|
||||
gtk_box_pack_start (GTK_BOX (hbox3), label6, FALSE, FALSE, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label6), GTK_JUSTIFY_LEFT);
|
||||
|
||||
spinbutton_autosave_adj = gtk_adjustment_new (1, 1, 20, 1, 10, 10);
|
||||
spinbutton_autosave = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton_autosave_adj), 1, 0);
|
||||
@ -257,7 +259,6 @@ create_window_options (void)
|
||||
label36 = gtk_label_new (_(" Autosave files "));
|
||||
gtk_widget_show (label36);
|
||||
gtk_box_pack_start (GTK_BOX (hbox3), label36, FALSE, FALSE, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label36), GTK_JUSTIFY_LEFT);
|
||||
|
||||
spinbutton_autosave_files_adj = gtk_adjustment_new (1, 0, 100, 1, 10, 10);
|
||||
spinbutton_autosave_files = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton_autosave_files_adj), 1, 0);
|
||||
@ -270,7 +271,6 @@ create_window_options (void)
|
||||
gtk_table_attach (GTK_TABLE (table1), label7, 0, 1, 1, 2,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label7), GTK_JUSTIFY_LEFT);
|
||||
gtk_misc_set_alignment (GTK_MISC (label7), 1, 0.5);
|
||||
|
||||
label8 = gtk_label_new (_("Player list refresh rate "));
|
||||
@ -278,7 +278,6 @@ create_window_options (void)
|
||||
gtk_table_attach (GTK_TABLE (table1), label8, 0, 1, 2, 3,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label8), GTK_JUSTIFY_LEFT);
|
||||
gtk_misc_set_alignment (GTK_MISC (label8), 1, 0.5);
|
||||
|
||||
spinbutton_precision_adj = gtk_adjustment_new (1, 0, 3, 1, 10, 10);
|
||||
@ -302,7 +301,6 @@ create_window_options (void)
|
||||
gtk_table_attach (GTK_TABLE (table1), label10, 0, 1, 3, 4,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label10), GTK_JUSTIFY_LEFT);
|
||||
gtk_misc_set_alignment (GTK_MISC (label10), 1, 0.5);
|
||||
|
||||
button_font_name = gtk_button_new ();
|
||||
@ -326,7 +324,6 @@ create_window_options (void)
|
||||
label34 = gtk_label_new_with_mnemonic (_("Font name"));
|
||||
gtk_widget_show (label34);
|
||||
gtk_box_pack_start (GTK_BOX (hbox7), label34, FALSE, FALSE, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label34), GTK_JUSTIFY_LEFT);
|
||||
|
||||
entry_font_name = gtk_entry_new ();
|
||||
gtk_widget_show (entry_font_name);
|
||||
@ -365,12 +362,10 @@ create_window_options (void)
|
||||
label35 = gtk_label_new_with_mnemonic (_("Reload"));
|
||||
gtk_widget_show (label35);
|
||||
gtk_box_pack_start (GTK_BOX (hbox9), label35, FALSE, FALSE, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label35), GTK_JUSTIFY_LEFT);
|
||||
|
||||
label1 = gtk_label_new (_("Global"));
|
||||
gtk_widget_show (label1);
|
||||
gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 0), label1);
|
||||
gtk_label_set_justify (GTK_LABEL (label1), GTK_JUSTIFY_LEFT);
|
||||
|
||||
hbox4 = gtk_hbox_new (FALSE, 0);
|
||||
gtk_widget_show (hbox4);
|
||||
@ -388,21 +383,43 @@ create_window_options (void)
|
||||
gtk_widget_show (checkbutton_show_tendency);
|
||||
gtk_box_pack_start (GTK_BOX (vbox4), checkbutton_show_tendency, FALSE, FALSE, 0);
|
||||
|
||||
hbox5 = gtk_hbox_new (FALSE, 0);
|
||||
gtk_widget_show (hbox5);
|
||||
gtk_box_pack_start (GTK_BOX (vbox4), hbox5, FALSE, FALSE, 0);
|
||||
table3 = gtk_table_new (2, 2, FALSE);
|
||||
gtk_widget_show (table3);
|
||||
gtk_box_pack_start (GTK_BOX (vbox4), table3, FALSE, FALSE, 0);
|
||||
gtk_table_set_col_spacings (GTK_TABLE (table3), 2);
|
||||
|
||||
label12 = gtk_label_new (_("Live game speed factor "));
|
||||
label12 = gtk_label_new (_("Live game speed factor"));
|
||||
gtk_widget_show (label12);
|
||||
gtk_box_pack_start (GTK_BOX (hbox5), label12, FALSE, FALSE, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label12), GTK_JUSTIFY_LEFT);
|
||||
gtk_table_attach (GTK_TABLE (table3), label12, 0, 1, 0, 1,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_misc_set_alignment (GTK_MISC (label12), 1, 0.5);
|
||||
|
||||
label39 = gtk_label_new (_("Live game verbosity"));
|
||||
gtk_widget_show (label39);
|
||||
gtk_table_attach (GTK_TABLE (table3), label39, 0, 1, 1, 2,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_misc_set_alignment (GTK_MISC (label39), 1, 0.5);
|
||||
|
||||
spinbutton_live_speed_adj = gtk_adjustment_new (0, -10, 20, 1, 10, 10);
|
||||
spinbutton_live_speed = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton_live_speed_adj), 1, 0);
|
||||
gtk_widget_show (spinbutton_live_speed);
|
||||
gtk_box_pack_start (GTK_BOX (hbox5), spinbutton_live_speed, FALSE, FALSE, 0);
|
||||
gtk_table_attach (GTK_TABLE (table3), spinbutton_live_speed, 1, 2, 0, 1,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_tooltips_set_tip (tooltips, spinbutton_live_speed, _("The lower this value the faster the live game commentary will scroll."), NULL);
|
||||
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton_live_speed), TRUE);
|
||||
|
||||
spinbutton_live_verbosity_adj = gtk_adjustment_new (1, 1, 7, 1, 10, 10);
|
||||
spinbutton_live_verbosity = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton_live_verbosity_adj), 1, 0);
|
||||
gtk_widget_show (spinbutton_live_verbosity);
|
||||
gtk_table_attach (GTK_TABLE (table3), spinbutton_live_verbosity, 1, 2, 1, 2,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_tooltips_set_tip (tooltips, spinbutton_live_verbosity, _("The higher this value, the more commentary you'll see."), NULL);
|
||||
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton_live_verbosity), TRUE);
|
||||
|
||||
checkbutton_auto_sub = gtk_check_button_new_with_mnemonic (_("Automatic substitutions"));
|
||||
gtk_widget_show (checkbutton_auto_sub);
|
||||
gtk_box_pack_start (GTK_BOX (vbox4), checkbutton_auto_sub, FALSE, FALSE, 0);
|
||||
@ -431,7 +448,6 @@ 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);
|
||||
gtk_label_set_justify (GTK_LABEL (label2), GTK_JUSTIFY_LEFT);
|
||||
|
||||
hbox6 = gtk_hbox_new (FALSE, 0);
|
||||
gtk_widget_show (hbox6);
|
||||
@ -457,7 +473,6 @@ create_window_options (void)
|
||||
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);
|
||||
gtk_label_set_justify (GTK_LABEL (label37), GTK_JUSTIFY_LEFT);
|
||||
|
||||
spinbutton_contract_adj = gtk_adjustment_new (1, 0, 24, 1, 10, 10);
|
||||
spinbutton_contract = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton_contract_adj), 1, 0);
|
||||
@ -468,7 +483,6 @@ create_window_options (void)
|
||||
label38 = gtk_label_new (_(" months"));
|
||||
gtk_widget_show (label38);
|
||||
gtk_box_pack_start (GTK_BOX (hbox10), label38, FALSE, FALSE, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label38), GTK_JUSTIFY_LEFT);
|
||||
|
||||
checkbutton_show_all_leagues = gtk_check_button_new_with_mnemonic (_("Show all leagues in the fixture view"));
|
||||
gtk_widget_show (checkbutton_show_all_leagues);
|
||||
@ -495,7 +509,6 @@ create_window_options (void)
|
||||
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_label_set_justify (GTK_LABEL (label3), GTK_JUSTIFY_LEFT);
|
||||
|
||||
table2 = gtk_table_new (20, 3, FALSE);
|
||||
gtk_widget_show (table2);
|
||||
@ -506,7 +519,6 @@ create_window_options (void)
|
||||
gtk_table_attach (GTK_TABLE (table2), label13, 0, 1, 2, 3,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label13), GTK_JUSTIFY_LEFT);
|
||||
gtk_misc_set_alignment (GTK_MISC (label13), 0, 0.5);
|
||||
|
||||
label14 = gtk_label_new (_("CPos "));
|
||||
@ -514,7 +526,6 @@ create_window_options (void)
|
||||
gtk_table_attach (GTK_TABLE (table2), label14, 0, 1, 3, 4,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label14), GTK_JUSTIFY_LEFT);
|
||||
gtk_misc_set_alignment (GTK_MISC (label14), 0, 0.5);
|
||||
|
||||
label15 = gtk_label_new (_("Pos "));
|
||||
@ -522,7 +533,6 @@ create_window_options (void)
|
||||
gtk_table_attach (GTK_TABLE (table2), label15, 0, 1, 4, 5,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label15), GTK_JUSTIFY_LEFT);
|
||||
gtk_misc_set_alignment (GTK_MISC (label15), 0, 0.5);
|
||||
|
||||
label16 = gtk_label_new (_("CSkill "));
|
||||
@ -530,7 +540,6 @@ create_window_options (void)
|
||||
gtk_table_attach (GTK_TABLE (table2), label16, 0, 1, 5, 6,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label16), GTK_JUSTIFY_LEFT);
|
||||
gtk_misc_set_alignment (GTK_MISC (label16), 0, 0.5);
|
||||
|
||||
label17 = gtk_label_new (_("Skill "));
|
||||
@ -538,7 +547,6 @@ create_window_options (void)
|
||||
gtk_table_attach (GTK_TABLE (table2), label17, 0, 1, 6, 7,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label17), GTK_JUSTIFY_LEFT);
|
||||
gtk_misc_set_alignment (GTK_MISC (label17), 0, 0.5);
|
||||
|
||||
label18 = gtk_label_new (_("Fitness "));
|
||||
@ -546,7 +554,6 @@ create_window_options (void)
|
||||
gtk_table_attach (GTK_TABLE (table2), label18, 0, 1, 7, 8,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label18), GTK_JUSTIFY_LEFT);
|
||||
gtk_misc_set_alignment (GTK_MISC (label18), 0, 0.5);
|
||||
|
||||
label19 = gtk_label_new (_("Games "));
|
||||
@ -554,7 +561,6 @@ create_window_options (void)
|
||||
gtk_table_attach (GTK_TABLE (table2), label19, 0, 1, 8, 9,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label19), GTK_JUSTIFY_LEFT);
|
||||
gtk_misc_set_alignment (GTK_MISC (label19), 0, 0.5);
|
||||
|
||||
label20 = gtk_label_new (_("Shots "));
|
||||
@ -562,7 +568,6 @@ create_window_options (void)
|
||||
gtk_table_attach (GTK_TABLE (table2), label20, 0, 1, 9, 10,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label20), GTK_JUSTIFY_LEFT);
|
||||
gtk_misc_set_alignment (GTK_MISC (label20), 0, 0.5);
|
||||
|
||||
label21 = gtk_label_new (_("Goals "));
|
||||
@ -570,7 +575,6 @@ create_window_options (void)
|
||||
gtk_table_attach (GTK_TABLE (table2), label21, 0, 1, 10, 11,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label21), GTK_JUSTIFY_LEFT);
|
||||
gtk_misc_set_alignment (GTK_MISC (label21), 0, 0.5);
|
||||
|
||||
label22 = gtk_label_new (_("Status "));
|
||||
@ -578,7 +582,6 @@ create_window_options (void)
|
||||
gtk_table_attach (GTK_TABLE (table2), label22, 0, 1, 11, 12,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label22), GTK_JUSTIFY_LEFT);
|
||||
gtk_misc_set_alignment (GTK_MISC (label22), 0, 0.5);
|
||||
|
||||
label23 = gtk_label_new (_("Cards "));
|
||||
@ -586,7 +589,6 @@ create_window_options (void)
|
||||
gtk_table_attach (GTK_TABLE (table2), label23, 0, 1, 12, 13,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label23), GTK_JUSTIFY_LEFT);
|
||||
gtk_misc_set_alignment (GTK_MISC (label23), 0, 0.5);
|
||||
|
||||
label24 = gtk_label_new (_("Age "));
|
||||
@ -594,7 +596,6 @@ create_window_options (void)
|
||||
gtk_table_attach (GTK_TABLE (table2), label24, 0, 1, 13, 14,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label24), GTK_JUSTIFY_LEFT);
|
||||
gtk_misc_set_alignment (GTK_MISC (label24), 0, 0.5);
|
||||
|
||||
label25 = gtk_label_new (_("Etal "));
|
||||
@ -602,7 +603,6 @@ create_window_options (void)
|
||||
gtk_table_attach (GTK_TABLE (table2), label25, 0, 1, 14, 15,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label25), GTK_JUSTIFY_LEFT);
|
||||
gtk_misc_set_alignment (GTK_MISC (label25), 0, 0.5);
|
||||
|
||||
label26 = gtk_label_new (_("Value "));
|
||||
@ -610,7 +610,6 @@ create_window_options (void)
|
||||
gtk_table_attach (GTK_TABLE (table2), label26, 0, 1, 15, 16,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label26), GTK_JUSTIFY_LEFT);
|
||||
gtk_misc_set_alignment (GTK_MISC (label26), 0, 0.5);
|
||||
|
||||
label27 = gtk_label_new (_("Wage "));
|
||||
@ -618,7 +617,6 @@ create_window_options (void)
|
||||
gtk_table_attach (GTK_TABLE (table2), label27, 0, 1, 16, 17,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label27), GTK_JUSTIFY_LEFT);
|
||||
gtk_misc_set_alignment (GTK_MISC (label27), 0, 0.5);
|
||||
|
||||
label28 = gtk_label_new (_("Contract "));
|
||||
@ -626,7 +624,6 @@ create_window_options (void)
|
||||
gtk_table_attach (GTK_TABLE (table2), label28, 0, 1, 17, 18,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label28), GTK_JUSTIFY_LEFT);
|
||||
gtk_misc_set_alignment (GTK_MISC (label28), 0, 0.5);
|
||||
|
||||
label29 = gtk_label_new (_("League "));
|
||||
@ -634,7 +631,6 @@ create_window_options (void)
|
||||
gtk_table_attach (GTK_TABLE (table2), label29, 0, 1, 19, 20,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label29), GTK_JUSTIFY_LEFT);
|
||||
gtk_misc_set_alignment (GTK_MISC (label29), 0, 0.5);
|
||||
|
||||
label30 = gtk_label_new (_("Team "));
|
||||
@ -642,7 +638,6 @@ create_window_options (void)
|
||||
gtk_table_attach (GTK_TABLE (table2), label30, 0, 1, 18, 19,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label30), GTK_JUSTIFY_LEFT);
|
||||
gtk_misc_set_alignment (GTK_MISC (label30), 0, 0.5);
|
||||
|
||||
checkbutton1 = gtk_check_button_new_with_mnemonic ("");
|
||||
@ -880,7 +875,6 @@ create_window_options (void)
|
||||
gtk_table_attach (GTK_TABLE (table2), label31, 0, 1, 0, 1,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label31), GTK_JUSTIFY_LEFT);
|
||||
gtk_misc_set_alignment (GTK_MISC (label31), 0, 0.5);
|
||||
|
||||
label32 = gtk_label_new (_("List 1 "));
|
||||
@ -888,7 +882,6 @@ create_window_options (void)
|
||||
gtk_table_attach (GTK_TABLE (table2), label32, 1, 2, 0, 1,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label32), GTK_JUSTIFY_LEFT);
|
||||
gtk_misc_set_alignment (GTK_MISC (label32), 0, 0.5);
|
||||
|
||||
label33 = gtk_label_new (_("List 2"));
|
||||
@ -896,7 +889,6 @@ create_window_options (void)
|
||||
gtk_table_attach (GTK_TABLE (table2), label33, 2, 3, 0, 1,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label33), GTK_JUSTIFY_LEFT);
|
||||
gtk_misc_set_alignment (GTK_MISC (label33), 0, 0.5);
|
||||
|
||||
hseparator2 = gtk_hseparator_new ();
|
||||
@ -909,7 +901,6 @@ create_window_options (void)
|
||||
label4 = gtk_label_new (_("Player attributes shown"));
|
||||
gtk_widget_show (label4);
|
||||
gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 3), label4);
|
||||
gtk_label_set_justify (GTK_LABEL (label4), GTK_JUSTIFY_LEFT);
|
||||
|
||||
hseparator1 = gtk_hseparator_new ();
|
||||
gtk_widget_show (hseparator1);
|
||||
@ -1005,9 +996,11 @@ create_window_options (void)
|
||||
GLADE_HOOKUP_OBJECT (window_options, vbox4, "vbox4");
|
||||
GLADE_HOOKUP_OBJECT (window_options, checkbutton_show_live, "checkbutton_show_live");
|
||||
GLADE_HOOKUP_OBJECT (window_options, checkbutton_show_tendency, "checkbutton_show_tendency");
|
||||
GLADE_HOOKUP_OBJECT (window_options, hbox5, "hbox5");
|
||||
GLADE_HOOKUP_OBJECT (window_options, table3, "table3");
|
||||
GLADE_HOOKUP_OBJECT (window_options, label12, "label12");
|
||||
GLADE_HOOKUP_OBJECT (window_options, label39, "label39");
|
||||
GLADE_HOOKUP_OBJECT (window_options, spinbutton_live_speed, "spinbutton_live_speed");
|
||||
GLADE_HOOKUP_OBJECT (window_options, spinbutton_live_verbosity, "spinbutton_live_verbosity");
|
||||
GLADE_HOOKUP_OBJECT (window_options, checkbutton_auto_sub, "checkbutton_auto_sub");
|
||||
GLADE_HOOKUP_OBJECT (window_options, vseparator2, "vseparator2");
|
||||
GLADE_HOOKUP_OBJECT (window_options, vbox5, "vbox5");
|
||||
|
@ -264,6 +264,9 @@ window_create(gint window_type)
|
||||
gtk_spin_button_set_value(
|
||||
GTK_SPIN_BUTTON(lookup_widget(wind, "spinbutton_speed")),
|
||||
(gfloat)option_int("int_opt_user_live_game_speed", &usr(stat2).options));
|
||||
gtk_spin_button_set_value(
|
||||
GTK_SPIN_BUTTON(lookup_widget(wind, "spinbutton_verbosity")),
|
||||
(gfloat)option_int("int_opt_user_live_game_verbosity", &usr(stat2).options));
|
||||
break;
|
||||
case WINDOW_WARNING:
|
||||
if(window.warning != NULL)
|
||||
|
@ -285,7 +285,7 @@ xml_loadsave_live_game_write_unit(FILE *fil, const LiveGameUnit *unit)
|
||||
|
||||
xml_write_g_string(fil, unit->event.commentary,
|
||||
TAG_LIVE_GAME_UNIT_EVENT_COMMENTARY, I2);
|
||||
for(i=0;i<MAX(LIVE_GAME_EVENT_VALUE1_END, LIVE_GAME_EVENT_VALUE2_END);i++)
|
||||
for(i=0;i<LIVE_GAME_EVENT_VALUE_END;i++)
|
||||
xml_write_int(fil, unit->event.values[i],
|
||||
TAG_LIVE_GAME_UNIT_EVENT_VALUE, I2);
|
||||
|
||||
|
@ -289,6 +289,10 @@ float_game_gui_live_game_scale_attack 3000
|
||||
float_game_gui_live_game_scale_chance 4500
|
||||
float_game_gui_live_game_scale_range 100000
|
||||
|
||||
# live game speed (milliseconds
|
||||
int_game_gui_live_game_speed_base 1000500
|
||||
int_game_gui_live_game_speed_step 100000
|
||||
|
||||
# How much a player's skill can deviate from
|
||||
# the average skill in his team.
|
||||
float_player_average_skill_variance 750
|
||||
|
@ -5,7 +5,8 @@
|
||||
# is rather clear if you take a look at the options window in the game.
|
||||
|
||||
int_opt_user_show_live_game 1
|
||||
int_opt_user_live_game_speed -10
|
||||
int_opt_user_live_game_speed 0
|
||||
int_opt_user_live_game_verbosity 3
|
||||
int_opt_user_show_tendency_bar 1
|
||||
int_opt_user_pause_injury 1
|
||||
int_opt_user_pause_red 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user