The app:
Created
June 27, 2024 18:16
-
-
Save Mistium/af6c6c9ab143ea0e75dc5dec3bf2dd92 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def "add" | |
| count ++ | |
| endef | |
| // this gets run when the plus option is clicked | |
| def "minus" | |
| count -- | |
| endef | |
| // this gets run when the minus option is clicked | |
| count = 0 | |
| // setup the count variable | |
| options = [ | |
| {"+ 1":"add"}, | |
| {"- 1":"minus"} | |
| ] | |
| // define the right click menu | |
| mainloop: | |
| square 100 100 10 : c#fff | |
| // a square that if you right click brings up a custom menu | |
| rightclick options | |
| // command to check if the previous ui element has been right clicked and if it has, bring up the right click menu with the options array as the right click buttons | |
| loc 2 2 10 -20 | |
| text count 10 : c#fff | |
| // render the count at the top right | |
| import "win-buttons" | |
| // import the standard window buttons |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
