# -*- coding: utf-8 -*-

# Copyright 2001-2003, Danger, Inc.  All Rights Reserved.
# This file is subject to the Danger, Inc. Sample Code License,
# which is provided in the file SAMPLE_CODE_LICENSE.
# Copies are also available from http://developer.danger.com/

package "com.example.AudioDemo"

interface "{source}/com/example/AudioDemo/Resources.java"
events "{source}/com/example/AudioDemo/Commands.java"

sequence ID_SOUNDTRACK		"{localeDir}/assets/sounds/rocksDemo.mid"
sound ID_TORPEDO			"{localeDir}/assets/sounds/zap1611ima.wav"

#---------------------------------------------------------------------
# Application Name
#---------------------------------------------------------------------
string ID_APP_NAME "AudioDemo"

#---------------------------------------------------------------------
# Class ID
#---------------------------------------------------------------------
string ID_APP_CLASS "com.example.AudioDemo.AudioDemo"

#---------------------------------------------------------------------
# App I18N Locale String
#---------------------------------------------------------------------
string ID_LOCALE    "en_US"

#---------------------------------------------------------------------
# The display strings for the background music state
#---------------------------------------------------------------------
string ID_STOPPED	"Stopped"
string ID_PLAYING	"Playing"

#---------------------------------------------------------------------
# The MainWindow menu to allow for starting/stopping background music.
#
# Under the 2.0 or greater OS, include the shoulder button shortcuts.
# In earlier versions, these translate to square blocks, so need to be
# skipped there.
#---------------------------------------------------------------------
menu ID_MENU_AUDIO_DEMO

	menuItem
		title = "Turn music ON"
		event = EVENT_MUSIC_ON
			@ IF {os_version} = {1.1, 1.1e, 1.3}
			@ ELSE
		shortcut = rightShoulderButton
			@ ENDIF

	menuItem
		title = "Turn music OFF"
		event = EVENT_MUSIC_OFF
			@ IF {os_version} = {1.1, 1.1e, 1.3}
			@ ELSE
		shortcut = leftShoulderButton
			@ ENDIF
endMenu

#---------------------------------------------------------------------
#			Main Screen
# Created using DRE.  
#---------------------------------------------------------------------
screen ID_MAIN_SCREEN

	title = "AudioDemo"
	className = "MainWindow"
	actionMenu = ID_MENU_AUDIO_DEMO

	staticText
		text = "Background music:"
		id = _CNTRL_ID_MUSIC
		alignWithParentLeft = 25
		alignWithParentTop = 15
		justifyLeft
		font = boldSysFont

	staticText
		text = ID_PLAYING
		id = ID_PLAYING_TEXT
		justifyLeft
		positionToRight = _CNTRL_ID_MUSIC : 3
		alignBottom = _CNTRL_ID_MUSIC
		fillToRight = 5

	staticText
		text = "Press a Joypad direction to Fire."
		positionBelow = ID_PLAYING_TEXT : 15
		justifyLeft
		alignWithParentLeft = 20
		fillToRight = 5
endScreen
