-
Notifications
You must be signed in to change notification settings - Fork 28
Keypad nodes-display item #1082
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
This reverts commit 263bdd0.
| ["Click"] = 644, -- TR2_Click | ||
| } | ||
|
|
||
| local function keypadCreate(object, code) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use PascalCase for function names, regardless of local/global scope.
| LevelFuncs.Engine.Node.KeypadCreate = function(object, code, volume) | ||
| LevelVars.Engine.Keypad.ActivatedKeypad = nil | ||
|
|
||
| local inventoryDelay = 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to keep all these variables and a soundmap outside functions? Node script format was nice in a way it contained necessary code only within node functions. By exposing variables/tables in this way, we are breaking this format. Not saying it is wrong, just something I never planned to be done, because node functions were meant to be a wrapper for lua functions that can be directly used in scripts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can move them in. I moved them out cause they would be created every frame but that’s ok.
Revised Keypad nodes.
Setup is simpler and now only requires one node.
Uses Display Item Class and to be merged after it.
Adds two new nodes. One to input, other to check the input.

TombEngine/TombEngine#1789