mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 10:40:06 -08:00
GUI: improved preferences dialog and battlefield:
* removed outdated storm counter button and settings (related cards must have same card hint); * clean preferences dialog from empty events/actions; * fixed logs folder names to release names in the labels;
This commit is contained in:
parent
8ebbeef8f4
commit
a3e5754d10
4 changed files with 27 additions and 443 deletions
|
|
@ -45,7 +45,7 @@
|
||||||
<DimensionLayout dim="1">
|
<DimensionLayout dim="1">
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Group type="102" alignment="0" attributes="0">
|
<Group type="102" alignment="0" attributes="0">
|
||||||
<Component id="tabsPanel" pref="584" max="32767" attributes="0"/>
|
<Component id="tabsPanel" max="32767" attributes="0"/>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
<Group type="103" groupAlignment="3" attributes="0">
|
||||||
<Component id="saveButton" alignment="3" min="-2" pref="30" max="-2" attributes="0"/>
|
<Component id="saveButton" alignment="3" min="-2" pref="30" max="-2" attributes="0"/>
|
||||||
|
|
@ -134,14 +134,14 @@
|
||||||
<Component class="javax.swing.JCheckBox" name="cbGameLogAutoSave">
|
<Component class="javax.swing.JCheckBox" name="cbGameLogAutoSave">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="selected" type="boolean" value="true"/>
|
<Property name="selected" type="boolean" value="true"/>
|
||||||
<Property name="text" type="java.lang.String" value="Save game logs (to "../Mage.Client/gamelogs/" directory)"/>
|
<Property name="text" type="java.lang.String" value="Save game logs (dest folder: "..\u005cxmage\u005cmage-client\u005cgamelogs")" containsInvalidXMLChars="true"/>
|
||||||
<Property name="toolTipText" type="java.lang.String" value="The logs of all your games will be saved to the mentioned folder if this option is switched on."/>
|
<Property name="toolTipText" type="java.lang.String" value="The logs of all your games will be saved to the mentioned folder if this option is switched on."/>
|
||||||
</Properties>
|
</Properties>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JCheckBox" name="cbDraftLogAutoSave">
|
<Component class="javax.swing.JCheckBox" name="cbDraftLogAutoSave">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="selected" type="boolean" value="true"/>
|
<Property name="selected" type="boolean" value="true"/>
|
||||||
<Property name="text" type="java.lang.String" value="Save draft logs (to "../Mage.Client/gamelogs/" directory)"/>
|
<Property name="text" type="java.lang.String" value="Save draft logs (dest folder: "..\u005cxmage\u005cmage-client\u005cgamelogs")" containsInvalidXMLChars="true"/>
|
||||||
<Property name="toolTipText" type="java.lang.String" value="The logs of all your games will be saved to the mentioned folder if this option is switched on."/>
|
<Property name="toolTipText" type="java.lang.String" value="The logs of all your games will be saved to the mentioned folder if this option is switched on."/>
|
||||||
<Property name="cursor" type="java.awt.Cursor" editor="org.netbeans.modules.form.editors2.CursorEditor">
|
<Property name="cursor" type="java.awt.Cursor" editor="org.netbeans.modules.form.editors2.CursorEditor">
|
||||||
<Color id="Default Cursor"/>
|
<Color id="Default Cursor"/>
|
||||||
|
|
@ -151,13 +151,13 @@
|
||||||
<Component class="javax.swing.JCheckBox" name="cbLimitedDeckAutoSave">
|
<Component class="javax.swing.JCheckBox" name="cbLimitedDeckAutoSave">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="selected" type="boolean" value="true"/>
|
<Property name="selected" type="boolean" value="true"/>
|
||||||
<Property name="text" type="java.lang.String" value="Save limited decks on submit (to "../Mage.Client/gamelogs/" directory)"/>
|
<Property name="text" type="java.lang.String" value="Save limited decks on submit (dest folder: "..\u005cxmage\u005cmage-client\u005cgamelogs")" containsInvalidXMLChars="true"/>
|
||||||
<Property name="toolTipText" type="java.lang.String" value="A .dck file for each limited tournament will be saved to the mentioned folder if this option is switched on."/>
|
<Property name="toolTipText" type="java.lang.String" value="A .dck file for each limited tournament will be saved to the mentioned folder if this option is switched on."/>
|
||||||
</Properties>
|
</Properties>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JCheckBox" name="cbGameJsonLogAutoSave">
|
<Component class="javax.swing.JCheckBox" name="cbGameJsonLogAutoSave">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="text" type="java.lang.String" value="Save JSON game logs (to "../Mage.Client/gamelogsJson/" directory)"/>
|
<Property name="text" type="java.lang.String" value="Save JSON game logs (dest folder: "..\u005cxmage\u005cmage-client\u005cgamelogs")" containsInvalidXMLChars="true"/>
|
||||||
<Property name="toolTipText" type="java.lang.String" value="The JSON logs of all your games will be saved to the mentioned folder if this option is switched on."/>
|
<Property name="toolTipText" type="java.lang.String" value="The JSON logs of all your games will be saved to the mentioned folder if this option is switched on."/>
|
||||||
</Properties>
|
</Properties>
|
||||||
</Component>
|
</Component>
|
||||||
|
|
@ -279,28 +279,26 @@
|
||||||
|
|
||||||
<Layout>
|
<Layout>
|
||||||
<DimensionLayout dim="0">
|
<DimensionLayout dim="0">
|
||||||
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
|
<Component id="displayLifeOnAvatar" alignment="0" max="32767" attributes="0"/>
|
||||||
|
<Group type="102" attributes="0">
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Group type="102" attributes="0">
|
<Group type="102" attributes="0">
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Component id="lblTargetAutoChoose" min="-2" max="-2" attributes="0"/>
|
<Component id="lblTargetAutoChoose" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Component id="cbTargetAutoChooseLevel" min="-2" max="-2" attributes="0"/>
|
<Component id="cbTargetAutoChooseLevel" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace max="32767" attributes="0"/>
|
|
||||||
</Group>
|
</Group>
|
||||||
<Component id="displayLifeOnAvatar" alignment="0" max="32767" attributes="0"/>
|
|
||||||
<Group type="102" attributes="0">
|
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
|
||||||
<Component id="cbAskMoveToGraveOrder" alignment="0" min="-2" pref="596" max="-2" attributes="0"/>
|
<Component id="cbAskMoveToGraveOrder" alignment="0" min="-2" pref="596" max="-2" attributes="0"/>
|
||||||
<Group type="103" alignment="0" groupAlignment="0" max="-2" attributes="0">
|
<Group type="103" alignment="0" groupAlignment="0" max="-2" attributes="0">
|
||||||
<Component id="showPlayerNamesPermanently" alignment="0" max="32767" attributes="0"/>
|
<Component id="showPlayerNamesPermanently" alignment="0" max="32767" attributes="0"/>
|
||||||
<Component id="nonLandPermanentsInOnePile" alignment="0" max="32767" attributes="0"/>
|
<Component id="nonLandPermanentsInOnePile" alignment="0" max="32767" attributes="0"/>
|
||||||
<Component id="cbConfirmEmptyManaPool" alignment="0" max="32767" attributes="0"/>
|
<Component id="cbConfirmEmptyManaPool" alignment="0" max="32767" attributes="0"/>
|
||||||
<Component id="cbAllowRequestToShowHandCards" alignment="0" max="32767" attributes="0"/>
|
<Component id="cbAllowRequestToShowHandCards" alignment="0" max="32767" attributes="0"/>
|
||||||
<Component id="cbShowStormCounter" alignment="0" max="32767" attributes="0"/>
|
|
||||||
<Component id="showAbilityPickerForced" alignment="0" min="-2" max="-2" attributes="0"/>
|
<Component id="showAbilityPickerForced" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace min="0" pref="315" max="32767" attributes="0"/>
|
<EmptySpace max="32767" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
|
|
@ -317,8 +315,6 @@
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Component id="cbAllowRequestToShowHandCards" min="-2" max="-2" attributes="0"/>
|
<Component id="cbAllowRequestToShowHandCards" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Component id="cbShowStormCounter" min="-2" max="-2" attributes="0"/>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Component id="cbConfirmEmptyManaPool" min="-2" max="-2" attributes="0"/>
|
<Component id="cbConfirmEmptyManaPool" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Component id="cbAskMoveToGraveOrder" min="-2" max="-2" attributes="0"/>
|
<Component id="cbAskMoveToGraveOrder" min="-2" max="-2" attributes="0"/>
|
||||||
|
|
@ -341,9 +337,6 @@
|
||||||
<AccessibilityProperties>
|
<AccessibilityProperties>
|
||||||
<Property name="AccessibleContext.accessibleName" type="java.lang.String" value="nonLandPermanentsInOnePile"/>
|
<Property name="AccessibleContext.accessibleName" type="java.lang.String" value="nonLandPermanentsInOnePile"/>
|
||||||
</AccessibilityProperties>
|
</AccessibilityProperties>
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="nonLandPermanentsInOnePileActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JCheckBox" name="showPlayerNamesPermanently">
|
<Component class="javax.swing.JCheckBox" name="showPlayerNamesPermanently">
|
||||||
<Properties>
|
<Properties>
|
||||||
|
|
@ -351,9 +344,6 @@
|
||||||
<Property name="text" type="java.lang.String" value="Show player names on avatar permanently"/>
|
<Property name="text" type="java.lang.String" value="Show player names on avatar permanently"/>
|
||||||
<Property name="toolTipText" type="java.lang.String" value="Instead showing the names only if you hover over the avatar with the mouse, the name is shown all the time."/>
|
<Property name="toolTipText" type="java.lang.String" value="Instead showing the names only if you hover over the avatar with the mouse, the name is shown all the time."/>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="showPlayerNamesPermanentlyActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JCheckBox" name="displayLifeOnAvatar">
|
<Component class="javax.swing.JCheckBox" name="displayLifeOnAvatar">
|
||||||
<Properties>
|
<Properties>
|
||||||
|
|
@ -361,9 +351,6 @@
|
||||||
<Property name="text" type="java.lang.String" value="Display life on avatar image"/>
|
<Property name="text" type="java.lang.String" value="Display life on avatar image"/>
|
||||||
<Property name="toolTipText" type="java.lang.String" value="Display the player's life over its avatar image."/>
|
<Property name="toolTipText" type="java.lang.String" value="Display the player's life over its avatar image."/>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="displayLifeOnAvatarActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JCheckBox" name="showAbilityPickerForced">
|
<Component class="javax.swing.JCheckBox" name="showAbilityPickerForced">
|
||||||
<Properties>
|
<Properties>
|
||||||
|
|
@ -371,9 +358,6 @@
|
||||||
<Property name="text" type="java.lang.String" value="Show ability picker for 1 available option (spells without costs, mdf/split side, adventure)"/>
|
<Property name="text" type="java.lang.String" value="Show ability picker for 1 available option (spells without costs, mdf/split side, adventure)"/>
|
||||||
<Property name="toolTipText" type="java.lang.String" value="This prevents you from accidently activating abilities what you don't want (example: if you haven't mana to cast main side, but clicks on mdf card and play land instead)"/>
|
<Property name="toolTipText" type="java.lang.String" value="This prevents you from accidently activating abilities what you don't want (example: if you haven't mana to cast main side, but clicks on mdf card and play land instead)"/>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="showAbilityPickerForcedActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JCheckBox" name="cbAllowRequestToShowHandCards">
|
<Component class="javax.swing.JCheckBox" name="cbAllowRequestToShowHandCards">
|
||||||
<Properties>
|
<Properties>
|
||||||
|
|
@ -381,19 +365,6 @@
|
||||||
<Property name="text" type="java.lang.String" value="Allow requests from players and spectators to show your hand cards"/>
|
<Property name="text" type="java.lang.String" value="Allow requests from players and spectators to show your hand cards"/>
|
||||||
<Property name="toolTipText" type="java.lang.String" value="<html>This is the default setting used for your matches. If activated other players or spectators<br>
of your match can send a request so you can allow them to see your hand cards."/>
|
<Property name="toolTipText" type="java.lang.String" value="<html>This is the default setting used for your matches. If activated other players or spectators<br>
of your match can send a request so you can allow them to see your hand cards."/>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cbAllowRequestToShowHandCardsActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
|
||||||
<Component class="javax.swing.JCheckBox" name="cbShowStormCounter">
|
|
||||||
<Properties>
|
|
||||||
<Property name="selected" type="boolean" value="true"/>
|
|
||||||
<Property name="text" type="java.lang.String" value="Show the number of spell casts during the current turn"/>
|
|
||||||
<Property name="toolTipText" type="java.lang.String" value="<html>Adds a little box left to the short keys line with the number<br>
of spells already cast during the current turn (storm counter)."/>
|
|
||||||
</Properties>
|
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cbShowStormCounterActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JCheckBox" name="cbConfirmEmptyManaPool">
|
<Component class="javax.swing.JCheckBox" name="cbConfirmEmptyManaPool">
|
||||||
<Properties>
|
<Properties>
|
||||||
|
|
@ -401,9 +372,6 @@
|
||||||
<Property name="text" type="java.lang.String" value="Confirm if you want to pass a phase/step but there is still mana in your mana pool"/>
|
<Property name="text" type="java.lang.String" value="Confirm if you want to pass a phase/step but there is still mana in your mana pool"/>
|
||||||
<Property name="toolTipText" type="java.lang.String" value="<html>If activated you get a confirm message if you pass priority while stack is empty<br>
 and you still have mana in your mana pool."/>
