[Redbutton-devel] SF.net SVN: redbutton: [387] redbutton-author/trunk
Brought to you by:
skilvington
|
From: <ski...@us...> - 2007-09-17 09:14:03
|
Revision: 387
http://redbutton.svn.sourceforge.net/redbutton/?rev=387&view=rev
Author: skilvington
Date: 2007-09-17 02:14:00 -0700 (Mon, 17 Sep 2007)
Log Message:
-----------
import hello world example from http://www.digvid.info/mheg5/hello_world.php
Added Paths:
-----------
redbutton-author/trunk/helloworld/
redbutton-author/trunk/helloworld/hello.mhg.txt
redbutton-author/trunk/helloworld/startup.txt
Added: redbutton-author/trunk/helloworld/hello.mhg.txt
===================================================================
--- redbutton-author/trunk/helloworld/hello.mhg.txt (rev 0)
+++ redbutton-author/trunk/helloworld/hello.mhg.txt 2007-09-17 09:14:00 UTC (rev 387)
@@ -0,0 +1,44 @@
+// MHEG5 Hello World scene
+//
+// http://www.digvid.info/mheg5/hello_world.php
+//
+
+{:Scene
+ ( "~/hello.mhg" 0 )
+ :Items
+ (
+ // Declare a background Rectangle that covers the screen.
+ {:Rectangle
+ 1
+ :OrigBoxSize 720 576 // Size of rectangle
+ :OrigPosition 0 0 // Position at top left
+ :OrigRefLineColour '=ff=ff=ff=00' // White
+ :OrigRefFillColour '=ff=ff=ff=00' // White
+ }
+
+ // Place a Text box on the screen
+ {:Text
+ 2
+ :OrigContent "Hello World!" // Text to display
+ :OrigBoxSize 300 50 // Size of text box
+ :OrigPosition 200 100 // X,Y position
+ :FontAttributes "plain.36.42.0" // Use large characters
+ :TextColour '=ff=00=00=00' // Red
+ }
+
+ // Define a Link that triggers when the user presses the Blue key to
+ // Quit the application.
+ {:Link
+ 3
+ :EventSource 0 // Source is this scene
+ :EventType UserInput // Event type that we are looking for
+ :EventData 103 // 103 for the blue key
+ :LinkEffect (
+ :Quit ( ( '~/startup' 0 ) )
+ )
+ }
+ )
+
+ :InputEventReg 3
+ :SceneCS 720 576
+}
Added: redbutton-author/trunk/helloworld/startup.txt
===================================================================
--- redbutton-author/trunk/helloworld/startup.txt (rev 0)
+++ redbutton-author/trunk/helloworld/startup.txt 2007-09-17 09:14:00 UTC (rev 387)
@@ -0,0 +1,25 @@
+// MHEG5 Hello World app
+//
+// http://www.digvid.info/mheg5/hello_world.php
+//
+
+{:Application
+ ( '/startup' 0 ) // Application content reference
+ :Items (
+ {:Link
+ 1
+ :EventSource 0 // Check this application...
+ :EventType IsRunning // ... for the IsRunning event
+ :LinkEffect (
+ // Load the scene
+ :TransitionTo (( '~/hello.mhg' 0 ) )
+ )
+ }
+ )
+ :BackgroundColour '=FF=FF=FF=00' // White
+ :TextCHook 10 // Default text content hook
+ :TextColour '=00=00=00=00' // Black
+ :Font "rec://font/uk1" // Font to use for text rendering
+ :FontAttributes "plain.26.32.0" // Default font attributes
+ :BitmapCHook 4 // Default bitmap content hook
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|