Portrait modding: Difference between revisions

本页面所适用的版本可能已经过时,最后更新于1.5
No edit summary
No edit summary
 
Line 1: Line 1:
{{version|1.5}}
{{version|1.5}}
{{需要翻译|译者=霜泽图书馆}}
{{需要翻译|译者=霜泽图书馆}}
Portraits used by random country leaders and military leaders are specified in {{path|portraits}}. It is necessary to specify the files in /Hearts of Iron IV/interface/_random_portraits.gfx, otherwise the game will not display the images.
随机国家领导者和军事指挥官使用的头像在{{path|portraits}} 中指定。需要在{{path: /Hearts of Iron IV/interface/_random_portraits.gfx}}中指定文件,否则游戏将不会显示图像。


= Portraits =
= Portraits =
{{SVersion|1.5}}
{{SVersion|1.5}}


Portraits are used to assign a pool of images to specific groups of countries, or a specific country that will then be used when the player generates a military leader or through an effect their country leader or military leader is replaced.
头像用于为特定国家或国家组分配一组图像,当玩家生成军事指挥官或通过某个效果替换国家领导者或军事指挥官时这些图像将被使用。


It follows this format:
它遵循以下格式:


<pre>
<pre>
Line 23: Line 23:
</pre>
</pre>


'''default''' is the fallback portraits used when no other definition matches the current scope.
'''default''' 是在没有其他定义匹配当前作用域时使用的后备头像。


'''continent''' defines the portraits per continent, meaning they apply to any nation with their capital in the specified continent.
'''continent''' 定义每个大陆的头像,这意味着它们适用于首都位于指定大陆的任何国家。
'''tag''' 定义了指定国家标签的头像,如果也匹配 '''continent'''定义,则会覆盖 '''continent'''定义。


'''tag''' defines the portraits for the specified tag, overriding the '''continent''' definition if it also matches one.
实际的头像定义如下:
 
The actual portrait definitions are as follows:


<pre>
<pre>
Line 67: Line 66:
</pre>
</pre>


Multiple paths can be used to add a pool of portraits to each definition.
可以使用多个路径为每个定义添加一组头像。


The top '''male''' and '''female''' paths may be used for any type of leader.
顶部 '''male''' '''female''' 路径可用于任何类型的指挥官/领导者(国家)。


The '''army''' paths are used for Field Marshals and Corps Commanders.
'''army''' 路径用于元帅和军队指挥官(将领)。


The '''navy''' paths are used for Naval Commanders.
'''navy''' 路径用于海军指挥官(将领)。


The '''political''' paths are used for country leaders of the specified ideologies.
'''political''' 路径用于指定意识形态的国家领导者。


{{Modding navbox}}
{{Modding navbox}}
[[Category:Modding]]
[[Category:Modding]]

Latest revision as of 20:10, 4 February 2025

随机国家领导者和军事指挥官使用的头像在/Hearts of Iron IV/portraits中指定。需要在Template:Path: /Hearts of Iron IV/interface/ random portraits.gfx中指定文件,否则游戏将不会显示图像。

Portraits

头像用于为特定国家或国家组分配一组图像,当玩家生成军事指挥官或通过某个效果替换国家领导者或军事指挥官时这些图像将被使用。

它遵循以下格式:

default = {
    # ...
}
continent = {
    name = <continent>
    # ...
}
<tag> = {
    # ...
}

default是在没有其他定义匹配当前作用域时使用的后备头像。

continent 定义每个大陆的头像,这意味着它们适用于首都位于指定大陆的任何国家。 tag 定义了指定国家标签的头像,如果也匹配 continent定义,则会覆盖 continent定义。

实际的头像定义如下:

male = {
    <path>
}
female = {
    <path>
}
    
army = {
    male = {
        <path>
    }
    female = {
        <path>
    }
}
navy = {
    male = {
        <path>
    }
    female = {
        <path>
    }
}
political = {
    <ideology> = {
        male = {
            <path>
        }
        female = {
            <path>
        }
    }
}

可以使用多个路径为每个定义添加一组头像。

顶部 malefemale 路径可用于任何类型的指挥官/领导者(国家)。

army 路径用于元帅和军队指挥官(将领)。

navy路径用于海军指挥官(将领)。

political 路径用于指定意识形态的国家领导者。