Skip to content

Commit

Permalink
v1.54.3 merge
Browse files Browse the repository at this point in the history
- early 3.25 release: stuff needs testing, please provide feedback
- fix: act-tracker font-size and panel position
- re-introduced recombination simulator
- alarm/countdown timer: support for multiple timers
- necropolis lantern feature removed
  • Loading branch information
Lailloken authored Jul 23, 2024
2 parents 6525745 + 7ff8660 commit 17d9b9b
Show file tree
Hide file tree
Showing 24 changed files with 1,259 additions and 1,211 deletions.
32 changes: 24 additions & 8 deletions Lailloken UI.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ If WinExist("ahk_exe GeForceNOW.exe") || WinExist("ahk_exe boosteroid.exe")
Init_iteminfo()
Init_legion()
Init_mapinfo()
Init_necropolis()
Init_OCR()
Init_searchstrings()
Init_leveltracker()
Init_maptracker()
Init_qol()
Init_recombination()
Init_stash()
Init_hotkeys()
Resolution_check()
Expand Down Expand Up @@ -100,10 +100,10 @@ Return
#Include modules\leveling tracker.ahk
#Include modules\map-info.ahk
#Include modules\map tracker.ahk
#Include modules\necropolis.ahk
#Include modules\ocr.ahk
#Include modules\omni-key.ahk
#Include modules\qol tools.ahk
#Include modules\recombination.ahk
#Include modules\screen-checks.ahk
#Include modules\search-strings.ahk
#Include modules\seed-explorer.ahk
Expand Down Expand Up @@ -254,7 +254,7 @@ HelpToolTip(HWND_key)
HWND_key := StrReplace(HWND_key, "|"), check := SubStr(HWND_key, 1, InStr(HWND_key, "_") - 1), control := SubStr(HWND_key, InStr(HWND_key, "_") + 1)
If (check = "donation")
check := "settings", donation := 1
HWND_checks := {"cheatsheets": "cheatsheet_menu", "maptracker": "maptracker_logs", "maptrackernotes": "maptrackernotes_edit", "notepad": 0, "leveltracker": "leveltracker_screencap", "snip": 0, "lab": 0, "searchstrings": "searchstrings_menu", "updater": "update_notification", "geartracker": 0, "seed-explorer": "legion"}
HWND_checks := {"cheatsheets": "cheatsheet_menu", "maptracker": "maptracker_logs", "maptrackernotes": "maptrackernotes_edit", "notepad": 0, "leveltracker": "leveltracker_screencap", "snip": 0, "lab": 0, "searchstrings": "searchstrings_menu", "updater": "update_notification", "geartracker": 0, "seed-explorer": "legion", "recombination": 0}
If (check != "settings")
WinGetPos, xWin, yWin, wWin,, % "ahk_id "vars.hwnd[(HWND_checks[check] = 0) ? check : HWND_checks[check]].main
If (check = "lab" && InStr(control, "square"))
Expand Down Expand Up @@ -298,7 +298,7 @@ HelpToolTip(HWND_key)
Gui, %GUI_name%: Show, NA AutoSize x10000 y10000
WinGetPos,,, width, height, ahk_id %tooltip%
xPos := (check = "settings") ? vars.settings.x + vars.settings.wSelection - 1 : xWin, yPos := InStr(control, "update changelog") && (height > vars.monitor.h - (y + h)) ? y - height - 1 : (y + h + height + 1 > vars.monitor.y + vars.monitor.h) ? y - height : y + h + 1
Gui, %GUI_name%: Show, % "NA x"xPos " y"(InStr("notepad, lab, leveltracker, snip, searchstrings, maptracker", check) ? yWin - (check = "maptracker" ? height - 1 : 0) : yPos)
Gui, %GUI_name%: Show, % "NA x"xPos " y"(InStr("notepad, lab, leveltracker, snip, searchstrings, maptracker, recombination", check) ? yWin - (InStr("maptracker, recombination", check) ? height - 1 : 0) : yPos)
LLK_Overlay(tooltip, "show",, GUI_name), LLK_Overlay(hwnd_old, "destroy")
}

Expand Down Expand Up @@ -641,6 +641,7 @@ Init_vars()
vars.mapinfo := {}
vars.hwnd := {"help_tooltips": {}}
vars.help := Json.Load(LLK_FileRead("data\english\help tooltips.json",, "65001"))
vars.recombination := {"classes": ["shield", "sword", "quiver", "bow", "claw", "dagger", "mace", "ring", "amulet", "helmet", "glove", "boot", "belt", "wand", "staves", "axe", "sceptre", "body"]}
vars.snip := {}
Loop, Files, data\alt_font*
alt_font := A_LoopFileName
Expand All @@ -662,7 +663,7 @@ Loop()
If !WinExist("ahk_group poe_window")
vars.client.closed := 1, vars.hwnd.poe_client := ""

