MoI discussion forum
MoI discussion forum

Full Version: MoI GUI Builder released for Mac and PC!

Show messages:  1-20  21-40  41-60  61-80  …  101-102

From: chippwalters
8 Feb 2015   [#1]
Hello fellow MoI users. Today, I'm releasing the first version of MoI GUI Builder (MGB).

MGB is a WYIWYG interface for editing the colors and borders of MoI's interface and saving them to the moi.css config file automatically. You need zero understanding of how CSS or moi.css works to use this app. It can also save it's own GUI(Graphic User Interface) files in case you want to share them or edit them later.

It's free to use. Let me know in this thread if there are any issues you come upon or features you'd like to see added.

REMEMBER: Always backup your copy of MoI. I have not seen any issues, and there is a feature to return to 'factory new' moi.css. Even though, I would still recommend backing up!

Here's a quick rundown on how things work:



  1. Always Check for updates! This is the first thing you should do should you encounter any problems. FWIW, the downloaded version won't work with the new MoI 3.1 UNLESS you check for updates!
  2. Start by setting the correct filepath to the moi.css. For Mac users you will click the button "MoI v3.app filepath" and for PC users please click the button: moi.css filepath
  3. Reset moi.css resets your moi.css file to the factory original for Moi3D v3
  4. Reset All resets all the individual parts of MGB to their default settings.
  5. Save and Load Template will save and load the current MGB template settings. This way you can share and modify multiple existing GUIs.
  6. Save moi.css automatially saves the current settings into the designated moi.css file. Then you launch the MoI v3 app to view the changes.
  7. Backdrop sets the MGB background to a color which can help in designing the interface for a particular desktop.
  8. Set Global Text Color sets the global text color for the MoI interface.
  9. Control name of the selected element; loosely based on the CSS selector.
  10. Config settings click on the color swatches to change a color. Click on the HEX to edit HEX value. Drag right to left to change values in numeric inputs.
  11. Reset will reset only the selected control to it's default values.
  12. Tips A bit of help text.


Video Tutorial:


Download locations: (Note, the PC version has yet to be tested on a PC. Please let me know how it works! (My PC VM is at work and not at home)

Mac:
https://altuit.cloud/web/dbpub/MoIGUIdownloads/MoIGUI-MAC.zip

PC:
https://altuit.cloud/web/dbpub/MoIGUIdownloads/MoIGUI-PC.zip
From: Frenchy Pilou (PILOU)
8 Feb 2015   [#2]
Cool work!

French Manual! ;)
http://moiscript.weebly.com/mgb-interface.html
From: chippwalters
8 Feb 2015   [#3]
Here's a quick interface I built just now:

There are several customizations OUTSIDE using MGB.

1. File Icons: Unzip and put the individual files in your moi/ui/icons folder. They don't replace any others there as the originals are stored as a resource in the app.
https://altuit.cloud/web/dbpub/MoIGUIdownloads/MoiFileIcons.zip

2.MainWindowCornerSizer.png* Only for Mac (I think). Icon for resizing the window (look at bottom right of image). Put in moi/ui folder (don't forget to back up old version!).
https://altuit.cloud/web/dbpub/MoIGUIdownloads/MainWindowCornerSizer.png

3.ViewportForeground.png* Creates a darkened bar between viewports. Put in moi/ui folder (don't forget to back up old version!).
https://altuit.cloud/web/dbpub/MoIGUIdownloads/ViewportForeground.png

Also, you'll need to use the Options View and Grid property panes inside of MoI to set the background color and the grid.

Here's the template for loading into MGB: (right-click link to download)
https://altuit.cloud/web/dbpub/MoIGUIdownloads/darkInterface.txt


From: Michael Gibson
8 Feb 2015   [#4] In reply to [#3]
Thanks for releasing this Chipp!

- Michael
From: DannyT (DANTAS)
9 Feb 2015   [#5] In reply to [#1]
Even though I'll probably never use it, it's a very cool utility Chipp, well done! A lot of users have been waiting for this.

You do realise you've probably made Michael drop 'UI customisation' down his list and given him more time to work on more of the productive stuff ;)

Cheers
From: MajorGrubert (CARLOSFERREIRAPINTO)
9 Feb 2015   [#6]
Thanks a lot.
Greetings
Carlos
From: chippwalters
9 Feb 2015   [#7] In reply to [#5]
Danny,

"You do realise you've probably made Michael drop 'UI customisation' down his list and given him more time to work on more of the productive stuff ;)"

Yep...exactly my thoughts as well!
From: paulrus
10 Feb 2015   [#8]
Is there a way to get it to reload the customized CSS you created previously?

If it already knows the file path, it'd be great for it to load the existing CSS file and let you go from there. I made some changes but realized I made my background too dark. Unfortunately when I reloaded MoiGUI my changes didn't appear, so I apparently need to start over. I tried Load Template, but that doesn't seem to load CSS files.

Otherwise this is a really neat tool. If it would let me start to change icons, fonts, etc., it would be phenomenal.

-Paul
From: chippwalters
10 Feb 2015   [#9] In reply to [#8]
Use the save template to save the customized moi.css template for MGB. Use the load template to load the template you just saved. This way you can continue to tweak your design.

MGB program does not parse the moi.css file directly, which would be called 'round-trip' CSS editing. Writing a full blown WYSIWYG round-trip CSS editor which correctly parses *any old CSS* is a full-time job for a team of programmers as it would necessarily need to handle all sorts of flavors (and mistakes) of CSS. I enjoy MoI but don't have that kind of time to spend.

If you save the template, you can reload it. The background screen settings are set in the Options panel and are not stored with the MoI.css file so you shouldn't have any problems reloading the "newly generated from your old template" moi.css file.

Changing Icons could be done. I'm not sure about changing fonts as I suspect there are limitations to the GUI framework Michael uses-- especially considering WINE.
From: Max Smirnov (SMIRNOV)
10 Feb 2015   [#10]
Thank you! Great app.
From: chippwalters
10 Feb 2015   [#11] In reply to [#10]
Thanks Max to you, too, for all the great work you do for this community!

Let me know if I missed any selectors.
From: Michael Gibson
10 Feb 2015   [#12] In reply to [#9]
The UI font is automatically set onto the <body> element as part of the processing that happens when an HTML document is loaded, the setting for it is in moi.ini, under:

[UI]
UIFontName=Century Gothic

The font size is also set in the same way and it can be adjusted in the Options dialog under the "General" section with the slider for "UI size".

- Michael
From: Jay (JAYGEE)
11 Feb 2015   [#13] In reply to [#12]
This is really fantastic, Chipp! Thank you very much!
How can I change this grey text color?

Image Attachments:
UI_01.png 


From: Michael Gibson
11 Feb 2015   [#14] In reply to [#13]
Hi Jay & Chipp,

re: How can I change this grey text color?

See here for a description of where the CSS that controls that color is located:
http://moi3d.com/forum/index.php?webtag=MOI&msg=7132.2

- Michael
From: chippwalters
11 Feb 2015   [#15]
Okay. I'll trying get that fixed tonight. Is there anything else that's missing?
From: Jay (JAYGEE)
12 Feb 2015   [#16]
I'm not sure if changing the "CloseWindowButton" Backgroundcolor Change is working...

Image Attachments:
UI_02.png 


From: Michael Gibson
12 Feb 2015   [#17] In reply to [#16]
Hi Jay & Chipp,

re: I'm not sure if changing the "CloseWindowButton" Backgroundcolor Change is working...

There are 2 different window close buttons, the first one is a <moi:WindowControlButton> with id="Close" - that one is one that you will only see on the Windows version when it is a maximized window, it will be a close button in the upper right corner of the main window. That one is controlled in moi.css by:

moi\:WindowControlButton#CloseWindow:hover img {
background-color:rgb(250,96,96);
}

moi\:WindowControlButton#CloseWindow:active img {
background-color:rgb(235,9,9);
}


The one that Jay shows below is in flyout menus, that one is a <moi:SmallCloseWindowButton>, it's controlled in moi.css by:

moi\:SmallCloseWindowButton:hover {
background-color:rgb(250,96,96);
border-color:rgb(124,124,124);
}

moi\:SmallCloseWindowButton:active {
background-color:rgb(235,9,9);
}

- Michael
From: chippwalters
12 Feb 2015   [#18] In reply to [#17]
Hey guys,

Sorry..been in meetings all day with lawyers. As I mentioned, I still don't have a windows image for my VMware here at home, so it will be awhile before I can get to Windows specific changes.

I'll try and see what I can get to this evening.
From: chippwalters
13 Feb 2015   [#19]

Update


Fixed the aforementioned issues. Press button check for update (dot 1) to load the new version. No need to restart.

The (dot 4) close button now has more properties and works correctly. The (dot 3) properties field now had a custom text-color property you can set which overides the CSS in the SidePaneContextArea.htm for the text-color.



Please NOTE: If you've previously *saved* a template from MGB, and then load it, you will now need to press the (2) RESET button for any individual item which has been updated since last saved. In this case, all you need to do is reset the two shown areas (4 & 3).


Michael,

On another note, is there any sort of CSS which I can access to define the text input highlight text and background color (5)? FWIW I tried variants of:

code:
::-webkit-selection {
  background: green;
  color: yellow;
}

From: Frenchy Pilou (PILOU)
13 Feb 2015   [#20] In reply to [#19]
Does the dowloading address of the new version is always the same ?

Show messages:  1-20  21-40  41-60  61-80  …  101-102