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

<exbulletml>

<action label="online_function_select_top">
	<repeat><times>$_myscoreupdated-gt0</times>
		<network><command>identify</command></network>
		<network><command>willsendscore</command></network>
		<network><command>resetscore</command></network>
		<network><command>sendmescore</command></network>
		<network><command>commitscore</command></network>	
		<network><command>sendmerank</command></network>
	</repeat>


	<actionRef label="online_function_title_string_create_action"></actionRef>
	<actionRef label="online_function_selectable_string_create_action"></actionRef>

	<create>
		<speed>0</speed><direction>0</direction>
		<cx>400+60</cx><cy>300</cy>
		<object label="online_download_object">
			<img type="normal">
				<file type="dds">title_parts7</file>
				<left>48*0</left><top>48*0</top><right>48*10</right><bottom>48*1</bottom>
				<width>48*10</width><height>48</height>
				<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
			</img>
			<setDrawLevel><num>28</num></setDrawLevel>
			<rep><ts>-1</ts>
				<changeColor>
					<alpha>0</alpha><red>255</red><green>255</green><blue>255</blue><term>30</term>
				</changeColor>
				<wait>30</wait>
				<changeColor>
					<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue><term>30</term>
				</changeColor>
				<wait>30</wait>
			</rep>
		</object>
	</create>

  <rep><ts>60*15</ts>
		<rep><ts>$_pendingonline</ts>
			<w>1</w>
		</rep>
  </rep>
	<targetRevenge label="online_download_object"></targetRevenge>
	
	<actionRef label="online_function_selectable_create_action"></actionRef>
</action>

<action label="online_function_select_top_nameback">
	<system><command>updatescorename</command></system>

	<repeat><times>$_myscoreupdated-gt0</times>
		<network><command>identify</command></network>
		<network><command>willsendscore</command></network>
		<network><command>resetscore</command></network>
		<network><command>sendmescore</command></network>
		<network><command>commitscore</command></network>
		<network><command>sendmerank</command></network>
	</repeat>

	<actionRef label="online_function_selectable_string_create_action"></actionRef>
	<actionRef label="online_function_selectable_create_action"></actionRef>
</action>

<action label="online_function_select_top_scoreback">
	<actionRef label="online_function_selectable_create_action"></actionRef>
</action>


<action label="online_function_selectable_string_create_action">
	<eval name="xbase">400+80</eval>
	<eval name="ybase">240</eval>
	<eval name="height">60</eval>

	<actionRef label="online_function_status_string_create_action"></actionRef>
</action>


<!-- 接続状態の表示 -->
<action label="online_function_status_string_create_action">
	
	<create>
		<direction type="absolute">0</direction><speed type="absolute">0</speed>
		<cx>400-120</cx><cy>90</cy>
		<object label="str_object_online">
			<imgRef label="online_status_img_1"></imgRef>	
			<setDrawLevel><num>26</num></setDrawLevel>
			<revengeRef label="title_parts_common_revenge"></revengeRef>
		</object>	
	</create>
	
	<create>
		<direction type="absolute">0</direction><speed type="absolute">0</speed>
		<cx>400+110</cx><cy>90</cy>
		<object label="str_object_online">
			<imgRef label="online_status_img_2"></imgRef>	
			<setDrawLevel><num>26</num></setDrawLevel>
			<revengeRef label="title_parts_common_revenge"></revengeRef>
		</object>	
	</create>
	
	<repeat><times>$_isonline-eq1</times>
		<create>
			<cx>400-5</cx><cy>90</cy>
			<object label="str_object_online">
				<imgRef label="online_status_img_online"></imgRef>	
				<setDrawLevel><num>26</num></setDrawLevel>
				<revengeRef label="title_parts_common_revenge"></revengeRef>
			</object>	
		</create>
	</repeat>
	<repeat><times>1-($_isonline-eq1)</times>
		<create>
			<cx>400-20</cx><cy>90</cy>
			<object label="str_object_online">
				<imgRef label="online_status_img_offline"></imgRef>	
				<setDrawLevel><num>26</num></setDrawLevel>
				<revengeRef label="title_parts_common_revenge"></revengeRef>
			</object>	
		</create>
	</repeat>
</action>

<action label="online_function_title_string_create_action">
	<create>
		<cx>400</cx><cy>40</cy><speed>0</speed><direction>0</direction>
		<object label="str_object_online_title">
			<img type="normal">
				<file type="dds">title_record_img_1</file>
				<left>0</left><top>64*5</top><right>64*3</right><bottom>64*6</bottom>
				<width>64*3</width><height>64</height>
				<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
			</img>
			<setDrawLevel><num>15</num></setDrawLevel>
			<revengeRef label="object_15frame_revenge"></revengeRef>cd 
		</object>
	</create>
