;===============================================================================
;	eLXg\Oɍs@Tu[`
;===============================================================================
*pretext_lb

;XLbv
; btntime 1:btnwait %0 gݍ񂾂Ƃ
;c[o[ENbNj[XLbvłȂȂ̂Œǉ
isskip %skip_flg
if %skip_flg=1 return

;y[WĂPڂ̃NbN҂̊Ԃɕ br gꂽꍇɁA
;Z[uʒuȂ悤ɂׂɁAEy[W𕶎ɂ
mov %TextCC12flg,0

;wait delay print ̃NbNLɂ
if %click_hold>=1 return

;print  wait ɃNbNẴeLXguԕ\Ȃ
;!w  !d ́AeLXg̕ɏꂽꍇA̍s̃eLXg͏uԕ\ɂȂȂ
btntime 1:btnwait %0

return


;===============================================================================
;	Ey[W@Tu[`
;===============================================================================
*text_cw


;NbN҂ACRGtFNg\Ȃ
erasetextwindow 0


;NbN҂ACR֑
getcursorpos %X,%Y	;NbN҂ACRʒu擾

;ł݂̂ŕ\ȂꍇAsetwindow ̍ẄʒuɃJ[\\锻
if %cursor_flg=1 & %Y=16 skip 5

;ACRʒuisetwindow W X jɗƂ͂Ԃ牺
if %cursor_flg=1 & %X=31 getcursorpos2 %X,%Y:mov %X,%X+26


ispage %TextCC12flg			;ory[W̔

;NbN҂ACR\
;rgꍇ̓rTCY̍sԂJȂƃoÔŒ
;if %TextCC12flg=0 lsph %TextCC12SpNum,$click_cursor1,%X+1,%Y+13	;rtp
;if %TextCC12flg=1 lsph %TextCC12SpNum,$click_cursor2,%X+1,%Y+13	;rtp
if %TextCC12flg=0 lsph %TextCC12SpNum,$click_cursor1,%X+1,%Y+1
if %TextCC12flg=1 lsph %TextCC12SpNum,$click_cursor2,%X+1,%Y+1


vsp %TextCC12SpNum,1
print 1


;---------------------------------------
;	{^͐ݒ
;---------------------------------------
btndef ""	;{^`NA

;getenter	;Enter L[gpi click ߂ŗȂȂ̂ŎgȂ
getcursor	;J[\L[gp
getpage		;PageUp / PageDown L[gp


;---------------------------------------
;NbN҂{^ ----------------
*text_cwlp

textbtnwait %BtnRes	;NbN҂{^EFCg

;{^ݒ
if %BtnRes=0 goto *text_cw_next		;NbN

if %BtnRes=-3 goto *text_cw_next	;zC[
;if %BtnRes==-13 goto *text_cw_next	; PageDown
if %BtnRes=-42 goto *text_cw_next	;

if %BtnRes=-19 goto *text_cw_next	;Enter
if %BtnRes=-11 goto *text_cw_next	;Space

if %BtnRes=-1 gosub *text_cw_rclk:goto *text_cw	;ENbN
if %BtnRes=-10 gosub *text_cw_rclk:goto *text_cw	;Esc

if %BtnRes=-2 gosub *text_cw_lookback:goto *text_cw	;zC[izj
if %BtnRes==-12 gosub *text_cw_lookback:goto *text_cw	;PageUp
if %BtnRes=-40 gosub *text_cw_lookback:goto *text_cw	;



;ȊO̓NbN҂{^
goto *text_cwlp


;---------------------------------------
;Ey[W --------------------
*text_cw_next
;NbN҂ACR̔\
vsp %TextCC12SpNum,0
print 1

texec		;Ey[W҂

;ꎞIɗLɂ wait delay print ̃NbN𖳌ɂ
if %click_hold=1 mov %click_hold,0

;eLXgEBhEGtFNg\ɂ
erasetextwindow 1


return


;--------------------------------------------------------
;	NbN҂ENbNj[
;--------------------------------------------------------
*text_cw_rclk

;NbN҂ACR̔\
vsp %TextCC12SpNum,0
print 1
;
texthide

gosub *rmenu_custom

;\
textshow

return


;------------------------
;	z[h
;------------------------
*text_cw_lookback
;NbN҂ACR̃`cLh~
checkpage %log_flg,1
if %log_flg=0 return


;NbN҂ACR̔\
vsp %TextCC12SpNum,0
print 1

systemcall lookback		;z[hiftHgj


return




;===============================================================================
;	ENbNj[
;===============================================================================
*rmenu_custom

systemcall rmenu		;ENbNj[ĂяoiftHgj

return


;===============================================================================
;	Z[u
;===============================================================================
*saveset

;݁AZ[uʂ̓VXeJX^}CYĂ܂

return


;===============================================================================
;	[h
;===============================================================================
*loadset

;݁A[hʂ̓VXeJX^}CYĂ܂


return


;===============================================================================
;	^Cgp[h
;===============================================================================
*title_loadset

;eLXg
vsp %t_txt_load_lsp,0
;[hʔwi
lsp 10,":a;bmp\introduction_back1.bmp",0,0
print 1

systemcall load		;[hʌĂяo

;[hʔwi@
csp 10

return
