News

Modding UI

Posted on Sunday, December 20, 2015

Hello everyone. i like this game but UI is too big as in all new games. Many times scaling is wrong (like Europa universalis 4 where on full hd ui is too small, on smaller resolution ui take too much space) i try to change that and have some success.

I make mod with file FontSizes and i actually make font smaller (finally many texts don't go over boxes.). http://puu.sh/m2z6E/92d9d9b43f.jpg

I just change values in small set but when i change UI multiplier in file UISizeDefs i have strange behavior from game (value change from 1.0 to 0.8) http://puu.sh/m2z7n/e49706caa3.jpg . Many popups have this strange background but some boxes behave normally. (like information why multiplayer is disable by mods). What files do i need to look to change coordinates or what file do i need to scale down ?

Another my question is how to add just another option to the list (small,medium,etc.). I open UISizeDefs and just add :

  <UISize>
    <Size>Laptop</Size>
    <Multiplier>1.0</Multiplier>
    <MinimumDisplayWidth>1024</MinimumDisplayWidth>
    <MinimumDisplayHeight>768</MinimumDisplayHeight>
  </UISize>

 

and in FontSizes for example :

  <FontSize>
    <Size>Tiny</Size>
    <Height>10</Height>
    <UISize>Laptop</UISize>
    <InlineImageHeight>14</InlineImageHeight>
  </FontSize>

 When i load, game don't recognize "Laptop". Is there any more files when i declare new option ?

 

Btw this is normal small setting:

http://puu.sh/m2z2b/33541849ba.jpg

and now is my previous attempt:

http://puu.sh/m2z7n/e49706caa3.jpg

This would change overall comfort of play. I could lower need for constant zooming.