摘要:1、svn检出命令:checkout(co)svncheckouthttps://192.168.1.91/svn/xg_new/xg/--username=mj--password=123/Usersentong/Desktop说明:将服务器中xg仓库的内容下载到/Usersentong/Desk...
阅读全文
随笔分类 - lua
摘要:math.randomseed(os.time())local function printGrid(grid) local celllen = 8 -- one cell have character count local gridStrLines = {} table.in...
阅读全文
摘要:http://cn.cocos2d-x.org/tutorial/show?id=507command :-workdir E:\xg_svn\client\cocos2d-x-2.2.2\projects\xg\Resources -file scripts\main.lua复制去Google翻译...
阅读全文
摘要:CREATE TABLE `activitybaseprop` ( `ID` smallint(6) NOT NULL DEFAULT '0' COMMENT '活动ID 1:签到奖励 2:升级福利 3:天天美食 4:月卡系统 5:激活码兑换 6:分享 7:问卷调查 8:登录有礼', `Name...
阅读全文
摘要:时间:1228今天是周日,去公司重整抽宝箱模块,只把业务分成四个文件,一个金币单抽,一个金币十连抽,一个是钻石单抽,一个钻石十连抽,每个业务一个文件,今天只做了金币单抽,到宝箱的晃动,写到这里的时候出现了一个问题,原来在UI上的设计上有个问题,就是添加了很多Layout导致了,整个程序思路和逻辑很混...
阅读全文
摘要:-- 加载列表测试function UIBagController:onLoadTest() self.goodsprop = DB.getTable("goodsprop"); local itemAmount = 50; -- 计算高度 local nAmount...
阅读全文
摘要:-- 组件行为基础local Behavior = class("Behavior"); function Behavior:ctor(name) self.owner = nil; self.name = name; self.id = getNextID(); self....
阅读全文
摘要:---- Author: chentong-- Date: 2014-3-24-- 系统提示:-- 先做个简单的,在中上位置出现提示,逐渐消失,如果有新提示,则直接删除旧提示。-- 规则:-- 1、根据消息编号和语言,从表中找到提示内容,如果有参数则格式化;-- -- 需要扩展:主要是字体,大小,颜...
阅读全文
摘要:-- 宝箱打开后,显示里面的物品列表-- 显示方式是:一个一个显示,每三个一行,一行显示完就移动到下一行,-- 接下来的一样要显示框的中间位置,方便玩家看function UIBagController:showDataBox( ) self.itemBoxNum = 0; self.n...
阅读全文
摘要:到处的json文件放到这个目录下E:\xg\client\cocos2d-x-2.2.2\projects\tool\propjson
阅读全文
摘要:do local goodsprop= {RECORDS={[1]={BuyGold=0,RecoverPrice=100,Value=100,Param2=0,UseTimesPerDay=0,MainKindID=10,Param1=0,BuyCoin=0,UseLevel=1,Name_TW=...
阅读全文
摘要:module (..., package.seeall)local ShopM = {}local SystemPrompt = require(__APP_PACKAGE_NAME__ .. ".scenes.common.SystemPrompt")local Item = require("r...
阅读全文
摘要:-- 创建商店类,继承了Behavior local UIShopController = class("UIShopController", Behavior);-- 包含并引用系统提示框local SystemPrompt = require(__APP_PACKAGE_NAME__ .. "....
阅读全文
摘要:-- 这里要注意的点是:虽然nAmount是局部变量,却在控件的响应函数中使用-- 因为控件的响应函数是在该变量的区域内,所以可以用-- 如果控件的响应函数在外部,那么该变量就要声明成为全局变量function UIBagController:showUse( ) -- 赋值属性 lo...
阅读全文
摘要:-- 这里是实现控件的闪烁,不能将一个局部的动作变量,赋给两个控件来动作,只能一个控件对应一个动作function UIBagController:ShowEffect( ) local tGoodList = ItemM:GetTGoods(); local tBoxList ...
阅读全文
摘要:function UIBagController:initBoxView( ) self.panelBox = tolua.cast(UIHelper:seekWidgetByName(self.owner, "Panel_Box"), "Layout"); self.imgBoxLi...
阅读全文
摘要:function UIBagController:ClearGoods( ) for i=1,#self.itemArr do print("=======ClearGoods======" .. i) if self.itemArr[i] ~= nil then ...
阅读全文
摘要:function UIBagController:initItemView( ) -- 获取面板 self.panelCenter = tolua.cast(UIHelper:seekWidgetByName(self.owner, "Panel_Center"), "Layout");...
阅读全文
摘要:framework.debug调试支持~~echo功能同 print。格式:echo(值, [值, 值, ...])~~printf按照特定格式输出。格式:printf(格式字符串, [值, 值, ...])用法示例:printf("Value = %0.2f", 3.1415)-- 输出 Value = 3.14关于格式字符串,请参考 string.format 。~~echoError, echoInfo输出不同前缀的信息,参数格式与 printf 相同。echoError 除了输出信息外,还会打印当前的 Lua 调用堆栈。格式:echoError(格式字符串, [值,
阅读全文

浙公网安备 33010602011771号