自定义排行榜 » 历史记录 » 版本 1
yangdefeng, 2022-06-10 10:55
| 1 | 1 | yangdefeng | |
|---|---|---|---|
| 2 | |||
| 3 | bq. [<notextile>@</notextile>main] |
||
| 4 | #say |
||
| 5 | <[[dlg_text_|text]]:保存排行数据:0:0/<notextile>@</notextile>保存数据> |
||
| 6 | <[[dlg_text_|text]]:获取本角色排名:0:64/<notextile>@</notextile>获取排名> |
||
| 7 | <[[dlg_text_|text]]:打开排行榜:0:128/<notextile>@</notextile>排行榜赋值> |
||
| 8 | <[[dlg_text_|text]]:清理排行榜:0:192/<notextile>@</notextile>清理排行榜> |
||
| 9 | |
||
| 10 | [<notextile>@</notextile>保存数据] |
||
| 11 | #act |
||
| 12 | [[mov]] s$filePath \test\test\test9.txt |
||
| 13 | [[mov]] s$rankInfo |
||
| 14 | [[inc]] s$rankInfo <$userName>| |
||
| 15 | [[inc]] s$rankInfo <$guildName>| |
||
| 16 | [[inc]] s$rankInfo <$maxDc>| |
||
| 17 | [[inc]] s$rankInfo <$level> |
||
| 18 | |
||
| 19 | %{color:lightGrey}<notextile>;--saveRankData 排序对象 排序属性 排序文件 排序规则 排序数量 排行榜表头属性 1个人,2行会--</notextile>% |
||
| 20 | [[saveRankData]] <$userName> <$maxDc> <$str(s$filePath)> 1 10 <$str(s$rankInfo)> 1 |
||
| 21 | |
||
| 22 | [<notextile>@</notextile>获取排名] |
||
| 23 | #act |
||
| 24 | [[getRank]] <$userName> \test\test\test9.txt s$myRank 1 |
||
| 25 | [[sendMsg]] 6 <$userName>:<$str(s$myRank)> |
||
| 26 | |
||
| 27 | [<notextile>@</notextile>排行榜赋值] |
||
| 28 | #act |
||
| 29 | [[mov]] s$filePath \test\test\test9.txt |
||
| 30 | [[getRank]] <$userName> s$filePath s$myRank 1 |
||
| 31 | goto <notextile>@</notextile>是否上榜 |
||
| 32 | [[getRankFirst]] s$filePath s$currPlayer 1 |
||
| 33 | [[mov]] s$currSayOk <playUserModel:<$str(s$currPlayer)>:860:100:7:0.5>\ |
||
| 34 | [[mov]] s$width 70|220|100|100|100 |
||
| 35 | goto <notextile>@</notextile>显示界面 |
||
| 36 | |
||
| 37 | #if |
||
| 38 | [[equal]] <$str(s$currPlayer)> |
||
| 39 | #act |
||
| 40 | [[sendMsg]] 6 尚未创建排行数据信息 |
||
| 41 | |
||
| 42 | [<notextile>@</notextile>显示界面] |
||
| 43 | #if |
||
| 44 | #act |
||
| 45 | [[openMerchantBigDlg]] nwtest_paihangbang_ct 4 0 0 1 -10 -100 |
||
| 46 | #say |
||
| 47 | <dontclearlist:等级排行>\ |
||
| 48 | %{color:lightGrey}<notextile>;--rankView 排行文件 排行名称 排行列表高度 各列宽度(|分隔) x坐标 y坐标 个人或行会 选中图片 间隔图片 单条高度 字号 文字颜色(选中,未选中) 前三名图标(,分隔)--</notextile>% |
||
| 49 | <rankView:<$str(s$filePath)>:等级排行:550:<$str(s$width)>:260:150:1:renwu_xhuanzhong01:nwtest_paihangbang_xinxifenge:100:30:149,158:lc_rank_1,lc_rank_2,lc_rank_3/<notextile>@</notextile>actRank1>\ |
||
| 50 | <[[dlg_img_|img]]:lc_paihangbang_zi:700:100>\ |
||
| 51 | <[[dlg_imgButton_]]|imgButton]]:anniu_hui:1140:800:查看/<notextile>@</notextile>显示当前玩家装备面板>\ |
||
| 52 | <[[dlg_img_|img]]:lc_paihangbang_dk:453:803>\ |
||
| 53 | <[[dlg_text_|text]]:我的排名::320:810>\ |
||
| 54 | <[[dlg_text_|text]]:<$str(s$myRank)>:485:810>\ |
||
| 55 | <[[dlg_img_|img]]:lc_paihangbang_dk:810:803>\ |
||
| 56 | <[[dlg_text_|text]]:我的行会::670:810>\ |
||
| 57 | <[[dlg_text_|text]]:<$guildname>:840:810>\ |
||
| 58 | <$str(s$currSayOk)> |
||
| 59 | |
||
| 60 | [<notextile>@</notextile>actRank1] |
||
| 61 | #act |
||
| 62 | %{color:lightGrey}<notextile>;--该触发器返回变量srankname,即本次点击的玩家名称--</notextile>% |
||
| 63 | [[mov]] s$currPlayer <$str(srankname)> |
||
| 64 | [[mov]] s$currSayOk <playUserModel:<$str(s$currPlayer)>:860:100:7:0.5>\ |
||
| 65 | goto <notextile>@</notextile>显示界面 |
||
| 66 | |
||
| 67 | %{color:lightGrey}<notextile>;--查看玩家是否上榜---------------------------------</notextile>% |
||
| 68 | [<notextile>@</notextile>是否上榜] |
||
| 69 | #or |
||
| 70 | [[equal]] <$str(s$myRank)> |
||
| 71 | [[equal]] <$str(s$myRank)> 0 |
||
| 72 | #act |
||
| 73 | [[mov]] s$myRank 未上榜 |
||
| 74 | |
||
| 75 | %{color:lightGrey}<notextile>;--查看榜中选中玩家---------------------------------</notextile>% |
||
| 76 | [<notextile>@</notextile>显示当前玩家装备面板] |
||
| 77 | #act |
||
| 78 | [[viewPlayer]] <$str(s$currPlayer)> |
||
| 79 | |
||
| 80 | [<notextile>@</notextile>清理排行榜] |
||
| 81 | #act |
||
| 82 | [[clearFile]] \test\test\test9.txt |