Search the Community
Showing results for tags 'options'.
-
Hello. I'm working on a demo for my upcoming game, and while I was working on it, I wanted to add the ability to bind keys in the options menu. I've already made the GUI code (in Lua) to make a second tab, add buttons for every movement, etc... The problem is I can't figure how to listen for keyboard/mouse input. As you can see, I've chosen buttons and not TextInput. When you click a button, a panel opens with a text. This panel will only close when the user will press a button or hit escape. And this is where I'm stuck. How can I listen for any keyboard or mouse input? Also, I had another question: How can I save options? How can I save options (keyboard input, graphical options, ...) to load them when the game starts? Or does Leadwerk already do that every time the user hit apply in the options panel? Thank you very much, I hope I've explained myself enough.
-
Alright so let me explain myself a bit here, you know how in games you have those options that define how much gamma there is and whatnot? I was wondering how to do that and how to keep it persistent through all the levels the user has created. An example of this would be to manipulate say the Bloom shader, by having an option to toggle it on or off an keep it saved. I'm not asking anyone to code anything for me, but instead to guide me in the right direction.
- 5 replies
-
- game rules
- options
-
(and 1 more)
Tagged with:
-
Hey guys, great product, i love it! I have a few suggestions about the script editor: - Having a shortcut key to open it. - Prevent from closing window when pressing the ESC key. - Automatically re-open last lua files.