aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorColin Okay <okay@toyful.space>2022-07-23 14:09:27 -0500
committerColin Okay <okay@toyful.space>2022-07-23 14:09:27 -0500
commitc32f78283706c3249ddb73577eff5297cd14390e (patch)
tree764633a30c1ab1e6ac2b6eda10cad3150b6e5e55 /examples
parentc82d6751e9414d5c17aca7f8a1138086bd4f9c1d (diff)
[change] option->item in menu
Diffstat (limited to 'examples')
-rw-r--r--examples/13-menus.lisp6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/13-menus.lisp b/examples/13-menus.lisp
index 66d455c..d1c5668 100644
--- a/examples/13-menus.lisp
+++ b/examples/13-menus.lisp
@@ -11,7 +11,7 @@
(defclass numbered-image (ww::image)
((n :initarg :num :reader num)))
-(ww:defhandler option-clicked
+(ww:defhandler item-clicked
(ww::on-mousedown (img)
(format t "~a was clicked~%" (num img))))
@@ -27,8 +27,8 @@
:num i
:texture (ww:get-asset "Fezghoul.png"))
do
- (ww::add-handler img #'option-clicked)
- (ww::add-menu-option vscroller img))
+ (ww::add-handler img #'item-clicked)
+ (ww::add-menu-item vscroller img))
(ww:add-unit vscroller)
(ww:refocus-on vscroller)))