Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

renaming Phosphor to Desktop

  • Loading branch information...
commit c852c129cf197f42c504c0be65e31c3344a7f4eb 1 parent 9090882
Dave Goehrig authored
View
10 README
@@ -1,4 +1,4 @@
-README - Phos and Phosphor
+README - Phos
Copyright 2009,2010,2011,2012 David J. Goehrig <dave@nexttolast.com>
All Rights Reserved
@@ -24,14 +24,14 @@ can act as a "class". Instances of that "class" are spawned using the "clone()"
----------------------------------------------------------------------------------------------------
Getting Started
-The easiest way to use Phosphor is to include in your HTML file:
+The easiest way to use Phos is to include in your HTML file:
<script src="/js"></script>
----------------------------------------------------------------------------------------------------
Contributing
-Both Phos and Phosphor are licensed under the GPL3 license. A copy of the license can be found in
+Phos is licensed under the GPL3 license. A copy of the license can be found in
the git repository and is available from the Free Software Foundation at:
http://www.gnu.org/copyleft/gpl.html
@@ -41,13 +41,13 @@ If you'd like to submit your own fixes, extensions, or features please feel free
dave at nexttolast.com
I'm always happy to incorporate good ideas, especially if they make things simpler, smaller, and
-faster. If you'd like to use Phos or Phosphor in a commercial product, licensing and support
+faster. If you'd like to use Phos in a commercial product, licensing and support
arrangements can also be made to meet your needs.
----------------------------------------------------------------------------------------------------
Keeping Up To Date
-The latest and greatest source code is always available for both Phos and Phosphor at:
+The latest and greatest source code is always available for Phos at:
http://github.com/cthulhuology/Phos/tree/master
View
2  object/Block
@@ -63,7 +63,7 @@ An.object().
does('up', function(E) {
var I = this
if (this.moving() && (global['that'] = Widget.widgets().any(function(O,K) {
- return ![ I, Display, Phosphor ].contains(O) && O.can('on') && O.on(I)
+ return ![ I, Display, Desktop ].contains(O) && O.can('on') && O.on(I)
}))) {
if (that.can('drop')) {
that.drop(this.value());
View
2  object/Database
@@ -2,7 +2,7 @@ An.object().named('Database').
has('callback',function() {} ).
does('init', function(Name) {
try {
- has('sql',openDatabase(Name,'','Phosphor Database',4096*4096))
+ has('sql',openDatabase(Name,'','Phos Database',4096*4096))
} catch(E) {
console.error(E);
}
View
2  object/Help
@@ -6,7 +6,7 @@ An.object().named('Help').from(Image).
this.has('blurb',an(Image,'images/help.png').at(300,0).does('down',function(E) {
if(!E.on(this)) return;
Sound.click().play();
- Phosphor.help().has('blurb', false)
+ Desktop.help().has('blurb', false)
this.free();
}))
}).
View
4 object/HotKey
@@ -7,5 +7,5 @@ does('/', function() { Search.find() }).
does('d', function() { if (global['editing'].content()) global['editing'].content().download() }).
does('o', function() { Display.at(0,0) }).
does('r', function() { _doc.goto(_doc.location) }).
-does('h', function() { Phosphor.help().show() }).
-does('i', function() { Phosphor.inventory().show() })
+does('h', function() { Desktop.help().show() }).
+does('i', function() { Desktop.inventory().show() })
View
28 object/Phosphor
@@ -1,28 +0,0 @@
-An.object().named('Phosphor').from(Widget).
- does('init', function() {
- Sound.has('trash', a(Sound,'sounds/trash.aif')).
- has('error', a(Sound,'sounds/error.wav')).
- has('click', a(Sound,'sounds/click.wav'))
- return this.has('help', a(Help,'images/help_button.png').at(Display.width()-100,10)).
- has('inventory', an(Inventory)).
- has('trash', a(Trash)).
- instance()
- }).
- does('press', function(E) {
- if(Keyboard.control() || Keyboard.command()) HotKey.of(E.key())
- }).
- does('draw', function() {
- if (!this.visible()) return;
- }).
- does('move', function(E) {
- global['here'] = E
- }).
- does('down', function(E) { // clicking on the screen not on a widget displays a block for editing
- if (Widget.widgets().any(function(O) {
- return O.can('on') && O != Phosphor && O != Display && E.on(O)
- })) return;
- if (E.button() < 2) return;
- Sound.click().play()
- A.block().says('').at(E.x(),E.y()).by(100,24)
- }).
- init()
View
2  object/Trash
@@ -7,7 +7,7 @@ An.object().named('Trash').from(Widget).
does('up', function(E) {
var O = null;
if (! E.on(Me.trash())) return;
- if (O = E.overlaps([Display,Phosphor,Trash,this])) {
+ if (O = E.overlaps([Display,Desktop,Trash,this])) {
console.log(O)
Sound.trash().play();
O.free()
View
2  phos.psgi
@@ -40,7 +40,7 @@ my $phos_js = sub {
my @files = ('Object','Number','Array','String','Box','Widget','Component','Event','Device','Resource',
'Palette','Font','Display','Keyboard','Mouse','Screen','Text','Sound','Image','Movie',
'Key','Page',
- 'Help','Inventory','Trash','Objects','Mirror','Phosphor',
+ 'Help','Inventory','Trash','Objects','Mirror','Desktop',
'Names','HotKey','Block',
'Graphic','Rectangle','Circle','Daimond',
'Blog','Search','App');
Please sign in to comment.
Something went wrong with that request. Please try again.