updated cursor
This commit is contained in:
@@ -73,7 +73,7 @@
|
||||
:opacity 0.7
|
||||
:origin-x 0
|
||||
:origin-y 0)
|
||||
:all-items (texture! (texture (pixmap "cursor.png")) :split 16 16)
|
||||
:all-items (texture! (texture (pixmap "cursor.png")) :split 18 16)
|
||||
:items []
|
||||
:shown? false
|
||||
:highlighted-item nil
|
||||
@@ -119,7 +119,7 @@
|
||||
base-y (* 180 4)
|
||||
x (+ base-x (* column (* 24 4)))
|
||||
y (- base-y (* row (* 24 4)))
|
||||
item-width 16
|
||||
item-width 18
|
||||
offset-x (+ x (/ item-width 2))
|
||||
offset-y (+ y (/ item-width 2))
|
||||
padding (/ item-width 2)
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
resized (Pixmap. target-width target-height (.getFormat base-cursor))
|
||||
index (.indexOf +all-cursors+ which)]
|
||||
(Pixmap/setFilter Pixmap$Filter/NearestNeighbour)
|
||||
(pixmap! resized :draw-pixmap base-cursor (* index 16) 0 16 16
|
||||
(pixmap! resized :draw-pixmap base-cursor (* index 18) 0 16 16
|
||||
0 0 target-width target-height)
|
||||
|
||||
resized ))
|
||||
|
||||
Reference in New Issue
Block a user