Hello USSR_Rik.
The mod changes 3 files: CommandMenu.lua, CommandDialogsPanel.lua and gameMessages.lua
I am using a resolution of 5760x1080 and need to have all the menus, etc in the center screen, upper right corner.
I need to do this with JSGME, otherewise every time DCS gets updated I need to manually change those files!
for the command menu edit DCS World/Scripts/UI/RadioCommandDialogPanel/CommandMenu.lua
starting at line 89
do
local menuPanel = Panel.new('CommandMenu.menuPanel')
menuPanel:setSkin(containerSkin)
menuPanel:setBounds(3840 - menuWidth, 0, menuWidth, height) -- edit here
container:insertWidget(menuPanel)
self.menuPanel = menuPanel
additionally DCS World\Scripts\UI\RadioCommandDialogPanel\CommandDialogsPanel.lua
starting at line 175
do
local screenWidth, screenHeight = Gui.GetWindowSize()
screenWidth = 3840 -- add this line
local height = 400
local window = DialogLoader.spawnDialogFromFile('Scripts/UI/RadioCommandDialogPanel/CommandDialogsPanel.dlg')
window:setBounds(0, 0, screenWidth, height)
and finally
go to DCS World\Scripts\UI\gameMessages.lua
starting at line 54 for me
window = DialogLoader.spawnDialogFromFile('Scripts/UI/gameMessages.dlg', localization)
main_w, main_h = Gui.GetWindowSize()
main_w = 1920 --add this line!
--window:setBounds(0,0, main_w, main_h)
window:setBounds(1920,0, main_w, main_h) --edit this line