CustomUI
 1-15  …  416-435  436-455  456-475  476-495  496-515  516-522

Previous
Next
 From:  Mindset (IGNITER)
6507.456 In reply to 6507.455 
Bingo! Perfect!

BTW, Mr. Gibson, if I were to attempt to fully express how much I appreciate you, then neither of us would have time left for anything else.

Thank you Sir,
MindSet
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
6507.457 In reply to 6507.456 
Thanks Mindset! :)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Mindset (IGNITER)
6507.458 
How can I get a screenshot with a white background when using:
%AppData%\Roaming\Moi\ui\customui\-84 Snapshot.htm

???

Many Thanks,
Mindset
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
6507.459 In reply to 6507.458 
Hi Mindset, I don't seem to have an "-84 Snapshot.htm" file in the regular CustomUI package. Can you post it?

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Mindset (IGNITER)
6507.460 In reply to 6507.459 
Thanks Michael,

Maybe I renumbered it for some reason... don't remember.

MindSet
Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
6507.461 In reply to 6507.458 
Hi Mindset, the code in there looks like it's already setting a white background.

What version of MoI are you using? I just noticed in the path you wrote:
%AppData%\Roaming\Moi\ui\customui\-84 Snapshot.htm

is that path really where you've got it? For MoI v4 it should be a .js file in %AppData%\Moi\startup and for v3 it would be in the install folder's UI subfolder not in appdata...

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Mindset (IGNITER)
6507.462 In reply to 6507.461 
Thanks Michael,

Apparently I've been editing the wrong file.
Here is %AppData%\Roaming\Moi\startup\82 Snapshot.js

MindSet
Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
6507.463 In reply to 6507.462 
Hi Mindset, so in that one the line of code that sets the background color is line #22:

code:
	moi.view.viewportBackgroundColor = 0xEEEEEE;


That's going to be a light gray color. To make it white change that line to this instead:

code:
	moi.view.viewportBackgroundColor = 0xFFFFFF;


Does that do what you need?

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Mindset (IGNITER)
6507.464 In reply to 6507.463 
Thank you Michael,
You are a virtuoso! …the exemplar maestro!

That saves me a lot of time.
Shall I delete the ".\AppData\Roaming\Moi\ui\customui" Folder?

MindSet
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
6507.465 In reply to 6507.464 
Hi MindSet, you're welcome!

re:
> Shall I delete the ".\AppData\Roaming\Moi\ui\customui" Folder?

Yes I don't think it's being used. Double check that it's really \ui\customui though, there should be one in Moi\customui (no "ui") that is being used, that's where the menus for customui are at.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  linograndi
6507.466 
That's a great addition to MoI! Thanks for that!
I have a question. Is there a way to redirect the object library to a different folder?
Disk space in C is pretty precious and I really like to "populate" the folder with a pretty large amount of objects.
Thanks!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
6507.467 In reply to 6507.466 
Hi linograndi,

re:
> I have a question. Is there a way to redirect the object library to a different folder?

I think that can be done by editing the ObjLibrary.cfg.htm file which is in the %AppData%\Moi\customui folder.

It contains this:
code:
Object Library;MOI\objects


It's the second piece after the semi-colon that controls the folder that it will use. If it has MOI in there that gets replaced by the MoI appdata folder, so the default value of MOI\objects means it will use %AppData%\Moi\objects .

Try editing that MOI\objects value with a path to your desired folder, like this:
code:
Object Library;d:\some_folder\objects


- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Psygorn (DRILLBIT)
6507.468 
Hello all,

How can I do this:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
6507.469 In reply to 6507.468 
Hi Psygorn, well the scene browser pane comes from the file BrowserPane.htm so that's one file that you would need to edit.

The place they are going into on the bottom is in CommandBar.htm . So first step is go into CommandBar.htm and find the spot where they are being inserted into. Set up a similar spot in BrowserPane.htm and then edit the CustomUi scripts so they're inserting into the browser pane instead of into the command bar.

The CustomUI scripts are located in your appdata\Moi\startup folder. If you look inside them you'll see something like this in each one:

code:
moi.ui.commandBar.CommandBarCustomUI.insertAdjacentHTML( ...


You'll need to change that to something like:

code:
moi.ui.getUIPanel( 'moi://ui/BrowserPane.htm' ).CommandBarCustomUI.insertAdjacentHTML( ...


- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Psygorn (DRILLBIT)
6507.470 In reply to 6507.469 
Hi Michael,

And how can I change the size of command bar icons (I am talking about Custom UI icons)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Psygorn (DRILLBIT)
6507.471 In reply to 6507.469 
Hello again,

So, Michael I did follow your instructions and it worked! Thanks :-)

However, I have few new questions:



Edit: If you take a look at above picture you will see that it seems Icons of "options" and "help" is just copied from command bar to Brow span. I mean they were not moved it looks like they were copied! ( I think I can remove those in the Browse pan area but don't know how to do that safely,I mean I am afraid to mess up something)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
6507.472 In reply to 6507.470 
Hi Psygorn,

re:
> And how can I change the size of command bar icons (I am talking about Custom UI icons)

The icon size for a command button comes from this line in moi.css :

code:
moi\:CommandButton > img, moi\:CommandMenuButton > img, moi\:CommandSplitButton > img {
	width:3.25em;
	height:3.25em;
}


So to change the size of the command bar icons you would need to put a new CSS style rule that overrides that one. You could put it inside a <style></style> block inside the <head> section of a document and then all the command buttons in that document would use your overridden icon width and height.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
6507.473 In reply to 6507.471 
Hi Psygorn,

re:
> However, I have few new questions:
>
> How can I remove icons within the red boxes?

The red box on the bottom does not contain any icons already so that one is already done! ;)

For the other ones, if you want only those command buttons to not have icons you would need to add something to distinguish them from the other command buttons like adding a class="noicon" to them, and then put in a rule in the top of the document to hide the icons in things that have a class named "noicon" which would be something like this:

code:
moi\:CommandButton.noicon > img, moi\:CommandMenuButton.noicon > img, moi\:CommandSplitButton.noicon > img {
    display:none;
}


re:
> What should I do if I want them here?

That area is defined by the file SidePane.htm, so you would insert them into that file.

One thing you should be aware of is that usually this kind of major customization to the UI will cause some problems down the line when you want to move to a new version of MoI.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Psygorn (DRILLBIT)
6507.474 In reply to 6507.473 
Hi Michael,

Thank you for your reply.

> How can I remove icons within the red boxes?

I should alter CommandBar.htm or BrowserPan.htm right?
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
6507.475 In reply to 6507.474 
Hi Psygorn,

re:
> I should alter CommandBar.htm or BrowserPan.htm right?

Yup, just make a backup copy of it and then you can experiment with changing them.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
Show messages:  1-15  …  396-415  416-435  436-455  456-475  476-495  496-515  516-522