便利なQuickLookコマンドを活用

X-PlaneにあるQuickLookコマンドは非常に便利な機能ですが、設定がちょっと面倒なところがあります。そこでFlyWithLuaを使ってプラグインを作成してみました。

名称未設定2_png
QuickLook.lua
require "graphics"

local x1 = 15
--local x2 = 0
local y1 = 100
--local y2 = 0

--------------------------**********--------------------------
------------------------ テキスト、形の描画関数 ------------------------
--------------------------**********--------------------------
function draw_quick_look_memory()

	-- グラフィックシステムを初期化する
	XPLMSetGraphicsState(0,0,0,1,1,0,0)

	--マウスが乗った時全体を表示
	if MOUSE_Y > 700 or MOUSE_Y < 100 or MOUSE_X > x1+350 or MOUSE_X < x1 then
		return
	end

	--------------------------------------------------------
	-- 全体の透明な背景を描く
	--------------------------------------------------------
	graphics.set_color(0, 0, 0, 0.5)					--色を設定
	graphics.draw_rectangle(x1, y1, x1+350, 700)		--上の色の四角を描画

	--------------------------------------------------------
	-- ラインを描く
	--------------------------------------------------------
	graphics.set_color(x1, 1, 0, 0.5)				--以下のラインの色
	graphics.set_width(1)									--以下のラインの幅

	graphics.draw_line(x1, y1, x1, 700)			--一番左の縦ライン
	graphics.draw_line(x1+100, y1, x1+100, 700)	--左から2番目の縦ライン
	graphics.draw_line(x1+50, 300, x1+50, 400)		--左から短い3番目の縦ライン
	graphics.draw_line(x1+200, y1, x1+200, 700)	--左から4番目の縦ライン
	graphics.draw_line(x1+250, 300, x1+250, 400)		--左から短い5番目の縦ライン
	graphics.draw_line(x1+300, y1, x1+300, 700)	--左から6番目の縦ライン
	graphics.draw_line(x1+350, y1, x1+350, 700)	--一番右の縦ライン

	graphics.draw_line(x1, 700, x1+350, 700)	--一番上の横ライン
	graphics.draw_line(x1+300, 675, x1+350, 675)			--1段目の短横ライン
	graphics.draw_line(x1+300, 650, x1+350, 650)			--2段目の短横ライン
	graphics.draw_line(x1+300, 625, x1+350, 625)			--3段目の短横ライン
	graphics.draw_line(x1, 600, x1+350, 600)	--2段目の横ライン
	graphics.draw_line(x1+300, 575, x1+350, 575)			--1段目の短横ライン
	graphics.draw_line(x1+300, 550, x1+350, 550)			--2段目の短横ライン
	graphics.draw_line(x1+300, 525, x1+350, 525)			--3段目の短横ライン
	graphics.draw_line(x1, 500, x1+350, 500)	--3段目の横ライン
	graphics.draw_line(x1+300, 475, x1+350, 475)			--1段目の短横ライン
	graphics.draw_line(x1+300, 450, x1+350, 450)			--2段目の短横ライン
	graphics.draw_line(x1+300, 425, x1+350, 425)			--3段目の短横ライン
	graphics.draw_line(x1, 400, x1+350, 400)	--4段目の横ライン
	graphics.draw_line(x1+300, 375, x1+350, 375)			--1段目の短横ライン
	graphics.draw_line(x1+300, 350, x1+350, 350)			--2段目の短横ライン
	graphics.draw_line(x1+300, 325, x1+350, 325)			--3段目の短横ライン
	graphics.draw_line(x1, 300, x1+350, 300)	--5段目の横ライン
	graphics.draw_line(x1+300, 275, x1+350, 275)			--1段目の短横ライン
	graphics.draw_line(x1+300, 250, x1+350, 250)			--2段目の短横ライン
	graphics.draw_line(x1+300, 225, x1+350, 225)			--3段目の短横ライン
	graphics.draw_line(x1, 200, x1+350, 200)	--6段目の横ライン
	graphics.draw_line(x1+300, 175, x1+350, 175)			--1段目の短横ライン
	graphics.draw_line(x1+300, 150, x1+350, 150)			--2段目の短横ライン
	graphics.draw_line(x1+300, 125, x1+350, 125)			--3段目の短横ライン
	graphics.draw_line(x1, y1, x1+350, 100)	--一番下の横ライン



	--------------------------------------------------------
	-- quick_lookテキストの描画
	--------------------------------------------------------
	draw_string_Helvetica_10(x1+30, 645, "numpad-0")
	draw_string_Helvetica_10(x1+130, 645, "numpad-1")
	draw_string_Helvetica_10(x1+230, 645, "numpad-2")
	--------------------------------------------------------
	draw_string_Helvetica_10(x1+30, 545, "numpad-3")
	draw_string_Helvetica_10(x1+130, 545, "numpad-4")
	draw_string_Helvetica_10(x1+230, 545, "numpad-5")
	--------------------------------------------------------
	draw_string_Helvetica_10(x1+30, 445, "numpad-6")
	draw_string_Helvetica_10(x1+130, 445, "numpad-7")
	draw_string_Helvetica_10(x1+230, 445, "numpad-8")
	--------------------------------------------------------
	draw_string_Helvetica_10(x1+9, 345, "numpad")
	draw_string_Helvetica_10(x1+20, 332, "-9")
	draw_string_Helvetica_10(x1+59, 345, "numpad")
	draw_string_Helvetica_10(x1+67, 332, "-10")
	draw_string_Helvetica_10(x1+130, 345, "numpad-11")
	draw_string_Helvetica_10(x1+209, 345, "numpad")
	draw_string_Helvetica_10(x1+217, 332, "-12")
	draw_string_Helvetica_10(x1+259, 345, "numpad")
	draw_string_Helvetica_10(x1+267, 332, "-13")
	--------------------------------------------------------
	draw_string_Helvetica_10(x1+25, 245, "numpad-14")
	draw_string_Helvetica_10(x1+125, 245, "numpad-15")
	draw_string_Helvetica_10(x1+225, 245, "numpad-16")
	--------------------------------------------------------
	draw_string_Helvetica_10(x1+25, 145, "numpad-17")
	draw_string_Helvetica_10(x1+125, 145, "numpad-18")
	draw_string_Helvetica_10(x1+225, 145, "numpad-19")

	--------------------------------------------------------
	--quick_lookボタンのスペースにマウスが乗ったときの色の変化
	--------------------------------------------------------
	graphics.set_color(0, 1, 0, 0.2)	--長方形の色(薄いきみどり)、透明度
	--------------------------------------------------------
	-- quick_look_0
	if MOUSE_X > x1 and MOUSE_X < x1+100 and MOUSE_Y > y1*6 and MOUSE_Y < y1*7-10 then	--この範囲にマウスが入ったら
		graphics.draw_rectangle(x1, y1*6, x1+100, y1*7)	--長方形を描く
	end
	-- quick_look_1
	if MOUSE_X > x1+100 and MOUSE_X < x1+200 and MOUSE_Y > y1*6 and MOUSE_Y < y1*7-10 then
		graphics.draw_rectangle(x1+100, y1*6, x1+200, y1*7)
	end
	-- quick_look_2
	if MOUSE_X > x1+200 and MOUSE_X < x1+300 and MOUSE_Y > y1*6 and MOUSE_Y < y1*7-10 then
		graphics.draw_rectangle(x1+200, y1*6, x1+300, y1*7)
	end
	--------------------------------------------------------
	-- quick_look_3
	if MOUSE_X > x1 and MOUSE_X < x1+100 and MOUSE_Y > y1*5 and MOUSE_Y < y1*6-10 then	--この範囲にマウスが入ったら
		graphics.draw_rectangle(x1, y1*5, x1+100, y1*6)	--長方形を描く
	end
	-- quick_look_4
	if MOUSE_X > x1+100 and MOUSE_X < x1+200 and MOUSE_Y > y1*5 and MOUSE_Y < y1*6-10 then
		graphics.draw_rectangle(x1+100, y1*5, x1+200, y1*6)
	end
	-- quick_look_5
	if MOUSE_X > x1+200 and MOUSE_X < x1+300 and MOUSE_Y > y1*5 and MOUSE_Y < y1*6-10 then
		graphics.draw_rectangle(x1+200, y1*5, x1+300, y1*6)
	end
	--------------------------------------------------------
	-- quick_look_6
	if MOUSE_X > x1 and MOUSE_X < x1+100 and MOUSE_Y > y1*4 and MOUSE_Y < y1*5-10 then
		graphics.draw_rectangle(x1, y1*4, x1+100, y1*5)
	end
	-- quick_look_7
	if MOUSE_X > x1+100 and MOUSE_X < x1+200 and MOUSE_Y > y1*4 and MOUSE_Y < y1*5-10 then
		graphics.draw_rectangle(x1+100, y1*4, x1+200, y1*5)
	end
	-- quick_look_8
	if MOUSE_X > x1+200 and MOUSE_X < x1+300 and MOUSE_Y > y1*4 and MOUSE_Y < y1*5-10 then
		graphics.draw_rectangle(x1+200, y1*4, x1+300, y1*5)
	end
	--------------------------------------------------------
	-- quick_look_9
	if MOUSE_X > x1 and MOUSE_X < x1+50 and MOUSE_Y > y1*3 and MOUSE_Y < y1*4-10 then
		graphics.draw_rectangle(x1, y1*3, x1+50, y1*4)
	end
	-- quick_look_10
	if MOUSE_X > x1+50 and MOUSE_X < x1+100 and MOUSE_Y > y1*3 and MOUSE_Y < y1*4-10 then
		graphics.draw_rectangle(x1+50, y1*3, x1+100, y1*4)
	end
	-- quick_look_11
	if MOUSE_X > x1+100 and MOUSE_X < x1+200 and MOUSE_Y > y1*3 and MOUSE_Y < y1*4-10 then
		graphics.set_color(1, 1, 0, 0.3)	--長方形の色(薄い黄色)、透明度
		graphics.draw_rectangle(x1+100, y1*3, x1+200, y1*4)
	end

	-- quick_look_12
	if MOUSE_X > x1+200 and MOUSE_X < x1+250 and MOUSE_Y > y1*3 and MOUSE_Y < y1*4-10 then
		graphics.draw_rectangle(x1+200, y1*3, x1+250, y1*4)
	end
	-- quick_look_13
	if MOUSE_X > x1+250 and MOUSE_X < x1+300 and MOUSE_Y > y1*3 and MOUSE_Y < y1*4-10 then
		graphics.draw_rectangle(x1+250, y1*3, x1+300, y1*4)
	end
	--------------------------------------------------------
	-- quick_look_14
	if MOUSE_X > x1 and MOUSE_X < x1+100 and MOUSE_Y > y1*2 and MOUSE_Y < y1*3-10 then
		graphics.draw_rectangle(x1, y1*2, x1+100, y1*3)
	end
	-- quick_look_15
	if MOUSE_X > x1+100 and MOUSE_X < x1+200 and MOUSE_Y > y1*2 and MOUSE_Y < y1*3-10 then
		graphics.draw_rectangle(x1+100, y1*2, x1+200, y1*3)
	end
	-- quick_look_16
	if MOUSE_X > x1+200 and MOUSE_X < x1+300 and MOUSE_Y > y1*2 and MOUSE_Y < y1*3-10 then
		graphics.draw_rectangle(x1+200, y1*2, x1+300, y1*3)
	end
	--------------------------------------------------------
	-- quick_look_17
	if MOUSE_X > x1 and MOUSE_X < x1+100 and MOUSE_Y > y1*1 and MOUSE_Y < y1*2-10 then
		graphics.draw_rectangle(x1, y1*1, x1+100, y1*2)
	end
	-- quick_look_18
	if MOUSE_X > x1+100 and MOUSE_X < x1+200 and MOUSE_Y > y1*1 and MOUSE_Y < y1*2-10 then
		graphics.draw_rectangle(x1+100, y1*1, x1+200, y1*2)
	end
	-- quick_look_19
	if MOUSE_X > x1+200 and MOUSE_X < x1+300 and MOUSE_Y > y1*1 and MOUSE_Y < y1*2-10 then
		graphics.draw_rectangle(x1+200, y1*1, x1+300, y1*2)
	end
	--------------------------------------------------------



	--------------------------------------------------------------
	-- 記憶ボタン quick_look_mem 黄緑の描写とマスを置いた時の色の変化
	--------------------------------------------------------------
	-- quick_look_0_mem
	if MOUSE_X > x1 and MOUSE_X < x1+50 and MOUSE_Y > y1+590 and MOUSE_Y < y1+600 then	--この範囲にマウスが入ったら
		graphics.set_color(0, 1, 0, 0.8)	--長方形の色(きみどり)、透明度
	else
		graphics.set_color(0, 1, 0, 0.2)
	end
	graphics.draw_rectangle(x1, y1+585, x1+50, y1+600)	--長方形を描く
	-- quick_look_1_mem
	if MOUSE_X > x1+100 and MOUSE_X < x1+150 and MOUSE_Y > y1+590 and MOUSE_Y < y1+600 then	--この範囲にマウスが入ったら
		graphics.set_color(0, 1, 0, 0.8)	--長方形の色(きみどり)、透明度
	else
		graphics.set_color(0, 1, 0, 0.2)
	end
	graphics.draw_rectangle(x1+100, y1+585, x1+150, y1+600)	--長方形を描く
	-- quick_look_2_mem
	if MOUSE_X > x1+200 and MOUSE_X < x1+250 and MOUSE_Y > y1+590 and MOUSE_Y < y1+600 then	--この範囲にマウスが入ったら
		graphics.set_color(0, 1, 0, 0.8)	--長方形の色(きみどり)、透明度
	else
		graphics.set_color(0, 1, 0, 0.2)
	end
	graphics.draw_rectangle(x1+200, y1+585, x1+250, y1+600)	--長方形を描く
	--------------------------------------------------------
	-- quick_look_3_mem
	if MOUSE_X > x1 and MOUSE_X < x1+50 and MOUSE_Y > y1+490 and MOUSE_Y < y1+500 then	--この範囲にマウスが入ったら
		graphics.set_color(0, 1, 0, 0.8)	--長方形の色(きみどり)、透明度
	else
		graphics.set_color(0, 1, 0, 0.2)
	end
	graphics.draw_rectangle(x1, y1+485, x1+50, y1+500)	--長方形を描く
	-- quick_look_4_mem
	if MOUSE_X > x1+100 and MOUSE_X < x1+150 and MOUSE_Y > y1+490 and MOUSE_Y < y1+500 then
		graphics.set_color(0, 1, 0, 0.8)	--長方形の色(きみどり)、透明度
	else
		graphics.set_color(0, 1, 0, 0.2)
	end
	graphics.draw_rectangle(x1+100, y1+485, x1+150, y1+500)
	-- quick_look_5_mem
	if MOUSE_X > x1+200 and MOUSE_X < x1+250 and MOUSE_Y > y1+490 and MOUSE_Y < y1+500 then
		graphics.set_color(0, 1, 0, 0.8)	--長方形の色(きみどり)、透明度
	else
		graphics.set_color(0, 1, 0, 0.2)
	end
	graphics.draw_rectangle(x1+200, y1+485, x1+250, y1+500)
	--------------------------------------------------------
	-- quick_look_6_mem
	if MOUSE_X > x1 and MOUSE_X < x1+50 and MOUSE_Y > y1+390 and MOUSE_Y < y1+400 then
		graphics.set_color(0, 1, 0, 0.8)	--長方形の色(きみどり)、透明度
	else
		graphics.set_color(0, 1, 0, 0.2)
	end
	graphics.draw_rectangle(x1, y1+385, x1+50, y1+400)
	-- quick_look_7_mem
	if MOUSE_X > x1+100 and MOUSE_X < x1+150 and MOUSE_Y > y1+390 and MOUSE_Y < y1+400 then
		graphics.set_color(0, 1, 0, 0.8)	--長方形の色(きみどり)、透明度
	else
		graphics.set_color(0, 1, 0, 0.2)
	end
	graphics.draw_rectangle(x1+100, y1+385, x1+150, y1+400)
	-- quick_look_8_mem
	if MOUSE_X > x1+200 and MOUSE_X < x1+250 and MOUSE_Y > y1+390 and MOUSE_Y < y1+400 then
		graphics.set_color(0, 1, 0, 0.8)	--長方形の色(きみどり)、透明度
	else
		graphics.set_color(0, 1, 0, 0.2)
	end
	graphics.draw_rectangle(x1+200, y1+385, x1+250, y1+400)
	--------------------------------------------------------
	-- quick_look_9_mem
	if MOUSE_X > x1 and MOUSE_X < x1+50 and MOUSE_Y > y1+290 and MOUSE_Y < y1+300 then
		graphics.set_color(0, 1, 0, 0.8)	--長方形の色(きみどり)、透明度
	else
		graphics.set_color(0, 1, 0, 0.2)
	end
	graphics.draw_rectangle(x1, y1+285, x1+50, y1+300)
	-- quick_look_10_mem
	if MOUSE_X > x1+50 and MOUSE_X < x1+100 and MOUSE_Y > y1+290 and MOUSE_Y < y1+300 then
		graphics.set_color(0, 1, 0, 0.8)	--長方形の色(きみどり)、透明度
	else
		graphics.set_color(0, 1, 0, 0.2)
	end
	graphics.draw_rectangle(x1+50, y1+285, x1+100, y1+300)
	-- quick_look_11_mem
	if MOUSE_X > x1+100 and MOUSE_X < x1+150 and MOUSE_Y > y1+290 and MOUSE_Y < y1+300 then
		graphics.set_color(0, 1, 0, 0.8)	--長方形の色(きみどり)、透明度
	else
		graphics.set_color(0, 1, 0, 0.2)
	end
	graphics.draw_rectangle(x1+100, y1+285, x1+150, y1+300)

	-- quick_look_12_mem
	if MOUSE_X > x1+200 and MOUSE_X < x1+250 and MOUSE_Y > y1+290 and MOUSE_Y < y1+300 then
		graphics.set_color(0, 1, 0, 0.8)	--長方形の色(きみどり)、透明度
	else
		graphics.set_color(0, 1, 0, 0.2)
	end
	graphics.draw_rectangle(x1+200, y1+285, x1+250, y1+300)
	-- quick_look_13_mem
	if MOUSE_X > x1+250 and MOUSE_X < x1+300 and MOUSE_Y > y1+290 and MOUSE_Y < y1+300 then
		graphics.set_color(0, 1, 0, 0.8)	--長方形の色(きみどり)、透明度
	else
		graphics.set_color(0, 1, 0, 0.2)
	end
	graphics.draw_rectangle(x1+250, y1+285, x1+300, y1+300)
	--------------------------------------------------------
	-- quick_look_14_mem
	if MOUSE_X > x1 and MOUSE_X < x1+50 and MOUSE_Y > y1+190 and MOUSE_Y < y1+200 then
		graphics.set_color(0, 1, 0, 0.8)	--長方形の色(きみどり)、透明度
	else
		graphics.set_color(0, 1, 0, 0.2)
	end
	graphics.draw_rectangle(x1, y1+185, x1+50, y1+200)

	-- quick_look_15_mem
	if MOUSE_X > x1+100 and MOUSE_X < x1+150 and MOUSE_Y > y1+190 and MOUSE_Y < y1+200 then
		graphics.set_color(0, 1, 0, 0.8)	--長方形の色(きみどり)、透明度
	else
		graphics.set_color(0, 1, 0, 0.2)
	end
	graphics.draw_rectangle(x1+100, y1+185, x1+150, y1+200)
	-- quick_look_16_mem
	if MOUSE_X > x1+200 and MOUSE_X < x1+250 and MOUSE_Y > y1+190 and MOUSE_Y < y1+200 then
		graphics.set_color(0, 1, 0, 0.8)	--長方形の色(きみどり)、透明度
	else
		graphics.set_color(0, 1, 0, 0.2)
	end
	graphics.draw_rectangle(x1+200, y1+185, x1+250, y1+200)
	--------------------------------------------------------
	-- quick_look_17_mem
	if MOUSE_X > x1 and MOUSE_X < x1+50 and MOUSE_Y > 190 and MOUSE_Y < 200 then
		graphics.set_color(0, 1, 0, 0.8)	--長方形の色(きみどり)、透明度
	else
		graphics.set_color(0, 1, 0, 0.2)
	end
	graphics.draw_rectangle(x1, 185, x1+50, 200)
	-- quick_look_18_mem
	if MOUSE_X > x1+100 and MOUSE_X < x1+150 and MOUSE_Y > 190 and MOUSE_Y < 200 then
		graphics.set_color(0, 1, 0, 0.8)	--長方形の色(きみどり)、透明度
	else
		graphics.set_color(0, 1, 0, 0.2)
	end
	graphics.draw_rectangle(x1+100, 185, x1+150, 200)
	-- quick_look_19_mem
	if MOUSE_X > x1+200 and MOUSE_X < x1+250 and MOUSE_Y > 190 and MOUSE_Y < 200 then
		graphics.set_color(0, 1, 0, 0.8)	--長方形の色(きみどり)、透明度
	else
		graphics.set_color(0, 1, 0, 0.2)
	end
	graphics.draw_rectangle(x1+200, 185, x1+250, 200)
	--------------------------------------------------------

	--------------------------------------------
	-- 記憶ボタン(黄緑)のテキスト
	--------------------------------------------
	graphics.set_color(1, 1, 1, 1)
	--------------------------------------------
	draw_string_Helvetica_10(x1+8, 689, "Memory")		--nompad-0 用
	draw_string_Helvetica_10(x1+108, 689, "Memory")	--nompad-1 用
	draw_string_Helvetica_10(x1+208, 689, "Memory")	--nompad-2 用
	--------------------------------------------
	draw_string_Helvetica_10(x1+8, 589, "Memory")		--nompad-3 用
	draw_string_Helvetica_10(x1+108, 589, "Memory")	--nompad-4 用
	draw_string_Helvetica_10(x1+208, 589, "Memory")	--nompad-5 用
	--------------------------------------------
	draw_string_Helvetica_10(x1+8, 489, "Memory")		--nompad-6 用
	draw_string_Helvetica_10(x1+108, 489, "Memory")	--nompad-7 用
	draw_string_Helvetica_10(x1+208, 489, "Memory")	--nompad-8 用
	--------------------------------------------
	draw_string_Helvetica_10(x1+8, 389, "Memory")		--nompad-9 用
	draw_string_Helvetica_10(x1+58, 389, "Memory")		--nompad-10 用
	draw_string_Helvetica_10(x1+108, 389, "Memory")	--nompad-11 用
	draw_string_Helvetica_10(x1+208, 389, "Memory")	--nompad-12 用
	draw_string_Helvetica_10(x1+258, 389, "Memory")	--nompad-13 用
	--------------------------------------------
	draw_string_Helvetica_10(x1+8, 289, "Memory")		--nompad-14 用
	draw_string_Helvetica_10(x1+108, 289, "Memory")	--nompad-15 用
	draw_string_Helvetica_10(x1+208, 289, "Memory")	--nompad-16 用
	--------------------------------------------
	draw_string_Helvetica_10(x1+8, 189, "Memory")		--nompad-17 用
	draw_string_Helvetica_10(x1+108, 189, "Memory")	--nompad-18 用
	draw_string_Helvetica_10(x1+208, 189, "Memory")	--nompad-19 用
	--------------------------------------------

	--------------------------------------------
	-- ビュー(外側)のテキスト
	--------------------------------------------
	graphics.set_color(1, 1, 1, 1)
	--------------------------------------------
	draw_string_Helvetica_10(x1+310, 684, "Fixed display")		--nompad-0 用
	draw_string_Helvetica_10(x1+310, 659, "Single point display")	--nompad-1 用
	draw_string_Helvetica_10(x1+310, 634, "Runway")	--nompad-2 用
	draw_string_Helvetica_10(x1+310, 609, "Around the fuselage")		--nompad-3 用
	--------------------------------------------
	draw_string_Helvetica_10(x1+310, 584, "Trackingk")	--nompad-4 用
	draw_string_Helvetica_10(x1+310, 559, "Control tower")	--nompad-5 用
	draw_string_Helvetica_10(x1+310, 534, "On board")		--nompad-6 用
	draw_string_Helvetica_10(x1+310, 509, "Weapon tracking")	--nompad-7 用
	--------------------------------------------
	draw_string_Helvetica_10(x1+310, 484, "Free camera")	--nompad-8 用
	draw_string_Helvetica_10(x1+310, 459, "A")		--nompad-9 用
	draw_string_Helvetica_10(x1+310, 434, "B")		--nompad-10 用
	draw_string_Helvetica_10(x1+310, 409, "C")	--nompad-11 用X-Plane view
	--------------------------------------------
	draw_string_Helvetica_10(x1+310, 384, "A")
	draw_string_Helvetica_10(x1+310, 359, "B")
	draw_string_Helvetica_10(x1+310, 334, "C")
	draw_string_Helvetica_10(x1+310, 309, "D")
	--------------------------------------------
	draw_string_Helvetica_10(x1+310, 284, "A")
	draw_string_Helvetica_10(x1+310, 259, "B")
	draw_string_Helvetica_10(x1+310, 234, "C")
	draw_string_Helvetica_10(x1+310, 209, "D")
	--------------------------------------------
	draw_string_Helvetica_10(x1+310, 184, "A")
	draw_string_Helvetica_10(x1+310, 159, "B")
	draw_string_Helvetica_10(x1+310, 134, "C")
	draw_string_Helvetica_10(x1+310, 109, "replay toggle")
	--------------------------------------------



	-------------------------------------------------
	-- ビュー(外側)マウスクリック変化
	-------------------------------------------------
	graphics.set_color(0, 1, 0, 0.2)
	-------------------------------------------------
	-- No.1
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 675 and MOUSE_Y < 700 then
		graphics.draw_rectangle(x1+300, 675, x1+350, 700)
	end
	-- No.2
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 650 and MOUSE_Y < 675 then
		graphics.draw_rectangle(x1+300, 650, x1+350, 675)
	end
	-- No.3
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 625 and MOUSE_Y < 650 then
		graphics.draw_rectangle(x1+300, 625, x1+350, 650)
	end
	-- No.4
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 600 and MOUSE_Y < 625 then
		graphics.draw_rectangle(x1+300, 600, x1+350, 625)
	end
	-------------------------------------------------
	-- No.5
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 575 and MOUSE_Y < 600 then
		graphics.draw_rectangle(x1+300, 575, x1+350, 600)
	end
	-- No.6
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 550 and MOUSE_Y < 575 then
		graphics.draw_rectangle(x1+300, 550, x1+350, 575)
	end
	-- No.7
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 525 and MOUSE_Y < 550 then
		graphics.draw_rectangle(x1+300, 525, x1+350, 550)
	end
	-- No.8
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 500 and MOUSE_Y < 525 then
		graphics.draw_rectangle(x1+300, 500, x1+350, 525)
	end
	-------------------------------------------------
	-- No.9
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 475 and MOUSE_Y < 500 then
		graphics.draw_rectangle(x1+300, 475, x1+350, 500)
	end
	-- No.10
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 450 and MOUSE_Y < 475 then
		graphics.draw_rectangle(x1+300, 450, x1+350, 475)
	end
	-- No.11
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 425 and MOUSE_Y < 450 then
		graphics.draw_rectangle(x1+300, 425, x1+350, 450)
	end
	-- No.12
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 400 and MOUSE_Y < 425 then
		graphics.draw_rectangle(x1+300, 400, x1+350, 425)
	end
	-------------------------------------------------
	-- No.13
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 375 and MOUSE_Y < 400 then
		graphics.draw_rectangle(x1+300, 375, x1+350, 400)
	end
	-- No.14
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 350 and MOUSE_Y < 375 then
		graphics.draw_rectangle(x1+300, 350, x1+350, 375)
	end
	-- No.15
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 325 and MOUSE_Y < 350 then
		graphics.draw_rectangle(x1+300, 325, x1+350, 350)
	end
	-- No.16
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 300 and MOUSE_Y < 325 then
		graphics.draw_rectangle(x1+300, 300, x1+350, 325)
	end
	-------------------------------------------------
	-- No.17
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 275 and MOUSE_Y < 300 then
		graphics.draw_rectangle(x1+300, 275, x1+350, 300)
	end
	-- No.18
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 250 and MOUSE_Y < 275 then
		graphics.draw_rectangle(x1+300, 250, x1+350, 275)
	end
	-- No.19
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 225 and MOUSE_Y < 250 then
		graphics.draw_rectangle(x1+300, 225, x1+350, 250)
	end
	-- No.20
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 200 and MOUSE_Y < 225 then
		graphics.draw_rectangle(x1+300, 200, x1+350, 225)
	end
	-------------------------------------------------
	-- No.21
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 175 and MOUSE_Y < 200 then
		graphics.draw_rectangle(x1+300, 175, x1+350, 200)
	end
	-- No.22
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 150 and MOUSE_Y < 175 then
		graphics.draw_rectangle(x1+300, 150, x1+350, 175)
	end
	-- No.23
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 125 and MOUSE_Y < 150 then
		graphics.draw_rectangle(x1+300, 125, x1+350, 150)
	end
	-- No.24
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 100 and MOUSE_Y < 125 then
		graphics.draw_rectangle(x1+300, 100, x1+350, 125)
	end
	-------------------------------------------------
