Skip to content

Commit

Permalink
v1.14.3-beta
Browse files Browse the repository at this point in the history
tree-view UI scaling/positioning fixes for low resolutions when viewing 4-component recipes
  • Loading branch information
Lailloken authored Feb 15, 2022
1 parent 7c9da35 commit ccb4354
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Lailloken UI.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ SendMode Input
SetWorkingDir %A_ScriptDir%
SetBatchLines, -1
OnExit, Exit
Menu, Tray, Tip, Lailloken UI v1.14.2-beta
Menu, Tray, Tip, Lailloken UI v1.14.3-beta
#Include Class_CustomFont.ahk
font1 := New CustomFont("Fontin-SmallCaps.ttf")

Expand Down Expand Up @@ -101,7 +101,6 @@ If (archnemesis1_color = "ERROR") || (archnemesis1_color = "") || !InStr(resolut
WinWaitActive, ahk_group poe_window
SoundBeep, 100

;GoSub, Favored_recipes
GoSub, GUI
GoSub, Favored_recipes
SetTimer, MainLoop, 100
Expand Down Expand Up @@ -394,9 +393,9 @@ Return

Max_recipe:
clipboard := "!used"
KeyWait, LButton
WinActivate, ahk_group poe_window
WinWaitActive, ahk_group poe_window
KeyWait, LButton
sleep, 500
SendInput, ^{f}^{v}{Enter}
Return
Expand Down Expand Up @@ -584,7 +583,9 @@ Gui, recipe_tree: Margin, 20, 6
Gui, recipe_tree: Show, Hide
WinGetPos,,, width
;GuiControl, MoveDraw, header, % "w"width
Gui, recipe_tree: Show, % "NA x"xWindow-10-width " y0"
If (width > xWindow)
Gui, recipe_tree: Show, NA x0 y0
Else Gui, recipe_tree: Show, % "NA x"xWindow-width-10 " y0"
KeyWait, LButton
Gui, recipe_tree: Destroy
WinActivate, ahk_group poe_window
Expand All @@ -598,11 +599,11 @@ If (xScan = "") || (xScan = "ERROR")
Return
}
hwnd_archnemesis_window := ""
WinActivate, ahk_group poe_window
WinWaitActive, ahk_group poe_window
Gui, archnemesis_list: Destroy
Gui, archnemesis_window: Destroy
KeyWait, LButton
WinActivate, ahk_group poe_window
WinWaitActive, ahk_group poe_window
sleep, 500
SendInput, ^{f}{ESC}
sleep, 500
Expand Down

0 comments on commit ccb4354

Please sign in to comment.