</action>


<img type="normal" label="online_status_img_1">
	<file type="dds">online_selectable</file>
	<left>0</left><top>48</top><right>48*2</right><bottom>48*2</bottom>
	<width>48*2</width><height>48</height>
	<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
</img>

<img type="normal" label="online_status_img_2">
	<file type="dds">online_selectable</file>
	<left>48*2</left><top>48</top><right>48*5</right><bottom>48*2</bottom>
	<width>48*3</width><height>48</height>
	<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
</img>

<img type="normal" label="online_status_img_online">
	<file type="dds">online_selectable</file>
	<left>0</left><top>0</top><right>48*3</right><bottom>48</bottom>
	<width>48*3</width><height>48</height>
	<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
</img>

<img type="normal" label="online_status_img_offline">
	<file type="dds">online_selectable</file>
	<left>48*3</left><top>0</top><right>48*6</right><bottom>48</bottom>
	<width>48*3</width><height>48</height>
	<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
</img>




<action label="online_function_selectable_create_action">
	<eval name="xbase">400</eval>
	<eval name="ybase">300</eval>
	<eval name="height">72</eval>

	<rep><ts>$__global_online_top_cursor_position-eq0</ts>
		<eval n="initialpos0">0</eval>
		<eval n="initialpos1">1</eval>
		<eval n="initialpos2">2</eval>
		<eval n="initialpos3">3</eval>
		<eval n="initialpos4">-2</eval>
		<eval n="initialpos5">-1</eval>
	</rep>	
	<rep><ts>$__global_online_top_cursor_position-eq1</ts>
		<eval n="initialpos0">-1</eval>
		<eval n="initialpos1">0</eval>
		<eval n="initialpos2">1</eval>
		<eval n="initialpos3">2</eval>
		<eval n="initialpos4">3</eval>
		<eval n="initialpos5">-2</eval>
	</rep>	
	<rep><ts>$__global_online_top_cursor_position-eq2</ts>
		<eval n="initialpos0">-2</eval>
		<eval n="initialpos1">-1</eval>
		<eval n="initialpos2">0</eval>
		<eval n="initialpos3">1</eval>
		<eval n="initialpos4">2</eval>
		<eval n="initialpos5">3</eval>
	</rep>	
	<rep><ts>$__global_online_top_cursor_position-eq3</ts>
		<eval n="initialpos0">3</eval>
		<eval n="initialpos1">-2</eval>
		<eval n="initialpos2">-1</eval>
		<eval n="initialpos3">0</eval>
		<eval n="initialpos4">1</eval>
		<eval n="initialpos5">2</eval>
	</rep>	
	<rep><ts>$__global_online_top_cursor_position-eq4</ts>
		<eval n="initialpos0">2</eval>
		<eval n="initialpos1">3</eval>
		<eval n="initialpos2">-2</eval>
		<eval n="initialpos3">-1</eval>
		<eval n="initialpos4">0</eval>
		<eval n="initialpos5">1</eval>
	</rep>	
	<rep><ts>$__global_online_top_cursor_position-eq5</ts>
		<eval n="initialpos0">1</eval>
		<eval n="initialpos1">2</eval>
		<eval n="initialpos2">3</eval>
		<eval n="initialpos3">-2</eval>
		<eval n="initialpos4">-1</eval>
		<eval n="initialpos5">0</eval>
	</rep>	

	<!-- カーソル -->
	<create>
		<x>0</x><y>0</y>
		<cursor>
			<decidedRef    label="online_function_cursor_decided"></decidedRef>
			<selectedRef   label="online_function_cursor_selected"></selectedRef>
			<unselectedRef label="online_function_cursor_unselected"></unselectedRef>
			<actionRef	   label="online_function_cursor_action"></actionRef>
		</cursor>
	</create>


	<!-- 選択肢が３個しか無いので無理やり６個作る-->

	<!-- 選択肢１:スコア -->
	<create>
		<cx>$xbase</cx><cy>$ybase+$height*$initialpos0</cy>
		<speed>0</speed><direction>0</direction>
		<x>0</x><y>0</y>
		<selectableRef label="online_function_selectable_score"><p>0</p></selectableRef>
	</create>

	<!-- 選択肢２:リプレイ -->
	<create>
		<cx>$xbase</cx><cy>$ybase+$height*$initialpos1</cy>
		<speed>0</speed><direction>0</direction>
		<x>0</x><y>1</y>
		<selectableRef label="online_function_selectable_replay"><p>1</p></selectableRef>
	</create>

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

	<!-- 選択肢１:スコア -->
	<create>
		<cx>$xbase</cx><cy>$ybase+$height*$initialpos3</cy>
		<speed>0</speed><direction>0</direction>
		<x>0</x><y>3</y>
		<selectableRef label="online_function_selectable_score"><p>3</p></selectableRef>
	</create>

	<!-- 選択肢２:リプレイ -->
	<create>
		<cx>$xbase</cx><cy>$ybase+$height*$initialpos4</cy>
		<speed>0</speed><direction>0</direction>
		<x>0</x><y>4</y>
		<selectableRef label="online_function_selectable_replay"><p>4</p></selectableRef>
	</create>

	<!-- 選択肢３:プラクティスリプレイ -->
	<create>
		<cx>$xbase</cx><cy>$ybase+$height*$initialpos5</cy>
		<speed>0</speed><direction>0</direction>
		<x>0</x><y>5</y>
		<selectableRef label="online_function_selectable_practicereplay"><p>5</p></selectableRef>
	</create>


	<rep><ts>$_isonline-eq0</ts>
		<disableTable><x>0</x><y>1</y></disableTable>
		<disableTable><x>0</x><y>2</y></disableTable>
		<disableTable><x>0</x><y>4</y></disableTable>
		<disableTable><x>0</x><y>5</y></disableTable>
	</rep>

