This commit is contained in:
2020-08-26 19:56:45 +08:00
parent 7ff6b2ec35
commit 3ece010fc1
208 changed files with 14753 additions and 637 deletions

View File

@@ -0,0 +1,39 @@
-- 单元
local uiCell = {}
local csSelf = nil
local transform = nil
local gameObject = nil
-- local Background = nil;
-- local Label = nil
-- local LabelSubName = nil
local formRoot
local mData = nil
function uiCell.init(go)
gameObject = go
transform = go.transform
csSelf = gameObject:GetComponent("CLCellLua")
-- Background = getChild(transform, "Background"):GetComponent("UISprite");
-- Label = csSelf:GetComponent("UILabel")
-- LabelSubName = getCC(transform, "LabelSubName", "UILabel")
formRoot = csSelf:GetComponent("CLUIFormRoot")
end
function uiCell.show(go, data)
mData = data
formRoot:setValue(mData)
-- Label.text = isNilOrEmpty(mData.name) and "请选择" or mData.name
-- LabelSubName.text = mData.subname or ""
end
function uiCell.refresh(flag)
end
function uiCell.getData()
return mData
end
return uiCell

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: ddebd8217d787461a85217c3cab0a57f
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,38 @@
-- xx单元
local _cell = {}
---@type Coolape.CLCellLua
local csSelf = nil
local transform = nil
local mData = nil
local uiobjs = {}
-- 初始化,只调用一次
function _cell.init(csObj)
csSelf = csObj
transform = csSelf.transform
uiobjs.formRoot = csSelf:GetComponent("CLUIFormRoot")
uiobjs.LabelPhoneNo = getCC(transform, "LabelPhoneNo", "UILabel")
uiobjs.SpriteType = getCC(transform, "SpriteType", "UISprite")
end
-- 显示,
-- 注意c#侧不会在调用show时调用refresh
function _cell.show(go, data)
mData = data
uiobjs.formRoot:setValue(mData)
if mData.calltype == "out" then
uiobjs.SpriteType.spriteName = "call_outgoingcall"
uiobjs.LabelPhoneNo.text = MyUtl.hidePhone(mData.destno)
else
uiobjs.SpriteType.spriteName = "call_comingcall"
uiobjs.LabelPhoneNo.text = MyUtl.hidePhone(mData.callerno)
end
end
-- 取得数据
function _cell.getData()
return mData
end
--------------------------------------------
return _cell

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: cff72ed0ba8a64dc7a4009ff849d8161
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -125,6 +125,7 @@ function _cell.release()
isLoading = false
fieldsObjs = {}
count = 0
hideHotWheel()
end
function _cell.onMultTextInputChg(go)