You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

537 lines
19 KiB

  1. local DEEP_COL1 = cc.c3b(0x0b, 0x2d, 0x67)
  2. local WEAK_COL1 = cc.c3b(0xf8, 0xee, 0xc1)
  3. local BG_W = 332
  4. local BG_H = 600
  5. local scheduler = require("luaScript.ModuleEapSdk.SdkSocket.scheduler")
  6. local BaseLayer = require("luaScript.ModuleEapSdk.BaseLayers.BaseLayer")
  7. local LayerRank = EapClass("LayerRank", BaseLayer)
  8. function LayerRank.createWithData(__node, __zorder)
  9. local layer = LayerRank.new()
  10. layer.m_parent = __node
  11. __node:addChild(layer, __zorder)
  12. return layer
  13. end
  14. function LayerRank:myShow()
  15. -- self:addListener(true)
  16. self:initData()
  17. self:initUI()
  18. end
  19. function LayerRank:myClose()
  20. end
  21. function LayerRank:initData()
  22. self.m_curSel = 1
  23. self.m_curType = 1 --1:积分赛排行 2:亲友排行
  24. self.m_matchIDs = {} --matchid数组
  25. self.m_menuItems = {}
  26. self.scrollView = nil
  27. end
  28. function LayerRank:initUI()
  29. self.imgPath = {
  30. "res/ModuleEapSdk/eapsdk_img_null.png",
  31. "res/ModuleEapSdk/eapsdk_public_back_bg6.png",
  32. "res/ModuleEapSdk/eapsdk_public_back_bg4.png",
  33. "res/ModuleEapSdk/eapsdk_bg_bj_sp1.png",
  34. "res/ModuleEapSdk/eapsdk_img_matchIcon.png", --5
  35. "res/ModuleEapSdk/eapsdk_rule_img_title.png",
  36. "res/ModuleEapSdk/eapsdk_img_leftBG.png",
  37. "res/ModuleEapSdk/eapsdk_rule_img_title2.png",
  38. "res/ModuleEapSdk/Eap_Score/eapsdk_img_scoreRankTitle.png",
  39. "res/ModuleEapSdk/Eap_Score/eapsdk_img_pageBG.png", --10
  40. "res/ModuleEapSdk/Eap_Score/eapsdk_btn_scoreRank1.png",
  41. "res/ModuleEapSdk/Eap_Score/eapsdk_btn_scoreRank2.png",
  42. "res/ModuleEapSdk/Eap_Score/eapsdk_btn_winRank1.png",
  43. "res/ModuleEapSdk/Eap_Score/eapsdk_btn_winRank2.png",
  44. "res/ModuleEapSdk/Eap_Score/eapsdk_img_ranklistTitle.png", --15
  45. "res/ModuleEapSdk/Eap_Score/eapsdk_img_ranklistBG1.png",
  46. "res/ModuleEapSdk/Eap_Score/eapsdk_img_ranklistBG2.png",
  47. "res/ModuleEapSdk/Eap_Score/eapsdk_rank_img_tips.png",
  48. }
  49. local fix_x = display.width
  50. local fix_y = display.cy
  51. local imgBack2 = G_EapAbbreviation.createImageView(self.imgPath[1], self, cc.p(fix_x-896, fix_y), true, 0, 4101, cc.p(0, 0.5))
  52. imgBack2:setSize(cc.size(BG_W, BG_H))
  53. self.imgBack2 = imgBack2
  54. local imgBack3 = G_EapAbbreviation.createImageView(self.imgPath[7], imgBack2, cc.p(0, 0), false, 0, 4101, cc.p(0, 0))
  55. imgBack3:setScale(0.6)
  56. local imgTitle = G_EapAbbreviation.createImageView(self.imgPath[5], imgBack2, cc.p(BG_W/4+10, BG_H-30), false, 3, 4101, cc.p(0.5, 1))
  57. imgTitle:setScale(0.4)
  58. self.imgTitleRule = G_EapAbbreviation.createImageView(self.imgPath[8], imgBack2, cc.p(3*BG_W/4-10, BG_H-70), false, 3, 4101, cc.p(0.5, 1))
  59. self.imgTitleRule:setScale(0.6)
  60. --排行榜title
  61. self.imgTitleRule1 = G_EapAbbreviation.createImageView(self.imgPath[9], imgBack2, cc.p(3*BG_W/4-10, BG_H-20), false, 3, 4101, cc.p(0.5, 1))
  62. self.imgTitleRule1:setScale(0.65)
  63. --大列表
  64. -- self.scrollBig = ccui.ScrollView:create()
  65. -- self.inner_h = 430 + 130 + 100
  66. -- self.scrollBig:setBounceEnabled(false)
  67. -- self.scrollBig:setTouchEnabled(true)
  68. -- if self.scrollBig.hideAllBar then
  69. -- self.scrollBig:hideAllBar()
  70. -- end
  71. -- self.scrollBig:setSize(cc.size(BG_W, BG_H-130))
  72. -- self.scrollBig:setPosition(cc.p(0, 0))
  73. -- self.scrollBig:setInnerContainerSize(cc.size(BG_W, self.inner_h))
  74. -- imgBack2:addChild(self.scrollBig, 4)
  75. self.scrollBig = cc.Node:create()
  76. self.inner_h = 430 + 130 + 100
  77. self.scrollBig:setPosition(cc.p(0, BG_H-130-self.inner_h))
  78. imgBack2:addChild(self.scrollBig, 4)
  79. local init_x = 27.5
  80. local offY = self.inner_h-30
  81. --切换积分赛,排行榜
  82. --切换积分赛,大赢家排行榜
  83. local btnMenus1 = cc.Node:create()
  84. btnMenus1:setPosition(cc.p(166, offY))
  85. self.scrollBig:addChild(btnMenus1)
  86. self.btnScore = ccui.ImageView:create(self.imgPath[12])
  87. self.btnScore:setPosition(cc.p(-70, 0))
  88. btnMenus1:addChild(self.btnScore)
  89. addButtonListener(self.btnScore, function()
  90. G_EapSocketLogin.request_markLog(MARK_LOG10006)
  91. print("self.btnScore clicked ========= ")
  92. self.btnScore:setTouchEnabled(false)
  93. self.btnWin:setTouchEnabled(true)
  94. self.btnScore:loadTexture(self.imgPath[12])
  95. self.btnWin:loadTexture(self.imgPath[13])
  96. self.m_curType = 1
  97. self:refreshRankList(self.m_matchIDs[self.m_curSel])
  98. end)
  99. self.btnWin = ccui.ImageView:create(self.imgPath[13])
  100. self.btnWin:setPosition(cc.p(70, 0))
  101. btnMenus1:addChild(self.btnWin)
  102. addButtonListener(self.btnWin, function()
  103. G_EapSocketLogin.request_markLog(MARK_LOG10005)
  104. print("self.btnWin clicked ========= ")
  105. self.btnScore:setTouchEnabled(true)
  106. self.btnWin:setTouchEnabled(false)
  107. self.btnScore:loadTexture(self.imgPath[11])
  108. self.btnWin:loadTexture(self.imgPath[14])
  109. self.m_curType = 2
  110. self:refreshRankList(self.m_matchIDs[self.m_curSel])
  111. end)
  112. self.btnScore:setScale(0.6)
  113. self.btnWin:setScale(0.6)
  114. self.btnScore:setTouchEnabled(false)
  115. self.btnWin:setTouchEnabled(true)
  116. local imgBack4 = G_EapAbbreviation.createImageView(self.imgPath[15], self.scrollBig, cc.p(BG_W/2, offY-65), false, 0, 3103, cc.p(0.5, 1))
  117. imgBack4:setScale(0.6)
  118. self.imgRow = G_EapAbbreviation.createImageView(self.imgPath[10], self.scrollBig, cc.p(BG_W/2, offY-25), false, 0, 3103, cc.p(0.5, 1))
  119. self.imgRow:setScale(0.6)
  120. -- local btnMenus = G_EapAbbreviation.createMenu(imgBack2, 1, 3200, cc.p(166, 410+60))
  121. local btnMenus = cc.Node:create()
  122. btnMenus:setPosition(cc.p(BG_W/2, offY-40))
  123. self.scrollBig:addChild(btnMenus)
  124. local vecMatchInfos = {}
  125. for k,v in pairs(G_EapSdkMgr.m_matchInfos) do
  126. vecMatchInfos[#vecMatchInfos+1] = v
  127. self.m_matchIDs[#self.m_matchIDs+1] = k
  128. end
  129. self.btnMenus = btnMenus
  130. if not G_EapSdkMgr.m_pointSelGameID then
  131. btnMenus:setVisible(false)
  132. end
  133. for i=1, #vecMatchInfos do
  134. local matchItem = vecMatchInfos[i]
  135. local gameInfo = G_EapSdkMgr:getGameInfo(matchItem.GameID)
  136. local coreName1 = gameInfo and gameInfo.name or "赛事名称"..i
  137. if G_EapLabelTool.GetUTF8StrNums( coreName1 ) > 9 then
  138. coreName1 = G_EapLabelTool.GetUTF8StrByIdxNumEx(coreName1, 9)
  139. coreName1 = coreName1..".."
  140. end
  141. local item1 = self:createItemFont(btnMenus, i, coreName1)
  142. addButtonListener(item1, function()
  143. print("item1 clicked ========= ")
  144. self:setItemFontEnable(self.m_menuItems[self.m_curSel], true)
  145. self:setItemFontEnable(self.m_menuItems[i], false)
  146. self.m_curSel = i
  147. -- self.imgRow:setPositionX(45+(i-1)*150)
  148. --刷新排行榜
  149. self:refreshRankList(self.m_matchIDs[self.m_curSel])
  150. end)
  151. self.m_menuItems[#self.m_menuItems+1] = item1
  152. end
  153. for i=1,#self.m_menuItems do
  154. if i == 1 then
  155. self:setItemFontEnable(self.m_menuItems[i], false)
  156. else
  157. self:setItemFontEnable(self.m_menuItems[i], true)
  158. end
  159. end
  160. self:initSelfRank()
  161. self:initGameTips()
  162. self:refreshIcon()
  163. end
  164. function LayerRank:refreshRankList(__matchID)
  165. if not G_EapSdkMgr.m_pointSelGameID then
  166. self.btnMenus:setVisible(false)
  167. return
  168. else
  169. self.m_matchIDs = {}
  170. local index = 1
  171. for k,v in pairs(G_EapSdkMgr.m_matchInfos) do
  172. self.m_matchIDs[#self.m_matchIDs+1] = k
  173. local gameInfo = G_EapSdkMgr:getGameInfo(v.GameID)
  174. local coreName1 = gameInfo and gameInfo.name or "赛事名称"..k
  175. if G_EapLabelTool.GetUTF8StrNums( coreName1 ) > 6 then
  176. coreName1 = G_EapLabelTool.GetUTF8StrByIdxNumEx(coreName1, 6)
  177. coreName1 = coreName1..".."
  178. end
  179. self.m_menuItems[index]:setTitleText(coreName1)
  180. index = index + 1
  181. end
  182. self.btnMenus:setVisible(true)
  183. end
  184. if __matchID ~= self.m_matchIDs[self.m_curSel] then
  185. return
  186. end
  187. local __datas = nil
  188. if self.m_curType == 1 then
  189. __datas = G_EapSdkMgr.m_allRanks[__matchID]
  190. elseif self.m_curType == 2 then
  191. __datas = G_EapSdkMgr.m_friendMatchInfos[__matchID]
  192. end
  193. if __datas then
  194. table.sort(__datas, function(a,b)
  195. local rank_a = a.Rank or 0 --赛程积分
  196. local rank_b = b.Rank or 0
  197. return rank_a < rank_b
  198. end)
  199. end
  200. self:refreshSelfRank()
  201. if self.scrollView then
  202. self.scrollView:destroySelf()
  203. self.scrollView = nil
  204. end
  205. if not __datas then
  206. return
  207. end
  208. local EapListView = require("luaScript.ModuleEapSdk.GameTools.EapListView")
  209. self.scrollView = EapListView.createWithData(self.scrollBig, self)
  210. local params = {
  211. scrl_h = 245-84+50, -- 外框高度
  212. scrl_w = 332, -- 外框宽度
  213. inner_h = 245-84+50, -- 内容器高度
  214. item_h = 56, -- 元素高度
  215. }
  216. self.scrollView:setScrlParam(params)
  217. self.scrollView:setPosition(cc.p(22, 74+130+100))
  218. self.scrollView:refreshRankList(__datas)
  219. self.scrollView:setLocalZOrder(5)
  220. end
  221. function LayerRank:initItemInfo(itemNode, info)
  222. local item_h = 56
  223. local initX = 48
  224. info = info or {}
  225. itemNode.m_id = info.PID
  226. --排名
  227. if not info.Rank then
  228. info.Rank = 0
  229. end
  230. local tmpRank = info.Rank or "-"
  231. local curScore = info.Calcu or 0
  232. local blScore = info.BlScore or 0
  233. local allNum = info.AllNum or 0
  234. local reScore = info.ReScore or 0
  235. local gameCount = info.ReNum or 0
  236. local blRank = info.BlRank or 0
  237. local acRank = info.AcRank or 0
  238. local reRank = info.ReRank or 0
  239. if curScore ~= 0 then
  240. curScore = string.format("%.2f", curScore)
  241. end
  242. if blScore ~= 0 then
  243. blScore = string.format("%.2f", blScore)
  244. end
  245. local imgItemBG = G_EapAbbreviation.createImageView(self.imgPath[17], itemNode, cc.p(288/2, item_h/2))
  246. imgItemBG:setScale(0.6)
  247. --名次
  248. local title2 = tmpRank
  249. itemNode.lblRank = G_EapAbbreviation.createSystemLabel(itemNode, cc.p(initX/2, 28), title2, 12, DEEP_COL1)
  250. --昵称
  251. local userInfo = G_EapSdkMgr.m_userBaseInfos[info.PID]
  252. local nickname = userInfo and userInfo.strNickname
  253. local title1 = nickname or tostring(info.PID)
  254. if G_EapLabelTool.GetUTF8StrNums( title1 ) > 5 then
  255. title1 = G_EapLabelTool.GetUTF8StrByIdxNumEx(title1, 5)
  256. title1 = title1..".."
  257. end
  258. itemNode.lblName = G_EapAbbreviation.createSystemLabel(itemNode, cc.p(initX/2+initX, 28), title1, 12, DEEP_COL1)
  259. --赛程分
  260. local title3 = curScore
  261. itemNode.lblScore = G_EapAbbreviation.createSystemLabel(itemNode, cc.p(initX/2+initX*2, 28), title3, 12, DEEP_COL1)
  262. --平均局数
  263. local title4 = blScore
  264. itemNode.lblCount = G_EapAbbreviation.createSystemLabel(itemNode, cc.p(initX/2+initX*3, 28+8), title4, 12, DEEP_COL1)
  265. --平均局数排名
  266. title4 = "/"..blRank
  267. itemNode.lblBlRank = G_EapAbbreviation.createSystemLabel(itemNode, cc.p(initX/2+initX*3, 28-8), title4, 12, DEEP_COL1)
  268. --比赛局数
  269. local title5 = allNum
  270. itemNode.lblAllNum = G_EapAbbreviation.createSystemLabel(itemNode, cc.p(initX/2+initX*4, 28+8), title5, 12, DEEP_COL1)
  271. --比赛局数排名
  272. title5 = "/"..acRank
  273. itemNode.lblAllRank = G_EapAbbreviation.createSystemLabel(itemNode, cc.p(initX/2+initX*4, 28-8), title5, 12, DEEP_COL1)
  274. --热力局数
  275. local title6 = gameCount
  276. itemNode.lblReNum = G_EapAbbreviation.createSystemLabel(itemNode, cc.p(initX/2+initX*5, 28+8), title6, 12, DEEP_COL1)
  277. --热力局数排名
  278. title6 = "/"..reRank
  279. itemNode.lblReRank = G_EapAbbreviation.createSystemLabel(itemNode, cc.p(initX/2+initX*5, 28-8), title6, 12, DEEP_COL1)
  280. end
  281. function LayerRank:refreshItemInfo(itemNode, info, index)
  282. if not itemNode or not index or not info then
  283. return
  284. end
  285. itemNode.m_id = info.PID
  286. itemNode.infoIndex = index --数据索引
  287. itemNode.m_info = info
  288. --排名
  289. if not info.Rank then
  290. info.Rank = 0
  291. end
  292. local tmpRank = info.Rank or "-"
  293. local curScore = info.Calcu or 0
  294. local blScore = info.BlScore or 0
  295. local allNum = info.AllNum or 0
  296. local reScore = info.ReScore or 0
  297. local gameCount = info.ReNum or 0
  298. local blRank = info.BlRank or 0
  299. local acRank = info.AcRank or 0
  300. local reRank = info.ReRank or 0
  301. if curScore ~= 0 then
  302. curScore = string.format("%.2f", curScore)
  303. end
  304. if blScore ~= 0 then
  305. blScore = string.format("%.2f", blScore)
  306. end
  307. local title2 = tmpRank
  308. itemNode.lblRank:setString(title2)
  309. --昵称
  310. local userInfo = G_EapSdkMgr.m_userBaseInfos[info.PID]
  311. local nickname = userInfo and userInfo.strNickname
  312. local title1 = nickname or tostring(info.PID)
  313. if G_EapLabelTool.GetUTF8StrNums( title1 ) > 5 then
  314. title1 = G_EapLabelTool.GetUTF8StrByIdxNumEx(title1, 5)
  315. title1 = title1..".."
  316. end
  317. itemNode.lblName:setString(title1)
  318. --赛程分
  319. local title3 = curScore
  320. itemNode.lblScore:setString(title3)
  321. --平均局数
  322. local title4 = blScore
  323. itemNode.lblCount:setString(title4)
  324. --平均局数
  325. title4 = "/"..blRank
  326. itemNode.lblBlRank:setString(title4)
  327. --比赛局数
  328. local title5 = allNum
  329. itemNode.lblAllNum:setString(title5)
  330. --比赛局数
  331. title5 = "/"..acRank
  332. itemNode.lblAllRank:setString(title5)
  333. --热力局数
  334. local title6 = gameCount
  335. itemNode.lblReNum:setString(title6)
  336. --热力局数
  337. title6 = "/"..reRank
  338. itemNode.lblReRank:setString(title6)
  339. end
  340. function LayerRank:createItemFont(__parent, __index, __title)
  341. local sysFont = G_EapAbbreviation.getSystemFont()
  342. local item1 = ccui.Button:create()
  343. item1:setScale9Enabled(true)
  344. item1:setSize(cc.size(111, 50))
  345. item1:setPosition(cc.p(-95+(__index-1)*111, 0))
  346. local ttfConfig = {}
  347. ttfConfig.fontFilePath = sysFont
  348. ttfConfig.fontSize = 18
  349. ttfConfig.glyphs = cc.GLYPHCOLLECTION_DYNAMIC
  350. ttfConfig.customGlyphs = nil
  351. ttfConfig.distanceFieldEnabled = false
  352. ttfConfig.outlineSize = 0
  353. item1:setFontConfig(ttfConfig)
  354. item1:setTitleText(__title)
  355. __parent:addChild(item1)
  356. return item1
  357. end
  358. function LayerRank:setItemFontEnable(__node, __state)
  359. if __node then
  360. if __state then
  361. __node:setTitleColor(DEEP_COL1)
  362. else
  363. __node:setTitleColor(WEAK_COL1)
  364. end
  365. __node:setTouchEnabled(__state)
  366. end
  367. end
  368. --刷新个人信息
  369. function LayerRank:refreshUserInfo()
  370. if G_EapSdkMgr.m_userBaseInfos and self.scrollView then
  371. for k, v in pairs(G_EapSdkMgr.m_userBaseInfos) do
  372. local userInfo = v
  373. local item = self.scrollView:getItemByID(k)
  374. if userInfo and item then
  375. local nickname = userInfo.strNickname or tostring(userInfo.nPID) or ""
  376. if G_EapLabelTool.GetUTF8StrNums( nickname ) > 5 then
  377. nickname = G_EapLabelTool.GetUTF8StrByIdxNumEx(nickname, 5)
  378. nickname = nickname..".."
  379. end
  380. item.lblName:setString(nickname or "ID:"..k)
  381. end
  382. end
  383. end
  384. end
  385. function LayerRank:initSelfRank()
  386. local init_x = 24
  387. local imgBack5 = G_EapAbbreviation.createImageView(self.imgPath[16], self.scrollBig, cc.p(BG_W/2, 60+130+100), false, 0, 3104, cc.p(0.5, 1))
  388. imgBack5:setScale(0.6)
  389. local node_self = cc.Node:create()
  390. node_self:setPosition(cc.p(22, 10+130+100))
  391. self.scrollBig:addChild(node_self)
  392. local title1 = "-"
  393. self.lblMyRank = G_EapAbbreviation.createSystemLabel(node_self, cc.p(init_x, 28), title1, 12, DEEP_COL1)
  394. self.lblMyName = G_EapAbbreviation.createSystemLabel(node_self, cc.p(init_x+48, 28), title1, 12, DEEP_COL1)
  395. self.lblMyScore = G_EapAbbreviation.createSystemLabel(node_self, cc.p(init_x+2*48, 28), title1, 12, DEEP_COL1)
  396. self.lblMyBlScore = G_EapAbbreviation.createSystemLabel(node_self, cc.p(init_x+3*48, 28+8), title1, 12, DEEP_COL1)
  397. self.lblMyAllNum = G_EapAbbreviation.createSystemLabel(node_self, cc.p(init_x+4*48, 28+8), title1, 12, DEEP_COL1)
  398. self.lblMyReNum = G_EapAbbreviation.createSystemLabel(node_self, cc.p(init_x+5*48, 28+8), title1, 12, DEEP_COL1)
  399. self.lblMyBlRank = G_EapAbbreviation.createSystemLabel(node_self, cc.p(init_x+3*48, 28-8), title1, 12, DEEP_COL1)
  400. self.lblMyAllRank = G_EapAbbreviation.createSystemLabel(node_self, cc.p(init_x+4*48, 28-8), title1, 12, DEEP_COL1)
  401. self.lblMyReRank = G_EapAbbreviation.createSystemLabel(node_self, cc.p(init_x+5*48, 28-8), title1, 12, DEEP_COL1)
  402. end
  403. function LayerRank:refreshSelfRank()
  404. local init_x = 110+200
  405. local matchID = self.m_matchIDs[self.m_curSel]
  406. local info = G_EapSdkMgr.m_selfRank[matchID]
  407. if info then
  408. local tmpRank = info.Rank or "-"
  409. local curScore = info.Calcu or 0
  410. local blScore = info.BlScore or 0
  411. local allNum = info.AllNum or 0
  412. local reScore = info.ReScore or 0
  413. local gameCount = info.ReNum or 0
  414. local blRank = info.BlRank or 0
  415. local acRank = info.AcRank or 0
  416. local reRank = info.ReRank or 0
  417. if curScore ~= 0 then
  418. curScore = string.format("%.2f", curScore)
  419. end
  420. if blScore ~= 0 then
  421. blScore = string.format("%.2f", blScore)
  422. end
  423. local title1 = tmpRank
  424. self.lblMyRank:setString(title1)
  425. local title2 = G_EapSdkMgr.NickName or "-"
  426. if G_EapLabelTool.GetUTF8StrNums( title2 ) > 6 then
  427. title2 = G_EapLabelTool.GetUTF8StrByIdxNumEx(title2, 6)
  428. title2 = title2..".."
  429. end
  430. self.lblMyName:setString(title2)
  431. local title3 = curScore
  432. self.lblMyScore:setString(title3)
  433. local title4 = blScore
  434. self.lblMyBlScore:setString(title4)
  435. local title5 = allNum
  436. self.lblMyAllNum:setString(title5)
  437. local title6 = gameCount
  438. self.lblMyReNum:setString(title6)
  439. title4 = "/"..blRank
  440. self.lblMyBlRank:setString(title4)
  441. title5 = "/"..acRank
  442. self.lblMyAllRank:setString(title5)
  443. title6 = "/"..reRank
  444. self.lblMyReRank:setString(title6)
  445. else
  446. local title1 = "-"
  447. self.lblMyRank:setString(title1)
  448. self.lblMyName:setString(title1)
  449. self.lblMyScore:setString(title1)
  450. self.lblMyBlScore:setString(title1)
  451. self.lblMyAllNum:setString(title1)
  452. self.lblMyReNum:setString(title1)
  453. self.lblMyBlRank:setString(title1)
  454. self.lblMyAllRank:setString(title1)
  455. self.lblMyReRank:setString(title1)
  456. end
  457. end
  458. function LayerRank:initGameTips()
  459. -- self.imgGameTips = G_EapAbbreviation.createImageView(self.imgPath[18], self.scrollBig, cc.p(BG_W/2, 30), false, 0, 3104, cc.p(0.5, 0))
  460. -- self.imgGameTips:setScale(0.6)
  461. local tipStr = "多赢牌,多对局提高排名(满100局后进入排行)"
  462. G_EapAbbreviation.createSystemLabel(self.scrollBig, cc.p(BG_W/2, 130+100-15), tipStr, 15, DEEP_COL1, true)
  463. end
  464. function LayerRank:refreshIcon()
  465. local iconInfo1008 = G_EapSdkMgr:getIconInfo(CONFIG_IMG_1008) --赛事排行榜
  466. if iconInfo1008 then
  467. local url = iconInfo1008.paths[1]
  468. local saveName = iconInfo1008.categoryId..tostring(iconInfo1008.updateTime)
  469. getUserImage(url, saveName, self.imgTitleRule, cc.size(184, 24))
  470. end
  471. end
  472. return LayerRank