Author Topic: Expanding UI window size?  (Read 565 times)

0 Members and 1 Guest are viewing this topic.

Offline angainor88

  • Trader
  • ****
  • Posts: 100
  • Country: us
Expanding UI window size?
« 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?

Offline Tom Sawyer

  • Modders
  • Architect
  • *****
  • Posts: 894
  • Country: is
Re: Expanding UI window size?
« Reply #1 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.

Offline RedKetchup

  • Champion
  • Banished Expert
  • *****
  • Posts: 9613
  • Country: ca
Re: Expanding UI window size?
« Reply #2 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
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

Offline angainor88

  • Trader
  • ****
  • Posts: 100
  • Country: us
Re: Expanding UI window size?
« Reply #3 on: February 14, 2018, 05:50:48 AM »
Ah, thank you! I finally got it to work after fiddling a bit :D