end
do_every_draw("draw_quick_look_memory()")


--------------------------**********--------------------------
---------------------- マウスクリックの関数(機能)---------------------
--------------------------**********--------------------------
function qs_mouse_click_events()

	-- マウス押し下げで一度だけ反応します
	if MOUSE_STATUS ~= "down" then
		return
	end

	----------------------------------------------------------
	-- 記憶ボタン quick_look_mem のマウスクリック時のコマンド処理
	----------------------------------------------------------
	-- Memory(quick_look_0_mem)
	if MOUSE_X > x1 and MOUSE_X < x1+50 and MOUSE_Y > 690 and MOUSE_Y < 700 then	--この範囲にマウスが入ったら
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_0_mem")
		end
		RESUME_MOUSE_CLICK = true	--X-Plaenに対してクリックは有効にならない。つまり上の指定スペースだけ。
	end
	-- Memory(quick_look_1_mem)
	if MOUSE_X > x1+100 and MOUSE_X < x1+150 and MOUSE_Y > 690 and MOUSE_Y < 700 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_1_mem")
		end
		RESUME_MOUSE_CLICK = true
	end
	-- Memory(quick_look_2_mem)
	if MOUSE_X > x1+200 and MOUSE_X < x1+250 and MOUSE_Y > 690 and MOUSE_Y < 700 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_2_mem")
		end
		RESUME_MOUSE_CLICK = true
	end
	----------------------------------------------------------
	-- Memory(quick_look_3_mem)
	if MOUSE_X > x1 and MOUSE_X < x1+50 and MOUSE_Y > 590 and MOUSE_Y < 600 then	--この範囲にマウスが入ったら
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_3_mem")
		end
		RESUME_MOUSE_CLICK = true	--X-Plaenに対してクリックは有効にならない。つまり上の指定スペースだけ。
	end
	-- Memory(quick_look_4_mem)
	if MOUSE_X > x1+100 and MOUSE_X < x1+150 and MOUSE_Y > 590 and MOUSE_Y < 600 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_4_mem")
		end
		RESUME_MOUSE_CLICK = true
	end
	-- Memory(quick_look_5_mem)
	if MOUSE_X > x1+200 and MOUSE_X < x1+250 and MOUSE_Y > 590 and MOUSE_Y < 600 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_5_mem")
		end
		RESUME_MOUSE_CLICK = true
	end
	----------------------------------------------------------
	-- Memory(quick_look_6_mem)
	if MOUSE_X > x1 and MOUSE_X < x1+50 and MOUSE_Y > 490 and MOUSE_Y < 500 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_6_mem")
		end
		RESUME_MOUSE_CLICK = true
	end
	-- Memory(quick_look_7_mem)
	if MOUSE_X > x1+100 and MOUSE_X < x1+150 and MOUSE_Y > 490 and MOUSE_Y < 500 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_7_mem")
		end
		RESUME_MOUSE_CLICK = true
	end
	-- Memory(quick_look_8_mem)
	if MOUSE_X > x1+200 and MOUSE_X < x1+250 and MOUSE_Y > 490 and MOUSE_Y < 500 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_8_mem")
		end
		RESUME_MOUSE_CLICK = true
	end
	----------------------------------------------------------
	-- Memory(quick_look_9_mem)
	if MOUSE_X > x1 and MOUSE_X < x1+50 and MOUSE_Y > 390 and MOUSE_Y < 400 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_9_mem")
		end
		RESUME_MOUSE_CLICK = true
	end
	-- Memory(quick_look_10_mem)
	if MOUSE_X > x1+50 and MOUSE_X < x1+100 and MOUSE_Y > 390 and MOUSE_Y < 400 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_10_mem")
		end
		RESUME_MOUSE_CLICK = true
	end
	-- Memory(quick_look_11_mem)
	if MOUSE_X > x1+100 and MOUSE_X < x1+150 and MOUSE_Y > 390 and MOUSE_Y < 400 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_11_mem")
		end
		RESUME_MOUSE_CLICK = true
	end
	-- Memory(quick_look_12_mem)
	if MOUSE_X > x1+200 and MOUSE_X < x1+250 and MOUSE_Y > 390 and MOUSE_Y < 400 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_12_mem")
		end
		RESUME_MOUSE_CLICK = true
	end
	-- Memory(quick_look_13_mem)
	if MOUSE_X > x1+250 and MOUSE_X < x1+300 and MOUSE_Y > 390 and MOUSE_Y < 400 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_13_mem")
		end
		RESUME_MOUSE_CLICK = true
	end
	----------------------------------------------------------
	-- Memory(quick_look_14_mem)
	if MOUSE_X > x1 and MOUSE_X < x1+50 and MOUSE_Y > 290 and MOUSE_Y < 300 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_14_mem")
		end
		RESUME_MOUSE_CLICK = true
	end
	-- Memory(quick_look_15_mem)
	if MOUSE_X > x1+100 and MOUSE_X < x1+150 and MOUSE_Y > 290 and MOUSE_Y < 300 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_15_mem")
		end
		RESUME_MOUSE_CLICK = true
	end
	-- Memory(quick_look_16_mem)
	if MOUSE_X > x1+200 and MOUSE_X < x1+250 and MOUSE_Y > 290 and MOUSE_Y < 300 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_16_mem")
		end
		RESUME_MOUSE_CLICK = true
	end
	----------------------------------------------------------
	-- Memory(quick_look_17_mem)
	if MOUSE_X > x1 and MOUSE_X < x1+50 and MOUSE_Y > 190 and MOUSE_Y < 200 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_17_mem")
		end
		RESUME_MOUSE_CLICK = true
	end
	-- Memory(quick_look_18_mem)
	if MOUSE_X > x1+100 and MOUSE_X < x1+150 and MOUSE_Y > 190 and MOUSE_Y < 200 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_18_mem")
		end
		RESUME_MOUSE_CLICK = true
	end
	-- Memory(quick_look_19_mem)
	if MOUSE_X > x1+200 and MOUSE_X < x1+250 and MOUSE_Y > 190 and MOUSE_Y < 200 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_19_mem")
		end
		RESUME_MOUSE_CLICK = true
	end
	----------------------------------------------------------


	-------------------------------------------------
	-- 大きいボタン quick_look クリック時のコマンド処理
	-------------------------------------------------
	-- quick_look_0
	if MOUSE_X > x1+50 and MOUSE_X < x1+150 and MOUSE_Y > 600 and MOUSE_Y < 685 then	--この範囲にマウスが入ったら
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_0")
		else
			command_once("sim/view/quick_look_11")
		end
		RESUME_MOUSE_CLICK = true	--X-Plaenに対してクリックは有効にならない。つまり上の指定スペースだけ。
	end
	-- quick_look_1
	if MOUSE_X > x1+100 and MOUSE_X < x1+200 and MOUSE_Y > 600 and MOUSE_Y < 685 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_1")
		else
			command_once("sim/view/quick_look_11")
		end
		RESUME_MOUSE_CLICK = true
	end
	-- quick_look_2
	if MOUSE_X > x1+200 and MOUSE_X < x1+300 and MOUSE_Y > 600 and MOUSE_Y < 685 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_2")
		else
			command_once("sim/view/quick_look_11")
		end
		RESUME_MOUSE_CLICK = true
	end
	-------------------------------------------------
	-- quick_look_3
	if MOUSE_X > x1 and MOUSE_X < x1+100 and MOUSE_Y > 500 and MOUSE_Y < 585 then	--この範囲にマウスが入ったら
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_3")
		else
			command_once("sim/view/quick_look_11")
		end
		RESUME_MOUSE_CLICK = true	--X-Plaenに対してクリックは有効にならない。つまり上の指定スペースだけ。
	end
	-- quick_look_4
	if MOUSE_X > x1+100 and MOUSE_X < x1+200 and MOUSE_Y > 500 and MOUSE_Y < 585 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_4")
		else
			command_once("sim/view/quick_look_11")
		end
		RESUME_MOUSE_CLICK = true
	end
	-- quick_look_5
	if MOUSE_X > x1+200 and MOUSE_X < x1+300 and MOUSE_Y > 500 and MOUSE_Y < 585 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_5")
		else
			command_once("sim/view/quick_look_11")
		end
		RESUME_MOUSE_CLICK = true
	end
	-------------------------------------------------
	-- quick_look_6
	if MOUSE_X > x1 and MOUSE_X < x1+100 and MOUSE_Y > 400 and MOUSE_Y < 485 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_6")
		else
			command_once("sim/view/quick_look_11")
		end
		RESUME_MOUSE_CLICK = true
	end
	-- quick_look_7
	if MOUSE_X > x1+100 and MOUSE_X < x1+200 and MOUSE_Y > 400 and MOUSE_Y < 485 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_7")
		else
			command_once("sim/view/quick_look_11")
		end
		RESUME_MOUSE_CLICK = true
	end
	-- quick_look_8
	if MOUSE_X > x1+200 and MOUSE_X < x1+300 and MOUSE_Y > 400 and MOUSE_Y < 485 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_8")
		else
			command_once("sim/view/quick_look_11")
		end
		RESUME_MOUSE_CLICK = true
	end
	-------------------------------------------------
	-- quick_look_9
	if MOUSE_X > x1 and MOUSE_X < x1+50 and MOUSE_Y > 300 and MOUSE_Y < 385 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_9")
		else
			command_once("sim/view/quick_look_11")
		end
		RESUME_MOUSE_CLICK = true
	end
	-- quick_look_10
	if MOUSE_X > x1+50 and MOUSE_X < x1+100 and MOUSE_Y > 300 and MOUSE_Y < 385 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_10")
		else
			command_once("sim/view/quick_look_11")
		end
		RESUME_MOUSE_CLICK = true
	end
	-- quick_look_11
	if MOUSE_X > x1+100 and MOUSE_X < x1+200 and MOUSE_Y > 300 and MOUSE_Y < 385 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_11")
		else
			command_once("sim/view/quick_look_11")
		end
		RESUME_MOUSE_CLICK = true
	end
	-- quick_look_12
	if MOUSE_X > x1+200 and MOUSE_X < x1+250 and MOUSE_Y > 300 and MOUSE_Y < 385 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_12")
		else
			command_once("sim/view/quick_look_11")
		end
		RESUME_MOUSE_CLICK = true
	end
	-- quick_look_13
	if MOUSE_X > x1+250 and MOUSE_X < x1+300 and MOUSE_Y > 300 and MOUSE_Y < 385 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_13")
		else
			command_once("sim/view/quick_look_11")
		end
		RESUME_MOUSE_CLICK = true
	end
	-------------------------------------------------
	-- quick_look_14
	if MOUSE_X > x1 and MOUSE_X < x1+100 and MOUSE_Y > 200 and MOUSE_Y < 285 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_14")
		else
			command_once("sim/view/quick_look_11")
		end
		RESUME_MOUSE_CLICK = true
	end
	-- quick_look_15
	if MOUSE_X > x1+100 and MOUSE_X < x1+200 and MOUSE_Y > 200 and MOUSE_Y < 285 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_15")
		else
			command_once("sim/view/quick_look_11")
		end
		RESUME_MOUSE_CLICK = true
	end
	-- quick_look_16
	if MOUSE_X > x1+200 and MOUSE_X < x1+300 and MOUSE_Y > 200 and MOUSE_Y < 285 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_16")
		else
			command_once("sim/view/quick_look_11")
		end
		RESUME_MOUSE_CLICK = true
	end
	-------------------------------------------------
	-- quick_look_17
	if MOUSE_X > x1 and MOUSE_X < x1+100 and MOUSE_Y > 100 and MOUSE_Y < 185 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_17")
		else
			command_once("sim/view/quick_look_11")
		end
		RESUME_MOUSE_CLICK = true
	end
	-- quick_look_18
	if MOUSE_X > x1+100 and MOUSE_X < x1+200 and MOUSE_Y > 100 and MOUSE_Y < 185 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_18")
		else
			command_once("sim/view/quick_look_11")
		end
		RESUME_MOUSE_CLICK = true
	end
	-- quick_look_19
	if MOUSE_X > x1+200 and MOUSE_X < x1+300 and MOUSE_Y > 100 and MOUSE_Y < 185 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/quick_look_19")
		else
			command_once("sim/view/quick_look_11")
		end
		RESUME_MOUSE_CLICK = true
	end
	-------------------------------------------------





	-------------------------------------------------
	-- ビュー(外側)ボタンクリック
	-------------------------------------------------
	-- No.1 固定表示
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 675 and MOUSE_Y < 700 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/linear_spot")
		end
	 RESUME_MOUSE_CLICK = true
	end
	-- No.2
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 650 and MOUSE_Y < 675 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/still_spot")
		end
	 RESUME_MOUSE_CLICK = true
	end
	-- No.3
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 625 and MOUSE_Y < 650 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/runway")
		end
	 RESUME_MOUSE_CLICK = true
	end
	-- No.4
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 600 and MOUSE_Y < 625 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/circle")
		end
	 RESUME_MOUSE_CLICK = true
	end
	-------------------------------------------------
	-- No.5
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 575 and MOUSE_Y < 600 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/chase")
		end
	 RESUME_MOUSE_CLICK = true
	end
	-- No.6
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 550 and MOUSE_Y < 575 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/tower")
		end
	 RESUME_MOUSE_CLICK = true
	end
	-- No.7
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 525 and MOUSE_Y < 550 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/ridealong")
		end
	 RESUME_MOUSE_CLICK = true
	end
	-- No.8
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 500 and MOUSE_Y < 525 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/track_weapon")
		end
	 RESUME_MOUSE_CLICK = true
	end
	-------------------------------------------------
	-- No.9 free_camera
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 475 and MOUSE_Y < 500 then
		if MOUSE_STATUS == "down" then
			command_once("sim/view/free_camera")
		end
	 RESUME_MOUSE_CLICK = true
	end
	-- No.10
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 450 and MOUSE_Y < 475 then
		if MOUSE_STATUS == "down" then
			command_once("")
		end
	 RESUME_MOUSE_CLICK = true
	end
	-- No.11
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 425 and MOUSE_Y < 450 then
		if MOUSE_STATUS == "down" then
			command_once("")
		end
	 RESUME_MOUSE_CLICK = true
	end
	-- No.12
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 400 and MOUSE_Y < 425 then
		if MOUSE_STATUS == "down" then
			command_once("")
		end
		RESUME_MOUSE_CLICK = true
	end
	-------------------------------------------------
	-- No.13
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 375 and MOUSE_Y < 400 then

	end
	-- No.14
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 350 and MOUSE_Y < 375 then

	end
	-- No.15
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 325 and MOUSE_Y < 350 then

	end
	-- No.16
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 300 and MOUSE_Y < 325 then

	end
	-------------------------------------------------
	-- No.17
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 275 and MOUSE_Y < 300 then

	end
	-- No.18
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 250 and MOUSE_Y < 275 then

	end
	-- No.19
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 225 and MOUSE_Y < 250 then

	end
	-- No.20
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 200 and MOUSE_Y < 225 then

	end
	-------------------------------------------------
	-- No.21
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 175 and MOUSE_Y < 200 then

	end
	-- No.22
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 150 and MOUSE_Y < 175 then

	end
	-- No.23
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 125 and MOUSE_Y < 150 then

	end
	-- No.24
	if MOUSE_X > x1+300 and MOUSE_X < x1+350 and MOUSE_Y > 100 and MOUSE_Y < 125 then
	if MOUSE_STATUS == "down" then
		command_once("sim/replay/replay_toggle")
	end
 RESUME_MOUSE_CLICK = true

	end
	-------------------------------------------------

end
do_on_mouse_click("qs_mouse_click_events()")	--上の関数マウスクリックをここで実行