<?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_top_name_select_myname_create_action"></actionRef>
-->
	<actionRef label="online_function_selectable_string_create_action"></actionRef>
	<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_top_name_select_myname_create_action"></actionRef>
-->
	<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_top_name_select_myname_create_action"></actionRef>
-->
	<actionRef label="online_function_selectable_string_create_action"></actionRef>
	<actionRef label="online_function_selectable_create_action"></actionRef>
</action>


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

	<create>
		<direction type="absolute">0</direction><speed type="absolute">0</speed>
		<cx>$xbase</cx><cy>$ybase+$height*0</cy>
		<object label="str_object_online">
			<img type="normal">
				<file type="dds">online_selectable</file>
				<left>36*0</left><top>36*3</top><right>512</right><bottom>36*4</bottom>
				<width>512</width><height>36</height>
				<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
			</img>
			<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>$xbase</cx><cy>$ybase+$height*1</cy>
		<object label="str_object_online">
			<img type="normal">
				<file type="dds">online_selectable</file>
				<left>36*0</left><top>36*4</top><right>512</right><bottom>36*5</bottom>
				<width>512</width><height>36</height>
				<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
			</img>
			<setDrawLevel><num>26</num></setDrawLevel>
			<rep><ts>$_isonline-eq0</ts>
				<changeColor>
					<alpha>255</alpha><red>128</red><green>128</green><blue>128</blue><term>0</term>
				</changeColor>
			</rep>
			<revengeRef label="title_parts_common_revenge"></revengeRef>
		</object>	
	</create>

	<create>
		<direction type="absolute">0</direction><speed type="absolute">0</speed>
		<cx>$xbase</cx><cy>$ybase+$height*2</cy>
		<object label="str_object_online">
			<img type="normal">
				<file type="dds">online_selectable</file>
				<left>36*0</left><top>36*2</top><right>512</right><bottom>36*3</bottom>
				<width>512</width><height>36</height>
				<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
			</img>
			<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>$xbase</cx><cy>$ybase+$height*3</cy>
		<object label="str_object_online">
			<img type="normal">
				<file type="dds">online_selectable</file>
				<left>36*0</left><top>36*5</top><right>512</right><bottom>36*6</bottom>
				<width>512</width><height>36</height>
				<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
			</img>
			<setDrawLevel><num>26</num></setDrawLevel>
			<revengeRef label="title_parts_common_revenge"></revengeRef>
		</object>	
	</create>



	<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>160</cx><cy>140</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>320+80</cx><cy>140</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>320</cx><cy>140</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>320</cx><cy>140</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>320</cx><cy>30</cy><speed>0</speed><direction>0</direction>
		<object label="str_object_online_title">
			<img type="normal">
				<file type="dds">online_selectable</file>
				<left>0</left><top>36*8</top><right>36*4</right><bottom>36*10</bottom>
				<width>36*4</width><height>36*2</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>36</top><right>98</right><bottom>36*2</bottom>
	<width>98</width><height>36</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>104</left><top>36</top><right>104+150</right><bottom>36*2</bottom>
	<width>150</width><height>36</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>256</right><bottom>36</bottom>
	<width>256</width><height>36</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>256</left><top>0</top><right>512</right><bottom>36</bottom>
	<width>256</width><height>36</height>
	<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
</img>




<action label="online_function_selectable_create_action">
	<eval name="xbase">320</eval>
	<eval name="ybase">240</eval>
	<eval name="height">60</eval>

	<!-- カーソル -->
	<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*0</cy>
		<speed>0</speed><direction>0</direction>
		<x>0</x><y>0</y>
		<selectableRef label="online_function_selectable_score"></selectableRef>
	</create>

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

	<wait>1</wait>
	<!-- 選択肢３:名前変更 -->
	<create>
		<cx>$xbase</cx><cy>$ybase+$height*2</cy>
		<speed>0</speed><direction>0</direction>
		<x>0</x><y>2</y>
		<selectableRef label="online_function_selectable_name"></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="online_function_selectable_exit"></selectableRef>
	</create>

	<rep><ts>$_isonline-eq0</ts>
		<disableTable>
			<x>0</x><y>1</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>
	
	<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>
</selected>

<action	   label="online_function_cursor_action"></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"></actionRef>
</selectable>

<decided    label="online_function_selectable_score_decided">

	<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_from_menu"></actionRef>	
	<wait>15</wait>
	<vanish></vanish>
</decided>

