<?xml version="1.0" encoding="shift-jis"?>

<exbulletml>

<!--
<action label="top">
	<system><command>esctocancelon</command></system>

	<actionRef label="bg_create_action"></actionRef>
	<actionRef label="title_selectable_create_action"></actionRef>
	
	<sound type="bgm" label="bgm">
		<track><file type="ogg">01_title</file></track>
		<play><flag>1</flag><loop>0</loop></play>	
	</sound>
	
</action>
-->


<!-- ******* 変数初期化 ************************************** -->
<action label="title_setting_action">
	<system><command>resetscore</command></system>
	<system><command>playermovedisable</command></system>
	<system><command>endreplay</command></system>
	<system><command>readreplayoff</command></system>
	<system><command>clearreplay</command></system>
	<system><command>practicemodeoff</command></system>
	<system><command>clearcontinue</command></system>
	<system><command>setreconfig</command></system>
	<system><command>playerswitchenable</command></system>
	<system><command>enablemaxstageupdate</command></system>
	<system><command>disableskipbutton</command></system>

	<sysvar name="nextstage">10</sysvar>
	<sysvar name="practice_mode">0</sysvar>
	<sysvar name="difficulty">1</sysvar>
</action>


<!-- ******* 選択肢作成 ************************************** -->
<action label="title_selectable_create_action">
	<actionRef label="title_setting_action"></actionRef>

	<eval name="xbase">160</eval>
	<eval name="ybase">160</eval>
	<eval name="height">34</eval>

	<sysvar name="difficulty">1</sysvar>

	<!-- カーソル -->
	<create>
		<x>0</x><y>0</y>
		<cursor>
			<flag>1</flag>
			<decidedRef    label="cursor_decided"></decidedRef>
			<selectedRef   label="cursor_selected"></selectedRef>
			<unselectedRef label="cursor_unselected"></unselectedRef>
			<actionRef	   label="cursor_action"></actionRef>
		</cursor>
	</create>

	<!-- 選択肢１:ゲームスタート -->
	<create>
		<cx>$xbase</cx><cy>$ybase+$height*0</cy>
		<speed>0</speed><direction>0</direction>
		<x>0</x><y>0</y>
		<selectableRef label="selectable_gamestart"></selectableRef>
	</create>

	<!-- 選択肢２:エクストラ -->
	<create>
		<cx>$xbase-9</cx><cy>$ybase+$height*1</cy>
		<speed>0</speed><direction>0</direction>
		<x>0</x><y>1</y>
		<selectableRef label="selectable_extra"></selectableRef>
	</create>

	<!-- 選択肢３:プラクティス -->
	<create>
		<cx>$xbase</cx><cy>$ybase+$height*2</cy>
		<speed>0</speed><direction>0</direction>
		<x>0</x><y>2</y>
		<selectableRef label="selectable_practice"></selectableRef>
	</create>

	<!-- 選択肢４:リプレイ -->
	<create>
		<cx>$xbase</cx><cy>$ybase+$height*3</cy>
		<speed>0</speed><direction>0</direction>
		<x>0</x><y>3</y>
		<selectableRef label="selectable_replay"></selectableRef>
	</create>

	<!-- 選択肢３:レコード -->
	<create>
		<cx>$xbase</cx><cy>$ybase+$height*4</cy>
		<speed>0</speed><direction>0</direction>
		<x>0</x><y>4</y>
		<selectableRef label="selectable_record"></selectableRef>
	</create>

	<!-- 選択肢６:オンライン -->
	<create>
		<cx>$xbase</cx><cy>$ybase+$height*5</cy>
		<speed>0</speed><direction>0</direction>
		<x>0</x><y>5</y>
		<selectableRef label="selectable_online"></selectableRef>
	</create>

	<!-- 選択肢７:コンフィグ -->
	<create>
		<cx>$xbase</cx><cy>$ybase+$height*6</cy>
		<speed>0</speed><direction>0</direction>
		<x>0</x><y>6</y>
		<selectableRef label="selectable_config"></selectableRef>
	</create>

	<!-- 選択肢８:終了 -->
	<create>
		<cx>$xbase</cx><cy>$ybase+$height*7</cy>
		<speed>0</speed><direction>0</direction>
		<x>0</x><y>7</y>
		<selectableRef label="selectable_exit"></selectableRef>
	</create>
	
	<!--
	<disableTable>
		<x>0</x><y>5</y>
	</disableTable>
	<disableTable>
		<x>0</x><y>6</y>
	</disableTable>
	-->


	<create>
		<speed>0</speed><direction type="absolute">0</direction>
		<cx>320+48</cx><cy>32+16</cy>
		<object label="title_bg_object">
			<revengeRef label="selectable_common_revenge"></revengeRef>
			<img type="add">
				<file type="dds">title_selectable_2</file>
				<left>0</left><top>0</top><right>512</right><bottom>72</bottom>
				<width>512</width><height>72</height>
				<alpha>0</alpha><red>255</red><green>255</green><blue>255</blue>
			</img>
			<setDrawLevel><num>10</num></setDrawLevel>
			<changeColor>
				<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue><term>10</term>
			</changeColor>	
		</object>
	</create>
	
	<create>
		<speed>0</speed><direction type="absolute">0</direction>
		<cx>320</cx><cy>480-20</cy>
		<object label="title_bg_object">
			<revengeRef label="selectable_common_revenge"></revengeRef>
			<img type="add">
				<file type="dds">title_selectable_2</file>
				<left>0</left><top>512-32</top><right>512-32*3</right><bottom>512</bottom>
				<width>512-32*3</width><height>32</height>
				<alpha>0</alpha><red>255</red><green>255</green><blue>255</blue>
			</img>
			<setDrawLevel><num>10</num></setDrawLevel>
			<changeColor>
				<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue><term>10</term>
			</changeColor>	
		</object>
	</create>

	<!-- 体験版
	<create>
		<speed>0</speed><direction type="absolute">0</direction>
		<cx>320</cx><cy>90</cy>
		<object label="title_bg_object">
			<revengeRef label="selectable_common_revenge"></revengeRef>
			<img type="add">
				<file type="dds">title_selectable_2</file>
				<left>0</left><top>36*12</top><right>180</right><bottom>36*13</bottom>
				<width>180</width><height>36</height>
				<alpha>0</alpha><red>255</red><green>255</green><blue>255</blue>
			</img>
			<setDrawLevel><num>10</num></setDrawLevel>
			<changeColor>
				<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue><term>10</term>
			</changeColor>	
		</object>
	</create>
	-->

	<!-- バージョン番号 -->
	<actionRef label="title_version_str_create_action"></actionRef>
	
