Skip to content

Commit 9163da9

Browse files
authored
v1.55.3 merge
- updater: important versions are now highlighted orange in the version-list - stash-ninja: added bookmarking to permanently highlight specific items
2 parents f2ba38f + 7cc8945 commit 9163da9

File tree

8 files changed

+166
-58
lines changed

8 files changed

+166
-58
lines changed

Lailloken UI.ahk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,9 @@ HelpToolTip(HWND_key)
288288
For index, text in val
289289
If (index > 1)
290290
{
291-
Gui, %GUI_name%: Add, Text, % "x0 y-1000 Hidden w"tooltip_width - settings.general.fWidth, % StrReplace(text, "&", "&&")
291+
Gui, %GUI_name%: Add, Text, % "x0 y-1000 Hidden w"tooltip_width - settings.general.fWidth, % StrReplace(StrReplace(text, "&", "&&"), "(/highlight)")
292292
Gui, %GUI_name%: Add, Text, % (index = 2 ? "x0 y0" : "xs") " Section Border BackgroundTrans hp+"settings.general.fWidth " w"tooltip_width, % ""
293-
Gui, %GUI_name%: Add, Text, % "HWNDhwnd xp+"settings.general.fWidth/2 " yp+"settings.general.fWidth/2 " w"tooltip_width - settings.general.fWidth, % StrReplace(text, "&", "&&")
293+
Gui, %GUI_name%: Add, Text, % "HWNDhwnd xp+"settings.general.fWidth/2 " yp+"settings.general.fWidth/2 " w"tooltip_width - settings.general.fWidth . (InStr(text, "(/highlight)") ? " cFF8000" : ""), % StrReplace(StrReplace(text, "&", "&&"), "(/highlight)")
294294
}
295295
}
296296
Else

