MoI discussion forum
MoI discussion forum

Full Version: Further UI tweaking

From: 777RAVEN777
29 Oct   [#1]
So I've installed Max's CustomUI in v4 & it's working great. Some of you have been able to change the icons (Object Library, Scripts, Lighting etc) to suit your own UI layout.

If I wanted to simply change their colour, where would I find them? There doesn't appear to be an 'Icons' folder for the custom ui

(using Windows 11 btw)
From: Michael Gibson
29 Oct   [#2] In reply to [#1]
Hi Raven, the bitmaps are embedded inside the .js files in the startup folder.

So for example the ObjLibrary button gets created from the file "70 ObjLibrary.js" inside appdata\startup.

If you open that in a text editor on line #4 there is this:
var icon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA<...truncated...>

That's the image data which has been encoded as text using base64 encoding.

You can change that to make it use a .png file instead, like this:

var icon = "moi://appdata/customui/icons/ObjLibrary.png";

That should then make it look for an image ObjLibrary.png inside appdata\customui\icons

- Michael
From: 777RAVEN777
29 Oct   [#3] In reply to [#2]
Yes indeedy - worked like a charm - thank you Sir!