</action>

<action label="title_version_str_create_action">
	<createRef label="title_version_str_create"><param>640-80</param><param>470</param><param>4</param><param>5</param></createRef>
	<createRef label="title_version_str_create"><param>640-70</param><param>470</param><param>7</param><param>3</param></createRef>
	<createRef label="title_version_str_create"><param>640-60</param><param>470</param><param>0</param><param>5</param></createRef>

	<createRef label="title_version_str_create"><param>640-40</param><param>470</param><param>($_majorversion+6)%10</param><param>((($_majorversion+6)/10)%10)+1</param></createRef>
	<createRef label="title_version_str_create"><param>640-30</param><param>470</param><param>4</param><param>1</param></createRef>
	<createRef label="title_version_str_create"><param>640-20</param><param>470</param><param>((($_minorversion/10)%10)+6)%10</param><param>((((($_minorversion/10)%10)+6)/10)%10)+1</param></createRef>
	<createRef label="title_version_str_create"><param>640-10</param><param>470</param><param>(($_minorversion%10)+6)%10</param><param>(((($_minorversion%10)+6)/10)%10)+1</param></createRef>

</action>

<create label="title_version_str_create">
	<speed>0</speed><direction type="absolute">0</direction>
	<cx>$1</cx><cy>$2</cy>
	<object label="title_bg_object">
		<revengeRef label="selectable_common_revenge"></revengeRef>
		<imgRef label="title_version_str"><param>$3</param><param>$4</param></imgRef>
		<setDrawLevel><num>10</num></setDrawLevel>
		<changeColor>
			<alpha>220</alpha><red>255</red><green>255</green><blue>255</blue><term>10</term>
		</changeColor>	
	</object>
</create>

<img type="nomal" label="title_version_str">
	<file type="dds">hpk9x12mono</file>
	<left>$1*10</left><top>$2*12</top><right>$1*10+10</right><bottom>$2*12+12</bottom>
	<width>10</width><height>12</height>
	<alpha>0</alpha><red>255</red><green>255</green><blue>255</blue>
</img>