data/changelog.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
[
2+
[
3+
["1.55.3", 15503],
4+
"stash-ninja: added bookmarking to permanently highlight specific items"
5+
],
26
[
37
["1.55.2", 15502],
48
"recombination: added item-slot locking, improved mod detection, updated fractured behavior",
@@ -26,8 +30,8 @@
2630
"minor fixes and improvements"
2731
],
2832
[
29-
["1.54.6", 15406],
30-
"omni-key consistency improvements (inventory pixel-check is now mandatory)",
33+
["1.54.6", 15406, 1],
34+
"omni-key consistency improvements (inventory pixel-check is now mandatory)(/highlight)",
3135
"fixes: cheat-sheets, item-info class-specific highlighting, map-info magic monsters",
3236
"item-info: improved ilvl detection for mods, changed highlighting"
3337
],

data/english/UI.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@
167167
global_time = "time"
168168
global_refresh = "refresh"
169169
global_settings = "settings"
170+
global_regex = "copy regex"
171+
global_clipboard = "copied to clipboard"
170172

171173
mechanic_bestiary = "bestiary"
172174
mechanic_betrayal = "betrayal"
@@ -566,6 +568,7 @@
566568
stash_solo = "solo" ;## as in a single person/thing/reason
567569
stash_sell = "sell"
568570
stash_sell = "for" ;## these two belong together, i.e. "sell X for Y"
571+
stash_bookmark = "bookmark-profile"
569572

570573

571574
;#####################################################
@@ -890,6 +893,7 @@
890893
m_stash_bulk = "enable bulk-sale management"
891894
m_stash_margins = "margins (%):"
892895
m_stash_active = "active tab:"
896+
m_stash_bookmarking = "enable bookmarking"
893897

894898

895899

data/english/help tooltips.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,9 @@
603603
"stash color tag2": [
604604
"this is what price tags with exchange-prices look like"
605605
],
606+
"stash color tag3": [
607+
"this is what bookmarked price tags look like"
608+
],
606609
"stash enable": [
607610
"stash feature that highlights items in specific stash tabs according to rough market prices",
608611
"long-press the omni-key (default: middle mouse-button) while hovering over an item in a tab to activate the feature",
@@ -647,6 +650,12 @@
647650
"the overlay's position has to be offset if this specific tab is in a stash folder",
648651
"check this box if this tab is in a folder"
649652
],
653+
"stash bookmarking": [
654+
"adds a bookmark-list next to the price-profile panel",
655+
"press space while hovering over an item to add 1x to the current list, or press alt to remove 1x",
656+
"bookmarked items will always be highlighted on the grid, regardless of active price-profile",
657+
"each tab has 5 separate lists: hold control or shift, and press number-keys to switch"
658+
],
650659
"stash limits": [
651660
"you can configure up to 5 price-range profiles for each individual tab",
652661
"input-box structure:\nprofile # | max value\nunit: c, e, d, % | min value ",
@@ -664,7 +673,8 @@
664673
"update versions": [
665674
"the list below shows the available versions to switch between or reinstall",
666675
"each line represents a major version and has buttons to select the minor version",
667-
"hover over a button to see that version's summarized changelog"
676+
"versions with important changes are highlighted in orange",
677+
"hover over a button to see a summarized changelog, click it to prepare the download"
668678
],
669679
"update full changelog": [
670680
"opens the github page with the detailed changelog of the selected version"

data/versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"_release": [15502, "https://github.com/Lailloken/Lailloken-UI/archive/refs/heads/main.zip"]
2+
"_release": [15503, "https://github.com/Lailloken/Lailloken-UI/archive/refs/heads/main.zip"]
33
}

modules/hotkeys.ahk

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,9 +339,14 @@ HotkeysTab()
339339
#If WinActive("ahk_group poe_ahk_window") && vars.hwnd.leveltracker.main ;pre-defined context for hotkey command
340340
#If (vars.log.areaID = vars.maptracker.map.id) && settings.features.maptracker && settings.maptracker.mechanics && settings.maptracker.portal_reminder && vars.maptracker.map.content.Count() && WinActive("ahk_id " vars.hwnd.poe_client) ;pre-defined context for hotkey command
341341

342-
#If WinActive("ahk_group poe_ahk_window") && InStr(vars.stash.hover, "tab_")
342+
#If vars.hwnd.stash.main && WinExist("ahk_id " vars.hwnd.stash.main) && InStr(vars.stash.hover, "tab_")
343343
*~LButton::Stash_(StrReplace(vars.stash.hover, "tab_"))
344344

345+
#If vars.hwnd.stash.main && WinExist("ahk_id " vars.hwnd.stash.main) && IsObject(vars.stash.regex)
346+
&& LLK_IsBetween(vars.general.xMouse, vars.client.x + vars.stash.regex.x, vars.client.x + vars.stash.regex.x + vars.stash.regex.w)
347+
&& LLK_IsBetween(vars.general.yMouse, vars.client.y + vars.stash.regex.y, vars.client.y + vars.stash.regex.y + vars.stash.regex.h)
348+
LButton::Stash_Hotkeys("regex")
349+
345350
#If settings.features.sanctum && vars.sanctum.active && WinExist("ahk_id " vars.hwnd.sanctum.second) && !vars.sanctum.lock ;last condition needed to make the space-key usable again after initial lock
346351
*Space::Sanctum_("lock")
347352

@@ -358,12 +363,14 @@ WheelUp::Stash_PricePicker("+")
358363
WheelDown::Stash_PricePicker("-")
359364
MButton::Stash_PricePicker("reset")
360365

361-
#If WinActive("ahk_id " vars.hwnd.poe_client) && WinExist("ahk_id " vars.hwnd.stash.main)
366+
#If vars.hwnd.stash.main && WinActive("ahk_id " vars.hwnd.poe_client) && WinExist("ahk_id " vars.hwnd.stash.main)
362367
*SC002::
363368
*SC003::
364369
*SC004::
365370
*SC005::
366371
*SC006::
372+
Space::
373+
LAlt::
367374
~+LButton::
368375
~*RButton::Stash_Hotkeys()
369376

@@ -379,7 +386,7 @@ MButton::Stash_PricePicker("reset")
379386
*WheelUp::vars.OCR.wGUI += ((vars.OCR.wGUI + 30) * 2 >= vars.client.w || (vars.OCR.hGUI + 15) * 2 >= vars.client.h) ? 0 : 30, vars.OCR.hGUI += ((vars.OCR.wGUI + 30) * 2 >= vars.client.w || (vars.OCR.hGUI + 15) * 2 >= vars.client.h) ? 0 : 15
380387
*WheelDown::vars.OCR.wGUI -= (vars.OCR.wGUI - 30 >= vars.client.h / 10 + 30 && vars.OCR.hGUI - 15 >= vars.client.h / 10 + 15) ? 30 : 0, vars.OCR.hGUI -= (vars.OCR.wGUI - 30 >= vars.client.h / 10 + 30 && vars.OCR.hGUI - 15 >= vars.client.h / 10 + 15) ? 15 : 0
381388

382-
#If vars.general.wMouse && (vars.general.wMouse = vars.hwnd.ocr_tooltip.main) ;hovering over the ocr tooltip
389+
#If vars.hwnd.ocr_tooltip.main && vars.general.wMouse && (vars.general.wMouse = vars.hwnd.ocr_tooltip.main) ;hovering over the ocr tooltip
383390
*LButton::OCR_Close()
384391
*Space::
385392
*SC002::

modules/settings menu.ahk

Lines changed: 20 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -3250,19 +3250,19 @@ Settings_stash()
32503250

32513251
Gui, %GUI%: Add, Text, % "xs Section", % LangTrans("stash_pricetags")
32523252
colors := settings.stash.colors.Clone()
3253-
Loop 2
3253+
Loop 3
32543254
{
3255-
color1 := colors[Floor(A_Index * 1.5)], color2 := colors[A_Index * 2]
3255+
color1 := colors[A_Index * 2 - 1], color2 := colors[A_Index * 2]
32563256
Gui, %GUI%: Add, Text, % "ys Border Center HWNDhwndtext BackgroundTrans c" color1, % " 69.42 "
32573257
Gui, %GUI%: Add, Progress, % "xp yp wp hp Border BackgroundBlack HWNDhwndback c" color2, 100
32583258
Gui, %GUI%: Add, Text, % "ys x+-1 Border BackgroundTrans gSettings_stash2 HWNDhwnd00", % " "
32593259
Gui, %GUI%: Add, Progress, % "xp yp wp hp Border BackgroundBlack HWNDhwnd01 c" color1, 100
32603260
Gui, %GUI%: Add, Text, % "ys x+-1 Border BackgroundTrans gSettings_stash2 HWNDhwnd10", % " "
32613261
Gui, %GUI%: Add, Progress, % "xp yp wp hp Border BackgroundBlack HWNDhwnd11 c" color2, 100
3262-
vars.hwnd.settings["color_" Floor(A_Index * 1.5)] := hwnd00, vars.hwnd.settings["color_" Floor(A_Index * 1.5) "_panel"] := hwnd01, vars.hwnd.settings["color_" Floor(A_Index * 1.5) "_text"] := hwndtext
3262+
vars.hwnd.settings["color_" A_Index * 2 - 1] := hwnd00, vars.hwnd.settings["color_" A_Index * 2 - 1 "_panel"] := hwnd01, vars.hwnd.settings["color_" A_Index * 2 - 1 "_text"] := hwndtext
32633263
vars.hwnd.settings["color_" A_Index * 2] := hwnd10, vars.hwnd.settings["color_" A_Index * 2 "_panel"] := hwnd11, vars.hwnd.settings["color_" A_Index * 2 "_text"] := hwndback
3264-
vars.hwnd.help_tooltips["settings_generic color double" (A_Index = 2 ? "|" : "")] := hwnd01, vars.hwnd.help_tooltips["settings_generic color double1" (A_Index = 2 ? "|" : "")] := hwnd11
3265-
vars.hwnd.help_tooltips["settings_stash color tag" A_Index] := hwndback
3264+
vars.hwnd.help_tooltips["settings_generic color double" handle] := hwnd01, vars.hwnd.help_tooltips["settings_generic color double1" handle] := hwnd11
3265+
vars.hwnd.help_tooltips["settings_stash color tag" A_Index] := hwndback, handle .= "|"
32663266
}
32673267

32683268

@@ -3291,10 +3291,11 @@ Settings_stash()
32913291
Gui, %GUI%: Add, Text, % "ys HWNDhwnd3 gSettings_stash2 Center Border w" settings.general.fWidth * 2, % ""
32923292
Gui, %GUI%: Add, Text, % "ys HWNDhwnd4 gSettings_stash2 Center Border wp x+" settings.general.fWidth//2, % "+"
32933293
Gui, %GUI%: Add, Checkbox, % "xs Section HWNDhwnd5 gSettings_stash2 Checked" settings.stash[vars.stash.active].in_folder, % LangTrans("m_stash_folder")
3294-
;vars.hwnd.settings["cal_" tab] := vars.hwnd.help_tooltips["settings_stash calibrate"] := hwnd
3294+
Gui, %GUI%: Add, Checkbox, % "xs Section HWNDhwnd6 gSettings_stash2 Checked" settings.stash[vars.stash.active].bookmarking, % LangTrans("m_stash_bookmarking")
32953295
vars.hwnd.settings.test := vars.hwnd.help_tooltips["settings_stash test"] := hwnd1, tab := vars.settings.selected_tab
32963296
vars.hwnd.settings["gap-_" tab] := hwnd3, vars.hwnd.settings["gap+_" tab] vars.hwnd.help_tooltips["settings_stash gap"] := hwnd2
32973297
vars.hwnd.settings["gap+_" tab] := hwnd4, vars.hwnd.settings["infolder_" tab] := vars.hwnd.help_tooltips["settings_stash in folder"] := hwnd5
3298+
vars.hwnd.settings["bookmarking_" tab] := vars.hwnd.help_tooltips["settings_stash bookmarking"] := hwnd6
32983299

32993300
Gui, %GUI%: Add, Text, % "xs Section", % LangTrans("m_stash_limits")
33003301
Gui, %GUI%: Add, Pic, % "ys HWNDhwnd hp w-1", % "HBitmap:*" vars.pics.global.help
@@ -3316,20 +3317,6 @@ Settings_stash()
33163317

33173318
vars.hwnd.settings["limits" A_Index "top_" tab] := hwnd, vars.hwnd.settings["limits" A_Index "bot_" tab] := hwnd1, vars.hwnd.settings["limits" A_Index "cur_" tab] := hwnd2
33183319
}
3319-
/*
3320-
Loop 5
3321-
{
3322-
style := (A_Index != 5) && settings.stash.bulk_trade && settings.stash.min_trade && settings.stash.autoprofiles ? "Disabled " : ""
3323-
Gui, %GUI%: Add, Text, % (A_Index = 1 ? "xs Section" : "ys x+" settings.general.fWidth//2) " Border Center 0x200 h" settings.general.fHeight * 2 - 1 " w" settings.general.fWidth * 2, % A_Index
3324-
Gui, %GUI%: Font, % "s" settings.general.fSize - 4 " cBlack"
3325-
Gui, %GUI%: Add, Edit, % style "ys x+-1 Section Center HWNDhwnd gSettings_stash2 Limit w" settings.general.fWidth * 3 " h" settings.general.fHeight, % settings.stash[tab].limits[A_Index].2
3326-
ControlGetPos, x, y,,,, ahk_id %hwnd%
3327-
Gui, %GUI%: Add, Edit, % style "xs y+-1 Center HWNDhwnd1 Limit gSettings_stash2 wp h" settings.general.fHeight, % settings.stash[tab].limits[A_Index].1
3328-
Gui, %GUI%: Add, Edit, % style "ys Center x+0 HWNDhwnd2 gSettings_stash2 Limit1 y" y + settings.general.fHeight/2 - 1 " w" settings.general.fWidth * 2, % currencies[settings.stash[tab].limits[A_Index].3]
3329-
Gui, %GUI%: Font, % "s" settings.general.fSize " cWhite"
3330-
vars.hwnd.settings["limits" A_Index "top_" tab] := hwnd, vars.hwnd.settings["limits" A_Index "bot_" tab] := hwnd1, vars.hwnd.settings["limits" A_Index "cur_" tab] := hwnd2
3331-
}
3332-
*/
33333320
}
33343321

