mirror of
https://github.com/overte-org/overte.git
synced 2025-04-06 10:32:49 +02:00
Indentation
This commit is contained in:
parent
67a5c75a0d
commit
794f3ca69f
1 changed files with 4 additions and 6 deletions
|
@ -20,17 +20,17 @@ function menuParameters(menuNameSelection, menuItemNameSelection) {
|
|||
}
|
||||
|
||||
function setupMenu() {
|
||||
if(!Menu.menuExists("Gravity")) {
|
||||
if (!Menu.menuExists("Gravity")) {
|
||||
Menu.addMenu("Gravity");
|
||||
for(var i = -5; i <= 5; i++) {
|
||||
for (var i = -5; i <= 5; i++) {
|
||||
menuParameters("Gravity", i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function menuItemEvent(menuItem) {
|
||||
for(var i = -5; i <= 5; i++) {
|
||||
if(menuItem == i) {
|
||||
for (var i = -5; i <= 5; i++) {
|
||||
if (menuItem == i) {
|
||||
MyAvatar.setGravity(i);
|
||||
}
|
||||
}
|
||||
|
@ -41,7 +41,5 @@ function onScriptEnding() {
|
|||
}
|
||||
|
||||
setupMenu();
|
||||
|
||||
Menu.menuItemEvent.connect(menuItemEvent);
|
||||
|
||||
Script.scriptEnding.connect(onScriptEnding);
|
||||
|
|
Loading…
Reference in a new issue