updated cursor
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 26 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 6.4 KiB |
@@ -73,7 +73,7 @@
|
|||||||
:opacity 0.7
|
:opacity 0.7
|
||||||
:origin-x 0
|
:origin-x 0
|
||||||
:origin-y 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 []
|
:items []
|
||||||
:shown? false
|
:shown? false
|
||||||
:highlighted-item nil
|
:highlighted-item nil
|
||||||
@@ -119,7 +119,7 @@
|
|||||||
base-y (* 180 4)
|
base-y (* 180 4)
|
||||||
x (+ base-x (* column (* 24 4)))
|
x (+ base-x (* column (* 24 4)))
|
||||||
y (- base-y (* row (* 24 4)))
|
y (- base-y (* row (* 24 4)))
|
||||||
item-width 16
|
item-width 18
|
||||||
offset-x (+ x (/ item-width 2))
|
offset-x (+ x (/ item-width 2))
|
||||||
offset-y (+ y (/ item-width 2))
|
offset-y (+ y (/ item-width 2))
|
||||||
padding (/ item-width 2)
|
padding (/ item-width 2)
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
resized (Pixmap. target-width target-height (.getFormat base-cursor))
|
resized (Pixmap. target-width target-height (.getFormat base-cursor))
|
||||||
index (.indexOf +all-cursors+ which)]
|
index (.indexOf +all-cursors+ which)]
|
||||||
(Pixmap/setFilter Pixmap$Filter/NearestNeighbour)
|
(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)
|
0 0 target-width target-height)
|
||||||
|
|
||||||
resized ))
|
resized ))
|
||||||
|
|||||||
Reference in New Issue
Block a user