<selectable label="selectable_gamestart">
	<decidedRef    label="selectable_gamestart_decided"></decidedRef>
	<selectedRef   label="selectable_common_selected"><param>0</param></selectedRef>
	<unselectedRef label="selectable_gamestart_unselected"><param>0</param></unselectedRef>
	<revengeRef	   label="selectable_common_revenge"></revengeRef>
	<actionRef	   label="selectable_gamestart_action"></actionRef>
</selectable>

<selectable label="selectable_extra">
	<decidedRef    label="selectable_extra_decided"></decidedRef>
	<selectedRef   label="selectable_extra_selected"><param>1</param></selectedRef>
	<unselectedRef label="selectable_extra_unselected"><param>1</param></unselectedRef>
	<revengeRef	   label="selectable_common_revenge"></revengeRef>
	<actionRef	   label="selectable_extra_action"></actionRef>
</selectable>

<selectable label="selectable_practice">
	<decidedRef    label="selectable_practice_decided"></decidedRef>
	<selectedRef   label="selectable_common_selected"><param>2</param></selectedRef>
	<unselectedRef label="selectable_common_unselected"><param>2</param></unselectedRef>
	<revengeRef	   label="selectable_common_revenge"></revengeRef>
	<actionRef	   label="selectable_practice_action"></actionRef>
</selectable>

<selectable label="selectable_replay">
	<decidedRef    label="selectable_replay_decided"></decidedRef>
	<selectedRef   label="selectable_common_selected"><param>3</param></selectedRef>
	<unselectedRef label="selectable_common_unselected"><param>3</param></unselectedRef>
	<revengeRef	   label="selectable_common_revenge"></revengeRef>
	<actionRef	   label="selectable_replay_action"></actionRef>
</selectable>

<selectable label="selectable_record">
	<decidedRef    label="selectable_record_decided"></decidedRef>
	<selectedRef   label="selectable_common_selected"><param>4</param></selectedRef>
	<unselectedRef label="selectable_common_unselected"><param>4</param></unselectedRef>
	<revengeRef	   label="selectable_common_revenge"></revengeRef>
	<actionRef	   label="selectable_record_action"></actionRef>
</selectable>

<selectable label="selectable_online">
	<decidedRef    label="selectable_online_decided"></decidedRef>
	<selectedRef   label="selectable_common_selected"><param>5</param></selectedRef>
	<unselectedRef label="selectable_common_unselected"><param>5</param></unselectedRef>
	<revengeRef	   label="selectable_common_revenge"></revengeRef>
	<actionRef	   label="selectable_online_action"></actionRef>
</selectable>

<selectable label="selectable_config">
	<decidedRef    label="selectable_config_decided"></decidedRef>
	<selectedRef   label="selectable_common_selected"><param>6</param></selectedRef>
	<unselectedRef label="selectable_common_unselected"><param>6</param></unselectedRef>
	<revengeRef	   label="selectable_common_revenge"></revengeRef>
	<actionRef	   label="selectable_config_action"></actionRef>
</selectable>

<selectable label="selectable_exit">
	<decidedRef    label="selectable_exit_decided"></decidedRef>
	<selectedRef   label="selectable_common_selected"><param>7</param></selectedRef>
	<unselectedRef label="selectable_common_unselected"><param>7</param></unselectedRef>
	<revengeRef	   label="selectable_common_revenge"></revengeRef>
	<actionRef	   label="selectable_exit_action"></actionRef>
</selectable>



<selected   label="selectable_common_selected">
	<changeColor>
		<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue><term>1</term>
	</changeColor>	
	<setImgUV>
		<left>256</left><top>3*36+$1*36-2</top><right>512</right><bottom>4*36+$1*36-2</bottom>
	</setImgUV>
</selected>

<unselected label="selectable_common_unselected">
	<changeColor>
		<alpha>80</alpha><red>255</red><green>255</green><blue>255</blue><term>15</term>
	</changeColor>
	<setImgUV>
		<left>0</left><top>3*36+$1*36-2</top><right>256</right><bottom>4*36+$1*36-2</bottom>
	</setImgUV>
</unselected>

<revenge label="selectable_common_revenge">
	<changeColor>
		<alpha>0</alpha><red>255</red><green>255</green><blue>255</blue><term>15</term>
	</changeColor>
	<wait>15</wait>
	<vanish></vanish>
</revenge>

