Cosmetic changes to Nodeedit for Moment of inspiration 1.0 rc4a
All  1  2-7

Previous
Next
 From:  Michael Gibson
11552.2 In reply to 11552.1 
Thanks for sharing your changes, RJ!

- 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:  Frenchy Pilou (PILOU)
11552.3 
---
Pilou
Is beautiful that please without concept!
My Moi French Site My Gallery My MagicaVoxel Gallery
  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:  MO (MO_TE)
11552.4 In reply to 11552.1 
Hi RJ
I liked your modifications. Specially #2 and #6 were useful for me. Thanks.

>> Wishlist:
>> 10. The text input panel in the TextPts node loses its focus far too easily which can make editing difficult. I would prefer to click outside the editing area when the editing was complete. I didn't find a way to do that yet.

Find this piece of code in the "main.js" file ( line 3546 )
code:
if (title[0] === "_") { content.onmouseout = function() { this.blur(); this.onchange() }}

Replace it with this:
code:
if (title[0] === "_") {
	content.onmouseout = function() { /* this.blur(); */ this.onchange() }; /* Keep the focus */
	content.onkeydown = function(e) {  if ( e.keyCode === 13 && e.ctrlKey ) this.onchange() }; /* CTRL+ENTER to apply changes */
}

In the second line I've just commented out "this.blur();". So textarea doesn't lose the focus on mouse out.
In the third line I've added "CTRL+ENTER" shortcut to apply changes. So no need to click outside of the text area.

EDITED: 8 Oct 2024 by MO_TE

  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:  rjp74 (RJPOPE)
11552.5 In reply to 11552.4 
Thank you MO,

I tried your revised code and it works splendidly.
I attach a new zip file with this change included.

  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)
11552.6 In reply to 11552.5 
@rjp74 And anyone who can answer my question,

I am using a customized version of Nodeeditor with several third-party .js files added to the directory that I took from other MOI folks.
If I download and install a newer version, could it interfere with my current setup?
I have backups in place, but I prefer to be cautious. Any advice on potential impact to my customized environment would be appreciated.

-Psygorn
  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
 From:  Michael Gibson
11552.7 In reply to 11552.6 
Hi Psygorn,

re:
> If I download and install a newer version, could it interfere with my current setup?

It could if you install it into the same folder overwriting your current files.

If you install it into it's own separate folder inside MOI appdata so that there aren't any files being overwritten then it shouldn't interfere.

- 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: All  1  2-7