News:

Welcome to World of Banished!

Main Menu

Expanding UI window size?

Started by angainor88, February 12, 2018, 04:14:06 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

angainor88

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?

Tom Sawyer

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.

RedKetchup

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
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

angainor88

Ah, thank you! I finally got it to work after fiddling a bit :D