/gui_calculator

An extendable calculator in Godot Engine that can be used with mouse or by typing.

Primary LanguageGDScriptMIT LicenseMIT

GUI Calculator icon

An extendable calculator in Godot Engine that can be used with mouse or by typing.

loc size

screenshot

Usage

All the buttons (except evaluation button) have a ButtonGroup. The ButtonGroup is used to get the character of the pressed button. This is added to the LineEdit string, which you can also alter by typing. This string is evaluated by the Expression Class, which supports most functions GDscript supports. Thus more inputs can be added to the GUI, which already are accesible by typing (ex. sin() ). But the current GUI consist out of the basic numbers operators which don't require brackets.

Editing GUI

Edit it by setting the text of a button to something evaluateable. Or add a new button with the same ButtonGroup (ex. by duplicating).

License

MIT

Contributing

Leave a issue if there is one.