Desk Accessories - Calculator

by adamius

4 function desktop style calculator

Utilities
4 years ago
0.17 - 0.18
12

b [todo - keybindings] control issues

4 years ago

setting the + and - functions to the + and - bottons that are used for changing tile placer size prevents that other functionality from being used.

4 years ago

For now, you'll need to remap the inaccessible functionality to other keys.

4 years ago
(updated 4 years ago)

Todo: Likely due to consuming value needing to be changed. Or some logic to be added to call secondary binding. Script.raise_event / LuaCustomInputPrototype.

4 years ago

It might be possible to fake this by focusing on a text field and abuse on_gui_text_changed, because text field/box does capture keyboard input unlike anything else the api offers. Comes at the drawback of capturing all keyboard input, so player can't move etc until the field is unfocused.

4 years ago

I doubt anyone is using the calculator during a firefight. A calc toggle might work. Already got one to control the gui itself.

New response