<action		label="online_function_selectable_score_action">
	<imgRef label="online_selectable_selected_img"></imgRef>
	<setDrawLevel><num>3</num></setDrawLevel>
</action>

<!-- ********************************************************************* -->
<!-- *** REPLAY RANKING ***************************************************** -->
<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"></actionRef>
</selectable>

<decided    label="online_function_selectable_replay_decided">

	<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_from_menu"></actionRef>	
	<wait>15</wait>
	<vanish></vanish>
</decided>

<action		label="online_function_selectable_replay_action">
	<imgRef label="online_selectable_unselected_img"></imgRef>
	<setDrawLevel><num>3</num></setDrawLevel>
</action>

<!-- ********************************************************************* -->
<!-- *** NAME CHANGE ***************************************************** -->
<selectable label="online_function_selectable_name">
	<decidedRef    label="online_function_selectable_name_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_name_action"></actionRef>
</selectable>

<decided    label="online_function_selectable_name_decided">

	<global name="online_function">3</global>

	<changeColor>
		<alpha>0</alpha><red>255</red><green>255</green><blue>255</blue><term>15</term>
	</changeColor>
	<targetRevenge label="str_object_online"></targetRevenge>
	<wait>15</wait>
	
	<actionRef label="online_name_select_top"></actionRef>
	<vanish></vanish>
</decided>

<action		label="online_function_selectable_name_action">
	<imgRef label="online_selectable_unselected_img"></imgRef>
	<setDrawLevel><num>3</num></setDrawLevel>
</action>


<!-- ********************************************************************* -->
<selectable label="online_function_selectable_exit">
	<decidedRef    label="online_function_selectable_exit_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_exit_action"></actionRef>
</selectable>

<decided    label="online_function_selectable_exit_decided">
	<targetRevenge label="str_object"></targetRevenge>
	<targetRevenge label="str_object_online"></targetRevenge>
	<targetRevenge label="str_object_online_title"></targetRevenge>

	<changeColor>
		<alpha>0</alpha><red>255</red><green>255</green><blue>255</blue><term>15</term>
	</changeColor>
	<wait>15</wait>
	<actionRef label="title_selectable_create_action"></actionRef>	
	<vanish></vanish>
</decided>

<action		label="online_function_selectable_exit_action">
	<imgRef label="online_selectable_unselected_img"></imgRef>
	<setDrawLevel><num>3</num></setDrawLevel>
</action>



<action label="online_top_name_select_myname_create_action">
	<eval name="mylength">$_mynamelength</eval>

	<eval name="i">0</eval>	
	<repeat><times>8</times>
		<repeat><times>$mylength-gt$i</times>
			<sysvar name="_arg0">$i</sysvar>
			<eval name="ascii">$_myname</eval>
			<createRef label="str_top_name_create"><param>320-32*4+32*$i</param><param>310</param><param>$ascii</param></createRef>
		</repeat>
		<evaladd name="i">1</evaladd>
	</repeat>

	<eval name="i">0</eval>	
	<repeat><times>8</times>
		<createRef label="str_top_name_create"><param>320-32*4+32*$i</param><param>330</param><param>104</param></createRef>
		<evaladd name="i">1</evaladd>
	</repeat>

</action>

<create label="str_top_name_create">
	<direction type="absolute">0</direction><speed type="absolute">0</speed>
	<cx>$1</cx><cy>$2</cy>
	<object label="str_object">
		<imgRef label="str_lower_img_big_blue"><param>($3-32)%10</param><param>(($3-32)/10)%255</param></imgRef>	
		<setDrawLevel><num>26</num></setDrawLevel>
		<revengeRef label="title_parts_common_revenge"></revengeRef>
		<repeat><times>-1</times>
			<repeat><times>$_cursor_y-eq1</times>
				<changeColor>
					<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue><term>1</term>
				</changeColor>
			</repeat>
			<repeat><times>1-($_cursor_y-eq1)</times>
				<changeColor>
					<alpha>128</alpha><red>255</red><green>255</green><blue>255</blue><term>1</term>
				</changeColor>
			</repeat>
			<wait>1</wait>
		</repeat>
	</object>	
</create>

<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>
<!--
<img type="normal" label="str_img_20x24_blue">
	<file type="dds">hpk20x24blue</file>
	<left>$1*20</left><top>$2*24</top><right>$1*20+20</right><bottom>$2*24+24</bottom>
	<width>20</width><height>24</height>
	<alpha>128</alpha><red>255</red><green>255</green><blue>255</blue>
</img>
-->

<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>