<decided    label="selectable_gamestart_decided">
	<targetRevenge label="title_bg_object"></targetRevenge>
	<changeColor>
		<alpha>0</alpha><red>255</red><green>255</green><blue>255</blue><term>15</term>
	</changeColor>	
	<wait>15</wait>

	<actionRef label="difficulty_select_top"></actionRef>
	<vanish></vanish>	
</decided>

<selected   label="selectable_extra_selected">
	<changeColor>
		<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue><term>1</term>
	</changeColor>	
	<setImgUV>
		<left>18</left><top>2*36</top><right>256</right><bottom>3*36</bottom>
	</setImgUV>
</selected>

<unselected label="selectable_extra_unselected">
	<changeColor>
		<alpha>80</alpha><red>255</red><green>255</green><blue>255</blue><term>15</term>
	</changeColor>
	<setImgUV>
		<left>0</left><top>0*36</top><right>256-18</right><bottom>1*36</bottom>
	</setImgUV>
</unselected>
<decided    label="selectable_extra_decided">
	<targetRevenge label="title_bg_object"></targetRevenge>
	<changeColor>
		<alpha>0</alpha><red>255</red><green>255</green><blue>255</blue><term>15</term>
	</changeColor>	
	<changeTargetVolume label="bgm">
		<num>-10000</num><term>60</term>
	</changeTargetVolume>

	<wait>3</wait>
	<sysvar name="difficulty">3</sysvar>
	<sysvar name="nextstage">90</sysvar>

	<actionRef label="charselect_top"></actionRef>
	<vanish></vanish>	
</decided>

<decided    label="selectable_practice_decided">
	<!-- プラクティスモードフラグを立てる -->
	<sysvar name="practice_mode">1</sysvar>

	<targetRevenge label="title_bg_object"></targetRevenge>
	<changeColor>
		<alpha>0</alpha><red>255</red><green>255</green><blue>255</blue><term>15</term>
	</changeColor>	
	<wait>15</wait>

	<actionRef label="difficulty_select_top"></actionRef>
	<vanish></vanish>	
</decided>

<decided    label="selectable_record_decided">
	<targetRevenge label="title_bg_object"></targetRevenge>
	<changeColor>
		<alpha>0</alpha><red>255</red><green>255</green><blue>255</blue><term>15</term>
	</changeColor>	
	<wait>15</wait>

	<actionRef label="record_select_top"></actionRef>
	<vanish></vanish>		
</decided>

<decided    label="selectable_replay_decided">
	<targetRevenge label="title_bg_object"></targetRevenge>
	<changeColor>
		<alpha>0</alpha><red>255</red><green>255</green><blue>255</blue><term>15</term>
	</changeColor>	
	<wait>15</wait>

	<actionRef label="replay_review_top"></actionRef>
	<vanish></vanish>
</decided>

<decided    label="selectable_online_decided">
	<targetRevenge label="title_bg_object"></targetRevenge>
	<changeColor>
		<alpha>0</alpha><red>255</red><green>255</green><blue>255</blue><term>15</term>
	</changeColor>	
	<wait>15</wait>

	<actionRef label="online_function_select_top"></actionRef>
	<vanish></vanish>
</decided>

<decided    label="selectable_config_decided">
	<targetRevenge label="title_bg_object"></targetRevenge>
	<changeColor>
		<alpha>0</alpha><red>255</red><green>255</green><blue>255</blue><term>15</term>
	</changeColor>	
	<wait>15</wait>

	<actionRef label="config_main_top"></actionRef>
	<vanish></vanish>
</decided>

<decided    label="selectable_exit_decided">
	<create>
		<speed>0</speed><direction>0</direction>
		<cx>320</cx><cy>240</cy>
		<object>
			<img type="normal">
				<file type="bmp">rectwhite</file>
				<left>256</left><top>0</top><right>64</right><bottom>64</bottom>
				<width>640</width><height>480</height>
				<alpha>0</alpha><red>0</red><green>0</green><blue>0</blue>
			</img>
			<setDrawLevel><num>32</num></setDrawLevel>
			<changeColor>
				<alpha>255</alpha><red>0</red><green>0</green><blue>0</blue><term>90</term>			
			</changeColor>
		</object>
	</create>

	<changeTargetVolume label="bgm">
		<num>-10000</num><term>60</term>	
	</changeTargetVolume>
	<wait>90</wait>
	<system><command>exit</command></system>
</decided>


