quick-cocos2dx之特效按钮——缩放按钮
2015-10-29 14:49
375 查看
cc.ui.UIPushButton.new("Button01.png", {scale9 = true}) :setButtonSize(200, 80) :setButtonLabel(cc.ui.UILabel.new({text = "REFRESH"})) :onButtonPressed(function(event) event.target:setScale(1.1) end) :onButtonRelease(function(event) event.target:setScale(1.0) end) :onButtonClicked(function() app:enterScene("MainScene", nil, "flipy") end) :pos(display.cx, display.bottom + 100) :addTo(self)
相关文章推荐
- quick-cocos2dx之特效按钮——BubbleButton
- cocos2d-js 热更新代码
- cocos2d-x中有一个JniHelper类详细使用
- cocos2d-lua,tableView中设置了按钮的不可吞噬性,但是还是吞噬了,点住按钮不能拖到tableView
- cocos2dx-js RenderTexture 将多张图片合并成一张图片
- 创建cocos2dx项目
- 【Cocos2dx】飘字特效与碰撞检测
- cocos2dx三种定时器的使用
- cocos2dx LOD地形剖析
- cocos2dx 3.x中ActionTimeLine无法使用setLastFrameCallFunc的解决方案
- cocos2dx c++ 使用sqlite数据库
- cocos2dx[3.8] ——入口类AppDelegate.cpp
- cocos2d-x 2.x NDK链接错误
- cocos2d-x使用Luajit将Lua脚本编译为bytecode,从而实现加密
- Cocos2dx跨平台编译Android错误:format not a string literal and no format arguments [-Werror=format-security]
- cocos2d CCDictionary
- quick-cocos2dx lua语言讲解 (动作,定时器,触摸事件,工程的类的讲解)
- quick-cocos2dx-luaUI控件讲解
- cocos2d-x移植到android
- cocos2dx ListView 大量 Item 加载方案(转)