Page 1 of 1

Comments of a ZExpression component in the window title?

Posted: Thu Jun 25, 2020 7:54 am
by rrTea
When there are a few detached ZExpressions floating around, sometimes it's hard to recognize at first glance whether the selected one is really the one that should be modified. In my case, ZExpressions for bullet attacks sometimes look very similar (visually) and sadly the ZExpression that has focus is not highlighted in the Project Tree. Commenting within a ZExpression can help with that, but general comments tend to scroll out (while working, chances are the cursor will be somewhere in the code and not comments) and there's always a bit of scrolling involved in this process etc.

I'd find it practical if the comments of the ZExpression itself were added to the title of the window. Right now, a detached ZExpression only says "Editing: ZExpression / Condition Expression", so instead of the second "Expression" the comment of the component could be used (for example if the comment is "Bullets phase 2", the title of the window could be "Editing ZExpression / Condition: Bullets phase 2").

Another thing that would be helpful (but I guess that's more troublesome) would be if the ZExpression with the focus got highlighted in the Project Tree.

Would anybody else find this useful?

Re: Comments of a ZExpression component in the window title?

Posted: Fri Jun 26, 2020 7:29 am
by VilleK
Hi,

I added the comment to the window caption, please try it here: http://www.zgameeditor.org/files/ZGameEditor_beta.zip

Re: Comments of a ZExpression component in the window title?

Posted: Fri Jun 26, 2020 10:26 am
by rrTea
Excellent, it works! Thanks :)