博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
lua -- 字体闪烁
阅读量:6909 次
发布时间:2019-06-27

本文共 1585 字,大约阅读时间需要 5 分钟。

-- 这里是实现控件的闪烁,不能将一个局部的动作变量,赋给两个控件来动作,只能一个控件对应一个动作function UIBagController:ShowEffect( )    local tGoodList = ItemM:GetTGoods();        local tBoxList = ItemM:getBoxForOpen();    for i=1,#tBoxList do        for j=1,#tGoodList do            if tBoxList[i].id == tGoodList[j].id then                print("=======tGoodList[j].pos=========" .. tGoodList[j].pos);                local gridName = string.format("ImageView_Grid%d", tGoodList[j].pos);                    local imageViewGrid = tolua.cast(UIHelper:seekWidgetByName(self.panelCenter, gridName), "ImageView");                local labelItemName = tolua.cast(UIHelper:seekWidgetByName(imageViewGrid, "Label_ItemName"), "Label");                local labelItenNum = tolua.cast(UIHelper:seekWidgetByName(imageViewGrid, "Label_ItenNum"), "Label");                local action = Transition.sequence({                    CCFadeOut:create(0.5),                    CCFadeIn:create(0.5),                    CCFadeOut:create(0.5),                    CCFadeIn:create(0.5),                })                labelItenNum:runAction(action);            end        end    end    self.lebCoin:runAction(Transition.sequence({                    CCFadeOut:create(0.5),                    CCFadeIn:create(0.5),                    CCFadeOut:create(0.5),                    CCFadeIn:create(0.5),                }));    self.lebGold:runAction(Transition.sequence({                    CCFadeOut:create(0.5),                    CCFadeIn:create(0.5),                    CCFadeOut:create(0.5),                    CCFadeIn:create(0.5),                }));end

 

转载地址:http://woycl.baihongyu.com/

你可能感兴趣的文章
深入理解 Android 消息机制原理
查看>>
1.一个WEB应用的开发流程
查看>>
centos7 安装mysql5.6.32
查看>>
前端JavaScript实现跨域的方式(转)
查看>>
原来你是这样的http2......
查看>>
WaitAll 和 WhenAll 的使用及区别
查看>>
给信息安全爱好者的一封信
查看>>
学习ASP.NET Core Razor 编程系列八——并发处理
查看>>
CSS动画的性能分析和浏览器GPU加速
查看>>
Nginx在线服务状态下平滑升级及ab压力测试【转】
查看>>
poj-2411 Mondriaan's Dream ***
查看>>
(转)as3中的资源管理与GC
查看>>
项目经验总结分享:图书馆维护系统总结
查看>>
HOJ-10513 Allocation Scheme[简单DFS]
查看>>
大数乘法 zju 1217
查看>>
c# 邮件发送 发送人带昵称
查看>>
wxWidgets事件处理(手机播放器连载系列2)
查看>>
c#中转义符总结
查看>>
Android学习笔记之AndroidManifest.xml文件解析(转载)
查看>>
网络干货,无论是运维还是开发都要知道的网络知识系列之(五)
查看>>