If !WinExist("ahk_group poe_window") && (A_TickCount >= vars.general.runcheck + settings.general.kill[2]* 60000) && settings.general.kill[1] && !vars.alarm.timestamp
If !WinExist("ahk_group poe_window") && (A_TickCount >= vars.general.runcheck + settings.general.kill[2]* 60000) && settings.general.kill[1]
ExitApp

If WinExist("ahk_group poe_window")
Expand Down Expand Up @@ -695,7 +696,7 @@ Loop_main()
{
local
global vars, settings
static tick_helptooltips := 0, ClientFiller_count := 0, stashhover := {}, priceindex_count := 0
static tick_helptooltips := 0, ClientFiller_count := 0, priceindex_count := 0, tick_recombination := 0, stashhover := {}

Critical
If vars.cloneframes.editing && (vars.settings.active != "clone-frames") ;in case the user closes the settings menu without saving changes, reset clone-frames settings to previous state
Expand All @@ -704,6 +705,16 @@ Loop_main()
Init_cloneframes()
}

If vars.hwnd.recombination.main && WinActive("ahk_id " vars.hwnd.recombination.main) && (vars.general.wMouse = vars.hwnd.poe_client)
{
tick_recombination += 1
If (tick_recombination >= 3)
{
WinActivate, % "ahk_id " vars.hwnd.poe_client
tick_recombination := 0
}
}

If vars.hwnd.stash_index.main && WinExist("ahk_id " vars.hwnd.stash_index.main) && !WinActive("ahk_id " vars.hwnd.stash_index.main) && !WinActive("ahk_id " vars.hwnd.stash_picker.main)
{
priceindex_count += 1
Expand Down Expand Up @@ -773,7 +784,7 @@ Loop_main()
MouseHover()
IteminfoOverlays()

If vars.client.stream && !vars.general.drag && !WinExist("LLK-UI: notepad reminder") && !WinExist("LLK-UI: alarm set") && WinActive("ahk_group poe_ahk_window") && vars.general.wMouse && (vars.general.wMouse != vars.hwnd.necropolis.main) && LLK_HasVal(vars.hwnd, vars.general.wMouse,,,, 1) && !WinActive("ahk_id " vars.general.wMouse)
If vars.client.stream && !vars.general.drag && !WinExist("LLK-UI: notepad reminder") && !WinExist("LLK-UI: alarm set") && WinActive("ahk_group poe_ahk_window") && vars.general.wMouse && LLK_HasVal(vars.hwnd, vars.general.wMouse,,,, 1) && !WinActive("ahk_id " vars.general.wMouse)
WinActivate, % "ahk_id " vars.general.wMouse

If !vars.general.drag && (vars.general.wMouse != vars.hwnd.settings.main) && WinActive("ahk_group poe_ahk_window") && vars.hwnd.stash.main && !vars.stash.wait && !vars.stash.enter && (vars.stash.GUI || WinExist("ahk_id " vars.hwnd.stash.main)) && LLK_IsBetween(vars.general.xMouse, vars.client.x, vars.client.x + vars.stash.width) && LLK_IsBetween(vars.general.yMouse, vars.client.y, vars.client.y + vars.client.h)
Expand Down Expand Up @@ -846,7 +857,7 @@ Loop_main()
remove_tooltips := ""
}

