Merci pour ces deux photos. Je vois très bien comme ça.
J'aimerais bien réussir à obtenir ça. Superbe panel, bravo.
Ciao
2) Pour les voyants annonciateurs, tu as opté pour quelle solution ?
--Images--
img_add_fullscreen("proprpm_left_backdrop_day.png")
img_needle = img_add_fullscreen("needle.png")
img_smallneedle = img_add("smallneedle.png", 55,140,50,60)
function PT_nightlight(nightlight)
if nightlight == false then
img_visible(img_night,false)
else
img_visible(img_night,true)
end
end
img_night = img_add_fullscreen("proprpm_left_backdrop_night.png")
--Functions--
function new_data(proprpm1)
proprpm1 = var_cap(proprpm1, -2, 95)
img_rotate(img_needle, ((271/100) * proprpm1) - 79)
img_rotate(img_smallneedle, ((360/10) * proprpm1) - 0)
end
-- Subscribe to data --
fsx_variable_subscribe( "LIGHT PANEL", "Bool", PT_nightlight)
fsx_variable_subscribe("L:DHC6_Np_1", "", new_data)
--Images--
img_add_fullscreen("proprpm_left_backdrop_day.png")
img_needle = img_add_fullscreen("needle.png")
img_smallneedle = img_add("smallneedle.png", 55,140,50,60)
function PT_nightlight(nightlight)
if nightlight == false then
img_visible(img_night,false)
else
img_visible(img_night,true)
end
end
img_night = img_add_fullscreen("proprpm_left_backdrop_night.png")
--Functions--
function new_data(proprpm1)
proprpm1 = var_cap(proprpm1, -2, 95)
img_rotate(img_needle, ((271/100) * proprpm1) - 79)
img_rotate(img_smallneedle, ((360/10) * proprpm1) - 0)
end
-- Slowly move needle to current amount of fuel --
function timer_callback()
-- Rotate needle image
img_rotate(img_needle, ((271/100) * proprpm1) - 79)
img_rotate(img_smallneedle, ((360/10) * proprpm1) - 0)
end
-- Subscribe to data --
fsx_variable_subscribe( "LIGHT PANEL", "Bool", PT_nightlight)
fsx_variable_subscribe("L:DHC6_Np_1", "", new_data)
-- Timers --
tmr_update = timer_start(0, 50, timer_callback)
function new_data(t5temp1)
t5temp1 = var_cap(t5temp1, 0, 60)
if t5temp1 > 57.01 and t5temp1 <= 60 then -- 720 a 750 --
img_rotate(img_needle, (4.7 * (t5temp1 - 57.01)) + 170.6)
elseif t5temp1 > 54.88 and t5temp1 <= 57.01 then -- 700 a 720 --
img_rotate(img_needle, (4.56 * (t5temp1 - 54.88)) + 161)
elseif t5temp1 > 49.92 and t5temp1 <= 54.88 then -- 650 a 700 --
img_rotate(img_needle, (4.54 * (t5temp1 - 49.92)) + 138.5)
elseif t5temp1 > 44.8 and t5temp1 <= 49.92 then -- 600 a 650 --
img_rotate(img_needle, (4.54 * (t5temp1 - 44.8)) + 115.2)
Etc .....
Retourner vers Aviation d'affaire & turboprops
Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 22 invités