</action>


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

	<actionRef l="circle_effect_create_action"><p>400-32</p><p>300</p></actionRef>
	
<!--
	<targetRevenge label="str_object_online"></targetRevenge>
-->
	<vanish></vanish>
</decided>

<unselected   label="online_function_cursor_unselected">
	<targetRevenge label="str_object"></targetRevenge>
	<targetRevenge label="str_object_online"></targetRevenge>
	<targetRevenge label="str_object_online_title"></targetRevenge>

	<sound type="se">
		<track><file type="ogg">cursor_can</file></track>
		<play><flag>0</flag><loop>0</loop></play>
	</sound>
	
	<actionRef label="title_selectable_create_action"></actionRef>	
	<vanish></vanish>
</unselected>

<selected   label="online_function_cursor_selected">
	<sound type="se">
		<track><file type="ogg">cursor_mv</file></track>
		<play><flag>0</flag><loop>0</loop></play>
	</sound>
	<actionRef l="cursor_particle_create_action"><p>16</p><p>0</p></actionRef>
	<setWaitCount><num>12</num></setWaitCount>
</selected>

<action	   label="online_function_cursor_action"></action>


<!-- ************************************************************************************************ -->
<present l="online_selectable_decided_present">
</present>

<present l="online_selectable_common_present">
	<actionRef label="online_selectable_common_present_action"><p>$1</p></actionRef>
</present>

