Hide village owner flags?

The place to post your WML questions and answers.

Moderator: Forum Moderators

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Post Reply
kurt751
Posts: 232
Joined: June 4th, 2016, 11:17 pm

Hide village owner flags?

Post by kurt751 »

I'm hiding villages (using the overlay) but that leaves a silly flagpole with the flag. Is there a way to tell the game to not display village flags for a given side? I've found explanations on how to change and customize flags, but none on removing them altogether.
User avatar
Ravana
Forum Moderator
Posts: 3002
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Hide village owner flags?

Post by Ravana »

Why not just change the flag to something invisible then.
kurt751
Posts: 232
Joined: June 4th, 2016, 11:17 pm

Re: Hide village owner flags?

Post by kurt751 »

Can I do that, just use a totally-transparent image?
Won't the team-coloring engine complain the flag picture doesn't fit the specifications?
User avatar
ForestDragon
Posts: 1771
Joined: March 6th, 2014, 1:32 pm
Location: Ukraine

Re: Hide village owner flags?

Post by ForestDragon »

kurt751 wrote:Can I do that, just use a totally-transparent image?
Won't the team-coloring engine complain the flag picture doesn't fit the specifications?
use 'flag=misc/blank-hex.png' or something like that
My active add-ons: The Great Steppe Era,XP Bank,Alliances Mod,Pestilence,GSE+EoMa,Ogre Crusaders,Battle Royale,EoMaifier,Steppeifier,Hardcoreifier
My inactive add-ons (1.12): Tale of Alan, The Golden Age
Co-creator of Era of Magic
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: Hide village owner flags?

Post by zookeeper »

kurt751 wrote:Can I do that, just use a totally-transparent image?
Won't the team-coloring engine complain the flag picture doesn't fit the specifications?
There's nothing for it to complain about. There's no reason to put in an arbitrary limitation where the image must have at least one pixel with TC color, so there isn't one. If the image is completely transparent then it will simply remain that way.
kurt751
Posts: 232
Joined: June 4th, 2016, 11:17 pm

Re: Hide village owner flags?

Post by kurt751 »

Okay, thank you guys.
Post Reply