33353322
Settings_stash2(cHWND)
@@ -3385,8 +3372,8 @@ Settings_stash2(cHWND)
33853372
Else
33863373
{
33873374
Hotkey, IfWinActive, ahk_group poe_window
3388-
Hotkey, % settings.stash.hotkey, Stash_Selection, Off
3389-
Hotkey, % (settings.stash.hotkey := input0), Stash_Selection, On
3375+
Hotkey, % "~" settings.stash.hotkey, Stash_Selection, Off
3376+
Hotkey, % "~" (settings.stash.hotkey := input0), Stash_Selection, On
33903377
IniWrite, % """" input0 """", ini\stash-ninja.ini, settings, hotkey
33913378
GuiControl, +cBlack, % vars.hwnd.settings.hotkey
33923379
GuiControl, movedraw, % vars.hwnd.settings.hotkey
@@ -3450,7 +3437,7 @@ Settings_stash2(cHWND)
34503437
}
34513438
Else If InStr(check, "color_")
34523439
{
3453-
color := (vars.system.click = 1) ? RGB_Picker(settings.stash.colors[control]) : (InStr("13", control) ? "000000" : (control = 2) ? "00FF00" : "FF8000")
3440+
color := (vars.system.click = 1) ? RGB_Picker(settings.stash.colors[control]) : (InStr("135", control) ? "000000" : (control = 2) ? "00FF00" : (control = 4) ? "FF8000" : "00FFFF")
34543441
If Blank(color)
34553442
{
34563443
in_progress := 0
@@ -3459,7 +3446,7 @@ Settings_stash2(cHWND)
34593446
GuiControl, % "+c" color, % vars.hwnd.settings["color_" control "_panel"]
34603447
GuiControl, % "+c" color, % vars.hwnd.settings["color_" control "_text"]
34613448
GuiControl, % "movedraw", % vars.hwnd.settings["color_" control "_text"]
3462-
IniWrite, % (settings.stash.colors[control] := color), ini\stash-ninja.ini, UI, % (InStr("13", control) ? "text" : "background") " color" (control > 2 ? "2" : "")
3449+
IniWrite, % (settings.stash.colors[control] := color), ini\stash-ninja.ini, UI, % (InStr("135", control) ? "text" : "background") " color" (control > 2 ? Ceil(control/2) : "")
34633450
}
34643451
Else If InStr(check, "gap")
34653452
{
@@ -3479,6 +3466,8 @@ Settings_stash2(cHWND)
34793466
IniWrite, % (settings.stash[tab].in_folder := LLK_ControlGet(cHWND)), ini\stash-ninja.ini, % tab, tab is in folder
34803467
Init_stash(1)
34813468
}
3469+
Else If InStr(check, "bookmarking")
3470+
IniWrite, % (settings.stash[vars.stash.active].bookmarking := LLK_ControlGet(cHWND)), ini\stash-ninja.ini, % vars.stash.active, bookmarking
34823471
Else If InStr(check, "limits")
34833472
{
34843473
types := {"bot": 1, "top": 2, "cur": 3}
@@ -3513,7 +3502,7 @@ Settings_stash2(cHWND)
35133502
Stash_(vars.settings.selected_stash, 1)
35143503
Else LLK_ToolTip("no action")
35153504

3516-
For index, val in ["limits", "gap", "color_", "font_", "league_", "history", "folder"]
3505+
For index, val in ["limits", "gap", "color_", "font_", "league_", "history", "folder", "bookmarking_"]
35173506
If InStr(check, val) && WinExist("ahk_id " vars.hwnd.stash.main)
35183507
Stash_("refresh", (val = "gap") ? 1 : 0)
35193508
in_progress := 0
@@ -3590,16 +3579,13 @@ Settings_updater()
35903579
For index, val in vars.updater.changelog
35913580
{
35923581
major := SubStr(val.1.1, 1, 5)
3593-
If (val.1.2 < 15300) || added[major]
3582+
If (val.1.2 < 15300)
35943583
Continue
3595-
added[major] := 1, version_match := InStr(selected, major) ? 1 : 0
3596-
Gui, %GUI%: Add, Text, % "Section xs", % major
3597-
Loop, % SubStr(val.1.2, -1) + 1
3598-
{
3599-
minor := SubStr(val.1.2, -1) + 1 - A_Index, color := (version_match && selected_sub = minor) ? " cFuchsia" : ""
3600-
Gui, %GUI%: Add, Text, % "ys Border HWNDhwnd gSettings_updater2 Center w" settings.general.fWidth * 2 . color . (A_Index = 1 ? " x+0" : " x+" settings.general.fWidth/2), % minor
3601-
vars.hwnd.settings["versionselect_" major . minor] := vars.hwnd.help_tooltips["settings_update changelog " major . minor] := hwnd
3602-
}
3584+
If !added[major]
3585+
Gui, %GUI%: Add, Text, % "Section xs", % major
3586+
minor := SubStr(val.1.2, -1) + 0, color := (selected = major . minor) ? " cFuchsia" : val.1.3 ? " cFF8000" : ""
3587+
Gui, %GUI%: Add, Text, % "ys Border HWNDhwnd gSettings_updater2 Center w" settings.general.fWidth * 2 . color . (!added[major] ? " x+0" : " x+" settings.general.fWidth/2), % minor
3588+
vars.hwnd.settings["versionselect_" major . minor] := vars.hwnd.help_tooltips["settings_update changelog " major . minor] := hwnd, added[major] := 1
36033589
}
36043590
}
36053591

0 commit comments

Comments
 (0)