|
<Property name="toolTipText" type="java.lang.String" value="<html>If activated you get a confirm message if you pass priority while stack is empty<br>
 and you still have mana in your mana pool."/>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cbConfirmEmptyManaPoolActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JCheckBox" name="cbAskMoveToGraveOrder">
|
<Component class="javax.swing.JCheckBox" name="cbAskMoveToGraveOrder">
|
||||||
<Properties>
|
<Properties>
|
||||||
|
|
@ -411,9 +379,6 @@
|
||||||
<Property name="text" type="java.lang.String" value="Ask player for setting order cards go to graveyard"/>
|
<Property name="text" type="java.lang.String" value="Ask player for setting order cards go to graveyard"/>
|
||||||
<Property name="toolTipText" type="java.lang.String" value="<html>If activated and multiple cards go to the graveyard at the same time<br>
the player is asked to set the order of the cards."/>
|
<Property name="toolTipText" type="java.lang.String" value="<html>If activated and multiple cards go to the graveyard at the same time<br>
the player is asked to set the order of the cards."/>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cbAskMoveToGraveOrderActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JLabel" name="lblTargetAutoChoose">
|
<Component class="javax.swing.JLabel" name="lblTargetAutoChoose">
|
||||||
<Properties>
|
<Properties>
|
||||||
|
|
@ -438,9 +403,6 @@
|
||||||
<AccessibilityProperties>
|
<AccessibilityProperties>
|
||||||
<Property name="AccessibleContext.accessibleName" type="java.lang.String" value="Auto-choose targets for player combo box"/>
|
<Property name="AccessibleContext.accessibleName" type="java.lang.String" value="Auto-choose targets for player combo box"/>
|
||||||
</AccessibilityProperties>
|
</AccessibilityProperties>
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cbTargetAutoChooseLevelActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
<AuxValues>
|
<AuxValues>
|
||||||
<AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="<String>"/>
|
<AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="<String>"/>
|
||||||
</AuxValues>
|
</AuxValues>
|
||||||
|
|
@ -4237,9 +4199,6 @@
|
||||||
<Property name="toolTipText" type="java.lang.String" value=""/>
|
<Property name="toolTipText" type="java.lang.String" value=""/>
|
||||||
<Property name="actionCommand" type="java.lang.String" value=""/>
|
<Property name="actionCommand" type="java.lang.String" value=""/>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cbStopAttackActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JCheckBox" name="cbStopBlockWithAny">
|
<Component class="javax.swing.JCheckBox" name="cbStopBlockWithAny">
|
||||||
<Properties>
|
<Properties>
|
||||||
|
|
@ -4248,9 +4207,6 @@
|
||||||
<Property name="toolTipText" type="java.lang.String" value=""/>
|
<Property name="toolTipText" type="java.lang.String" value=""/>
|
||||||
<Property name="actionCommand" type="java.lang.String" value=""/>
|
<Property name="actionCommand" type="java.lang.String" value=""/>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cbStopBlockWithAnyActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JCheckBox" name="cbStopBlockWithZero">
|
<Component class="javax.swing.JCheckBox" name="cbStopBlockWithZero">
|
||||||
<Properties>
|
<Properties>
|
||||||
|
|
@ -4258,9 +4214,6 @@
|
||||||
<Property name="toolTipText" type="java.lang.String" value=""/>
|
<Property name="toolTipText" type="java.lang.String" value=""/>
|
||||||
<Property name="actionCommand" type="java.lang.String" value=""/>
|
<Property name="actionCommand" type="java.lang.String" value=""/>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cbStopBlockWithZeroActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JCheckBox" name="cbStopOnNewStackObjects">
|
<Component class="javax.swing.JCheckBox" name="cbStopOnNewStackObjects">
|
||||||
<Properties>
|
<Properties>
|
||||||
|
|
@ -4271,9 +4224,6 @@
|
||||||
<Dimension value="[300, 25]"/>
|
<Dimension value="[300, 25]"/>
|
||||||
</Property>
|
</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cbStopOnNewStackObjectsActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JCheckBox" name="cbStopOnAllMain">
|
<Component class="javax.swing.JCheckBox" name="cbStopOnAllMain">
|
||||||
<Properties>
|
<Properties>
|
||||||
|
|
@ -4281,9 +4231,6 @@
|
||||||
<Property name="toolTipText" type="java.lang.String" value=""/>
|
<Property name="toolTipText" type="java.lang.String" value=""/>
|
||||||
<Property name="actionCommand" type="java.lang.String" value=""/>
|
<Property name="actionCommand" type="java.lang.String" value=""/>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cbStopOnAllMainActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JCheckBox" name="cbStopOnAllEnd">
|
<Component class="javax.swing.JCheckBox" name="cbStopOnAllEnd">
|
||||||
<Properties>
|
<Properties>
|
||||||
|
|
@ -4294,9 +4241,6 @@
|
||||||
<Dimension value="[300, 25]"/>
|
<Dimension value="[300, 25]"/>
|
||||||
</Property>
|
</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cbStopOnAllEndActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JCheckBox" name="cbPassPriorityCast">
|
<Component class="javax.swing.JCheckBox" name="cbPassPriorityCast">
|
||||||
<Properties>
|
<Properties>
|
||||||
|
|
@ -4307,9 +4251,6 @@
|
||||||
<Dimension value="[300, 25]"/>
|
<Dimension value="[300, 25]"/>
|
||||||
</Property>
|
</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cbPassPriorityCastActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JCheckBox" name="cbPassPriorityActivation">
|
<Component class="javax.swing.JCheckBox" name="cbPassPriorityActivation">
|
||||||
<Properties>
|
<Properties>
|
||||||
|
|
@ -4320,9 +4261,6 @@
|
||||||
<Dimension value="[300, 25]"/>
|
<Dimension value="[300, 25]"/>
|
||||||
</Property>
|
</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cbPassPriorityActivationActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JCheckBox" name="cbAutoOrderTrigger">
|
<Component class="javax.swing.JCheckBox" name="cbAutoOrderTrigger">
|
||||||
<Properties>
|
<Properties>
|
||||||
|
|
@ -4333,9 +4271,6 @@
|
||||||
<Dimension value="[300, 25]"/>
|
<Dimension value="[300, 25]"/>
|
||||||
</Property>
|
</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cbAutoOrderTriggerActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JCheckBox" name="cbUseSameSettingsForReplacementEffect">
|
<Component class="javax.swing.JCheckBox" name="cbUseSameSettingsForReplacementEffect">
|
||||||
<Properties>
|
<Properties>
|
||||||
|
|
@ -4346,9 +4281,6 @@
|
||||||
<Dimension value="[300, 25]"/>
|
<Dimension value="[300, 25]"/>
|
||||||
</Property>
|
</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cbUseSameSettingsForReplacementEffectActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
</Component>
|
||||||
</SubComponents>
|
</SubComponents>
|
||||||
</Container>
|
</Container>
|
||||||
|
|
@ -4668,9 +4600,6 @@
|
||||||
</Events>
|
</Events>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JTextField" name="txtBackgroundImagePath">
|
<Component class="javax.swing.JTextField" name="txtBackgroundImagePath">
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="txtBackgroundImagePathActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JButton" name="btnBrowseBackgroundImage">
|
<Component class="javax.swing.JButton" name="btnBrowseBackgroundImage">
|
||||||
<Properties>
|
<Properties>
|
||||||
|
|
@ -4681,9 +4610,6 @@
|
||||||
</Events>
|
</Events>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JTextField" name="txtBattlefieldImagePath">
|
<Component class="javax.swing.JTextField" name="txtBattlefieldImagePath">
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="txtBattlefieldImagePathActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JButton" name="btnBrowseBattlefieldImage">
|
<Component class="javax.swing.JButton" name="btnBrowseBattlefieldImage">
|
||||||
<Properties>
|
<Properties>
|
||||||
|
|
@ -4774,36 +4700,24 @@
|
||||||
<Property name="text" type="java.lang.String" value="Enable game sounds"/>
|
<Property name="text" type="java.lang.String" value="Enable game sounds"/>
|
||||||
<Property name="toolTipText" type="java.lang.String" value="Sounds that will be played for certain actions (e.g. play land, attack, etc.) during the game."/>
|
<Property name="toolTipText" type="java.lang.String" value="Sounds that will be played for certain actions (e.g. play land, attack, etc.) during the game."/>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cbEnableGameSoundsActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JCheckBox" name="cbEnableDraftSounds">
|
<Component class="javax.swing.JCheckBox" name="cbEnableDraftSounds">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="text" type="java.lang.String" value="Enable draft sounds"/>
|
<Property name="text" type="java.lang.String" value="Enable draft sounds"/>
|
||||||
<Property name="toolTipText" type="java.lang.String" value="Sounds that will be played during drafting for card picking or warining if time runs out."/>
|
<Property name="toolTipText" type="java.lang.String" value="Sounds that will be played during drafting for card picking or warining if time runs out."/>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cbEnableDraftSoundsActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JCheckBox" name="cbEnableSkipButtonsSounds">
|
<Component class="javax.swing.JCheckBox" name="cbEnableSkipButtonsSounds">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="text" type="java.lang.String" value="Enable skip button sounds"/>
|
<Property name="text" type="java.lang.String" value="Enable skip button sounds"/>
|
||||||
<Property name="toolTipText" type="java.lang.String" value="Sounds that will be played if a priority skip action (F4/F5/F7/F9) or cancel skip action (F3) is used."/>
|
<Property name="toolTipText" type="java.lang.String" value="Sounds that will be played if a priority skip action (F4/F5/F7/F9) or cancel skip action (F3) is used."/>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cbEnableSkipButtonsSoundsActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JCheckBox" name="cbEnableOtherSounds">
|
<Component class="javax.swing.JCheckBox" name="cbEnableOtherSounds">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="text" type="java.lang.String" value="Enable other sounds"/>
|
<Property name="text" type="java.lang.String" value="Enable other sounds"/>
|
||||||
<Property name="toolTipText" type="java.lang.String" value="Sounds that will be played for actions outside of games (e.g. whisper, player joins your game, player submits a deck ...)."/>
|
<Property name="toolTipText" type="java.lang.String" value="Sounds that will be played for actions outside of games (e.g. whisper, player joins your game, player submits a deck ...)."/>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cbEnableOtherSoundsActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
</Component>
|
||||||
</SubComponents>
|
</SubComponents>
|
||||||
</Container>
|
</Container>
|
||||||
|
|
@ -4869,9 +4783,6 @@
|
||||||
</Properties>
|
</Properties>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JTextField" name="txtBattlefieldIBGMPath">
|
<Component class="javax.swing.JTextField" name="txtBattlefieldIBGMPath">
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="txtBattlefieldIBGMPathActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JButton" name="btnBattlefieldBGMBrowse">
|
<Component class="javax.swing.JButton" name="btnBattlefieldBGMBrowse">
|
||||||
<Properties>
|
<Properties>
|
||||||
|
|
@ -5993,9 +5904,6 @@
|
||||||
</Properties>
|
</Properties>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JTextField" name="txtProxyPort">
|
<Component class="javax.swing.JTextField" name="txtProxyPort">
|
||||||
<Events>
|
|
||||||
<EventHandler event="keyTyped" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="txtProxyPortkeyTyped"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JLabel" name="lblProxyUserName">
|
<Component class="javax.swing.JLabel" name="lblProxyUserName">
|
||||||
<Properties>
|
<Properties>
|
||||||
|
|
@ -6010,17 +5918,11 @@
|
||||||
</Properties>
|
</Properties>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JPasswordField" name="txtPasswordField">
|
<Component class="javax.swing.JPasswordField" name="txtPasswordField">
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="txtPasswordFieldActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JCheckBox" name="rememberPswd">
|
<Component class="javax.swing.JCheckBox" name="rememberPswd">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="text" type="java.lang.String" value="Remember Password"/>
|
<Property name="text" type="java.lang.String" value="Remember Password"/>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="rememberPswdActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JLabel" name="jLabel11">
|
<Component class="javax.swing.JLabel" name="jLabel11">
|
||||||
<Properties>
|
<Properties>
|
||||||
|
|
@ -6330,7 +6232,7 @@
|
||||||
<Layout>
|
<Layout>
|
||||||
<DimensionLayout dim="0">
|
<DimensionLayout dim="0">
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<EmptySpace min="0" pref="750" max="32767" attributes="0"/>
|
<EmptySpace min="0" pref="807" max="32767" attributes="0"/>
|
||||||
<Group type="103" rootIndex="1" groupAlignment="0" attributes="0">
|
<Group type="103" rootIndex="1" groupAlignment="0" attributes="0">
|
||||||
<Group type="102" alignment="0" attributes="0">
|
<Group type="102" alignment="0" attributes="0">
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
|
|
@ -6378,7 +6280,7 @@
|
||||||
<Component id="lbThemeHint" min="-2" max="-2" attributes="0"/>
|
<Component id="lbThemeHint" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="cbTheme" min="-2" pref="303" max="-2" attributes="0"/>
|
<Component id="cbTheme" min="-2" pref="303" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace pref="303" max="32767" attributes="0"/>
|
<EmptySpace pref="360" max="32767" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
|
|
@ -6410,9 +6312,6 @@
|
||||||
</Properties>
|
</Properties>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JComboBox" name="cbTheme">
|
<Component class="javax.swing.JComboBox" name="cbTheme">
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cbThemeActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
<AuxValues>
|
<AuxValues>
|
||||||
<AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="<ThemeType>"/>
|
<AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="<ThemeType>"/>
|
||||||
</AuxValues>
|
</AuxValues>
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,6 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
public static final String KEY_DISPLAY_LIVE_ON_AVATAR = "displayLiveOnAvatar";
|
public static final String KEY_DISPLAY_LIVE_ON_AVATAR = "displayLiveOnAvatar";
|
||||||
public static final String KEY_SHOW_ABILITY_PICKER_FORCED = "showAbilityPicker";
|
public static final String KEY_SHOW_ABILITY_PICKER_FORCED = "showAbilityPicker";
|
||||||
public static final String KEY_GAME_ALLOW_REQUEST_SHOW_HAND_CARDS = "gameAllowRequestShowHandCards";
|
public static final String KEY_GAME_ALLOW_REQUEST_SHOW_HAND_CARDS = "gameAllowRequestShowHandCards";
|
||||||
public static final String KEY_GAME_SHOW_STORM_COUNTER = "gameShowStormCounter";
|
|
||||||
public static final String KEY_GAME_CONFIRM_EMPTY_MANA_POOL = "gameConfirmEmptyManaPool";
|
public static final String KEY_GAME_CONFIRM_EMPTY_MANA_POOL = "gameConfirmEmptyManaPool";
|
||||||
public static final String KEY_GAME_ASK_MOVE_TO_GRAVE_ORDER = "gameAskMoveToGraveORder";
|
public static final String KEY_GAME_ASK_MOVE_TO_GRAVE_ORDER = "gameAskMoveToGraveORder";
|
||||||
public static final String KEY_GAME_USE_PROFANITY_FILTER = "gameUseProfanityFilter";
|
public static final String KEY_GAME_USE_PROFANITY_FILTER = "gameUseProfanityFilter";
|
||||||
|
|
@ -439,7 +438,6 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
displayLifeOnAvatar = new javax.swing.JCheckBox();
|
displayLifeOnAvatar = new javax.swing.JCheckBox();
|
||||||
showAbilityPickerForced = new javax.swing.JCheckBox();
|
showAbilityPickerForced = new javax.swing.JCheckBox();
|
||||||
cbAllowRequestToShowHandCards = new javax.swing.JCheckBox();
|
cbAllowRequestToShowHandCards = new javax.swing.JCheckBox();
|
||||||
cbShowStormCounter = new javax.swing.JCheckBox();
|
|
||||||
cbConfirmEmptyManaPool = new javax.swing.JCheckBox();
|
cbConfirmEmptyManaPool = new javax.swing.JCheckBox();
|
||||||
cbAskMoveToGraveOrder = new javax.swing.JCheckBox();
|
cbAskMoveToGraveOrder = new javax.swing.JCheckBox();
|
||||||
lblTargetAutoChoose = new javax.swing.JLabel();
|
lblTargetAutoChoose = new javax.swing.JLabel();
|
||||||
|
|
@ -644,22 +642,22 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
main_gamelog.add(cbGameLogShowTurnInfo);
|
main_gamelog.add(cbGameLogShowTurnInfo);
|
||||||
|
|
||||||
cbGameLogAutoSave.setSelected(true);
|
cbGameLogAutoSave.setSelected(true);
|
||||||
cbGameLogAutoSave.setText("Save game logs (to \"../Mage.Client/gamelogs/\" directory)");
|
cbGameLogAutoSave.setText("Save game logs (dest folder: \"..\\xmage\\mage-client\\gamelogs\")");
|
||||||
cbGameLogAutoSave.setToolTipText("The logs of all your games will be saved to the mentioned folder if this option is switched on.");
|
cbGameLogAutoSave.setToolTipText("The logs of all your games will be saved to the mentioned folder if this option is switched on.");
|
||||||
main_gamelog.add(cbGameLogAutoSave);
|
main_gamelog.add(cbGameLogAutoSave);
|
||||||
|
|
||||||
cbDraftLogAutoSave.setSelected(true);
|
cbDraftLogAutoSave.setSelected(true);
|
||||||
cbDraftLogAutoSave.setText("Save draft logs (to \"../Mage.Client/gamelogs/\" directory)");
|
cbDraftLogAutoSave.setText("Save draft logs (dest folder: \"..\\xmage\\mage-client\\gamelogs\")");
|
||||||
cbDraftLogAutoSave.setToolTipText("The logs of all your games will be saved to the mentioned folder if this option is switched on.");
|
cbDraftLogAutoSave.setToolTipText("The logs of all your games will be saved to the mentioned folder if this option is switched on.");
|
||||||
cbDraftLogAutoSave.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
|
cbDraftLogAutoSave.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
|
||||||
main_gamelog.add(cbDraftLogAutoSave);
|
main_gamelog.add(cbDraftLogAutoSave);
|
||||||
|
|
||||||
cbLimitedDeckAutoSave.setSelected(true);
|
cbLimitedDeckAutoSave.setSelected(true);
|
||||||
cbLimitedDeckAutoSave.setText("Save limited decks on submit (to \"../Mage.Client/gamelogs/\" directory)");
|
cbLimitedDeckAutoSave.setText("Save limited decks on submit (dest folder: \"..\\xmage\\mage-client\\gamelogs\")");
|
||||||
cbLimitedDeckAutoSave.setToolTipText("A .dck file for each limited tournament will be saved to the mentioned folder if this option is switched on.");
|
cbLimitedDeckAutoSave.setToolTipText("A .dck file for each limited tournament will be saved to the mentioned folder if this option is switched on.");
|
||||||
main_gamelog.add(cbLimitedDeckAutoSave);
|
main_gamelog.add(cbLimitedDeckAutoSave);
|
||||||
|
|
||||||
cbGameJsonLogAutoSave.setText("Save JSON game logs (to \"../Mage.Client/gamelogsJson/\" directory)");
|
cbGameJsonLogAutoSave.setText("Save JSON game logs (dest folder: \"..\\xmage\\mage-client\\gamelogs\")");
|
||||||
cbGameJsonLogAutoSave.setToolTipText("The JSON logs of all your games will be saved to the mentioned folder if this option is switched on.");
|
cbGameJsonLogAutoSave.setToolTipText("The JSON logs of all your games will be saved to the mentioned folder if this option is switched on.");
|
||||||
main_gamelog.add(cbGameJsonLogAutoSave);
|
main_gamelog.add(cbGameJsonLogAutoSave);
|
||||||
|
|
||||||
|
|
@ -733,74 +731,30 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
nonLandPermanentsInOnePile.setSelected(true);
|
nonLandPermanentsInOnePile.setSelected(true);
|
||||||
nonLandPermanentsInOnePile.setText("Put non-land permanents in same row as creatures");
|
nonLandPermanentsInOnePile.setText("Put non-land permanents in same row as creatures");
|
||||||
nonLandPermanentsInOnePile.setToolTipText("<html>If activated, all non land permanents are shown in one row.<br>\nFirst creatures than other permanents. If not activated, creatures are<br>\nshown in a separate row.");
|
nonLandPermanentsInOnePile.setToolTipText("<html>If activated, all non land permanents are shown in one row.<br>\nFirst creatures than other permanents. If not activated, creatures are<br>\nshown in a separate row.");
|
||||||
nonLandPermanentsInOnePile.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
nonLandPermanentsInOnePileActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
showPlayerNamesPermanently.setSelected(true);
|
showPlayerNamesPermanently.setSelected(true);
|
||||||
showPlayerNamesPermanently.setText("Show player names on avatar permanently");
|
showPlayerNamesPermanently.setText("Show player names on avatar permanently");
|
||||||
showPlayerNamesPermanently.setToolTipText("Instead showing the names only if you hover over the avatar with the mouse, the name is shown all the time.");
|
showPlayerNamesPermanently.setToolTipText("Instead showing the names only if you hover over the avatar with the mouse, the name is shown all the time.");
|
||||||
showPlayerNamesPermanently.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
showPlayerNamesPermanentlyActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
displayLifeOnAvatar.setSelected(true);
|
displayLifeOnAvatar.setSelected(true);
|
||||||
displayLifeOnAvatar.setText("Display life on avatar image");
|
displayLifeOnAvatar.setText("Display life on avatar image");
|
||||||
displayLifeOnAvatar.setToolTipText("Display the player's life over its avatar image.");
|
displayLifeOnAvatar.setToolTipText("Display the player's life over its avatar image.");
|
||||||
displayLifeOnAvatar.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
displayLifeOnAvatarActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
showAbilityPickerForced.setSelected(true);
|
showAbilityPickerForced.setSelected(true);
|
||||||
showAbilityPickerForced.setText("Show ability picker for 1 available option (spells without costs, mdf/split side, adventure)");
|
showAbilityPickerForced.setText("Show ability picker for 1 available option (spells without costs, mdf/split side, adventure)");
|
||||||
showAbilityPickerForced.setToolTipText("This prevents you from accidently activating abilities what you don't want (example: if you haven't mana to cast main side, but clicks on mdf card and play land instead)");
|
showAbilityPickerForced.setToolTipText("This prevents you from accidently activating abilities what you don't want (example: if you haven't mana to cast main side, but clicks on mdf card and play land instead)");
|
||||||
showAbilityPickerForced.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
showAbilityPickerForcedActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
cbAllowRequestToShowHandCards.setSelected(true);
|
cbAllowRequestToShowHandCards.setSelected(true);
|
||||||
cbAllowRequestToShowHandCards.setText("Allow requests from players and spectators to show your hand cards");
|
cbAllowRequestToShowHandCards.setText("Allow requests from players and spectators to show your hand cards");
|
||||||
cbAllowRequestToShowHandCards.setToolTipText("<html>This is the default setting used for your matches. If activated other players or spectators<br>\nof your match can send a request so you can allow them to see your hand cards.");
|
cbAllowRequestToShowHandCards.setToolTipText("<html>This is the default setting used for your matches. If activated other players or spectators<br>\nof your match can send a request so you can allow them to see your hand cards.");
|
||||||
cbAllowRequestToShowHandCards.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
cbAllowRequestToShowHandCardsActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
cbShowStormCounter.setSelected(true);
|
|
||||||
cbShowStormCounter.setText("Show the number of spell casts during the current turn");
|
|
||||||
cbShowStormCounter.setToolTipText("<html>Adds a little box left to the short keys line with the number<br>\nof spells already cast during the current turn (storm counter).");
|
|
||||||
cbShowStormCounter.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
cbShowStormCounterActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
cbConfirmEmptyManaPool.setSelected(true);
|
cbConfirmEmptyManaPool.setSelected(true);
|
||||||
cbConfirmEmptyManaPool.setText("Confirm if you want to pass a phase/step but there is still mana in your mana pool");
|
cbConfirmEmptyManaPool.setText("Confirm if you want to pass a phase/step but there is still mana in your mana pool");
|
||||||
cbConfirmEmptyManaPool.setToolTipText("<html>If activated you get a confirm message if you pass priority while stack is empty<br>\n and you still have mana in your mana pool.");
|
cbConfirmEmptyManaPool.setToolTipText("<html>If activated you get a confirm message if you pass priority while stack is empty<br>\n and you still have mana in your mana pool.");
|
||||||
cbConfirmEmptyManaPool.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
cbConfirmEmptyManaPoolActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
cbAskMoveToGraveOrder.setSelected(true);
|
cbAskMoveToGraveOrder.setSelected(true);
|
||||||
cbAskMoveToGraveOrder.setText("Ask player for setting order cards go to graveyard");
|
cbAskMoveToGraveOrder.setText("Ask player for setting order cards go to graveyard");
|
||||||
cbAskMoveToGraveOrder.setToolTipText("<html>If activated and multiple cards go to the graveyard at the same time<br>\nthe player is asked to set the order of the cards.");
|
cbAskMoveToGraveOrder.setToolTipText("<html>If activated and multiple cards go to the graveyard at the same time<br>\nthe player is asked to set the order of the cards.");
|
||||||
cbAskMoveToGraveOrder.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
cbAskMoveToGraveOrderActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
lblTargetAutoChoose.setText("Auto-choose targets for player:");
|
lblTargetAutoChoose.setText("Auto-choose targets for player:");
|
||||||
lblTargetAutoChoose.setToolTipText("<html>\nWhen there is only one possible outcome for targeting, the targets can be chosen for you.\n<br>\n<b>None:</b> All targeting must be done by the player.\n<br>\n<b>Most:</b> All targeting other than feel-bad effects (discarding, destroy, sacrifice, exile) that target you, a card you own, or a permanent/spell you control.\n<br>\n<b>All:</b> All targeting that can be automated will be.");
|
lblTargetAutoChoose.setToolTipText("<html>\nWhen there is only one possible outcome for targeting, the targets can be chosen for you.\n<br>\n<b>None:</b> All targeting must be done by the player.\n<br>\n<b>Most:</b> All targeting other than feel-bad effects (discarding, destroy, sacrifice, exile) that target you, a card you own, or a permanent/spell you control.\n<br>\n<b>All:</b> All targeting that can be automated will be.");
|
||||||
|
|
@ -808,34 +762,27 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
cbTargetAutoChooseLevel.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Off", "Most", "All" }));
|
cbTargetAutoChooseLevel.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Off", "Most", "All" }));
|
||||||
cbTargetAutoChooseLevel.setSelectedIndex(1);
|
cbTargetAutoChooseLevel.setSelectedIndex(1);
|
||||||
cbTargetAutoChooseLevel.setToolTipText(lblTargetAutoChoose.getToolTipText());
|
cbTargetAutoChooseLevel.setToolTipText(lblTargetAutoChoose.getToolTipText());
|
||||||
cbTargetAutoChooseLevel.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
cbTargetAutoChooseLevelActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
org.jdesktop.layout.GroupLayout main_gameLayout = new org.jdesktop.layout.GroupLayout(main_game);
|
org.jdesktop.layout.GroupLayout main_gameLayout = new org.jdesktop.layout.GroupLayout(main_game);
|
||||||
main_game.setLayout(main_gameLayout);
|
main_game.setLayout(main_gameLayout);
|
||||||
main_gameLayout.setHorizontalGroup(
|
main_gameLayout.setHorizontalGroup(
|
||||||
main_gameLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
main_gameLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
||||||
|
.add(displayLifeOnAvatar, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
|
.add(main_gameLayout.createSequentialGroup()
|
||||||
|
.add(main_gameLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
||||||
.add(main_gameLayout.createSequentialGroup()
|
.add(main_gameLayout.createSequentialGroup()
|
||||||
.addContainerGap()
|
.addContainerGap()
|
||||||
.add(lblTargetAutoChoose)
|
.add(lblTargetAutoChoose)
|
||||||
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
|
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
|
||||||
.add(cbTargetAutoChooseLevel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
|
.add(cbTargetAutoChooseLevel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
|
||||||
.addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
|
||||||
.add(displayLifeOnAvatar, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
|
||||||
.add(main_gameLayout.createSequentialGroup()
|
|
||||||
.add(main_gameLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
|
||||||
.add(cbAskMoveToGraveOrder, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 596, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
|
.add(cbAskMoveToGraveOrder, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 596, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
|
||||||
.add(main_gameLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
|
.add(main_gameLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
|
||||||
.add(showPlayerNamesPermanently, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
.add(showPlayerNamesPermanently, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
.add(nonLandPermanentsInOnePile, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
.add(nonLandPermanentsInOnePile, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
.add(cbConfirmEmptyManaPool, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
.add(cbConfirmEmptyManaPool, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
.add(cbAllowRequestToShowHandCards, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
.add(cbAllowRequestToShowHandCards, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
.add(cbShowStormCounter, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
|
||||||
.add(showAbilityPickerForced)))
|
.add(showAbilityPickerForced)))
|
||||||
.add(0, 315, Short.MAX_VALUE))
|
.addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
||||||
);
|
);
|
||||||
main_gameLayout.setVerticalGroup(
|
main_gameLayout.setVerticalGroup(
|
||||||
main_gameLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
main_gameLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
||||||
|
|
@ -850,8 +797,6 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
|
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
|
||||||
.add(cbAllowRequestToShowHandCards)
|
.add(cbAllowRequestToShowHandCards)
|
||||||
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
|
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
|
||||||
.add(cbShowStormCounter)
|
|
||||||
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
|
|
||||||
.add(cbConfirmEmptyManaPool)
|
.add(cbConfirmEmptyManaPool)
|
||||||
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
|
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
|
||||||
.add(cbAskMoveToGraveOrder)
|
.add(cbAskMoveToGraveOrder)
|
||||||
|
|
@ -1443,108 +1388,58 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
cbStopAttack.setText("STOP skips on declare attackers if attackers are available");
|
cbStopAttack.setText("STOP skips on declare attackers if attackers are available");
|
||||||
cbStopAttack.setToolTipText("");
|
cbStopAttack.setToolTipText("");
|
||||||
cbStopAttack.setActionCommand("");
|
cbStopAttack.setActionCommand("");
|
||||||
cbStopAttack.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
cbStopAttackActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
phases_stopSettings.add(cbStopAttack);
|
phases_stopSettings.add(cbStopAttack);
|
||||||
|
|
||||||
cbStopBlockWithAny.setSelected(true);
|
cbStopBlockWithAny.setSelected(true);
|
||||||
cbStopBlockWithAny.setText("STOP skips on declare blockers if ANY blockers are available");
|
cbStopBlockWithAny.setText("STOP skips on declare blockers if ANY blockers are available");
|
||||||
cbStopBlockWithAny.setToolTipText("");
|
cbStopBlockWithAny.setToolTipText("");
|
||||||
cbStopBlockWithAny.setActionCommand("");
|
cbStopBlockWithAny.setActionCommand("");
|
||||||
cbStopBlockWithAny.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
cbStopBlockWithAnyActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
phases_stopSettings.add(cbStopBlockWithAny);
|
phases_stopSettings.add(cbStopBlockWithAny);
|
||||||
|
|
||||||
cbStopBlockWithZero.setText("STOP skips on declare blockers if ZERO blockers are available");
|
cbStopBlockWithZero.setText("STOP skips on declare blockers if ZERO blockers are available");
|
||||||
cbStopBlockWithZero.setToolTipText("");
|
cbStopBlockWithZero.setToolTipText("");
|
||||||
cbStopBlockWithZero.setActionCommand("");
|
cbStopBlockWithZero.setActionCommand("");
|
||||||
cbStopBlockWithZero.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
cbStopBlockWithZeroActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
phases_stopSettings.add(cbStopBlockWithZero);
|
phases_stopSettings.add(cbStopBlockWithZero);
|
||||||
|
|
||||||
cbStopOnNewStackObjects.setText("Skip to STACK resolved (F10): stop on new objects added (on) or stop until empty (off)");
|
cbStopOnNewStackObjects.setText("Skip to STACK resolved (F10): stop on new objects added (on) or stop until empty (off)");
|
||||||
cbStopOnNewStackObjects.setToolTipText("");
|
cbStopOnNewStackObjects.setToolTipText("");
|
||||||
cbStopOnNewStackObjects.setActionCommand("");
|
cbStopOnNewStackObjects.setActionCommand("");
|
||||||
cbStopOnNewStackObjects.setPreferredSize(new java.awt.Dimension(300, 25));
|
cbStopOnNewStackObjects.setPreferredSize(new java.awt.Dimension(300, 25));
|
||||||
cbStopOnNewStackObjects.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
cbStopOnNewStackObjectsActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
phases_stopSettings.add(cbStopOnNewStackObjects);
|
phases_stopSettings.add(cbStopOnNewStackObjects);
|
||||||
|
|
||||||
cbStopOnAllMain.setText("Skip to MAIN step (F7): stop on any main steps (on) or stop on your main step (off)");
|
cbStopOnAllMain.setText("Skip to MAIN step (F7): stop on any main steps (on) or stop on your main step (off)");
|
||||||
cbStopOnAllMain.setToolTipText("");
|
cbStopOnAllMain.setToolTipText("");
|
||||||
cbStopOnAllMain.setActionCommand("");
|
cbStopOnAllMain.setActionCommand("");
|
||||||
cbStopOnAllMain.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
cbStopOnAllMainActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
phases_stopSettings.add(cbStopOnAllMain);
|
phases_stopSettings.add(cbStopOnAllMain);
|
||||||
|
|
||||||
cbStopOnAllEnd.setText("Skip to END step (F5): stop on any end steps (on) or stop on opponents end step (off)");
|
cbStopOnAllEnd.setText("Skip to END step (F5): stop on any end steps (on) or stop on opponents end step (off)");
|
||||||
cbStopOnAllEnd.setToolTipText("");
|
cbStopOnAllEnd.setToolTipText("");
|
||||||
cbStopOnAllEnd.setActionCommand("");
|
cbStopOnAllEnd.setActionCommand("");
|
||||||
cbStopOnAllEnd.setPreferredSize(new java.awt.Dimension(300, 25));
|
cbStopOnAllEnd.setPreferredSize(new java.awt.Dimension(300, 25));
|
||||||
cbStopOnAllEnd.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
cbStopOnAllEndActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
phases_stopSettings.add(cbStopOnAllEnd);
|
phases_stopSettings.add(cbStopOnAllEnd);
|
||||||
|
|
||||||
cbPassPriorityCast.setText("Pass priority automatically after you have put a spell on the stack");
|
cbPassPriorityCast.setText("Pass priority automatically after you have put a spell on the stack");
|
||||||
cbPassPriorityCast.setToolTipText("If activated the system passes priority automatically for you if you have put a spell on the stack.");
|
cbPassPriorityCast.setToolTipText("If activated the system passes priority automatically for you if you have put a spell on the stack.");
|
||||||
cbPassPriorityCast.setActionCommand("");
|
cbPassPriorityCast.setActionCommand("");
|
||||||
cbPassPriorityCast.setPreferredSize(new java.awt.Dimension(300, 25));
|
cbPassPriorityCast.setPreferredSize(new java.awt.Dimension(300, 25));
|
||||||
cbPassPriorityCast.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
cbPassPriorityCastActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
phases_stopSettings.add(cbPassPriorityCast);
|
phases_stopSettings.add(cbPassPriorityCast);
|
||||||
|
|
||||||
cbPassPriorityActivation.setText("Pass priority automatically after you have put an activated ability on the stack");
|
cbPassPriorityActivation.setText("Pass priority automatically after you have put an activated ability on the stack");
|
||||||
cbPassPriorityActivation.setToolTipText("If activated the system passes priority for you automatically after you have put an activated ability on the stack.");
|
cbPassPriorityActivation.setToolTipText("If activated the system passes priority for you automatically after you have put an activated ability on the stack.");
|
||||||
cbPassPriorityActivation.setActionCommand("");
|
cbPassPriorityActivation.setActionCommand("");
|
||||||
cbPassPriorityActivation.setPreferredSize(new java.awt.Dimension(300, 25));
|
cbPassPriorityActivation.setPreferredSize(new java.awt.Dimension(300, 25));
|
||||||
cbPassPriorityActivation.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
cbPassPriorityActivationActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
phases_stopSettings.add(cbPassPriorityActivation);
|
phases_stopSettings.add(cbPassPriorityActivation);
|
||||||
|
|
||||||
cbAutoOrderTrigger.setText("TRIGGERS: auto-choose triggers order for same rule texts (put same triggers to the stack at default order)");
|
cbAutoOrderTrigger.setText("TRIGGERS: auto-choose triggers order for same rule texts (put same triggers to the stack at default order)");
|
||||||
cbAutoOrderTrigger.setToolTipText("<HTML>If you put same triggers with same texts on the stack then auto-choose their order.<br/>\nYou can change that settings anytime at the game.");
|
cbAutoOrderTrigger.setToolTipText("<HTML>If you put same triggers with same texts on the stack then auto-choose their order.<br/>\nYou can change that settings anytime at the game.");
|
||||||
cbAutoOrderTrigger.setActionCommand("");
|
cbAutoOrderTrigger.setActionCommand("");
|
||||||
cbAutoOrderTrigger.setPreferredSize(new java.awt.Dimension(300, 25));
|
cbAutoOrderTrigger.setPreferredSize(new java.awt.Dimension(300, 25));
|
||||||
cbAutoOrderTrigger.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
cbAutoOrderTriggerActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
phases_stopSettings.add(cbAutoOrderTrigger);
|
phases_stopSettings.add(cbAutoOrderTrigger);
|
||||||
|
|
||||||
cbUseSameSettingsForReplacementEffect.setText("REPLACEMENT EFFECTS: use same auto-choose settings for same cards (choose replacement effects order dialog)");
|
cbUseSameSettingsForReplacementEffect.setText("REPLACEMENT EFFECTS: use same auto-choose settings for same cards (choose replacement effects order dialog)");
|
||||||
cbUseSameSettingsForReplacementEffect.setToolTipText("<HTML>If you setup auto-choose for one object/card then it will be applied for all other objects with same name.<br/>\nYou can change that settings anytime at the game.");
|
cbUseSameSettingsForReplacementEffect.setToolTipText("<HTML>If you setup auto-choose for one object/card then it will be applied for all other objects with same name.<br/>\nYou can change that settings anytime at the game.");
|
||||||
cbUseSameSettingsForReplacementEffect.setActionCommand("");
|
cbUseSameSettingsForReplacementEffect.setActionCommand("");
|
||||||
cbUseSameSettingsForReplacementEffect.setPreferredSize(new java.awt.Dimension(300, 25));
|
cbUseSameSettingsForReplacementEffect.setPreferredSize(new java.awt.Dimension(300, 25));
|
||||||
cbUseSameSettingsForReplacementEffect.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
cbUseSameSettingsForReplacementEffectActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
phases_stopSettings.add(cbUseSameSettingsForReplacementEffect);
|
phases_stopSettings.add(cbUseSameSettingsForReplacementEffect);
|
||||||
|
|
||||||
org.jdesktop.layout.GroupLayout tabPhasesLayout = new org.jdesktop.layout.GroupLayout(tabPhases);
|
org.jdesktop.layout.GroupLayout tabPhasesLayout = new org.jdesktop.layout.GroupLayout(tabPhases);
|
||||||
|
|
@ -1781,12 +1676,6 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
txtBackgroundImagePath.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
txtBackgroundImagePathActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
btnBrowseBackgroundImage.setText("Browse...");
|
btnBrowseBackgroundImage.setText("Browse...");
|
||||||
btnBrowseBackgroundImage.addActionListener(new java.awt.event.ActionListener() {
|
btnBrowseBackgroundImage.addActionListener(new java.awt.event.ActionListener() {
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
|
|
@ -1794,12 +1683,6 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
txtBattlefieldImagePath.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
txtBattlefieldImagePathActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
btnBrowseBattlefieldImage.setText("Browse...");
|
btnBrowseBattlefieldImage.setText("Browse...");
|
||||||
btnBrowseBattlefieldImage.addActionListener(new java.awt.event.ActionListener() {
|
btnBrowseBattlefieldImage.addActionListener(new java.awt.event.ActionListener() {
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
|
|
@ -1892,38 +1775,18 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
|
|
||||||
cbEnableGameSounds.setText("Enable game sounds");
|
cbEnableGameSounds.setText("Enable game sounds");
|
||||||
cbEnableGameSounds.setToolTipText("Sounds that will be played for certain actions (e.g. play land, attack, etc.) during the game.");
|
cbEnableGameSounds.setToolTipText("Sounds that will be played for certain actions (e.g. play land, attack, etc.) during the game.");
|
||||||
cbEnableGameSounds.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
cbEnableGameSoundsActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
sounds_clips.add(cbEnableGameSounds);
|
sounds_clips.add(cbEnableGameSounds);
|
||||||
|
|
||||||
cbEnableDraftSounds.setText("Enable draft sounds");
|
cbEnableDraftSounds.setText("Enable draft sounds");
|
||||||
cbEnableDraftSounds.setToolTipText("Sounds that will be played during drafting for card picking or warining if time runs out.");
|
cbEnableDraftSounds.setToolTipText("Sounds that will be played during drafting for card picking or warining if time runs out.");
|
||||||
cbEnableDraftSounds.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
cbEnableDraftSoundsActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
sounds_clips.add(cbEnableDraftSounds);
|
sounds_clips.add(cbEnableDraftSounds);
|
||||||
|
|
||||||
cbEnableSkipButtonsSounds.setText("Enable skip button sounds");
|
cbEnableSkipButtonsSounds.setText("Enable skip button sounds");
|
||||||
cbEnableSkipButtonsSounds.setToolTipText("Sounds that will be played if a priority skip action (F4/F5/F7/F9) or cancel skip action (F3) is used.");
|
cbEnableSkipButtonsSounds.setToolTipText("Sounds that will be played if a priority skip action (F4/F5/F7/F9) or cancel skip action (F3) is used.");
|
||||||
cbEnableSkipButtonsSounds.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
cbEnableSkipButtonsSoundsActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
sounds_clips.add(cbEnableSkipButtonsSounds);
|
sounds_clips.add(cbEnableSkipButtonsSounds);
|
||||||
|
|
||||||
cbEnableOtherSounds.setText("Enable other sounds");
|
cbEnableOtherSounds.setText("Enable other sounds");
|
||||||
cbEnableOtherSounds.setToolTipText("Sounds that will be played for actions outside of games (e.g. whisper, player joins your game, player submits a deck ...).");
|
cbEnableOtherSounds.setToolTipText("Sounds that will be played for actions outside of games (e.g. whisper, player joins your game, player submits a deck ...).");
|
||||||
cbEnableOtherSounds.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
cbEnableOtherSoundsActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
sounds_clips.add(cbEnableOtherSounds);
|
sounds_clips.add(cbEnableOtherSounds);
|
||||||
|
|
||||||
sounds_backgroundMusic.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Music"));
|
sounds_backgroundMusic.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Music"));
|
||||||
|
|
@ -1940,12 +1803,6 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
jLabel16.setText("Playing from folder:");
|
jLabel16.setText("Playing from folder:");
|
||||||
jLabel16.setToolTipText("");
|
jLabel16.setToolTipText("");
|
||||||
|
|
||||||
txtBattlefieldIBGMPath.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
txtBattlefieldIBGMPathActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
btnBattlefieldBGMBrowse.setText("Browse...");
|
btnBattlefieldBGMBrowse.setText("Browse...");
|
||||||
btnBattlefieldBGMBrowse.addActionListener(new java.awt.event.ActionListener() {
|
btnBattlefieldBGMBrowse.addActionListener(new java.awt.event.ActionListener() {
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
|
|
@ -2518,28 +2375,11 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
|
|
||||||
lblProxyPort.setText("Port:");
|
lblProxyPort.setText("Port:");
|
||||||
|
|
||||||
txtProxyPort.addKeyListener(new java.awt.event.KeyAdapter() {
|
|
||||||
public void keyTyped(java.awt.event.KeyEvent evt) {
|
|
||||||
txtProxyPortkeyTyped(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
lblProxyUserName.setText("User Name:");
|
lblProxyUserName.setText("User Name:");
|
||||||
|
|
||||||
lblProxyPassword.setText("Password:");
|
lblProxyPassword.setText("Password:");
|
||||||
|
|
||||||
txtPasswordField.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
txtPasswordFieldActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
rememberPswd.setText("Remember Password");
|
rememberPswd.setText("Remember Password");
|
||||||
rememberPswd.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
rememberPswdActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
jLabel11.setFont(new java.awt.Font("Tahoma", 2, 10)); // NOI18N
|
jLabel11.setFont(new java.awt.Font("Tahoma", 2, 10)); // NOI18N
|
||||||
jLabel11.setText("Note: password won't be encrypted!");
|
jLabel11.setText("Note: password won't be encrypted!");
|
||||||
|
|
@ -2804,12 +2644,6 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
lbSelectLabel.setPreferredSize(new java.awt.Dimension(110, 16));
|
lbSelectLabel.setPreferredSize(new java.awt.Dimension(110, 16));
|
||||||
lbSelectLabel.setVerticalTextPosition(javax.swing.SwingConstants.TOP);
|
lbSelectLabel.setVerticalTextPosition(javax.swing.SwingConstants.TOP);
|
||||||
|
|
||||||
cbTheme.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
cbThemeActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
lbThemeHint.setText("Requires a restart to apply new theme.");
|
lbThemeHint.setText("Requires a restart to apply new theme.");
|
||||||
|
|
||||||
org.jdesktop.layout.GroupLayout themesCategoryLayout = new org.jdesktop.layout.GroupLayout(themesCategory);
|
org.jdesktop.layout.GroupLayout themesCategoryLayout = new org.jdesktop.layout.GroupLayout(themesCategory);
|
||||||
|
|
@ -2823,7 +2657,7 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
.add(themesCategoryLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
.add(themesCategoryLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
||||||
.add(lbThemeHint)
|
.add(lbThemeHint)
|
||||||
.add(cbTheme, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 303, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
|
.add(cbTheme, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 303, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
|
||||||
.addContainerGap(303, Short.MAX_VALUE))
|
.addContainerGap(360, Short.MAX_VALUE))
|
||||||
);
|
);
|
||||||
themesCategoryLayout.setVerticalGroup(
|
themesCategoryLayout.setVerticalGroup(
|
||||||
themesCategoryLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
themesCategoryLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
||||||
|
|
@ -2840,7 +2674,7 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
tabThemes.setLayout(tabThemesLayout);
|
tabThemes.setLayout(tabThemesLayout);
|
||||||
tabThemesLayout.setHorizontalGroup(
|
tabThemesLayout.setHorizontalGroup(
|
||||||
tabThemesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
tabThemesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
||||||
.add(0, 750, Short.MAX_VALUE)
|
.add(0, 807, Short.MAX_VALUE)
|
||||||
.add(tabThemesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
.add(tabThemesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
||||||
.add(tabThemesLayout.createSequentialGroup()
|
.add(tabThemesLayout.createSequentialGroup()
|
||||||
.addContainerGap()
|
.addContainerGap()
|
||||||
|
|
@ -2897,7 +2731,7 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
layout.setVerticalGroup(
|
layout.setVerticalGroup(
|
||||||
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
||||||
.add(layout.createSequentialGroup()
|
.add(layout.createSequentialGroup()
|
||||||
.add(tabsPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 584, Short.MAX_VALUE)
|
.add(tabsPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
|
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
|
||||||
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
|
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
|
||||||
.add(saveButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 30, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
|
.add(saveButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 30, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
|
||||||
|
|
@ -2920,7 +2754,6 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
save(prefs, dialog.displayLifeOnAvatar, KEY_DISPLAY_LIVE_ON_AVATAR, "true", "false", UPDATE_CACHE_POLICY);
|
save(prefs, dialog.displayLifeOnAvatar, KEY_DISPLAY_LIVE_ON_AVATAR, "true", "false", UPDATE_CACHE_POLICY);
|
||||||
save(prefs, dialog.showAbilityPickerForced, KEY_SHOW_ABILITY_PICKER_FORCED, "true", "false", UPDATE_CACHE_POLICY);
|
save(prefs, dialog.showAbilityPickerForced, KEY_SHOW_ABILITY_PICKER_FORCED, "true", "false", UPDATE_CACHE_POLICY);
|
||||||
save(prefs, dialog.cbAllowRequestToShowHandCards, KEY_GAME_ALLOW_REQUEST_SHOW_HAND_CARDS, "true", "false", UPDATE_CACHE_POLICY);
|
save(prefs, dialog.cbAllowRequestToShowHandCards, KEY_GAME_ALLOW_REQUEST_SHOW_HAND_CARDS, "true", "false", UPDATE_CACHE_POLICY);
|
||||||
save(prefs, dialog.cbShowStormCounter, KEY_GAME_SHOW_STORM_COUNTER, "true", "false", UPDATE_CACHE_POLICY);
|
|
||||||
save(prefs, dialog.cbConfirmEmptyManaPool, KEY_GAME_CONFIRM_EMPTY_MANA_POOL, "true", "false", UPDATE_CACHE_POLICY);
|
save(prefs, dialog.cbConfirmEmptyManaPool, KEY_GAME_CONFIRM_EMPTY_MANA_POOL, "true", "false", UPDATE_CACHE_POLICY);
|
||||||
save(prefs, dialog.cbAskMoveToGraveOrder, KEY_GAME_ASK_MOVE_TO_GRAVE_ORDER, "true", "false", UPDATE_CACHE_POLICY);
|
save(prefs, dialog.cbAskMoveToGraveOrder, KEY_GAME_ASK_MOVE_TO_GRAVE_ORDER, "true", "false", UPDATE_CACHE_POLICY);
|
||||||
save(prefs, dialog.cbGameLogShowTurnInfo, KEY_GAME_LOG_SHOW_TURN_INFO, "true", "false", UPDATE_CACHE_POLICY);
|
save(prefs, dialog.cbGameLogShowTurnInfo, KEY_GAME_LOG_SHOW_TURN_INFO, "true", "false", UPDATE_CACHE_POLICY);
|
||||||
|
|
@ -3097,19 +2930,6 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
this.showProxySettings();
|
this.showProxySettings();
|
||||||
}//GEN-LAST:event_cbProxyTypeActionPerformed
|
}//GEN-LAST:event_cbProxyTypeActionPerformed
|
||||||
|
|
||||||
private void txtPasswordFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtPasswordFieldActionPerformed
|
|
||||||
}//GEN-LAST:event_txtPasswordFieldActionPerformed
|
|
||||||
|
|
||||||
private void txtProxyPortkeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txtProxyPortkeyTyped
|
|
||||||
}//GEN-LAST:event_txtProxyPortkeyTyped
|
|
||||||
|
|
||||||
private void rememberPswdActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rememberPswdActionPerformed
|
|
||||||
}//GEN-LAST:event_rememberPswdActionPerformed
|
|
||||||
|
|
||||||
private void cbEnableGameSoundsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbEnableGameSoundsActionPerformed
|
|
||||||
// TODO add your handling code here:
|
|
||||||
}//GEN-LAST:event_cbEnableGameSoundsActionPerformed
|
|
||||||
|
|
||||||
private void cbEnableBattlefieldBGMActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbEnableBattlefieldBGMActionPerformed
|
private void cbEnableBattlefieldBGMActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbEnableBattlefieldBGMActionPerformed
|
||||||
if (cbEnableBattlefieldBGM.isSelected()) {
|
if (cbEnableBattlefieldBGM.isSelected()) {
|
||||||
txtBattlefieldIBGMPath.setEnabled(true);
|
txtBattlefieldIBGMPath.setEnabled(true);
|
||||||
|
|
@ -3206,20 +3026,7 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void txtBackgroundImagePathActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtBackgroundImagePathActionPerformed
|
|
||||||
// TODO add your handling code here:
|
|
||||||
}//GEN-LAST:event_txtBackgroundImagePathActionPerformed
|
|
||||||
|
|
||||||
private void txtBattlefieldImagePathActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtBattlefieldImagePathActionPerformed
|
|
||||||
// TODO add your handling code here:
|
|
||||||
}//GEN-LAST:event_txtBattlefieldImagePathActionPerformed
|
|
||||||
|
|
||||||
private void txtBattlefieldIBGMPathActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtBattlefieldIBGMPathActionPerformed
|
|
||||||
// TODO add your handling code here:
|
|
||||||
}//GEN-LAST:event_txtBattlefieldIBGMPathActionPerformed
|
|
||||||
|
|
||||||
private void btnBattlefieldBGMBrowseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBattlefieldBGMBrowseActionPerformed
|
private void btnBattlefieldBGMBrowseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBattlefieldBGMBrowseActionPerformed
|
||||||
// TODO add your handling code here:
|
|
||||||
int returnVal = fc.showOpenDialog(PreferencesDialog.this);
|
int returnVal = fc.showOpenDialog(PreferencesDialog.this);
|
||||||
if (returnVal == JFileChooser.APPROVE_OPTION) {
|
if (returnVal == JFileChooser.APPROVE_OPTION) {
|
||||||
File file = fc.getSelectedFile();
|
File file = fc.getSelectedFile();
|
||||||
|
|
@ -3227,78 +3034,10 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
}
|
}
|
||||||
}//GEN-LAST:event_btnBattlefieldBGMBrowseActionPerformed
|
}//GEN-LAST:event_btnBattlefieldBGMBrowseActionPerformed
|
||||||
|
|
||||||
private void nonLandPermanentsInOnePileActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_nonLandPermanentsInOnePileActionPerformed
|
|
||||||
|
|
||||||
}//GEN-LAST:event_nonLandPermanentsInOnePileActionPerformed
|
|
||||||
|
|
||||||
private void showPlayerNamesPermanentlyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_showPlayerNamesPermanentlyActionPerformed
|
|
||||||
// TODO add your handling code here:
|
|
||||||
}//GEN-LAST:event_showPlayerNamesPermanentlyActionPerformed
|
|
||||||
|
|
||||||
private void showCardNameActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_showCardNameActionPerformed
|
private void showCardNameActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_showCardNameActionPerformed
|
||||||
|
|
||||||
}//GEN-LAST:event_showCardNameActionPerformed
|
}//GEN-LAST:event_showCardNameActionPerformed
|
||||||
|
|
||||||
private void showAbilityPickerForcedActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_showAbilityPickerForcedActionPerformed
|
|
||||||
// TODO add your handling code here:
|
|
||||||
}//GEN-LAST:event_showAbilityPickerForcedActionPerformed
|
|
||||||
|
|
||||||
private void cbEnableOtherSoundsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbEnableOtherSoundsActionPerformed
|
|
||||||
// TODO add your handling code here:
|
|
||||||
}//GEN-LAST:event_cbEnableOtherSoundsActionPerformed
|
|
||||||
|
|
||||||
private void cbStopAttackActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbStopAttackActionPerformed
|
|
||||||
// TODO add your handling code here:
|
|
||||||
}//GEN-LAST:event_cbStopAttackActionPerformed
|
|
||||||
|
|
||||||
private void cbStopBlockWithAnyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbStopBlockWithAnyActionPerformed
|
|
||||||
// TODO add your handling code here:
|
|
||||||
}//GEN-LAST:event_cbStopBlockWithAnyActionPerformed
|
|
||||||
|
|
||||||
private void cbStopOnAllMainActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbStopOnAllMainActionPerformed
|
|
||||||
// TODO add your handling code here:
|
|
||||||
}//GEN-LAST:event_cbStopOnAllMainActionPerformed
|
|
||||||
|
|
||||||
private void cbStopOnAllEndActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbStopOnAllEndActionPerformed
|
|
||||||
// TODO add your handling code here:
|
|
||||||
}//GEN-LAST:event_cbStopOnAllEndActionPerformed
|
|
||||||
|
|
||||||
private void cbEnableDraftSoundsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbEnableDraftSoundsActionPerformed
|
|
||||||
// TODO add your handling code here:
|
|
||||||
}//GEN-LAST:event_cbEnableDraftSoundsActionPerformed
|
|
||||||
|
|
||||||
private void cbEnableSkipButtonsSoundsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbEnableSkipButtonsSoundsActionPerformed
|
|
||||||
// TODO add your handling code here:
|
|
||||||
}//GEN-LAST:event_cbEnableSkipButtonsSoundsActionPerformed
|
|
||||||
|
|
||||||
private void cbAllowRequestToShowHandCardsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbAllowRequestToShowHandCardsActionPerformed
|
|
||||||
// TODO add your handling code here:
|
|
||||||
}//GEN-LAST:event_cbAllowRequestToShowHandCardsActionPerformed
|
|
||||||
|
|
||||||
private void cbShowStormCounterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbShowStormCounterActionPerformed
|
|
||||||
// TODO add your handling code here:
|
|
||||||
}//GEN-LAST:event_cbShowStormCounterActionPerformed
|
|
||||||
|
|
||||||
private void cbConfirmEmptyManaPoolActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbConfirmEmptyManaPoolActionPerformed
|
|
||||||
// TODO add your handling code here:
|
|
||||||
}//GEN-LAST:event_cbConfirmEmptyManaPoolActionPerformed
|
|
||||||
|
|
||||||
private void cbAskMoveToGraveOrderActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbAskMoveToGraveOrderActionPerformed
|
|
||||||
// TODO add your handling code here:
|
|
||||||
}//GEN-LAST:event_cbAskMoveToGraveOrderActionPerformed
|
|
||||||
|
|
||||||
private void cbPassPriorityCastActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbPassPriorityCastActionPerformed
|
|
||||||
// TODO add your handling code here:
|
|
||||||
}//GEN-LAST:event_cbPassPriorityCastActionPerformed
|
|
||||||
|
|
||||||
private void cbPassPriorityActivationActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbPassPriorityActivationActionPerformed
|
|
||||||
// TODO add your handling code here:
|
|
||||||
}//GEN-LAST:event_cbPassPriorityActivationActionPerformed
|
|
||||||
|
|
||||||
private void cbAutoOrderTriggerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbAutoOrderTriggerActionPerformed
|
|
||||||
// TODO add your handling code here:
|
|
||||||
}//GEN-LAST:event_cbAutoOrderTriggerActionPerformed
|
|
||||||
|
|
||||||
private void bttnResetControlsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bttnResetControlsActionPerformed
|
private void bttnResetControlsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bttnResetControlsActionPerformed
|
||||||
getKeybindButtons().forEach((bttn) -> {
|
getKeybindButtons().forEach((bttn) -> {
|
||||||
String id = bttn.getKey();
|
String id = bttn.getKey();
|
||||||
|
|
@ -3316,18 +3055,6 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
|
|
||||||
}//GEN-LAST:event_cbBattlefieldFeedbackColorizingModeActionPerformed
|
}//GEN-LAST:event_cbBattlefieldFeedbackColorizingModeActionPerformed
|
||||||
|
|
||||||
private void displayLifeOnAvatarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_displayLifeOnAvatarActionPerformed
|
|
||||||
// TODO add your handling code here:
|
|
||||||
}//GEN-LAST:event_displayLifeOnAvatarActionPerformed
|
|
||||||
|
|
||||||
private void cbStopOnNewStackObjectsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbStopOnNewStackObjectsActionPerformed
|
|
||||||
// TODO add your handling code here:
|
|
||||||
}//GEN-LAST:event_cbStopOnNewStackObjectsActionPerformed
|
|
||||||
|
|
||||||
private void cbStopBlockWithZeroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbStopBlockWithZeroActionPerformed
|
|
||||||
// TODO add your handling code here:
|
|
||||||
}//GEN-LAST:event_cbStopBlockWithZeroActionPerformed
|
|
||||||
|
|
||||||
private void cbSaveToZipFilesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbSaveToZipFilesActionPerformed
|
private void cbSaveToZipFilesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbSaveToZipFilesActionPerformed
|
||||||
// TODO add your handling code here:
|
// TODO add your handling code here:
|
||||||
}//GEN-LAST:event_cbSaveToZipFilesActionPerformed
|
}//GEN-LAST:event_cbSaveToZipFilesActionPerformed
|
||||||
|
|
@ -3349,10 +3076,6 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
}
|
}
|
||||||
}//GEN-LAST:event_cbUseDefaultImageFolderActionPerformed
|
}//GEN-LAST:event_cbUseDefaultImageFolderActionPerformed
|
||||||
|
|
||||||
private void cbThemeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbThemeActionPerformed
|
|
||||||
// TODO add your handling code here:
|
|
||||||
}//GEN-LAST:event_cbThemeActionPerformed
|
|
||||||
|
|
||||||
private void sliderGUISizeStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_sliderGUISizeStateChanged
|
private void sliderGUISizeStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_sliderGUISizeStateChanged
|
||||||
// This prevents this event from firing during the initial
|
// This prevents this event from firing during the initial
|
||||||
// setting of the sliders from pref values
|
// setting of the sliders from pref values
|
||||||
|
|
@ -3362,14 +3085,6 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
}
|
}
|
||||||
}//GEN-LAST:event_sliderGUISizeStateChanged
|
}//GEN-LAST:event_sliderGUISizeStateChanged
|
||||||
|
|
||||||
private void cbUseSameSettingsForReplacementEffectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbUseSameSettingsForReplacementEffectActionPerformed
|
|
||||||
// TODO add your handling code here:
|
|
||||||
}//GEN-LAST:event_cbUseSameSettingsForReplacementEffectActionPerformed
|
|
||||||
|
|
||||||
private void cbTargetAutoChooseLevelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbTargetAutoChooseLevelActionPerformed
|
|
||||||
// TODO add your handling code here:
|
|
||||||
}//GEN-LAST:event_cbTargetAutoChooseLevelActionPerformed
|
|
||||||
|
|
||||||
private void showProxySettings() {
|
private void showProxySettings() {
|
||||||
Connection.ProxyType proxyType = (Connection.ProxyType) cbProxyType.getSelectedItem();
|
Connection.ProxyType proxyType = (Connection.ProxyType) cbProxyType.getSelectedItem();
|
||||||
switch (proxyType) {
|
switch (proxyType) {
|
||||||
|
|
@ -3482,7 +3197,6 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
load(prefs, dialog.displayLifeOnAvatar, KEY_DISPLAY_LIVE_ON_AVATAR, "true");
|
load(prefs, dialog.displayLifeOnAvatar, KEY_DISPLAY_LIVE_ON_AVATAR, "true");
|
||||||
load(prefs, dialog.showAbilityPickerForced, KEY_SHOW_ABILITY_PICKER_FORCED, "true");
|
load(prefs, dialog.showAbilityPickerForced, KEY_SHOW_ABILITY_PICKER_FORCED, "true");
|
||||||
load(prefs, dialog.cbAllowRequestToShowHandCards, KEY_GAME_ALLOW_REQUEST_SHOW_HAND_CARDS, "true");
|
load(prefs, dialog.cbAllowRequestToShowHandCards, KEY_GAME_ALLOW_REQUEST_SHOW_HAND_CARDS, "true");
|
||||||
load(prefs, dialog.cbShowStormCounter, KEY_GAME_SHOW_STORM_COUNTER, "true");
|
|
||||||
load(prefs, dialog.cbConfirmEmptyManaPool, KEY_GAME_CONFIRM_EMPTY_MANA_POOL, "true");
|
load(prefs, dialog.cbConfirmEmptyManaPool, KEY_GAME_CONFIRM_EMPTY_MANA_POOL, "true");
|
||||||
load(prefs, dialog.cbAskMoveToGraveOrder, KEY_GAME_ASK_MOVE_TO_GRAVE_ORDER, "true");
|
load(prefs, dialog.cbAskMoveToGraveOrder, KEY_GAME_ASK_MOVE_TO_GRAVE_ORDER, "true");
|
||||||
|
|
||||||
|
|
@ -4133,7 +3847,6 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
private javax.swing.JComboBox<String> cbPreferredImageLanguage;
|
private javax.swing.JComboBox<String> cbPreferredImageLanguage;
|
||||||
private javax.swing.JComboBox<ProxyType> cbProxyType;
|
private javax.swing.JComboBox<ProxyType> cbProxyType;
|
||||||
private javax.swing.JCheckBox cbSaveToZipFiles;
|
private javax.swing.JCheckBox cbSaveToZipFiles;
|
||||||
private javax.swing.JCheckBox cbShowStormCounter;
|
|
||||||
private javax.swing.JCheckBox cbStopAttack;
|
private javax.swing.JCheckBox cbStopAttack;
|
||||||
private javax.swing.JCheckBox cbStopBlockWithAny;
|
private javax.swing.JCheckBox cbStopBlockWithAny;
|
||||||
private javax.swing.JCheckBox cbStopBlockWithZero;
|
private javax.swing.JCheckBox cbStopBlockWithZero;
|
||||||
|
|
|
||||||
|
|
@ -366,7 +366,6 @@ public final class GamePanel extends javax.swing.JPanel {
|
||||||
jSplitPane1.setDividerSize(GUISizeHelper.dividerBarSize);
|
jSplitPane1.setDividerSize(GUISizeHelper.dividerBarSize);
|
||||||
jSplitPane2.setDividerSize(GUISizeHelper.dividerBarSize);
|
jSplitPane2.setDividerSize(GUISizeHelper.dividerBarSize);
|
||||||
|
|
||||||
txtSpellsCast.setFont(new Font(GUISizeHelper.gameDialogAreaFont.getFontName(), Font.BOLD, GUISizeHelper.gameDialogAreaFont.getSize()));
|
|
||||||
txtHoldPriority.setFont(new Font(GUISizeHelper.gameDialogAreaFont.getFontName(), Font.BOLD, GUISizeHelper.gameDialogAreaFont.getSize()));
|
txtHoldPriority.setFont(new Font(GUISizeHelper.gameDialogAreaFont.getFontName(), Font.BOLD, GUISizeHelper.gameDialogAreaFont.getSize()));
|
||||||
GUISizeHelper.changePopupMenuFont(popupMenuTriggerOrder);
|
GUISizeHelper.changePopupMenuFont(popupMenuTriggerOrder);
|
||||||
|
|
||||||
|
|
@ -778,12 +777,6 @@ public final class GamePanel extends javax.swing.JPanel {
|
||||||
logger.debug("Step is empty");
|
logger.debug("Step is empty");
|
||||||
this.txtStep.setText("");
|
this.txtStep.setText("");
|
||||||
}
|
}
|
||||||
if (lastGameData.game.getSpellsCastCurrentTurn() > 0 && PreferencesDialog.getCachedValue(PreferencesDialog.KEY_GAME_SHOW_STORM_COUNTER, "true").equals("true")) {
|
|
||||||
this.txtSpellsCast.setVisible(true);
|
|
||||||
this.txtSpellsCast.setText(' ' + Integer.toString(lastGameData.game.getSpellsCastCurrentTurn()) + ' ');
|
|
||||||
} else {
|
|
||||||
this.txtSpellsCast.setVisible(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.txtActivePlayer.setText(lastGameData.game.getActivePlayerName());
|
this.txtActivePlayer.setText(lastGameData.game.getActivePlayerName());
|
||||||
this.txtPriority.setText(lastGameData.game.getPriorityPlayerName());
|
this.txtPriority.setText(lastGameData.game.getPriorityPlayerName());
|
||||||
|
|
@ -1859,14 +1852,8 @@ public final class GamePanel extends javax.swing.JPanel {
|
||||||
lblPriority = new javax.swing.JLabel();
|
lblPriority = new javax.swing.JLabel();
|
||||||
feedbackPanel = new mage.client.game.FeedbackPanel();
|
feedbackPanel = new mage.client.game.FeedbackPanel();
|
||||||
|
|
||||||
txtSpellsCast = new javax.swing.JLabel();
|
|
||||||
Border paddingBorder = BorderFactory.createEmptyBorder(4, 4, 4, 4);
|
Border paddingBorder = BorderFactory.createEmptyBorder(4, 4, 4, 4);
|
||||||
Border border = BorderFactory.createLineBorder(Color.DARK_GRAY, 2);
|
Border border = BorderFactory.createLineBorder(Color.DARK_GRAY, 2);
|
||||||
txtSpellsCast.setBorder(BorderFactory.createCompoundBorder(border, paddingBorder));
|
|
||||||
txtSpellsCast.setBackground(Color.LIGHT_GRAY);
|
|
||||||
txtSpellsCast.setOpaque(true);
|
|
||||||
txtSpellsCast.setToolTipText("spells cast during the current turn");
|
|
||||||
|
|
||||||
txtHoldPriority = new javax.swing.JLabel();
|
txtHoldPriority = new javax.swing.JLabel();
|
||||||
txtHoldPriority.setText("Hold");
|
txtHoldPriority.setText("Hold");
|
||||||
txtHoldPriority.setBorder(BorderFactory.createCompoundBorder(border, paddingBorder));
|
txtHoldPriority.setBorder(BorderFactory.createCompoundBorder(border, paddingBorder));
|
||||||
|
|
@ -2339,7 +2326,6 @@ public final class GamePanel extends javax.swing.JPanel {
|
||||||
)
|
)
|
||||||
.addGroup(gl_pnlShortCuts.createSequentialGroup()
|
.addGroup(gl_pnlShortCuts.createSequentialGroup()
|
||||||
.addComponent(txtHoldPriority)
|
.addComponent(txtHoldPriority)
|
||||||
.addComponent(txtSpellsCast)
|
|
||||||
/*.addComponent(btnToggleMacro)*/
|
/*.addComponent(btnToggleMacro)*/
|
||||||
.addComponent(btnSwitchHands)
|
.addComponent(btnSwitchHands)
|
||||||
.addComponent(btnCancelSkip)
|
.addComponent(btnCancelSkip)
|
||||||
|
|
@ -2375,7 +2361,6 @@ public final class GamePanel extends javax.swing.JPanel {
|
||||||
.addGroup(gl_pnlShortCuts.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
|
.addGroup(gl_pnlShortCuts.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
|
||||||
/*.addComponent(btnToggleMacro)*/
|
/*.addComponent(btnToggleMacro)*/
|
||||||
.addComponent(txtHoldPriority)
|
.addComponent(txtHoldPriority)
|
||||||
.addComponent(txtSpellsCast)
|
|
||||||
.addComponent(btnSwitchHands)
|
.addComponent(btnSwitchHands)
|
||||||
.addComponent(btnCancelSkip)
|
.addComponent(btnCancelSkip)
|
||||||
.addComponent(btnConcede)
|
.addComponent(btnConcede)
|
||||||
|
|
@ -3005,7 +2990,6 @@ public final class GamePanel extends javax.swing.JPanel {
|
||||||
private javax.swing.JSplitPane jSplitPane2;
|
private javax.swing.JSplitPane jSplitPane2;
|
||||||
private JPanel jPhases;
|
private JPanel jPhases;
|
||||||
private JPanel phasesContainer;
|
private JPanel phasesContainer;
|
||||||
private javax.swing.JLabel txtSpellsCast;
|
|
||||||
private javax.swing.JLabel txtHoldPriority;
|
private javax.swing.JLabel txtHoldPriority;
|
||||||
|
|
||||||
private HoverButton currentStep;
|
private HoverButton currentStep;
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,6 @@ public class GameView implements Serializable {
|
||||||
private final int turn;
|
private final int turn;
|
||||||
private boolean special = false;
|
private boolean special = false;
|
||||||
private final boolean isPlayer; // false = watching user
|
private final boolean isPlayer; // false = watching user
|
||||||
private final int spellsCastCurrentTurn;
|
|
||||||
private final boolean rollbackTurnsAllowed;
|
private final boolean rollbackTurnsAllowed;
|
||||||
|
|
||||||
public GameView(GameState state, Game game, UUID createdForPlayerId, UUID watcherUserId) {
|
public GameView(GameState state, Game game, UUID createdForPlayerId, UUID watcherUserId) {
|
||||||
|
|
@ -195,13 +194,6 @@ public class GameView implements Serializable {
|
||||||
} else {
|
} else {
|
||||||
this.special = false;
|
this.special = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
CastSpellLastTurnWatcher watcher = game.getState().getWatcher(CastSpellLastTurnWatcher.class);
|
|
||||||
if (watcher != null) {
|
|
||||||
spellsCastCurrentTurn = watcher.getAmountOfSpellsAllPlayersCastOnCurrentTurn();
|
|
||||||
} else {
|
|
||||||
spellsCastCurrentTurn = 0;
|
|
||||||
}
|
|
||||||
rollbackTurnsAllowed = game.getOptions().rollbackTurnsAllowed;
|
rollbackTurnsAllowed = game.getOptions().rollbackTurnsAllowed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -335,10 +327,6 @@ public class GameView implements Serializable {
|
||||||
this.canPlayObjects = canPlayObjects;
|
this.canPlayObjects = canPlayObjects;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getSpellsCastCurrentTurn() {
|
|
||||||
return spellsCastCurrentTurn;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean isRollbackTurnsAllowed() {
|
public boolean isRollbackTurnsAllowed() {
|
||||||
return rollbackTurnsAllowed;
|
return rollbackTurnsAllowed;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue