History

archive remaining JS scripts

Andrew Meadows committed 10 years ago

Commit c0b446c1 parent 9556995401 files · +0 −0Browse files

Showing the changes to script-archive/example/scripts/settingsExample.js (1 of 401 files). Show all

Unified · Split

script-archive/example/scripts/settingsExample.js+18−0
@@ -0,0 +1,18 @@
1+//
2+// settingsExample.js
3+// examples
4+//
5+// Created by Brad Hefta-Gaub on 3/22/14
6+// Copyright 2013 High Fidelity, Inc.
7+//
8+// This is an example script that demonstrates use of the Menu object
9+//
10+// Distributed under the Apache License, Version 2.0.
11+// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
12+//
13+
14+print("mySetting: " + Settings.getValue("mySetting"));
15+Settings.setValue("mySetting", "spam");
16+print("mySetting: " + Settings.getValue("mySetting"));
17+
18+//Script.stop();

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t