Release v1.5.3.0
Added support for 3840x2160 monitor
This commit is contained in:
parent
f6055f946c
commit
0faba02a60
3 changed files with 27 additions and 4 deletions
|
|
@ -56,6 +56,28 @@ void CoordinateUtils::GetScaledCoordinates(int baseX, int baseY, int* scaledX, i
|
||||||
g_api->Log(ELogLevel_INFO, "GolemHelper", "ULTRAWIDE 3440x1440: APPLIED NORMAL UI OFFSET");
|
g_api->Log(ELogLevel_INFO, "GolemHelper", "ULTRAWIDE 3440x1440: APPLIED NORMAL UI OFFSET");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (g_nexusLink->Width == 3840 && g_nexusLink->Height == 2160) {
|
||||||
|
if (uiScale >= 0.89f && uiScale <= 0.91f) {
|
||||||
|
dpiScaleX = 2.052f;
|
||||||
|
dpiScaleY = 0.908f;
|
||||||
|
g_api->Log(ELogLevel_INFO, "GolemHelper", "4K 3840x2160: APPLIED SMALL UI OFFSET");
|
||||||
|
}
|
||||||
|
else if (uiScale >= 1.09f && uiScale <= 1.15f) {
|
||||||
|
dpiScaleX = 1.985f;
|
||||||
|
dpiScaleY = 1.130f;
|
||||||
|
g_api->Log(ELogLevel_INFO, "GolemHelper", "4K 3840x2160: APPLIED LARGE UI OFFSET");
|
||||||
|
}
|
||||||
|
else if (uiScale >= 1.21f && uiScale <= 1.25f) {
|
||||||
|
dpiScaleX = 1.952f;
|
||||||
|
dpiScaleY = 1.233f;
|
||||||
|
g_api->Log(ELogLevel_INFO, "GolemHelper", "4K 3840x2160: APPLIED LARGER UI OFFSET");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
dpiScaleX = 2.0f;
|
||||||
|
dpiScaleY = 1.0f;
|
||||||
|
g_api->Log(ELogLevel_INFO, "GolemHelper", "4K 3840x2160: APPLIED NORMAL UI OFFSET");
|
||||||
|
}
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
dpiScaleX = (float)g_nexusLink->Width / 1920.0f;
|
dpiScaleX = (float)g_nexusLink->Width / 1920.0f;
|
||||||
dpiScaleY = 1.0f;
|
dpiScaleY = 1.0f;
|
||||||
|
|
@ -73,7 +95,8 @@ void CoordinateUtils::GetScaledCoordinates(int baseX, int baseY, int* scaledX, i
|
||||||
int finalY = scaledForResolutionY;
|
int finalY = scaledForResolutionY;
|
||||||
|
|
||||||
if (!(g_nexusLink->Width == 5120 && g_nexusLink->Height == 1440) &&
|
if (!(g_nexusLink->Width == 5120 && g_nexusLink->Height == 1440) &&
|
||||||
!(g_nexusLink->Width == 3440 && g_nexusLink->Height == 1440)) {
|
!(g_nexusLink->Width == 3440 && g_nexusLink->Height == 1440) &&
|
||||||
|
!(g_nexusLink->Width == 3840 && g_nexusLink->Height == 2160)) {
|
||||||
if (uiScale >= 0.89f && uiScale <= 0.91f) {
|
if (uiScale >= 0.89f && uiScale <= 0.91f) {
|
||||||
finalX = scaledForResolutionX - (int)(scaledForResolutionX * 0.029f);
|
finalX = scaledForResolutionX - (int)(scaledForResolutionX * 0.029f);
|
||||||
finalY = scaledForResolutionY - (int)(scaledForResolutionY * 0.103f);
|
finalY = scaledForResolutionY - (int)(scaledForResolutionY * 0.103f);
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ void Load(AddonAPI* aApi) {
|
||||||
|
|
||||||
MapUtils::UpdateQuickAccessVisibility();
|
MapUtils::UpdateQuickAccessVisibility();
|
||||||
|
|
||||||
g_api->Log(ELogLevel_INFO, "GolemHelper", "=== GolemHelper v1.5.2.0 Loaded ===");
|
g_api->Log(ELogLevel_INFO, "GolemHelper", "=== GolemHelper v1.5.3.0 Loaded ===");
|
||||||
g_api->Log(ELogLevel_INFO, "GolemHelper", "<c=#00ff00>GolemHelper addon</c> loaded successfully!");
|
g_api->Log(ELogLevel_INFO, "GolemHelper", "<c=#00ff00>GolemHelper addon</c> loaded successfully!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -62,7 +62,7 @@ extern "C" __declspec(dllexport) AddonDefinition* GetAddonDef() {
|
||||||
def.Signature = -424248;
|
def.Signature = -424248;
|
||||||
def.APIVersion = NEXUS_API_VERSION;
|
def.APIVersion = NEXUS_API_VERSION;
|
||||||
def.Name = "GolemHelper";
|
def.Name = "GolemHelper";
|
||||||
def.Version = { 1, 5, 2, 0 };
|
def.Version = { 1, 5, 3, 0 };
|
||||||
def.Author = "Azrub";
|
def.Author = "Azrub";
|
||||||
def.Description = "Automates the process of setting optimal boon and golem configurations in the training area";
|
def.Description = "Automates the process of setting optimal boon and golem configurations in the training area";
|
||||||
def.Load = Load;
|
def.Load = Load;
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ void UIManager::RenderUI() {
|
||||||
|
|
||||||
if (ImGui::Begin("GolemHelper", &g_state.showUI, ImGuiWindowFlags_AlwaysAutoResize)) {
|
if (ImGui::Begin("GolemHelper", &g_state.showUI, ImGuiWindowFlags_AlwaysAutoResize)) {
|
||||||
|
|
||||||
ImGui::TextColored(ImVec4(0.2f, 0.8f, 1.0f, 1.0f), "GolemHelper v1.5.2.0");
|
ImGui::TextColored(ImVec4(0.2f, 0.8f, 1.0f, 1.0f), "GolemHelper v1.5.3.0");
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
|
|
||||||
if (ImGui::BeginTabBar("GolemHelperTabs", ImGuiTabBarFlags_None)) {
|
if (ImGui::BeginTabBar("GolemHelperTabs", ImGuiTabBarFlags_None)) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue