PDA

View Full Version : Minimap is being doubled instead of replaced on merge


Cockbite
07-19-2018, 01:23 AM
I'm trying to make the minimap bigger by editing the game.mnu using the mergeWith command. What am I doing wrong here? Do I need to include the entire game.mnu in the mod instead of merging?

This is the code I have in ../UI/_LargerMinimap.mnu. The three lines that were changed have the original values commented out for reference.

mergeWith Game

// Minimap

Widget
{
position 595.0 115.0 // 592.0 4.0
offset -50.0 0.0
size 100.0 10.0
font SmallDefault
textSource AreaName
textAlignment center
draworder 3
showCondition MiniMapOn
blocksMouse 0
PartiallyIgnoreWidescreenCenter 1
highlightTextSource AreaName Text "\n\n$$AvailableQuestsIn$$ " AreaNameNoKey Text ":\n" AvailableQuestsOnLevel
}

Widget
{
position 599.0 71.0
offset -62.5 -71.5 // -50.0 -50.0
size 115.0 115.0 // 87.0 87.0
texture Textures/UI/minimap/minimap_border.tga
draworder -2
showCondition MiniMapOn
blocksMouse 0
color "1 .9 .8"
PartiallyIgnoreWidescreenCenter 1
}

This is the result. My bigger minimap is appearing behind the original instead of replacing it. I tried changing the name of my menu to make sure it was loaded last, but it had no effect.

https://s8.postimg.cc/vvlthbd7p/double_map.png

Shadow
07-19-2018, 05:50 PM
mergeWith basically just adds widgets to the menu in question, so in this case you would want to replace the entire menu.

Cockbite
07-19-2018, 07:06 PM
Okay. Thanks, Shadow.