World of Banished

MODS Garage => Tips and Help => Topic started by: angainor88 on February 12, 2018, 04:14:06 PM

Title: Expanding UI window size?
Post by: angainor88 on February 12, 2018, 04:14:06 PM
So I've almost finished my Cape Town Bar, but I have one problem. The window that pops up when I click on the bar is too small (see attached picture). How do I make it bigger so that it fits all the text?
Title: Re: Expanding UI window size?
Post by: Tom Sawyer on February 12, 2018, 04:52:25 PM
I your case it's probably the best solution to extend the width of storage items in dialog/storage.rsc:

RibbonDescription storageItem
{
   ElementDescription _border = "SharedElements.rsc:flatButtonEnabledBorder";
   int _minWidth = 104;
..

If you want to change only the ui of your building you can make a copy of the original and link in your template to this file.
Title: Re: Expanding UI window size?
Post by: RedKetchup on February 12, 2018, 05:13:14 PM
or you can add a group empty controler to your UI ... .as 1st controller of your UI Controllers list

      { ElementDescription _element = "groupEmpty"; String _insertAt = "userGroup0"; }

and at the end of you template define the groupEmpty size as :

GroupDescription groupEmpty
{
   int _minWidth = 287;
   int _minHeight = 64;
}



but i admit it doesnt work with ALL the UI type, but most of them
Title: Re: Expanding UI window size?
Post by: angainor88 on February 14, 2018, 05:50:48 AM
Ah, thank you! I finally got it to work after fiddling a bit :D