0718
Showing
390 changed files
with
675 additions
and
378 deletions
... | @@ -31,12 +31,13 @@ | ... | @@ -31,12 +31,13 @@ |
31 | <Item Key="TabsParamsKey"> | 31 | <Item Key="TabsParamsKey"> |
32 | <Value ctype="TabsInfo"> | 32 | <Value ctype="TabsInfo"> |
33 | <OpenedDocuments> | 33 | <OpenedDocuments> |
34 | <FilePathData Path="ui/bird/LoadingScene.csd" /> | 34 | <FilePathData Path="ui/bird/GameOverLayer.csd" /> |
35 | <FilePathData Path="ui/bird/GameStartLayer.csd" /> | 35 | <FilePathData Path="ui/bird/GamePayConfirmLayer.csd" /> |
36 | <FilePathData Path="ui/bird/GameStartLayer_shdx.csd" /> | 36 | <FilePathData Path="ui/bird/GameFailLayer.csd" /> |
37 | <FilePathData Path="ui/bird/LoadingScene_shdx.csd" /> | 37 | <FilePathData Path="ui/bird/ComboLayer.csd" /> |
38 | <FilePathData Path="ui/bird/GameScene.csd" /> | ||
38 | </OpenedDocuments> | 39 | </OpenedDocuments> |
39 | <ActiveDocument Path="ui/bird/LoadingScene_shdx.csd" /> | 40 | <ActiveDocument Path="ui/bird/GameOverLayer.csd" /> |
40 | </Value> | 41 | </Value> |
41 | </Item> | 42 | </Item> |
42 | </Properties> | 43 | </Properties> | ... | ... |
... | @@ -9,6 +9,6 @@ | ... | @@ -9,6 +9,6 @@ |
9 | <isEffect>1</isEffect> | 9 | <isEffect>1</isEffect> |
10 | <fanpai_best>10</fanpai_best> | 10 | <fanpai_best>10</fanpai_best> |
11 | <candy_best>2391</candy_best> | 11 | <candy_best>2391</candy_best> |
12 | <candy_game_play_cnt>31</candy_game_play_cnt> | 12 | <candy_game_play_cnt>33</candy_game_play_cnt> |
13 | <is_game_vip>1</is_game_vip> | 13 | <is_game_vip>1</is_game_vip> |
14 | </userDefaultRoot> | 14 | </userDefaultRoot> | ... | ... |
1 | <?xml version="1.0"?> | 1 | <?xml version="1.0"?> |
2 | <Project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | 2 | <Project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
3 | <propertyGroup> | 3 | <propertyGroup> |
4 | <StartProgram>E:\xhx\client\runtime\win32\GuandanAndroid.exe</StartProgram> | 4 | <StartProgram>D:\xhx\client\runtime\win32\GuandanAndroid.exe</StartProgram> |
5 | <StartArguments>-workdir E:\xhx\client\candy\client</StartArguments> | 5 | <StartArguments>-workdir D:\xhx\client\candy\client</StartArguments> |
6 | <StartWorkingDirectory>E:\xhx\client\runtime\win32</StartWorkingDirectory> | 6 | <StartWorkingDirectory>D:\xhx\client\runtime\win32</StartWorkingDirectory> |
7 | </propertyGroup> | 7 | </propertyGroup> |
8 | </Project> | 8 | </Project> |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
No preview for this file type
... | @@ -35,8 +35,10 @@ | ... | @@ -35,8 +35,10 @@ |
35 | <FilePathData Path="ui/candy/GameStartLayer.csd" /> | 35 | <FilePathData Path="ui/candy/GameStartLayer.csd" /> |
36 | <FilePathData Path="ui/candy/GameStartLayer_shdx.csd" /> | 36 | <FilePathData Path="ui/candy/GameStartLayer_shdx.csd" /> |
37 | <FilePathData Path="ui/candy/LoadingScene_shdx.csd" /> | 37 | <FilePathData Path="ui/candy/LoadingScene_shdx.csd" /> |
38 | <FilePathData Path="ui/candy/GameScene.csd" /> | ||
39 | <FilePathData Path="ui/candy/Girl.csd" /> | ||
38 | </OpenedDocuments> | 40 | </OpenedDocuments> |
39 | <ActiveDocument Path="ui/candy/LoadingScene_shdx.csd" /> | 41 | <ActiveDocument Path="ui/candy/Girl.csd" /> |
40 | </Value> | 42 | </Value> |
41 | </Item> | 43 | </Item> |
42 | </Properties> | 44 | </Properties> | ... | ... |
... | @@ -3,7 +3,7 @@ | ... | @@ -3,7 +3,7 @@ |
3 | <!--m0800279afc6c--> | 3 | <!--m0800279afc6c--> |
4 | <!--m0800278b87c2--> | 4 | <!--m0800278b87c2--> |
5 | <!----> | 5 | <!----> |
6 | <Account>xiaokanggogogo</Account> | 6 | <Account>m0800278b87c21</Account> |
7 | <exp>0</exp> | 7 | <exp>0</exp> |
8 | <versionnum>201801291657</versionnum> | 8 | <versionnum>201801291657</versionnum> |
9 | <isMusic>0</isMusic> | 9 | <isMusic>0</isMusic> |
... | @@ -26,7 +26,7 @@ | ... | @@ -26,7 +26,7 @@ |
26 | <new_guide_step>4</new_guide_step> | 26 | <new_guide_step>4</new_guide_step> |
27 | <is_feiyanzoubi_game_guide>1</is_feiyanzoubi_game_guide> | 27 | <is_feiyanzoubi_game_guide>1</is_feiyanzoubi_game_guide> |
28 | <feiyanzoubi_best>603</feiyanzoubi_best> | 28 | <feiyanzoubi_best>603</feiyanzoubi_best> |
29 | <uid>1060100010142861</uid> | 29 | <uid>1030100010142926</uid> |
30 | <is_bird_game_guide>1</is_bird_game_guide> | 30 | <is_bird_game_guide>1</is_bird_game_guide> |
31 | <bird_best>1107</bird_best> | 31 | <bird_best>1107</bird_best> |
32 | <is_haidao_game_guide>1</is_haidao_game_guide> | 32 | <is_haidao_game_guide>1</is_haidao_game_guide> | ... | ... |
... | @@ -30,9 +30,9 @@ | ... | @@ -30,9 +30,9 @@ |
30 | <common id="17" val="10"/> | 30 | <common id="17" val="10"/> |
31 | 31 | ||
32 | <!--每次PK赢取的金币数量--> | 32 | <!--每次PK赢取的金币数量--> |
33 | <common id="18" val="50"/> | 33 | <common id="18" val="100"/> |
34 | <!--每天PK赢取金币数量上限--> | 34 | <!--每天PK赢取金币数量上限--> |
35 | <common id="19" val="500"/> | 35 | <common id="19" val="1000"/> |
36 | 36 | ||
37 | <!--vip宠物战队数量--> | 37 | <!--vip宠物战队数量--> |
38 | <common id="20" val="6"/> | 38 | <common id="20" val="6"/> |
... | @@ -48,5 +48,5 @@ | ... | @@ -48,5 +48,5 @@ |
48 | <common id="24" val="15"/> | 48 | <common id="24" val="15"/> |
49 | 49 | ||
50 | <!--是否开启vip--> | 50 | <!--是否开启vip--> |
51 | <common id="10000" val="0"/> | 51 | <common id="10000" val="1"/> |
52 | </root> | 52 | </root> | ... | ... |
... | @@ -10,7 +10,7 @@ | ... | @@ -10,7 +10,7 @@ |
10 | 4:每日首次充值(每个项目,每日只能购买一次) | 10 | 4:每日首次充值(每个项目,每日只能购买一次) |
11 | 5:周期活动(每个周期只能购买一次) startTime:活动开始时间 endTime:活动结束时间 cuccFlag:天津联通是否显示 | 11 | 5:周期活动(每个周期只能购买一次) startTime:活动开始时间 endTime:活动结束时间 cuccFlag:天津联通是否显示 |
12 | product:商品,天津上线的金额商品,product命名规则不能更改,遵循之前的命名规则 | 12 | product:商品,天津上线的金额商品,product命名规则不能更改,遵循之前的命名规则 |
13 | 6:购买游戏(包月31天). | 13 | 6:已废弃.购买游戏(包月31天). |
14 | payitem:购买月卡后一次性给的金币 | 14 | payitem:购买月卡后一次性给的金币 |
15 | agentLv:代理购买等级 不填,默认为0 | 15 | agentLv:代理购买等级 不填,默认为0 |
16 | --> | 16 | --> |
... | @@ -29,8 +29,8 @@ | ... | @@ -29,8 +29,8 @@ |
29 | <pay id="8" name="300钻石" type="1" extra="10" item="100000,310" rmb="30.0" product="tjlhxkgddj008" productPuTao="qjqp008" agentLv="0" notice="1"/> | 29 | <pay id="8" name="300钻石" type="1" extra="10" item="100000,310" rmb="30.0" product="tjlhxkgddj008" productPuTao="qjqp008" agentLv="0" notice="1"/> |
30 | <pay id="9" name="500钻石" type="1" extra="20" item="100000,520" rmb="50.0" product="tjlhxkgddj009" productPuTao="qjqp009" agentLv="0" notice="1"/> | 30 | <pay id="9" name="500钻石" type="1" extra="20" item="100000,520" rmb="50.0" product="tjlhxkgddj009" productPuTao="qjqp009" agentLv="0" notice="1"/> |
31 | <pay id="10" name="1000钻石" type="1" extra="50" item="100000,1050" rmb="100.0" product="tjlhxkgddj010" productPuTao="qjqp010" agentLv="0" notice="1"/> | 31 | <pay id="10" name="1000钻石" type="1" extra="50" item="100000,1050" rmb="100.0" product="tjlhxkgddj010" productPuTao="qjqp010" agentLv="0" notice="1"/> |
32 | <pay id="201" name="月卡(31天)" type="2" des="月卡" day="31" item="100001,1000;600002,10" payitem="" rmb="20.0" product="tjlhxkgddj201" productPuTao="qjqp201" notice="1"/> | 32 | <pay id="201" name="月卡(31天)" type="2" des="月卡" day="31" item="100001,1000;600002,10" item_ext="300001,689;300002,200;300003,100;300004,10;300005,1" payitem="" rmb="20.0" product="tjlhxkgddj201" productPuTao="qjqp201" notice="1"/> |
33 | <pay id="202" name="年卡(365天)" type="2" des="年卡" day="365" item="100001,2000;600004,10;200001,1" payitem="" rmb="198.0" product="tjlhxkgddj202" productPuTao="qjqp202" notice="1"/> | 33 | <pay id="202" name="年卡(365天)" type="2" des="年卡" day="365" item="100001,2000;600004,10;200001,1" item_ext="200001,689;200002,200;200003,100;200004,10;200005,1" payitem="" rmb="198.0" product="tjlhxkgddj202" productPuTao="qjqp202" notice="1"/> |
34 | </platform> | 34 | </platform> |
35 | <!--天津--> | 35 | <!--天津--> |
36 | <platform id="103,102" channel="cucc"> | 36 | <platform id="103,102" channel="cucc"> |
... | @@ -39,15 +39,18 @@ | ... | @@ -39,15 +39,18 @@ |
39 | <pay id="8" name="300钻石" type="1" extra="10" item="100000,310" rmb="30.0" product="dclyac030" server="dclyac030" content="tjlhdcylyac030@" productPuTao="qjqp008" agentLv="0" notice="1"/> | 39 | <pay id="8" name="300钻石" type="1" extra="10" item="100000,310" rmb="30.0" product="dclyac030" server="dclyac030" content="tjlhdcylyac030@" productPuTao="qjqp008" agentLv="0" notice="1"/> |
40 | <pay id="9" name="500钻石" type="1" extra="20" item="100000,520" rmb="50.0" product="dclyac050" server="dclyac050" content="tjlhdcylyac050@" productPuTao="qjqp009" agentLv="0" notice="1"/> | 40 | <pay id="9" name="500钻石" type="1" extra="20" item="100000,520" rmb="50.0" product="dclyac050" server="dclyac050" content="tjlhdcylyac050@" productPuTao="qjqp009" agentLv="0" notice="1"/> |
41 | <pay id="10" name="1000钻石" type="1" extra="50" item="100000,1050" rmb="100.0" product="dclyac100" server="dclyac100" content="tjlhdcylyac100@" productPuTao="qjqp010" agentLv="0" notice="1"/> | 41 | <pay id="10" name="1000钻石" type="1" extra="50" item="100000,1050" rmb="100.0" product="dclyac100" server="dclyac100" content="tjlhdcylyac100@" productPuTao="qjqp010" agentLv="0" notice="1"/> |
42 | <pay id="201" name="月卡(31天)" type="2" des="月卡" day="31" item="100001,1000;600001,5" payitem="" rmb="25.0" product="dclyby025" server="dclyby025" content="tjlhdcylyby025@" productPuTao="qjqp201" notice="1"/> | 42 | <pay id="201" name="月卡(31天)" type="2" des="月卡" day="31" item="100001,1000;600001,5" item_ext="300001,689;300002,200;300003,100;300004,10;300005,1" payitem="" rmb="25.0" product="dclyby025" server="dclyby025" content="tjlhdcylyby025@" productPuTao="qjqp201" notice="1"/> |
43 | <pay id="202" name="年卡(365天)" type="2" des="年卡" day="365" item="100001,2000;600002,5;200001,1" payitem="" rmb="198.0" product="dclybn198" server="dclybn198" content="tjlhdcylyac198@" productPuTao="qjqp202" notice="1"/> | 43 | <pay id="202" name="年卡(365天)" type="2" des="年卡" day="365" item="100001,2000;600002,5;200001,1" item_ext="200001,689;200002,200;200003,100;200004,10;200005,1" payitem="" rmb="198.0" product="dclybn198" server="dclybn198" content="tjlhdcylyac198@" productPuTao="qjqp202" notice="1"/> |
44 | <pay id="301" name="自动续包月卡(31天)" type="2" des="月卡" day="31" item="100001,1000;600001,5" payitem="" rmb="20.0" product="dclyby020" server="dclyby020" content="tjlhdcylyby020@" productPuTao="qjqp999" notice="1"/> | 44 | <pay id="301" name="自动续包月卡(31天)" type="2" des="月卡" day="31" item="100001,1000;600001,5" item_ext="300001,689;300002,200;300003,100;300004,10;300005,1" payitem="" rmb="20.0" product="dclyby020" server="dclyby020" content="tjlhdcylyby020@" productPuTao="qjqp999" notice="1"/> |
45 | </platform> | 45 | </platform> |
46 | <!--上海电信--> | 46 | <!--上海电信--> |
47 | <platform id="106" channel="shdx"> | 47 | <platform id="106" channel="shdx"> |
48 | <pay id="201" name="月卡(31天)" type="2" des="4k动漫vip单月包" day="31" item="100001,1000;600001,5" payitem="" rmb="69.0" product="1000710508" productPuTao="qjqp201" notice="1"/> | 48 | <pay id="201" name="月卡(31天)" type="2" des="4k动漫vip单月包" day="31" item="100001,1000;600001,5" item_ext="300001,689;300002,200;300003,100;300004,10;300005,1" payitem="" rmb="69.0" product="1000710508" productPuTao="qjqp201" notice="1"/> |
49 | <pay id="202" name="年卡(365天)" type="2" des="4k动漫vip年包" day="365" item="100001,2000;600002,5;200001,1" payitem="" rmb="299.0" product="1000710226" productPuTao="qjqp202" notice="1"/> | 49 | <pay id="202" name="年卡(365天)" type="2" des="4k动漫vip年包" day="365" item="100001,2000;600002,5;200001,1" item_ext="200001,689;200002,200;200003,100;200004,10;200005,1" payitem="" rmb="299.0" product="1000710226" productPuTao="qjqp202" notice="1"/> |
50 | <pay id="301" name="自动续包月卡(31天)" type="2" des="4K动漫vip包" day="31" item="100001,1000;600001,5" payitem="" rmb="49.0" product="1000709506" productPuTao="qjqp999" notice="1"/> | 50 | <pay id="301" name="自动续包月卡(31天)" type="2" des="4K动漫vip包" day="31" item="100001,1000;600001,5" item_ext="300001,689;300002,200;300003,100;300004,10;300005,1" payitem="" rmb="49.0" product="1000709506" productPuTao="qjqp999" notice="1"/> |
51 | <pay id="302" name="自动续包月卡(31天)" type="2" des="4K动漫vip包" day="31" item="100001,1000;600001,5" item_ext="300001,689;300002,200;300003,100;300004,10;300005,1" payitem="" rmb="39.0" product="1000710713" productPuTao="qjqp999" notice="1"/> | ||
51 | </platform> | 52 | </platform> |
52 | 53 | ||
53 | </root> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
54 | </root> | ||
55 | |||
56 | ... | ... |
... | @@ -2294,9 +2294,10 @@ | ... | @@ -2294,9 +2294,10 @@ |
2294 | petstar中第一个数字表示需要进行差异化的宠物个数,第二个数字表示差异化的数值。示例中的“1,2”的意思为AI有1个宠的星级要比玩家随机一个宠物大2。 | 2294 | petstar中第一个数字表示需要进行差异化的宠物个数,第二个数字表示差异化的数值。示例中的“1,2”的意思为AI有1个宠的星级要比玩家随机一个宠物大2。 |
2295 | lv中第一个数字表示需要进行差异化的宠物个数,第二个数字表示差异化的数值。示例中的“1,2”的意思为AI有1个宠的等级要比玩家随机一个宠物大2。 | 2295 | lv中第一个数字表示需要进行差异化的宠物个数,第二个数字表示差异化的数值。示例中的“1,2”的意思为AI有1个宠的等级要比玩家随机一个宠物大2。 |
2296 | skill中的数字表示AI宠物的技能开启和玩家的差异。“1”代表需要比玩家多1个宠物开启了技能。 | 2296 | skill中的数字表示AI宠物的技能开启和玩家的差异。“1”代表需要比玩家多1个宠物开启了技能。 |
2297 | flag:1:使用指定的宠物组.0:按照参数随机(默认0) | ||
2297 | --> | 2298 | --> |
2298 | 2299 | ||
2299 | <user id="1001" name="对手1001" pk_val="500" petstar="0,0" lv="0,0" skill="0"> | 2300 | <user id="1001" name="对手1001" pk_val="500" petstar="0,0" lv="0,0" skill="0" flag="1"> |
2300 | <!-- | 2301 | <!-- |
2301 | id//id | 2302 | id//id |
2302 | lv//等级 | 2303 | lv//等级 |
... | @@ -2311,62 +2312,11 @@ | ... | @@ -2311,62 +2312,11 @@ |
2311 | <pet id="10004" lv="1" skill_id="2000" ack="1" hp="7" congming="10"/> | 2312 | <pet id="10004" lv="1" skill_id="2000" ack="1" hp="7" congming="10"/> |
2312 | <pet id="10005" lv="1" skill_id="4006" ack="2" hp="5" congming="10"/> | 2313 | <pet id="10005" lv="1" skill_id="4006" ack="2" hp="5" congming="10"/> |
2313 | <pet id="10006" lv="1" skill_id="3003" ack="1" hp="6" congming="10"/> | 2314 | <pet id="10006" lv="1" skill_id="3003" ack="1" hp="6" congming="10"/> |
2314 | <pet id="10007" lv="1" skill_id="1007" ack="1" hp="6" congming="10"/> | 2315 | |
2315 | <pet id="10008" lv="1" skill_id="4000" ack="2" hp="4" congming="10"/> | ||
2316 | <pet id="10009" lv="1" skill_id="1016" ack="2" hp="5" congming="10"/> | ||
2317 | <pet id="10010" lv="1" skill_id="1002" ack="2" hp="4" congming="10"/> | ||
2318 | <pet id="10011" lv="1" skill_id="4002" ack="2" hp="5" congming="10"/> | ||
2319 | <pet id="10012" lv="1" skill_id="1014" ack="2" hp="5" congming="10"/> | ||
2320 | <pet id="10013" lv="1" skill_id="1004" ack="2" hp="4" congming="10"/> | ||
2321 | <pet id="10014" lv="1" skill_id="2002" ack="2" hp="4" congming="10"/> | ||
2322 | <pet id="10016" lv="1" skill_id="1008" ack="2" hp="5" congming="10"/> | ||
2323 | <pet id="10057" lv="1" skill_id="2001" ack="3" hp="4" congming="10"/> | ||
2324 | <pet id="10058" lv="1" skill_id="2007" ack="1" hp="6" congming="10"/> | ||
2325 | <pet id="20001" lv="1" skill_id="3006" ack="2" hp="4" congming="10"/> | ||
2326 | <pet id="20002" lv="1" skill_id="4006" ack="2" hp="5" congming="10"/> | ||
2327 | <pet id="20003" lv="1" skill_id="4002" ack="2" hp="6" congming="10"/> | ||
2328 | <pet id="20004" lv="1" skill_id="4007" ack="1" hp="6" congming="10"/> | ||
2329 | <pet id="20005" lv="1" skill_id="1007" ack="1" hp="6" congming="10"/> | ||
2330 | <pet id="20006" lv="1" skill_id="1004" ack="2" hp="4" congming="10"/> | ||
2331 | <pet id="20007" lv="1" skill_id="1008" ack="2" hp="5" congming="10"/> | ||
2332 | <pet id="20008" lv="1" skill_id="2001" ack="3" hp="4" congming="10"/> | ||
2333 | <pet id="20009" lv="1" skill_id="1002" ack="2" hp="4" congming="10"/> | ||
2334 | <pet id="20010" lv="1" skill_id="2002" ack="2" hp="4" congming="10"/> | ||
2335 | <pet id="20011" lv="1" skill_id="1009" ack="1" hp="6" congming="10"/> | ||
2336 | <pet id="20012" lv="1" skill_id="3007" ack="1" hp="1" congming="10"/> | ||
2337 | <pet id="20013" lv="1" skill_id="3001" ack="2" hp="4" congming="10"/> | ||
2338 | <pet id="20019" lv="1" skill_id="1014" ack="2" hp="5" congming="10"/> | ||
2339 | <pet id="20020" lv="1" skill_id="3003" ack="1" hp="6" congming="10"/> | ||
2340 | <pet id="20022" lv="1" skill_id="2003" ack="2" hp="4" congming="10"/> | ||
2341 | <pet id="20023" lv="1" skill_id="2000" ack="1" hp="7" congming="10"/> | ||
2342 | <pet id="20026" lv="1" skill_id="1004" ack="3" hp="4" congming="10"/> | ||
2343 | <pet id="20029" lv="1" skill_id="1016" ack="2" hp="5" congming="10"/> | ||
2344 | <pet id="20035" lv="1" skill_id="2007" ack="1" hp="6" congming="10"/> | ||
2345 | <pet id="20046" lv="1" skill_id="1010" ack="2" hp="5" congming="10"/> | ||
2346 | <pet id="20048" lv="1" skill_id="3000" ack="2" hp="4" congming="10"/> | ||
2347 | <pet id="30003" lv="1" skill_id="1004" ack="2" hp="4" congming="10"/> | ||
2348 | <pet id="30004" lv="1" skill_id="1016" ack="2" hp="5" congming="10"/> | ||
2349 | <pet id="30005" lv="1" skill_id="1014" ack="2" hp="5" congming="10"/> | ||
2350 | <pet id="30006" lv="1" skill_id="2007" ack="1" hp="6" congming="10"/> | ||
2351 | <pet id="30007" lv="1" skill_id="4007" ack="1" hp="6" congming="10"/> | ||
2352 | <pet id="30008" lv="1" skill_id="2003" ack="2" hp="4" congming="10"/> | ||
2353 | <pet id="30009" lv="1" skill_id="2001" ack="3" hp="4" congming="10"/> | ||
2354 | <pet id="30010" lv="1" skill_id="1008" ack="2" hp="5" congming="10"/> | ||
2355 | <pet id="30011" lv="1" skill_id="4002" ack="2" hp="5" congming="10"/> | ||
2356 | <pet id="30013" lv="1" skill_id="2000" ack="1" hp="7" congming="10"/> | ||
2357 | <pet id="30014" lv="1" skill_id="1002" ack="2" hp="4" congming="10"/> | ||
2358 | <pet id="30016" lv="1" skill_id="4006" ack="2" hp="5" congming="10"/> | ||
2359 | <pet id="30018" lv="1" skill_id="1007" ack="1" hp="6" congming="10"/> | ||
2360 | <pet id="30026" lv="1" skill_id="1010" ack="2" hp="5" congming="10"/> | ||
2361 | <pet id="30027" lv="1" skill_id="3000" ack="2" hp="4" congming="10"/> | ||
2362 | <pet id="30036" lv="1" skill_id="1004" ack="3" hp="4" congming="10"/> | ||
2363 | <pet id="30037" lv="1" skill_id="2002" ack="2" hp="4" congming="10"/> | ||
2364 | <pet id="30038" lv="1" skill_id="2002" ack="1" hp="6" congming="10"/> | ||
2365 | <pet id="30040" lv="1" skill_id="4003" ack="3" hp="5" congming="10"/> | ||
2366 | 2316 | ||
2367 | </user> | 2317 | </user> |
2368 | 2318 | ||
2369 | <user id="1002" name="对手1002" pk_val="1000" petstar="0,0" lv="0,0" skill="1"> | 2319 | <user id="1002" name="对手1002" pk_val="1000" petstar="0,0" lv="0,0" skill="0" flag="0"> |
2370 | <!-- | 2320 | <!-- |
2371 | id//id | 2321 | id//id |
2372 | lv//等级 | 2322 | lv//等级 |
... | @@ -2468,7 +2418,7 @@ | ... | @@ -2468,7 +2418,7 @@ |
2468 | 2418 | ||
2469 | </user> | 2419 | </user> |
2470 | 2420 | ||
2471 | <user id="1003" name="对手1003" pk_val="2000" petstar="0,0" lv="1,1" skill="1"> | 2421 | <user id="1003" name="对手1003" pk_val="2000" petstar="0,0" lv="1,1" skill="1" flag="0"> |
2472 | <!-- | 2422 | <!-- |
2473 | id//id | 2423 | id//id |
2474 | lv//等级 | 2424 | lv//等级 |
... | @@ -2617,7 +2567,7 @@ | ... | @@ -2617,7 +2567,7 @@ |
2617 | 2567 | ||
2618 | </user> | 2568 | </user> |
2619 | 2569 | ||
2620 | <user id="1004" name="对手1004" pk_val="9999999" petstar="1,1" lv="1,1" skill="1"> | 2570 | <user id="1004" name="对手1004" pk_val="9999999" petstar="1,1" lv="1,1" skill="1" flag="0"> |
2621 | <!-- | 2571 | <!-- |
2622 | id//id | 2572 | id//id |
2623 | lv//等级 | 2573 | lv//等级 | ... | ... |
... | @@ -35,7 +35,7 @@ | ... | @@ -35,7 +35,7 @@ |
35 | 200006 宠物钥匙橙 | 35 | 200006 宠物钥匙橙 |
36 | --> | 36 | --> |
37 | 37 | ||
38 | <game id="1" ename="cake" name="欢乐叠蛋糕" needVip="0" idx="3" payid="22" flag="free"> | 38 | <game id="1" ename="cake" name="欢乐叠蛋糕" needVip="1" idx="3" payid="22" flag=""> |
39 | <score val="0" item="" key=""/> | 39 | <score val="0" item="" key=""/> |
40 | <score val="5" item="100002,2;100001,50;600001,2" rate="30" key="200001,100" /> | 40 | <score val="5" item="100002,2;100001,50;600001,2" rate="30" key="200001,100" /> |
41 | <score val="10" item="100002,4;100001,80;600001,3" rate="40" key="200001,100" /> | 41 | <score val="10" item="100002,4;100001,80;600001,3" rate="40" key="200001,100" /> |
... | @@ -47,7 +47,7 @@ | ... | @@ -47,7 +47,7 @@ |
47 | <score val="150" item="100002,10;100001,150;600002,1" rate="70" key="200001,30;200002,30;200003,20;200004,20" /> | 47 | <score val="150" item="100002,10;100001,150;600002,1" rate="70" key="200001,30;200002,30;200003,20;200004,20" /> |
48 | <score val="200" item="100002,10;100001,150;600002,2" rate="80" key="200001,20;200002,30;200003,30;200004,20" /> | 48 | <score val="200" item="100002,10;100001,150;600002,2" rate="80" key="200001,20;200002,30;200003,30;200004,20" /> |
49 | </game> | 49 | </game> |
50 | <game id="2" ename="fanpai" name="记忆翻牌" needVip="0" idx="4" payid="21" flag="free"> | 50 | <game id="2" ename="fanpai" name="记忆翻牌" needVip="1" idx="4" payid="21" flag=""> |
51 | <score val="0" item="" key=""/> | 51 | <score val="0" item="" key=""/> |
52 | <score val="5" item="100002,2;100001,10;600001,2" rate="30" key="200001,100" /> | 52 | <score val="5" item="100002,2;100001,10;600001,2" rate="30" key="200001,100" /> |
53 | <score val="15" item="100002,4;100001,50;600001,3" rate="40" key="200001,100" /> | 53 | <score val="15" item="100002,4;100001,50;600001,3" rate="40" key="200001,100" /> | ... | ... |
... | @@ -8,13 +8,13 @@ | ... | @@ -8,13 +8,13 @@ |
8 | pr:概率(所有的概率加起来是1000) | 8 | pr:概率(所有的概率加起来是1000) |
9 | item:奖励的道具 | 9 | item:奖励的道具 |
10 | --> | 10 | --> |
11 | <reward id="1" pr="470" item="100001,30" des="金豆*30"/> | 11 | <reward id="1" pr="470" item="100001,100" des="金豆*100"/> |
12 | <reward id="2" pr="10" item="100001,50" des="金豆*50"/> | 12 | <reward id="2" pr="10" item="300001,1" des="宠物技能石白*1"/> |
13 | <reward id="3" pr="4" item="100001,100" des="金豆*100"/> | 13 | <reward id="3" pr="4" item="300002,1" des="宠物技能石绿*1"/> |
14 | <reward id="4" pr="1" item="100001,200" des="金豆*200"/> | 14 | <reward id="4" pr="1" item="300003,1" des="宠物技能石蓝*1"/> |
15 | <reward id="5" pr="0" item="100001,500" des="金豆*500"/> | 15 | <reward id="5" pr="0" item="100001,500" des="金豆*500"/> |
16 | <reward id="6" pr="500" item="600001,1" des="宠物饼干*1"/> | 16 | <reward id="6" pr="500" item="600001,5" des="宠物饼干*5"/> |
17 | <reward id="7" pr="10" item="600002,1" des="宠物面包*1"/> | 17 | <reward id="7" pr="10" item="600002,5" des="宠物面包*5"/> |
18 | <reward id="8" pr="4" item="600003,1" des="宠物汉堡*1"/> | 18 | <reward id="8" pr="4" item="600003,3" des="宠物汉堡*3"/> |
19 | <reward id="9" pr="1" item="600004,1" des="宠物粮食*1"/> | 19 | <reward id="9" pr="1" item="600004,1" des="宠物粮食*1"/> |
20 | </root> | 20 | </root> | ... | ... |
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type

