Page 1 sur 1

Gauges pour Van's RV-8 et RV-8A de Vertigo Studios

MessagePosté: Ven 15 Juil 2016 14:57
de taton
Bonjour à tous,

Suite à mon post précédent pour sur la découverte de Air Manager pour concevoir ma 1ere gauge, j'ai décidé de créer un fil avec l'avancée des différents instruments pour mon futur pit'.

Merci à JacquesZ pour ces explications claires et précises, m'ayant permises d'obtenir la 1ere!

Voir ce post:http://www.aircockpit.com/viewtopic.php?f=147&t=5446&p=64458#p64422

1ere: l'horloge de bord analogique

MessagePosté: Ven 15 Juil 2016 15:02
de taton
Taille de 250x250 mais utilisable en 500x500
L'horloge fonctionne en heure locale et non en zulu/GMT.

Optimisation à venir en V2:
Réglage manuel de l'heure. (juste pour le fun...) sourirebis


Version "neuve":

Image
Code: Tout sélectionner
img_add_fullscreen("watch_background.png")
img_small = img_add_fullscreen("watch_small_hand.png")
img_big = img_add_fullscreen("watch_big_hand.png")
img_seconds = img_add_fullscreen("watch_second_hand.png")

function Callback_time(s,m,h)
   img_rotate(img_seconds, s*6)
    img_rotate(img_small, h*30)
    img_rotate(img_big, m*6)
end

fsx_variable_subscribe("LOCAL TIME", "Seconds",
                  "LOCAL TIME", "Minutes",
                  "LOCAL TIME", "Hours",Callback_time)
               







Version "Usagée":

Image
Code: Tout sélectionner
img_add_fullscreen("watch_background.png")
img_small = img_add_fullscreen("watch_small_hand.png")
img_big = img_add_fullscreen("watch_big_hand.png")
img_seconds = img_add_fullscreen("watch_second_hand.png")
img_glass = img_add_fullscreen("Glass.png")

function Callback_time(s,m,h)
   img_rotate(img_seconds, s*6)
    img_rotate(img_small, h*30)
    img_rotate(img_big, m*6)
end

fsx_variable_subscribe("LOCAL TIME", "Seconds",
                  "LOCAL TIME", "Minutes",
                  "LOCAL TIME", "Hours",Callback_time)