Skip to content

Commit

Permalink
First upload for hello world
Browse files Browse the repository at this point in the history
Images, source files, components, etc for the initial batch
  • Loading branch information
chris-trag committed Jan 28, 2016
1 parent 7132c2a commit ef1c99c
Show file tree
Hide file tree
Showing 12 changed files with 1,136 additions and 0 deletions.
1,035 changes: 1,035 additions & 0 deletions app.mk

Large diffs are not rendered by default.

Binary file added dist/apps/hello_world.zip
Binary file not shown.
10 changes: 10 additions & 0 deletions source/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#
# Copyright (c) 2015 Roku, Inc. All rights reserved.
# Simple Makefile for Roku Channel Development
#

APPNAME = hello_world
IMPORTS =

APPSROOT = ..
include $(APPSROOT)/app.mk
37 changes: 37 additions & 0 deletions source/components/helloworld.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8" ?>
<component name="HelloWorld" extends="Scene">
<children>
<Label id="myLabel"
text="Hello World!"
width="1280"
height="720"
horizAlign="center"
vertAlign="center"
/>
</children>
<!-- BrightScript Portion -->
<script type="text/brightscript" >
<![CDATA[
'**
'** Example: Edit the Label component with BrightScript
'**
function init()
m.top.setFocus(true)
m.myLabel = m.top.findNode("myLabel")
'Set the font size
m.myLabel.font.size=92
'Set the color to light blue
m.myLabel.color="0x72D7EEFF"
'**
'** The full list of editable attributes can be located at:
'** http://sdkdocs.roku.com/display/sdkdoc/Label#Label-Fields
'**
end function
]]>
</script>
<!-- End of BrightScript Portion -->
</component>
Binary file added source/images/channel-poster_fhd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/images/channel-poster_hd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/images/channel-poster_sd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/images/splash-screen_fhd.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/images/splash-screen_hd.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/images/splash-screen_sd.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions source/manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#
# Copyright (c) 2015 Roku, Inc. All rights reserved.
# Roku Channel Manifest File
# Full spec at bit.ly/roku-manifest-file
#

## Channel Details
title=Hellow World
major_version=1
minor_version=0
build_version=00001

## Channel Assets
### Main Menu Icons / Channel Poster Artwork
#### Image sizes are FHD: 540x405px | HD: 290x218px | SD: 214x144px
mm_icon_focus_fhd=pkg:/images/channel-poster_fhd.png
mm_icon_focus_hd=pkg:/images/channel-poster_hd.png
mm_icon_focus_sd=pkg:/images/channel-poster_sd.png

### Splash Screen + Loading Screen Artwork
#### Image sizes are FHD: 1920x1080px | HD: 1280x720px | SD: 720x480px
splash_screen_fhd=pkg:/images/splash-screen_fhd.jpg
splash_screen_hd=pkg:/images/splash-screen_hd.jpg
splash_screen_sd=pkg:/images/splash-screen_sd.jpg

splash_color=#000000
splash_min_time=1
27 changes: 27 additions & 0 deletions source/source/Main.brs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
'*************************************************************
'** Hello World example
'** Copyright (c) 2015 Roku, Inc. All rights reserved.
'** Use of the Roku Platform is subject to the Roku SDK Licence Agreement:
'** https://docs.roku.com/doc/developersdk/en-us
'*************************************************************

sub Main()
print "in showChannelSGScreen"
'Indicate this is a Roku SceneGraph application'
screen = CreateObject("roSGScreen")
m.port = CreateObject("roMessagePort")
screen.setMessagePort(m.port)

'Create a scene and load /components/helloworld.xml'
scene = screen.CreateScene("HelloWorld")
screen.show()

while(true)
msg = wait(0, m.port)
msgType = type(msg)
if msgType = "roSGScreenEvent"
if msg.isScreenClosed() then return
end if
end while
end sub

0 comments on commit ef1c99c

Please sign in to comment.