ok ok , je croyais que ça avait son importance car ça ne fonctionne pas chez moi donc je me suis dit que ça venez peu être de là . je vais rejeter un oeil.
merci en tout cas
edit je vous met le fichier si quelqu'un a une idée
-- positioning on screen in HUD Only view
function update_screenspace_diplacement(aspect,is_left,zoom_value)
local aspect = aspect or 1
local zoom_value = zoom_value or 0
local default_width = 0.5 * LockOn_Options.screen.height + (64 * zoom_value)
if default_width > LockOn_Options.screen.height then
default_width = LockOn_Options.screen.height
end
if default_width > 0.5 * LockOn_Options.screen.width then
default_width = 0.5 * LockOn_Options.screen.width
end
local default_height = default_width / aspect
local default_y = LockOn_Options.screen.height - default_height
local default_x = LockOn_Options.screen.width - default_width
if is_left then
default_x = 0
end
dedicated_viewport = {default_x,default_y,default_width,default_height}
dedicated_viewport_arcade = {default_x, 0 ,default_width,default_height}
end
function set_full_viewport_coverage(viewport)
dedicated_viewport = {viewport.x,
viewport.y,
viewport.width,
viewport.height}
dedicated_viewport_arcade = dedicated_viewport
purposes = {--render_purpose.GENERAL,
render_purpose.HUD_ONLY_VIEW,
render_purpose.SCREENSPACE_OUTSIDE_COCKPIT,
render_purpose.SCREENSPACE_INSIDE_COCKPIT} -- set purposes to draw it always
render_target_always = true
end
-- try to find assigned viewport
function try_find_assigned_viewport(exactly_name,abstract_name)
local multimonitor_setup_name = "Config/MonitorSetup/"..get_multimonitor_preset_name()..".lua"
local f = loadfile(multimonitor_setup_name)
if f then
local env = {screen = LockOn_Options.screen}
setfenv(f,env)
pcall(f)
local target_env = env[exactly_name]
if not target_env and abstract_name then
target_env = env[abstract_name]
end
if target_env then
set_full_viewport_coverage(target_env)
end
end
end