From bb3faaf13721643cbe7859d8d2221a7e0baa7322 Mon Sep 17 00:00:00 2001 From: rubin Date: Mon, 23 Jan 2023 01:10:52 +0300 Subject: [PATCH] change default coords hud --- corn-hud.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/corn-hud.lua b/corn-hud.lua index 58a1521..69b3178 100644 --- a/corn-hud.lua +++ b/corn-hud.lua @@ -32,7 +32,8 @@ function main() if server == "" then thisScript():unload() end - iniName = string.format("cornHUD-%s", server) + iniName = string.format("corn-%s", server) + local x1, y1 = convertGameScreenCoordsToWindowScreenCoords(14.992679595947, 274.75) ini = inicfg.load({ ['Farm 0'] = { corn = 0, @@ -84,8 +85,8 @@ function main() Settings = { Key1='VK_RBUTTON', Key2='VK_MENU', - X=0, - Y=0 + X=x1, + Y=y1 }, }, iniName) inicfg.save(ini, iniName)