Flags.wiki
author Wuzzy
Wed, 08 Jul 2020 18:29:47 +0200
changeset 2173 ad42ab030bd8
parent 2149 a2cca289fa2c
child 2174 65562a61557a
permissions -rw-r--r--
TODO: update resurrect
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
443
e57556142fe5 Small fixes.
almikes@aol.com
parents: 442
diff changeset
     1
#summary A short guide explaing flags and how to create and use them
442
594f4950203b Add short flag guide
almikes@aol.com
parents:
diff changeset
     2
594f4950203b Add short flag guide
almikes@aol.com
parents:
diff changeset
     3
= Flags =
798
30c5f1ebd552 global replace of http with https for hedgewars.org wiki links
nemo
parents: 718
diff changeset
     4
https://www.hedgewars.org/images/flags.png
442
594f4950203b Add short flag guide
almikes@aol.com
parents:
diff changeset
     5
== Explanation of flags ==
2137
17e6bcae3ce2 Flags: Add newlines
Wuzzy
parents: 828
diff changeset
     6
442
594f4950203b Add short flag guide
almikes@aol.com
parents:
diff changeset
     7
Flags are little rectangular images shown in the team bar as a team’s symbol.
594f4950203b Add short flag guide
almikes@aol.com
parents:
diff changeset
     8
594f4950203b Add short flag guide
almikes@aol.com
parents:
diff changeset
     9
== Creating flags ==
828
a639d338d92f Flags: RGBA clarification
Wuzzy
parents: 798
diff changeset
    10
To create a flag, draw a PNG image (RGBA mode, but all pixels should be opaque) of size 22×15 pixels.
442
594f4950203b Add short flag guide
almikes@aol.com
parents:
diff changeset
    11
594f4950203b Add short flag guide
almikes@aol.com
parents:
diff changeset
    12
To install a flag, put it into `Data/Graphics/Flags` of the Hedgewars data directory.
594f4950203b Add short flag guide
almikes@aol.com
parents:
diff changeset
    13
445
97c1cc234b67 typo fix
almikes@aol.com
parents: 443
diff changeset
    14
The file name must have “.png” at the end, the file suffix will not be shown in Hedgewars. Depending on the name, the flag will be displayed in different ways in Hedgewars:
442
594f4950203b Add short flag guide
almikes@aol.com
parents:
diff changeset
    15
467
2bd1e3449143 Add cpu.png and cpu_plain.png
almikes@aol.com
parents: 449
diff changeset
    16
 * Default flag: The flag “`hedgewars.png`” (shows a hedgehog), flag of new teams.
2bd1e3449143 Add cpu.png and cpu_plain.png
almikes@aol.com
parents: 449
diff changeset
    17
 * Computer flag: The flag “`cpu.png`”. It is shown for computer-controlled teams in place of the selected flag in the team editor, together with an overlay of 1 to 5 bars designating the strength of the team. This flag is not shown in the team editor.
2bd1e3449143 Add cpu.png and cpu_plain.png
almikes@aol.com
parents: 449
diff changeset
    18
 * The flag “`cpu_plain.png`”. It is currently unused by Hedgewars and is not shown in the team editor.
442
594f4950203b Add short flag guide
almikes@aol.com
parents:
diff changeset
    19
 * Community flags: The flags whose file name starts with “`cm_`” are listed as “community flags” in Hedgewars (the prefix is removed)
594f4950203b Add short flag guide
almikes@aol.com
parents:
diff changeset
    20
 * National flags: All other flags
594f4950203b Add short flag guide
almikes@aol.com
parents:
diff changeset
    21
468
f4ebe0c62d97 Information about overwriting.
almikes@aol.com
parents: 467
diff changeset
    22
Please note that the flags “`hedgewars.png`”, “`cpu.png`”, “`cpu_plain.png`”, a couple of community flags and national flags come pre-installed with Hedgewars. If you use a flag of an identical name in your Hedgewars user data directory, Hedgewars will show that one instead of the system-wide installed flag. That way, you can customize the default flag, for example.
f4ebe0c62d97 Information about overwriting.
almikes@aol.com
parents: 467
diff changeset
    23
653
f2ddb7d2de00 Info about flag display
Wuzzy
parents: 469
diff changeset
    24
== Flag display ==
f2ddb7d2de00 Info about flag display
Wuzzy
parents: 469
diff changeset
    25
Flags are *not* exactly displayed as the original image. In the game, the 4 pixels in each corner of the flag will always be “hidden” for the “round corner” effect. This is a very minor effect but might be important to remember.
f2ddb7d2de00 Info about flag display
Wuzzy
parents: 469
diff changeset
    26
f2ddb7d2de00 Info about flag display
Wuzzy
parents: 469
diff changeset
    27
Only in the team editing menu the flags are displayed with all pixels.
f2ddb7d2de00 Info about flag display
Wuzzy
parents: 469
diff changeset
    28
2149
a2cca289fa2c Flags: Official flags
Wuzzy
parents: 2137
diff changeset
    29
== Official flags ==
a2cca289fa2c Flags: Official flags
Wuzzy
parents: 2137
diff changeset
    30
A list of official flags can be seen [https://hg.hedgewars.org/hedgewars/raw-file/tip/misc/flags_js.xhtml here].
a2cca289fa2c Flags: Official flags
Wuzzy
parents: 2137
diff changeset
    31
661
8483a8174309 Sharing flags
Wuzzy
parents: 654
diff changeset
    32
== Sharing flags ==
718
e4e1597f6b84 New Page: ContributingCode
sheepluva
parents: 661
diff changeset
    33
Custom flags (flags which are not part of the official Hedgewars installation) are only visible to other players if they have the flag installed under the same file name.
661
8483a8174309 Sharing flags
Wuzzy
parents: 654
diff changeset
    34
8483a8174309 Sharing flags
Wuzzy
parents: 654
diff changeset
    35
In case the other player does not have the custom flag installed, the player will see the default `hedgewars.png` flag instead.
8483a8174309 Sharing flags
Wuzzy
parents: 654
diff changeset
    36
2137
17e6bcae3ce2 Flags: Add newlines
Wuzzy
parents: 828
diff changeset
    37
You are encouraged to share your flags in the thread “[https://www.hedgewars.org/node/1898 Flags! additions, submissions, information.]”, where submissions are being considered for official inclusion into Hedgewars.