v4 UI Customization

 From:  Michael Gibson
9157.2 In reply to 9157.1 
Hi nate,

re:
> 1. Where can I modify (or disable?) the appearance of the viewport margins? (see screen)

That's one of the few remaining pieces that is still coming from a bitmap source - you need to modify the image ViewportForeground.png in the ui folder to control that, keep the modified image the same size (33x33) as the original.


> 2. Is it possible to set the Browser tabs to be open by default on launch?

It's possible in v4 by using a startup script. Make a text file like "InitSceneBrowser.js" inside of MoI's appdata/startup folder. The appdata folder will be where moi.ini is also stored, you can find that by using Options > General > "Edit .ini path" - that will put up a dialog showing you the path to moi.ini .

Then for the .js file contents put this:
code:
var items = moi.ui.sceneBrowser.rootItems;
for ( var i = 0; i < items.length; ++i )
    items[i].expanded = true; 

- Michael