Jump to content

Recommended Posts

Posted

Hey Guys, I have 2 monitors I am able to set it if my 2nd monitor is at right but not if I set it at left. This is my lua file for the monitor at left. Does DCS accept negative coordinates?

MONITOR 2 = 2560 X 1080

MONITOR 1 = 2560 X 1440

_  = function(p) return p; end;
name = _('F18');
Description = 'Left and Right MFD on the left Monitor'
Viewports =

{

Center =

{

x = 0;

y = 0;

width = 2560;

height = 1440 ;

viewDx = 0;

viewDy = 0;

aspect = 2560 / 1440 ;

}

}

 

LEFT_MFCD =

{

x = -2000;

y = 420;

width = 960;

height = 960;

}

 

RIGHT_MFCD =

{

x = -1000;

y = 420;

width = 960;

height = 960;

}

 

 

UIMainView = Viewports.Center

GU_MAIN_VIEWPORT = Viewports.Center

--LEFT_MFCD = Viewports.LEFT_MFCD

--RIGHT_MFCD = Viewports.RIGHT_MFCD[code]
 

Screenshot 2023-03-09 080852.jpg

Posted
On 3/9/2023 at 12:07 PM, Biga42 said:

Hey Guys, I have 2 monitors I am able to set it if my 2nd monitor is at right but not if I set it at left. This is my lua file for the monitor at left. Does DCS accept negative coordinates?

MONITOR 2 = 2560 X 1080

MONITOR 1 = 2560 X 1440

_  = function(p) return p; end;
name = _('F18');
Description = 'Left and Right MFD on the left Monitor'
Viewports =

{

Center =

{

x = 0;

y = 0;

width = 2560;

height = 1440 ;

viewDx = 0;

viewDy = 0;

aspect = 2560 / 1440 ;

}

}

 

LEFT_MFCD =

{

x = -2000;

y = 420;

width = 960;

height = 960;

}

 

RIGHT_MFCD =

{

x = -1000;

y = 420;

width = 960;

height = 960;

}

 

 

UIMainView = Viewports.Center

GU_MAIN_VIEWPORT = Viewports.Center

--LEFT_MFCD = Viewports.LEFT_MFCD

--RIGHT_MFCD = Viewports.RIGHT_MFCD[code]
 

Screenshot 2023-03-09 080852.jpg

In your new case:

Center x=0+2560=2560, y=0

LEFT_MFCD x=0, y=0

RIGHT_MFCD x=1000, y=0

If uppper parts of MFCD gets cut, try y=1440-1080=360 for both

  • Like 1

🖥️ Win10  i7-10700KF  32GB  RTX4070S   🥽 Quest 3   🕹️ T16000M  VPC CDT-VMAX  TFRP   ✈️ FC3  F-14A/B  F-15E   ⚙️ CA   🚢 SC   🌐 NTTR  PG  Syria

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...