ENIGMA Forums

Contributing to ENIGMA => Proposals => Topic started by: mac12 on August 07, 2014, 01:33:49 PM

Title: some proposal
Post by: mac12 on August 07, 2014, 01:33:49 PM
hello, I have a little 'proposals to improve enigma, I do not know if someone has already proposed (in this case, let me know):
1) be able to "close" the braces, if you have a very long code that can help to make the code more readable, for example:
(http://i60.tinypic.com/scffcy.png)
(http://i59.tinypic.com/2cdiee8.png)
2) Enter in the code editor the name of the object and its event

3) the possibility as in gm, zoom in and out the written

4) a similar feature as instance order in gms
Title: Re: some proposal
Post by: Darkstar2 on August 07, 2014, 03:10:07 PM
hello, I have a little 'proposals to improve enigma, I do not know if someone has already proposed (in this case, let me know):
1) be able to "close" the braces, if you have a very long code that can help to make the code more readable, for example:

1. Don't you mean automatic braces like for example in an IDE ?  Example, I work in CodeBlocks C++, and whenever I open brace, the close brace is there for me, letting me insert anything I want in between.
I like this idea and it should be implemented in LGM IDE. I'm all for it and it should not be difficult to implement.

Quote
2) Enter in the code editor the name of the object and its event

This is great for people who don't do any D&D and only code.  I would love that as I do only code.
But if I'm not mistaken, you can already do that in GMS, not sure if this is fully functional and working in ENIGMA.  I know it's covered in the docs but never actually tried it :D

Quote
3) the possibility as in gm, zoom in and out the written

What do you mean by that ?  There is no such feature in GM, do you mean inside the code editor ? You can't do that in GM.  Though it might help for people who are visually impaired, perhaps ability to select font
and text size in code editor :D 
Title: Re: some proposal
Post by: edsquare on August 07, 2014, 04:10:00 PM
hello, I have a little 'proposals to improve enigma, I do not know if someone has already proposed (in this case, let me know):
1) be able to "close" the braces, if you have a very long code that can help to make the code more readable, for example:

1. Don't you mean automatic braces like for example in an IDE ?  Example, I work in CodeBlocks C++, and whenever I open brace, the close brace is there for me, letting me insert anything I want in between.
I like this idea and it should be implemented in LGM IDE. I'm all for it and it should not be difficult to implement.

By the images he posted I guess he means folding code by clicking on the opening brace so it shuts down until you can't read that part of the code but see only the braces, and by clicking on the same brace again you unfold the code. 

Quote
Quote
2) Enter in the code editor the name of the object and its event

This is great for people who don't do any D&D and only code.  I would love that as I do only code.
But if I'm not mistaken, you can already do that in GMS, not sure if this is fully functional and working in ENIGMA.  I know it's covered in the docs but never actually tried it :D

I vote for this too.  (Y)

Quote
Quote
3) the possibility as in gm, zoom in and out the written

What do you mean by that ?  There is no such feature in GM, do you mean inside the code editor ? You can't do that in GM.  Though it might help for people who are visually impaired, perhaps ability to select font
and text size in code editor :D

Just like many IDE's do allow to do that, perfect for the visually impaired (like me)  :D
Title: Re: some proposal
Post by: TheExDeus on August 07, 2014, 04:17:34 PM
Quote
What do you mean by that ?  There is no such feature in GM, do you mean inside the code editor ? You can't do that in GM.  Though it might help for people who are visually impaired, perhaps ability to select font and text size in code editor :D 
In GM you can do that by pressing F7 and F8. I would like if that would be done by pressing Ctrl+Mousewheel like everywhere else. They also have snippets (F2) and some other functionality, but I don't need that.

I agree about code folding. Would also like more intelligent analysis, like when you are over spr_something it actually knows that it is a sprite. Or when you type draw_sprite() the first argument would automatically propose sprites as options. But there are some bugs I think need to fixed first. Like sometimes after accidental dragging of code, the undo won't work. It will undo over other valid code instead of the place you actually changed. Then there is the unlimited scroll bug, where you keep scrolling past the end of the code and it won't stop doing that until you press some keyboard keys. I have actually lost code because of these bugs.
Title: Re: some proposal
Post by: Darkstar2 on August 07, 2014, 06:01:14 PM
By the images he posted I guess he means folding code by clicking on the opening brace so it shuts down until you can't read that part of the code but see only the braces, and by clicking on the same brace again you unfold the code. 

Ahhh gotcha now, I missed the - / + giveaway :D

Indeed that would be practical if you have lots of code.

Quote
I vote for this too.  (Y)

I agree I would love to be able to do EVERYTHING
into one block of code, instead of dragging event
icons, sort of like

[step of obj_001]
(code here)

[collision of obj_001]
(code here)

etc.

But I think that can already be done in GMS.

Quote
Just like many IDE's do allow to do that, perfect for the visually impaired (like me)  :D

Would be appreciated when working in 1920x1080
or 4k resolutoins lol !



Title: Re: some proposal
Post by: Josh @ Dreamland on August 07, 2014, 09:15:13 PM
Code folding was planned, but never implemented. Then there was some scrambling to build a new IDE. Then nothing happened. This is likely to be a much-requested feature, but no one's realy volunteering, at this point.
Title: Re: some proposal
Post by: edsquare on August 08, 2014, 01:00:07 AM
Code folding was planned, but never implemented. Then there was some scrambling to build a new IDE. Then nothing happened. This is likely to be a much-requested feature, but no one's realy volunteering, at this point.

I've got an eclipse plugin source code for code folding in eclipse, where and how should we place it in LGM?
Title: Re: some proposal
Post by: mac12 on August 08, 2014, 04:53:45 AM
then we would have to add the ability to "move the room" using the mouse wheel (but I think we've already thought of that and will be implemented in the future).

Regarding the forum, it would be nice to have the spoiler (click and you are shown the text enclose it in, a bit like the first proposal), and the search function even those who are not registered.

PS
I saw that in the preferences you set the language, how can I add Italian?
Title: Re: some proposal
Post by: Josh @ Dreamland on August 08, 2014, 07:47:43 AM
I thought we had an Italian translation. If not, we have detailed instructions on how you can translate it here (http://enigma-dev.org/docs/Wiki/Translating). I'd definitely make sure we don't have Italian first, though. We have like four other Italian users and I believe all of them had translation enabled automatically....

Title: Re: some proposal
Post by: mac12 on August 08, 2014, 08:39:10 AM
in the preferences of enigma I only see English, french, turkish and danish, however, I see that the wiki is also available in Italian, maybe write some voice :)