UILiveRoom:增加配置文件,配置房间
This commit is contained in:
parent
41741b7fd8
commit
1eaf9be5ec
@ -732,7 +732,7 @@ GameObject:
|
||||
- component: {fileID: 3050849959323490982}
|
||||
- component: {fileID: 6558224524106568925}
|
||||
m_Layer: 5
|
||||
m_Name: LiveStreamerHead
|
||||
m_Name: StreamerHead
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
@ -777,7 +777,8 @@ MonoBehaviour:
|
||||
- UnityEngine.RectTransform
|
||||
- UINode
|
||||
values: 0000
|
||||
depObjs: []
|
||||
depObjs:
|
||||
- {fileID: 789167815442568476}
|
||||
activeType: 0
|
||||
--- !u!1 &4032463501045898578
|
||||
GameObject:
|
||||
@ -941,8 +942,9 @@ GameObject:
|
||||
- component: {fileID: 7057486274064682888}
|
||||
- component: {fileID: 3762694675831197056}
|
||||
- component: {fileID: 6334290853504028867}
|
||||
- component: {fileID: 2751293768995855329}
|
||||
m_Layer: 5
|
||||
m_Name: Name
|
||||
m_Name: Nickname
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
@ -1065,6 +1067,28 @@ MonoBehaviour:
|
||||
m_hasFontAssetChanged: 0
|
||||
m_baseMaterial: {fileID: 0}
|
||||
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||
--- !u!114 &2751293768995855329
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6662385197485980932}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 8759edc0b8b4b3d4aa8ffef2482e17ee, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
UIName:
|
||||
keys:
|
||||
- UnityEngine.RectTransform
|
||||
- UnityEngine.CanvasRenderer
|
||||
- TMPro.TextMeshProUGUI
|
||||
- UINode
|
||||
values: 00000100
|
||||
depObjs:
|
||||
- {fileID: 6558224524106568925}
|
||||
activeType: 0
|
||||
--- !u!1 &6879374258987421461
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -1219,7 +1243,7 @@ MonoBehaviour:
|
||||
- UnityEngine.CanvasRenderer
|
||||
- TMPro.TextMeshProUGUI
|
||||
- UINode
|
||||
values: 00000000
|
||||
values: 00000100
|
||||
depObjs:
|
||||
- {fileID: 789167815442568476}
|
||||
activeType: 0
|
||||
|
||||
57
Assets/Lua/Config/LiveRoomCfg.lua
Normal file
57
Assets/Lua/Config/LiveRoomCfg.lua
Normal file
@ -0,0 +1,57 @@
|
||||
local LiveRoomCfg = {
|
||||
[1]={
|
||||
['Id']=1,
|
||||
['Type']=1,
|
||||
['Streamer']='熟女',
|
||||
['RoomDesp']='抽卡直播间',
|
||||
['MaxGiftPoint']=0,
|
||||
['ReadyCost']={{2,100}},
|
||||
['RewardS']={{2,200}},
|
||||
['RewardA']={{2,150}},
|
||||
['RewardB']={{2,80}},
|
||||
},
|
||||
[2]={
|
||||
['Id']=2,
|
||||
['Type']=2,
|
||||
['Streamer']='御姐',
|
||||
['RoomDesp']='带货直播间',
|
||||
['MaxGiftPoint']=0,
|
||||
['RewardS']={{2,200}},
|
||||
['RewardA']={{2,150}},
|
||||
['RewardB']={{2,80}},
|
||||
},
|
||||
[3]={
|
||||
['Id']=3,
|
||||
['Type']=3,
|
||||
['Streamer']='萝莉',
|
||||
['RoomDesp']='游戏直播间',
|
||||
['MaxGiftPoint']=0,
|
||||
['ReadyCost']={{2,100}},
|
||||
['RewardS']={{2,200}},
|
||||
['RewardA']={{2,200}},
|
||||
['RewardB']={{2,200}},
|
||||
},
|
||||
[4]={
|
||||
['Id']=4,
|
||||
['Type']=4,
|
||||
['Streamer']='病娇',
|
||||
['RoomDesp']='答题直播间',
|
||||
['MaxGiftPoint']=0,
|
||||
['ReadyCost']={{2,50}},
|
||||
['RewardS']={{2,200}},
|
||||
['RewardA']={{2,150}},
|
||||
['RewardB']={{2,80}},
|
||||
},
|
||||
[5]={
|
||||
['Id']=5,
|
||||
['Type']=5,
|
||||
['Streamer']='女王',
|
||||
['RoomDesp']='拍卖直播间',
|
||||
['MaxGiftPoint']=0,
|
||||
['ReadyCost']={{2,50}},
|
||||
['RewardS']={{2,200}},
|
||||
['RewardA']={{2,150}},
|
||||
['RewardB']={{2,80}},
|
||||
},
|
||||
}
|
||||
return LiveRoomCfg
|
||||
7
Assets/Lua/Config/LiveRoomCfg.lua.meta
Normal file
7
Assets/Lua/Config/LiveRoomCfg.lua.meta
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 80dbc453fca20514fbf48cf76423e638
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
123
Assets/Lua/Config/LiveRoomQuestionCfg.lua
Normal file
123
Assets/Lua/Config/LiveRoomQuestionCfg.lua
Normal file
@ -0,0 +1,123 @@
|
||||
local LiveRoomQuestionCfg = {
|
||||
[1]={
|
||||
['Id']=1,
|
||||
['Type']=1,
|
||||
['Question']='选择最合适的一个填入问号处,使之呈现一定的规律性:',
|
||||
['QuestionPic']='question_0001',
|
||||
['Option1Pic']='option_00011',
|
||||
['Option2Pic']='option_00012',
|
||||
['Option3Pic']='option_00013',
|
||||
['Option4Pic']='option_00014',
|
||||
['Answer']=3,
|
||||
['Layout']=2,
|
||||
},
|
||||
[2]={
|
||||
['Id']=2,
|
||||
['Type']=1,
|
||||
['Question']='选择一个替代问号,使两套图形的规律表现出最大的相似性,最适合的是:',
|
||||
['QuestionPic']='question_0002',
|
||||
['Option1Pic']='option_00021',
|
||||
['Option2Pic']='option_00022',
|
||||
['Option3Pic']='option_00023',
|
||||
['Option4Pic']='option_00024',
|
||||
['Answer']=2,
|
||||
['Layout']=2,
|
||||
},
|
||||
[3]={
|
||||
['Id']=3,
|
||||
['Type']=1,
|
||||
['Question']='能与所给图形组合成立方体的是:',
|
||||
['QuestionPic']='question_0003',
|
||||
['Option1Pic']='option_00031',
|
||||
['Option2Pic']='option_00032',
|
||||
['Option3Pic']='option_00033',
|
||||
['Option4Pic']='option_00034',
|
||||
['Answer']=3,
|
||||
['Layout']=1,
|
||||
},
|
||||
[4]={
|
||||
['Id']=4,
|
||||
['Type']=1,
|
||||
['Question']='选择最合适的一个填入问号处,使之呈现一定的规律性:',
|
||||
['QuestionPic']='question_0004',
|
||||
['Option1Pic']='option_00041',
|
||||
['Option2Pic']='option_00042',
|
||||
['Option3Pic']='option_00043',
|
||||
['Option4Pic']='option_00044',
|
||||
['Answer']=4,
|
||||
['Layout']=2,
|
||||
},
|
||||
[5]={
|
||||
['Id']=5,
|
||||
['Type']=1,
|
||||
['Question']='纸盒的外表面中,不能折叠成所示的纸盒的是:',
|
||||
['QuestionPic']='question_0005',
|
||||
['Option1Pic']='option_00051',
|
||||
['Option2Pic']='option_00052',
|
||||
['Option3Pic']='option_00053',
|
||||
['Option4Pic']='option_00054',
|
||||
['Answer']=2,
|
||||
['Layout']=1,
|
||||
},
|
||||
[6]={
|
||||
['Id']=6,
|
||||
['Type']=1,
|
||||
['Question']='选出最恰当的一个填在问号处,使图形呈现出一定的规律性:',
|
||||
['QuestionPic']='question_0006',
|
||||
['Option1Pic']='option_00061',
|
||||
['Option2Pic']='option_00062',
|
||||
['Option3Pic']='option_00063',
|
||||
['Option4Pic']='option_00064',
|
||||
['Answer']=3,
|
||||
['Layout']=2,
|
||||
},
|
||||
[7]={
|
||||
['Id']=7,
|
||||
['Type']=1,
|
||||
['Question']='符合立体图形的俯视图和左视图的是:',
|
||||
['QuestionPic']='question_0007',
|
||||
['Option1Pic']='option_00071',
|
||||
['Option2Pic']='option_00072',
|
||||
['Option3Pic']='option_00073',
|
||||
['Option4Pic']='option_00074',
|
||||
['Answer']=2,
|
||||
['Layout']=1,
|
||||
},
|
||||
[8]={
|
||||
['Id']=8,
|
||||
['Type']=1,
|
||||
['Question']='最符合图形规律的是:',
|
||||
['QuestionPic']='question_0008',
|
||||
['Option1Pic']='option_00081',
|
||||
['Option2Pic']='option_00082',
|
||||
['Option3Pic']='option_00083',
|
||||
['Option4Pic']='option_00084',
|
||||
['Answer']=4,
|
||||
['Layout']=2,
|
||||
},
|
||||
[9]={
|
||||
['Id']=9,
|
||||
['Type']=1,
|
||||
['Question']='选择最合适的一个填入问号处,使之呈现一定的规律性:',
|
||||
['QuestionPic']='question_0009',
|
||||
['Option1Pic']='option_00091',
|
||||
['Option2Pic']='option_00092',
|
||||
['Option3Pic']='option_00093',
|
||||
['Option4Pic']='option_00094',
|
||||
['Answer']=2,
|
||||
['Layout']=2,
|
||||
},
|
||||
[10]={
|
||||
['Id']=10,
|
||||
['Type']=1,
|
||||
['Question']='将一个正方体从中间挖去一个圆柱,得到所示的新立体图形,从任意面剖开,哪一个不可能是该立体图形的截面:',
|
||||
['QuestionPic']='question_0010',
|
||||
['Option1Pic']='option_00101',
|
||||
['Option2Pic']='option_00102',
|
||||
['Option3Pic']='option_00103',
|
||||
['Option4Pic']='option_00104',
|
||||
['Answer']=2,
|
||||
['Layout']=1,
|
||||
},
|
||||
}
|
||||
return LiveRoomQuestionCfg
|
||||
7
Assets/Lua/Config/LiveRoomQuestionCfg.lua.meta
Normal file
7
Assets/Lua/Config/LiveRoomQuestionCfg.lua.meta
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8ec0efad44b8d5147bb700fa7c2838ba
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
35
Assets/Lua/Config/LiveRoomSellCfg.lua
Normal file
35
Assets/Lua/Config/LiveRoomSellCfg.lua
Normal file
@ -0,0 +1,35 @@
|
||||
local LiveRoomSellCfg = {
|
||||
[1]={
|
||||
['Id']=1,
|
||||
['Desp']='秒杀1',
|
||||
['SellNum']=1,
|
||||
['Price']='2:100',
|
||||
['CutPrice']='2:80',
|
||||
['Items']={{126,1}},
|
||||
},
|
||||
[2]={
|
||||
['Id']=2,
|
||||
['Desp']='秒杀2',
|
||||
['SellNum']=1,
|
||||
['Price']='2:100',
|
||||
['CutPrice']='2:80',
|
||||
['Items']={{127,1}},
|
||||
},
|
||||
[3]={
|
||||
['Id']=3,
|
||||
['Desp']='秒杀3',
|
||||
['SellNum']=1,
|
||||
['Price']='2:100',
|
||||
['CutPrice']='2:80',
|
||||
['Items']={{128,1}},
|
||||
},
|
||||
[4]={
|
||||
['Id']=4,
|
||||
['Desp']='秒杀4',
|
||||
['SellNum']=1,
|
||||
['Price']='2:100',
|
||||
['CutPrice']='2:80',
|
||||
['Items']={{130,1}},
|
||||
},
|
||||
}
|
||||
return LiveRoomSellCfg
|
||||
7
Assets/Lua/Config/LiveRoomSellCfg.lua.meta
Normal file
7
Assets/Lua/Config/LiveRoomSellCfg.lua.meta
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 28ab48d3d410eda4c8a79bc0522ac3f5
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
337
Assets/Lua/Config/LiveRoomTalkCfg.lua
Normal file
337
Assets/Lua/Config/LiveRoomTalkCfg.lua
Normal file
@ -0,0 +1,337 @@
|
||||
local LiveRoomTalkCfg = {
|
||||
[1]={
|
||||
['Id']=1,
|
||||
['Type']=1,
|
||||
['Stage']=1,
|
||||
['Time']=5,
|
||||
['CMD']=1,
|
||||
['Params1']={1,1},
|
||||
['Params2']={'各位哥哥,欢迎来到妹妹的直播间!','见到你们呀,妹妹真是说不出的高兴呢!'},
|
||||
},
|
||||
[2]={
|
||||
['Id']=2,
|
||||
['Type']=1,
|
||||
['Stage']=1,
|
||||
['Time']=2,
|
||||
['CMD']=1,
|
||||
['Params1']={1},
|
||||
['Params2']={'亲人们,我们准备开始抽卡报名活动,名额有限哦!'},
|
||||
},
|
||||
[3]={
|
||||
['Id']=3,
|
||||
['Type']=1,
|
||||
['Stage']=2,
|
||||
['Time']=5,
|
||||
['CMD']=1,
|
||||
['Params1']={1},
|
||||
['Params2']={'我看看有哪些哥哥准备好了呢?'},
|
||||
},
|
||||
[4]={
|
||||
['Id']=4,
|
||||
['Type']=1,
|
||||
['Stage']=2,
|
||||
['Time']=5,
|
||||
['CMD']=1,
|
||||
['Params1']={1},
|
||||
['Params2']={'抓紧时间哦!'},
|
||||
},
|
||||
[5]={
|
||||
['Id']=5,
|
||||
['Type']=1,
|
||||
['Stage']=2,
|
||||
['Time']=1,
|
||||
['CMD']=1,
|
||||
['Params1']={1},
|
||||
['Params2']={'好,我们开始抽卡了!'},
|
||||
},
|
||||
[6]={
|
||||
['Id']=6,
|
||||
['Type']=1,
|
||||
['Stage']=3,
|
||||
['Time']=5,
|
||||
['CMD']=1,
|
||||
['Params1']={1},
|
||||
['Params2']={'第一组抽卡'},
|
||||
},
|
||||
[7]={
|
||||
['Id']=7,
|
||||
['Type']=1,
|
||||
['Stage']=3,
|
||||
['Time']=5,
|
||||
['CMD']=1,
|
||||
['Params1']={1},
|
||||
['Params2']={'然后是第二组抽卡'},
|
||||
},
|
||||
[8]={
|
||||
['Id']=8,
|
||||
['Type']=1,
|
||||
['Stage']=3,
|
||||
['Time']=5,
|
||||
['CMD']=1,
|
||||
['Params1']={1},
|
||||
['Params2']={'第三组抽卡'},
|
||||
},
|
||||
[9]={
|
||||
['Id']=9,
|
||||
['Type']=1,
|
||||
['Stage']=3,
|
||||
['Time']=5,
|
||||
['CMD']=1,
|
||||
['Params1']={1},
|
||||
['Params2']={'接着是第四组'},
|
||||
},
|
||||
[10]={
|
||||
['Id']=10,
|
||||
['Type']=1,
|
||||
['Stage']=3,
|
||||
['Time']=5,
|
||||
['CMD']=1,
|
||||
['Params1']={1},
|
||||
['Params2']={'最后一组抽卡'},
|
||||
},
|
||||
[11]={
|
||||
['Id']=11,
|
||||
['Type']=1,
|
||||
['Stage']=4,
|
||||
['Time']=5,
|
||||
['CMD']=1,
|
||||
['Params1']={1},
|
||||
['Params2']={'这位叫【{0}】的哥哥,运气最好哦!'},
|
||||
['Params3']={'result_top1_player'},
|
||||
},
|
||||
[12]={
|
||||
['Id']=12,
|
||||
['Type']=1,
|
||||
['Stage']=4,
|
||||
['Time']=2,
|
||||
['CMD']=1,
|
||||
['Params1']={1},
|
||||
['Params2']={'本轮抽卡结束了哦!没抽到的哥哥不要灰心,妹妹还会带来更多的福利!'},
|
||||
},
|
||||
[13]={
|
||||
['Id']=13,
|
||||
['Type']=2,
|
||||
['Stage']=1,
|
||||
['Time']=5,
|
||||
['CMD']=1,
|
||||
['Params1']={1,1},
|
||||
['Params2']={'欢迎新进直播间的宝子们,点关注不迷路,直播福利不停!爱你们哟~','我又来给宝子们带来福利啦,动动你们的小手点下关注,直播间优惠多多哦~'},
|
||||
},
|
||||
[14]={
|
||||
['Id']=14,
|
||||
['Type']=2,
|
||||
['Stage']=1,
|
||||
['Time']=5,
|
||||
['CMD']=1,
|
||||
['Params1']={1},
|
||||
['Params2']={'刚进来的宝子记得左下角的购物车看一下,直播间的低价好货等你来淘!'},
|
||||
},
|
||||
[15]={
|
||||
['Id']=15,
|
||||
['Type']=2,
|
||||
['Stage']=2,
|
||||
['Time']=5,
|
||||
['CMD']=1,
|
||||
['Params1']={1,1},
|
||||
['Params2']={'好了,咱们的促销活动环节要开始了,宝子们想要什么商品参与这次活动呢?','咱们马上又有一件商品要促销打折啦,看看是不是宝子们想要的呢?'},
|
||||
},
|
||||
[16]={
|
||||
['Id']=16,
|
||||
['Type']=2,
|
||||
['Stage']=2,
|
||||
['Time']=10,
|
||||
['CMD']=1,
|
||||
['Params1']={1},
|
||||
['Params2']={'咱们这款【{0}】马上就可以开抢了,只有200件,能不能抢到就看大家的手气啦!'},
|
||||
},
|
||||
[17]={
|
||||
['Id']=17,
|
||||
['Type']=2,
|
||||
['Stage']=2,
|
||||
['Time']=10,
|
||||
['CMD']=1,
|
||||
['Params1']={1},
|
||||
['Params2']={'花半件的价格就能买一件啦,直播间的宝子们千万不要错过!'},
|
||||
},
|
||||
[18]={
|
||||
['Id']=18,
|
||||
['Type']=2,
|
||||
['Stage']=2,
|
||||
['Time']=5,
|
||||
['CMD']=1,
|
||||
['Params1']={1},
|
||||
['Params2']={'这轮福利抢到就是赚到,这样的低价仅此一家哦~'},
|
||||
},
|
||||
[19]={
|
||||
['Id']=19,
|
||||
['Type']=2,
|
||||
['Stage']=3,
|
||||
['Time']=4,
|
||||
['CMD']=1,
|
||||
['Params1']={1},
|
||||
['Params2']={'还有5秒就要开抢了,守在直播间的宝子们准备好了吗?'},
|
||||
},
|
||||
[20]={
|
||||
['Id']=20,
|
||||
['Type']=2,
|
||||
['Stage']=3,
|
||||
['Time']=2,
|
||||
['CMD']=1,
|
||||
['Params1']={1},
|
||||
['Params2']={'宝子们,就是现在!'},
|
||||
},
|
||||
[21]={
|
||||
['Id']=21,
|
||||
['Type']=2,
|
||||
['Stage']=4,
|
||||
['Time']=5,
|
||||
['CMD']=1,
|
||||
['Params1']={1},
|
||||
['Params2']={'好啦,这一波福利送完了,不要着急退出直播间哦,稍后还有更多惊喜等着宝子们!主播先去准备下一个好物~'},
|
||||
},
|
||||
[22]={
|
||||
['Id']=22,
|
||||
['Type']=3,
|
||||
['Stage']=1,
|
||||
['Time']=5,
|
||||
['CMD']=1,
|
||||
['Params1']={1,1},
|
||||
['Params2']={'哥哥们,有没有想人家呢,还有新来的哥哥们,你们好呀!','锵锵!聪明可爱的美少女又来啦~'},
|
||||
},
|
||||
[23]={
|
||||
['Id']=23,
|
||||
['Type']=3,
|
||||
['Stage']=2,
|
||||
['Time']=3,
|
||||
['CMD']=1,
|
||||
['Params1']={1},
|
||||
['Params2']={'嘿嘿,猜猜,这次我会带来什么样的谜题呢~'},
|
||||
},
|
||||
[24]={
|
||||
['Id']=24,
|
||||
['Type']=3,
|
||||
['Stage']=3,
|
||||
['Time']=30,
|
||||
['CMD']=1,
|
||||
['Params1']={1,1},
|
||||
['Params2']={'题目来了!有没有和人家一样聪明的哥哥能答出来呢?','废话不多说,来看题咯~看谁能解开智慧女神设下的谜题呢~'},
|
||||
},
|
||||
[25]={
|
||||
['Id']=25,
|
||||
['Type']=3,
|
||||
['Stage']=3,
|
||||
['Time']=20,
|
||||
['CMD']=1,
|
||||
['Params1']={1},
|
||||
['Params2']={'再好好想想,应该怎么解呢……'},
|
||||
},
|
||||
[26]={
|
||||
['Id']=26,
|
||||
['Type']=3,
|
||||
['Stage']=3,
|
||||
['Time']=10,
|
||||
['CMD']=1,
|
||||
['Params1']={1},
|
||||
['Params2']={'时间快要到了哦,哥哥想出来了吗?'},
|
||||
},
|
||||
[27]={
|
||||
['Id']=27,
|
||||
['Type']=3,
|
||||
['Stage']=4,
|
||||
['Time']=3,
|
||||
['CMD']=1,
|
||||
['Params1']={1},
|
||||
['Params2']={'好啦,咱们揭晓答案,看看哪位聪慧的哥哥答对了呢~'},
|
||||
},
|
||||
[28]={
|
||||
['Id']=28,
|
||||
['Type']=3,
|
||||
['Stage']=4,
|
||||
['Time']=5,
|
||||
['CMD']=1,
|
||||
['Params1']={1},
|
||||
['Params2']={'哇,答案是这一项呀,哥哥有没有答对呢?'},
|
||||
},
|
||||
[29]={
|
||||
['Id']=29,
|
||||
['Type']=3,
|
||||
['Stage']=4,
|
||||
['Time']=10,
|
||||
['CMD']=1,
|
||||
['Params1']={1},
|
||||
['Params2']={'智慧榜又更新啦,这位叫【{0}】的哥哥是现在最厉害的呢,人家要忍不住鼓掌啦!'},
|
||||
},
|
||||
[30]={
|
||||
['Id']=30,
|
||||
['Type']=4,
|
||||
['Stage']=1,
|
||||
['Time']=5,
|
||||
['CMD']=1,
|
||||
['Params1']={1,1},
|
||||
['Params2']={'欢迎直播间的各位朋友!参加互动游戏,赢取丰厚奖品,走过路过,不要错过啊!','直播间的朋友们大家好,玩游戏就能领精美奖品,千万不要错过啊!'},
|
||||
},
|
||||
[31]={
|
||||
['Id']=31,
|
||||
['Type']=4,
|
||||
['Stage']=1,
|
||||
['Time']=5,
|
||||
['CMD']=1,
|
||||
['Params1']={1},
|
||||
['Params2']={'一会儿点击下方的预约游戏就可以参与我们的活动啦,每次会十个人共同匹配,根据排名来发放我们的奖励。'},
|
||||
},
|
||||
[32]={
|
||||
['Id']=32,
|
||||
['Type']=4,
|
||||
['Stage']=2,
|
||||
['Time']=10,
|
||||
['CMD']=1,
|
||||
['Params1']={1},
|
||||
['Params2']={'准备好了吗?倒计时结束,点击预约立即加入游戏!'},
|
||||
},
|
||||
[33]={
|
||||
['Id']=33,
|
||||
['Type']=4,
|
||||
['Stage']=3,
|
||||
['Time']=30,
|
||||
['CMD']=1,
|
||||
['Params1']={1},
|
||||
['Params2']={'好,我们的游戏开始了!没有匹配到的小伙伴不要着急,耐心等待下一场游戏哦~'},
|
||||
},
|
||||
[34]={
|
||||
['Id']=34,
|
||||
['Type']=4,
|
||||
['Stage']=3,
|
||||
['Time']=30,
|
||||
['CMD']=1,
|
||||
['Params1']={1},
|
||||
['Params2']={'最后谁会胜出呢,真期待呀~'},
|
||||
},
|
||||
[35]={
|
||||
['Id']=35,
|
||||
['Type']=4,
|
||||
['Stage']=4,
|
||||
['Time']=5,
|
||||
['CMD']=1,
|
||||
['Params1']={1},
|
||||
['Params2']={'好嘞,游戏结束,让我来看看得分……'},
|
||||
},
|
||||
[36]={
|
||||
['Id']=36,
|
||||
['Type']=4,
|
||||
['Stage']=4,
|
||||
['Time']=5,
|
||||
['CMD']=1,
|
||||
['Params1']={1},
|
||||
['Params2']={'嗯,排名已经出来了!恭喜【{0}】在这一轮中荣获第一!奖品已经发放给各位了,注意查收哦~'},
|
||||
},
|
||||
[37]={
|
||||
['Id']=37,
|
||||
['Type']=100,
|
||||
['Stage']=0,
|
||||
['Time']=5,
|
||||
['CMD']=1,
|
||||
['Params1']={1},
|
||||
['Params2']={'感谢【{0}】哥哥,送的{1}!谢谢哥哥!'},
|
||||
},
|
||||
}
|
||||
return LiveRoomTalkCfg
|
||||
7
Assets/Lua/Config/LiveRoomTalkCfg.lua.meta
Normal file
7
Assets/Lua/Config/LiveRoomTalkCfg.lua.meta
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 619b9a884246005488634cb8d4b0e8a1
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -144,6 +144,11 @@ function CfgMgr:ctor()
|
||||
self.StoryItemCfg = InternalRequire("StoryItemCfg")
|
||||
self.ChatDateCfg = InternalRequire("ChatDateCfg")
|
||||
self.ChatPhotoCfg = InternalRequire("ChatPhotoCfg")
|
||||
|
||||
self.LiveRoomCfg = InternalRequire("LiveRoomCfg")
|
||||
self.LiveRoomQuestionCfg = InternalRequire("LiveRoomQuestionCfg")
|
||||
self.LiveRoomSellCfg = InternalRequire("LiveRoomSellCfg")
|
||||
self.LiveRoomTalkCfg = InternalRequire("LiveRoomTalkCfg")
|
||||
end
|
||||
|
||||
-- function CfgMgr:GetEvilLevelCfg(id)
|
||||
@ -248,6 +253,22 @@ function CfgMgr:GetTaskCfgV2()
|
||||
return self.TaskCfgV2
|
||||
end
|
||||
|
||||
function CfgMgr:GetLiveRoomCfg()
|
||||
return self.LiveRoomCfg
|
||||
end
|
||||
|
||||
function CfgMgr:GetLiveRoomQuestionCfg()
|
||||
return self.LiveRoomQuestionCfg
|
||||
end
|
||||
|
||||
function CfgMgr:GetLiveRoomSellCfg()
|
||||
return self.LiveRoomSellCfg
|
||||
end
|
||||
|
||||
function CfgMgr:GetLiveRoomTalkCfg()
|
||||
return self.LiveRoomTalkCfg
|
||||
end
|
||||
|
||||
function CfgMgr:GetStoryRewardCfg(id)
|
||||
return self.StoryRewardCfg[id]
|
||||
end
|
||||
|
||||
@ -2,18 +2,28 @@
|
||||
---@field public gameObject UnityEngine.GameObject
|
||||
---@field public button UnityEngine.UI.Button
|
||||
|
||||
---@class LiveRoomItem__Generate_liveStreamerHead_headImg
|
||||
---@class LiveRoomItem__Generate_roomTitleBar_streamerHead_nickname
|
||||
---@field public gameObject UnityEngine.GameObject
|
||||
---@field public text TMPro.TextMeshProUGUI
|
||||
|
||||
---@class LiveRoomItem__Generate_roomTitleBar_streamerHead_headImg
|
||||
---@field public gameObject UnityEngine.GameObject
|
||||
---@field public image UnityEngine.UI.Image
|
||||
|
||||
---@class LiveRoomItem__Generate_liveStreamerHead
|
||||
---@class LiveRoomItem__Generate_roomTitleBar_streamerHead
|
||||
---@field public gameObject UnityEngine.GameObject
|
||||
---@field public headImg LiveRoomItem__Generate_liveStreamerHead_headImg
|
||||
---@field public headImg LiveRoomItem__Generate_roomTitleBar_streamerHead_headImg
|
||||
---@field public nickname LiveRoomItem__Generate_roomTitleBar_streamerHead_nickname
|
||||
|
||||
---@class LiveRoomItem__Generate_roomTitleBar_roomName
|
||||
---@field public gameObject UnityEngine.GameObject
|
||||
---@field public text TMPro.TextMeshProUGUI
|
||||
|
||||
---@class LiveRoomItem__Generate_roomTitleBar
|
||||
---@field public gameObject UnityEngine.GameObject
|
||||
---@field public roomName UnityEngine.GameObject
|
||||
---@field public roomName LiveRoomItem__Generate_roomTitleBar_roomName
|
||||
---@field public playerNumText UnityEngine.GameObject
|
||||
---@field public streamerHead LiveRoomItem__Generate_roomTitleBar_streamerHead
|
||||
---@field public closeBtn LiveRoomItem__Generate_roomTitleBar_closeBtn
|
||||
|
||||
---@class LiveRoomItem__Generate_roomBg
|
||||
@ -26,7 +36,6 @@
|
||||
---@field private roomBg LiveRoomItem__Generate_roomBg
|
||||
---@field private liveStreamer UnityEngine.GameObject
|
||||
---@field private roomTitleBar LiveRoomItem__Generate_roomTitleBar
|
||||
---@field private liveStreamerHead LiveRoomItem__Generate_liveStreamerHead
|
||||
local LiveRoomItemView = class("LiveRoomItemView")
|
||||
|
||||
function LiveRoomItemView:ctor()
|
||||
@ -52,6 +61,7 @@ function LiveRoomItemView:InitGenerate(Root, data)
|
||||
self:InitGenerate__7(Root,data)
|
||||
self:InitGenerate__8(Root,data)
|
||||
self:InitGenerate__9(Root,data)
|
||||
self:InitGenerate__10(Root,data)
|
||||
|
||||
|
||||
end
|
||||
@ -111,6 +121,8 @@ function LiveRoomItemView:InitGenerate__5(Root, data)
|
||||
tolua.setpeer(tmp, {})
|
||||
end
|
||||
self.roomTitleBar.roomName = tmp
|
||||
|
||||
tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
|
||||
end
|
||||
|
||||
---@private
|
||||
@ -128,31 +140,45 @@ end
|
||||
---@private
|
||||
function LiveRoomItemView:InitGenerate__7(Root, data)
|
||||
--[[
|
||||
UpSafe/RoomTitleBar/LiveStreamerHead
|
||||
UpSafe/RoomTitleBar/StreamerHead
|
||||
--]]
|
||||
local tmp = Root:Find("UpSafe/RoomTitleBar/LiveStreamerHead").gameObject
|
||||
local tmp = Root:Find("UpSafe/RoomTitleBar/StreamerHead").gameObject
|
||||
if tolua.getpeer(tmp) == nil then
|
||||
tolua.setpeer(tmp, {})
|
||||
end
|
||||
self.liveStreamerHead = tmp
|
||||
self.roomTitleBar.streamerHead = tmp
|
||||
end
|
||||
|
||||
---@private
|
||||
function LiveRoomItemView:InitGenerate__8(Root, data)
|
||||
--[[
|
||||
UpSafe/RoomTitleBar/LiveStreamerHead/Head/HeadImg
|
||||
UpSafe/RoomTitleBar/StreamerHead/Head/HeadImg
|
||||
--]]
|
||||
local tmp = Root:Find("UpSafe/RoomTitleBar/LiveStreamerHead/Head/HeadImg").gameObject
|
||||
local tmp = Root:Find("UpSafe/RoomTitleBar/StreamerHead/Head/HeadImg").gameObject
|
||||
if tolua.getpeer(tmp) == nil then
|
||||
tolua.setpeer(tmp, {})
|
||||
end
|
||||
self.liveStreamerHead.headImg = tmp
|
||||
self.roomTitleBar.streamerHead.headImg = tmp
|
||||
|
||||
tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
|
||||
end
|
||||
|
||||
---@private
|
||||
function LiveRoomItemView:InitGenerate__9(Root, data)
|
||||
--[[
|
||||
UpSafe/RoomTitleBar/StreamerHead/Nickname
|
||||
--]]
|
||||
local tmp = Root:Find("UpSafe/RoomTitleBar/StreamerHead/Nickname").gameObject
|
||||
if tolua.getpeer(tmp) == nil then
|
||||
tolua.setpeer(tmp, {})
|
||||
end
|
||||
self.roomTitleBar.streamerHead.nickname = tmp
|
||||
|
||||
tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
|
||||
end
|
||||
|
||||
---@private
|
||||
function LiveRoomItemView:InitGenerate__10(Root, data)
|
||||
--[[
|
||||
UpSafe/RoomTitleBar/CloseBtn
|
||||
--]]
|
||||
@ -170,8 +196,14 @@ function LiveRoomItemView:GenerateDestroy()
|
||||
if tolua.getpeer(self.roomTitleBar.closeBtn) ~= nil then
|
||||
tolua.setpeer(self.roomTitleBar.closeBtn, nil)
|
||||
end
|
||||
if tolua.getpeer(self.liveStreamerHead.headImg) ~= nil then
|
||||
tolua.setpeer(self.liveStreamerHead.headImg, nil)
|
||||
if tolua.getpeer(self.roomTitleBar.streamerHead.nickname) ~= nil then
|
||||
tolua.setpeer(self.roomTitleBar.streamerHead.nickname, nil)
|
||||
end
|
||||
if tolua.getpeer(self.roomTitleBar.streamerHead.headImg) ~= nil then
|
||||
tolua.setpeer(self.roomTitleBar.streamerHead.headImg, nil)
|
||||
end
|
||||
if tolua.getpeer(self.roomTitleBar.streamerHead) ~= nil then
|
||||
tolua.setpeer(self.roomTitleBar.streamerHead, nil)
|
||||
end
|
||||
if tolua.getpeer(self.roomTitleBar.playerNumText) ~= nil then
|
||||
tolua.setpeer(self.roomTitleBar.playerNumText, nil)
|
||||
@ -191,10 +223,6 @@ function LiveRoomItemView:GenerateDestroy()
|
||||
tolua.setpeer(self.roomTitleBar, nil)
|
||||
end
|
||||
self.roomTitleBar = nil
|
||||
if tolua.getpeer(self.liveStreamerHead) ~= nil then
|
||||
tolua.setpeer(self.liveStreamerHead, nil)
|
||||
end
|
||||
self.liveStreamerHead = nil
|
||||
self.transform = nil
|
||||
self.gameObject = nil
|
||||
self.inited = false
|
||||
|
||||
@ -36,7 +36,7 @@ function UILiveRoomView:AddEventListener()
|
||||
ManagerContainer.LuaEventMgr:RegisterUIEvent(self.uiData.name)
|
||||
|
||||
ManagerContainer.LuaEventMgr:RegisterUIEvent(self.uiData.name, UIEventNames.SC_LIVE_ROOM_JOIN_ACK, function()
|
||||
--LogError("--SC_LIVE_ROOM_JOIN_ACK--")
|
||||
self:RefreshRoom()
|
||||
end)
|
||||
|
||||
ManagerContainer.LuaEventMgr:RegisterUIEvent(self.uiData.name, UIEventNames.SC_LIVE_ROOM_LEAVE_ACK, function()
|
||||
@ -81,6 +81,10 @@ function UILiveRoomView:OnDispose()
|
||||
self.controller:OnDispose()
|
||||
end
|
||||
|
||||
function UILiveRoomView:OnCloseBtn()
|
||||
self:UIClose()
|
||||
end
|
||||
|
||||
--endregion 生命周期
|
||||
|
||||
--region 房间
|
||||
@ -97,11 +101,11 @@ function UILiveRoomView:GetLiveRoomItem(loopview, index)
|
||||
local itemlua = CommonUtil.BindGridViewItem2Lua(self, "LiveRoomItem", item.gameObject)
|
||||
local go = item.gameObject
|
||||
go.name = "LiveRoomItem_" .. index2
|
||||
--itemlua.text_index.text.text="roomType:"..index2
|
||||
--根据loopview大小重设go大小
|
||||
local rect = go:GetComponent(Enum.TypeInfo.RectTransform)
|
||||
local loopviewRect=loopview:GetComponent(Enum.TypeInfo.RectTransform)
|
||||
rect.sizeDelta = Vector2(loopviewRect.rect.width, loopviewRect.rect.height)
|
||||
local roomType = index2 + 1
|
||||
self:ConfigRoom(itemlua, roomType)
|
||||
self:SwitchRoom(itemlua)
|
||||
return item
|
||||
end
|
||||
@ -121,9 +125,12 @@ function UILiveRoomView:SwitchRoom(liveRoomItemLua)
|
||||
end
|
||||
self.switchRoomWaitTimer = ManagerContainer.LuaTimerMgr:AddLuaTimer(300, 1, function()
|
||||
local pageId = self.sv_room.loopListView.CurSnapNearestItemIndex
|
||||
local item = self.sv_room.loopListView:GetShownItemByItemIndex(pageId)
|
||||
local itemlua = CommonUtil.GetBindGridViewItem2Lua(self, "LiveRoomItem", item.gameObject)
|
||||
local roomType = pageId % self.roomCount + 1
|
||||
LogError("SwitchRoom: roomType="..roomType)
|
||||
self.currLiveRoomItemLua = liveRoomItemLua
|
||||
|
||||
self.currRoomLua = itemlua
|
||||
-- 退出当前房间
|
||||
local data = ManagerContainer.DataMgr.LiveRoomData:GetData()
|
||||
local oldRoomId = data["room_id"]
|
||||
@ -135,8 +142,16 @@ function UILiveRoomView:SwitchRoom(liveRoomItemLua)
|
||||
end)
|
||||
end
|
||||
|
||||
function UILiveRoomView:ConfigRoom(itemLua, roomType)
|
||||
local liveRoomCfg = ManagerContainer.CfgMgr:GetLiveRoomCfg()
|
||||
local roomCfg = liveRoomCfg[roomType]
|
||||
itemLua.roomTitleBar.roomName.text.text = roomCfg["RoomDesp"]
|
||||
itemLua.roomTitleBar.streamerHead.nickname.text.text = roomCfg["Streamer"]
|
||||
self.uiBase:AddButtonUniqueEventListener(itemLua.roomTitleBar.closeBtn.button, self, self.OnCloseBtn)
|
||||
end
|
||||
function UILiveRoomView:RefreshRoom()
|
||||
local data = ManagerContainer.DataMgr.LiveRoomData:GetData()
|
||||
local roomType = data["room_type"]
|
||||
end
|
||||
|
||||
return UILiveRoomView
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user