1185907650 发表于 2020-10-10 10:41:28

【火山PC技术】火山PC模拟手机九宫格解锁

本帖最后由 1185907650 于 2021-2-14 14:54 编辑

一、窗口布局
添加标签、编辑框、画板
https://www.lkuaiy.com/image/editor/16022930506488.png

https://www.lkuaiy.com/image/editor/16022930626566.png


二、创建九宫格类
①创建类和变量
Ctrl D新建类,并创建如下变量
https://www.lkuaiy.com/image/editor/16022930709739.png

②初始化
Ctrl M新建方法
https://www.lkuaiy.com/image/editor/16022930779541.png

③鼠标左键被按下
https://www.lkuaiy.com/image/editor/16022930843819.png

④鼠标左键被放开
https://www.lkuaiy.com/image/editor/16022930922774.png

⑤鼠标被移动
https://www.lkuaiy.com/image/editor/16022931013517.png
https://www.lkuaiy.com/image/editor/16022931084117.png
https://www.lkuaiy.com/image/editor/16022931166983.png

⑥重新绘制
https://www.lkuaiy.com/image/editor/16022931344649.png

⑦完成情况
https://www.lkuaiy.com/image/editor/16022931428188.png


二、开始调用类
①添加变量
https://www.lkuaiy.com/image/editor/16022931503452.png

②初始化
https://www.lkuaiy.com/image/editor/16022931593411.png

③添加画板事件
https://www.lkuaiy.com/image/editor/16022931706212.png

https://www.lkuaiy.com/image/editor/16022931784486.png

https://www.lkuaiy.com/image/editor/16022931863683.png


三、演示
https://www.lkuaiy.com/image/editor/16022931949788.gif

本文章转载自利快云,点击本处阅读原文:https://www.lkuaiy.com/ArticleForumInsidePage?id=16022929217319





1185907650 发表于 2020-10-10 22:20:50

推广火山,义不容辞

1185907650 发表于 2020-10-12 09:48:49

推广火山,义不容辞

1185907650 发表于 2020-10-13 11:00:25

推广火山 义不容辞

1185907650 发表于 2020-10-13 22:43:04

推广火山,义不容辞

1185907650 发表于 2020-10-16 10:37:03

推广火山义不容辞

1185907650 发表于 2020-10-18 01:59:58

推广火山,义不容辞

1185907650 发表于 2021-7-15 11:58:55

每日一顶:)
页: [1]
查看完整版本: 【火山PC技术】火山PC模拟手机九宫格解锁