Skip to content

Commit dd95ee8

Browse files
committed
Add cursor3 (256x256) - testing huge sized cursors
1 parent 9ff1679 commit dd95ee8

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

Corona/cursor3.ani

528 KB
Binary file not shown.

Corona/main.lua

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,20 @@ widget.newButton(
6464
shape = 'roundedRect',
6565
x = display.contentCenterX,
6666
y = display.contentCenterY + 50,
67+
label = 'Custom cursor 3',
68+
onRelease = function() cursor.loadCursor(system.pathForFile('cursor3.ani')) end,
69+
labelColor = { default = { 1, 1, 1 }, over = { 0, 0, 0, 0.5 } },
70+
fillColor = { default = { 1, 0.2, 0.5, 0.7 }, over = { 1, 0.2, 0.5, 1 } }
71+
}
72+
)
73+
74+
widget.newButton(
75+
{
76+
width = 200,
77+
height = 30,
78+
shape = 'roundedRect',
79+
x = display.contentCenterX,
80+
y = display.contentCenterY + 100,
6781
label = 'Show/Hide cursor',
6882
onRelease = function()
6983
if hidden then
@@ -84,7 +98,7 @@ widget.newButton(
8498
height = 30,
8599
shape = 'roundedRect',
86100
x = display.contentCenterX,
87-
y = display.contentCenterY + 100,
101+
y = display.contentCenterY + 150,
88102
label = 'Exit application',
89103
onRelease = function()
90104
cursor.resetCursor()

0 commit comments

Comments
 (0)