- Joined
- Jan 3, 2019
- Messages
- 47
- Reaction score
- 3
- First Language
- English
- Primarily Uses
- VNM
Right now I'm trying to disable the right click menu for a demo. I've figured out how to disable the right click in game by removing, this line of code
{
"type": "ui.Panel",
"frame": [0, 0, Graphics.width, Graphics.height],
"updateBehavior": "continuous",
"formulas": [$ -> o.ui.enabled = $dataFields.tempSettings.menuAccess],
"action": {
"event": "onCancel",
"name": "switchLayout",
"params": { "name": "settingsMenuLayout", "savePrevious": true }
}
},
from the Scripts: Layouts: Layout_Game
however, I can't find the code to remove the right click function from the main menu. Could anyone help me find where this code is? Or find some other way to remove the right click functionality there?
{
"type": "ui.Panel",
"frame": [0, 0, Graphics.width, Graphics.height],
"updateBehavior": "continuous",
"formulas": [$ -> o.ui.enabled = $dataFields.tempSettings.menuAccess],
"action": {
"event": "onCancel",
"name": "switchLayout",
"params": { "name": "settingsMenuLayout", "savePrevious": true }
}
},
from the Scripts: Layouts: Layout_Game
however, I can't find the code to remove the right click function from the main menu. Could anyone help me find where this code is? Or find some other way to remove the right click functionality there?



