mirror of
https://github.com/correl/mage.git
synced 2024-11-22 03:00:11 +00:00
gui: disabled outdated buttons in connection dialog
This commit is contained in:
parent
e365aa7b2d
commit
ce267419db
2 changed files with 8 additions and 0 deletions
|
@ -365,6 +365,7 @@
|
||||||
<Property name="text" type="java.lang.String" value="X"/>
|
<Property name="text" type="java.lang.String" value="X"/>
|
||||||
<Property name="toolTipText" type="java.lang.String" value="Connect to xmage.de (first Europe server, most popular, registration needs)"/>
|
<Property name="toolTipText" type="java.lang.String" value="Connect to xmage.de (first Europe server, most popular, registration needs)"/>
|
||||||
<Property name="alignmentY" type="float" value="0.0"/>
|
<Property name="alignmentY" type="float" value="0.0"/>
|
||||||
|
<Property name="enabled" type="boolean" value="false"/>
|
||||||
<Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">
|
<Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">
|
||||||
<Insets value="[2, 2, 2, 2]"/>
|
<Insets value="[2, 2, 2, 2]"/>
|
||||||
</Property>
|
</Property>
|
||||||
|
@ -424,6 +425,7 @@
|
||||||
<Property name="text" type="java.lang.String" value="US"/>
|
<Property name="text" type="java.lang.String" value="US"/>
|
||||||
<Property name="toolTipText" type="java.lang.String" value="Connect to us.xmage.today (USA, use any username without registration)"/>
|
<Property name="toolTipText" type="java.lang.String" value="Connect to us.xmage.today (USA, use any username without registration)"/>
|
||||||
<Property name="alignmentY" type="float" value="0.0"/>
|
<Property name="alignmentY" type="float" value="0.0"/>
|
||||||
|
<Property name="enabled" type="boolean" value="false"/>
|
||||||
<Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">
|
<Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">
|
||||||
<Insets value="[2, 2, 2, 2]"/>
|
<Insets value="[2, 2, 2, 2]"/>
|
||||||
</Property>
|
</Property>
|
||||||
|
@ -453,6 +455,7 @@
|
||||||
<Property name="text" type="java.lang.String" value="EU"/>
|
<Property name="text" type="java.lang.String" value="EU"/>
|
||||||
<Property name="toolTipText" type="java.lang.String" value="Connect to eu.xmage.today (second Europe server, use any username without registration)"/>
|
<Property name="toolTipText" type="java.lang.String" value="Connect to eu.xmage.today (second Europe server, use any username without registration)"/>
|
||||||
<Property name="alignmentY" type="float" value="0.0"/>
|
<Property name="alignmentY" type="float" value="0.0"/>
|
||||||
|
<Property name="enabled" type="boolean" value="false"/>
|
||||||
<Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">
|
<Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">
|
||||||
<Insets value="[2, 2, 2, 2]"/>
|
<Insets value="[2, 2, 2, 2]"/>
|
||||||
</Property>
|
</Property>
|
||||||
|
@ -527,6 +530,7 @@
|
||||||
<Property name="text" type="java.lang.String" value="Check online status"/>
|
<Property name="text" type="java.lang.String" value="Check online status"/>
|
||||||
<Property name="toolTipText" type="java.lang.String" value="Go to servers online statuses page"/>
|
<Property name="toolTipText" type="java.lang.String" value="Go to servers online statuses page"/>
|
||||||
<Property name="alignmentY" type="float" value="0.0"/>
|
<Property name="alignmentY" type="float" value="0.0"/>
|
||||||
|
<Property name="enabled" type="boolean" value="false"/>
|
||||||
<Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">
|
<Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">
|
||||||
<Insets value="[2, 2, 2, 2]"/>
|
<Insets value="[2, 2, 2, 2]"/>
|
||||||
</Property>
|
</Property>
|
||||||
|
|
|
@ -359,6 +359,7 @@ public class ConnectDialog extends MageDialog {
|
||||||
btnFindMain.setText("X");
|
btnFindMain.setText("X");
|
||||||
btnFindMain.setToolTipText("Connect to xmage.de (first Europe server, most popular, registration needs)");
|
btnFindMain.setToolTipText("Connect to xmage.de (first Europe server, most popular, registration needs)");
|
||||||
btnFindMain.setAlignmentY(0.0F);
|
btnFindMain.setAlignmentY(0.0F);
|
||||||
|
btnFindMain.setEnabled(false);
|
||||||
btnFindMain.setMargin(new java.awt.Insets(2, 2, 2, 2));
|
btnFindMain.setMargin(new java.awt.Insets(2, 2, 2, 2));
|
||||||
btnFindMain.setMaximumSize(new java.awt.Dimension(42, 23));
|
btnFindMain.setMaximumSize(new java.awt.Dimension(42, 23));
|
||||||
btnFindMain.setMinimumSize(new java.awt.Dimension(42, 23));
|
btnFindMain.setMinimumSize(new java.awt.Dimension(42, 23));
|
||||||
|
@ -397,6 +398,7 @@ public class ConnectDialog extends MageDialog {
|
||||||
btnFindUs.setText("US");
|
btnFindUs.setText("US");
|
||||||
btnFindUs.setToolTipText("Connect to us.xmage.today (USA, use any username without registration)");
|
btnFindUs.setToolTipText("Connect to us.xmage.today (USA, use any username without registration)");
|
||||||
btnFindUs.setAlignmentY(0.0F);
|
btnFindUs.setAlignmentY(0.0F);
|
||||||
|
btnFindUs.setEnabled(false);
|
||||||
btnFindUs.setMargin(new java.awt.Insets(2, 2, 2, 2));
|
btnFindUs.setMargin(new java.awt.Insets(2, 2, 2, 2));
|
||||||
btnFindUs.setPreferredSize(new java.awt.Dimension(23, 23));
|
btnFindUs.setPreferredSize(new java.awt.Dimension(23, 23));
|
||||||
btnFindUs.addActionListener(new java.awt.event.ActionListener() {
|
btnFindUs.addActionListener(new java.awt.event.ActionListener() {
|
||||||
|
@ -418,6 +420,7 @@ public class ConnectDialog extends MageDialog {
|
||||||
btnFindEU.setText("EU");
|
btnFindEU.setText("EU");
|
||||||
btnFindEU.setToolTipText("Connect to eu.xmage.today (second Europe server, use any username without registration)");
|
btnFindEU.setToolTipText("Connect to eu.xmage.today (second Europe server, use any username without registration)");
|
||||||
btnFindEU.setAlignmentY(0.0F);
|
btnFindEU.setAlignmentY(0.0F);
|
||||||
|
btnFindEU.setEnabled(false);
|
||||||
btnFindEU.setMargin(new java.awt.Insets(2, 2, 2, 2));
|
btnFindEU.setMargin(new java.awt.Insets(2, 2, 2, 2));
|
||||||
btnFindEU.setMaximumSize(new java.awt.Dimension(42, 23));
|
btnFindEU.setMaximumSize(new java.awt.Dimension(42, 23));
|
||||||
btnFindEU.setMinimumSize(new java.awt.Dimension(42, 23));
|
btnFindEU.setMinimumSize(new java.awt.Dimension(42, 23));
|
||||||
|
@ -474,6 +477,7 @@ public class ConnectDialog extends MageDialog {
|
||||||
btnCheckStatus.setText("Check online status");
|
btnCheckStatus.setText("Check online status");
|
||||||
btnCheckStatus.setToolTipText("Go to servers online statuses page");
|
btnCheckStatus.setToolTipText("Go to servers online statuses page");
|
||||||
btnCheckStatus.setAlignmentY(0.0F);
|
btnCheckStatus.setAlignmentY(0.0F);
|
||||||
|
btnCheckStatus.setEnabled(false);
|
||||||
btnCheckStatus.setMargin(new java.awt.Insets(2, 2, 2, 2));
|
btnCheckStatus.setMargin(new java.awt.Insets(2, 2, 2, 2));
|
||||||
btnCheckStatus.setPreferredSize(new java.awt.Dimension(23, 23));
|
btnCheckStatus.setPreferredSize(new java.awt.Dimension(23, 23));
|
||||||
btnCheckStatus.addActionListener(new java.awt.event.ActionListener() {
|
btnCheckStatus.addActionListener(new java.awt.event.ActionListener() {
|
||||||
|
|
Loading…
Reference in a new issue