<action	    label="online_selectable_common_present_action">
	<eval name="xbase">400</eval>
	<eval name="ybase">300</eval>
	<eval name="height">72</eval>
	<eval n="mypos">$1</eval>
	<eval n="old_cursor_y">$_cursor_y</eval>

	<eval n="myalpha">255</eval>
	<rep><ts>$_isonline-eq0</ts>
		<rep><ts>(($mypos-eq1)+($mypos-eq2)+($mypos-eq4)+($mypos-eq5))-gt0</ts>
			<eval n="myalpha">128</eval>	
		</rep>
	</rep>


	<eval n="tmppos">($mypos-$_cursor_y+12)%6</eval>
	<eval n="oldtmppos">($mypos-$_cursor_y+12)%6</eval>
	<rep><ts>$tmppos-eq0</ts>
		<changeColor><alpha>$myalpha</alpha><red>255</red><green>255</green><blue>255</blue><term>0</term></changeColor>
	</rep>
	<rep><ts>$tmppos-eq1</ts>
		<changeColor><alpha>128</alpha><red>255</red><green>255</green><blue>255</blue><term>0</term></changeColor>
	</rep>
	<rep><ts>$tmppos-eq2</ts>
		<changeColor><alpha>32</alpha><red>255</red><green>255</green><blue>255</blue><term>0</term></changeColor>
	</rep>
	<rep><ts>$tmppos-eq3</ts>
		<changeColor><alpha>0</alpha><red>255</red><green>255</green><blue>255</blue><term>0</term></changeColor>
	</rep>
	<rep><ts>$tmppos-eq4</ts>
		<changeColor><alpha>32</alpha><red>255</red><green>255</green><blue>255</blue><term>0</term></changeColor>
	</rep>
	<rep><ts>$tmppos-eq5</ts>
		<changeColor><alpha>128</alpha><red>255</red><green>255</green><blue>255</blue><term>0</term></changeColor>
	</rep>


	<rep><ts>-1</ts>
		<rep><ts>1-($old_cursor_y-eq$_cursor_y)</ts>
			<eval n="old_cursor_y">$_cursor_y</eval>

			<changeSpeed><speed>12</speed><term>0</term></changeSpeed>
			<eval n="tmppos">($mypos-$_cursor_y+12)%6</eval>

			<rep><ts>$tmppos-eq0</ts>
				<changeColor>
					<alpha>$myalpha</alpha><red>255</red><green>255</green><blue>255</blue><term>8</term>			
				</changeColor>
				<changePosition type="center"><x>$xbase</x><y>$ybase+$height*0</y></changePosition>
			</rep>

			<rep><ts>$tmppos-eq1</ts>
				<changeColor>
					<alpha>128</alpha><red>255</red><green>255</green><blue>255</blue><term>8</term>			
				</changeColor>
				<changePosition type="center"><x>$xbase</x><y>$ybase+$height*1</y></changePosition>
			</rep>

			<rep><ts>$tmppos-eq2</ts>
				<changeColor>
					<alpha>32</alpha><red>255</red><green>255</green><blue>255</blue><term>8</term>			
				</changeColor>
				<rep><ts>$oldtmppos-eq3</ts>
					<setPosition type="center"><x>$xbase</x><y>$ybase+$height*2</y></setPosition>
				</rep>
				<rep><ts>1-($oldtmppos-eq3)</ts>
					<changePosition type="center"><x>$xbase</x><y>$ybase+$height*2</y></changePosition>
				</rep>
			</rep>

			<rep><ts>$tmppos-eq3</ts>
				<changeColor>
					<alpha>0</alpha><red>255</red><green>255</green><blue>255</blue><term>8</term>			
				</changeColor>
				<setPosition type="center"><x>$xbase</x><y>$ybase+$height*0</y></setPosition>
			</rep>

			<rep><ts>$tmppos-eq4</ts>
				<changeColor>
					<alpha>32</alpha><red>255</red><green>255</green><blue>255</blue><term>8</term>			
				</changeColor>
				<rep><ts>$oldtmppos-eq3</ts>
					<setPosition type="center"><x>$xbase</x><y>$ybase-$height*2</y></setPosition>
				</rep>
				<rep><ts>1-($oldtmppos-eq3)</ts>
					<changePosition type="center"><x>$xbase</x><y>$ybase-$height*2</y></changePosition>
				</rep>
			</rep>

	
			<rep><ts>$tmppos-eq5</ts>
				<changeColor>
					<alpha>128</alpha><red>255</red><green>255</green><blue>255</blue><term>8</term>			
				</changeColor>
				<changePosition type="center"><x>$xbase</x><y>$ybase-$height*1</y></changePosition>
			</rep>

			<changeSpeed><speed>0</speed><term>0</term></changeSpeed>
		</rep>	

		<eval n="oldtmppos">($mypos-$_cursor_y+12)%6</eval>
		<w>1</w>
	</rep>
</action>

<!-- ********************************************************************* -->
<!-- *** SCORE RANKING ***************************************************** -->
<selectable label="online_function_selectable_score">
	<decidedRef    label="online_function_selectable_score_decided"></decidedRef>
	<selectedRef   label="selectable_common_selected"></selectedRef>
	<unselectedRef label="selectable_common_unselected"></unselectedRef>
	<revengeRef	   label="selectable_common_revenge"></revengeRef>
	<actionRef	   label="online_function_selectable_score_action"><p>$1</p></actionRef>
</selectable>

<decided    label="online_function_selectable_score_decided">
	<presentRef l="online_selectable_decided_present"></presentRef>

	<global name="online_function">1</global>
	<changeColor>
		<alpha>0</alpha><red>255</red><green>255</green><blue>255</blue><term>15</term>
	</changeColor>

	<actionRef label="online_record_difficulty_select_top"></actionRef>	
	<wait>15</wait>
	<vanish></vanish>
</decided>

<action		label="online_function_selectable_score_action">

	<img type="normal">
		<file type="dds">title_record_img_2</file>
		<left>256*0</left><top>48*0</top><right>256*0+256</right><bottom>48*1</bottom>
		<width>256</width><height>48</height>
		<alpha>0</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>

	<setDrawLevel><num>3</num></setDrawLevel>

	<rep><ts>$__global_online_top_cursor_position-eq0</ts>
		<changeColor>
			<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue><term>0</term>
		</changeColor>
	</rep>

	<presentRef l="online_selectable_common_present"><p>$1</p></presentRef>

