Jump to content

Can we change the size of VTB viewport on the screen?


Hyoukaxd

Recommended Posts

You can find a file called VTB_viewport.lua under ...\DCS World\Mods\aircraft\M-2000C\Cockpit\VTB,  open it with something like Notepad++ and find this line

local verts = {{-1, 1}, { 1, 1}, { 1,-1}, {-1,-1}}

QQ图片20220521192032.png

 

I believe those {{-1, 1}, { 1, 1}, { 1,-1}, {-1,-1}} are the coordinates of 4 corner of VTB viewport

the default coordinates are like this:

QQ截图20220521192611.png

You can edit these numbers to satisfy yourself.

Note:If you want the viewport to always stick at top-right corner of you screen,the coordinate of top right corner should always be (1,1). Otherwise it will show up like this:

QQ截图20220521193116.png

For example if you want it to be 0.5x smaller the number should be {{0, 1}, { 1, 1}, { 1,0}, {0,0}} instead of {{-0.5, 0.5}, { 0.5, 0.5}, { 0.5,-0.5}, {-0.5,-0.5}}

Hope it helps and don't forget to back up the file before editing it in case of something bad happens.


Edited by Akiazusa
  • Like 1

Kyoto Animation forever!

Link to comment
Share on other sites

55 minutes ago, Akiazusa said:

你可以在 ...\DCS World\Mods\aircraft\M-2000C\Cockpit\VTB 下找到一个名为 VTB_viewport.lua 的文件,用 Notepad++ 之类的东西打开它并找到这一行

局部顶点 = {{-1, 1}, { 1, 1}, { 1,-1}, {-1,-1}}

QQ图片20220521192032.png

 

我相信那些 {{-1, 1}, { 1, 1}, { 1,-1}, {-1,-1}} 是 VTB 视口的 4 个角的坐标

默认坐标如下:

QQ截图20220521192611.png

您可以编辑这些数字以满足自己的需求。

注意:如果您希望视口始终停留在屏幕的右上角,则右上角的坐标应始终为 (1,1)。否则会显示如下:

QQ截图20220521193116.png

例如,如果您希望它小 0.5 倍,则数字应该是 {{0, 1}, { 1, 1}, { 1,0}, {0,0}} 而不是 {{-0.5, 0.5}, { 0.5, 0.5}, { 0.5,-0.5}, {-0.5,-0.5}}

希望它有所帮助,并且不要忘记在编辑文件之前备份文件,以防发生不好的事情。

 

Thx a lot~~~

Hyouka is good,love it forever


Edited by Hyoukaxd
  • Like 1
Link to comment
Share on other sites

  • Recently Browsing   0 members

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