Desk Accessories - Calculator

by adamius

4 function desktop style calculator

Utilities
4 years ago
0.17 - 0.18
14

b [todo - keybindings] control issues

5 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.

5 years ago

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

5 years ago
(updated 5 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.

5 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.

5 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