</action>

<!-- ********************************************************************* -->
<!-- *** REPLAY  ***************************************************** -->
<selectable label="online_function_selectable_replay">
	<decidedRef    label="online_function_selectable_replay_decided"></decidedRef>
	<selectedRef   label="selectable_common_selected"></selectedRef>
	<unselectedRef label="selectable_common_unselected"></unselectedRef>
	<revengeRef	   label="selectable_common_revenge"></revengeRef>
	<actionRef	   label="online_function_selectable_replay_action"><p>$1</p></actionRef>
</selectable>

<decided    label="online_function_selectable_replay_decided">
	<presentRef l="online_selectable_decided_present"></presentRef>

	<global name="online_function">2</global>
	<changeColor>
		<alpha>0</alpha><red>255</red><green>255</green><blue>255</blue><term>15</term>
	</changeColor>

	<actionRef label="online_record_difficulty_select_top"></actionRef>	
	<wait>15</wait>
	<vanish></vanish>
</decided>

<action		label="online_function_selectable_replay_action">

	<img type="normal">
		<file type="dds">title_selectable_img</file>
		<left>256*1</left><top>48*4</top><right>256*1+256</right><bottom>48*5</bottom>
		<width>256</width><height>48</height>
		<alpha>0</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>

	<setDrawLevel><num>3</num></setDrawLevel>

	<rep><ts>$__global_online_top_cursor_position-eq1</ts>
		<changeColor>
			<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue><term>0</term>
		</changeColor>
	</rep>
	<rep><ts>$_isonline-eq0</ts>
		<changeColor>
			<alpha>128</alpha><red>255</red><green>255</green><blue>255</blue><term>0</term>
		</changeColor>
	</rep>

	<presentRef l="online_selectable_common_present"><p>$1</p></presentRef>
</action>

<!-- ********************************************************************* -->
<!-- *** PRACTICE REPLAY  ***************************************************** -->
<selectable label="online_function_selectable_practicereplay">
	<decidedRef    label="online_function_selectable_practicereplay_decided"></decidedRef>
	<selectedRef   label="selectable_common_selected"></selectedRef>
	<unselectedRef label="selectable_common_unselected"></unselectedRef>
	<revengeRef	   label="selectable_common_revenge"></revengeRef>
	<actionRef	   label="online_function_selectable_practicereplay_action"><p>$1</p></actionRef>
</selectable>

<decided    label="online_function_selectable_practicereplay_decided">
	<presentRef l="online_selectable_decided_present"></presentRef>

	<global name="online_function">3</global>
	<changeColor>
		<alpha>0</alpha><red>255</red><green>255</green><blue>255</blue><term>15</term>
	</changeColor>

	<!-- BUG 10292 -->
	<actionRef label="online_record_character_select_top_from_menu"></actionRef>
<!--
	<actionRef label="online_record_difficulty_select_top"></actionRef>	
-->
	<wait>15</wait>
	<vanish></vanish>
</decided>

<action		label="online_function_selectable_practicereplay_action">

	<img type="normal">
		<file type="dds">title_selectable_img</file>
		<left>256*1</left><top>48*9</top><right>256*1+256</right><bottom>48*10</bottom>
		<width>256</width><height>48</height>
		<alpha>0</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>

	<setDrawLevel><num>3</num></setDrawLevel>

	<rep><ts>$__global_online_top_cursor_position-eq2</ts>
		<changeColor>
			<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue><term>0</term>
		</changeColor>
	</rep>
	<rep><ts>$_isonline-eq0</ts>
		<changeColor>
			<alpha>128</alpha><red>255</red><green>255</green><blue>255</blue><term>0</term>
		</changeColor>
	</rep>

	<presentRef l="online_selectable_common_present"><p>$1</p></presentRef>
</action>



<!-- **************************************************************************** -->
<revenge label="title_parts_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>


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

<img type="add" label="online_selectable_selected_img">
	<file type="dds">rectwhite</file>
	<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
	<width>400</width><height>32</height>
	<alpha>0</alpha><red>200</red><green>200</green><blue>32</blue>
</img>
<img type="add" label="online_selectable_unselected_img">
	<file type="dds">rectwhite</file>
	<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
	<width>400</width><height>32</height>
	<alpha>0</alpha><red>200</red><green>200</green><blue>32</blue>
</img>

<img type="normal" label="online_selectable_img">
	<file type="dds">online_selectable</file>
	<left>$1</left><top>$2</top><right>$3</right><bottom>$4</bottom>
	<width>$3-$1</width><height>$4-$2</height>
	<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
</img>


</exbulletml>
