Evaluate expression

Information and change log about the latest ZGameEditor release.

Moderator: Moderators

Post Reply
User avatar
VilleK
Site Admin
Posts: 2018
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Evaluate expression

Post by VilleK » Tue Mar 05, 2019 2:20 pm

Added a new feature: a editbox for evaluate expression. It is located at the bottom right corner, just below the log.

This is a useful debugging and productivity tool.

You can type any expression that is valid in the currently loaded application.

Enter will evaluate expression. Pressing Up and Down will circle to expression history.

Download here: http://www.zgameeditor.org/files/ZGameEditor_beta.zip

Examples:

Code: Select all

1   //will display 1

2*2  //will display 4

strToInt("1")  //built-in functions can be called

"value is " + intToStr(42)  //string results are ok too

MyScore=1000  //Assignments are ok too

@RefreshContent(Component : MyBitmap)  //this syntax is ok too

InitGameLevel(4)   //nice to be able to call user-defined functions during preview
Attachments
zge_evalexpression.PNG
zge_evalexpression.PNG (273.72 KiB) Viewed 843 times

User avatar
rrTea
Posts: 366
Joined: Sat Feb 15, 2014 9:54 am

Re: Evaluate expression

Post by rrTea » Tue Jul 09, 2019 12:08 pm

When the editbox is still new (immediately after launching ZGE for example) pressing cursor up brings a Division by Zero.
Edit: or cursor down :)

User avatar
VilleK
Site Admin
Posts: 2018
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: Evaluate expression

Post by VilleK » Tue Jul 09, 2019 1:24 pm

Thanks, I'll fix it :). I'll be away for two weeks vacation now so probably will not check the forums during that time.

User avatar
VilleK
Site Admin
Posts: 2018
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: Evaluate expression

Post by VilleK » Mon Aug 05, 2019 8:50 am

rrTea wrote:
Tue Jul 09, 2019 12:08 pm
When the editbox is still new (immediately after launching ZGE for example) pressing cursor up brings a Division by Zero.
Edit: or cursor down :)
Ok this bug is now fixed: http://www.zgameeditor.org/files/ZGameEditor_beta.zip

User avatar
rrTea
Posts: 366
Joined: Sat Feb 15, 2014 9:54 am

Re: Evaluate expression

Post by rrTea » Mon Aug 05, 2019 8:52 am

Thanks! Downloading :)

Post Reply