Call = Lock
; 色設定を緑にしてUAVの電波の強さ描画を呼び出す。色設定はCall先にも引き継がれる。
Color = 0xFF28d448
Call = uav_fs

; UAVかガンナーモードの場合はカメラの倍率を表示する
If = is_uav || gunner_mode
	Color = 0xCFFFFFFF
	DrawString = -70, 10, "x%.1f", CAM_ZOOM
EndIf

; 色設定を緑にして照準描画を呼び出す。色設定はCall先にも引き継がれる。
Color = 0xFF28d448

; 色設定を緑にして目盛を描画する。
Color = 0xFF28d448
DrawGraduationYaw   = plyr_yaw, 0,   0, -120
DrawLine = 0,-87,   2,-83,  -2,-83,   0,-87
DrawCenteredString =   0, -81, "%.0f", PLYR_YAW

DrawGraduationPitch2 = plyr_pitch, -roll,  motion_x, motion_y


Color = 0xFF28d448
If = free_look==1
	DrawString = -90, -80, "FREE LOOK"
Endif

If = auto_pilot==1
	DrawString = 50, 0, "Auto Pilot"
Endif

If = hovering==1
	Color = 0xCF1FFF1F
	DrawCenteredString = 0, 20, "HOVERING"
Endif

If = vtol_stat>0
	; VTOL切替中は赤、VTOL中は緑
	Color = vtol_stat==2? 0xFF28d448: 0xFFDF0408
	DrawString = 50, 10, "VTOL"
EndIf

;近地警告
If = altitude<=20&&motion_y<=0&&(pitch>45||pitch<-60)&&free_look ==0
DrawTexture = AH6JLandingWARN, -150, -150, 300,300 ,0,0, 500,500,0
EndIf

;速度，海拔
Color = 0xFF28d448
DrawString = -150, 90, "G  %.2f",motion_Y
Color = 0xFF28d448
DrawString = -150, 75, "M  %.2f",THROTTLE
Color = 0xFF28d448
DrawString = -150, 60, "P  %.2f",PLYR_PITCH
DrawCenteredString = -100, -92, "%3d", ALTITUDE
DrawCenteredString = 100, -92, "%.1f", THROTTLE

;近地警告
If = altitude<=20&&motion_y<=0&&(pitch>45||pitch<-60)&&free_look ==0
DrawTexture = AH6JLandingWARN, -150, -150, 300,300 ,0,0, 500,500,0
EndIf

;背景
DrawTexture = suhoi_1, -400, -200,  800,400, 0,0, 2048,1024

DrawTexture = suhoi_2, -400-stick_x*25, -200-stick_y*50,  800,400, 0,0, 2048,1024


;机炮

;武器余量
Color = reloading==0? 0xFF28d448: 0xCFDF0408
DrawString = -207, 58, "%s",  WPN_AMMO
DrawString = -181, 58, "/",   WPN_AMMO
DrawString = -172, 58, "%s",  WPN_RM_AMMO
; 武器名 (Weapon name)
DrawString = -207, 69, "%s",  WPN_NAME

;空对空导弹
If = sight_type==1&&reloading==0&&wpn_heat<1.0
DrawTexture = JET_Missile,  -300,-150,  600,300, 0,0, 2048,1024
Color = 0xFF28d448
DrawCenteredString = 0, 55, "%s",  WPN_NAME
Endif
If = sight_type==1&&(reloading==1||wpn_heat==1.0)
DrawTexture = JET_Missile,  -300,-150,  600,300, 0,0, 2048,1024
Color = 0xFF28d448
DrawCenteredString = 0, 55, "%s",  WPN_NAME
Endif

;对地导弹
If = sight_type==2&&reloading==0&&wpn_heat<1.0
DrawTexture = JET_Missile,  -300,-150,  600,300, 0,0, 2048,1024
Color = 0xFF28d448
DrawCenteredString = 0, 55, "%s",  WPN_NAME
Endif

If = sight_type==2&&(reloading==1||wpn_heat==1.0)
DrawTexture = JET_Missile,  -300,-150,  600,300, 0,0, 2048,1024
Color = 0xFF28d448
DrawCenteredString = 0, 55, "%s",  WPN_NAME
Endif


;锁定
If=lock<=0.15&&lock>0
DrawTexture = lockp1 ,-64, -64,  128,128, 0,0, 256,256
EndIf
If=lock<=0.2&&lock>0.15
DrawTexture = lockp2 ,-64, -64,  128,128, 0,0, 256,256
EndIf
If=lock<=0.25&&lock>0.2
DrawTexture = lockp1 ,-64, -64,  128,128, 0,0, 256,256
EndIf
If=lock<=0.3&&lock>0.25
DrawTexture = lockp2 ,-64, -64,  128,128, 0,0, 256,256
EndIf
If=lock<=0.35&&lock>0.3
DrawTexture = lockp1 ,-64, -64,  128,128, 0,0, 256,256
EndIf
If=lock<=0.4&&lock>0.35
DrawTexture = lockp2 ,-64, -64,  128,128, 0,0, 256,256
EndIf
If=lock<=0.45&&lock>0.4
DrawTexture = lockp1 ,-64, -64,  128,128, 0,0, 256,256
EndIf
If=lock<=0.5&&lock>0.45
DrawTexture = lockp2 ,-64, -64,  128,128, 0,0, 256,256
EndIf
If=lock<=0.55&&lock>0.5
DrawTexture = lockp1 ,-64, -64,  128,128, 0,0, 256,256
EndIf
If=lock<=0.6&&lock>0.55
DrawTexture = lockp2 ,-64, -64,  128,128, 0,0, 256,256
EndIf
If=lock<=0.65&&lock>0.6
DrawTexture = lockp1 ,-64, -64,  128,128, 0,0, 256,256
EndIf
If=lock<=0.7&&lock>0.65
DrawTexture = lockp2 ,-64, -64,  128,128, 0,0, 256,256
EndIf
If=lock<=0.75&&lock>0.7
DrawTexture = lockp1 ,-64, -64,  128,128, 0,0, 256,256
EndIf
If=lock<=0.8&&lock>0.75
DrawTexture = lockp2 ,-64, -64,  128,128, 0,0, 256,256
EndIf
If=lock<=0.85&&lock>0.8
DrawTexture = lockp1 ,-64, -64,  128,128, 0,0, 256,256
EndIf
If=lock<=1&&lock>0.85
DrawTexture = lockp2 ,-64, -64,  128,128, 0,0, 256,256
EndIf

; 座標(Position)
DrawString = -205, 20, "X: %+.1f", pos_X
DrawString = -205, 30, "Y: %+.1f", pos_Y
DrawString = -205, 40, "Z: %+.1f", pos_Z
DrawString = -150, 20, "[%+.2f]",  motion_X
DrawString = -150, 30, "[%+.2f]",  motion_Y
DrawString = -150, 40, "[%+.2f]",  motion_Z
