World of Banished

MODS Garage => Mod Discussions 107 => Topic started by: Snacko on January 01, 2018, 02:02:02 PM

Title: Is there any mod that will let me move the main toolbar?
Post by: Snacko on January 01, 2018, 02:02:02 PM
I have a triple screen setup and the toolbar is way over on the bottom/right.  If it is possible, I would like to move it closer to the center.

I looked through the List of mods and even did a text search but didnt' see anything that might help.

Thanks,
Snacko
Title: Re: Is there any mod that will let me move the main toolbar?
Post by: RedKetchup on January 01, 2018, 02:20:22 PM
we cannot move it , nor we cannot setup a new toolbar. thats an integrated and invisible part of the game which we dont have access.  :(
Title: Re: Is there any mod that will let me move the main toolbar?
Post by: Snacko on January 01, 2018, 04:17:47 PM
Darn, that's too bad.

Thanks for the reply though..  :-\
Title: Re: Is there any mod that will let me move the main toolbar?
Post by: Discrepancy on January 01, 2018, 08:44:54 PM
Might be in luck...
I know I can alter it to be on the bottom left of the screen. I will try after work to make it sit in the middle.
Title: Re: Is there any mod that will let me move the main toolbar?
Post by: Discrepancy on January 01, 2018, 11:06:14 PM
Luke obviously used the toolbar to hide a glitch, part of the death notifications.

(https://i.imgur.com/rCubsPp.jpg)
Title: Re: Is there any mod that will let me move the main toolbar?
Post by: RedKetchup on January 02, 2018, 12:21:21 AM
wow you found something somewhere ? i  thought it was hidden somewhere.
Title: Re: Is there any mod that will let me move the main toolbar?
Post by: Maldrick on January 02, 2018, 01:48:27 AM
DSVoodoo:p
Title: Re: Is there any mod that will let me move the main toolbar?
Post by: Discrepancy on January 02, 2018, 02:18:25 AM
still struggling. for some reason the 2nd level toolbar buttons are always further away to the left, some longer ones will go out of screen (on my monitor):
(https://i.imgur.com/IOlMs9g.jpg)
Title: Re: Is there any mod that will let me move the main toolbar?
Post by: Tom Sawyer on January 02, 2018, 02:34:24 AM
That's because all sub toolbars follow the "bottomCenter" property as well. The game seems to calculate it from the position of the parent button to the left of the screen and puts it in center. BottomLeft works better. How made you disappear this death toolbar and is it still working when a citizen dies? Cannot find it in the UI codes.
Title: Re: Is there any mod that will let me move the main toolbar?
Post by: Snacko on January 02, 2018, 06:36:00 AM
Thanks for taking a look into this guys.  Really appreciate it.  My res is 5760 x 1080 and this mod would be great.

Do you think the sub-toolbars position as a percentage of the main toolbar from the right?  The more you move the main toolbar, the more the sub-toolbars move?  Even just moving it 1/3 from the right would help.

Here's what my screen looks like now:
(https://i.imgur.com/7WcRIJa.jpg)

(https://i.imgur.com/hayQUMn.jpg)
Title: Re: Is there any mod that will let me move the main toolbar?
Post by: Discrepancy on January 03, 2018, 01:47:18 AM
Quote from: Tom Sawyer on January 02, 2018, 02:34:24 AM
That's because all sub toolbars follow the "bottomCenter" property as well. The game seems to calculate it from the position of the parent button to the left of the screen and puts it in center. BottomLeft works better. How made you disappear this death toolbar and is it still working when a citizen dies? Cannot find it in the UI codes.

The death toolbar is easy too.
Only 2 edits to achieve what this mod does:

puts the game toolbar in middle of screen.
Dialog/ToolBar.rsc:main
RibbonDescription main
{
Alignment _alignment = BottomCenter; //was BottomRight
bool _vertical = true;
ElementDescription _elements
[
"toolBar"
]
}


moves the notifications to middle of screen
Dialog/EventNotify.rsc:content
GroupDescription content
{
Alignment _alignment = BottomCenter; //was BottomRight
int _rightPad = 0;
ElementDescription _elements
[
"ribbonNotify"
]
}


notifications seem to work okay:
(https://i.imgur.com/LByHozx.jpg)

I have not had a chance to play much more with it so have packaged it into a beta version 01, download below. (the mod will not have an icon but a black square when loaded)

But a warning! only for higher resolutions.
I myself cannot use it and parts of menus go out of view (my resolution is 1920x1080)
Title: Re: Is there any mod that will let me move the main toolbar?
Post by: Tom Sawyer on January 03, 2018, 05:27:45 AM
Ah, its EventNotify.. Now the sub toolbars need to be tamed. But so far I see no way to bring them to center. They probably will spread over his left screen. I found the idea quite nice, reminded me of other games.
Title: Re: Is there any mod that will let me move the main toolbar?
Post by: Snacko on January 03, 2018, 06:24:14 AM
Thanks.  That is much better than before.  Much easier to use.  If you cannot get those sub-toolbars nearer to the center this is still better. 

Thanks.   ;D ;D ;D

(https://i.imgur.com/7QzYL1P.jpg)