Changes

Jump to: navigation, search

Labs/Ubiquity/Ubiquity 0.5 Author Tutorial

26 bytes added, 00:17, 30 August 2009
m
h1 => h2
For now, just make sure this drop-down is set to "Regular". We'll tell you more about what this means later.
== Hello World: The First Command ==
=== Just a Message: As Simple as it Gets ===
Let's start with the standard programing trope: printing "Hello, World!".
CmdUtils.CreateCommand({
names: ["say hello"],
execute: functionhello_execute() { displayMessage( "Hello, World!");
}
});
<pre>
{ names: ["say hello"], execute: function() { //etc } }
</pre>
CmdUtils.CreateCommand({
names: ["say hello", "greet"],
execute: functionhello_execute() { displayMessage( _("Hello, World!") );
}
});
73
edits

Navigation menu