Hyoukaxd Posted May 20, 2022 Share Posted May 20, 2022 Is there any warmhearted bro can help me to make the VTB viewport smaller? Link to comment Share on other sites More sharing options...
Akiazusa Posted May 21, 2022 Share Posted May 21, 2022 (edited) 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}} 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: 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: 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 May 21, 2022 by Akiazusa 1 Kyoto Animation forever! Link to comment Share on other sites More sharing options...
Hyoukaxd Posted May 21, 2022 Author Share Posted May 21, 2022 (edited) 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}} 我相信那些 {{-1, 1}, { 1, 1}, { 1,-1}, {-1,-1}} 是 VTB 视口的 4 个角的坐标 默认坐标如下: 您可以编辑这些数字以满足自己的需求。 注意:如果您希望视口始终停留在屏幕的右上角,则右上角的坐标应始终为 (1,1)。否则会显示如下: 例如,如果您希望它小 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 May 21, 2022 by Hyoukaxd 1 Link to comment Share on other sites More sharing options...
Akiazusa Posted May 21, 2022 Share Posted May 21, 2022 (edited) 12 minutes ago, Hyoukaxd said: Thx a lot~~~ Hyouka is good,love it forever Edited May 21, 2022 by Akiazusa Kyoto Animation forever! Link to comment Share on other sites More sharing options...
Hyoukaxd Posted May 21, 2022 Author Share Posted May 21, 2022 友军~~~ Link to comment Share on other sites More sharing options...
Recommended Posts