overte/script-archive/example/scripts/settingsExample.js

18 lines
515 B
JavaScript
Raw Normal View History

2014-03-23 11:27:06 -07:00
//
// settingsExample.js
// examples
2014-03-23 11:27:06 -07:00
//
// Created by Brad Hefta-Gaub on 3/22/14
// Copyright 2013 High Fidelity, Inc.
2014-03-23 11:27:06 -07:00
//
// This is an example script that demonstrates use of the Menu object
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
2014-03-23 11:27:06 -07:00
print("mySetting: " + Settings.getValue("mySetting"));
Settings.setValue("mySetting", "spam");
print("mySetting: " + Settings.getValue("mySetting"));
//Script.stop();