From 0d3986e7ccb92c99dd6913cc290b40e439c29499 Mon Sep 17 00:00:00 2001 From: Rampoina Date: Thu, 21 Jul 2022 17:57:43 +0200 Subject: [PATCH 1/2] Allow minimap position to be changed from the ini file --- source/glest_game/global/metrics.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/glest_game/global/metrics.cpp b/source/glest_game/global/metrics.cpp index 15bbae3e5..d83e1f673 100644 --- a/source/glest_game/global/metrics.cpp +++ b/source/glest_game/global/metrics.cpp @@ -51,10 +51,10 @@ void Metrics::reloadData(int resWidth, int resHeight) { screenH= config.getInt("ScreenHeight"); } - minimapX= 10; - minimapY= 750-128-30+16; - minimapW= 128; - minimapH= 128; + minimapX= config.getInt("MinimapX","7")+3; + minimapY= config.getInt("MinimapY",intToStr(750-128-30+13).c_str())+3; + minimapW= config.getInt("MinimapWidth","128"); + minimapH= config.getInt("MinimapHeight","128"); displayX= 800; displayY= 250; From ace046665a084d2c3480040ecf94885e68241944 Mon Sep 17 00:00:00 2001 From: Rampoina Date: Thu, 21 Jul 2022 17:59:14 +0200 Subject: [PATCH 2/2] Allow game clock text position to be changed from the ini file --- source/glest_game/graphics/renderer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/glest_game/graphics/renderer.cpp b/source/glest_game/graphics/renderer.cpp index 4b399d7e9..6c5057832 100644 --- a/source/glest_game/graphics/renderer.cpp +++ b/source/glest_game/graphics/renderer.cpp @@ -2384,13 +2384,13 @@ void Renderer::renderClock() { renderTextShadow3D( str, CoreData::getInstance().getDisplayFontSmall3D(), fontColor, - 10, metrics.getVirtualH()-160, false); + config.getInt("ClockX","10"), config.getInt("ClockY", intToStr(metrics.getVirtualH()-160).c_str()), false); } else { renderTextShadow( str, CoreData::getInstance().getDisplayFontSmall(), fontColor, - 10, metrics.getVirtualH()-160, false); + config.getInt("ClockX","10"), config.getInt("ClockY", intToStr(metrics.getVirtualH()-160).c_str()), false); } }