X-Planeの機能としてある「QuickLook」、これ便利な機能なんだけど設定が結構難しい。そこでプラグインを作成してみました。
QuickLook_small_Right.lua
require "graphics"
origin = -10 --上と右が原点でマイナスで左としたに移動する。
local x1 = origin --左からの位置
local y1 = origin -100 --下からの位置
local x2 = origin
local y2 = origin -100
--------------------------**********--------------------------
------------------------ テキスト、形の描画関数 ------------------------
--------------------------**********--------------------------
function draw_quick_look_memory()
-- グラフィックシステムを初期化する
XPLMSetGraphicsState(0,0,0,1,1,0,0)
--マウスが乗った時全体を表示
if MOUSE_X > (SCREEN_WIDTH+x1) or MOUSE_X < (SCREEN_WIDTH+x2)-250 or MOUSE_Y > (SCREEN_HIGHT+y1) or MOUSE_Y < (SCREEN_HIGHT+y2)-200 then
return
end
--------------------------------------------------------
-- 全体の透明な背景を描く
--------------------------------------------------------
graphics.set_color(0, 0, 0, 0.5) --色を設定
graphics.draw_rectangle((SCREEN_WIDTH+x1), (SCREEN_HIGHT+y1), (SCREEN_WIDTH+x2)-250, (SCREEN_HIGHT+y2)-200) --上の色の四角を描画
graphics.set_color(1, 1, 0, 0.2)
graphics.draw_rectangle((SCREEN_WIDTH+x1)-100, (SCREEN_HIGHT+y1)-100, (SCREEN_WIDTH+x2)-150, (SCREEN_HIGHT+y2)-(50*3))
--------------------------------------------------------
-- ラインを描く
--------------------------------------------------------
graphics.set_color(1, 1, 0, 0.5) --以下のラインの色
graphics.set_width(1) --以下のラインの幅
---------------------------------------------------
graphics.draw_line((SCREEN_WIDTH+x1)-0*0, (SCREEN_HIGHT+y1)-0, (SCREEN_WIDTH+x2)-0*0, (SCREEN_HIGHT+y2)-200) --左から1番目の縦ライン
graphics.draw_line((SCREEN_WIDTH+x1)-50*1, (SCREEN_HIGHT+y1)-0, (SCREEN_WIDTH+x2)-50*1, (SCREEN_HIGHT+y2)-200) --左から2番目の縦ライン
graphics.draw_line((SCREEN_WIDTH+x1)-50*2, (SCREEN_HIGHT+y1)-0, (SCREEN_WIDTH+x2)-50*2, (SCREEN_HIGHT+y2)-200) --左から3番目の縦ライン
graphics.draw_line((SCREEN_WIDTH+x1)-50*3, (SCREEN_HIGHT+y1)-0, (SCREEN_WIDTH+x2)-50*3, (SCREEN_HIGHT+y2)-200) --左から4番目の縦ライン
graphics.draw_line((SCREEN_WIDTH+x1)-50*4, (SCREEN_HIGHT+y1)-0, (SCREEN_WIDTH+x2)-50*4, (SCREEN_HIGHT+y2)-200) --左から5番目の縦ライン
graphics.draw_line((SCREEN_WIDTH+x1)-50*5, (SCREEN_HIGHT+y1)-0, (SCREEN_WIDTH+x2)-50*5, (SCREEN_HIGHT+y2)-200) --左から6番目の縦ライン
---------------------------------------------------
graphics.draw_line((SCREEN_WIDTH+x1)-0, (SCREEN_HIGHT+y1)-50*4, (SCREEN_WIDTH+x2)-250, (SCREEN_HIGHT+y2)-50*4) --下から5番目の横ライン
graphics.draw_line((SCREEN_WIDTH+x1)-0, (SCREEN_HIGHT+y1)-50*3, (SCREEN_WIDTH+x2)-250, (SCREEN_HIGHT+y2)-50*3) --下から4番目の横ライン
graphics.draw_line((SCREEN_WIDTH+x1)-0, (SCREEN_HIGHT+y1)-50*2, (SCREEN_WIDTH+x2)-250, (SCREEN_HIGHT+y2)-50*2) --下から3番目の横ライン
graphics.draw_line((SCREEN_WIDTH+x1)-0, (SCREEN_HIGHT+y1)-50*1, (SCREEN_WIDTH+x2)-250, (SCREEN_HIGHT+y2)-50*1) --下から2番目の横ライン
graphics.draw_line((SCREEN_WIDTH+x1)-0, (SCREEN_HIGHT+y1)-0*0, (SCREEN_WIDTH+x2)-250, (SCREEN_HIGHT+y2)-0*0) --下から1番目の横ライン
---------------------------------------------------
--------------------------------------------------------
-- quick_lookテキストの描画
--------------------------------------------------------
--draw_string_Helvetica_10((SCREEN_WIDTH+x1)-240, (SCREEN_HIGHT+y1)-30, "HDG")
--数値が大きくなるほど左へ下へ行く
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-236, (SCREEN_HIGHT+y1)-32, "np-0")
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-186, (SCREEN_HIGHT+y1)-32, "np-1")
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-131, (SCREEN_HIGHT+y1)-32, "IRS")
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-86, (SCREEN_HIGHT+y1)-32, "np-3")
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-36, (SCREEN_HIGHT+y1)-32, "np-4")
--------------------------------------------------------
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-236, (SCREEN_HIGHT+y1)-(32+50), "np-5")
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-186, (SCREEN_HIGHT+y1)-(32+50), "np-6")
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-136, (SCREEN_HIGHT+y1)-(32+50), "Center")
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-86, (SCREEN_HIGHT+y1)-(32+50), "np-8")
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-36, (SCREEN_HIGHT+y1)-(32+50), "np-9")
--------------------------------------------------------
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-239, (SCREEN_HIGHT+y1)-(32+(50*2)), "np-10")
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-189, (SCREEN_HIGHT+y1)-(32+(50*2)), "np-11")
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-140, (SCREEN_HIGHT+y1)-(32+(50*2)), "Center")
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-89, (SCREEN_HIGHT+y1)-(32+(50*2)), "np-13")
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-39, (SCREEN_HIGHT+y1)-(32+(50*2)), "np-14")
--------------------------------------------------------
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-238, (SCREEN_HIGHT+y1)-(32+(50*3)), "Tablet")
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-189, (SCREEN_HIGHT+y1)-(32+(50*3)), "np-16")
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-139, (SCREEN_HIGHT+y1)-(32+(50*3)), "np-17")
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-83, (SCREEN_HIGHT+y1)-(32+(50*3)), "Trim")
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-39, (SCREEN_HIGHT+y1)-(32+(50*3)), "np-19")
--------------------------------------------------------
--quick_lookボタンのスペースにマウスが乗ったときの色の変化
-------------------------------------------------------------------------------------------------
graphics.set_color(1, 1, 0, 0.1) --長方形の色(薄いきみどり)、透明度
-------------------------------------------------------------------------------------------------
--数値が大きくなるほど左へ下へ行く
-- quick_look_0
if MOUSE_X > (SCREEN_WIDTH+x1)-250 and MOUSE_X < (SCREEN_WIDTH+x2)-200 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*0)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*0)-15 then
graphics.draw_rectangle((SCREEN_WIDTH+x1)-200, (SCREEN_HIGHT+y1)-((50*0)+50), (SCREEN_WIDTH+x2)-250, (SCREEN_HIGHT+y1)-(50*0))
end
-- quick_look_1
if MOUSE_X > (SCREEN_WIDTH+x1)-200 and MOUSE_X < (SCREEN_WIDTH+x2)-150 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*0)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*0)-15 then
graphics.draw_rectangle((SCREEN_WIDTH+x1)-150, (SCREEN_HIGHT+y1)-((50*0)+50), (SCREEN_WIDTH+x2)-200, (SCREEN_HIGHT+y2)-(50*0))
end
-- quick_look_2
if MOUSE_X > (SCREEN_WIDTH+x1)-150 and MOUSE_X < (SCREEN_WIDTH+x2)-100 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*0)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*0)-15 then
graphics.draw_rectangle((SCREEN_WIDTH+x1)-100, (SCREEN_HIGHT+y1)-((50*0)+50), (SCREEN_WIDTH+x2)-150, (SCREEN_HIGHT+y2)-(50*0))
end
-- quick_look_3
if MOUSE_X > (SCREEN_WIDTH+x1)-100 and MOUSE_X < (SCREEN_WIDTH+x2)-50 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*0)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*0)-15 then
graphics.draw_rectangle((SCREEN_WIDTH+x1)-50, (SCREEN_HIGHT+y1)-((50*0)+50), (SCREEN_WIDTH+x2)-100, (SCREEN_HIGHT+y2)-(50*0))
end
-- quick_look_4
if MOUSE_X > (SCREEN_WIDTH+x1)-50 and MOUSE_X < (SCREEN_WIDTH+x2)-0 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*0)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*0)-15 then
graphics.draw_rectangle((SCREEN_WIDTH+x1)-0, (SCREEN_HIGHT+y1)-((50*0)+50), (SCREEN_WIDTH+x2)-50, (SCREEN_HIGHT+y2)-(50*0))
end
-------------------------------------------------------------------------------------------------
-- quick_look_5
if MOUSE_X > (SCREEN_WIDTH+x1)-250 and MOUSE_X < (SCREEN_WIDTH+x2)-200 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*1)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*1)-15 then
graphics.draw_rectangle((SCREEN_WIDTH+x1)-200, (SCREEN_HIGHT+y1)-((50*1)+50), (SCREEN_WIDTH+x2)-250, (SCREEN_HIGHT+y2)-(50*1))
end
-- quick_look_6
if MOUSE_X > (SCREEN_WIDTH+x1)-200 and MOUSE_X < (SCREEN_WIDTH+x2)-150 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*1)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*1)-15 then
graphics.draw_rectangle((SCREEN_WIDTH+x1)-150, (SCREEN_HIGHT+y1)-((50*1)+50), (SCREEN_WIDTH+x2)-200, (SCREEN_HIGHT+y2)-(50*1))
end
-- quick_look_7
if MOUSE_X > (SCREEN_WIDTH+x1)-150 and MOUSE_X < (SCREEN_WIDTH+x2)-100 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*1)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*1)-15 then
graphics.draw_rectangle((SCREEN_WIDTH+x1)-100, (SCREEN_HIGHT+y1)-((50*1)+50), (SCREEN_WIDTH+x2)-150, (SCREEN_HIGHT+y2)-(50*1))
end
-- quick_look_8
if MOUSE_X > (SCREEN_WIDTH+x1)-100 and MOUSE_X < (SCREEN_WIDTH+x2)-50 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*1)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*1)-15 then
graphics.draw_rectangle((SCREEN_WIDTH+x1)-50, (SCREEN_HIGHT+y1)-((50*1)+50), (SCREEN_WIDTH+x2)-100, (SCREEN_HIGHT+y2)-(50*1))
end
-- quick_look_9
if MOUSE_X > (SCREEN_WIDTH+x1)-50 and MOUSE_X < (SCREEN_WIDTH+x2)-0 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*1)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*1)-15 then
graphics.draw_rectangle((SCREEN_WIDTH+x1)-0, (SCREEN_HIGHT+y1)-((50*1)+50), (SCREEN_WIDTH+x2)-50, (SCREEN_HIGHT+y2)-(50*1))
end
-------------------------------------------------------------------------------------------------
-- quick_look_10
if MOUSE_X > (SCREEN_WIDTH+x1)-250 and MOUSE_X < (SCREEN_WIDTH+x2)-200 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*2)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*2)-15 then
graphics.draw_rectangle((SCREEN_WIDTH+x1)-200, (SCREEN_HIGHT+y1)-((50*2)+50), (SCREEN_WIDTH+x2)-250, (SCREEN_HIGHT+y2)-(50*2))
end
-- quick_look_11
if MOUSE_X > (SCREEN_WIDTH+x1)-200 and MOUSE_X < (SCREEN_WIDTH+x2)-150 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*2)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*2)-15 then
graphics.draw_rectangle((SCREEN_WIDTH+x1)-150, (SCREEN_HIGHT+y1)-((50*2)+50), (SCREEN_WIDTH+x2)-200, (SCREEN_HIGHT+y2)-(50*2))
end
-- quick_look_12
if MOUSE_X > (SCREEN_WIDTH+x1)-150 and MOUSE_X < (SCREEN_WIDTH+x2)-100 and MOUSE_Y > (SCREEN_HIGHT+y2)-((50*2)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*2)-15 then
graphics.draw_rectangle((SCREEN_WIDTH+x1)-100, (SCREEN_HIGHT+y1)-((50*2)+50), (SCREEN_WIDTH+x2)-150, (SCREEN_HIGHT+y2)-(50*2))
end
-- quick_look_13
if MOUSE_X > (SCREEN_WIDTH+x1)-100 and MOUSE_X < (SCREEN_WIDTH+x2)-50 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*2)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*2)-15 then
graphics.draw_rectangle((SCREEN_WIDTH+x1)-50, (SCREEN_HIGHT+y1)-((50*2)+50), (SCREEN_WIDTH+x2)-100, (SCREEN_HIGHT+y2)-(50*2))
end
-- quick_look_14
if MOUSE_X > (SCREEN_WIDTH+x1)-50 and MOUSE_X < (SCREEN_WIDTH+x2)-0 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*2)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*2)-15 then
graphics.draw_rectangle((SCREEN_WIDTH+x1)-0, (SCREEN_HIGHT+y1)-((50*2)+50), (SCREEN_WIDTH+x2)-50, (SCREEN_HIGHT+y2)-(50*2))
end
-------------------------------------------------------------------------------------------------
-- quick_look_15
if MOUSE_X > (SCREEN_WIDTH+x1)-250 and MOUSE_X < (SCREEN_WIDTH+x2)-200 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*3)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*3)-15 then
graphics.draw_rectangle((SCREEN_WIDTH+x1)-200, (SCREEN_HIGHT+y1)-((50*3)+50), (SCREEN_WIDTH+x2)-250, (SCREEN_HIGHT+y2)-(50*3))
end
-- quick_look_16
if MOUSE_X > (SCREEN_WIDTH+x1)-200 and MOUSE_X < (SCREEN_WIDTH+x2)-150 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*3)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*3)-15 then
graphics.draw_rectangle((SCREEN_WIDTH+x1)-150, (SCREEN_HIGHT+y1)-((50*3)+50), (SCREEN_WIDTH+x2)-200, (SCREEN_HIGHT+y2)-(50*3))
end
-- quick_look_17
if MOUSE_X > (SCREEN_WIDTH+x1)-150 and MOUSE_X < (SCREEN_WIDTH+x2)-100 and MOUSE_Y > (SCREEN_HIGHT+y2)-((50*3)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*3)-15 then
graphics.draw_rectangle((SCREEN_WIDTH+x1)-100, (SCREEN_HIGHT+y1)-((50*3)+50), (SCREEN_WIDTH+x2)-150, (SCREEN_HIGHT+y2)-(50*3))
end
-- quick_look_18
if MOUSE_X > (SCREEN_WIDTH+x1)-100 and MOUSE_X < (SCREEN_WIDTH+x2)-50 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*3)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*3)-15 then
graphics.draw_rectangle((SCREEN_WIDTH+x1)-50, (SCREEN_HIGHT+y1)-((50*3)+50), (SCREEN_WIDTH+x2)-100, (SCREEN_HIGHT+y2)-(50*3))
end
-- quick_look_19
if MOUSE_X > (SCREEN_WIDTH+x1)-50 and MOUSE_X < (SCREEN_WIDTH+x2)-0 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*3)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*3)-15 then
graphics.draw_rectangle((SCREEN_WIDTH+x1)-0, (SCREEN_HIGHT+y1)-((50*3)+50), (SCREEN_WIDTH+x2)-50, (SCREEN_HIGHT+y2)-(50*3))
end
-------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
-- 記憶ボタン quick_look_mem 黄緑の描写とマウスを置いた時の色の変化
----------------------------------------------------------------------------------------------------
--マイナス数値が大きくなるほど左へ下へ行く
-- quick_look_0_mem
if MOUSE_X > (SCREEN_WIDTH+x1)-250 and MOUSE_X < (SCREEN_WIDTH+x2)-200 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*0)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*0)then
graphics.set_color(0, 1, 0, 0.6) --長方形の色(きみどり)、透明度
else
graphics.set_color(0, 1, 0, 0.2)
end
graphics.draw_filled_circle( (SCREEN_WIDTH+x1)-250+8, (SCREEN_HIGHT+y1)-(50*0)-8, 8)
-- quick_look_1_mem
if MOUSE_X > (SCREEN_WIDTH+x1)-200 and MOUSE_X < (SCREEN_WIDTH+x2)-150 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*0)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*0)then
graphics.set_color(0, 1, 0, 0.6) --長方形の色(きみどり)、透明度
else
graphics.set_color(0, 1, 0, 0.2)
end
graphics.draw_filled_circle( (SCREEN_WIDTH+x1)-200+8, (SCREEN_HIGHT+y1)-(50*0)-8, 8)
-- quick_look_2_mem
if MOUSE_X > (SCREEN_WIDTH+x1)-150 and MOUSE_X < (SCREEN_WIDTH+x2)-100 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*0)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*0)then
graphics.set_color(0, 1, 0, 0.6) --長方形の色(きみどり)、透明度
else
graphics.set_color(0, 1, 0, 0.2)
end
graphics.draw_filled_circle( (SCREEN_WIDTH+x1)-150+8, (SCREEN_HIGHT+y1)-(50*0)-8, 8)
-- quick_look_3_mem
if MOUSE_X > (SCREEN_WIDTH+x1)-100 and MOUSE_X < (SCREEN_WIDTH+x2)-50 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*0)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*0)then
graphics.set_color(0, 1, 0, 0.6) --長方形の色(きみどり)、透明度
else
graphics.set_color(0, 1, 0, 0.2)
end
graphics.draw_filled_circle((SCREEN_WIDTH+x1)-100+8, (SCREEN_HIGHT+y1)-(50*0)-8, 8)
-- quick_look_4_mem
if MOUSE_X > (SCREEN_WIDTH+x1)-50 and MOUSE_X < (SCREEN_WIDTH+x2)-0 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*0)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*0)then
graphics.set_color(0, 1, 0, 0.6) --長方形の色(きみどり)、透明度
else
graphics.set_color(0, 1, 0, 0.2)
end
graphics.draw_filled_circle((SCREEN_WIDTH+x1)-50+8, (SCREEN_HIGHT+y1)-(50*0)-8, 8)
----------------------------------------------------------------------------------------------------
-- quick_look_5_mem
if MOUSE_X > (SCREEN_WIDTH+x1)-250 and MOUSE_X < (SCREEN_WIDTH+x2)-200 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*1)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*1)then
graphics.set_color(0, 1, 0, 0.6) --長方形の色(きみどり)、透明度
else
graphics.set_color(0, 1, 0, 0.2)
end
graphics.draw_filled_circle((SCREEN_WIDTH+x1)-250+8, (SCREEN_HIGHT+y1)-(50*1)-8, 8)
-- quick_look_6_mem
if MOUSE_X > (SCREEN_WIDTH+x1)-200 and MOUSE_X < (SCREEN_WIDTH+x2)-150 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*1)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*1)then
graphics.set_color(0, 1, 0, 0.6) --長方形の色(きみどり)、透明度
else
graphics.set_color(0, 1, 0, 0.2)
end
graphics.draw_filled_circle((SCREEN_WIDTH+x1)-200+8, (SCREEN_HIGHT+y1)-(50*1)-8, 8)
-- quick_look_7_mem
if MOUSE_X > (SCREEN_WIDTH+x1)-150 and MOUSE_X < (SCREEN_WIDTH+x2)-100 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*1)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*1)then
graphics.set_color(0, 1, 0, 0.8) --長方形の色(きみどり)、透明度
else
graphics.set_color(0, 1, 0, 0.2)
end
graphics.draw_filled_circle((SCREEN_WIDTH+x1)-150+8, (SCREEN_HIGHT+y1)-(50*1)-8, 8)
-- quick_look_8_mem
if MOUSE_X > (SCREEN_WIDTH+x1)-100 and MOUSE_X < (SCREEN_WIDTH+x2)-50 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*1)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*1)then
graphics.set_color(0, 1, 0, 0.6) --長方形の色(きみどり)、透明度
else
graphics.set_color(0, 1, 0, 0.2)
end
graphics.draw_filled_circle((SCREEN_WIDTH+x1)-100+8, (SCREEN_HIGHT+y1)-(50*1)-8, 8)
-- quick_look_9_mem
if MOUSE_X > (SCREEN_WIDTH+x1)-50 and MOUSE_X < (SCREEN_WIDTH+x2)-0 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*1)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*1)then
graphics.set_color(0, 1, 0, 0.6) --長方形の色(きみどり)、透明度
else
graphics.set_color(0, 1, 0, 0.2)
end
graphics.draw_filled_circle((SCREEN_WIDTH+x1)-50+8, (SCREEN_HIGHT+y1)-(50*1)-8, 8)
----------------------------------------------------------------------------------------------------
-- quick_look_10_mem
if MOUSE_X > (SCREEN_WIDTH+x1)-250 and MOUSE_X < (SCREEN_WIDTH+x2)-200 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*2)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*2)then
graphics.set_color(0, 1, 0, 0.6) --長方形の色(きみどり)、透明度
else
graphics.set_color(0, 1, 0, 0.2)
end
graphics.draw_filled_circle((SCREEN_WIDTH+x1)-250+8, (SCREEN_HIGHT+y1)-(50*2)-8, 8)
-- quick_look_11_mem
if MOUSE_X > (SCREEN_WIDTH+x1)-200 and MOUSE_X < (SCREEN_WIDTH+x2)-150 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*2)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*2)then
graphics.set_color(0, 1, 0, 0.6) --長方形の色(きみどり)、透明度
else
graphics.set_color(0, 1, 0, 0.2)
end
graphics.draw_filled_circle((SCREEN_WIDTH+x1)-200+8, (SCREEN_HIGHT+y1)-(50*2)-8, 8)
-- quick_look_12_mem
if MOUSE_X > (SCREEN_WIDTH+x1)-150 and MOUSE_X < (SCREEN_WIDTH+x2)-100 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*2)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*2)then
graphics.set_color(0, 1, 0, 0.6) --長方形の色(きみどり)、透明度
else
graphics.set_color(0, 1, 0, 0.2)
end
graphics.draw_filled_circle((SCREEN_WIDTH+x1)-150+8, (SCREEN_HIGHT+y1)-(50*2)-8, 8)
-- quick_look_13_mem
if MOUSE_X > (SCREEN_WIDTH+x1)-100 and MOUSE_X < (SCREEN_WIDTH+x2)-50 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*2)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*2)then
graphics.set_color(0, 1, 0, 0.6) --長方形の色(きみどり)、透明度
else
graphics.set_color(0, 1, 0, 0.2)
end
graphics.draw_filled_circle((SCREEN_WIDTH+x1)-100+8, (SCREEN_HIGHT+y1)-(50*2)-8, 8)
-- quick_look_14_mem
if MOUSE_X > (SCREEN_WIDTH+x1)-50 and MOUSE_X < (SCREEN_WIDTH+x2)-0 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*2)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*2)then
graphics.set_color(0, 1, 0, 0.6) --長方形の色(きみどり)、透明度
else
graphics.set_color(0, 1, 0, 0.2)
end
graphics.draw_filled_circle((SCREEN_WIDTH+x1)-50+8, (SCREEN_HIGHT+y1)-(50*2)-8, 8)
----------------------------------------------------------------------------------------------------
-- quick_look_15_mem
if MOUSE_X > (SCREEN_WIDTH+x1)-250 and MOUSE_X < (SCREEN_WIDTH+x2)-200 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*3)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*3)then
graphics.set_color(0, 1, 0, 0.6) --長方形の色(きみどり)、透明度
else
graphics.set_color(0, 1, 0, 0.2)
end
graphics.draw_filled_circle((SCREEN_WIDTH+x1)-250+8, (SCREEN_HIGHT+y1)-(50*3)-8, 8)
-- quick_look_16_mem
if MOUSE_X > (SCREEN_WIDTH+x1)-200 and MOUSE_X < (SCREEN_WIDTH+x2)-150 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*3)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*3)then
graphics.set_color(0, 1, 0, 0.6) --長方形の色(きみどり)、透明度
else
graphics.set_color(0, 1, 0, 0.2)
end
graphics.draw_filled_circle((SCREEN_WIDTH+x1)-200+8, (SCREEN_HIGHT+y1)-(50*3)-8, 8)
-- quick_look_17_mem
if MOUSE_X > (SCREEN_WIDTH+x1)-150 and MOUSE_X < (SCREEN_WIDTH+x2)-100 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*3)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*3)then
graphics.set_color(0, 1, 0, 0.6) --長方形の色(きみどり)、透明度
else
graphics.set_color(0, 1, 0, 0.2)
end
graphics.draw_filled_circle((SCREEN_WIDTH+x1)-150+8, (SCREEN_HIGHT+y1)-(50*3)-8, 8)
-- quick_look_18_mem
if MOUSE_X > (SCREEN_WIDTH+x1)-100 and MOUSE_X < (SCREEN_WIDTH+x2)-50 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*3)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*3)then
graphics.set_color(0, 1, 0, 0.6) --長方形の色(きみどり)、透明度
else
graphics.set_color(0, 1, 0, 0.2)
end
graphics.draw_filled_circle((SCREEN_WIDTH+x1)-100+8, (SCREEN_HIGHT+y1)-(50*3)-8, 8)
-- quick_look_19_mem
if MOUSE_X > (SCREEN_WIDTH+x1)-50 and MOUSE_X < (SCREEN_WIDTH+x2)-0 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*3)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*3)then
graphics.set_color(0, 1, 0, 0.6) --長方形の色(きみどり)、透明度
else
graphics.set_color(0, 1, 0, 0.2)
end
graphics.draw_filled_circle((SCREEN_WIDTH+x1)-50+8, (SCREEN_HIGHT+y1)-(50*3)-8, 8)
----------------------------------------------------------------------------------------------------
--------------------------------------------
-- 記憶ボタンのテキスト
--------------------------------------------
graphics.set_color(1, 1, 0, 0.7)
--------------------------------------------
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-250+4, (SCREEN_HIGHT+y1)-(50*0)-12, "M") --nompad-0 用
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-200+4, (SCREEN_HIGHT+y1)-(50*0)-12, "M") --nompad-1 用
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-150+4, (SCREEN_HIGHT+y1)-(50*0)-12, "M") --nompad-2 用
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-100+4, (SCREEN_HIGHT+y1)-(50*0)-12, "M") --nompad-3 用
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-50+4, (SCREEN_HIGHT+y1)-(50*0)-12, "M") --nompad-4 用
--------------------------------------------
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-250+4, (SCREEN_HIGHT+y1)-(50*1)-12, "M") --nompad-5 用
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-200+4, (SCREEN_HIGHT+y1)-(50*1)-12, "M") --nompad-6 用
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-150+4, (SCREEN_HIGHT+y1)-(50*1)-12, "M") --nompad-7 用
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-100+4, (SCREEN_HIGHT+y1)-(50*1)-12, "M") --nompad-8 用
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-50+4, (SCREEN_HIGHT+y1)-(50*1)-12, "M") --nompad-9 用
--------------------------------------------
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-250+4, (SCREEN_HIGHT+y1)-(50*2)-12, "M") --nompad-10 用
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-200+4, (SCREEN_HIGHT+y1)-(50*2)-12, "M") --nompad-11 用
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-150+4, (SCREEN_HIGHT+y1)-(50*2)-12, "M") --nompad-12 用
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-100+4, (SCREEN_HIGHT+y1)-(50*2)-12, "M") --nompad-13 用
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-50+4, (SCREEN_HIGHT+y1)-(50*2)-12, "M") --nompad-14 用
--------------------------------------------
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-250+4, (SCREEN_HIGHT+y1)-(50*3)-12, "M") --nompad-15 用
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-200+4, (SCREEN_HIGHT+y1)-(50*3)-12, "M") --nompad-16 用
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-150+4, (SCREEN_HIGHT+y1)-(50*3)-12, "M") --nompad-17 用
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-100+4, (SCREEN_HIGHT+y1)-(50*3)-12, "M") --nompad-18 用
draw_string_Helvetica_10((SCREEN_WIDTH+x1)-50+4, (SCREEN_HIGHT+y1)-(50*3)-12, "M") --nompad-19 用
--------------------------------------------
end
do_every_draw("draw_quick_look_memory()")
--------------------------**********--------------------------
---------------------- マウスクリックの関数(機能)---------------------
--------------------------**********--------------------------
function qs_mouse_click_events()
-- マウス押し下げで一度だけ反応します
if MOUSE_STATUS ~= "down" then
return
end
-------------------------------------------------------------------------------------------
-- 大きいボタン quick_look クリック時のコマンド処理
-------------------------------------------------------------------------------------------
-- quick_look_0
if MOUSE_X > (SCREEN_WIDTH+x1)-250 and MOUSE_X < (SCREEN_WIDTH+x2)-200 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*0)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*0)-15 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 > (SCREEN_WIDTH+x1)-200 and MOUSE_X < (SCREEN_WIDTH+x2)-150 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*0)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*0)-15 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 > (SCREEN_WIDTH+x1)-150 and MOUSE_X < (SCREEN_WIDTH+x2)-100 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*0)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*0)-15 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 > (SCREEN_WIDTH+x1)-100 and MOUSE_X < (SCREEN_WIDTH+x2)-50 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*0)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*0)-15 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 > (SCREEN_WIDTH+x1)-50 and MOUSE_X < (SCREEN_WIDTH+x2)-0 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*0)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*0)-15 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 > (SCREEN_WIDTH+x1)-250 and MOUSE_X < (SCREEN_WIDTH+x2)-200 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*1)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*1)-15 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 > (SCREEN_WIDTH+x1)-200 and MOUSE_X < (SCREEN_WIDTH+x2)-150 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*1)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*1)-15 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 > (SCREEN_WIDTH+x1)-150 and MOUSE_X < (SCREEN_WIDTH+x2)-100 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*1)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*1)-15 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 > (SCREEN_WIDTH+x1)-100 and MOUSE_X < (SCREEN_WIDTH+x2)-50 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*1)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*1)-15 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 > (SCREEN_WIDTH+x1)-50 and MOUSE_X < (SCREEN_WIDTH+x2)-0 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*1)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*1)-15 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 > (SCREEN_WIDTH+x1)-250 and MOUSE_X < (SCREEN_WIDTH+x2)-200 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*2)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*2)-15 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 > (SCREEN_WIDTH+x1)-200 and MOUSE_X < (SCREEN_WIDTH+x2)-150 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*2)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*2)-15 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 > (SCREEN_WIDTH+x1)-150 and MOUSE_X < (SCREEN_WIDTH+x2)-100 and MOUSE_Y > (SCREEN_HIGHT+y2)-((50*2)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*2)-15 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 > (SCREEN_WIDTH+x1)-100 and MOUSE_X < (SCREEN_WIDTH+x2)-50 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*2)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*2)-15 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 > (SCREEN_WIDTH+x1)-50 and MOUSE_X < (SCREEN_WIDTH+x2)-0 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*2)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*2)-15 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 > (SCREEN_WIDTH+x1)-250 and MOUSE_X < (SCREEN_WIDTH+x2)-200 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*3)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*3)-15 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 > (SCREEN_WIDTH+x1)-200 and MOUSE_X < (SCREEN_WIDTH+x2)-150 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*3)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*3)-15 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 > (SCREEN_WIDTH+x1)-150 and MOUSE_X < (SCREEN_WIDTH+x2)-100 and MOUSE_Y > (SCREEN_HIGHT+y2)-((50*3)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*3)-15 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 > (SCREEN_WIDTH+x1)-100 and MOUSE_X < (SCREEN_WIDTH+x2)-50 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*3)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*3)-15 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 > (SCREEN_WIDTH+x1)-50 and MOUSE_X < (SCREEN_WIDTH+x2)-0 and MOUSE_Y > (SCREEN_HIGHT+y1)-((50*3)+50) and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*3)-15 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
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-- 記憶ボタン quick_look_mem のマウスクリック時のコマンド処理
-------------------------------------------------------------------------------------------
-- Memory(quick_look_0_mem)
if MOUSE_X > (SCREEN_WIDTH+x1)-250 and MOUSE_X < (SCREEN_WIDTH+x2)-200 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*0)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*0)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 > (SCREEN_WIDTH+x1)-200 and MOUSE_X < (SCREEN_WIDTH+x2)-150 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*0)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*0) 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 > (SCREEN_WIDTH+x1)-150 and MOUSE_X < (SCREEN_WIDTH+x2)-100 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*0)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*0) 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 > (SCREEN_WIDTH+x1)-100 and MOUSE_X < (SCREEN_WIDTH+x2)-50 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*0)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*0) 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 > (SCREEN_WIDTH+x1)-50 and MOUSE_X < (SCREEN_WIDTH+x2)-0 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*0)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*0) 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 > (SCREEN_WIDTH+x1)-250 and MOUSE_X < (SCREEN_WIDTH+x2)-200 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*1)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*1) 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 > (SCREEN_WIDTH+x1)-200 and MOUSE_X < (SCREEN_WIDTH+x2)-150 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*1)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*1) 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 > (SCREEN_WIDTH+x1)-150 and MOUSE_X < (SCREEN_WIDTH+x2)-100 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*1)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*1) 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 > (SCREEN_WIDTH+x1)-100 and MOUSE_X < (SCREEN_WIDTH+x2)-50 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*1)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*1) 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 > (SCREEN_WIDTH+x1)-50 and MOUSE_X < (SCREEN_WIDTH+x2)-0 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*1)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*1) 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 > (SCREEN_WIDTH+x1)-250 and MOUSE_X < (SCREEN_WIDTH+x2)-200 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*2)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*2) 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 > (SCREEN_WIDTH+x1)-200 and MOUSE_X < (SCREEN_WIDTH+x2)-150 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*2)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*2) 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 > (SCREEN_WIDTH+x1)-150 and MOUSE_X < (SCREEN_WIDTH+x2)-100 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*2)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*2) 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 > (SCREEN_WIDTH+x1)-100 and MOUSE_X < (SCREEN_WIDTH+x2)-50 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*2)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*2) 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 > (SCREEN_WIDTH+x1)-50 and MOUSE_X < (SCREEN_WIDTH+x2)-0 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*2)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*2) 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 > (SCREEN_WIDTH+x1)-250 and MOUSE_X < (SCREEN_WIDTH+x2)-200 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*3)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*3) 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 > (SCREEN_WIDTH+x1)-200 and MOUSE_X < (SCREEN_WIDTH+x2)-150 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*3)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*3) 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 > (SCREEN_WIDTH+x1)-150 and MOUSE_X < (SCREEN_WIDTH+x2)-100 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*3)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*3) 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 > (SCREEN_WIDTH+x1)-100 and MOUSE_X < (SCREEN_WIDTH+x2)-50 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*3)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*3) 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 > (SCREEN_WIDTH+x1)-50 and MOUSE_X < (SCREEN_WIDTH+x2)-0 and MOUSE_Y > (SCREEN_HIGHT+y1)-(50*3)-15 and MOUSE_Y < (SCREEN_HIGHT+y2)-(50*3) then
if MOUSE_STATUS == "down" then
command_once("sim/view/quick_look_19_mem")
end
RESUME_MOUSE_CLICK = true
end
-------------------------------------------------------------------------------------------
end
do_on_mouse_click("qs_mouse_click_events()") --上の関数マウスクリックをここで実行