Skip to content

Commit

Permalink
v1.54.7 (Hotfix 2) merge
Browse files Browse the repository at this point in the history
- omni-key: fixed an oversight that disabled item-related features when background pixel-checks were disabled due to compatibility issues that cause heavy stuttering

- item-info: new hybrid glove bases (str-dex, maybe more) for some reason don't have a range on their defense-roll, so the panel would always show 0% as the percentile
  • Loading branch information
Lailloken authored Aug 12, 2024
2 parents 095c21e + e73ed60 commit 37a6c2f
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 9 deletions.
1 change: 1 addition & 0 deletions data/changelog.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[
[
["1.54.7", 15407],
"hotfix 2: omni-key compatibility fix, item-info base-percentile fix for new hybrid gloves",
"hotfix 1: highlighting thresholds for rarity and pack-size were swapped around (map-info)",
"added support for non-standard keyboard/number layouts (e.g. azerty)",
"minor fixes and improvements"
Expand Down
2 changes: 1 addition & 1 deletion data/versions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_release": [15407, "https://github.com/Lailloken/Lailloken-UI/archive/refs/heads/main.zip"],
"hotfix": 1
"hotfix": 2
}
2 changes: 1 addition & 1 deletion modules/hotkeys.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ Return
~+LButton UP::IteminfoTrigger(1)
+RButton::IteminfoMarker()

#If vars.pixelsearch.inventory.check && (settings.iteminfo.trigger || settings.mapinfo.trigger) && !vars.general.shift_trigger && (vars.general.wMouse = vars.hwnd.poe_client) ;shift-right-clicking currency to shift-click items after
#If (vars.pixelsearch.inventory.check || !settings.features.pixelchecks) && (settings.iteminfo.trigger || settings.mapinfo.trigger) && !vars.general.shift_trigger && (vars.general.wMouse = vars.hwnd.poe_client) ;shift-right-clicking currency to shift-click items after

~+RButton UP::IteminfoTrigger()

Expand Down
10 changes: 6 additions & 4 deletions modules/item-checker.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
settings.iteminfo.ilvl := (settings.general.lang_client != "english") ? 0 : !Blank(check := ini.settings["enable item-levels"]) ? check : 0
settings.iteminfo.itembase := !Blank(check := ini.settings["enable base-info"]) ? check : 1
settings.iteminfo.override := !Blank(check := ini.settings["enable blacklist-override"]) ? check : 0
settings.iteminfo.compare := (settings.general.lang_client != "english") ? 0 : !Blank(check := ini.settings["enable gear-tracking"]) ? check : 0
settings.iteminfo.compare := (settings.general.lang_client != "english") || !settings.features.pixelchecks ? 0 : !Blank(check := ini.settings["enable gear-tracking"]) ? check : 0

settings.iteminfo.rules := {}
settings.iteminfo.rules.res_weapons := (settings.general.lang_client != "english") ? 0 : !Blank(check := ini.settings["weapon res override"]) ? check : 0
Expand Down Expand Up @@ -418,7 +418,9 @@ Iteminfo2_stats()
item_combined_rel := item.stats.combined.relative := Format("{:0.0f}", item_combined/class_best_combined*100) ;how close is the combined keyue to the combined best-in-class?
}
}
item.base_percent := Format("{:0.0f}", (stat_value - base_min_%natural_defense_stat%)/(base_best_%natural_defense_stat% - base_min_%natural_defense_stat%)*100) ;base-percentile as calculated on trade
If (base_min_%natural_defense_stat% = base_best_%natural_defense_stat%)
item.base_percent := 100
Else item.base_percent := Format("{:0.0f}", (stat_value - base_min_%natural_defense_stat%)/(base_best_%natural_defense_stat% - base_min_%natural_defense_stat%)*100) ;base-percentile as calculated on trade
}