If !vars.general.gui_hide && (WinActive("ahk_group poe_ahk_window") || (settings.general.dev && WinActive("ahk_exe code.exe"))) && !vars.client.closed && !WinActive("ahk_id "vars.hwnd.leveltracker_screencap.main) && !WinActive("ahk_id "vars.hwnd.snip.main) && !WinActive("ahk_id "vars.hwnd.cheatsheet_menu.main) && !WinActive("ahk_id "vars.hwnd.searchstrings_menu.main) && !WinActive("ahk_id "vars.hwnd.notepad.main) && !(vars.general.inactive && WinActive("ahk_id "vars.hwnd.settings.main))
If !vars.general.gui_hide && (WinActive("ahk_group poe_ahk_window") || (settings.general.dev && WinActive("ahk_exe code.exe"))) && !vars.client.closed && !WinActive("ahk_id "vars.hwnd.leveltracker_screencap.main) && !WinActive("ahk_id "vars.hwnd.snip.main) && !WinActive("ahk_id "vars.hwnd.cheatsheet_menu.main) && !WinActive("ahk_id "vars.hwnd.searchstrings_menu.main) && !WinActive("ahk_id "vars.hwnd.notepad.main) && !WinActive("ahk_id " vars.hwnd.alarm.main) && !(vars.general.inactive && WinActive("ahk_id "vars.hwnd.settings.main))
{
If vars.general.inactive
{
Expand Down Expand Up @@ -1533,6 +1544,11 @@ LLK_FileCheck()
FileDelete, data\%val%
FileRemoveDir, data\%val%, 1
}
For index, val in ["necropolis.ahk"]
If FileExist("modules\" val)
FileDelete, modules\%val%
If FileExist("data\english\necropolis.json")
FileDelete, data\english\necropolis.json
If FileExist("ini\altars.ini")
FileMove, ini\altars.ini, ini\ocr - altars.ini, 1
If !FileExist("data\") || !FileExist("data\global\") || !FileExist("data\english\") || !FileExist("data\english\UI.txt") || !FileExist("data\english\client.txt")
Expand Down
8 changes: 8 additions & 0 deletions data/changelog.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
[
[
["1.54.3", 15403],
"early 3.25 release: stuff needs testing, please provide feedback",
"fix: act-tracker font-size and panel position",
"re-introduced recombination simulator",
"alarm/countdown timer: support for multiple timers",
"necropolis lantern feature removed"
],
[
["1.54.2", 15402],
"fix: adjusting certain stash-ninja settings led to exchange prices being reset",
Expand Down
10 changes: 5 additions & 5 deletions data/english/Betrayal.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
"trapped chest:\nshields"
],
"intervention": [
"reliquary scarabs",
"reliquary scarab"
"titanic scarabs",
"titanic scarab"
],
"research": [
"unique jewelry",
Expand Down Expand Up @@ -162,7 +162,7 @@
"janus": {
"rewards": {
"fortification": [
"currency shards",
"domination scarabs",
"quality currency"
],
"intervention": [
Expand Down Expand Up @@ -291,11 +291,11 @@
],
"research": [
"gem exp (mil):\n20 / 70 / 200 / 2x 200",
"support gems"
"domination scarabs"
],
"transportation": [
"trapped chest: gem",
"skill gems"
"skill/support gems"
]
}
},
Expand Down
29 changes: 16 additions & 13 deletions data/english/UI.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
ms_mapping tracker = "map-tracker"
ms_map-info = "map-info"
ms_minor qol tools = "minor qol tools"
ms_necropolis = "necropolis"
ms_screen-checks = "screen-checks"
ms_search-strings = "search-strings"
ms_stash-ninja = "stash-ninja"
Expand Down Expand Up @@ -145,7 +144,6 @@
global_ultrawide = "Are there black bars on the sides of the client?"
global_credits = "credits"
global_none = "none"
global_necro_lantern = "necro: lantern"
global_axis = "x-axis"
global_axis = "y-axis"
global_width = "width"
Expand All @@ -164,6 +162,8 @@
global_confirm = "confirm"
global_mouse = "l#m#r" ;## left, middle, right mouse-button
global_coordinates = "coordinates"
global_time = "time"
global_refresh = "refresh"

mechanic_bestiary = "bestiary"
mechanic_betrayal = "betrayal"
Expand Down Expand Up @@ -439,6 +439,20 @@



;#####################################################
;## recombination
;#####################################################

;## these strings are displayed/required when using the recombination feature
recomb_prefixes = "desired prefixes"
recomb_suffixes = "desired suffixes"
recomb_simulation = "simulation:"
recomb_desired = "too many desired affixes"
recomb_rerun = "re-run"
recomb_refresh = "click to refresh"



;#####################################################
;## screen-checks
;#####################################################
Expand Down Expand Up @@ -750,16 +764,6 @@



;#####################################################
;## settings menu: necropolis
;#####################################################

;## these strings are displayed/required in the "necropolis" section of the settings menu
m_necro_enable = "enable lantern highlighting (experimental)"
m_necro_offset = "overlay offsets:"
m_necro_nowindow = "open the overlay;before changing settings"


;#####################################################
;## settings menu: minor qol tools
;#####################################################
Expand Down Expand Up @@ -856,7 +860,6 @@
m_updater_github = "github links:"
m_updater_github = "main page"
m_updater_github = "releases"
m_updater_refresh = "refresh"
m_updater_changelog = "full changelog"
m_updater_skip = "skip"
m_updater_failed = "update failed:"
Expand Down
Loading

0 comments on commit 17d9b9b

Please sign in to comment.