<unselected label="selectable_gamestart_unselected">
	<wait>1</wait>
	<changeColor>
		<alpha>80</alpha><red>255</red><green>255</green><blue>255</blue><term>15</term>
	</changeColor>
	<setImgUV>
		<left>0</left><top>3*36+$1*36-2</top><right>256</right><bottom>4*36+$1*36-2</bottom>
	</setImgUV>
</unselected>

<action	    label="selectable_gamestart_action">
	<imgRef label="selectable_selected_img"><param>0</param></imgRef>
	<setDrawLevel><num>10</num></setDrawLevel>
</action>

<action	    label="selectable_extra_action">
	<imgRef label="selectable_ex_unselected_img"><param>1</param></imgRef>
	<setDrawLevel><num>10</num></setDrawLevel>
</action>

<action	    label="selectable_practice_action">
	<imgRef label="selectable_unselected_img"><param>2</param></imgRef>
	<setDrawLevel><num>10</num></setDrawLevel>
</action>

<action	    label="selectable_replay_action">
	<imgRef label="selectable_unselected_img"><param>3</param></imgRef>
	<setDrawLevel><num>10</num></setDrawLevel>
</action>

<action	    label="selectable_record_action">
	<imgRef label="selectable_unselected_img"><param>4</param></imgRef>
	<setDrawLevel><num>10</num></setDrawLevel>
</action>

<action	    label="selectable_online_action">
	<imgRef label="selectable_unselected_img"><param>5</param></imgRef>
	<setDrawLevel><num>10</num></setDrawLevel>
</action>

<action	    label="selectable_config_action">
	<imgRef label="selectable_unselected_img"><param>6</param></imgRef>
	<setDrawLevel><num>10</num></setDrawLevel>
</action>

<action	    label="selectable_exit_action">
	<imgRef label="selectable_unselected_img"><param>7</param></imgRef>
	<setDrawLevel><num>10</num></setDrawLevel>
</action>

<img type="add" label="selectable_selected_img">
	<file type="dds">title_selectable_2</file>
	<left>256</left><top>3*36+$1*36-2</top><right>512</right><bottom>4*36+$1*36-2</bottom>
	<width>256</width><height>32</height>
	<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
</img>
<img type="add" label="selectable_unselected_img">
	<file type="dds">title_selectable_2</file>
	<left>0</left><top>3*36+$1*36-2</top><right>256</right><bottom>4*36+$1*36-2</bottom>
	<width>256</width><height>32</height>
	<alpha>80</alpha><red>255</red><green>255</green><blue>255</blue>
</img>
<img type="add" label="selectable_ex_unselected_img">
	<file type="dds">title_selectable_ex</file>
	<left>0</left><top>0*36</top><right>256-18</right><bottom>1*36</bottom>
	<width>256-18</width><height>32</height>
	<alpha>80</alpha><red>255</red><green>255</green><blue>255</blue>
</img>

<!-- ******* カーソル実装 ************************************** -->
<action label="cursor_action">
</action>

<selected label="cursor_selected">
	<sound type="se">
		<track><file type="ogg">cursor_mv</file></track>
		<play><flag>0</flag><loop>0</loop></play>
	</sound>
</selected>

<unselected label="cursor_unselected">
<!--
	<sound type="se">
		<track><file type="ogg">cursor_can</file></track>
		<play><flag>0</flag><loop>0</loop></play>
	</sound>
-->

	<create>
		<cx>0</cx><cy>0</cy>
		<speed>0</speed><direction>0</direction>
		<object>
			<action>
				<wait>1</wait>
				<system><command>setselect</command><x>0</x><y>7</y></system>
			</action>
		</object>
	</create>
	
</unselected>

<decided label="cursor_decided">
	<sound type="se">
		<track><file type="ogg">cursor_sel</file></track>
		<play><flag>0</flag><loop>0</loop></play>
	</sound>
	<vanish></vanish>
</decided>


<!-- ********** ダミーアクション ************************ -->
<action label="player_top">
	<create>
		<player>
			<speed>0</speed>
			<direction>0</direction>
			<cx>400</cx><cy>300</cy>		
		</player>	
	</create>
</action>

<action label="shot_1_top">
	<create>
		<shot></shot>
	</create>
</action>

<action label="shot_2_top">
	<create>
		<shot></shot>
	</create>
</action>

<action label="option_top">
</action>

<action label="bomb_top">
</action>

<action label="gameover_top">
</action>

<action label="tensionup_top">
</action>


<!-- タイトル画面でのポーズアクション -->
<action label="pause_top">
</action>


</exbulletml>
