Merge branch 'cleanlayout' into 'master'

Deskop layout: remove obsolete elements

See merge request core-developers/forge!4167
This commit is contained in:
Michael Kamensky
2021-03-12 04:17:50 +00:00
2 changed files with 1 additions and 32 deletions

View File

@@ -79,11 +79,6 @@ public enum EDocID {
REPORT_COMBAT (), REPORT_COMBAT (),
REPORT_LOG (), REPORT_LOG (),
// Player panel, deprecated, to be removed in a few months
// from now (2015-04-10) to allow users' match layouts to update
@Deprecated
REPORT_PLAYERS (),
DEV_MODE (), DEV_MODE (),
BUTTON_DOCK (), BUTTON_DOCK (),
@@ -105,36 +100,13 @@ public enum EDocID {
HAND_4 (), HAND_4 (),
HAND_5 (), HAND_5 (),
HAND_6 (), HAND_6 (),
HAND_7 (), HAND_7 ();
// Command zones, deprecated, to be removed in a few months
// from now (2015-04-10) to allow users' match layouts to update
@Deprecated
COMMAND_0 (),
@Deprecated
COMMAND_1 (),
@Deprecated
COMMAND_2 (),
@Deprecated
COMMAND_3 (),
@Deprecated
COMMAND_4 (),
@Deprecated
COMMAND_5 (),
@Deprecated
COMMAND_6 (),
@Deprecated
COMMAND_7 ();
public final static EDocID[] Fields = new EDocID[] {FIELD_0, FIELD_1, FIELD_2, FIELD_3, FIELD_4, FIELD_5, FIELD_6, FIELD_7}; public final static EDocID[] Fields = new EDocID[] {FIELD_0, FIELD_1, FIELD_2, FIELD_3, FIELD_4, FIELD_5, FIELD_6, FIELD_7};
public final static EDocID[] Hands = new EDocID[] {HAND_0, HAND_1, HAND_2, HAND_3, HAND_4, HAND_5, HAND_6, HAND_7}; public final static EDocID[] Hands = new EDocID[] {HAND_0, HAND_1, HAND_2, HAND_3, HAND_4, HAND_5, HAND_6, HAND_7};
static { static {
for (int i = 0; i < 8; i++) EDocID.Fields[i].setDoc(new VEmptyDoc(EDocID.Fields[i])); for (int i = 0; i < 8; i++) EDocID.Fields[i].setDoc(new VEmptyDoc(EDocID.Fields[i]));
for (int i = 0; i < 8; i++) EDocID.Hands[i].setDoc(new VEmptyDoc(EDocID.Hands[i])); for (int i = 0; i < 8; i++) EDocID.Hands[i].setDoc(new VEmptyDoc(EDocID.Hands[i]));
for (final EDocID deprecated : new EDocID[] {REPORT_PLAYERS, COMMAND_0, COMMAND_1, COMMAND_2, COMMAND_3, COMMAND_4, COMMAND_5, COMMAND_6, COMMAND_7}) {
deprecated.setDoc(new VEmptyDoc(deprecated));
}
} }
public final static EDocID[] VarDocs = ObjectArrays.concat(Fields, Hands, EDocID.class); public final static EDocID[] VarDocs = ObjectArrays.concat(Fields, Hands, EDocID.class);

View File

@@ -4,7 +4,6 @@
<doc>REPORT_STACK</doc> <doc>REPORT_STACK</doc>
<doc>REPORT_COMBAT</doc> <doc>REPORT_COMBAT</doc>
<doc>REPORT_LOG</doc> <doc>REPORT_LOG</doc>
<doc>REPORT_PLAYERS</doc>
</cell> </cell>
<cell x="0.0" y="0.643" w="0.2" h="0.357"> <cell x="0.0" y="0.643" w="0.2" h="0.357">
<doc>REPORT_MESSAGE</doc> <doc>REPORT_MESSAGE</doc>
@@ -14,7 +13,6 @@
</cell> </cell>
<cell x="0.2" y="0.0" w="0.6" h="0.364"> <cell x="0.2" y="0.0" w="0.6" h="0.364">
<doc>FIELD_1</doc> <doc>FIELD_1</doc>
<doc>COMMAND_1</doc>
</cell> </cell>
<cell x="0.2" y="0.732" w="0.6" h="0.268"> <cell x="0.2" y="0.732" w="0.6" h="0.268">
<doc>HAND_0</doc> <doc>HAND_0</doc>
@@ -24,7 +22,6 @@
</cell> </cell>
<cell x="0.2" y="0.364" w="0.6" h="0.368"> <cell x="0.2" y="0.364" w="0.6" h="0.368">
<doc>FIELD_0</doc> <doc>FIELD_0</doc>
<doc>COMMAND_0</doc>
</cell> </cell>
<cell x="0.8" y="0.466" w="0.2" h="0.534"> <cell x="0.8" y="0.466" w="0.2" h="0.534">
<doc>CARD_PICTURE</doc> <doc>CARD_PICTURE</doc>