[portrait] What on earth is this?

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
User avatar
Atreides
Posts: 281
Joined: March 30th, 2019, 10:38 pm
Location: The North Pole

[portrait] What on earth is this?

Post by Atreides »

I can't find any info on this. I counted a few hundred in my installed add-ons and am really curious what this is. Or most likely was. From what little I could learn it seems to be intended for the same purpose as the profile= key. When tested on a unit with profile= disabled [portrait] did not display anything on a dialogue box like profile does. Does it actually still do something?
--
Any typos are the fault of my laptop keyboard!
Lonely Era Merry Christmas Campaign Red MP Maps
User avatar
Lord-Knightmare
Discord Moderator
Posts: 1442
Joined: May 24th, 2010, 5:26 pm
Location: Somewhere in the depths of Irdya, gathering my army to eventually destroy the known world.
Contact:

Re: [portrait] What on earth is this?

Post by Lord-Knightmare »

Atreides wrote: April 17th, 2021, 5:03 am I can't find any info on this. I counted a few hundred in my installed add-ons and am really curious what this is. Or most likely was. From what little I could learn it seems to be intended for the same purpose as the profile= key. When tested on a unit with profile= disabled [portrait] did not display anything on a dialogue box like profile does. Does it actually still do something?
AFAIK, the [portrait] tag does not do anything. Removed/obsolete code maybe.
User avatar
WhiteWolf
Forum Moderator
Posts: 742
Joined: September 22nd, 2009, 7:48 pm
Location: Hungary

Re: [portrait] What on earth is this?

Post by WhiteWolf »

As far as I remember it was used to set some properties like "always on the right" in case of a few select units, and things like that. These seem to be done by IPF now, probably that's why the tag got deprecated somewhere.
Author of the Underness Series, consisting of 5 parts: The Desolation of Karlag, The Blind Sentinel, The Stone of the North, The Invasion Of The Western Cavalry, Fingerbone of Destiny
Standalone works: The Ravagers - now for 1.14, with new bugs!
User avatar
Atreides
Posts: 281
Joined: March 30th, 2019, 10:38 pm
Location: The North Pole

Re: [portrait] What on earth is this?

Post by Atreides »

Update: found this on the forums from 2017 by Iris
[portrait] tags (which are gone in 1.13.x and were never intended to be used by the general public in the first place)
I guess it is safe to remove them from 1.14 add-ons then.
--
Any typos are the fault of my laptop keyboard!
Lonely Era Merry Christmas Campaign Red MP Maps
Post Reply