Skip to content

Commit 7a9d8d0

Browse files
committed
Improved remote image handling.
Signed-off-by: elModo7 <elmodo7yt@gmail.com>
1 parent 6b00fd6 commit 7a9d8d0

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

LibreDeck Client.ahk

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; Requires AutoHotkeyU32
33
;@Ahk2Exe-SetName LibreDeck Client
44
;@Ahk2Exe-SetDescription Macro Panel Client
5-
;@Ahk2Exe-SetVersion 4.0.4
5+
;@Ahk2Exe-SetVersion 4.0.5
66
;@Ahk2Exe-SetCopyright 2026`, elModo7 - VictorDevLog
77
;@Ahk2Exe-SetOrigFilename LibreDeck Client.exe
88
; INITIALIZE
@@ -54,7 +54,7 @@ SetBatchLines, -1
5454
#Include <plugin_system>
5555
#Include <LibreDeckButtonImage>
5656
rutaSplash = ./resources/img/splash.png
57-
global ClientVersionNumber := "4.0.4"
57+
global ClientVersionNumber := "4.0.5"
5858
global ClientVersion := ClientVersionNumber " - elModo7 / VictorDevLog " A_YYYY
5959
SplashScreen(rutaSplash, 3000, 545, 160, 0, 0, true)
6060
global EsVisible = true
@@ -1831,7 +1831,14 @@ return
18311831

18321832
setButtonIcon(buttonId, imagePathOrName) {
18331833
global
1834-
GuiControl, Text, Boton%buttonId%, % btnPics[imagePathOrName] ? "HBITMAP:*" btnPics[imagePathOrName] : imagePathOrName
1834+
if(EnCarpeta){
1835+
curBtn := CarpetaBoton 15*PaginaCarpeta+buttonId ".png"
1836+
}
1837+
else
1838+
curBtn := CarpetaBoton 15*NumeroPagina+buttonId ".png"
1839+
1840+
btnPics[curBtn] := LoadPicture(imagePathOrName)
1841+
GuiControl, Text, Boton%buttonId%, % btnPics[curBtn] ? "HBITMAP:*" btnPics[curBtn] : imagePathOrName
18351842
if(conf.miniClient)
18361843
GuiControl, MoveDraw, Boton%buttonId%, w49 h49
18371844
else

LibreDeck Client.exe

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)