5.4 KB

2.87 KB

3.91 KB
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type

3.57 KB

3.6 KB

3.39 KB

4.09 KB

3.41 KB

19.2 KB

21.4 KB

15.7 KB
1 | EnumEvent={};EnumEvent.SOCKET_DISCONNECT = "socket_disconnect";EnumEvent.SOCKET_RECONNECT = "socket_reconnect"; EnumEvent.LOGIN_SUCCESS = "login_success";EnumEvent.LOGIN_FAILD = "login_faild"; EnumEvent.UPDATE_ITEMS = "update_items"; --更新道具 EnumEvent.UPDATE_DIAMOND = "update_diamond"; --更新钻石 EnumEvent.UPDATE_COIN = "update_coin"; --更新金豆 EnumEvent.UPDATE_CHARM = "update_charm"; --更新魅力值 EnumEvent.UPDATE_DRESS = "update_dress"; --更新装扮 EnumEvent.UPDATE_TASK = "update_task"; --更新任务 EnumEvent.UPDATE_ACHIEVEMENT = "update_achievement"; --更新活动 EnumEvent.UPDATE_MAIL = "update_mail"; --更新邮件 EnumEvent.UPDATE_RANK_REWARD = "update_rank_reward"; --更新排行榜奖励 EnumEvent.UPDATE_ACTIVITY = "update_activity"; --更新活动 EnumEvent.UPDATE_WIN = "update_win"; --更新胜利次数 EnumEvent.UPDATE_LOST = "update_lost"; --更新失败次数 EnumEvent.UPDATE_SCORE = "update_score"; --更新分数 EnumEvent.UPDATE_VIP = "update_vip"; --更新VIP EnumEvent.UPDATE_FIRST_PAY = "update_first_pay"; --更新首充礼包 EnumEvent.UPDATE_FIRST_CYCLE_PAY = "update_first_cycle_pay"; --更新周期首充礼包 EnumEvent.UPDATE_FREE_ITEM = "update_free_item"; --更新免费项信息 EnumEvent.USE_ITEM = "use_item"; --使用道具 EnumEvent.UPDATE_CLOTH = "update_cloth"; --装扮更新 EnumEvent.UPDATE_PET_DATA = "update_pet_data"; --更新宠物 EnumEvent.UPDATE_PET_POS = "update_pet_pos"; --更新宠物位置 EnumEvent.UPDATE_FRIEND_LIST = "update_friend_list"; --更新好友列表 EnumEvent.UPDATE_PET_TEAM = "update_pet_team"; --更新宠物战队 EnumEvent.NICK_CHANGE_SUCCESS = "nick_change_success"; --昵称修改成功 EnumEvent.HEAD_CHANGE_SUCCESS = "head_change_success"; --头像修改成功 EnumEvent.HEAD_FRAME_CHANGE_SUCCESS = "head_frame_change_success"; --头像框修改成功 EnumEvent.ACT_GET_GAME_CNT = "act_get_game_cnt"; EnumEvent.ACT_GET_LOTTERY = "act_get_lottery"; EnumEvent.ACT_MATCH_RANK_RES = "act_match_rank_res"; EnumEvent.CLOSE_ACTIVITY_VIP_VIEW = "close_activity_vip_view"; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | EnumEvent={};EnumEvent.SOCKET_DISCONNECT = "socket_disconnect";EnumEvent.SOCKET_RECONNECT = "socket_reconnect"; EnumEvent.LOGIN_SUCCESS = "login_success";EnumEvent.LOGIN_FAILD = "login_faild"; EnumEvent.UPDATE_ITEMS = "update_items"; --更新道具 EnumEvent.UPDATE_DIAMOND = "update_diamond"; --更新钻石 EnumEvent.UPDATE_COIN = "update_coin"; --更新金豆 EnumEvent.UPDATE_CHARM = "update_charm"; --更新魅力值 EnumEvent.UPDATE_DRESS = "update_dress"; --更新装扮 EnumEvent.UPDATE_TASK = "update_task"; --更新任务 EnumEvent.UPDATE_ACHIEVEMENT = "update_achievement"; --更新活动 EnumEvent.UPDATE_MAIL = "update_mail"; --更新邮件 EnumEvent.UPDATE_RANK_REWARD = "update_rank_reward"; --更新排行榜奖励 EnumEvent.UPDATE_ACTIVITY = "update_activity"; --更新活动 EnumEvent.UPDATE_WIN = "update_win"; --更新胜利次数 EnumEvent.UPDATE_LOST = "update_lost"; --更新失败次数 EnumEvent.UPDATE_SCORE = "update_score"; --更新分数 EnumEvent.UPDATE_VIP = "update_vip"; --更新VIP EnumEvent.UPDATE_FIRST_PAY = "update_first_pay"; --更新首充礼包 EnumEvent.UPDATE_FIRST_CYCLE_PAY = "update_first_cycle_pay"; --更新周期首充礼包 EnumEvent.UPDATE_FREE_ITEM = "update_free_item"; --更新免费项信息 EnumEvent.USE_ITEM = "use_item"; --使用道具 EnumEvent.UPDATE_CLOTH = "update_cloth"; --装扮更新 EnumEvent.UPDATE_PET_DATA = "update_pet_data"; --更新宠物 EnumEvent.UPDATE_PET_POS = "update_pet_pos"; --更新宠物位置 EnumEvent.UPDATE_FRIEND_LIST = "update_friend_list"; --更新好友列表 EnumEvent.UPDATE_PET_TEAM = "update_pet_team"; --更新宠物战队 EnumEvent.NICK_CHANGE_SUCCESS = "nick_change_success"; --昵称修改成功 EnumEvent.HEAD_CHANGE_SUCCESS = "head_change_success"; --头像修改成功 EnumEvent.HEAD_FRAME_CHANGE_SUCCESS = "head_frame_change_success"; --头像框修改成功 EnumEvent.ACT_GET_GAME_CNT = "act_get_game_cnt"; EnumEvent.ACT_GET_LOTTERY = "act_get_lottery"; EnumEvent.ACT_MATCH_RANK_RES = "act_match_rank_res"; EnumEvent.CLOSE_ACTIVITY_VIP_VIEW = "close_activity_vip_view"; EnumEvent.NO_PLAY = "no_play"; --今天不能再玩游戏了 | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -8,17 +8,19 @@ local runningScene = nil; | ... | @@ -8,17 +8,19 @@ local runningScene = nil; |
8 | local lastPopTime = 0; | 8 | local lastPopTime = 0; |
9 | 9 | ||
10 | local function showPopItem() | 10 | local function showPopItem() |
11 | logUI("6666"); | ||
11 | if not isPopping then | 12 | if not isPopping then |
12 | if #queuePopList > 0 then | 13 | logUI("7777= "..#queuePopList); |
14 | if #queuePopList > 0 then | ||
13 | isPopping = true; | 15 | isPopping = true; |
14 | 16 | logUI("11111"); | |
15 | local obj = queuePopList[1]; | 17 | local obj = queuePopList[1]; |
16 | table.remove(queuePopList,1); | 18 | table.remove(queuePopList,1); |
17 | 19 | ||
18 | local PopItem = cc.CSLoader:createNode("ui/PopItem.csb"); | 20 | local PopItem = cc.CSLoader:createNode("ui/PopItem.csb"); |
19 | local rect = PopItem:getBoundingBox(); | 21 | local rect = PopItem:getBoundingBox(); |
20 | PopItem:setPosition(cc.p(display.width/2-rect.width/2,display.height/2-rect.height/2)); | 22 | PopItem:setPosition(cc.p(display.width/2-rect.width/2,display.height/2-rect.height/2)); |
21 | 23 | logUI("2222"); | |
22 | local icon = PopItem:getChildByName("icon"); | 24 | local icon = PopItem:getChildByName("icon"); |
23 | icon:loadTexture("res/icon/"..obj.id..".png"); | 25 | icon:loadTexture("res/icon/"..obj.id..".png"); |
24 | local item_amount = PopItem:getChildByName("item_amount"); | 26 | local item_amount = PopItem:getChildByName("item_amount"); |
... | @@ -26,7 +28,7 @@ local function showPopItem() | ... | @@ -26,7 +28,7 @@ local function showPopItem() |
26 | item_amount:setString(itemInfo.name.."* "..obj.num); | 28 | item_amount:setString(itemInfo.name.."* "..obj.num); |
27 | 29 | ||
28 | runningScene:addChild(PopItem,dialog.ZORDER_POP+1); | 30 | runningScene:addChild(PopItem,dialog.ZORDER_POP+1); |
29 | 31 | logUI("33333"); | |
30 | local function fadeOutBack() | 32 | local function fadeOutBack() |
31 | PopItem:removeSelf(); | 33 | PopItem:removeSelf(); |
32 | 34 | ||
... | @@ -39,18 +41,20 @@ local function showPopItem() | ... | @@ -39,18 +41,20 @@ local function showPopItem() |
39 | local moveBy = cc.MoveBy:create(1, cc.p(0, 200)); | 41 | local moveBy = cc.MoveBy:create(1, cc.p(0, 200)); |
40 | PopItem:runAction(moveBy); | 42 | PopItem:runAction(moveBy); |
41 | PopItem:runAction(cc.Sequence:create(fadeOut,cc.CallFunc:create(fadeOutBack))); | 43 | PopItem:runAction(cc.Sequence:create(fadeOut,cc.CallFunc:create(fadeOutBack))); |
42 | 44 | logUI("4444"); | |
43 | local function nextPopFun() | 45 | local function nextPopFun() |
44 | isPopping = false; | 46 | isPopping = false; |
47 | logUI("0000"); | ||
45 | showPopItem(); | 48 | showPopItem(); |
46 | end | 49 | end |
47 | 50 | logUI("5555"); | |
51 | print("ItemManater showPopItem==================",runningScene); | ||
48 | runningScene:runAction(cc.Sequence:create(cc.DelayTime:create(0.3),cc.CallFunc:create(nextPopFun))); | 52 | runningScene:runAction(cc.Sequence:create(cc.DelayTime:create(0.3),cc.CallFunc:create(nextPopFun))); |
49 | end | 53 | end |
50 | end | 54 | end |
51 | end | 55 | end |
52 | 56 | ||
53 | function ItemManager.addPopItem(ID,num) | 57 | function ItemManager.addPopItem(ID,num) |
54 | if ID == 100004 or ItemManager.lock_pop then | 58 | if ID == 100004 or ItemManager.lock_pop then |
55 | return; | 59 | return; |
56 | end | 60 | end |
... | @@ -61,6 +65,7 @@ function ItemManager.addPopItem(ID,num) | ... | @@ -61,6 +65,7 @@ function ItemManager.addPopItem(ID,num) |
61 | runningScene = cc.Director:getInstance():getRunningScene(); | 65 | runningScene = cc.Director:getInstance():getRunningScene(); |
62 | end | 66 | end |
63 | queuePopList[#queuePopList+1] = obj; | 67 | queuePopList[#queuePopList+1] = obj; |
68 | print("ItemManager runningScene================ ",runningScene); | ||
64 | 69 | ||
65 | -- if ID == 100001 then | 70 | -- if ID == 100001 then |
66 | -- ccs.ArmatureDataManager:getInstance():addArmatureFileInfo(string.format("res/effects/%s/%s.ExportJson","gold","gold")) | 71 | -- ccs.ArmatureDataManager:getInstance():addArmatureFileInfo(string.format("res/effects/%s/%s.ExportJson","gold","gold")) | ... | ... |
... | @@ -55,6 +55,7 @@ UserModel.new_chenghao_list = { }; | ... | @@ -55,6 +55,7 @@ UserModel.new_chenghao_list = { }; |
55 | 55 | ||
56 | UserModel.team_id = 0; | 56 | UserModel.team_id = 0; |
57 | UserModel.pet_team = { }; | 57 | UserModel.pet_team = { }; |
58 | UserModel.single_game_cnt = { }; --每天玩游戏的免费次数 | ||
58 | 59 | ||
59 | local items = { }; | 60 | local items = { }; |
60 | local task_list = { }; | 61 | local task_list = { }; |
... | @@ -410,37 +411,41 @@ end | ... | @@ -410,37 +411,41 @@ end |
410 | -- 连接服务器成功(鉴权并向服务端发送鉴权结果) | 411 | -- 连接服务器成功(鉴权并向服务端发送鉴权结果) |
411 | function UserModel.onConnectSuccess(params) | 412 | function UserModel.onConnectSuccess(params) |
412 | logUI("on connect success"); | 413 | logUI("on connect success"); |
413 | --APK容易崩溃,查找原因中。。。 | 414 | -- APK容易崩溃,查找原因中。。。 |
414 | --已解决,Android中加上了runOnUIThread导致的 | 415 | -- 已解决,Android中加上了runOnUIThread导致的 |
415 | local targetPlatform = cc.Application:getInstance():getTargetPlatform(); | 416 | local targetPlatform = cc.Application:getInstance():getTargetPlatform(); |
416 | if CHANNEL == "shdx" and targetPlatform == cc.PLATFORM_OS_ANDROID then --上海电信鉴权 | 417 | if CHANNEL == "shdx" and targetPlatform == cc.PLATFORM_OS_ANDROID then |
418 | -- 上海电信鉴权 | ||
417 | local function callbackLua(params) | 419 | local function callbackLua(params) |
418 | logUI("鉴权返回数据:"..params); | 420 | logUI("鉴权返回数据:" .. params); |
419 | local arr = StringUtil.split(params,","); | 421 | local arr = StringUtil.split(params, ","); |
420 | if arr[1] and arr[1] == "success" and arr[2] then --支付成功 | 422 | if arr[1] and arr[1] == "success" and arr[2] then |
423 | -- 支付成功 | ||
421 | logUI("on connect success callbackLua"); | 424 | logUI("on connect success callbackLua"); |
422 | MEMBER_TYPE = tonumber(arr[2]); --初始化会员全局变量 | 425 | MEMBER_TYPE = tonumber(arr[2]); |
426 | -- 初始化会员全局变量 | ||
423 | SocketClient:getInstance():send("gateway_msg.login_msg", | 427 | SocketClient:getInstance():send("gateway_msg.login_msg", |
424 | { | 428 | { |
425 | platform = PLATFORM, | 429 | platform = PLATFORM, |
426 | account = account, | 430 | account = account, |
427 | session = session, | 431 | session = session, |
428 | shanghai_dianxin_pay_id=tonumber(arr[2]), | 432 | shanghai_dianxin_pay_id = tonumber(arr[2]), |
429 | } ); | 433 | } ); |
430 | logUI("从服务端返回会员类型:" .. arr[2]); | 434 | logUI("从服务端返回会员类型:" .. arr[2]); |
431 | else | 435 | else |
432 | logUI("鉴权失败!"); | 436 | logUI("鉴权失败!"); |
433 | SocketClient:getInstance():send("gateway_msg.login_msg", | 437 | SocketClient:getInstance():send("gateway_msg.login_msg", |
434 | { | 438 | { |
435 | platform = PLATFORM, | 439 | platform = PLATFORM, |
436 | account = account, | 440 | account = account, |
437 | session = session, | 441 | session = session, |
438 | --shanghai_dianxin_pay_id=tonumber(arr[2]), | 442 | -- shanghai_dianxin_pay_id=tonumber(arr[2]), |
439 | } ); | 443 | } ); |
440 | end | 444 | end |
441 | end | 445 | end |
442 | 446 | ||
443 | local luaj = require "cocos.cocos2d.luaj"; --引入luaj | 447 | local luaj = require "cocos.cocos2d.luaj"; |
448 | -- 引入luaj | ||
444 | local className = "org/cocos2dx/lua/AppActivity"; | 449 | local className = "org/cocos2dx/lua/AppActivity"; |
445 | local args = { callbackLua }; | 450 | local args = { callbackLua }; |
446 | local sigs = "(I)V"; | 451 | local sigs = "(I)V"; |
... | @@ -450,32 +455,35 @@ function UserModel.onConnectSuccess(params) | ... | @@ -450,32 +455,35 @@ function UserModel.onConnectSuccess(params) |
450 | -- luaj.callStaticMethod() 会返回两个值 | 455 | -- luaj.callStaticMethod() 会返回两个值 |
451 | -- 当成功时,第一个值为 true,第二个值是 Java 方法的返回值(如果有) | 456 | -- 当成功时,第一个值为 true,第二个值是 Java 方法的返回值(如果有) |
452 | -- 当失败时,第一个值为 false,第二个值是错误代码 | 457 | -- 当失败时,第一个值为 false,第二个值是错误代码 |
453 | --local ok, ret = luaj.callStaticMethod(className, "sendPayInfo", args, sigs); | 458 | -- local ok, ret = luaj.callStaticMethod(className, "sendPayInfo", args, sigs); |
454 | logUI("callStaticMethod----->authPermission"); | 459 | logUI("callStaticMethod----->authPermission"); |
455 | local ok, ret = luaj.callStaticMethod(className, "authPermission", args, sigs); | 460 | local ok, ret = luaj.callStaticMethod(className, "authPermission", args, sigs); |
456 | if not ok then | 461 | if not ok then |
457 | print("sendPayInfo error:" .. ret); | 462 | print("sendPayInfo error:" .. ret); |
458 | end | 463 | end |
459 | elseif CHANNEL == "cucc" and targetPlatform == cc.PLATFORM_OS_ANDROID then --天津联通鉴权 | 464 | elseif CHANNEL == "cucc" and targetPlatform == cc.PLATFORM_OS_ANDROID then |
465 | -- 天津联通鉴权 | ||
460 | local function callbackLua(params) | 466 | local function callbackLua(params) |
461 | logUI("天津鉴权返回数据: "..params); | 467 | logUI("天津鉴权返回数据: " .. params); |
462 | if params=="success" then | 468 | if params == "success" then |
463 | MEMBER_TYPE = 1; --初始化会员全局变量 | 469 | MEMBER_TYPE = 1; |
464 | else --还不是会员,鉴权返回的productid保存再AppActivity中 | 470 | -- 初始化会员全局变量 |
465 | 471 | else | |
472 | -- 还不是会员,鉴权返回的productid保存再AppActivity中 | ||
473 | |||
466 | end | 474 | end |
467 | end | 475 | end |
468 | SocketClient:getInstance():send("gateway_msg.login_msg", | 476 | SocketClient:getInstance():send("gateway_msg.login_msg", |
469 | { | 477 | { |
470 | platform = PLATFORM, | 478 | platform = PLATFORM, |
471 | account = account, | 479 | account = account, |
472 | session = session, | 480 | session = session, |
473 | --shanghai_dianxin_pay_id=tonumber(arr[2]), | 481 | -- shanghai_dianxin_pay_id=tonumber(arr[2]), |
474 | } ); | 482 | } ); |
475 | 483 | ||
476 | local vipList = ShopInfo.getVipList(); | 484 | local vipList = ShopInfo.getVipList(); |
477 | --续包月这里应该是server和content,但是配置表配反了 | 485 | -- 续包月这里应该是server和content,但是配置表配反了 |
478 | DeviceUtil.authPermissionForPruductId(vipList[3].server .. ",1,"..vipList[3].product, callbackLua); | 486 | DeviceUtil.authPermissionForPruductId(vipList[3].server .. ",1," .. vipList[3].product, callbackLua); |
479 | else | 487 | else |
480 | SocketClient:getInstance():send("gateway_msg.login_msg", | 488 | SocketClient:getInstance():send("gateway_msg.login_msg", |
481 | { | 489 | { |
... | @@ -588,6 +596,11 @@ function UserModel.onLoginSuccessFun(params) | ... | @@ -588,6 +596,11 @@ function UserModel.onLoginSuccessFun(params) |
588 | if vipList[3] and vipList[3].id == v.key then | 596 | if vipList[3] and vipList[3].id == v.key then |
589 | is_vip_lianxu = true; | 597 | is_vip_lianxu = true; |
590 | end | 598 | end |
599 | if CHANNEL == "shdx" then | ||
600 | if vipList[4] and vipList[4].id == v.key then | ||
601 | is_vip_lianxu = true; | ||
602 | end | ||
603 | end | ||
591 | end | 604 | end |
592 | 605 | ||
593 | -- UserModel.pay_day = {{key=201,val1=0,val2=0,val3=1543596600}}; | 606 | -- UserModel.pay_day = {{key=201,val1=0,val2=0,val3=1543596600}}; |
... | @@ -596,6 +609,14 @@ function UserModel.onLoginSuccessFun(params) | ... | @@ -596,6 +609,14 @@ function UserModel.onLoginSuccessFun(params) |
596 | return aa.val3 < bb.val3; | 609 | return aa.val3 < bb.val3; |
597 | end ); | 610 | end ); |
598 | 611 | ||
612 | --小游戏免费使用过的次数 key:小游戏id,v1:次数 | ||
613 | |||
614 | logD("free num===================>"..#params.data.single_game_cnt); | ||
615 | for i, v in ipairs(params.data.single_game_cnt) do | ||
616 | logD("free num-------------------->"..v.val1); | ||
617 | UserModel.single_game_cnt[i] = { key = v.key, val1 = v.val1, val2 = v.val2, val3 = v.val3 }; | ||
618 | end | ||
619 | |||
599 | UserModel.first_pay_id = TableUtil.copyTab(params.data.first_pay_id); | 620 | UserModel.first_pay_id = TableUtil.copyTab(params.data.first_pay_id); |
600 | UserModel.first_pay_daily_id = TableUtil.copyTab(params.data.pay_daily_id); | 621 | UserModel.first_pay_daily_id = TableUtil.copyTab(params.data.pay_daily_id); |
601 | UserModel.first_cycle_pay_id = TableUtil.copyTab(params.data.first_cycle_pay_id); | 622 | UserModel.first_cycle_pay_id = TableUtil.copyTab(params.data.first_cycle_pay_id); |
... | @@ -633,10 +654,10 @@ function UserModel.onLoginSuccessFun(params) | ... | @@ -633,10 +654,10 @@ function UserModel.onLoginSuccessFun(params) |
633 | UserModel.furnitures[i] = { id = v.id, x = v.x, y = v.y }; | 654 | UserModel.furnitures[i] = { id = v.id, x = v.x, y = v.y }; |
634 | end | 655 | end |
635 | 656 | ||
636 | UserModel.free_game_id = { }; | 657 | --[[UserModel.free_game_id = { }; |
637 | for i, v in ipairs(params.data.free_game_id) do | 658 | for i, v in ipairs(params.data.free_game_id) do |
638 | UserModel.free_game_id[#UserModel.free_game_id + 1] = v; | 659 | UserModel.free_game_id[#UserModel.free_game_id + 1] = v; |
639 | end | 660 | end--]] |
640 | 661 | ||
641 | UserModel.vip_pay_reward = { }; | 662 | UserModel.vip_pay_reward = { }; |
642 | for i, v in ipairs(params.data.vip_pay_reward) do | 663 | for i, v in ipairs(params.data.vip_pay_reward) do |
... | @@ -686,11 +707,18 @@ function UserModel.onLoginSuccessFun(params) | ... | @@ -686,11 +707,18 @@ function UserModel.onLoginSuccessFun(params) |
686 | table.remove(UserModel.pay_day, i); | 707 | table.remove(UserModel.pay_day, i); |
687 | break; | 708 | break; |
688 | end | 709 | end |
710 | if CHANNEL == "shdx" then | ||
711 | if vipList[4] and vipList[4].id == v.key then | ||
712 | table.remove(UserModel.pay_day, i); | ||
713 | break; | ||
714 | end | ||
715 | end | ||
689 | end | 716 | end |
690 | end | 717 | end |
691 | end | 718 | end |
692 | 719 | ||
693 | if is_vip_lianxu and CHANNEL~="shdx" then --上海电信已经鉴过权,所以这里不要再次鉴权了 | 720 | if is_vip_lianxu and CHANNEL ~= "shdx" then |
721 | -- 上海电信已经鉴过权,所以这里不要再次鉴权了 | ||
694 | DeviceUtil.authPermission(vipList[3].product .. ",2", authCallbackLua); | 722 | DeviceUtil.authPermission(vipList[3].product .. ",2", authCallbackLua); |
695 | end | 723 | end |
696 | 724 | ||
... | @@ -937,6 +965,17 @@ function UserModel.getVipByID(id) | ... | @@ -937,6 +965,17 @@ function UserModel.getVipByID(id) |
937 | return info; | 965 | return info; |
938 | end | 966 | end |
939 | 967 | ||
968 | function UserModel.getSingleGameById(id) | ||
969 | local info = { key = id, val1 = 0, val2 = 0, val3 = 0 }; | ||
970 | for i, v in ipairs(UserModel.single_game_cnt) do | ||
971 | if v.key == id then | ||
972 | info = v; | ||
973 | break; | ||
974 | end | ||
975 | end | ||
976 | return info; | ||
977 | end | ||
978 | |||
940 | -- 获取最后一次VIP充值时间 | 979 | -- 获取最后一次VIP充值时间 |
941 | function UserModel.getLastVipPayTime() | 980 | function UserModel.getLastVipPayTime() |
942 | local info = { key = 0, val1 = 0, val2 = 0, val3 = 0 }; | 981 | local info = { key = 0, val1 = 0, val2 = 0, val3 = 0 }; |
... | @@ -1004,6 +1043,23 @@ function UserModel.getLeftVipDay() | ... | @@ -1004,6 +1043,23 @@ function UserModel.getLeftVipDay() |
1004 | end | 1043 | end |
1005 | end | 1044 | end |
1006 | 1045 | ||
1046 | --302 | ||
1047 | if CHANNEL=="shdx" then | ||
1048 | local vipInfo4 = vipList[4]; | ||
1049 | if vipInfo4 then | ||
1050 | local data4 = UserModel.getVipByID(vipInfo4.id); | ||
1051 | local day4 = 0; | ||
1052 | if data4 then | ||
1053 | if data4.val1 > 0 or data4.val2 > 0 or data4.val3 > 0 then | ||
1054 | day4 = 9999; | ||
1055 | end | ||
1056 | |||
1057 | left_day_num = math.max(left_day_num, day4); | ||
1058 | -- 理论上这里是续包月,应该通过鉴权判断是否是VIP | ||
1059 | end | ||
1060 | end | ||
1061 | end | ||
1062 | |||
1007 | if CHANNEL == "gzdt" then | 1063 | if CHANNEL == "gzdt" then |
1008 | -- 大唐版本所有的用户都是VIP | 1064 | -- 大唐版本所有的用户都是VIP |
1009 | left_day_num = 100; | 1065 | left_day_num = 100; | ... | ... |
... | @@ -157,15 +157,18 @@ function GameStartView:onStart() | ... | @@ -157,15 +157,18 @@ function GameStartView:onStart() |
157 | end | 157 | end |
158 | self:close(); | 158 | self:close(); |
159 | end | 159 | end |
160 | 160 | GAME_ID=EnumGame.BIRD; | |
161 | if IS_XHX then | 161 | if IS_XHX then |
162 | local game_info = SingleGameInfo.get_game_info(EnumGame.BIRD); | 162 | local game_info = SingleGameInfo.get_game_info(EnumGame.BIRD); |
163 | print("打开小游戏:",game_info.id); | 163 | print("打开小游戏:",game_info.id); |
164 | if game_info.needVip == 1 and UserModel.getLeftVipDay() == 0 and not TableUtil.IsInTable(UserModel.free_game_id,game_info.id) then | 164 | if UserModel.getLeftVipDay() == 0 then |
165 | print("小游戏购买界面"); | 165 | print("小游戏购买界面"); |
166 | local my_diamond_num = UserModel.getDiamond(); | 166 | local free_every_day_num=UserModel.getSingleGameById(game_info.id); --今天的免费次数是否用完 |
167 | if my_diamond_num >= game_info.diamond then | 167 | if free_every_day_num.val1==0 then |
168 | Alert.showTwo("玩这游戏需要扣除"..game_info.diamond.."个钻石,是否继续?",paySuccessFun); | 168 | logUI("每天免费玩一次"); |
169 | local info = { key = game_info.id, val1 = 1, val2 = 1, val3 = 1 }; | ||
170 | UserModel.single_game_cnt[#UserModel.single_game_cnt + 1] = info; | ||
171 | paySuccessFun(); | ||
169 | else | 172 | else |
170 | if CHANNEL=="shdx" then | 173 | if CHANNEL=="shdx" then |
171 | local reciever = require("app.views.view.XyxPayView_shdx"):show(game_info.id,paySuccessFun); | 174 | local reciever = require("app.views.view.XyxPayView_shdx"):show(game_info.id,paySuccessFun); | ... | ... |
... | @@ -111,14 +111,17 @@ function GameStartView:onStart() | ... | @@ -111,14 +111,17 @@ function GameStartView:onStart() |
111 | SoundManager.playEffect("res/ui/cake/star.ogg"); | 111 | SoundManager.playEffect("res/ui/cake/star.ogg"); |
112 | self:close(); | 112 | self:close(); |
113 | end | 113 | end |
114 | 114 | GAME_ID=EnumGame.CAKE; | |
115 | if IS_XHX then | 115 | if IS_XHX then |
116 | local game_info = SingleGameInfo.get_game_info(EnumGame.CAKE); | 116 | local game_info = SingleGameInfo.get_game_info(EnumGame.CAKE); |
117 | print("打开小游戏:",game_info.id); | 117 | print("打开小游戏:",game_info.id); |
118 | if game_info.needVip == 1 and UserModel.getLeftVipDay() == 0 and not TableUtil.IsInTable(UserModel.free_game_id,game_info.id) then | 118 | if UserModel.getLeftVipDay() == 0 then |
119 | local my_diamond_num = UserModel.getDiamond(); | 119 | local free_every_day_num=UserModel.getSingleGameById(game_info.id); --今天的免费次数是否用完 |
120 | if my_diamond_num >= game_info.diamond then | 120 | if free_every_day_num.val1==0 then |
121 | Alert.showTwo("玩这游戏需要扣除"..game_info.diamond.."个钻石,是否继续?",paySuccessFun); | 121 | logUI("每天免费玩一次"); |
122 | local info = { key = game_info.id, val1 = 1, val2 = 1, val3 = 1 }; | ||
123 | UserModel.single_game_cnt[#UserModel.single_game_cnt + 1] = info; | ||
124 | paySuccessFun(); | ||
122 | else | 125 | else |
123 | if CHANNEL=="shdx" then | 126 | if CHANNEL=="shdx" then |
124 | local reciever = require("app.views.view.XyxPayView_shdx"):show(game_info.id,paySuccessFun); | 127 | local reciever = require("app.views.view.XyxPayView_shdx"):show(game_info.id,paySuccessFun); | ... | ... |
... | @@ -110,15 +110,18 @@ function GameStartView:onStart() | ... | @@ -110,15 +110,18 @@ function GameStartView:onStart() |
110 | end | 110 | end |
111 | self:close(); | 111 | self:close(); |
112 | end | 112 | end |
113 | 113 | GAME_ID=EnumGame.CANDY; | |
114 | if IS_XHX then | 114 | if IS_XHX then |
115 | local game_info = SingleGameInfo.get_game_info(EnumGame.CANDY); | 115 | local game_info = SingleGameInfo.get_game_info(EnumGame.CANDY); |
116 | print("打开小游戏:",game_info.id); | 116 | print("打开小游戏:",game_info.id); |
117 | if game_info.needVip == 1 and UserModel.getLeftVipDay() == 0 and not TableUtil.IsInTable(UserModel.free_game_id,game_info.id) then | 117 | if UserModel.getLeftVipDay() == 0 then |
118 | print("小游戏购买界面"); | 118 | print("小游戏购买界面"); |
119 | local my_diamond_num = UserModel.getDiamond(); | 119 | local free_every_day_num=UserModel.getSingleGameById(game_info.id); --今天的免费次数是否用完 |
120 | if my_diamond_num >= game_info.diamond then | 120 | if free_every_day_num.val1==0 then |
121 | Alert.showTwo("玩这游戏需要扣除"..game_info.diamond.."个钻石,是否继续?",paySuccessFun); | 121 | logUI("每天免费玩一次"); |
122 | local info = { key = game_info.id, val1 = 1, val2 = 1, val3 = 1 }; | ||
123 | UserModel.single_game_cnt[#UserModel.single_game_cnt + 1] = info; | ||
124 | paySuccessFun(); | ||
122 | else | 125 | else |
123 | if CHANNEL=="shdx" then | 126 | if CHANNEL=="shdx" then |
124 | local reciever = require("app.views.view.XyxPayView_shdx"):show(game_info.id,paySuccessFun); | 127 | local reciever = require("app.views.view.XyxPayView_shdx"):show(game_info.id,paySuccessFun); | ... | ... |
... | @@ -63,6 +63,7 @@ function GameOverView:onAgain() | ... | @@ -63,6 +63,7 @@ function GameOverView:onAgain() |
63 | end | 63 | end |
64 | 64 | ||
65 | if IS_XHX then | 65 | if IS_XHX then |
66 | |||
66 | paySuccessFun(); | 67 | paySuccessFun(); |
67 | elseif CHANNEL == "shdx" and game_data.get_game_play_cnt() > 0 then | 68 | elseif CHANNEL == "shdx" and game_data.get_game_play_cnt() > 0 then |
68 | local reciever = require("app.views.fanpai.GamePayView"):show("",paySuccessFun); | 69 | local reciever = require("app.views.fanpai.GamePayView"):show("",paySuccessFun); | ... | ... |
... | @@ -146,15 +146,18 @@ function GameStartView:onStart() | ... | @@ -146,15 +146,18 @@ function GameStartView:onStart() |
146 | end | 146 | end |
147 | self:close(); | 147 | self:close(); |
148 | end | 148 | end |
149 | 149 | GAME_ID=EnumGame.FANPAI; | |
150 | if IS_XHX then | 150 | if IS_XHX then |
151 | local game_info = SingleGameInfo.get_game_info(EnumGame.FANPAI); | 151 | local game_info = SingleGameInfo.get_game_info(EnumGame.FANPAI); |
152 | print("打开小游戏:",game_info.id); | 152 | print("打开小游戏:",game_info.id); |
153 | if game_info.needVip == 1 and UserModel.getLeftVipDay() == 0 and not TableUtil.IsInTable(UserModel.free_game_id,game_info.id) then | 153 | if UserModel.getLeftVipDay() == 0 then |
154 | print("小游戏购买界面"); | 154 | print("小游戏购买界面"); |
155 | local my_diamond_num = UserModel.getDiamond(); | 155 | local free_every_day_num=UserModel.getSingleGameById(game_info.id); --今天的免费次数是否用完 |
156 | if my_diamond_num >= game_info.diamond then | 156 | if free_every_day_num.val1==0 then |
157 | Alert.showTwo("玩这游戏需要扣除"..game_info.diamond.."个钻石,是否继续?",paySuccessFun); | 157 | logUI("每天免费玩一次"); |
158 | local info = { key = game_info.id, val1 = 1, val2 = 1, val3 = 1 }; | ||
159 | UserModel.single_game_cnt[#UserModel.single_game_cnt + 1] = info; | ||
160 | paySuccessFun(); | ||
158 | else | 161 | else |
159 | if CHANNEL=="shdx" then | 162 | if CHANNEL=="shdx" then |
160 | local reciever = require("app.views.view.XyxPayView_shdx"):show(game_info.id,paySuccessFun); | 163 | local reciever = require("app.views.view.XyxPayView_shdx"):show(game_info.id,paySuccessFun); | ... | ... |
... | @@ -116,15 +116,18 @@ function GameStartView:onStart() | ... | @@ -116,15 +116,18 @@ function GameStartView:onStart() |
116 | end | 116 | end |
117 | self:close(); | 117 | self:close(); |
118 | end | 118 | end |
119 | 119 | GAME_ID=EnumGame.FEIYANZOUBI; | |
120 | if IS_XHX then | 120 | if IS_XHX then |
121 | local game_info = SingleGameInfo.get_game_info(EnumGame.FEIYANZOUBI); | 121 | local game_info = SingleGameInfo.get_game_info(EnumGame.FEIYANZOUBI); |
122 | print("打开小游戏:",game_info.id); | 122 | print("打开小游戏:",game_info.id); |
123 | if game_info.needVip == 1 and UserModel.getLeftVipDay() == 0 and not TableUtil.IsInTable(UserModel.free_game_id,game_info.id) then | 123 | if UserModel.getLeftVipDay() == 0 then |
124 | print("小游戏购买界面"); | 124 | print("小游戏购买界面"); |
125 | local my_diamond_num = UserModel.getDiamond(); | 125 | local free_every_day_num=UserModel.getSingleGameById(game_info.id); --今天的免费次数是否用完 |
126 | if my_diamond_num >= game_info.diamond then | 126 | if free_every_day_num.val1==0 then |
127 | Alert.showTwo("玩这游戏需要扣除"..game_info.diamond.."个钻石,是否继续?",paySuccessFun); | 127 | logUI("每天免费玩一次"); |
128 | local info = { key = game_info.id, val1 = 1, val2 = 1, val3 = 1 }; | ||
129 | UserModel.single_game_cnt[#UserModel.single_game_cnt + 1] = info; | ||
130 | paySuccessFun(); | ||
128 | else | 131 | else |
129 | if CHANNEL=="shdx" then | 132 | if CHANNEL=="shdx" then |
130 | local reciever = require("app.views.view.XyxPayView_shdx"):show(game_info.id,paySuccessFun); | 133 | local reciever = require("app.views.view.XyxPayView_shdx"):show(game_info.id,paySuccessFun); | ... | ... |
... | @@ -104,15 +104,18 @@ function GameStartView:onStart() | ... | @@ -104,15 +104,18 @@ function GameStartView:onStart() |
104 | end | 104 | end |
105 | self:close(); | 105 | self:close(); |
106 | end | 106 | end |
107 | 107 | GAME_ID=EnumGame.GUESS; | |
108 | if IS_XHX then | 108 | if IS_XHX then |
109 | local game_info = SingleGameInfo.get_game_info(EnumGame.GUESS); | 109 | local game_info = SingleGameInfo.get_game_info(EnumGame.GUESS); |
110 | print("打开小游戏:",game_info.id); | 110 | print("打开小游戏:",game_info.id); |
111 | if game_info.needVip == 1 and UserModel.getLeftVipDay() == 0 and not TableUtil.IsInTable(UserModel.free_game_id,game_info.id) then | 111 | if UserModel.getLeftVipDay() == 0 then |
112 | print("小游戏购买界面"); | 112 | print("小游戏购买界面"); |
113 | local my_diamond_num = UserModel.getDiamond(); | 113 | local free_every_day_num=UserModel.getSingleGameById(game_info.id); --今天的免费次数是否用完 |
114 | if my_diamond_num >= game_info.diamond then | 114 | if free_every_day_num.val1==0 then |
115 | Alert.showTwo("玩这游戏需要扣除"..game_info.diamond.."个钻石,是否继续?",paySuccessFun); | 115 | logUI("每天免费玩一次"); |
116 | local info = { key = game_info.id, val1 = 1, val2 = 1, val3 = 1 }; | ||
117 | UserModel.single_game_cnt[#UserModel.single_game_cnt + 1] = info; | ||
118 | paySuccessFun(); | ||
116 | else | 119 | else |
117 | if CHANNEL=="shdx" then | 120 | if CHANNEL=="shdx" then |
118 | local reciever = require("app.views.view.XyxPayView_shdx"):show(game_info.id,paySuccessFun); | 121 | local reciever = require("app.views.view.XyxPayView_shdx"):show(game_info.id,paySuccessFun); | ... | ... |
... | @@ -104,15 +104,18 @@ function GameStartView:onStart() | ... | @@ -104,15 +104,18 @@ function GameStartView:onStart() |
104 | end | 104 | end |
105 | self:close(); | 105 | self:close(); |
106 | end | 106 | end |
107 | 107 | GAME_ID=EnumGame.GUESS_COLOR; | |
108 | if IS_XHX then | 108 | if IS_XHX then |
109 | local game_info = SingleGameInfo.get_game_info(EnumGame.GUESS_COLOR); | 109 | local game_info = SingleGameInfo.get_game_info(EnumGame.GUESS_COLOR); |
110 | print("打开小游戏:",game_info.id); | 110 | print("打开小游戏:",game_info.id); |
111 | if game_info.needVip == 1 and UserModel.getLeftVipDay() == 0 and not TableUtil.IsInTable(UserModel.free_game_id,game_info.id) then | 111 | if UserModel.getLeftVipDay() == 0 then |
112 | print("小游戏购买界面"); | 112 | print("小游戏购买界面"); |
113 | local my_diamond_num = UserModel.getDiamond(); | 113 | local free_every_day_num=UserModel.getSingleGameById(game_info.id); --今天的免费次数是否用完 |
114 | if my_diamond_num >= game_info.diamond then | 114 | if free_every_day_num.val1==0 then |
115 | Alert.showTwo("玩这游戏需要扣除"..game_info.diamond.."个钻石,是否继续?",paySuccessFun); | 115 | logUI("每天免费玩一次"); |
116 | local info = { key = game_info.id, val1 = 1, val2 = 1, val3 = 1 }; | ||
117 | UserModel.single_game_cnt[#UserModel.single_game_cnt + 1] = info; | ||
118 | paySuccessFun(); | ||
116 | else | 119 | else |
117 | if CHANNEL=="shdx" then | 120 | if CHANNEL=="shdx" then |
118 | local reciever = require("app.views.view.XyxPayView_shdx"):show(game_info.id,paySuccessFun); | 121 | local reciever = require("app.views.view.XyxPayView_shdx"):show(game_info.id,paySuccessFun); | ... | ... |
... | @@ -156,15 +156,18 @@ function GameStartView:onStart() | ... | @@ -156,15 +156,18 @@ function GameStartView:onStart() |
156 | end | 156 | end |
157 | self:close(); | 157 | self:close(); |
158 | end | 158 | end |
159 | 159 | GAME_ID=EnumGame.HAIDAO; | |
160 | if IS_XHX then | 160 | if IS_XHX then |
161 | local game_info = SingleGameInfo.get_game_info(EnumGame.HAIDAO); | 161 | local game_info = SingleGameInfo.get_game_info(EnumGame.HAIDAO); |
162 | print("打开小游戏:",game_info.id); | 162 | print("打开小游戏:",game_info.id); |
163 | if game_info.needVip == 1 and UserModel.getLeftVipDay() == 0 and not TableUtil.IsInTable(UserModel.free_game_id,game_info.id) then | 163 | if UserModel.getLeftVipDay() == 0 then |
164 | print("小游戏购买界面"); | 164 | print("小游戏购买界面"); |
165 | local my_diamond_num = UserModel.getDiamond(); | 165 | local free_every_day_num=UserModel.getSingleGameById(game_info.id); --今天的免费次数是否用完 |
166 | if my_diamond_num >= game_info.diamond then | 166 | if free_every_day_num.val1==0 then |
167 | Alert.showTwo("玩这游戏需要扣除"..game_info.diamond.."个钻石,是否继续?",paySuccessFun); | 167 | logUI("每天免费玩一次"); |
168 | local info = { key = game_info.id, val1 = 1, val2 = 1, val3 = 1 }; | ||
169 | UserModel.single_game_cnt[#UserModel.single_game_cnt + 1] = info; | ||
170 | paySuccessFun(); | ||
168 | else | 171 | else |
169 | if CHANNEL=="shdx" then | 172 | if CHANNEL=="shdx" then |
170 | local reciever = require("app.views.view.XyxPayView_shdx"):show(game_info.id,paySuccessFun); | 173 | local reciever = require("app.views.view.XyxPayView_shdx"):show(game_info.id,paySuccessFun); | ... | ... |
... | @@ -157,15 +157,18 @@ function GameStartView:onStart() | ... | @@ -157,15 +157,18 @@ function GameStartView:onStart() |
157 | end | 157 | end |
158 | self:close(); | 158 | self:close(); |
159 | end | 159 | end |
160 | 160 | GAME_ID=EnumGame.RABBIT; | |
161 | if IS_XHX then | 161 | if IS_XHX then |
162 | local game_info = SingleGameInfo.get_game_info(EnumGame.RABBIT); | 162 | local game_info = SingleGameInfo.get_game_info(EnumGame.RABBIT); |
163 | print("打开小游戏:",game_info.id); | 163 | print("打开小游戏:",game_info.id); |
164 | if game_info.needVip == 1 and UserModel.getLeftVipDay() == 0 and not TableUtil.IsInTable(UserModel.free_game_id,game_info.id) then | 164 | if UserModel.getLeftVipDay() == 0 then |
165 | print("小游戏购买界面"); | 165 | print("小游戏购买界面"); |
166 | local my_diamond_num = UserModel.getDiamond(); | 166 | local free_every_day_num=UserModel.getSingleGameById(game_info.id); --今天的免费次数是否用完 |
167 | if my_diamond_num >= game_info.diamond then | 167 | if free_every_day_num.val1==0 then |
168 | Alert.showTwo("玩这游戏需要扣除"..game_info.diamond.."个钻石,是否继续?",paySuccessFun); | 168 | logUI("每天免费玩一次"); |
169 | local info = { key = game_info.id, val1 = 1, val2 = 1, val3 = 1 }; | ||
170 | UserModel.single_game_cnt[#UserModel.single_game_cnt + 1] = info; | ||
171 | paySuccessFun(); | ||
169 | else | 172 | else |
170 | if CHANNEL=="shdx" then | 173 | if CHANNEL=="shdx" then |
171 | local reciever = require("app.views.view.XyxPayView_shdx"):show(game_info.id,paySuccessFun); | 174 | local reciever = require("app.views.view.XyxPayView_shdx"):show(game_info.id,paySuccessFun); | ... | ... |
... | @@ -198,6 +198,11 @@ function MainScene:onCreate(params) | ... | @@ -198,6 +198,11 @@ function MainScene:onCreate(params) |
198 | cmsg.on("gateway_msg.sys_notice_msg_res", self.noticeCallbackFun); | 198 | cmsg.on("gateway_msg.sys_notice_msg_res", self.noticeCallbackFun); |
199 | self.onSignResFun = handler(self, self.onSignRes); | 199 | self.onSignResFun = handler(self, self.onSignRes); |
200 | cmsg.on("gateway_msg.sign_msg_res", self.onSignResFun); | 200 | cmsg.on("gateway_msg.sign_msg_res", self.onSignResFun); |
201 | |||
202 | --读取上海电信的优惠订购活动表 | ||
203 | if CHANNEL=="shdx" then | ||
204 | self:readCdnConfig(); | ||
205 | end | ||
201 | end | 206 | end |
202 | 207 | ||
203 | MainScene.notice_list = { }; | 208 | MainScene.notice_list = { }; |
... | @@ -770,4 +775,62 @@ function MainScene:updateSelectedState(near_node, isBounce, is_show_highlight) | ... | @@ -770,4 +775,62 @@ function MainScene:updateSelectedState(near_node, isBounce, is_show_highlight) |
770 | MainScene.super.updateSelectedState(self, near_node, isBounce, is_show_highlight); | 775 | MainScene.super.updateSelectedState(self, near_node, isBounce, is_show_highlight); |
771 | end | 776 | end |
772 | 777 | ||
778 | |||
779 | --读取cdn活动配置表 | ||
780 | function MainScene:readCdnConfig() | ||
781 | local CDN_ACTIVITY_SHDX_URL = ConfigInfo.getConfigInfo("cdn_activity_shdx_url") or ""; --电信活动时间 | ||
782 | if CDN_ACTIVITY_SHDX_URL and CDN_ACTIVITY_SHDX_URL ~= "" then | ||
783 | HttpRequest:get(CDN_ACTIVITY_SHDX_URL,nil, handler(self,self.urlConnectionCDNSuccess),handler(self,self.urlConnectionCDNFaild),0) | ||
784 | end | ||
785 | end | ||
786 | |||
787 | function MainScene:urlConnectionCDNSuccess(params) | ||
788 | --logUI("HttpURLConnection配置表返回:"..params); | ||
789 | local start_time = ""; | ||
790 | local end_time = ""; | ||
791 | local function readLineFun(lineStr) | ||
792 | local contents = StringUtil.split(lineStr,';'); | ||
793 | --logUI("读取contents= "..contents[1]); | ||
794 | if contents[1] == "activity_start_time" then | ||
795 | start_time = contents[2]; | ||
796 | elseif contents[1] == "activity_end_time" then | ||
797 | end_time = contents[2]; | ||
798 | end | ||
799 | end | ||
800 | |||
801 | local index = 1; | ||
802 | local function readLine(str) | ||
803 | local a,b = string.find(str,"\r\n"); | ||
804 | |||
805 | if a then | ||
806 | local lineStr = string.sub(str,1,a-1); | ||
807 | if index > 1 then | ||
808 | readLineFun(lineStr); | ||
809 | end | ||
810 | index = index + 1; | ||
811 | str = string.sub(str,b+1); | ||
812 | readLine(str); | ||
813 | else | ||
814 | readLineFun(str); | ||
815 | end | ||
816 | end | ||
817 | readLine(params); | ||
818 | |||
819 | local date=os.date("%Y-%m-%d %H:%M:%S"); --当前时间 | ||
820 | if self:get_timestamp(date)-self:get_timestamp(start_time)>0 and self:get_timestamp(date)-self:get_timestamp(end_time)<0 then | ||
821 | logUI("上海电信活动开始了"); | ||
822 | ACTIVITY_SHDX=1; | ||
823 | end | ||
824 | end | ||
825 | |||
826 | function MainScene:urlConnectionCDNFaild() | ||
827 | print("读取CDN服务器配置失败!"); | ||
828 | end | ||
829 | |||
830 | function MainScene:get_timestamp(str_date) | ||
831 | local pattern = "(%d+)-(%d+)-(%d+) (%d+):(%d+):(%d+)"; | ||
832 | local year, month, day, hour, minute, seconds = str_date:match(pattern); | ||
833 | return os.time({year = year, month = month, day = day, hour = hour, min = minute, sec = seconds}); | ||
834 | end | ||
835 | |||
773 | return MainScene | 836 | return MainScene |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -130,14 +130,18 @@ function GameStartView:onStart() | ... | @@ -130,14 +130,18 @@ function GameStartView:onStart() |
130 | self:close(); | 130 | self:close(); |
131 | end | 131 | end |
132 | 132 | ||
133 | GAME_ID=EnumGame.SHUYISHU; | ||
133 | if IS_XHX then | 134 | if IS_XHX then |
134 | local game_info = SingleGameInfo.get_game_info(EnumGame.SHUYISHU); | 135 | local game_info = SingleGameInfo.get_game_info(EnumGame.SHUYISHU); |
135 | print("打开小游戏:",game_info.id); | 136 | print("打开小游戏:",game_info.id); |
136 | if game_info.needVip == 1 and UserModel.getLeftVipDay() == 0 and not TableUtil.IsInTable(UserModel.free_game_id,game_info.id) then | 137 | if UserModel.getLeftVipDay() == 0 then |
137 | print("小游戏购买界面"); | 138 | print("小游戏购买界面"); |
138 | local my_diamond_num = UserModel.getDiamond(); | 139 | local free_every_day_num=UserModel.getSingleGameById(game_info.id); --今天的免费次数是否用完 |
139 | if my_diamond_num >= game_info.diamond then | 140 | if free_every_day_num.val1==0 then |
140 | Alert.showTwo("玩这游戏需要扣除"..game_info.diamond.."个钻石,是否继续?",paySuccessFun); | 141 | logUI("每天免费玩一次"); |
142 | local info = { key = game_info.id, val1 = 1, val2 = 1, val3 = 1 }; | ||
143 | UserModel.single_game_cnt[#UserModel.single_game_cnt + 1] = info; | ||
144 | paySuccessFun(); | ||
141 | else | 145 | else |
142 | if CHANNEL=="shdx" then | 146 | if CHANNEL=="shdx" then |
143 | local reciever = require("app.views.view.XyxPayView_shdx"):show(game_info.id,paySuccessFun); | 147 | local reciever = require("app.views.view.XyxPayView_shdx"):show(game_info.id,paySuccessFun); | ... | ... |
... | @@ -330,6 +330,7 @@ function ActivityView:updateTabState() | ... | @@ -330,6 +330,7 @@ function ActivityView:updateTabState() |
330 | end | 330 | end |
331 | 331 | ||
332 | function ActivityView:update_nodes(_nodes) | 332 | function ActivityView:update_nodes(_nodes) |
333 | --logUI("领取后回调 "..#_nodes); | ||
333 | self.nodes = TableUtil.merge(self.nodes_copy,_nodes); | 334 | self.nodes = TableUtil.merge(self.nodes_copy,_nodes); |
334 | 335 | ||
335 | if #_nodes > 0 then | 336 | if #_nodes > 0 then |
... | @@ -338,7 +339,7 @@ function ActivityView:update_nodes(_nodes) | ... | @@ -338,7 +339,7 @@ function ActivityView:update_nodes(_nodes) |
338 | else | 339 | else |
339 | self.nodeIndex = act_tab_index + 1; | 340 | self.nodeIndex = act_tab_index + 1; |
340 | self.selectedIndex = 1; | 341 | self.selectedIndex = 1; |
341 | end | 342 | end |
342 | -- self:updateSelectedState(self.selected_node); | 343 | -- self:updateSelectedState(self.selected_node); |
343 | end | 344 | end |
344 | 345 | ... | ... |
... | @@ -185,7 +185,7 @@ function ActivityVipView:update(_is_init) | ... | @@ -185,7 +185,7 @@ function ActivityVipView:update(_is_init) |
185 | -- 包年 | 185 | -- 包年 |
186 | local vipInfo2 = vipList[2]; | 186 | local vipInfo2 = vipList[2]; |
187 | local itemList2 = vipInfo2.itemList; | 187 | local itemList2 = vipInfo2.itemList; |
188 | for i = 1, 3 do | 188 | for i = 1, 2 do |
189 | local item = self:getChildByName("y_item_" .. i); | 189 | local item = self:getChildByName("y_item_" .. i); |
190 | if i <= #itemList2 then | 190 | if i <= #itemList2 then |
191 | item:setVisible(true); | 191 | item:setVisible(true); | ... | ... |
... | @@ -41,6 +41,16 @@ function ActivityVipView:init() | ... | @@ -41,6 +41,16 @@ function ActivityVipView:init() |
41 | end | 41 | end |
42 | self.btn_vip_lianxu:addTouchEventListener( function(ref, type) self:onButtonClick(ref, type, handler(self, self.onGetContinueClick)) end); | 42 | self.btn_vip_lianxu:addTouchEventListener( function(ref, type) self:onButtonClick(ref, type, handler(self, self.onGetContinueClick)) end); |
43 | end | 43 | end |
44 | if vipList[4] then | ||
45 | self.btn_vip_lianxu.id = vipList[4].id; | ||
46 | self.btn_vip_lianxu.fn = function() | ||
47 | self:onGetContinueClick(self.btn_vip_lianxu); | ||
48 | end | ||
49 | self.btn_vip_lianxu:addTouchEventListener( function(ref, type) self:onButtonClick(ref, type, handler(self, self.onGetContinueClick)) end); | ||
50 | end | ||
51 | if ACTIVITY_SHDX==1 then | ||
52 | self.btn_vip_lianxu:getChildByName("txt"):setString("39元包月"); | ||
53 | end | ||
44 | 54 | ||
45 | self.btn_lingqu_month = self:getChildByName("btn_lingqu_month"); | 55 | self.btn_lingqu_month = self:getChildByName("btn_lingqu_month"); |
46 | self.btn_lingqu_month.id = vipList[1].id; | 56 | self.btn_lingqu_month.id = vipList[1].id; |
... | @@ -113,6 +123,9 @@ function ActivityVipView:update(_is_init) | ... | @@ -113,6 +123,9 @@ function ActivityVipView:update(_is_init) |
113 | -- 连续包月 | 123 | -- 连续包月 |
114 | local vipInfo3 = vipList[3]; | 124 | local vipInfo3 = vipList[3]; |
115 | local data3 = UserModel.getVipByID(vipInfo3.id); --包年礼包详情 | 125 | local data3 = UserModel.getVipByID(vipInfo3.id); --包年礼包详情 |
126 | -- 活动连续包月302 | ||
127 | local vipInfo4 = vipList[4]; | ||
128 | local data4 = UserModel.getVipByID(vipInfo4.id); --包年礼包详情 | ||
116 | 129 | ||
117 | 130 | ||
118 | local itemList1 = vipInfo1.itemList; | 131 | local itemList1 = vipInfo1.itemList; |
... | @@ -141,6 +154,11 @@ function ActivityVipView:update(_is_init) | ... | @@ -141,6 +154,11 @@ function ActivityVipView:update(_is_init) |
141 | if data3 and(data3.val1 > 0 or data3.val2 > 0 or data3.val3 > 0) then | 154 | if data3 and(data3.val1 > 0 or data3.val2 > 0 or data3.val3 > 0) then |
142 | has_vip_month = true; | 155 | has_vip_month = true; |
143 | end | 156 | end |
157 | elseif vipInfo4 then | ||
158 | local data4 = UserModel.getVipByID(vipInfo4.id); | ||
159 | if data4 and(data4.val1 > 0 or data4.val2 > 0 or data4.val3 > 0) then | ||
160 | has_vip_month = true; | ||
161 | end | ||
144 | end | 162 | end |
145 | 163 | ||
146 | local data1 = UserModel.getVipByID(vipInfo1.id); | 164 | local data1 = UserModel.getVipByID(vipInfo1.id); |
... | @@ -172,7 +190,7 @@ function ActivityVipView:update(_is_init) | ... | @@ -172,7 +190,7 @@ function ActivityVipView:update(_is_init) |
172 | if vipInfo3 then --续包月礼包详情 | 190 | if vipInfo3 then --续包月礼包详情 |
173 | local data3 = UserModel.getVipByID(vipInfo3.id); | 191 | local data3 = UserModel.getVipByID(vipInfo3.id); |
174 | if MEMBER_TYPE==301 and data3 and(data3.val1 > 0 or data3.val2 > 0 or data3.val3 > 0) then | 192 | if MEMBER_TYPE==301 and data3 and(data3.val1 > 0 or data3.val2 > 0 or data3.val3 > 0) then |
175 | logUI("301--"); | 193 | logUI("301--"); |
176 | if data3.val1 == 0 or not TimeUtil.isToday(UserModel.time_second, data3.val1) then | 194 | if data3.val1 == 0 or not TimeUtil.isToday(UserModel.time_second, data3.val1) then |
177 | -- 可领取 | 195 | -- 可领取 |
178 | self.btn_lingqu_month:setVisible(true); | 196 | self.btn_lingqu_month:setVisible(true); |
... | @@ -193,10 +211,34 @@ function ActivityVipView:update(_is_init) | ... | @@ -193,10 +211,34 @@ function ActivityVipView:update(_is_init) |
193 | end | 211 | end |
194 | end | 212 | end |
195 | 213 | ||
214 | if vipInfo4 then --续包月礼包详情 | ||
215 | local data4 = UserModel.getVipByID(vipInfo4.id); | ||
216 | if MEMBER_TYPE==302 and data4 and(data4.val1 > 0 or data4.val2 > 0 or data4.val3 > 0) then | ||
217 | logUI("302--"); | ||
218 | if data4.val1 == 0 or not TimeUtil.isToday(UserModel.time_second, data4.val1) then | ||
219 | -- 可领取 | ||
220 | self.btn_lingqu_month:setVisible(true); | ||
221 | self.btn_lingqu_month.id = vipInfo4.id; | ||
222 | _nodes[1] = { self.btn_lingqu_month }; | ||
223 | else | ||
224 | -- 已领取 | ||
225 | self.btn_lingqu_month:setVisible(false); | ||
226 | self.yilingqu_month:setVisible(true); | ||
227 | end | ||
228 | elseif MEMBER_TYPE==0 then --显示续包月按钮 | ||
229 | self.btn_vip_lianxu:setVisible(true); | ||
230 | if #_nodes > 0 then | ||
231 | _nodes[1][#_nodes[1]+1] = self.btn_vip_lianxu; | ||
232 | else | ||
233 | _nodes[1] = {self.btn_vip_lianxu}; | ||
234 | end | ||
235 | end | ||
236 | end | ||
237 | |||
196 | -- 包年 | 238 | -- 包年 |
197 | 239 | ||
198 | local itemList2 = vipInfo2.itemList; | 240 | local itemList2 = vipInfo2.itemList; |
199 | for i = 1, 3 do | 241 | for i = 1, 2 do |
200 | local item = self:getChildByName("y_item_" .. i); | 242 | local item = self:getChildByName("y_item_" .. i); |
201 | if i <= #itemList2 then | 243 | if i <= #itemList2 then |
202 | item:setVisible(true); | 244 | item:setVisible(true); |
... | @@ -300,6 +342,11 @@ function ActivityVipView:onLingquClick(ref) | ... | @@ -300,6 +342,11 @@ function ActivityVipView:onLingquClick(ref) |
300 | local shopInfo = ShopInfo.getPayInfo(ref.id); | 342 | local shopInfo = ShopInfo.getPayInfo(ref.id); |
301 | ShopModel.pay(shopInfo.product, shopInfo.name, shopInfo.costList[1].num); | 343 | ShopModel.pay(shopInfo.product, shopInfo.name, shopInfo.costList[1].num); |
302 | end | 344 | end |
345 | |||
346 | --[[local _nodes = { }; | ||
347 | _nodes[1] = { self.btn_close }; | ||
348 | self.nodeIndex = 1; | ||
349 | self:updateSelectedState();--]] | ||
303 | end | 350 | end |
304 | 351 | ||
305 | return ActivityVipView | 352 | return ActivityVipView |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -86,8 +86,8 @@ function FriendView:init() | ... | @@ -86,8 +86,8 @@ function FriendView:init() |
86 | 86 | ||
87 | 87 | ||
88 | --一个位置免费、一个位置付费 | 88 | --一个位置免费、一个位置付费 |
89 | local free_game_score_list = {}; | 89 | --[[local free_game_score_list = {}; --免费游戏分数 |
90 | local game_score_list = {}; | 90 | local game_score_list = {}; --会员游戏分数 |
91 | for i,v in ipairs(game_score) do | 91 | for i,v in ipairs(game_score) do |
92 | if SingleGameInfo.get_game_info(v.key).needVip == 0 then | 92 | if SingleGameInfo.get_game_info(v.key).needVip == 0 then |
93 | free_game_score_list[#free_game_score_list+1] = v; | 93 | free_game_score_list[#free_game_score_list+1] = v; |
... | @@ -106,24 +106,26 @@ function FriendView:init() | ... | @@ -106,24 +106,26 @@ function FriendView:init() |
106 | game_list[2] = {key=math.random(7,8),val1=0}; | 106 | game_list[2] = {key=math.random(7,8),val1=0}; |
107 | else | 107 | else |
108 | game_list[2] = game_score_list[1]; | 108 | game_list[2] = game_score_list[1]; |
109 | end--]] | ||
110 | |||
111 | local game_list = {}; | ||
112 | --先随机两个游戏 | ||
113 | game_list[1] = {key=math.random(1,10),val1=0}; | ||
114 | game_list[2] = {key=math.random(1,10),val1=0}; | ||
115 | if game_list[1].key==game_list[2].key and game_list[2].key~=10 then --随机出来的两个游戏可能相同 | ||
116 | game_list[2].key=game_list[2].key+1; | ||
117 | elseif game_list[1].key==game_list[2].key and game_list[2].key==10 then | ||
118 | game_list[2].key=game_list[2].key11; | ||
109 | end | 119 | end |
120 | --随机游戏有没有玩过带分数的 | ||
121 | for i,v in ipairs(game_score) do | ||
122 | if v.key == game_list[1].key then | ||
123 | game_list[1].val1 = v.val1; | ||
124 | elseif v.key == game_list[2].key then | ||
125 | game_list[2].val1 = v.val1; | ||
126 | end | ||
127 | end | ||
110 | 128 | ||
111 | --按好友游戏分数高低显示,如果好友没玩过游戏,就显示小马宝利和旋转海盗 | ||
112 | -- if #game_score == 0 then | ||
113 | -- game_list[1] = {key=7,val1=0}; | ||
114 | -- game_list[2] = {key=8,val1=0}; | ||
115 | -- elseif #game_score == 1 then | ||
116 | -- game_list[1] = game_score[1]; | ||
117 | -- if game_list[1].key == 7 then | ||
118 | -- game_list[2] = {key=8,val1=0}; | ||
119 | -- else | ||
120 | -- game_list[2] = {key=7,val1=0}; | ||
121 | -- end | ||
122 | -- elseif #game_score >= 2 then | ||
123 | -- for i=1,2 do | ||
124 | -- game_list[#game_list+1] = game_score[i]; | ||
125 | -- end | ||
126 | -- end | ||
127 | 129 | ||
128 | for i=1,2 do | 130 | for i=1,2 do |
129 | local btn = self.panel:getChildByName("btn_pk_"..i); | 131 | local btn = self.panel:getChildByName("btn_pk_"..i); |
... | @@ -143,7 +145,7 @@ function FriendView:init() | ... | @@ -143,7 +145,7 @@ function FriendView:init() |
143 | if cc.FileUtils:getInstance():isFileExist(icon_url) then | 145 | if cc.FileUtils:getInstance():isFileExist(icon_url) then |
144 | btn:getChildByName("icon"):setSpriteFrame(cc.Sprite:create(icon_url):getSpriteFrame()); | 146 | btn:getChildByName("icon"):setSpriteFrame(cc.Sprite:create(icon_url):getSpriteFrame()); |
145 | else | 147 | else |
146 | btn:getChildByName("icon"):setSpriteFrame(cc.Sprite:create("res/ui/friend/pk_game_0.png"):getSpriteFrame()); | 148 | btn:getChildByName("icon"):setSpriteFrame(cc.Sprite:create("res/ui/friend/pk_game_0.png"):getSpriteFrame());--默认图片 |
147 | end | 149 | end |
148 | end | 150 | end |
149 | self.btn_record:setVisible(false); | 151 | self.btn_record:setVisible(false); |
... | @@ -511,11 +513,19 @@ function FriendView:onPkClick(ref) | ... | @@ -511,11 +513,19 @@ function FriendView:onPkClick(ref) |
511 | end | 513 | end |
512 | 514 | ||
513 | local function okPayFun() | 515 | local function okPayFun() |
516 | GAME_ID=gameid; | ||
514 | if game_info.needVip == 1 and UserModel.getLeftVipDay() == 0 and not TableUtil.IsInTable(UserModel.free_game_id,game_info.id) then | 517 | if game_info.needVip == 1 and UserModel.getLeftVipDay() == 0 and not TableUtil.IsInTable(UserModel.free_game_id,game_info.id) then |
515 | local my_diamond_num = UserModel.getDiamond(); | 518 | local my_diamond_num = UserModel.getDiamond(); |
516 | --if my_diamond_num >= game_info.diamond then | 519 | --if my_diamond_num >= game_info.diamond then |
517 | -- Alert.showTwo("玩这游戏需要扣除"..game_info.diamond.."个钻石,是否继续?",paySuccessFun); | 520 | -- Alert.showTwo("玩这游戏需要扣除"..game_info.diamond.."个钻石,是否继续?",paySuccessFun); |
518 | --else | 521 | --else |
522 | local free_every_day_num=UserModel.getSingleGameById(game_info.id); --今天的免费次数是否用完 | ||
523 | if free_every_day_num.val1==0 then | ||
524 | logUI("每天免费玩一次"); | ||
525 | local info = { key = game_info.id, val1 = 1, val2 = 1, val3 = 1 }; | ||
526 | UserModel.single_game_cnt[#UserModel.single_game_cnt + 1] = info; | ||
527 | paySuccessFun(); | ||
528 | else | ||
519 | local reciever = nil; | 529 | local reciever = nil; |
520 | if CHANNEL=="cucc" then | 530 | if CHANNEL=="cucc" then |
521 | reciever = require("app.views.view.XyxPayView_tianjin_cucc"):show(game_info.id,paySuccessFun); | 531 | reciever = require("app.views.view.XyxPayView_tianjin_cucc"):show(game_info.id,paySuccessFun); |
... | @@ -523,7 +533,7 @@ function FriendView:onPkClick(ref) | ... | @@ -523,7 +533,7 @@ function FriendView:onPkClick(ref) |
523 | reciever = require("app.views.view.XyxPayView"):show(game_info.id,paySuccessFun); | 533 | reciever = require("app.views.view.XyxPayView"):show(game_info.id,paySuccessFun); |
524 | end | 534 | end |
525 | cc.Director:getInstance():getRunningScene().keypadManager:addKeypadReceiver(reciever); | 535 | cc.Director:getInstance():getRunningScene().keypadManager:addKeypadReceiver(reciever); |
526 | --end | 536 | end |
527 | return; | 537 | return; |
528 | else | 538 | else |
529 | paySuccessFun(); | 539 | paySuccessFun(); | ... | ... |
... | @@ -450,10 +450,31 @@ function LoginView:doLogin(account) | ... | @@ -450,10 +450,31 @@ function LoginView:doLogin(account) |
450 | verifystring = md5(verifystring); | 450 | verifystring = md5(verifystring); |
451 | logUI("登录验证:"..verifystring); | 451 | logUI("登录验证:"..verifystring); |
452 | 452 | ||
453 | if CHANNEL=="gzdt" then | 453 | if CHANNEL=="gzdt" then --广州移动版本可能需要灵活替换ip |
454 | UserModel.login("guangdong-cmcc.login.xhx.topdraw.cn","10400","xiaokanggogogo",""); --直接调用gateway,跳过登录接口 __TODO:jinwawa 大唐 | 454 | local function callbackLua(params) |
455 | --UserModel.login("http://10.100.6.130","50101","xiaokanggogogo",""); --直接调用gateway,跳过登录接口 __TODO:jinwawa | 455 | logUI("替换ip返回数据:"..params); |
456 | else | 456 | if params~="" then |
457 | local arr = StringUtil.split(params,","); | ||
458 | if arr[1] and arr[2] then | ||
459 | UserModel.login(arr[1],arr[2],"xiaokanggogogo",""); --直接调用gateway,跳过登录接口 __TODO:jinwawa 大唐 | ||
460 | else | ||
461 | UserModel.login("183.234.214.1","10400","xiaokanggogogo",""); --直接调用gateway,跳过登录接口 __TODO:jinwawa 大唐 | ||
462 | end | ||
463 | else | ||
464 | UserModel.login("183.234.214.1","10400","xiaokanggogogo",""); --直接调用gateway,跳过登录接口 __TODO:jinwawa 大唐 | ||
465 | end | ||
466 | end | ||
467 | |||
468 | local luaj = require "cocos.cocos2d.luaj"; --引入luaj | ||
469 | local className = "org/cocos2dx/lua/AppActivity"; | ||
470 | local args = { callbackLua }; | ||
471 | local sigs = "(I)V"; | ||
472 | logUI("callStaticMethod----->sendReplaceIpInfo"); | ||
473 | local ok, ret = luaj.callStaticMethod(className, "sendReplaceIpInfo", args, sigs); | ||
474 | if not ok then | ||
475 | print("sendPayInfo error:" .. ret); | ||
476 | end | ||
477 | else --其他渠道不变仍然需要登录ip | ||
457 | HttpRequest:getInstance():post(GAME_LOGIN_URL,{platform=PLATFORM,account=self.account,verify=verifystring,openid=self.openid,access_token=self.access_token},handler(self,self.onLoginServerBackFun),handler(self,self.onLoginServerFaildFun)); | 478 | HttpRequest:getInstance():post(GAME_LOGIN_URL,{platform=PLATFORM,account=self.account,verify=verifystring,openid=self.openid,access_token=self.access_token},handler(self,self.onLoginServerBackFun),handler(self,self.onLoginServerFaildFun)); |
458 | end | 479 | end |
459 | end | 480 | end | ... | ... |
1 | local PetTeamListView = dialog.uinode("ui/pet/PetTeamListLayer.csb",import(".BaseViewNew")) | 1 | local PetTeamListView = dialog.uinode("ui/pet/PetTeamListLayer.csb", import(".BaseViewNew")) |
2 | 2 | ||
3 | --宠物战队列表 | 3 | -- 宠物战队列表 |
4 | function PetTeamListView:ctor() | 4 | function PetTeamListView:ctor() |
5 | PetTeamListView.super.ctor(self); | 5 | PetTeamListView.super.ctor(self); |
6 | self:init(); | 6 | self:init(); |
... | @@ -9,35 +9,35 @@ end | ... | @@ -9,35 +9,35 @@ end |
9 | function PetTeamListView:show() | 9 | function PetTeamListView:show() |
10 | local scene = cc.Director:getInstance():getRunningScene() | 10 | local scene = cc.Director:getInstance():getRunningScene() |
11 | local inst = PetTeamListView:create(); | 11 | local inst = PetTeamListView:create(); |
12 | scene:addChild(inst,dialog.ZORDER_APP); | 12 | scene:addChild(inst, dialog.ZORDER_APP); |
13 | 13 | ||
14 | local panel = inst:getChildByName("panel"); | 14 | local panel = inst:getChildByName("panel"); |
15 | panel:setScale(0.5); | 15 | panel:setScale(0.5); |
16 | local scaleTo = cc.ScaleTo:create(0.2,1); | 16 | local scaleTo = cc.ScaleTo:create(0.2, 1); |
17 | panel:runAction(scaleTo); | 17 | panel:runAction(scaleTo); |
18 | 18 | ||
19 | return inst; | 19 | return inst; |
20 | end | 20 | end |
21 | 21 | ||
22 | function PetTeamListView:init() | 22 | function PetTeamListView:init() |
23 | self:setContentSize(cc.size(display.width,display.height)); | 23 | self:setContentSize(cc.size(display.width, display.height)); |
24 | ccui.Helper:doLayout(self); | 24 | ccui.Helper:doLayout(self); |
25 | 25 | ||
26 | self.scrollView = self:getChildByName("panel"):getChildByName("ScrollView"); | 26 | self.scrollView = self:getChildByName("panel"):getChildByName("ScrollView"); |
27 | 27 | ||
28 | self.btn_close = self:getChildByName("panel"):getChildByName("btn_close"); | 28 | self.btn_close = self:getChildByName("panel"):getChildByName("btn_close"); |
29 | self.btn_close.fn = handler(self,self.onClose); | 29 | self.btn_close.fn = handler(self, self.onClose); |
30 | self.btn_close:addTouchEventListener(function(ref,type) self:onButtonClick(ref,type,self.btn_close.fn)end); | 30 | self.btn_close:addTouchEventListener( function(ref, type) self:onButtonClick(ref, type, self.btn_close.fn) end); |
31 | 31 | ||
32 | self:update(); | 32 | self:update(); |
33 | 33 | ||
34 | if #self.nodes[2] > 0 then | 34 | if #self.nodes[2] > 0 then |
35 | self:updateSelectedState(self.nodes[2][1],false); | 35 | self:updateSelectedState(self.nodes[2][1], false); |
36 | else | 36 | else |
37 | self:updateSelectedState(self.nodes[1][1],false); | 37 | self:updateSelectedState(self.nodes[1][1], false); |
38 | end | 38 | end |
39 | 39 | ||
40 | EventListener.addEventListener(self,EnumEvent.UPDATE_PET_TEAM,handler(self,self.onPetTeamUpdate)); | 40 | EventListener.addEventListener(self, EnumEvent.UPDATE_PET_TEAM, handler(self, self.onPetTeamUpdate)); |
41 | end | 41 | end |
42 | 42 | ||
43 | function PetTeamListView:onPetTeamUpdate(eve) | 43 | function PetTeamListView:onPetTeamUpdate(eve) |
... | @@ -45,19 +45,19 @@ function PetTeamListView:onPetTeamUpdate(eve) | ... | @@ -45,19 +45,19 @@ function PetTeamListView:onPetTeamUpdate(eve) |
45 | end | 45 | end |
46 | 46 | ||
47 | function PetTeamListView:update() | 47 | function PetTeamListView:update() |
48 | self.nodes = {}; | 48 | self.nodes = { }; |
49 | self.nodes[1] = {self.btn_close}; | 49 | self.nodes[1] = { self.btn_close }; |
50 | self.nodes[2] = {}; | 50 | self.nodes[2] = { }; |
51 | 51 | ||
52 | self.list = UserModel.pet_team; | 52 | self.list = UserModel.pet_team; |
53 | 53 | ||
54 | self._list_cnt = 6; | 54 | self._list_cnt = 6; |
55 | local _y = self._list_cnt*160; | 55 | local _y = self._list_cnt * 160; |
56 | if _y < 500 then | 56 | if _y < 500 then |
57 | _y = 500; | 57 | _y = 500; |
58 | end | 58 | end |
59 | for i=1,self._list_cnt do | 59 | for i = 1, self._list_cnt do |
60 | local item = self.scrollView:getChildByName("item_"..i); | 60 | local item = self.scrollView:getChildByName("item_" .. i); |
61 | local btn_1; | 61 | local btn_1; |
62 | local btn_2; | 62 | local btn_2; |
63 | local btn_vip; | 63 | local btn_vip; |
... | @@ -65,44 +65,44 @@ function PetTeamListView:update() | ... | @@ -65,44 +65,44 @@ function PetTeamListView:update() |
65 | item = cc.CSLoader:createNode("ui/pet/PetTeamListItemLayer.csb"); | 65 | item = cc.CSLoader:createNode("ui/pet/PetTeamListItemLayer.csb"); |
66 | item.i = i; | 66 | item.i = i; |
67 | item.is_item = true; | 67 | item.is_item = true; |
68 | item:setName("item_"..i); | 68 | item:setName("item_" .. i); |
69 | self.scrollView:addChild(item); | 69 | self.scrollView:addChild(item); |
70 | 70 | ||
71 | btn_1 = item:getChildByName("btn_1"); | 71 | btn_1 = item:getChildByName("btn_1"); |
72 | btn_2 = item:getChildByName("btn_2"); | 72 | btn_2 = item:getChildByName("btn_2"); |
73 | btn_vip = item:getChildByName("btn_vip"); | 73 | btn_vip = item:getChildByName("btn_vip"); |
74 | 74 | ||
75 | btn_1.fn = function () | 75 | btn_1.fn = function() |
76 | self:onChangeClick(btn_1); | 76 | self:onChangeClick(btn_1); |
77 | end; | 77 | end; |
78 | btn_1:addTouchEventListener(function(ref,type) self:onButtonClick(ref,type,btn_1.fn)end); | 78 | btn_1:addTouchEventListener( function(ref, type) self:onButtonClick(ref, type, btn_1.fn) end); |
79 | btn_2.fn = function () | 79 | btn_2.fn = function() |
80 | self:onFightClick(btn_2); | 80 | self:onFightClick(btn_2); |
81 | end; | 81 | end; |
82 | btn_2:addTouchEventListener(function(ref,type) self:onButtonClick(ref,type,btn_2.fn)end); | 82 | btn_2:addTouchEventListener( function(ref, type) self:onButtonClick(ref, type, btn_2.fn) end); |
83 | btn_vip.fn = function () | 83 | btn_vip.fn = function() |
84 | self:onVipClick(btn_vip); | 84 | self:onVipClick(btn_vip); |
85 | end; | 85 | end; |
86 | btn_vip:addTouchEventListener(function(ref,type) self:onButtonClick(ref,type,btn_vip.fn)end); | 86 | btn_vip:addTouchEventListener( function(ref, type) self:onButtonClick(ref, type, btn_vip.fn) end); |
87 | else | 87 | else |
88 | btn_1 = item:getChildByName("btn_1"); | 88 | btn_1 = item:getChildByName("btn_1"); |
89 | btn_2 = item:getChildByName("btn_2"); | 89 | btn_2 = item:getChildByName("btn_2"); |
90 | btn_vip = item:getChildByName("btn_vip"); | 90 | btn_vip = item:getChildByName("btn_vip"); |
91 | end | 91 | end |
92 | item:setPosition(cc.p(15,_y - i*160-10)); | 92 | item:setPosition(cc.p(15, _y - i * 160 - 10)); |
93 | if CHANNEL=="shdx" then | 93 | if CHANNEL == "shdx" then |
94 | btn_vip:getChildByName("txt"):setString("开通会员"); | 94 | btn_vip:getChildByName("txt"):setString("开通会员"); |
95 | btn_vip:getChildByName("selected"):getChildByName("txt"):setString("开通会员"); | 95 | btn_vip:getChildByName("selected"):getChildByName("txt"):setString("开通会员"); |
96 | end | 96 | end |
97 | 97 | ||
98 | local data = self.list[i]; | 98 | local data = self.list[i]; |
99 | if data then | 99 | if data then |
100 | for ii=1,4 do | 100 | for ii = 1, 4 do |
101 | local item_pet = item:getChildByName("item_"..ii); | 101 | local item_pet = item:getChildByName("item_" .. ii); |
102 | local pet_id = data.pet_id[ii]; | 102 | local pet_id = data.pet_id[ii]; |
103 | if pet_id then | 103 | if pet_id then |
104 | local pet_info = PetInfo.get_pet_info(pet_id); | 104 | local pet_info = PetInfo.get_pet_info(pet_id); |
105 | local icon_url = "res/pet/head/"..pet_id..".png"; | 105 | local icon_url = "res/pet/head/" .. pet_id .. ".png"; |
106 | if cc.FileUtils:getInstance():isFileExist(icon_url) then | 106 | if cc.FileUtils:getInstance():isFileExist(icon_url) then |
107 | item_pet:getChildByName("icon"):setSpriteFrame(cc.Sprite:create(icon_url):getSpriteFrame()); | 107 | item_pet:getChildByName("icon"):setSpriteFrame(cc.Sprite:create(icon_url):getSpriteFrame()); |
108 | else | 108 | else |
... | @@ -113,74 +113,80 @@ function PetTeamListView:update() | ... | @@ -113,74 +113,80 @@ function PetTeamListView:update() |
113 | item_pet:getChildByName("pet_no"):setVisible(false); | 113 | item_pet:getChildByName("pet_no"):setVisible(false); |
114 | end | 114 | end |
115 | else | 115 | else |
116 | for ii=1,4 do | 116 | for ii = 1, 4 do |
117 | local item_pet = item:getChildByName("item_"..ii); | 117 | local item_pet = item:getChildByName("item_" .. ii); |
118 | item_pet:getChildByName("x"):setVisible(false); | 118 | item_pet:getChildByName("x"):setVisible(false); |
119 | item_pet:getChildByName("pet_no"):setVisible(false); | 119 | item_pet:getChildByName("pet_no"):setVisible(false); |
120 | end | 120 | end |
121 | end | 121 | end |
122 | 122 | ||
123 | item:getChildByName("txt"):setString("队伍"..i); | 123 | item:getChildByName("txt"):setString("队伍" .. i); |
124 | 124 | ||
125 | if UserModel.getLeftVipDay() > 0 or i <= 2 then | 125 | if UserModel.getLeftVipDay() > 0 or i <= 2 then |
126 | btn_1:setVisible(true); | 126 | btn_1:setVisible(true); |
127 | btn_vip:setVisible(false); | 127 | btn_vip:setVisible(false); |
128 | self.nodes[2][#self.nodes[2]+1] = btn_1; | 128 | self.nodes[2][#self.nodes[2] + 1] = btn_1; |
129 | if i == UserModel.team_id then | 129 | if i == UserModel.team_id then |
130 | item:getChildByName("txt_chuzhan"):setVisible(true); | 130 | item:getChildByName("txt_chuzhan"):setVisible(true); |
131 | btn_2:setVisible(false); | 131 | btn_2:setVisible(false); |
132 | else | 132 | else |
133 | item:getChildByName("txt_chuzhan"):setVisible(false); | 133 | item:getChildByName("txt_chuzhan"):setVisible(false); |
134 | btn_2:setVisible(true); | 134 | btn_2:setVisible(true); |
135 | self.nodes[2][#self.nodes[2]+1] = btn_2; | 135 | self.nodes[2][#self.nodes[2] + 1] = btn_2; |
136 | end | 136 | end |
137 | else | 137 | else |
138 | item:getChildByName("txt_chuzhan"):setVisible(false); | 138 | item:getChildByName("txt_chuzhan"):setVisible(false); |
139 | btn_vip:setVisible(true); | 139 | btn_vip:setVisible(true); |
140 | btn_1:setVisible(false); | 140 | btn_1:setVisible(false); |
141 | btn_2:setVisible(false); | 141 | btn_2:setVisible(false); |
142 | self.nodes[2][#self.nodes[2]+1] = btn_vip; | 142 | self.nodes[2][#self.nodes[2] + 1] = btn_vip; |
143 | end | 143 | end |
144 | end | 144 | end |
145 | self.scrollView:setInnerContainerSize(cc.size(1030,_y+10)); | 145 | self.scrollView:setInnerContainerSize(cc.size(1030, _y + 10)); |
146 | end | 146 | end |
147 | 147 | ||
148 | function PetTeamListView:onChangeClick(ref,event) | 148 | function PetTeamListView:onChangeClick(ref, event) |
149 | local reciever = require("app.views.view.PetTeamEditView"):show(ref:getParent().i); | 149 | local reciever = require("app.views.view.PetTeamEditView"):show(ref:getParent().i); |
150 | cc.Director:getInstance():getRunningScene().keypadManager:addKeypadReceiver(reciever); | 150 | cc.Director:getInstance():getRunningScene().keypadManager:addKeypadReceiver(reciever); |
151 | end | 151 | end |
152 | 152 | ||
153 | function PetTeamListView:onFightClick(ref,event) | 153 | function PetTeamListView:onFightClick(ref, event) |
154 | UserModel.team_id = ref:getParent().i; | 154 | UserModel.team_id = ref:getParent().i; |
155 | SocketClient:getInstance():send("gateway_msg.set_btl_team_id_msg",{team_id=UserModel.team_id}); | 155 | SocketClient:getInstance():send("gateway_msg.set_btl_team_id_msg", { team_id = UserModel.team_id }); |
156 | EventListener.dispatchEvent(EnumEvent.UPDATE_PET_TEAM); | 156 | EventListener.dispatchEvent(EnumEvent.UPDATE_PET_TEAM); |
157 | end | 157 | end |
158 | 158 | ||
159 | function PetTeamListView:onVipClick(ref,event) | 159 | function PetTeamListView:onVipClick(ref, event) |
160 | self.vip_btn_1 = ref:getParent():getChildByName("btn_1"); | 160 | self.vip_btn_1 = ref:getParent():getChildByName("btn_1"); |
161 | local reciever = require("app.views.view.ActivityView"):show("ActivityVipView"); | 161 | if CHANNEL ~= "shdx" then |
162 | cc.Director:getInstance():getRunningScene().keypadManager:addKeypadReceiver(reciever); | 162 | local reciever = require("app.views.view.ActivityView"):show("ActivityVipView"); |
163 | --local vipList = ShopInfo.getVipList(); | 163 | cc.Director:getInstance():getRunningScene().keypadManager:addKeypadReceiver(reciever); |
164 | --local shopInfo = ShopInfo.getPayInfo(vipList[1].id); | 164 | else |
165 | --ShopModel.pay(shopInfo.product,shopInfo.name,shopInfo.costList[1].num,handler(self,self.onPayCallBack)); | 165 | local reciever = require("app.views.view.XyxPayView_shdx"):show(); |
166 | cc.Director:getInstance():getRunningScene().keypadManager:addKeypadReceiver(reciever); | ||
167 | end | ||
168 | |||
169 | -- local vipList = ShopInfo.getVipList(); | ||
170 | -- local shopInfo = ShopInfo.getPayInfo(vipList[1].id); | ||
171 | -- ShopModel.pay(shopInfo.product,shopInfo.name,shopInfo.costList[1].num,handler(self,self.onPayCallBack)); | ||
166 | 172 | ||
167 | -- UserModel.addVip(shopInfo.id); | 173 | -- UserModel.addVip(shopInfo.id); |
168 | -- self:onPayCallBack("success"); | 174 | -- self:onPayCallBack("success"); |
169 | end | 175 | end |
170 | 176 | ||
171 | function PetTeamListView:onPayCallBack(params) | 177 | function PetTeamListView:onPayCallBack(params) |
172 | if params == "success" then | 178 | if params == "success" then |
173 | if not TableUtil.IsInTable(UserModel.free_game_id,self.game_id) then | 179 | if not TableUtil.IsInTable(UserModel.free_game_id, self.game_id) then |
174 | table.insert(UserModel.free_game_id,self.game_id); | 180 | table.insert(UserModel.free_game_id, self.game_id); |
175 | end | 181 | end |
176 | 182 | ||
177 | LoadingManager.showDataLoading(); | 183 | LoadingManager.showDataLoading(); |
178 | 184 | ||
179 | self:runAction(cc.Sequence:create(cc.DelayTime:create(1),cc.CallFunc:create(function () | 185 | self:runAction(cc.Sequence:create(cc.DelayTime:create(1), cc.CallFunc:create( function() |
180 | LoadingManager.removeDataLoading(); | 186 | LoadingManager.removeDataLoading(); |
181 | self:update(); | 187 | self:update(); |
182 | self:updateSelectedState(self.vip_btn_1); | 188 | self:updateSelectedState(self.vip_btn_1); |
183 | end))); | 189 | end ))); |
184 | end | 190 | end |
185 | end | 191 | end |
186 | 192 | ||
... | @@ -188,12 +194,12 @@ function PetTeamListView:onClose() | ... | @@ -188,12 +194,12 @@ function PetTeamListView:onClose() |
188 | self:close(); | 194 | self:close(); |
189 | end | 195 | end |
190 | 196 | ||
191 | --返回键处理函数 | 197 | -- 返回键处理函数 |
192 | function PetTeamListView:onKeypadBack() | 198 | function PetTeamListView:onKeypadBack() |
193 | self:close(); | 199 | self:close(); |
194 | end | 200 | end |
195 | 201 | ||
196 | --确认键处理函数 | 202 | -- 确认键处理函数 |
197 | function PetTeamListView:onKeypadOk() | 203 | function PetTeamListView:onKeypadOk() |
198 | if self.selected_node and self.selected_node.fn then | 204 | if self.selected_node and self.selected_node.fn then |
199 | self.selected_node:fn(); | 205 | self.selected_node:fn(); |
... | @@ -201,7 +207,7 @@ function PetTeamListView:onKeypadOk() | ... | @@ -201,7 +207,7 @@ function PetTeamListView:onKeypadOk() |
201 | end | 207 | end |
202 | 208 | ||
203 | function PetTeamListView:onKeypadUp() | 209 | function PetTeamListView:onKeypadUp() |
204 | PetTeamListView.super.onKeypadUp(self,false); | 210 | PetTeamListView.super.onKeypadUp(self, false); |
205 | 211 | ||
206 | if self.selected_node and self.selected_node:getParent().is_item then | 212 | if self.selected_node and self.selected_node:getParent().is_item then |
207 | self:setScrollPosition(self.selected_node:getParent()); | 213 | self:setScrollPosition(self.selected_node:getParent()); |
... | @@ -209,38 +215,38 @@ function PetTeamListView:onKeypadUp() | ... | @@ -209,38 +215,38 @@ function PetTeamListView:onKeypadUp() |
209 | end | 215 | end |
210 | 216 | ||
211 | function PetTeamListView:onKeypadDown() | 217 | function PetTeamListView:onKeypadDown() |
212 | PetTeamListView.super.onKeypadDown(self,false); | 218 | PetTeamListView.super.onKeypadDown(self, false); |
213 | 219 | ||
214 | if self.selected_node and self.selected_node:getParent().is_item then | 220 | if self.selected_node and self.selected_node:getParent().is_item then |
215 | self:setScrollPosition(self.selected_node:getParent()); | 221 | self:setScrollPosition(self.selected_node:getParent()); |
216 | end | 222 | end |
217 | end | 223 | end |
218 | 224 | ||
219 | --左键处理函数 | 225 | -- 左键处理函数 |
220 | function PetTeamListView:onKeypadLeft() | 226 | function PetTeamListView:onKeypadLeft() |
221 | PetTeamListView.super.onKeypadLeft(self,false); | 227 | PetTeamListView.super.onKeypadLeft(self, false); |
222 | end | 228 | end |
223 | 229 | ||
224 | --右键处理函数 | 230 | -- 右键处理函数 |
225 | function PetTeamListView:onKeypadRight() | 231 | function PetTeamListView:onKeypadRight() |
226 | PetTeamListView.super.onKeypadRight(self,false); | 232 | PetTeamListView.super.onKeypadRight(self, false); |
227 | end | 233 | end |
228 | 234 | ||
229 | function PetTeamListView:setScrollPosition(node) | 235 | function PetTeamListView:setScrollPosition(node) |
230 | local scrollSize = self.scrollView:getContentSize(); | 236 | local scrollSize = self.scrollView:getContentSize(); |
231 | 237 | ||
232 | local len = self._list_cnt*160+10; | 238 | local len = self._list_cnt * 160 + 10; |
233 | local currentY = len - (node:getPositionY()+160+5); | 239 | local currentY = len -(node:getPositionY() + 160 + 5); |
234 | if currentY > len-scrollSize.height then | 240 | if currentY > len - scrollSize.height then |
235 | currentY = len-scrollSize.height; | 241 | currentY = len - scrollSize.height; |
236 | elseif currentY < 0 then | 242 | elseif currentY < 0 then |
237 | currentY = 0; | 243 | currentY = 0; |
238 | end | 244 | end |
239 | local per = 0; | 245 | local per = 0; |
240 | if len-scrollSize.height > 0 then | 246 | if len - scrollSize.height > 0 then |
241 | per = currentY*100/(len-scrollSize.height); | 247 | per = currentY * 100 /(len - scrollSize.height); |
242 | end | 248 | end |
243 | self.scrollView:scrollToPercentVertical(per,0.5,true); | 249 | self.scrollView:scrollToPercentVertical(per, 0.5, true); |
244 | end | 250 | end |
245 | 251 | ||
246 | return PetTeamListView | 252 | return PetTeamListView |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -333,8 +333,13 @@ function ShopView:onBuyClick(ref,event) | ... | @@ -333,8 +333,13 @@ function ShopView:onBuyClick(ref,event) |
333 | 333 | ||
334 | if itemInfo.vip == 1 and UserModel.getLeftVipDay() == 0 then | 334 | if itemInfo.vip == 1 and UserModel.getLeftVipDay() == 0 then |
335 | local function okFun() | 335 | local function okFun() |
336 | local reciever=require("app.views.view.ActivityView"):show("ActivityVipView"); | 336 | if CHANNEL~="shdx" then |
337 | cc.Director:getInstance():getRunningScene().keypadManager:addKeypadReceiver(reciever); | 337 | local reciever=require("app.views.view.ActivityView"):show("ActivityVipView"); |
338 | cc.Director:getInstance():getRunningScene().keypadManager:addKeypadReceiver(reciever); | ||
339 | else | ||
340 | local reciever = require("app.views.view.XyxPayView_shdx"):show(); | ||
341 | cc.Director:getInstance():getRunningScene().keypadManager:addKeypadReceiver(reciever); | ||
342 | end | ||
338 | end | 343 | end |
339 | if CHANNEL=="shdx" then | 344 | if CHANNEL=="shdx" then |
340 | Alert.showTwo(strings.msg_1035,okFun); | 345 | Alert.showTwo(strings.msg_1035,okFun); | ... | ... |
... | @@ -139,8 +139,13 @@ function XyxGameOver:onAgain() | ... | @@ -139,8 +139,13 @@ function XyxGameOver:onAgain() |
139 | self:close(); | 139 | self:close(); |
140 | end | 140 | end |
141 | 141 | ||
142 | local free_every_day_num=UserModel.getSingleGameById(GAME_ID).val1; --今天的免费次数是否用完 | ||
142 | if IS_XHX then | 143 | if IS_XHX then |
143 | paySuccessFun(); | 144 | if free_every_day_num==1 then |
145 | Alert.showOne("您的免费试玩已结束"); | ||
146 | else | ||
147 | paySuccessFun(); | ||
148 | end | ||
144 | else | 149 | else |
145 | paySuccessFun(); | 150 | paySuccessFun(); |
146 | end | 151 | end | ... | ... |
... | @@ -23,7 +23,6 @@ function XyxPayView:show(game_id, onPaySuccessFun) | ... | @@ -23,7 +23,6 @@ function XyxPayView:show(game_id, onPaySuccessFun) |
23 | -- registerScriptTouchEvent(inst.layer,handler(inst,inst.onTouchBegin),handler(inst,inst.onTouchMove),handler(inst,inst.onTouchEnd)); | 23 | -- registerScriptTouchEvent(inst.layer,handler(inst,inst.onTouchBegin),handler(inst,inst.onTouchMove),handler(inst,inst.onTouchEnd)); |
24 | 24 | ||
25 | inst:init(); | 25 | inst:init(); |
26 | |||
27 | return inst; | 26 | return inst; |
28 | end | 27 | end |
29 | 28 | ||
... | @@ -69,6 +68,12 @@ function XyxPayView:init() | ... | @@ -69,6 +68,12 @@ function XyxPayView:init() |
69 | 68 | ||
70 | self:updateSelectedState(self.btn_buy); | 69 | self:updateSelectedState(self.btn_buy); |
71 | 70 | ||
71 | --logUI("上海电信活动= "..ACTIVITY_SHDX); | ||
72 | if ACTIVITY_SHDX==1 then | ||
73 | self.btn_buy:loadTextureNormal("res/ui/xyx/shanghai_ctcc/bg_left_activity.png"); | ||
74 | self.btn_buy:getChildByName("selected"):setSpriteFrame(cc.Sprite:create("res/ui/xyx/shanghai_ctcc/bg_left_selected_activity.png"):getSpriteFrame()); | ||
75 | end | ||
76 | |||
72 | EventListener.addEventListener(self, EnumEvent.UPDATE_DIAMOND, handler(self, self.onDiamondUpdate)); | 77 | EventListener.addEventListener(self, EnumEvent.UPDATE_DIAMOND, handler(self, self.onDiamondUpdate)); |
73 | end | 78 | end |
74 | 79 | ||
... | @@ -124,8 +129,12 @@ end | ... | @@ -124,8 +129,12 @@ end |
124 | --续包月 | 129 | --续包月 |
125 | function XyxPayView:onBuyClick(ref, event) | 130 | function XyxPayView:onBuyClick(ref, event) |
126 | local vipList = ShopInfo.getVipList(); | 131 | local vipList = ShopInfo.getVipList(); |
127 | MEMBER_TYPE=vipList[3].id; | 132 | if ACTIVITY_SHDX==1 then |
128 | local shopInfo = ShopInfo.getPayInfo(vipList[3].id); | 133 | MEMBER_TYPE=vipList[4].id; |
134 | else | ||
135 | MEMBER_TYPE=vipList[3].id; | ||
136 | end | ||
137 | local shopInfo = ShopInfo.getPayInfo(MEMBER_TYPE); | ||
129 | -- 包月卡的id,获取包月卡的item信息 | 138 | -- 包月卡的id,获取包月卡的item信息 |
130 | -- 天津联通支付,支持连续包月 | 139 | -- 天津联通支付,支持连续包月 |
131 | --logUI("ActivityVipView:onGetContinueClick------------------>"); | 140 | --logUI("ActivityVipView:onGetContinueClick------------------>"); |
... | @@ -214,7 +223,11 @@ function XyxPayView:updateSelectedState(near_node, isBounce, is_show_highlight) | ... | @@ -214,7 +223,11 @@ function XyxPayView:updateSelectedState(near_node, isBounce, is_show_highlight) |
214 | end--]] | 223 | end--]] |
215 | 224 | ||
216 | if near_node:getName()=="btn_buy" then --续包月 | 225 | if near_node:getName()=="btn_buy" then --续包月 |
217 | self.panel:getChildByName("pic_txt"):setSpriteFrame(cc.Sprite:create("res/ui/xyx/shanghai_ctcc/txt2.png"):getSpriteFrame()); | 226 | if ACTIVITY_SHDX==1 then |
227 | self.panel:getChildByName("pic_txt"):setSpriteFrame(cc.Sprite:create("res/ui/xyx/shanghai_ctcc/txt_activity.png"):getSpriteFrame()); | ||
228 | else | ||
229 | self.panel:getChildByName("pic_txt"):setSpriteFrame(cc.Sprite:create("res/ui/xyx/shanghai_ctcc/txt2.png"):getSpriteFrame()); | ||
230 | end | ||
218 | elseif near_node:getName() == "btn_vip_month" or near_node:getName() == "btn_vip_year" then --包月 | 231 | elseif near_node:getName() == "btn_vip_month" or near_node:getName() == "btn_vip_year" then --包月 |
219 | self.panel:getChildByName("pic_txt"):setSpriteFrame(cc.Sprite:create("res/ui/xyx/shanghai_ctcc/txt.png"):getSpriteFrame()); | 232 | self.panel:getChildByName("pic_txt"):setSpriteFrame(cc.Sprite:create("res/ui/xyx/shanghai_ctcc/txt.png"):getSpriteFrame()); |
220 | end | 233 | end | ... | ... |
... | @@ -16,6 +16,7 @@ PROXY_SOCK_ADDR = nil; | ... | @@ -16,6 +16,7 @@ PROXY_SOCK_ADDR = nil; |
16 | IS_TV = 1; | 16 | IS_TV = 1; |
17 | 17 | ||
18 | IS_XHX = true; | 18 | IS_XHX = true; |
19 | CURRENT_GAME_ID=0; | ||
19 | 20 | ||
20 | PAY_URL = "http://101.132.118.17"; | 21 | PAY_URL = "http://101.132.118.17"; |
21 | SHARE_URL = "https://fir.im/qjqp2018"; | 22 | SHARE_URL = "https://fir.im/qjqp2018"; | ... | ... |
... | @@ -39,7 +39,7 @@ local proto_id_map_send = | ... | @@ -39,7 +39,7 @@ local proto_id_map_send = |
39 | ["gateway_msg.notify_pay_succ_msg"] = 0x00351, --购买成功 | 39 | ["gateway_msg.notify_pay_succ_msg"] = 0x00351, --购买成功 |
40 | ["gateway_msg.get_pay_day_reward_msg"] = 0x00352, --领取购买的每天领取奖励 | 40 | ["gateway_msg.get_pay_day_reward_msg"] = 0x00352, --领取购买的每天领取奖励 |
41 | ["gateway_msg.shanghai_dianxin_pay_msg"] = 0x00353, -- | 41 | ["gateway_msg.shanghai_dianxin_pay_msg"] = 0x00353, -- |
42 | ["gateway_msg.single_game_info_msg"] = 0x00354, --获取游戏信息 | 42 | --["gateway_msg.single_game_info_msg"] = 0x00354, --获取游戏信息 |
43 | ["gateway_msg.single_game_rank_msg"] = 0x00355, --获取游戏排行 | 43 | ["gateway_msg.single_game_rank_msg"] = 0x00355, --获取游戏排行 |
44 | ["gateway_msg.single_game_end_msg"] = 0x00356, --游戏结束 | 44 | ["gateway_msg.single_game_end_msg"] = 0x00356, --游戏结束 |
45 | ["gateway_msg.get_vip_pay_reward_msg"] = 0x00358, --领取vip 按时间充值活动(每个时间段充值,只能领取一次) 的奖励 | 45 | ["gateway_msg.get_vip_pay_reward_msg"] = 0x00358, --领取vip 按时间充值活动(每个时间段充值,只能领取一次) 的奖励 | ... | ... |
... | @@ -27,8 +27,10 @@ local function main() | ... | @@ -27,8 +27,10 @@ local function main() |
27 | PROXY_HTTP_ADDR = ConfigInfo.getConfigInfo("proxy_http_addr"); | 27 | PROXY_HTTP_ADDR = ConfigInfo.getConfigInfo("proxy_http_addr"); |
28 | PROXY_SOCK_ADDR = ConfigInfo.getConfigInfo("proxy_sock_addr"); | 28 | PROXY_SOCK_ADDR = ConfigInfo.getConfigInfo("proxy_sock_addr"); |
29 | IS_TV = tonumber(ConfigInfo.getConfigInfo("is_tv")); | 29 | IS_TV = tonumber(ConfigInfo.getConfigInfo("is_tv")); |
30 | MEMBER_TYPE = 0; | ||
31 | -- 会员类型,0:不是会员, 其他对应pay.xml中的pay_id | 30 | -- 会员类型,0:不是会员, 其他对应pay.xml中的pay_id |
31 | MEMBER_TYPE = 0; | ||
32 | --上海电信的优惠订购活动 | ||
33 | ACTIVITY_SHDX=0; | ||
32 | 34 | ||
33 | require "core.log.init"; | 35 | require "core.log.init"; |
34 | require "core.net.socket_connection"; | 36 | require "core.net.socket_connection"; | ... | ... |
No preview for this file type
... | @@ -17,7 +17,7 @@ | ... | @@ -17,7 +17,7 @@ |
17 | <CColor A="255" R="255" G="255" B="255" /> | 17 | <CColor A="255" R="255" G="255" B="255" /> |
18 | <PrePosition X="0.1983" Y="0.6643" /> | 18 | <PrePosition X="0.1983" Y="0.6643" /> |
19 | <PreSize X="0.3240" Y="0.5728" /> | 19 | <PreSize X="0.3240" Y="0.5728" /> |
20 | <FileData Type="Normal" Path="ui/Activity/activity_flag_limit.png" Plist="" /> | 20 | <FileData Type="Default" Path="Default/Sprite.png" Plist="" /> |
21 | <BlendFunc Src="1" Dst="771" /> | 21 | <BlendFunc Src="1" Dst="771" /> |
22 | </AbstractNodeData> | 22 | </AbstractNodeData> |
23 | </Children> | 23 | </Children> |
... | @@ -41,7 +41,7 @@ | ... | @@ -41,7 +41,7 @@ |
41 | <CColor A="255" R="255" G="255" B="255" /> | 41 | <CColor A="255" R="255" G="255" B="255" /> |
42 | <PrePosition X="0.1421" Y="1.4461" /> | 42 | <PrePosition X="0.1421" Y="1.4461" /> |
43 | <PreSize X="0.2929" Y="0.5566" /> | 43 | <PreSize X="0.2929" Y="0.5566" /> |
44 | <FileData Type="Normal" Path="ui/Activity/activity_flag_limit.png" Plist="" /> | 44 | <FileData Type="Default" Path="Default/Sprite.png" Plist="" /> |
45 | <BlendFunc Src="1" Dst="771" /> | 45 | <BlendFunc Src="1" Dst="771" /> |
46 | </AbstractNodeData> | 46 | </AbstractNodeData> |
47 | </Children> | 47 | </Children> | ... | ... |
... | @@ -58,7 +58,7 @@ | ... | @@ -58,7 +58,7 @@ |
58 | <Position X="0.9998" Y="-0.0008" /> | 58 | <Position X="0.9998" Y="-0.0008" /> |
59 | <Scale ScaleX="1.0000" ScaleY="1.0000" /> | 59 | <Scale ScaleX="1.0000" ScaleY="1.0000" /> |
60 | <CColor A="255" R="255" G="255" B="255" /> | 60 | <CColor A="255" R="255" G="255" B="255" /> |
61 | <PrePosition X="0.0031" Y="0.0000" /> | 61 | <PrePosition X="0.0031" /> |
62 | <PreSize X="1.0000" Y="1.0000" /> | 62 | <PreSize X="1.0000" Y="1.0000" /> |
63 | <SingleColor A="255" R="150" G="200" B="255" /> | 63 | <SingleColor A="255" R="150" G="200" B="255" /> |
64 | <FirstColor A="255" R="150" G="200" B="255" /> | 64 | <FirstColor A="255" R="150" G="200" B="255" /> |
... | @@ -111,7 +111,7 @@ | ... | @@ -111,7 +111,7 @@ |
111 | <CColor A="255" R="255" G="255" B="255" /> | 111 | <CColor A="255" R="255" G="255" B="255" /> |
112 | <PrePosition X="0.6234" Y="0.5488" /> | 112 | <PrePosition X="0.6234" Y="0.5488" /> |
113 | <PreSize X="0.3918" Y="0.4606" /> | 113 | <PreSize X="0.3918" Y="0.4606" /> |
114 | <FileData Type="Normal" Path="ui/Activity/img_no_activity.png" Plist="" /> | 114 | <FileData Type="Default" Path="Default/Sprite.png" Plist="" /> |
115 | <BlendFunc Src="1" Dst="771" /> | 115 | <BlendFunc Src="1" Dst="771" /> |
116 | </AbstractNodeData> | 116 | </AbstractNodeData> |
117 | <AbstractNodeData Name="btn_close" ActionTag="-661351794" Tag="1384" IconVisible="False" LeftMargin="-53.1557" RightMargin="1047.1558" TopMargin="-18.9395" BottomMargin="613.9395" TouchEnable="True" FontSize="14" Scale9Enable="True" LeftEage="15" RightEage="15" TopEage="11" BottomEage="11" Scale9OriginX="15" Scale9OriginY="11" Scale9Width="48" Scale9Height="56" ShadowOffsetX="2.0000" ShadowOffsetY="-2.0000" ctype="ButtonObjectData"> | 117 | <AbstractNodeData Name="btn_close" ActionTag="-661351794" Tag="1384" IconVisible="False" LeftMargin="-53.1557" RightMargin="1047.1558" TopMargin="-18.9395" BottomMargin="613.9395" TouchEnable="True" FontSize="14" Scale9Enable="True" LeftEage="15" RightEage="15" TopEage="11" BottomEage="11" Scale9OriginX="15" Scale9OriginY="11" Scale9Width="48" Scale9Height="56" ShadowOffsetX="2.0000" ShadowOffsetY="-2.0000" ctype="ButtonObjectData"> | ... | ... |
... | @@ -6,7 +6,7 @@ | ... | @@ -6,7 +6,7 @@ |
6 | <ObjectData Name="Layer" Tag="297" ctype="GameLayerObjectData"> | 6 | <ObjectData Name="Layer" Tag="297" ctype="GameLayerObjectData"> |
7 | <Size X="810.0000" Y="550.0000" /> | 7 | <Size X="810.0000" Y="550.0000" /> |
8 | <Children> | 8 | <Children> |
9 | <AbstractNodeData Name="bg" ActionTag="-43469328" Tag="2051" IconVisible="False" LeftMargin="-199.2473" RightMargin="-109.7527" TopMargin="-39.6893" BottomMargin="-67.3106" LeftEage="369" RightEage="369" TopEage="216" BottomEage="216" Scale9OriginX="369" Scale9OriginY="216" Scale9Width="381" Scale9Height="225" ctype="ImageViewObjectData"> | 9 | <AbstractNodeData Name="bg" ActionTag="-43469328" Tag="2051" IconVisible="False" LeftMargin="-199.2473" RightMargin="-109.7527" TopMargin="-39.6894" BottomMargin="-67.3106" LeftEage="369" RightEage="369" TopEage="216" BottomEage="216" Scale9OriginX="369" Scale9OriginY="216" Scale9Width="381" Scale9Height="225" ctype="ImageViewObjectData"> |
10 | <Size X="1119.0000" Y="657.0000" /> | 10 | <Size X="1119.0000" Y="657.0000" /> |
11 | <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> | 11 | <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> |
12 | <Position X="360.2527" Y="261.1894" /> | 12 | <Position X="360.2527" Y="261.1894" /> |
... | @@ -47,16 +47,50 @@ | ... | @@ -47,16 +47,50 @@ |
47 | <FileData Type="Normal" Path="ui/Activity/bg_welfare.png" Plist="" /> | 47 | <FileData Type="Normal" Path="ui/Activity/bg_welfare.png" Plist="" /> |
48 | <BlendFunc Src="1" Dst="771" /> | 48 | <BlendFunc Src="1" Dst="771" /> |
49 | </AbstractNodeData> | 49 | </AbstractNodeData> |
50 | <AbstractNodeData Name="Image_56" ActionTag="-523748571" Tag="981" IconVisible="False" LeftMargin="-77.0328" RightMargin="410.0328" TopMargin="95.2604" BottomMargin="-67.2604" LeftEage="157" RightEage="157" TopEage="172" BottomEage="172" Scale9OriginX="157" Scale9OriginY="172" Scale9Width="163" Scale9Height="178" ctype="ImageViewObjectData"> | 50 | <AbstractNodeData Name="Image_56" ActionTag="-523748571" Tag="981" IconVisible="False" LeftMargin="-78.5988" RightMargin="411.5988" TopMargin="95.3107" BottomMargin="-67.3107" LeftEage="157" RightEage="157" TopEage="172" BottomEage="172" Scale9OriginX="157" Scale9OriginY="172" Scale9Width="163" Scale9Height="178" ctype="ImageViewObjectData"> |
51 | <Size X="477.0000" Y="522.0000" /> | 51 | <Size X="477.0000" Y="522.0000" /> |
52 | <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> | 52 | <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> |
53 | <Position X="161.4672" Y="193.7396" /> | 53 | <Position X="159.9012" Y="193.6893" /> |
54 | <Scale ScaleX="1.0000" ScaleY="1.0000" /> | 54 | <Scale ScaleX="1.0000" ScaleY="1.0000" /> |
55 | <CColor A="255" R="255" G="255" B="255" /> | 55 | <CColor A="255" R="255" G="255" B="255" /> |
56 | <PrePosition X="0.1993" Y="0.3523" /> | 56 | <PrePosition X="0.1974" Y="0.3522" /> |
57 | <PreSize X="0.5889" Y="0.9491" /> | 57 | <PreSize X="0.5889" Y="0.9491" /> |
58 | <FileData Type="Normal" Path="ui/Activity/bg_gift_one_month.png" Plist="" /> | 58 | <FileData Type="Normal" Path="ui/Activity/bg_gift_one_month.png" Plist="" /> |
59 | </AbstractNodeData> | 59 | </AbstractNodeData> |
60 | <AbstractNodeData Name="Image_3" ActionTag="-271120697" Tag="215" IconVisible="False" LeftMargin="103.4728" RightMargin="599.5272" TopMargin="319.3336" BottomMargin="136.6665" LeftEage="35" RightEage="35" TopEage="31" BottomEage="31" Scale9OriginX="35" Scale9OriginY="31" Scale9Width="37" Scale9Height="32" ctype="ImageViewObjectData"> | ||
61 | <Size X="107.0000" Y="94.0000" /> | ||
62 | <Children> | ||
63 | <AbstractNodeData Name="Image_4" ActionTag="2093597283" Tag="216" IconVisible="False" LeftMargin="4.8119" RightMargin="2.1881" TopMargin="-9.2453" BottomMargin="3.2453" LeftEage="33" RightEage="33" TopEage="33" BottomEage="33" Scale9OriginX="33" Scale9OriginY="33" Scale9Width="34" Scale9Height="34" ctype="ImageViewObjectData"> | ||
64 | <Size X="100.0000" Y="100.0000" /> | ||
65 | <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> | ||
66 | <Position X="54.8119" Y="53.2453" /> | ||
67 | <Scale ScaleX="1.0000" ScaleY="1.0000" /> | ||
68 | <CColor A="255" R="255" G="255" B="255" /> | ||
69 | <PrePosition X="0.5123" Y="0.5664" /> | ||
70 | <PreSize X="0.9346" Y="1.0638" /> | ||
71 | <FileData Type="Normal" Path="ui/Activity/icon_activity_vip_bg_1.png" Plist="" /> | ||
72 | </AbstractNodeData> | ||
73 | <AbstractNodeData Name="Text_1" ActionTag="1345923896" Tag="217" IconVisible="False" LeftMargin="-26.6874" RightMargin="-29.3126" TopMargin="51.2452" BottomMargin="16.7548" FontSize="20" LabelText="随机宠物技能石X1" OutlineEnabled="True" ShadowOffsetX="2.0000" ShadowOffsetY="-2.0000" ctype="TextObjectData"> | ||
74 | <Size X="163.0000" Y="26.0000" /> | ||
75 | <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> | ||
76 | <Position X="54.8126" Y="29.7548" /> | ||
77 | <Scale ScaleX="1.0000" ScaleY="1.0000" /> | ||
78 | <CColor A="255" R="255" G="255" B="255" /> | ||
79 | <PrePosition X="0.5123" Y="0.3165" /> | ||
80 | <PreSize X="1.5234" Y="0.2766" /> | ||
81 | <FontResource Type="Normal" Path="ui/font/fangzhengcuyuan.ttf" Plist="" /> | ||
82 | <OutlineColor A="255" R="30" G="144" B="255" /> | ||
83 | <ShadowColor A="255" R="110" G="110" B="110" /> | ||
84 | </AbstractNodeData> | ||
85 | </Children> | ||
86 | <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> | ||
87 | <Position X="156.9728" Y="183.6665" /> | ||
88 | <Scale ScaleX="1.0000" ScaleY="1.0000" /> | ||
89 | <CColor A="255" R="255" G="255" B="255" /> | ||
90 | <PrePosition X="0.1938" Y="0.3339" /> | ||
91 | <PreSize X="0.1321" Y="0.1709" /> | ||
92 | <FileData Type="Normal" Path="ui/Activity/icon_activity_vip_bg.png" Plist="" /> | ||
93 | </AbstractNodeData> | ||
60 | <AbstractNodeData Name="Image_57" ActionTag="-734408069" Tag="982" IconVisible="False" LeftMargin="408.0482" RightMargin="-16.0482" TopMargin="92.5436" BottomMargin="-64.5436" LeftEage="137" RightEage="137" TopEage="172" BottomEage="172" Scale9OriginX="137" Scale9OriginY="172" Scale9Width="144" Scale9Height="178" ctype="ImageViewObjectData"> | 94 | <AbstractNodeData Name="Image_57" ActionTag="-734408069" Tag="982" IconVisible="False" LeftMargin="408.0482" RightMargin="-16.0482" TopMargin="92.5436" BottomMargin="-64.5436" LeftEage="137" RightEage="137" TopEage="172" BottomEage="172" Scale9OriginX="137" Scale9OriginY="172" Scale9Width="144" Scale9Height="178" ctype="ImageViewObjectData"> |
61 | <Size X="418.0000" Y="522.0000" /> | 95 | <Size X="418.0000" Y="522.0000" /> |
62 | <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> | 96 | <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> |
... | @@ -67,7 +101,7 @@ | ... | @@ -67,7 +101,7 @@ |
67 | <PreSize X="0.5160" Y="0.9491" /> | 101 | <PreSize X="0.5160" Y="0.9491" /> |
68 | <FileData Type="Normal" Path="ui/Activity/bg_gift_one_year.png" Plist="" /> | 102 | <FileData Type="Normal" Path="ui/Activity/bg_gift_one_year.png" Plist="" /> |
69 | </AbstractNodeData> | 103 | </AbstractNodeData> |
70 | <AbstractNodeData Name="btn_vip_lianxu" ActionTag="518028505" Tag="69" IconVisible="False" PositionPercentXEnabled="True" LeftMargin="78.9926" RightMargin="569.0074" TopMargin="492.2479" BottomMargin="-2.2479" TouchEnable="True" FontSize="14" Scale9Enable="True" LeftEage="15" RightEage="15" TopEage="11" BottomEage="11" Scale9OriginX="15" Scale9OriginY="11" Scale9Width="132" Scale9Height="38" ShadowOffsetX="2.0000" ShadowOffsetY="-2.0000" ctype="ButtonObjectData"> | 104 | <AbstractNodeData Name="btn_vip_lianxu" ActionTag="518028505" Tag="69" IconVisible="False" PositionPercentXEnabled="True" LeftMargin="78.9750" RightMargin="569.0250" TopMargin="492.2479" BottomMargin="-2.2479" TouchEnable="True" FontSize="14" Scale9Enable="True" LeftEage="15" RightEage="15" TopEage="11" BottomEage="11" Scale9OriginX="15" Scale9OriginY="11" Scale9Width="132" Scale9Height="38" ShadowOffsetX="2.0000" ShadowOffsetY="-2.0000" ctype="ButtonObjectData"> |
71 | <Size X="162.0000" Y="60.0000" /> | 105 | <Size X="162.0000" Y="60.0000" /> |
72 | <Children> | 106 | <Children> |
73 | <AbstractNodeData Name="selected" ActionTag="-330155765" Tag="70" IconVisible="False" PositionPercentXEnabled="True" PositionPercentYEnabled="True" ctype="SpriteObjectData"> | 107 | <AbstractNodeData Name="selected" ActionTag="-330155765" Tag="70" IconVisible="False" PositionPercentXEnabled="True" PositionPercentYEnabled="True" ctype="SpriteObjectData"> |
... | @@ -95,7 +129,7 @@ | ... | @@ -95,7 +129,7 @@ |
95 | </AbstractNodeData> | 129 | </AbstractNodeData> |
96 | </Children> | 130 | </Children> |
97 | <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> | 131 | <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> |
98 | <Position X="159.9926" Y="27.7521" /> | 132 | <Position X="159.9750" Y="27.7521" /> |
99 | <Scale ScaleX="1.0000" ScaleY="1.0000" /> | 133 | <Scale ScaleX="1.0000" ScaleY="1.0000" /> |
100 | <CColor A="255" R="255" G="255" B="255" /> | 134 | <CColor A="255" R="255" G="255" B="255" /> |
101 | <PrePosition X="0.1975" Y="0.0505" /> | 135 | <PrePosition X="0.1975" Y="0.0505" /> |
... | @@ -107,7 +141,7 @@ | ... | @@ -107,7 +141,7 @@ |
107 | <OutlineColor A="255" R="255" G="0" B="0" /> | 141 | <OutlineColor A="255" R="255" G="0" B="0" /> |
108 | <ShadowColor A="255" R="110" G="110" B="110" /> | 142 | <ShadowColor A="255" R="110" G="110" B="110" /> |
109 | </AbstractNodeData> | 143 | </AbstractNodeData> |
110 | <AbstractNodeData Name="btn_lingqu_month" Visible="False" ActionTag="-1209852045" Tag="241" IconVisible="False" LeftMargin="78.2819" RightMargin="569.7181" TopMargin="493.3691" BottomMargin="-3.3692" TouchEnable="True" FontSize="14" Scale9Enable="True" LeftEage="15" RightEage="15" TopEage="11" BottomEage="11" Scale9OriginX="15" Scale9OriginY="11" Scale9Width="132" Scale9Height="38" ShadowOffsetX="2.0000" ShadowOffsetY="-2.0000" ctype="ButtonObjectData"> | 144 | <AbstractNodeData Name="btn_lingqu_month" Visible="False" ActionTag="-1209852045" Tag="241" IconVisible="False" LeftMargin="78.2819" RightMargin="569.7181" TopMargin="493.3692" BottomMargin="-3.3692" TouchEnable="True" FontSize="14" Scale9Enable="True" LeftEage="15" RightEage="15" TopEage="11" BottomEage="11" Scale9OriginX="15" Scale9OriginY="11" Scale9Width="132" Scale9Height="38" ShadowOffsetX="2.0000" ShadowOffsetY="-2.0000" ctype="ButtonObjectData"> |
111 | <Size X="162.0000" Y="60.0000" /> | 145 | <Size X="162.0000" Y="60.0000" /> |
112 | <Children> | 146 | <Children> |
113 | <AbstractNodeData Name="selected" ActionTag="1930414194" Tag="203" IconVisible="False" PositionPercentXEnabled="True" PositionPercentYEnabled="True" ctype="SpriteObjectData"> | 147 | <AbstractNodeData Name="selected" ActionTag="1930414194" Tag="203" IconVisible="False" PositionPercentXEnabled="True" PositionPercentYEnabled="True" ctype="SpriteObjectData"> |
... | @@ -168,7 +202,7 @@ | ... | @@ -168,7 +202,7 @@ |
168 | <FileData Type="Normal" Path="ui/Activity/achievement_yilingqu.png" Plist="" /> | 202 | <FileData Type="Normal" Path="ui/Activity/achievement_yilingqu.png" Plist="" /> |
169 | <BlendFunc Src="1" Dst="771" /> | 203 | <BlendFunc Src="1" Dst="771" /> |
170 | </AbstractNodeData> | 204 | </AbstractNodeData> |
171 | <AbstractNodeData Name="btn_vip_year" ActionTag="1349290642" Tag="485" IconVisible="False" PositionPercentXEnabled="True" LeftMargin="560.6194" RightMargin="87.3806" TopMargin="492.5581" BottomMargin="-2.5581" TouchEnable="True" FontSize="14" Scale9Enable="True" LeftEage="15" RightEage="15" TopEage="11" BottomEage="11" Scale9OriginX="15" Scale9OriginY="11" Scale9Width="132" Scale9Height="38" ShadowOffsetX="2.0000" ShadowOffsetY="-2.0000" ctype="ButtonObjectData"> | 205 | <AbstractNodeData Name="btn_vip_year" ActionTag="1349290642" Tag="485" IconVisible="False" PositionPercentXEnabled="True" LeftMargin="560.6010" RightMargin="87.3990" TopMargin="492.5581" BottomMargin="-2.5581" TouchEnable="True" FontSize="14" Scale9Enable="True" LeftEage="15" RightEage="15" TopEage="11" BottomEage="11" Scale9OriginX="15" Scale9OriginY="11" Scale9Width="132" Scale9Height="38" ShadowOffsetX="2.0000" ShadowOffsetY="-2.0000" ctype="ButtonObjectData"> |
172 | <Size X="162.0000" Y="60.0000" /> | 206 | <Size X="162.0000" Y="60.0000" /> |
173 | <Children> | 207 | <Children> |
174 | <AbstractNodeData Name="selected" ActionTag="806992118" Tag="223" IconVisible="False" PositionPercentXEnabled="True" PositionPercentYEnabled="True" ctype="SpriteObjectData"> | 208 | <AbstractNodeData Name="selected" ActionTag="806992118" Tag="223" IconVisible="False" PositionPercentXEnabled="True" PositionPercentYEnabled="True" ctype="SpriteObjectData"> |
... | @@ -207,7 +241,7 @@ | ... | @@ -207,7 +241,7 @@ |
207 | </AbstractNodeData> | 241 | </AbstractNodeData> |
208 | </Children> | 242 | </Children> |
209 | <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> | 243 | <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> |
210 | <Position X="641.6194" Y="27.4419" /> | 244 | <Position X="641.6010" Y="27.4419" /> |
211 | <Scale ScaleX="1.0000" ScaleY="1.0000" /> | 245 | <Scale ScaleX="1.0000" ScaleY="1.0000" /> |
212 | <CColor A="255" R="255" G="255" B="255" /> | 246 | <CColor A="255" R="255" G="255" B="255" /> |
213 | <PrePosition X="0.7921" Y="0.0499" /> | 247 | <PrePosition X="0.7921" Y="0.0499" /> |
... | @@ -435,25 +469,25 @@ | ... | @@ -435,25 +469,25 @@ |
435 | <AbstractNodeData Name="y_item_3" ActionTag="42590575" Tag="233" IconVisible="False" LeftMargin="558.5416" RightMargin="151.4584" TopMargin="271.8746" BottomMargin="178.1254" TouchEnable="True" ClipAble="False" BackColorAlpha="102" ColorAngle="90.0000" Scale9Width="1" Scale9Height="1" ctype="PanelObjectData"> | 469 | <AbstractNodeData Name="y_item_3" ActionTag="42590575" Tag="233" IconVisible="False" LeftMargin="558.5416" RightMargin="151.4584" TopMargin="271.8746" BottomMargin="178.1254" TouchEnable="True" ClipAble="False" BackColorAlpha="102" ColorAngle="90.0000" Scale9Width="1" Scale9Height="1" ctype="PanelObjectData"> |
436 | <Size X="100.0000" Y="100.0000" /> | 470 | <Size X="100.0000" Y="100.0000" /> |
437 | <Children> | 471 | <Children> |
438 | <AbstractNodeData Name="icon" ActionTag="1181012539" Tag="240" IconVisible="False" LeftMargin="9.9999" RightMargin="10.0001" TopMargin="7.2831" BottomMargin="12.7169" ctype="SpriteObjectData"> | 472 | <AbstractNodeData Name="icon" ActionTag="1181012539" Tag="240" IconVisible="False" LeftMargin="3.1534" RightMargin="-11.1534" TopMargin="-6.0118" BottomMargin="1.0118" ctype="SpriteObjectData"> |
439 | <Size X="80.0000" Y="80.0000" /> | 473 | <Size X="108.0000" Y="105.0000" /> |
440 | <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> | 474 | <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> |
441 | <Position X="49.9999" Y="52.7169" /> | 475 | <Position X="57.1534" Y="53.5118" /> |
442 | <Scale ScaleX="1.0000" ScaleY="1.0000" /> | 476 | <Scale ScaleX="0.6000" ScaleY="0.6000" /> |
443 | <CColor A="255" R="255" G="255" B="255" /> | 477 | <CColor A="255" R="255" G="255" B="255" /> |
444 | <PrePosition X="0.5000" Y="0.5272" /> | 478 | <PrePosition X="0.5715" Y="0.5351" /> |
445 | <PreSize X="0.8000" Y="0.8000" /> | 479 | <PreSize X="1.0800" Y="1.0500" /> |
446 | <FileData Type="Normal" Path="icon/600001.png" Plist="" /> | 480 | <FileData Type="Normal" Path="ui/Activity/icon_activity_vip_bg_2.png" Plist="" /> |
447 | <BlendFunc Src="1" Dst="771" /> | 481 | <BlendFunc Src="1" Dst="771" /> |
448 | </AbstractNodeData> | 482 | </AbstractNodeData> |
449 | <AbstractNodeData Name="txt" ActionTag="-201570632" Tag="235" IconVisible="False" LeftMargin="24.8318" RightMargin="15.1682" TopMargin="54.6606" BottomMargin="15.3394" FontSize="24" LabelText="2000" HorizontalAlignmentType="HT_Center" VerticalAlignmentType="VT_Center" OutlineEnabled="True" ShadowOffsetX="2.0000" ShadowOffsetY="-2.0000" ctype="TextObjectData"> | 483 | <AbstractNodeData Name="txt" ActionTag="-201570632" Tag="235" IconVisible="False" LeftMargin="-30.6682" RightMargin="-40.3318" TopMargin="54.6606" BottomMargin="15.3394" FontSize="24" LabelText="随机宠物钥匙X1" HorizontalAlignmentType="HT_Center" VerticalAlignmentType="VT_Center" OutlineEnabled="True" ShadowOffsetX="2.0000" ShadowOffsetY="-2.0000" ctype="TextObjectData"> |
450 | <Size X="60.0000" Y="30.0000" /> | 484 | <Size X="171.0000" Y="30.0000" /> |
451 | <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> | 485 | <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> |
452 | <Position X="54.8318" Y="30.3394" /> | 486 | <Position X="54.8318" Y="30.3394" /> |
453 | <Scale ScaleX="1.0000" ScaleY="1.0000" /> | 487 | <Scale ScaleX="1.0000" ScaleY="1.0000" /> |
454 | <CColor A="255" R="255" G="255" B="255" /> | 488 | <CColor A="255" R="255" G="255" B="255" /> |
455 | <PrePosition X="0.5483" Y="0.3034" /> | 489 | <PrePosition X="0.5483" Y="0.3034" /> |
456 | <PreSize X="0.6000" Y="0.3000" /> | 490 | <PreSize X="1.7100" Y="0.3000" /> |
457 | <FontResource Type="Normal" Path="ui/font/fangzhengcuyuan.ttf" Plist="" /> | 491 | <FontResource Type="Normal" Path="ui/font/fangzhengcuyuan.ttf" Plist="" /> |
458 | <OutlineColor A="255" R="30" G="144" B="255" /> | 492 | <OutlineColor A="255" R="30" G="144" B="255" /> |
459 | <ShadowColor A="255" R="110" G="110" B="110" /> | 493 | <ShadowColor A="255" R="110" G="110" B="110" /> | ... | ... |
... | @@ -41,7 +41,7 @@ | ... | @@ -41,7 +41,7 @@ |
41 | <CColor A="255" R="255" G="255" B="255" /> | 41 | <CColor A="255" R="255" G="255" B="255" /> |
42 | <PrePosition X="0.5052" Y="0.4913" /> | 42 | <PrePosition X="0.5052" Y="0.4913" /> |
43 | <PreSize X="0.7476" Y="0.5813" /> | 43 | <PreSize X="0.7476" Y="0.5813" /> |
44 | <FileData Type="Normal" Path="ui/Activity/img_activity_vip_daily.png" Plist="" /> | 44 | <FileData Type="Default" Path="Default/Sprite.png" Plist="" /> |
45 | <BlendFunc Src="1" Dst="771" /> | 45 | <BlendFunc Src="1" Dst="771" /> |
46 | </AbstractNodeData> | 46 | </AbstractNodeData> |
47 | <AbstractNodeData Name="bg_activity_vip_daily_title_64" ActionTag="-1872609804" Tag="448" IconVisible="False" LeftMargin="71.4066" RightMargin="78.5934" TopMargin="2.5289" BottomMargin="457.4711" ctype="SpriteObjectData"> | 47 | <AbstractNodeData Name="bg_activity_vip_daily_title_64" ActionTag="-1872609804" Tag="448" IconVisible="False" LeftMargin="71.4066" RightMargin="78.5934" TopMargin="2.5289" BottomMargin="457.4711" ctype="SpriteObjectData"> | ... | ... |

5.4 KB

2.87 KB

3.91 KB
... | @@ -57,6 +57,40 @@ | ... | @@ -57,6 +57,40 @@ |
57 | <PreSize X="0.5889" Y="0.9491" /> | 57 | <PreSize X="0.5889" Y="0.9491" /> |
58 | <FileData Type="Normal" Path="ui/Activity/shanghai_ctcc/bg_gift_month.png" Plist="" /> | 58 | <FileData Type="Normal" Path="ui/Activity/shanghai_ctcc/bg_gift_month.png" Plist="" /> |
59 | </AbstractNodeData> | 59 | </AbstractNodeData> |
60 | <AbstractNodeData Name="Image_3" ActionTag="-703146118" Tag="138" IconVisible="False" LeftMargin="97.8220" RightMargin="605.1780" TopMargin="327.3920" BottomMargin="128.6080" LeftEage="35" RightEage="35" TopEage="31" BottomEage="31" Scale9OriginX="35" Scale9OriginY="31" Scale9Width="37" Scale9Height="32" ctype="ImageViewObjectData"> | ||
61 | <Size X="107.0000" Y="94.0000" /> | ||
62 | <Children> | ||
63 | <AbstractNodeData Name="Image_4" ActionTag="-108830727" Tag="139" IconVisible="False" LeftMargin="3.2471" RightMargin="3.7529" TopMargin="-11.6169" BottomMargin="5.6169" LeftEage="33" RightEage="33" TopEage="33" BottomEage="33" Scale9OriginX="33" Scale9OriginY="33" Scale9Width="34" Scale9Height="34" ctype="ImageViewObjectData"> | ||
64 | <Size X="100.0000" Y="100.0000" /> | ||
65 | <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> | ||
66 | <Position X="53.2471" Y="55.6169" /> | ||
67 | <Scale ScaleX="1.0000" ScaleY="1.0000" /> | ||
68 | <CColor A="255" R="255" G="255" B="255" /> | ||
69 | <PrePosition X="0.4976" Y="0.5917" /> | ||
70 | <PreSize X="0.9346" Y="1.0638" /> | ||
71 | <FileData Type="Normal" Path="ui/Activity/icon_activity_vip_bg_1.png" Plist="" /> | ||
72 | </AbstractNodeData> | ||
73 | <AbstractNodeData Name="Text_1" ActionTag="-1352944311" Tag="140" IconVisible="False" LeftMargin="-44.2517" RightMargin="-43.7483" TopMargin="57.7003" BottomMargin="6.2997" FontSize="24" LabelText="随机宠物技能石X1" OutlineEnabled="True" ShadowOffsetX="2.0000" ShadowOffsetY="-2.0000" ctype="TextObjectData"> | ||
74 | <Size X="195.0000" Y="30.0000" /> | ||
75 | <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> | ||
76 | <Position X="53.2483" Y="21.2997" /> | ||
77 | <Scale ScaleX="1.0000" ScaleY="1.0000" /> | ||
78 | <CColor A="255" R="255" G="255" B="255" /> | ||
79 | <PrePosition X="0.4976" Y="0.2266" /> | ||
80 | <PreSize X="1.8224" Y="0.3191" /> | ||
81 | <FontResource Type="Normal" Path="ui/font/fangzhengcuyuan.ttf" Plist="" /> | ||
82 | <OutlineColor A="255" R="30" G="144" B="255" /> | ||
83 | <ShadowColor A="255" R="110" G="110" B="110" /> | ||
84 | </AbstractNodeData> | ||
85 | </Children> | ||
86 | <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> | ||
87 | <Position X="151.3220" Y="175.6080" /> | ||
88 | <Scale ScaleX="1.0000" ScaleY="1.0000" /> | ||
89 | <CColor A="255" R="255" G="255" B="255" /> | ||
90 | <PrePosition X="0.1868" Y="0.3193" /> | ||
91 | <PreSize X="0.1321" Y="0.1709" /> | ||
92 | <FileData Type="Normal" Path="ui/Activity/icon_activity_vip_bg.png" Plist="" /> | ||
93 | </AbstractNodeData> | ||
60 | <AbstractNodeData Name="Image_57" ActionTag="-734408069" Tag="982" IconVisible="False" LeftMargin="409.0528" RightMargin="-17.0528" TopMargin="97.3033" BottomMargin="-69.3033" LeftEage="137" RightEage="137" TopEage="172" BottomEage="172" Scale9OriginX="137" Scale9OriginY="172" Scale9Width="144" Scale9Height="178" ctype="ImageViewObjectData"> | 94 | <AbstractNodeData Name="Image_57" ActionTag="-734408069" Tag="982" IconVisible="False" LeftMargin="409.0528" RightMargin="-17.0528" TopMargin="97.3033" BottomMargin="-69.3033" LeftEage="137" RightEage="137" TopEage="172" BottomEage="172" Scale9OriginX="137" Scale9OriginY="172" Scale9Width="144" Scale9Height="178" ctype="ImageViewObjectData"> |
61 | <Size X="418.0000" Y="522.0000" /> | 95 | <Size X="418.0000" Y="522.0000" /> |
62 | <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> | 96 | <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> |
... | @@ -81,7 +115,7 @@ | ... | @@ -81,7 +115,7 @@ |
81 | <FileData Type="Normal" Path="common/btn_green02_s.png" Plist="" /> | 115 | <FileData Type="Normal" Path="common/btn_green02_s.png" Plist="" /> |
82 | <BlendFunc Src="1" Dst="771" /> | 116 | <BlendFunc Src="1" Dst="771" /> |
83 | </AbstractNodeData> | 117 | </AbstractNodeData> |
84 | <AbstractNodeData Name="Text_2" ActionTag="-295270225" Tag="42" IconVisible="False" LeftMargin="26.5716" RightMargin="26.4284" TopMargin="14.2663" BottomMargin="14.7337" FontSize="26" LabelText="49元包月" ShadowOffsetX="2.0000" ShadowOffsetY="-2.0000" ctype="TextObjectData"> | 118 | <AbstractNodeData Name="txt" ActionTag="-295270225" Tag="42" IconVisible="False" LeftMargin="26.5716" RightMargin="26.4284" TopMargin="14.2663" BottomMargin="14.7337" FontSize="26" LabelText="49元包月" ShadowOffsetX="2.0000" ShadowOffsetY="-2.0000" ctype="TextObjectData"> |
85 | <Size X="109.0000" Y="31.0000" /> | 119 | <Size X="109.0000" Y="31.0000" /> |
86 | <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> | 120 | <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> |
87 | <Position X="81.0716" Y="30.2337" /> | 121 | <Position X="81.0716" Y="30.2337" /> |
... | @@ -485,25 +519,25 @@ | ... | @@ -485,25 +519,25 @@ |
485 | <AbstractNodeData Name="y_item_3" ActionTag="42590575" Tag="233" IconVisible="False" LeftMargin="559.5467" RightMargin="150.4533" TopMargin="276.6342" BottomMargin="173.3658" TouchEnable="True" ClipAble="False" BackColorAlpha="102" ColorAngle="90.0000" Scale9Width="1" Scale9Height="1" ctype="PanelObjectData"> | 519 | <AbstractNodeData Name="y_item_3" ActionTag="42590575" Tag="233" IconVisible="False" LeftMargin="559.5467" RightMargin="150.4533" TopMargin="276.6342" BottomMargin="173.3658" TouchEnable="True" ClipAble="False" BackColorAlpha="102" ColorAngle="90.0000" Scale9Width="1" Scale9Height="1" ctype="PanelObjectData"> |
486 | <Size X="100.0000" Y="100.0000" /> | 520 | <Size X="100.0000" Y="100.0000" /> |
487 | <Children> | 521 | <Children> |
488 | <AbstractNodeData Name="icon" ActionTag="1181012539" Tag="240" IconVisible="False" LeftMargin="9.9999" RightMargin="10.0001" TopMargin="7.2831" BottomMargin="12.7169" ctype="SpriteObjectData"> | 522 | <AbstractNodeData Name="icon" ActionTag="1181012539" Tag="240" IconVisible="False" LeftMargin="0.7331" RightMargin="-8.7331" TopMargin="-6.4001" BottomMargin="1.4001" ctype="SpriteObjectData"> |
489 | <Size X="80.0000" Y="80.0000" /> | 523 | <Size X="108.0000" Y="105.0000" /> |
490 | <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> | 524 | <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> |
491 | <Position X="49.9999" Y="52.7169" /> | 525 | <Position X="54.7331" Y="53.9001" /> |
492 | <Scale ScaleX="1.0000" ScaleY="1.0000" /> | 526 | <Scale ScaleX="0.6000" ScaleY="0.6000" /> |
493 | <CColor A="255" R="255" G="255" B="255" /> | 527 | <CColor A="255" R="255" G="255" B="255" /> |
494 | <PrePosition X="0.5000" Y="0.5272" /> | 528 | <PrePosition X="0.5473" Y="0.5390" /> |
495 | <PreSize X="0.8000" Y="0.8000" /> | 529 | <PreSize X="1.0800" Y="1.0500" /> |
496 | <FileData Type="Normal" Path="icon/600001.png" Plist="" /> | 530 | <FileData Type="Normal" Path="ui/Activity/icon_activity_vip_bg_2.png" Plist="" /> |
497 | <BlendFunc Src="1" Dst="771" /> | 531 | <BlendFunc Src="1" Dst="771" /> |
498 | </AbstractNodeData> | 532 | </AbstractNodeData> |
499 | <AbstractNodeData Name="txt" ActionTag="-201570632" Tag="235" IconVisible="False" LeftMargin="24.8318" RightMargin="15.1682" TopMargin="54.6606" BottomMargin="15.3394" FontSize="24" LabelText="2000" HorizontalAlignmentType="HT_Center" VerticalAlignmentType="VT_Center" OutlineEnabled="True" ShadowOffsetX="2.0000" ShadowOffsetY="-2.0000" ctype="TextObjectData"> | 533 | <AbstractNodeData Name="txt" ActionTag="-201570632" Tag="235" IconVisible="False" LeftMargin="-30.6682" RightMargin="-40.3318" TopMargin="54.6606" BottomMargin="15.3394" FontSize="24" LabelText="随机宠物钥匙X1" HorizontalAlignmentType="HT_Center" VerticalAlignmentType="VT_Center" OutlineEnabled="True" ShadowOffsetX="2.0000" ShadowOffsetY="-2.0000" ctype="TextObjectData"> |
500 | <Size X="60.0000" Y="30.0000" /> | 534 | <Size X="171.0000" Y="30.0000" /> |
501 | <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> | 535 | <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> |
502 | <Position X="54.8318" Y="30.3394" /> | 536 | <Position X="54.8318" Y="30.3394" /> |
503 | <Scale ScaleX="1.0000" ScaleY="1.0000" /> | 537 | <Scale ScaleX="1.0000" ScaleY="1.0000" /> |
504 | <CColor A="255" R="255" G="255" B="255" /> | 538 | <CColor A="255" R="255" G="255" B="255" /> |
505 | <PrePosition X="0.5483" Y="0.3034" /> | 539 | <PrePosition X="0.5483" Y="0.3034" /> |
506 | <PreSize X="0.6000" Y="0.3000" /> | 540 | <PreSize X="1.7100" Y="0.3000" /> |
507 | <FontResource Type="Normal" Path="ui/font/fangzhengcuyuan.ttf" Plist="" /> | 541 | <FontResource Type="Normal" Path="ui/font/fangzhengcuyuan.ttf" Plist="" /> |
508 | <OutlineColor A="255" R="30" G="144" B="255" /> | 542 | <OutlineColor A="255" R="30" G="144" B="255" /> |
509 | <ShadowColor A="255" R="110" G="110" B="110" /> | 543 | <ShadowColor A="255" R="110" G="110" B="110" /> | ... | ... |
... | @@ -77,6 +77,40 @@ | ... | @@ -77,6 +77,40 @@ |
77 | <PreSize X="0.8012" Y="0.3527" /> | 77 | <PreSize X="0.8012" Y="0.3527" /> |
78 | <FileData Type="Normal" Path="ui/Activity/tianjin_cucc/title_activity.png" Plist="" /> | 78 | <FileData Type="Normal" Path="ui/Activity/tianjin_cucc/title_activity.png" Plist="" /> |
79 | </AbstractNodeData> | 79 | </AbstractNodeData> |
80 | <AbstractNodeData Name="Image_2" ActionTag="456633830" Tag="173" IconVisible="False" LeftMargin="290.5097" RightMargin="412.4903" TopMargin="332.4286" BottomMargin="123.5714" LeftEage="35" RightEage="35" TopEage="31" BottomEage="31" Scale9OriginX="35" Scale9OriginY="31" Scale9Width="37" Scale9Height="32" ctype="ImageViewObjectData"> | ||
81 | <Size X="107.0000" Y="94.0000" /> | ||
82 | <Children> | ||
83 | <AbstractNodeData Name="Image_4" ActionTag="-53370141" Tag="174" IconVisible="False" LeftMargin="3.5287" RightMargin="3.4713" TopMargin="-8.7979" BottomMargin="2.7979" LeftEage="33" RightEage="33" TopEage="33" BottomEage="33" Scale9OriginX="33" Scale9OriginY="33" Scale9Width="34" Scale9Height="34" ctype="ImageViewObjectData"> | ||
84 | <Size X="100.0000" Y="100.0000" /> | ||
85 | <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> | ||
86 | <Position X="53.5287" Y="52.7979" /> | ||
87 | <Scale ScaleX="1.0000" ScaleY="1.0000" /> | ||
88 | <CColor A="255" R="255" G="255" B="255" /> | ||
89 | <PrePosition X="0.5003" Y="0.5617" /> | ||
90 | <PreSize X="0.9346" Y="1.0638" /> | ||
91 | <FileData Type="Normal" Path="ui/Activity/icon_activity_vip_bg_1.png" Plist="" /> | ||
92 | </AbstractNodeData> | ||
93 | <AbstractNodeData Name="Text_1" ActionTag="812821764" Tag="175" IconVisible="False" LeftMargin="-25.3318" RightMargin="-30.6682" TopMargin="52.9159" BottomMargin="15.0841" FontSize="20" LabelText="随机宠物技能石X1" OutlineEnabled="True" ShadowOffsetX="2.0000" ShadowOffsetY="-2.0000" ctype="TextObjectData"> | ||
94 | <Size X="163.0000" Y="26.0000" /> | ||
95 | <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> | ||
96 | <Position X="56.1682" Y="28.0841" /> | ||
97 | <Scale ScaleX="1.0000" ScaleY="1.0000" /> | ||
98 | <CColor A="255" R="255" G="255" B="255" /> | ||
99 | <PrePosition X="0.5249" Y="0.2988" /> | ||
100 | <PreSize X="1.5234" Y="0.2766" /> | ||
101 | <FontResource Type="Normal" Path="ui/font/fangzhengcuyuan.ttf" Plist="" /> | ||
102 | <OutlineColor A="255" R="30" G="144" B="255" /> | ||
103 | <ShadowColor A="255" R="110" G="110" B="110" /> | ||
104 | </AbstractNodeData> | ||
105 | </Children> | ||
106 | <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> | ||
107 | <Position X="344.0097" Y="170.5714" /> | ||
108 | <Scale ScaleX="1.2000" ScaleY="1.2000" /> | ||
109 | <CColor A="255" R="255" G="255" B="255" /> | ||
110 | <PrePosition X="0.4247" Y="0.3101" /> | ||
111 | <PreSize X="0.1321" Y="0.1709" /> | ||
112 | <FileData Type="Normal" Path="ui/Activity/icon_activity_vip_bg.png" Plist="" /> | ||
113 | </AbstractNodeData> | ||
80 | <AbstractNodeData Name="btn_vip_lianxu" ActionTag="518028505" Tag="69" IconVisible="False" PositionPercentXEnabled="True" LeftMargin="311.2830" RightMargin="336.7170" TopMargin="500.3858" BottomMargin="-10.3858" TouchEnable="True" FontSize="14" Scale9Enable="True" LeftEage="15" RightEage="15" TopEage="11" BottomEage="11" Scale9OriginX="15" Scale9OriginY="11" Scale9Width="132" Scale9Height="38" ShadowOffsetX="2.0000" ShadowOffsetY="-2.0000" ctype="ButtonObjectData"> | 114 | <AbstractNodeData Name="btn_vip_lianxu" ActionTag="518028505" Tag="69" IconVisible="False" PositionPercentXEnabled="True" LeftMargin="311.2830" RightMargin="336.7170" TopMargin="500.3858" BottomMargin="-10.3858" TouchEnable="True" FontSize="14" Scale9Enable="True" LeftEage="15" RightEage="15" TopEage="11" BottomEage="11" Scale9OriginX="15" Scale9OriginY="11" Scale9Width="132" Scale9Height="38" ShadowOffsetX="2.0000" ShadowOffsetY="-2.0000" ctype="ButtonObjectData"> |
81 | <Size X="162.0000" Y="60.0000" /> | 115 | <Size X="162.0000" Y="60.0000" /> |
82 | <Children> | 116 | <Children> | ... | ... |
... | @@ -63,7 +63,7 @@ | ... | @@ -63,7 +63,7 @@ |
63 | <CColor A="255" R="255" G="255" B="255" /> | 63 | <CColor A="255" R="255" G="255" B="255" /> |
64 | <PrePosition X="0.5016" Y="0.7674" /> | 64 | <PrePosition X="0.5016" Y="0.7674" /> |
65 | <PreSize X="0.2352" Y="0.1042" /> | 65 | <PreSize X="0.2352" Y="0.1042" /> |
66 | <FileData Type="Normal" Path="ui/medal/medal_item_title.png" Plist="" /> | 66 | <FileData Type="Default" Path="Default/Sprite.png" Plist="" /> |
67 | <BlendFunc Src="1" Dst="771" /> | 67 | <BlendFunc Src="1" Dst="771" /> |
68 | </AbstractNodeData> | 68 | </AbstractNodeData> |
69 | <AbstractNodeData Name="medal_name" ActionTag="-958402601" Tag="57" IconVisible="False" PositionPercentXEnabled="True" PositionPercentYEnabled="True" LeftMargin="576.8519" RightMargin="568.1481" TopMargin="209.5280" BottomMargin="472.4720" ctype="SpriteObjectData"> | 69 | <AbstractNodeData Name="medal_name" ActionTag="-958402601" Tag="57" IconVisible="False" PositionPercentXEnabled="True" PositionPercentYEnabled="True" LeftMargin="576.8519" RightMargin="568.1481" TopMargin="209.5280" BottomMargin="472.4720" ctype="SpriteObjectData"> |
... | @@ -74,7 +74,7 @@ | ... | @@ -74,7 +74,7 @@ |
74 | <CColor A="255" R="255" G="255" B="255" /> | 74 | <CColor A="255" R="255" G="255" B="255" /> |
75 | <PrePosition X="0.5034" Y="0.6826" /> | 75 | <PrePosition X="0.5034" Y="0.6826" /> |
76 | <PreSize X="0.1055" Y="0.0528" /> | 76 | <PreSize X="0.1055" Y="0.0528" /> |
77 | <FileData Type="Normal" Path="ui/medal/medal_600001.png" Plist="" /> | 77 | <FileData Type="Default" Path="Default/Sprite.png" Plist="" /> |
78 | <BlendFunc Src="1" Dst="771" /> | 78 | <BlendFunc Src="1" Dst="771" /> |
79 | </AbstractNodeData> | 79 | </AbstractNodeData> |
80 | </Children> | 80 | </Children> | ... | ... |
No preview for this file type
... | @@ -6,7 +6,6 @@ | ... | @@ -6,7 +6,6 @@ |
6 | <Folder Name="bg"> | 6 | <Folder Name="bg"> |
7 | <Image Name="bg_alert.png" /> | 7 | <Image Name="bg_alert.png" /> |
8 | <Image Name="bg_alert_title.png" /> | 8 | <Image Name="bg_alert_title.png" /> |
9 | <Image Name="bg_exit.png" /> | ||
10 | <Image Name="bg_exit_1.png" /> | 9 | <Image Name="bg_exit_1.png" /> |
11 | <Image Name="bg_exit_2.png" /> | 10 | <Image Name="bg_exit_2.png" /> |
12 | <Image Name="bg_exit_pop.png" /> | 11 | <Image Name="bg_exit_pop.png" /> |
... | @@ -82,8 +81,6 @@ | ... | @@ -82,8 +81,6 @@ |
82 | </Folder> | 81 | </Folder> |
83 | <Folder Name="common_minigame"> | 82 | <Folder Name="common_minigame"> |
84 | <Image Name="bg_game_introduce.png" /> | 83 | <Image Name="bg_game_introduce.png" /> |
85 | <Image Name="bg_game_pop.png" /> | ||
86 | <Image Name="bg_game_pop2.png" /> | ||
87 | <Image Name="btn_again.png" /> | 84 | <Image Name="btn_again.png" /> |
88 | <Image Name="btn_cancel.png" /> | 85 | <Image Name="btn_cancel.png" /> |
89 | <Image Name="btn_cancel_s.png" /> | 86 | <Image Name="btn_cancel_s.png" /> |
... | @@ -119,11 +116,6 @@ | ... | @@ -119,11 +116,6 @@ |
119 | <ExportJsonFile Name="denglu.ExportJson" /> | 116 | <ExportJsonFile Name="denglu.ExportJson" /> |
120 | </Folder> | 117 | </Folder> |
121 | <Folder Name="buff"> | 118 | <Folder Name="buff"> |
122 | <Folder Name=".svn"> | ||
123 | <File Name="all-wcprops" /> | ||
124 | <File Name="dir-prop-base" /> | ||
125 | <File Name="entries" /> | ||
126 | </Folder> | ||
127 | <Folder Name="1"> | 119 | <Folder Name="1"> |
128 | <ExportJsonFile Name="1.ExportJson" /> | 120 | <ExportJsonFile Name="1.ExportJson" /> |
129 | </Folder> | 121 | </Folder> |
... | @@ -846,8 +838,6 @@ | ... | @@ -846,8 +838,6 @@ |
846 | <Image Name="title_activity.png" /> | 838 | <Image Name="title_activity.png" /> |
847 | </Folder> | 839 | </Folder> |
848 | <Image Name="achievement_yilingqu.png" /> | 840 | <Image Name="achievement_yilingqu.png" /> |
849 | <Image Name="act_vip_flag.png" /> | ||
850 | <Image Name="activity_flag_limit.png" /> | ||
851 | <Image Name="activity_gift_icon.png" /> | 841 | <Image Name="activity_gift_icon.png" /> |
852 | <Image Name="activity_lottery_select.png" /> | 842 | <Image Name="activity_lottery_select.png" /> |
853 | <Image Name="activity_renew.png" /> | 843 | <Image Name="activity_renew.png" /> |
... | @@ -953,13 +943,14 @@ | ... | @@ -953,13 +943,14 @@ |
953 | <Image Name="btn_vip_year_s.png" /> | 943 | <Image Name="btn_vip_year_s.png" /> |
954 | <Image Name="fnt_turntable_go.png" /> | 944 | <Image Name="fnt_turntable_go.png" /> |
955 | <Image Name="fnt_turntable_tomorrow.png" /> | 945 | <Image Name="fnt_turntable_tomorrow.png" /> |
946 | <Image Name="icon_activity_vip_bg.png" /> | ||
947 | <Image Name="icon_activity_vip_bg_1.png" /> | ||
948 | <Image Name="icon_activity_vip_bg_2.png" /> | ||
956 | <Image Name="icon_coin.png" /> | 949 | <Image Name="icon_coin.png" /> |
957 | <Image Name="icon_vip_xufei.png" /> | 950 | <Image Name="icon_vip_xufei.png" /> |
958 | <Image Name="img_activity_seven_get.png" /> | 951 | <Image Name="img_activity_seven_get.png" /> |
959 | <Image Name="img_activity_seven_light.png" /> | 952 | <Image Name="img_activity_seven_light.png" /> |
960 | <Image Name="img_activity_vip_daily.png" /> | ||
961 | <Image Name="img_daily_lottery_check.png" /> | 953 | <Image Name="img_daily_lottery_check.png" /> |
962 | <Image Name="img_no_activity.png" /> | ||
963 | <Image Name="leaf01.png" /> | 954 | <Image Name="leaf01.png" /> |
964 | <Image Name="leaf02.png" /> | 955 | <Image Name="leaf02.png" /> |
965 | <Image Name="leaf03.png" /> | 956 | <Image Name="leaf03.png" /> |
... | @@ -980,8 +971,6 @@ | ... | @@ -980,8 +971,6 @@ |
980 | <Project Name="ChenghaoGetLayer.csd" Type="Layer" /> | 971 | <Project Name="ChenghaoGetLayer.csd" Type="Layer" /> |
981 | <Project Name="ChenghaoItem.csd" Type="Layer" /> | 972 | <Project Name="ChenghaoItem.csd" Type="Layer" /> |
982 | <Project Name="ChenghaoLayer.csd" Type="Layer" /> | 973 | <Project Name="ChenghaoLayer.csd" Type="Layer" /> |
983 | <Image Name="icon_1.png" /> | ||
984 | <Image Name="icon_2.png" /> | ||
985 | <Image Name="icon_3.png" /> | 974 | <Image Name="icon_3.png" /> |
986 | <Image Name="txt_title.png" /> | 975 | <Image Name="txt_title.png" /> |
987 | </Folder> | 976 | </Folder> |
... | @@ -1264,15 +1253,6 @@ | ... | @@ -1264,15 +1253,6 @@ |
1264 | <Image Name="word_ylc.png" /> | 1253 | <Image Name="word_ylc.png" /> |
1265 | <Image Name="word_ylc_1.png" /> | 1254 | <Image Name="word_ylc_1.png" /> |
1266 | </Folder> | 1255 | </Folder> |
1267 | <Folder Name="medal"> | ||
1268 | <Image Name="medal_600001.png" /> | ||
1269 | <Image Name="medal_600002.png" /> | ||
1270 | <Image Name="medal_600003.png" /> | ||
1271 | <Image Name="medal_600004.png" /> | ||
1272 | <Image Name="medal_600005.png" /> | ||
1273 | <Image Name="medal_item_title.png" /> | ||
1274 | <Image Name="medal_light_img.png" /> | ||
1275 | </Folder> | ||
1276 | <Folder Name="notice"> | 1256 | <Folder Name="notice"> |
1277 | <Image Name="bg_notice.png" /> | 1257 | <Image Name="bg_notice.png" /> |
1278 | <Project Name="NoticeItem1.csd" Type="Layer" /> | 1258 | <Project Name="NoticeItem1.csd" Type="Layer" /> |
... | @@ -1510,7 +1490,6 @@ | ... | @@ -1510,7 +1490,6 @@ |
1510 | <Image Name="bg_item_3.png" /> | 1490 | <Image Name="bg_item_3.png" /> |
1511 | <Image Name="bg_xyx.png" /> | 1491 | <Image Name="bg_xyx.png" /> |
1512 | <Image Name="bg_xyx_1.png" /> | 1492 | <Image Name="bg_xyx_1.png" /> |
1513 | <Image Name="bg_xyx_buy.png" /> | ||
1514 | <Image Name="bg_xyx_head.png" /> | 1493 | <Image Name="bg_xyx_head.png" /> |
1515 | <Image Name="bg_xyx_pk_vip_jia.png" /> | 1494 | <Image Name="bg_xyx_pk_vip_jia.png" /> |
1516 | <Image Name="bg_xyx_rank.png" /> | 1495 | <Image Name="bg_xyx_rank.png" /> | ... | ... |
... | @@ -28,14 +28,5 @@ | ... | @@ -28,14 +28,5 @@ |
28 | <LastRunType Value="Windows" /> | 28 | <LastRunType Value="Windows" /> |
29 | </Value> | 29 | </Value> |
30 | </Item> | 30 | </Item> |
31 | <Item Key="TabsParamsKey"> | ||
32 | <Value ctype="TabsInfo"> | ||
33 | <OpenedDocuments> | ||
34 | <FilePathData Path="ui/dress/PetDetail.csd" /> | ||
35 | <FilePathData Path="ui/dress/PetFeedLayer.csd" /> | ||
36 | </OpenedDocuments> | ||
37 | <ActiveDocument Path="ui/dress/PetDetail.csd" /> | ||
38 | </Value> | ||
39 | </Item> | ||
40 | </Properties> | 31 | </Properties> |
41 | </UserData> | 32 | </UserData> |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -74,6 +74,7 @@ enum USER_EVENT_TYPE | ... | @@ -74,6 +74,7 @@ enum USER_EVENT_TYPE |
74 | DAILY_EVENT_PLAY_PK_CNT = 10000024;//每日pk次数 id:0, data:次数 | 74 | DAILY_EVENT_PLAY_PK_CNT = 10000024;//每日pk次数 id:0, data:次数 |
75 | 75 | ||
76 | DAILY_EVENT_PK_ADD_EXP_CNT = 10000025;//每日pk获得exp数量 id:0, data:exp获得数量 | 76 | DAILY_EVENT_PK_ADD_EXP_CNT = 10000025;//每日pk获得exp数量 id:0, data:exp获得数量 |
77 | DAILY_EVENT_SINGLE_GAME_CNT = 10000026;//每日游戏次数 id:game_id, data:数量 | ||
77 | DAILY_EVENT_END = 19999999; | 78 | DAILY_EVENT_END = 19999999; |
78 | //---------------------------------------------------------------------------- | 79 | //---------------------------------------------------------------------------- |
79 | 80 | ||
... | @@ -113,7 +114,7 @@ enum USER_EVENT_TYPE | ... | @@ -113,7 +114,7 @@ enum USER_EVENT_TYPE |
113 | FOREVER_EVENT_FIRST_PAY = 40000007;//首充,id:pay.xml中的id | 114 | FOREVER_EVENT_FIRST_PAY = 40000007;//首充,id:pay.xml中的id |
114 | FOREVER_EVENT_GAME_SCORE = 40000008;//游戏分数 id:游戏id, data:分数 | 115 | FOREVER_EVENT_GAME_SCORE = 40000008;//游戏分数 id:游戏id, data:分数 |
115 | FOREVER_EVENT_MAIL_VERSION_REWARD = 40000009;//邮件 版本 奖励,id:邮件ID | 116 | FOREVER_EVENT_MAIL_VERSION_REWARD = 40000009;//邮件 版本 奖励,id:邮件ID |
116 | FOREVER_EVENT_FREE_GAME_ID_PAY = 40000010;//准备购买游戏,id:0, data:游戏ID | 117 | // FOREVER_EVENT_FREE_GAME_ID_PAY = 40000010;//准备购买游戏,id:0, data:游戏ID |
117 | FOREVER_EVENT_FREE_GAME_ID = 40000011;//买断的游戏,id:游戏ID | 118 | FOREVER_EVENT_FREE_GAME_ID = 40000011;//买断的游戏,id:游戏ID |
118 | FOREVER_EVENT_VIP_PAY_REWARD = 40000012;//已领取的 vip 按时间充值活动(每个时间段充值,只能领取一次),id:vip_pay_reward.xml中的id | 119 | FOREVER_EVENT_VIP_PAY_REWARD = 40000012;//已领取的 vip 按时间充值活动(每个时间段充值,只能领取一次),id:vip_pay_reward.xml中的id |
119 | FOREVER_EVENT_FIRST_GAME = 40000013;//第一次玩小游戏,id:0 | 120 | FOREVER_EVENT_FIRST_GAME = 40000013;//第一次玩小游戏,id:0 |
... | @@ -184,7 +185,7 @@ enum USER_EVENT_TYPE | ... | @@ -184,7 +185,7 @@ enum USER_EVENT_TYPE |
184 | EXPRIE_EVENT_RANK_REWARD = 90000008; //过期排行领取过奖励,id:rank_exprie_reward.xml id ,time:过期时间 | 185 | EXPRIE_EVENT_RANK_REWARD = 90000008; //过期排行领取过奖励,id:rank_exprie_reward.xml id ,time:过期时间 |
185 | EXPRIE_EVENT_RANK_GAME_CNT = 90000009; //过期排行,游戏次数,id:rank_exprie_reward.xml id ,data:次数,time:过期时间,str_data:是否领取过(有数据就是领取过) | 186 | EXPRIE_EVENT_RANK_GAME_CNT = 90000009; //过期排行,游戏次数,id:rank_exprie_reward.xml id ,data:次数,time:过期时间,str_data:是否领取过(有数据就是领取过) |
186 | 187 | ||
187 | EXPRIE_EVENT_FREE_GAME_ID = 90000010; //准备购买游戏,id:游戏ID, time:过期时间 | 188 | //EXPRIE_EVENT_FREE_GAME_ID = 90000010; //准备购买游戏,id:游戏ID, time:过期时间 |
188 | EXPRIE_EVENT_END = 99999999; | 189 | EXPRIE_EVENT_END = 99999999; |
189 | 190 | ||
190 | //---------------------------------------------------------------------------- | 191 | //---------------------------------------------------------------------------- |
... | @@ -215,6 +216,7 @@ enum E_STATISTICS_TYPE | ... | @@ -215,6 +216,7 @@ enum E_STATISTICS_TYPE |
215 | E_STATISTICS_TYPE_14 = 14;//所有玩家购买宠物钥匙个数(宠物钥匙ID) | 216 | E_STATISTICS_TYPE_14 = 14;//所有玩家购买宠物钥匙个数(宠物钥匙ID) |
216 | 217 | ||
217 | E_STATISTICS_TYPE_15 = 15;//上海电信付费(pay_id,order_number,serial_number) | 218 | E_STATISTICS_TYPE_15 = 15;//上海电信付费(pay_id,order_number,serial_number) |
219 | |||
218 | 220 | ||
219 | 221 | ||
220 | 222 | ... | ... |
... | @@ -161,9 +161,9 @@ message update_pet_msg//0,0x1001040c#更新宠物 | ... | @@ -161,9 +161,9 @@ message update_pet_msg//0,0x1001040c#更新宠物 |
161 | optional share_msg.pet_t pet = 1; | 161 | optional share_msg.pet_t pet = 1; |
162 | } | 162 | } |
163 | 163 | ||
164 | message update_pay_game_id_msg//0,0x1001040e#更新购买的小游戏 | 164 | //message update_pay_game_id_msg//0,0x1001040e#更新购买的小游戏 |
165 | { | 165 | //{ |
166 | } | 166 | //} |
167 | 167 | ||
168 | ////////////////////////////////////////////////////// | 168 | ////////////////////////////////////////////////////// |
169 | //系统消息<date start="0x10010a00" end="0x10010aff" /> | 169 | //系统消息<date start="0x10010a00" end="0x10010aff" /> | ... | ... |
... | @@ -78,7 +78,7 @@ message login_msg_res | ... | @@ -78,7 +78,7 @@ message login_msg_res |
78 | optional uint32 pet_btl_exp = 34;//出战宠物,胜点//[废弃] | 78 | optional uint32 pet_btl_exp = 34;//出战宠物,胜点//[废弃] |
79 | //optional uint32 pet_btl_time = 35;//可出战宠物,时间 | 79 | //optional uint32 pet_btl_time = 35;//可出战宠物,时间 |
80 | repeated uint32 received_duanwei_lv_reward = 36;//领取过的段位等级奖励 | 80 | repeated uint32 received_duanwei_lv_reward = 36;//领取过的段位等级奖励 |
81 | repeated uint32 free_game_id = 37;//可玩的包月小游戏 | 81 | //repeated uint32 free_game_id = 37;//可玩的包月小游戏 |
82 | repeated uint32 vip_pay_reward = 38;//vip 按时间充值活动(每个时间段充值,只能领取一次) | 82 | repeated uint32 vip_pay_reward = 38;//vip 按时间充值活动(每个时间段充值,只能领取一次) |
83 | optional uint32 pet_level_max_cnt = 40;//宠物满级数量 | 83 | optional uint32 pet_level_max_cnt = 40;//宠物满级数量 |
84 | optional uint32 shanchang_game_id = 41;//擅长游戏ID(0:无) | 84 | optional uint32 shanchang_game_id = 41;//擅长游戏ID(0:无) |
... | @@ -94,6 +94,7 @@ message login_msg_res | ... | @@ -94,6 +94,7 @@ message login_msg_res |
94 | optional uint32 pk_daily_cnt = 50;//每日已pk次数 | 94 | optional uint32 pk_daily_cnt = 50;//每日已pk次数 |
95 | 95 | ||
96 | repeated share_msg.key_val_t active_data = 51;//活动信息 key:active.xml中的id,v1:状态(0:未完成, 1:完成未领取, 2:完成已领取) | 96 | repeated share_msg.key_val_t active_data = 51;//活动信息 key:active.xml中的id,v1:状态(0:未完成, 1:完成未领取, 2:完成已领取) |
97 | repeated share_msg.key_val_t single_game_cnt = 52;//小游戏免费使用过的次数 key:小游戏id,v1:次数 | ||
97 | } | 98 | } |
98 | 99 | ||
99 | message create_role_msg//1,0x00104#创建角色 | 100 | message create_role_msg//1,0x00104#创建角色 |
... | @@ -195,6 +196,8 @@ message shanghai_dianxin_pay_msg//1,0x00353#上海电信支付成功 | ... | @@ -195,6 +196,8 @@ message shanghai_dianxin_pay_msg//1,0x00353#上海电信支付成功 |
195 | 196 | ||
196 | message shanghai_dianxin_pay_msg_res | 197 | message shanghai_dianxin_pay_msg_res |
197 | { | 198 | { |
199 | //支付,按天数领取 | ||
200 | repeated share_msg.key_val_t pay_day = 17;//v1:上一次领取时间.v2:过期时间.v3:购买的时间(秒) | ||
198 | } | 201 | } |
199 | 202 | ||
200 | message single_game_info_msg//1,0x00354#获取游戏信息 | 203 | message single_game_info_msg//1,0x00354#获取游戏信息 |
... | @@ -245,14 +248,14 @@ message get_vip_pay_reward_msg_res | ... | @@ -245,14 +248,14 @@ message get_vip_pay_reward_msg_res |
245 | { | 248 | { |
246 | } | 249 | } |
247 | 250 | ||
248 | message notify_pay_succ_single_game_msg//0,0x00359#通知小游戏购买成功 | 251 | //message notify_pay_succ_single_game_msg//0,0x00359#通知小游戏购买成功 |
249 | { | 252 | //{ |
250 | } | 253 | //} |
251 | 254 | ||
252 | message notify_pay_succ_single_game_msg_res | 255 | //message notify_pay_succ_single_game_msg_res |
253 | { | 256 | //{ |
254 | optional uint32 free_game_id = 37;//可玩的包月小游戏 | 257 | // optional uint32 free_game_id = 37;//可玩的包月小游戏 |
255 | } | 258 | //} |
256 | 259 | ||
257 | message get_peer_user_info_msg//1,0x0035a#获取对方玩家信息 | 260 | message get_peer_user_info_msg//1,0x0035a#获取对方玩家信息 |
258 | { | 261 | { | ... | ... |
... | @@ -49,7 +49,7 @@ message pay_get_id_msg_res | ... | @@ -49,7 +49,7 @@ message pay_get_id_msg_res |
49 | // optional string zfb_url_callback = 4; //支付宝回调URL | 49 | // optional string zfb_url_callback = 4; //支付宝回调URL |
50 | // optional string wx_url_callback = 5; //微信回调URL | 50 | // optional string wx_url_callback = 5; //微信回调URL |
51 | 51 | ||
52 | optional uint32 game_id = 6;//购买的游戏ID | 52 | optional uint32 game_id = 6;//废弃,购买的游戏ID |
53 | } | 53 | } |
54 | 54 | ||
55 | message pay_succ_msg//1,0x50003#购买成功 | 55 | message pay_succ_msg//1,0x50003#购买成功 | ... | ... |
-
Please register or sign in to post a comment