If (item.quality >= 25)
Expand Down Expand Up @@ -721,7 +723,7 @@ Iteminfo4_GUI()
Continue
}
dps_added += 1, style := (dps_added = 1) ? "xs Section" : "ys"
text := (item.dps.chaos = A_LoopField) ? Format("{:0.1f}", item.dps.chaos) : (item.dps.ele = A_LoopField) ? Format("{:0.1f}", item.dps.ele) : Format("{:0.1f}", item.dps.phys) ;text for the cell
text := (item.dps.chaos = A_LoopField) ? Format("{:0.1f}", item.dps.chaos) : (item.dps.ele = A_LoopField) ? Format((item.dps.ele < 1000) ? "{:0.1f}" : "{:0.0f}", item.dps.ele) : Format("{:0.1f}", item.dps.phys) ;text for the cell
label := (item.dps.chaos = A_LoopField) ? "chaos" : (item.dps.ele = A_LoopField) ? "allres" : "phys" ;icon for the cell
If !filler
{
Expand Down Expand Up @@ -2345,7 +2347,7 @@ IteminfoOverlays() ;show update buttons for specific gear-slots underneath the c
local
global vars, settings

If settings.iteminfo.compare
If settings.iteminfo.compare && settings.features.pixelchecks
For slot, val in vars.iteminfo.compare.slots
{
If vars.pixelsearch.inventory.check && LLK_IsBetween(vars.general.xMouse, val.x1, val.x2) && LLK_IsBetween(vars.general.yMouse, val.y1, val.y2) && (vars.log.areaID != "login")
Expand Down
6 changes: 6 additions & 0 deletions modules/omni-key.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,14 @@
WinWaitActive, % "ahk_id " vars.hwnd.poe_client
}

If !settings.features.pixelchecks
Screenchecks_PixelSearch("inventory")

If vars.pixelsearch.inventory.check
{
If !settings.features.pixelchecks
vars.pixelsearch.inventory.check := 0

If WinExist("ahk_id " vars.hwnd.maptrackernotes_edit.main)
{
MaptrackerNoteAdd(), OmniRelease()
Expand Down
9 changes: 6 additions & 3 deletions modules/settings menu.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ Settings_cloneframes()
GUI := "settings_menu" vars.settings.GUI_toggle, x_anchor := vars.settings.xSelection + vars.settings.wSelection + vars.settings.xMargin*2
Gui, %GUI%: Add, Link, % "Section x" x_anchor " y"vars.settings.ySelection, <a href="https://github.com/Lailloken/Lailloken-UI/wiki/Clone-frames">wiki page</a>

If (vars.pixelsearch.gamescreen.x1 && (vars.pixelsearch.gamescreen.x1 != "ERROR") || vars.log.file_location) && settings.features.pixelchecks
If vars.pixelsearch.gamescreen.x1 && (vars.pixelsearch.gamescreen.x1 != "ERROR") && settings.features.pixelchecks || vars.log.file_location
{
Gui, %GUI%: Font, underline bold
Gui, %GUI%: Add, Text, % "xs Section y+"vars.settings.spacing, % LangTrans("m_clone_toggle")
Expand Down Expand Up @@ -1195,8 +1195,11 @@ Settings_iteminfo()
Gui, %GUI%: Add, Checkbox, % "xs Section gSettings_iteminfo2 HWNDhwnd Checked"settings.iteminfo.trigger, % LangTrans("m_iteminfo_shift")
vars.hwnd.settings.trigger := hwnd, vars.hwnd.help_tooltips["settings_iteminfo shift-click"] := hwnd

Gui, %GUI%: Add, Checkbox, % "xs Section gSettings_iteminfo2 HWNDhwnd Checked"settings.iteminfo.compare (settings.general.lang_client != "english" ? " cGray" : ""), % LangTrans("m_iteminfo_league")
vars.hwnd.settings.compare := hwnd, vars.hwnd.help_tooltips["settings_" (settings.general.lang_client = "english" ? "iteminfo league-start" : "lang unavailable") ] := hwnd
If settings.features.pixelchecks
{
Gui, %GUI%: Add, Checkbox, % "xs Section gSettings_iteminfo2 HWNDhwnd Checked"settings.iteminfo.compare (settings.general.lang_client != "english" ? " cGray" : ""), % LangTrans("m_iteminfo_league")
vars.hwnd.settings.compare := hwnd, vars.hwnd.help_tooltips["settings_" (settings.general.lang_client = "english" ? "iteminfo league-start" : "lang unavailable") ] := hwnd
}

If !settings.iteminfo.compare
{
Expand Down

0 comments on commit 37a6c2f

Please sign in to comment.