Changes the coloring scheme of settlement nameplates from displaying your relation status(neutral, enemy, ally) to faction color.
Permissions and credits
Author's instructions
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.
In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
For more information, please refer to <https://unlicense.org>
File credits
This author has not credited anyone else in this file
Donation Points system
This mod is opted-in to receive Donation Points
Changelogs
Version 0.1.2
Removed unused parts of the code and unsued includes
Added matching xmls tags back to SubModule.xml, might fix issues with crash at starting the game. Looks like the game doesn't like if any tag is omitted, used or unused.
Version 0.1.1
Removed unused parts in the SubModule.xml
Possible fixed crash I think where some sort of error is triggerd when a xml file have an opening tag but no matching closing tag, suspect this has something to do with how the game behaves with non-english localisation but really don't know
Version 0.1
Changes nameplate colors of settlement to factions base color. Using Harmony to Prefix SettlementNameplateWidget.SetNameplateRelationType(int type) and SettlementNameplateVM.RefreshRelationStatus()
Nameplates.xml modified by adding new style layers to the settlement nameplate brushes, not compatible with other mods directly modifying this file.
In Bannerlord the names of settlement are no longer color coded to the faction, like in Warband. TWs solution to faction identification is that all banners of the fation follow the same two color colorscheme(red and gold for Vlandia) which is very slick and good looking and really makes the faction seem unified, I can't deny that it looks super cool. But this limits banner design somewhat and I liked that the banners in Warband had some more individuality with their many colors and patterns/symbols. The mod Custom Banners and Uniforms Color Pack "warband"-ifies the banners in Bannerlord, but it creates a new problem: the fact that it is now hard to see what settlements belong to which specific faction since settlement nameplates display your relation to the faction owner(Neutral, Enemy, Ally) but not what actual faction it is. So this simple and extremely poorly made mod shoehorns in the base color of the faction as the background on the nameplates. Not much else really. This mod has no options and is hardcoded to fit the current setup of factions, and if the settlement isn't owned by any of the 8 main factions the mod will default back to the vanilla code with Neutral, Enemy, Ally so it shouldn't break anything. This mod is save game safe, and can be added or removed anytime.
It would be cool to make it dynamic and adding style layers to the brushes on the fly to accomodate created and added/modded in factions colors but so far I haven't figured out a good way of doing it or adding properties to VMs/widgets for that matter which makes it somewhat harder. Don't hold your breath thinking I will fix anything or add anything to this mod.
If anyone wants to develop this further you have my permission to do so(under the Unlicense if you're interested), I don't mind but a spot in the credits would be nice :)