We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.
You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
making the right UI elements stay or disappear at a far distance
simplifying the zoomed-out unit counter to just the flag
The first part happens in common/defines/00_graphics.lua, section NGraphics:
UNITS_ICONS_DISTANCE_CUTOFF = 900,
MAP_ICONS_GROUP_CAM_DISTANCE = 90.0, -- camera distance at which the icons begin to group up
MAP_ICONS_STATE_GROUP_CAM_DISTANCE = 180.0, -- Camera distance at which the icons begin to group up on state level
MAP_ICONS_STRATEGIC_GROUP_CAM_DISTANCE = 350, -- second camera distance at which the icons begin to group up
Raising all of these cutoffs to the maximum camera distance (3000) makes the map look like this:
There are also various other cutoffs in the same section, e.g. to make airports and task forces disappear earlier etc.
The second part happens in interface/mapicons.gui, the very first containerWindowType called unit_counter. The most important element is "large_flag", which needs to be scaled down a bit so the flags don't overlap at the desired zoom level. The counter elements appearing to the right of the flag need to be removed. I changed the containerWindowType to this:
Code:
containerWindowType = {
name = "unit_counter"
position = { x=0 y=-24 }
size = { width = 29 height = 24 }
clipping = no
iconType = {
name = "counter_ideology"
spriteType = "GFX_onmap_unit_counter_ideology"
position = { x=37 y=0 }
alwaystransparent = yes
}
iconType = {
name = "counter_overlay"
spriteType = "GFX_onmap_unit_counter_overlay"
position = { x=3 y=3 }
alwaystransparent = yes
}
iconType = {
name = "count_selected"
spriteType = "GFX_onmap_unit_counter_selected"
position = { x=0 y=0 }
alwaystransparent = yes
}
iconType ={
name ="type"
spriteType = "GFX_tiled_window_transparent"
position = { x=3 y=3 }
alwaystransparent = yes
}
iconType = {
name = "bar_org"
spriteType = "GFX_mapicon_unit_bar_org"
position = { x=14 y=8 }
alwaystransparent = yes
rotation = 1.5708
}
iconType = {
name = "bar_str"
spriteType = "GFX_mapicon_unit_bar_str"
position = { x=14 y=12 }
alwaystransparent = yes
rotation = 1.5708
}
iconType = {
name = "flag"
spriteType = "GFX_mapicon_unit_flag_stripe"
position = { x=5 y=15 }
Orientation = "UPPER_LEFT"
alwaystransparent = yes
}
iconType = {
name = "large_flag"
spriteType = "GFX_mapicon_unit_large_flag_stripe"
position = { x = 10 y = 9 }
alwaystransparent = yes
scale = 0.35
}
}
Making the map look like this:
If anyone wants to turn it into a mod, go for it.