1141 lines
40 KiB
TypeScript
1141 lines
40 KiB
TypeScript
import GameModel from "../../core/GameModel";
|
|
import GameUtil from "../../core/GameUtil";
|
|
import FGUtil from "../../gear_2.3.4/fgui/FGUtil";
|
|
import SKDataUtil from "../../gear_2.3.4/util/SKDataUtil";
|
|
import SKUIUtil from "../../gear_2.3.4/util/SKUIUtil";
|
|
import MsgAlert from "../msg/MsgAlert";
|
|
import VIPUtil from "./VIPUtil";
|
|
|
|
export default class Ranking {
|
|
static shared: Ranking = new Ranking();
|
|
static equipBtnStart: number = 3;
|
|
static maxMenuBtnNum: number = 10;
|
|
static daoBtnStart: number = 4;
|
|
static maxMenu2BtnNum: number = 9;
|
|
main: fgui.GComponent;
|
|
|
|
listData: any = [];// 列表數據
|
|
selfData: any = [];//自己的數據
|
|
listType: number = 0;// 列表類型
|
|
raceType: number = 0;//種族類型
|
|
show() {
|
|
this.loadUI();
|
|
}
|
|
|
|
hide() {
|
|
FGUtil.dispose(this.main);
|
|
this.main = null;
|
|
}
|
|
|
|
loadUI() {
|
|
FGUtil.dispose(this.main);
|
|
this.main = fgui.UIPackage.createObject("main_ui", "sort_main").asCom;
|
|
FGUtil.root().addChild(this.main);
|
|
FGUtil.fitScreen(this.main);
|
|
FGUtil.getButton(this.main, "alert/close_btn").onClick(this.hide, this);
|
|
|
|
// 排行榜列表
|
|
let list = FGUtil.getList(this.main, "alert/list");
|
|
// 設置初始化方法
|
|
list.itemRenderer = this.initRankingItem.bind(this);
|
|
// 虛擬列表
|
|
list.setVirtual();
|
|
|
|
|
|
FGUtil.getButton(this.main, "alert/page1").onClick(() => {
|
|
this.pageInit1()
|
|
})
|
|
|
|
FGUtil.getButton(this.main, "alert/page2").onClick(() => {
|
|
this.pageInit2()
|
|
})
|
|
|
|
FGUtil.getButton(this.main, "alert/page3").onClick(() => {
|
|
this.pageInit3()
|
|
})
|
|
|
|
var titleBar = FGUtil.getComponent(this.main, "alert/title");
|
|
FGUtil.getButton(titleBar, "n29").onClick(this.noFuncTip, this);
|
|
FGUtil.getButton(titleBar, "n30").onClick(this.noFuncTip, this);
|
|
FGUtil.getButton(titleBar, "n31").onClick(this.noFuncTip, this);
|
|
FGUtil.getButton(titleBar, "n32").onClick(this.noFuncTip, this);
|
|
|
|
this.initEvent();
|
|
|
|
this.pageInit1();
|
|
}
|
|
|
|
pageInit1() {
|
|
let tree: fairygui.GTree = FGUtil.getList(this.main, "alert/menu1").asTree;
|
|
tree.collapseAll()
|
|
tree.getChild("zongheshili").asTree.treeNode.expanded = true
|
|
tree.selectNode(tree.getChild("zongheshili").asTree.treeNode)
|
|
this.liangongkuangren();
|
|
}
|
|
pageInit2() {
|
|
let tree: fairygui.GTree = FGUtil.getList(this.main, "alert/menu2").asTree;
|
|
tree.collapseAll()
|
|
tree.getChild("juedoubang").asTree.treeNode.expanded = true
|
|
tree.selectNode(tree.getChild("juedouhongming").asTree.treeNode)
|
|
this.juedoubang();
|
|
}
|
|
pageInit3() {
|
|
let tree: fairygui.GTree = FGUtil.getList(this.main, "alert/menu3").asTree;
|
|
tree.collapseAll()
|
|
tree.selectNode(tree.getChild("sanjiehaozhai").asTree.treeNode)
|
|
this.sanjiehaozhai();
|
|
}
|
|
noFuncTip() {
|
|
MsgAlert.addMsg("暫未開放");
|
|
}
|
|
initRankingItem(idx, obj: fairygui.GObject) {
|
|
let item = obj.asCom;
|
|
var info = this.listData[idx]
|
|
|
|
// 通用名次
|
|
item.getController("sort").selectedIndex = (idx < 3 ? idx + 1 : 0);
|
|
FGUtil.getTextField(item, "index").text = `${idx + 1}`;
|
|
|
|
// 通用背景
|
|
FGUtil.getControl(item, "bg").selectedIndex = idx % 2 == 0 ? 1 : 0;
|
|
|
|
if (this.listType == 0) {
|
|
// 練功狂人
|
|
FGUtil.getTextField(item, "name").text = `${info[1]}`;
|
|
FGUtil.getTextField(item, "one").color = GameUtil.getReliveColor(info[4]);
|
|
FGUtil.getTextField(item, "one").text = `${info[2]}`;
|
|
FGUtil.getTextField(item, "two").text = `0`;
|
|
item.node["type"] = 1;
|
|
item.node["roleid"] = info[0]
|
|
}
|
|
else if (this.listType == 1) {
|
|
// 超級富豪榜
|
|
FGUtil.getTextField(item, "name").text = `${info[1]}`;
|
|
FGUtil.getTextField(item, "one").color = GameUtil.getReliveColor(info[4]);
|
|
FGUtil.getTextField(item, "one").text = `${info[2]}`;
|
|
FGUtil.getTextField(item, "two").text = `${info[3]}`;
|
|
item.node["type"] = 1;
|
|
item.node["roleid"] = info[0]
|
|
}
|
|
else if (this.listType == 2) {
|
|
// 幫派總榜
|
|
FGUtil.getTextField(item, "name").text = `${info[1]}`
|
|
FGUtil.getTextField(item, "one").color = new cc.Color(87, 49, 49);;
|
|
FGUtil.getTextField(item, "one").text = `${info[2]}`;
|
|
FGUtil.getTextField(item, "two").text = `${info[3]}`;
|
|
item.node["type"] = -1;
|
|
}
|
|
else if (this.listType == 3) {
|
|
// 水陸個人
|
|
FGUtil.getTextField(item, "name").text = `${info[1]}`;
|
|
FGUtil.getTextField(item, "one").color = GameUtil.getReliveColor(info[4]);
|
|
FGUtil.getTextField(item, "one").text = `${info[4]}轉${info[5]}級`;
|
|
FGUtil.getTextField(item, "two").text = `${info[3]}`;
|
|
item.node["type"] = 1;
|
|
item.node["roleid"] = info[0]
|
|
}
|
|
else if (this.listType == 5) {
|
|
// 裝備評價
|
|
if (this.raceType == 0) {
|
|
FGUtil.getTextField(item, "name").text = `${info[0]}`;
|
|
FGUtil.getTextField(item, "one").color = new cc.Color(87, 49, 49);
|
|
FGUtil.getTextField(item, "one").text = `${info[1]}`;
|
|
FGUtil.getTextField(item, "two").text = `${info[2]}`;
|
|
}
|
|
else {
|
|
FGUtil.getTextField(item, "name").text = `${info[0]}`;
|
|
FGUtil.getTextField(item, "one").color = new cc.Color(87, 49, 49);
|
|
FGUtil.getTextField(item, "one").text = `${info[1]}`;
|
|
FGUtil.getTextField(item, "two").text = `${info[2]}`;
|
|
}
|
|
item.node["type"] = 1;
|
|
item.node["roleid"] = info[3]
|
|
}
|
|
else if (this.listType == 6) {
|
|
// 紅名榜
|
|
FGUtil.getTextField(item, "name").text = `${info[1]}`;
|
|
FGUtil.getTextField(item, "one").color = new cc.Color(87, 49, 49);
|
|
FGUtil.getTextField(item, "one").text = `${info[3]}`;
|
|
FGUtil.getTextField(item, "two").text = `${info[4]}`;
|
|
item.node["type"] = -1;
|
|
}
|
|
|
|
|
|
|
|
item.onClick(this.clickRankItem, this);
|
|
|
|
}
|
|
|
|
clickRankItem(e: Event) {
|
|
var type = 0, roleid = 0;
|
|
if (!SKDataUtil.hasProperty(e.target, "type") || !SKDataUtil.hasProperty(e.target, "roleid")) return;
|
|
roleid=e.target["roleid"]
|
|
type=e.target["type"]
|
|
if (type != -1)
|
|
GameModel.send("c2s_paihang_playerinfo", {
|
|
roleid: GameModel.player.roleid,
|
|
playerid: roleid
|
|
})
|
|
}
|
|
initEvent() {
|
|
// 按鈕列表
|
|
let menuList = FGUtil.getList(this.main, "alert/menu1");
|
|
// 綜合實力
|
|
menuList.getChild("zongheshili").onClick(this.zongheshili, this);
|
|
// 綜合實力总榜
|
|
menuList.getChild("zongheshilirenzu").onClick(this.zongheshilizongbang, this);
|
|
// 綜合實力人族
|
|
menuList.getChild("zongheshilirenzu").onClick(this.zongheshilirenzu, this);
|
|
// 綜合實力魔族
|
|
menuList.getChild("zongheshilimozu").onClick(this.zongheshilimozu, this);
|
|
// 綜合實力仙族
|
|
menuList.getChild("zongheshilixianzu").onClick(this.zongheshilixianzu, this);
|
|
// 綜合實力鬼族
|
|
menuList.getChild("zongheshiliguizu").onClick(this.zongheshiliguizu, this);
|
|
// 綜合實力龙族
|
|
menuList.getChild("zongheshililongzu").onClick(this.zongheshililongzu, this);
|
|
// 練功狂人
|
|
menuList.getChild("liangongkuangren").onClick(this.liangongkuangren, this);
|
|
// 裝備評價
|
|
menuList.getChild("zhuangbeipingjia").onClick(this.zhuangbeipingjia, this);
|
|
// 裝備評價总榜
|
|
menuList.getChild("zhuangbeipingjiazongbang").onClick(this.zhuangbeipingjiazongbang, this);
|
|
// 裝備評價人族
|
|
menuList.getChild("zhuangbeipingjiarenzu").onClick(this.zhuangbeipingjiarenzu, this);
|
|
// 裝備評價魔族
|
|
menuList.getChild("zhuangbeipingjiamozu").onClick(this.zhuangbeipingjiamozu, this);
|
|
// 裝備評價仙族
|
|
menuList.getChild("zhuangbeipingjiaxianzu").onClick(this.zhuangbeipingjiaxianzu, this);
|
|
// 裝備評價鬼族
|
|
menuList.getChild("zhuangbeipingjiaguizu").onClick(this.zhuangbeipingjiaguizu, this);
|
|
// 裝備評價龙族
|
|
menuList.getChild("zhuangbeipingjialongzu").onClick(this.zhuangbeipingjialongzu, this);
|
|
// 兵器排行
|
|
menuList.getChild("bingqipaihang").onClick(this.bingqipaihang, this);
|
|
// 兵器排行武器
|
|
menuList.getChild("bingqipaihangwuqi").onClick(this.bingqipaihangwuqi, this);
|
|
// 兵器排行衣服
|
|
menuList.getChild("bingqipaihangyifu").onClick(this.bingqipaihangyifu, this);
|
|
// 兵器排行帽子
|
|
menuList.getChild("bingqipaihangmaozi").onClick(this.bingqipaihangmaozi, this);
|
|
// 兵器排行鞋子
|
|
menuList.getChild("bingqipaihangxiezi").onClick(this.bingqipaihangxiezi, this);
|
|
// 兵器排行项链
|
|
menuList.getChild("bingqipaihangxianglian").onClick(this.bingqipaihangxianglian, this);
|
|
// 兵器排行披风
|
|
menuList.getChild("bingqipaihangpifeng").onClick(this.bingqipaihangpifeng, this);
|
|
// 兵器排行挂件
|
|
menuList.getChild("bingqipaihangguajian").onClick(this.bingqipaihangguajian, this);
|
|
// 兵器排行腰带
|
|
menuList.getChild("bingqipaihangyaodai").onClick(this.bingqipaihangyaodai, this);
|
|
// 兵器排行戒指
|
|
menuList.getChild("bingqipaihangjiezhi").onClick(this.bingqipaihangjiezhi, this);
|
|
// 召喚獸榜
|
|
menuList.getChild("zhaohuanshou").onClick(this.zhaohuanshou, this);
|
|
// 召喚獸分類
|
|
menuList.getChild("zhaohuanshoufenlei").onClick(this.zhaohuanshoufenlei, this);
|
|
// 召喚獸屬性
|
|
menuList.getChild("zhaohuanshoushuxing").onClick(this.zhaohuanshoushuxing, this);
|
|
// 孩子排行
|
|
menuList.getChild("haizipaihang").onClick(this.haizipaihang, this);
|
|
// 坐騎排行
|
|
menuList.getChild("zuoqipaihang").onClick(this.zuoqipaihang, this);
|
|
// 坐騎排行1
|
|
menuList.getChild("zuoqipaihang1").onClick(this.zuoqi1, this);
|
|
// 坐騎排行2
|
|
menuList.getChild("zuoqipaihang2").onClick(this.zuoqi2, this);
|
|
// 坐騎排行3
|
|
menuList.getChild("zuoqipaihang3").onClick(this.zuoqi3, this);
|
|
// 坐騎排行4
|
|
menuList.getChild("zuoqipaihang4").onClick(this.zuoqi4, this);
|
|
// 強力克
|
|
menuList.getChild("qianglike").onClick(this.qianglike, this);
|
|
// 強力克金
|
|
menuList.getChild("qianglikejin").onClick(this.qianglikejin, this);
|
|
// 強力克木
|
|
menuList.getChild("qianglikemu").onClick(this.qianglikemu, this);
|
|
// 強力克水
|
|
menuList.getChild("qianglikeshui").onClick(this.qianglikeshui, this);
|
|
// 強力克火
|
|
menuList.getChild("qianglikehuo").onClick(this.qianglikehuo, this);
|
|
// 強力克土
|
|
menuList.getChild("qiangliketu").onClick(this.qiangliketu, this);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 按鈕列表
|
|
let menuList2 = FGUtil.getList(this.main, "alert/menu2");
|
|
// 決鬥榜
|
|
menuList2.getChild("juedoubang").onClick(this.juedoubang, this);
|
|
// 決鬥紅名
|
|
menuList2.getChild("juedouhongming").onClick(this.juedouhongming, this);
|
|
// 決鬥捕快
|
|
menuList2.getChild("juedoubukuai").onClick(this.juedoubukuai, this);
|
|
// 證道榜
|
|
menuList2.getChild("zhengdaobang").onClick(this.zhengdaobang, this);
|
|
// 證道總榜
|
|
menuList2.getChild("zhengdaozongbang").onClick(this.zhengdaozongbang, this);
|
|
// 證道人族
|
|
menuList2.getChild("zhengdaorenzu").onClick(this.zhengdaorenzu, this);
|
|
// 證道魔族
|
|
menuList2.getChild("zhengdaomozu").onClick(this.zhengdaomozu, this);
|
|
// 證道仙族
|
|
menuList2.getChild("zhengdaoxianzu").onClick(this.zhengdaoxianzu, this);
|
|
// 證道鬼族
|
|
menuList2.getChild("zhengdaoguizu").onClick(this.zhengdaoguizu, this);
|
|
// 證道龍族
|
|
menuList2.getChild("zhengdaolongzu").onClick(this.zhengdaolongzu, this);
|
|
// 決戰長安
|
|
menuList2.getChild("juezhanchangan").onClick(this.juezhanchangan, this);
|
|
// 證道人族
|
|
menuList2.getChild("juezhanchangantaihao").onClick(this.juezhanchangantaihao, this);
|
|
// 決戰長安太皓
|
|
menuList2.getChild("juezhanchanganxiaoyao").onClick(this.juezhanchanganxiaoyao, this);
|
|
// 決戰長安红尘
|
|
menuList2.getChild("juezhanchanganhongchen").onClick(this.juezhanchanganhongchen, this);
|
|
// 決戰長安三界
|
|
menuList2.getChild("juezhanchangansanjie").onClick(this.juezhanchangansanjie, this);
|
|
// 水陸積分
|
|
menuList2.getChild("shuilujifen").onClick(this.shuilujifen, this);
|
|
// 水陸個人
|
|
menuList2.getChild("shuilugeren").onClick(this.shuilugeren, this);
|
|
// 水陸隊伍
|
|
menuList2.getChild("shuiluduiwu").onClick(this.shuiluduiwu, this);
|
|
// 獨步天下
|
|
menuList2.getChild("dubutianxia").onClick(this.dubutianxia, this);
|
|
// 獨步本服
|
|
menuList2.getChild("dububenfu").onClick(this.dububenfu, this);
|
|
// 獨步跨服
|
|
menuList2.getChild("dubukuafu").onClick(this.dubukuafu, this);
|
|
// 獨步好友
|
|
menuList2.getChild("dubuhaoyou").onClick(this.dubuhaoyou, this);
|
|
// 武曜
|
|
menuList2.getChild("wuyao").onClick(this.wuyao, this);
|
|
// 武曜真武
|
|
menuList2.getChild("wuyaozhenwu").onClick(this.wuyaozhenwu, this);
|
|
// 武曜月曜
|
|
menuList2.getChild("wuyaoyueyao").onClick(this.wuyaoyueyao, this);
|
|
// 武曜云泽
|
|
menuList2.getChild("wuyaoyunze").onClick(this.wuyaoyunze, this);
|
|
// 召喚獸比鬥
|
|
menuList2.getChild("zhaohuanshoubidou").onClick(this.zhaohuanshoubidou, this);
|
|
// 召喚獸比鬥单人
|
|
menuList2.getChild("zhanhuanshoubidoudanren").onClick(this.zhaohuanshoubidoudanren, this);
|
|
// 召喚獸比鬥组队
|
|
menuList2.getChild("zhaohuanshoubidouzudui").onClick(this.zhaohuanshoubidouzudui, this);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 按鈕列表
|
|
let menuList3 = FGUtil.getList(this.main, "alert/menu3");
|
|
// 三界豪宅
|
|
menuList3.getChild("sanjiehaozhai").onClick(this.sanjiehaozhai, this);
|
|
// 幫派實力榜
|
|
menuList3.getChild("bangpaishili").onClick(this.bangpaishili, this);
|
|
// 幫派總榜
|
|
menuList3.getChild("bangpaizongbang").onClick(this.bangpaizongbang, this);
|
|
// 幫戰排行榜
|
|
menuList3.getChild("bangzhanpaihangbang").onClick(this.bangzhanpaihangbang, this);
|
|
// 波月洞通關
|
|
menuList3.getChild("boyuedongtongguan").onClick(this.boyuedongtongguan, this);
|
|
// 幫派殺星榜
|
|
menuList3.getChild("bangpaishaxingbang").onClick(this.bangpaishaxingbang, this);
|
|
// 跨服幫戰
|
|
menuList3.getChild("kuafubangzhan").onClick(this.kuafubangzhan, this);
|
|
// 綜合財力榜
|
|
menuList3.getChild("zonghecaili").onClick(this.zonghecaili, this);
|
|
// 超級富豪榜
|
|
menuList3.getChild("chaojifuhao").onClick(this.chaojifuhao, this);
|
|
// 紅包狂人榜
|
|
menuList3.getChild("hongbaokuangren").onClick(this.hongbaokuangren, this);
|
|
// 幫派紅包榜
|
|
menuList3.getChild("bangpaihongbao").onClick(this.bangpaihongbao, this);
|
|
// 世界紅包榜
|
|
menuList3.getChild("shijiehongbao").onClick(this.shijiehongbao, this);
|
|
// 千秋功績榜
|
|
menuList3.getChild("qianqiugongji").onClick(this.qianqiugongji, this);
|
|
// 功績總榜
|
|
menuList3.getChild("gongjizongbang").onClick(this.gongjizongbang, this);
|
|
// 人物成長
|
|
menuList3.getChild("renwuchengzhang").onClick(this.renwuchengzhang, this);
|
|
// 坐騎培養
|
|
menuList3.getChild("zuoqipeiyang").onClick(this.zuoqipeiyang, this);
|
|
// 召喚獸培養
|
|
menuList3.getChild("zhaohuanshoupeiyang").onClick(this.zhaohuanshoupeiyang, this);
|
|
// 裝備打造
|
|
menuList3.getChild("zhuangbeidazao").onClick(this.zhuangbeidazao, this);
|
|
// 人物社交
|
|
menuList3.getChild("renwushejiao").onClick(this.renwushejiao, this);
|
|
// 江湖萬千
|
|
menuList3.getChild("jianghuwanqian").onClick(this.jianghuwanqian, this);
|
|
// 固定隊實力榜
|
|
menuList3.getChild("gudingduishili").onClick(this.gudingduishili, this);
|
|
// 錦繡值榜
|
|
menuList3.getChild("jinxiuzhi").onClick(this.jinxiuzhi, this);
|
|
// 雕樑畫棟榜
|
|
menuList3.getChild("diaolianghuadong").onClick(this.diaolianghuadong, this);
|
|
// 大話佳人榜
|
|
menuList3.getChild("dahuajiaren").onClick(this.dahuajiaren, this);
|
|
}
|
|
showNoRank() {
|
|
FGUtil.getControl(this.main, "alert/noList").selectedIndex = 1;
|
|
FGUtil.getControl(this.main, "alert/noPeople").selectedIndex = 0;
|
|
}
|
|
showRank() {
|
|
FGUtil.getControl(this.main, "alert/noList").selectedIndex = 0;
|
|
FGUtil.getControl(this.main, "alert/noPeople").selectedIndex = 0;
|
|
}
|
|
showNoPeople() {
|
|
FGUtil.getControl(this.main, "alert/noList").selectedIndex = 1;
|
|
FGUtil.getControl(this.main, "alert/noPeople").selectedIndex = 1;
|
|
}
|
|
showSelf() {
|
|
// 暫無自己數據
|
|
FGUtil.getControl(this.main, "alert/self").selectedIndex = 0;
|
|
}
|
|
hideSelf() {
|
|
FGUtil.getControl(this.main, "alert/self").selectedIndex = 0;
|
|
}
|
|
showSelfByRace(race) {
|
|
if (GameModel.player.race == race)
|
|
this.showSelf();
|
|
else
|
|
this.hideSelf();
|
|
}
|
|
showSelfByGang() {
|
|
if (GameModel.player.bangid > 0)
|
|
this.showSelf();
|
|
else
|
|
this.hideSelf();
|
|
}
|
|
|
|
// 綜合實力
|
|
zongheshili() {
|
|
let tree: fairygui.GTree = FGUtil.getList(this.main, "alert/menu1").asTree;
|
|
if (tree.getChild("zongheshili").asTree.treeNode.expanded) {
|
|
tree.selectNode(tree.getChild("zongheshilizongbang").asTree.treeNode)
|
|
this.zongheshilizongbang();
|
|
}
|
|
}
|
|
// 綜合實力总榜
|
|
zongheshilizongbang() {
|
|
this.changTitle("本服", "角色名稱", "種族性別", "總修為", true, false, false, false);
|
|
this.showNoRank();
|
|
this.showSelf();
|
|
}
|
|
// 綜合實力人族
|
|
zongheshilirenzu() {
|
|
this.changTitle("本服", "角色名稱", "種族性別", "總修為", true, false, false, false);
|
|
this.showNoRank();
|
|
this.showSelfByRace(1);
|
|
}
|
|
// 綜合實力魔族
|
|
zongheshilimozu() {
|
|
this.changTitle("本服", "角色名稱", "種族性別", "總修為", true, false, false, false);
|
|
this.showNoRank();
|
|
this.showSelfByRace(3);
|
|
}
|
|
// 綜合實力仙族
|
|
zongheshilixianzu() {
|
|
this.changTitle("本服", "角色名稱", "種族性別", "總修為", true, false, false, false);
|
|
this.showNoRank();
|
|
this.showSelfByRace(2);
|
|
}
|
|
// 綜合實力鬼族
|
|
zongheshiliguizu() {
|
|
this.changTitle("本服", "角色名稱", "種族性別", "總修為", true, false, false, false);
|
|
this.showNoRank();
|
|
this.showSelfByRace(4);
|
|
}
|
|
// 綜合實力龙族
|
|
zongheshililongzu() {
|
|
this.changTitle("本服", "角色名稱", "種族性別", "總修為", true, false, false, false);
|
|
this.showNoRank();
|
|
this.showSelfByRace(5);
|
|
}
|
|
// 練功狂人
|
|
liangongkuangren() {
|
|
this.changTitle("名次", "角色名稱", "等級", "兌換屬性點", false, false, false, false);
|
|
GameModel.send('c2s_ask_paihang', { nByWhat: 0 });
|
|
this.showSelf();
|
|
}
|
|
// 裝備評價
|
|
zhuangbeipingjia() {
|
|
let tree: fairygui.GTree = FGUtil.getList(this.main, "alert/menu1").asTree;
|
|
if (tree.getChild("zhuangbeipingjia").asTree.treeNode.expanded) {
|
|
tree.selectNode(tree.getChild("zhuangbeipingjiazongbang").asTree.treeNode)
|
|
this.zhuangbeipingjiazongbang();
|
|
}
|
|
}
|
|
// 裝備評價总榜
|
|
zhuangbeipingjiazongbang() {
|
|
this.changTitle("名次", "角色名稱", "種族性別", "裝備評價", false, false, false, false);
|
|
this.showSelf();
|
|
GameModel.send('c2s_ask_paihang', {
|
|
nByWhat: 5,
|
|
object: JSON.stringify({ type: 0 })
|
|
});
|
|
}
|
|
// 裝備評價人族
|
|
zhuangbeipingjiarenzu() {
|
|
this.changTitle("名次", "角色名稱", "等級", "裝備評價", false, false, false, false);
|
|
this.showSelfByRace(1);
|
|
GameModel.send('c2s_ask_paihang', {
|
|
nByWhat: 5,
|
|
object: JSON.stringify({ type: 1 })
|
|
});
|
|
}
|
|
// 裝備評價魔族
|
|
zhuangbeipingjiamozu() {
|
|
this.changTitle("名次", "角色名稱", "等級", "裝備評價", false, false, false, false);
|
|
this.showSelfByRace(3);
|
|
GameModel.send('c2s_ask_paihang', {
|
|
nByWhat: 5,
|
|
object: JSON.stringify({ type: 3 })
|
|
});
|
|
}
|
|
// 裝備評價仙族
|
|
zhuangbeipingjiaxianzu() {
|
|
this.changTitle("名次", "角色名稱", "等級", "裝備評價", false, false, false, false);
|
|
this.showSelfByRace(2);
|
|
GameModel.send('c2s_ask_paihang', {
|
|
nByWhat: 5,
|
|
object: JSON.stringify({ type: 2 })
|
|
});
|
|
}
|
|
// 裝備評價鬼族
|
|
zhuangbeipingjiaguizu() {
|
|
this.changTitle("名次", "角色名稱", "等級", "裝備評價", false, false, false, false);
|
|
this.showSelfByRace(4);
|
|
GameModel.send('c2s_ask_paihang', {
|
|
nByWhat: 5,
|
|
object: JSON.stringify({ type: 4 })
|
|
});
|
|
}
|
|
// 裝備評價龙族
|
|
zhuangbeipingjialongzu() {
|
|
this.changTitle("名次", "角色名稱", "等級", "裝備評價", false, false, false, false);
|
|
this.showSelfByRace(5);
|
|
GameModel.send('c2s_ask_paihang', {
|
|
nByWhat: 5,
|
|
object: JSON.stringify({ type: 5 })
|
|
});
|
|
}
|
|
// 兵器排行
|
|
bingqipaihang() {
|
|
let tree: fairygui.GTree = FGUtil.getList(this.main, "alert/menu1").asTree;
|
|
if (tree.getChild("bingqipaihang").asTree.treeNode.expanded) {
|
|
tree.selectNode(tree.getChild("bingqipaihangwuqi").asTree.treeNode)
|
|
this.bingqipaihangwuqi();
|
|
}
|
|
}
|
|
// 裝備評價武器
|
|
bingqipaihangwuqi() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "裝備名稱", "裝備評價", false, false, true, false);
|
|
this.showSelf();
|
|
GameModel.send('c2s_ask_paihang', {
|
|
nByWhat: 7,
|
|
object: JSON.stringify({ type: 1})
|
|
});
|
|
}
|
|
// 裝備評價衣服
|
|
bingqipaihangyifu() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "裝備名稱", "裝備評價", false, false, false, false);
|
|
this.showSelf();
|
|
GameModel.send('c2s_ask_paihang', {
|
|
nByWhat: 7,
|
|
object: JSON.stringify({ type: 3})
|
|
});
|
|
}
|
|
// 裝備評價帽子
|
|
bingqipaihangmaozi() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "裝備名稱", "裝備評價", false, false, false, false);
|
|
this.showSelf();
|
|
GameModel.send('c2s_ask_paihang', {
|
|
nByWhat: 7,
|
|
object: JSON.stringify({ type: 4})
|
|
});
|
|
}
|
|
// 裝備評價鞋子
|
|
bingqipaihangxiezi() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "裝備名稱", "裝備評價", false, false, false, false);
|
|
this.showSelf();
|
|
GameModel.send('c2s_ask_paihang', {
|
|
nByWhat: 7,
|
|
object: JSON.stringify({ type: 5})
|
|
});
|
|
}
|
|
// 裝備評價项链
|
|
bingqipaihangxianglian() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "裝備名稱", "裝備評價", false, false, false, false);
|
|
this.showSelf();
|
|
GameModel.send('c2s_ask_paihang', {
|
|
nByWhat: 7,
|
|
object: JSON.stringify({ type: 2})
|
|
});
|
|
}
|
|
// 裝備評價披风
|
|
bingqipaihangpifeng() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "裝備名稱", "裝備評價", false, false, false, false);
|
|
this.showSelf();
|
|
GameModel.send('c2s_ask_paihang', {
|
|
nByWhat: 7,
|
|
object: JSON.stringify({ type: 7})
|
|
});
|
|
}
|
|
// 裝備評價挂件
|
|
bingqipaihangguajian() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "裝備名稱", "裝備評價", false, false, false, false);
|
|
this.showSelf();
|
|
GameModel.send('c2s_ask_paihang', {
|
|
nByWhat: 7,
|
|
object: JSON.stringify({ type: 8})
|
|
});
|
|
}
|
|
// 裝備評價腰带
|
|
bingqipaihangyaodai() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "裝備名稱", "裝備評價", false, false, false, false);
|
|
this.showSelf();
|
|
GameModel.send('c2s_ask_paihang', {
|
|
nByWhat: 7,
|
|
object: JSON.stringify({ type: 9})
|
|
});
|
|
}
|
|
// 裝備評價戒指
|
|
bingqipaihangjiezhi() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "裝備名稱", "裝備評價", false, false, false, false);
|
|
this.showSelf();
|
|
GameModel.send('c2s_ask_paihang', {
|
|
nByWhat: 7,
|
|
object: JSON.stringify({ type: 13})
|
|
});
|
|
}
|
|
// 召喚獸榜
|
|
zhaohuanshou() {
|
|
let tree: fairygui.GTree = FGUtil.getList(this.main, "alert/menu1").asTree;
|
|
if (tree.getChild("zhaohuanshou").asTree.treeNode.expanded) {
|
|
tree.selectNode(tree.getChild("zhaohuanshoufenlei").asTree.treeNode)
|
|
this.zhaohuanshoufenlei();
|
|
}
|
|
}
|
|
// 召喚獸分類
|
|
zhaohuanshoufenlei() {
|
|
this.showNoRank();
|
|
this.changTitle("本服", "角色名稱", "總榜", "召喚獸評價", true, false, true, false);
|
|
this.showSelf();
|
|
}
|
|
// 召喚獸屬性
|
|
zhaohuanshoushuxing() {
|
|
this.showNoRank();
|
|
this.changTitle("本服", "角色名稱", "召喚獸", "速度", true, false, false, true);
|
|
this.showSelf();
|
|
}
|
|
// 孩子排行
|
|
haizipaihang() {
|
|
this.changTitle("本服", "角色名稱", "總榜", "孩子評分", true, false, true, false);
|
|
this.showNoRank();
|
|
this.hideSelf();
|
|
}
|
|
// 坐騎排行
|
|
zuoqipaihang() {
|
|
let tree: fairygui.GTree = FGUtil.getList(this.main, "alert/menu1").asTree;
|
|
if (tree.getChild("zuoqipaihang").asTree.treeNode.expanded) {
|
|
tree.selectNode(tree.getChild("zuoqipaihang1").asTree.treeNode)
|
|
this.zuoqi1();
|
|
}
|
|
}
|
|
// 坐騎一
|
|
zuoqi1() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "坐騎名稱", "坐騎評分", false, false, false, false);
|
|
this.hideSelf();
|
|
}
|
|
// 坐騎二
|
|
zuoqi2() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "坐騎名稱", "坐騎評分", false, false, false, false);
|
|
this.hideSelf();
|
|
}
|
|
// 坐騎三
|
|
zuoqi3() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "坐騎名稱", "坐騎評分", false, false, false, false);
|
|
this.hideSelf();
|
|
}
|
|
// 坐騎四
|
|
zuoqi4() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "坐騎名稱", "坐騎評分", false, false, false, false);
|
|
this.hideSelf();
|
|
}
|
|
// 強力克
|
|
qianglike() {
|
|
let tree: fairygui.GTree = FGUtil.getList(this.main, "alert/menu1").asTree;
|
|
if (tree.getChild("qianglike").asTree.treeNode.expanded) {
|
|
tree.selectNode(tree.getChild("qianglikejin").asTree.treeNode)
|
|
this.qianglikejin();
|
|
}
|
|
}
|
|
// 強力克金
|
|
qianglikejin() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "套裝", "種族", false, false, false, false);
|
|
this.showSelf();
|
|
}
|
|
// 強力克木
|
|
qianglikemu() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "套裝", "種族", false, false, false, false);
|
|
this.showSelf();
|
|
}
|
|
// 強力克水
|
|
qianglikeshui() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "套裝", "種族", false, false, false, false);
|
|
this.showSelf();
|
|
}
|
|
// 強力克火
|
|
qianglikehuo() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "套裝", "種族", false, false, false, false);
|
|
this.showSelf();
|
|
}
|
|
// 強力克土
|
|
qiangliketu() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "套裝", "種族", false, false, false, false);
|
|
this.showSelf();
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 決鬥榜
|
|
juedoubang() {
|
|
let tree: fairygui.GTree = FGUtil.getList(this.main, "alert/menu2").asTree;
|
|
if (tree.getChild("juedoubang").asTree.treeNode.expanded) {
|
|
tree.selectNode(tree.getChild("juedouhongming").asTree.treeNode)
|
|
this.juedouhongming();
|
|
}
|
|
}
|
|
// 決鬥紅名
|
|
juedouhongming() {
|
|
this.changTitle("名次", "角色名稱", "種族性別", "次數", false, false, false, false);
|
|
this.hideSelf();
|
|
GameModel.send('c2s_ask_paihang', {
|
|
nByWhat: 6
|
|
});
|
|
}
|
|
// 決鬥捕快
|
|
juedoubukuai() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "種族性別", "次數", false, false, false, false);
|
|
this.hideSelf();
|
|
}
|
|
// 證道榜
|
|
zhengdaobang() {
|
|
let tree: fairygui.GTree = FGUtil.getList(this.main, "alert/menu2").asTree;
|
|
if (tree.getChild("zhengdaobang").asTree.treeNode.expanded) {
|
|
tree.selectNode(tree.getChild("zhengdaozongbang").asTree.treeNode)
|
|
this.zhengdaozongbang();
|
|
}
|
|
}
|
|
// 證道總榜
|
|
zhengdaozongbang() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "種族性別", "證道積分", false, false, false, false);
|
|
this.hideSelf();
|
|
}
|
|
// 證道人族
|
|
zhengdaorenzu() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "等級", "證道積分", false, false, false, false);
|
|
this.hideSelf();
|
|
}
|
|
// 證道魔族
|
|
zhengdaomozu() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "等級", "證道積分", false, false, false, false);
|
|
this.hideSelf();
|
|
}
|
|
// 證道仙族
|
|
zhengdaoxianzu() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "等級", "證道積分", false, false, false, false);
|
|
this.hideSelf();
|
|
}
|
|
// 證道鬼族
|
|
zhengdaoguizu() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "等級", "證道積分", false, false, false, false);
|
|
this.hideSelf();
|
|
}
|
|
// 證道龍族
|
|
zhengdaolongzu() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "等級", "證道積分", false, false, false, false);
|
|
this.hideSelf();
|
|
}
|
|
// 決戰長安
|
|
juezhanchangan() {
|
|
let tree: fairygui.GTree = FGUtil.getList(this.main, "alert/menu2").asTree;
|
|
if (tree.getChild("juezhanchangan").asTree.treeNode.expanded) {
|
|
tree.selectNode(tree.getChild("juezhanchangantaihao").asTree.treeNode)
|
|
this.juezhanchangantaihao();
|
|
}
|
|
}
|
|
// 決戰長安太皓
|
|
juezhanchangantaihao() {
|
|
this.showNoRank();
|
|
this.changTitle("本服", "角色名稱", "積分", "全服排名", true, false, false, false);
|
|
this.hideSelf();
|
|
}
|
|
// 決戰長安逍遥
|
|
juezhanchanganxiaoyao() {
|
|
this.showNoRank();
|
|
this.changTitle("本服", "角色名稱", "積分", "全服排名", true, false, false, false);
|
|
this.hideSelf();
|
|
}
|
|
// 決戰長安红尘
|
|
juezhanchanganhongchen() {
|
|
this.showNoRank();
|
|
this.changTitle("本服", "角色名稱", "積分", "全服排名", true, false, false, false);
|
|
this.hideSelf();
|
|
}
|
|
// 決戰長安三界
|
|
juezhanchangansanjie() {
|
|
this.showNoRank();
|
|
this.changTitle("本服", "角色名稱", "積分", "全服排名", true, false, false, false);
|
|
this.hideSelf();
|
|
}
|
|
// 水陸積分
|
|
shuilujifen() {
|
|
let tree: fairygui.GTree = FGUtil.getList(this.main, "alert/menu2").asTree;
|
|
if (tree.getChild("shuilujifen").asTree.treeNode.expanded) {
|
|
tree.selectNode(tree.getChild("shuilugeren").asTree.treeNode)
|
|
this.shuilugeren();
|
|
}
|
|
}
|
|
// 水陸個人
|
|
shuilugeren() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "等級", "水陸積分", false, false, false, false);
|
|
this.showSelf();
|
|
GameModel.send('c2s_ask_paihang', {
|
|
nByWhat: 3
|
|
});
|
|
}
|
|
// 水陸隊伍
|
|
shuiluduiwu() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "隊長名字", "隊伍信息", "隊伍平均分", false, false, false, false);
|
|
this.hideSelf();
|
|
}
|
|
// 獨步天下
|
|
dubutianxia() {
|
|
let tree: fairygui.GTree = FGUtil.getList(this.main, "alert/menu2").asTree;
|
|
if (tree.getChild("dubutianxia").asTree.treeNode.expanded) {
|
|
tree.selectNode(tree.getChild("dububenfu").asTree.treeNode)
|
|
this.dububenfu();
|
|
}
|
|
}
|
|
// 獨步本服
|
|
dububenfu() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "積分", "戰績", false, false, false, false);
|
|
this.showSelf();
|
|
}
|
|
// 獨步跨服
|
|
dubukuafu() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "伺服器", "積分", false, false, false, true);
|
|
this.hideSelf();
|
|
}
|
|
// 獨步好友
|
|
dubuhaoyou() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "積分", "戰績", false, false, false, false);
|
|
this.hideSelf();
|
|
}
|
|
// 武曜
|
|
wuyao() {
|
|
let tree: fairygui.GTree = FGUtil.getList(this.main, "alert/menu2").asTree;
|
|
if (tree.getChild("wuyao").asTree.treeNode.expanded) {
|
|
tree.selectNode(tree.getChild("wuyaozhenwu").asTree.treeNode)
|
|
this.wuyaozhenwu();
|
|
}
|
|
}
|
|
// 武曜真武
|
|
wuyaozhenwu() {
|
|
this.showNoRank();
|
|
this.changTitle("本服", "全部", "勇武值", "戰績", true, true, false, false);
|
|
this.hideSelf();
|
|
}
|
|
// 武曜月曜
|
|
wuyaoyueyao() {
|
|
this.showNoRank();
|
|
this.changTitle("本服", "全部", "勇武值", "戰績", true, true, false, false);
|
|
this.hideSelf();
|
|
}
|
|
// 武曜云泽
|
|
wuyaoyunze() {
|
|
this.showNoRank();
|
|
this.changTitle("本服", "全部", "勇武值", "戰績", true, true, false, false);
|
|
this.showSelf();
|
|
}
|
|
// 召喚獸比鬥
|
|
zhaohuanshoubidou() {
|
|
let tree: fairygui.GTree = FGUtil.getList(this.main, "alert/menu2").asTree;
|
|
if (tree.getChild("zhaohuanshoubidou").asTree.treeNode.expanded) {
|
|
tree.selectNode(tree.getChild("zhaohuanshoubidoudanren").asTree.treeNode)
|
|
this.zhaohuanshoubidoudanren();
|
|
}
|
|
}
|
|
// 召喚獸比鬥单人
|
|
zhaohuanshoubidoudanren() {
|
|
this.showNoRank();
|
|
this.changTitle("本服", "角色名稱", "等級積分", "戰績", true, false, false, true);
|
|
this.hideSelf();
|
|
}
|
|
// 召喚獸比鬥组队
|
|
zhaohuanshoubidouzudui() {
|
|
this.showNoRank();
|
|
this.changTitle("本服", "角色名稱", "等級積分", "戰績", true, false, false, true);
|
|
this.hideSelf();
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 三界豪宅
|
|
sanjiehaozhai() {
|
|
this.changTitle("名次", "角色名稱", "密意桃源", "綜合評分", false, false, true, false);
|
|
this.showNoRank();
|
|
this.hideSelf();
|
|
}
|
|
// 幫派實力榜
|
|
bangpaishili() {
|
|
let tree: fairygui.GTree = FGUtil.getList(this.main, "alert/menu3").asTree;
|
|
if (tree.getChild("bangpaishili").asTree.treeNode.expanded) {
|
|
tree.selectNode(tree.getChild("bangpaizongbang").asTree.treeNode)
|
|
this.bangpaizongbang();
|
|
}
|
|
}
|
|
// 幫派總榜
|
|
bangpaizongbang() {
|
|
this.changTitle("名次", "幫派名稱", "幫主名稱", "幫派人數", false, false, false, false);
|
|
this.showSelfByGang();
|
|
GameModel.send('c2s_ask_paihang', {
|
|
nByWhat: 2
|
|
});
|
|
}
|
|
// 幫戰排行榜
|
|
bangzhanpaihangbang() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "幫主名稱", "幫派名稱", "幫派排名", false, false, false, false);
|
|
this.showSelfByGang();
|
|
}
|
|
// 波月洞通關
|
|
boyuedongtongguan() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "幫派名稱", "通關難度", "通關時間", false, false, false, false);
|
|
this.showSelfByGang();
|
|
}
|
|
// 幫派殺星榜
|
|
bangpaishaxingbang() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "幫主名稱", "幫派名稱", "殺星總貢獻", false, false, false, false);
|
|
this.showSelfByGang();
|
|
}
|
|
// 跨服幫戰
|
|
kuafubangzhan() {
|
|
this.showNoRank();
|
|
this.changTitle("本服", "幫派名", "總積分", "全服排名", true, false, false, false);
|
|
this.showSelfByGang();
|
|
}
|
|
// 綜合財力榜
|
|
zonghecaili() {
|
|
let tree: fairygui.GTree = FGUtil.getList(this.main, "alert/menu3").asTree;
|
|
if (tree.getChild("zonghecaili").asTree.treeNode.expanded) {
|
|
tree.selectNode(tree.getChild("chaojifuhao").asTree.treeNode)
|
|
this.chaojifuhao();
|
|
}
|
|
}
|
|
// 超級富豪榜
|
|
chaojifuhao() {
|
|
this.changTitle("本服", "角色名稱", "等級", "擁有銀兩", true, false, false, false);
|
|
this.showSelf();
|
|
GameModel.send('c2s_ask_paihang', {
|
|
nByWhat: 1
|
|
});
|
|
}
|
|
// 紅包狂人榜
|
|
hongbaokuangren() {
|
|
this.showNoRank();
|
|
this.changTitle("本服", "角色名稱", "所在幫派", "發包總銀兩", true, false, false, false);
|
|
this.showSelf();
|
|
}
|
|
// 幫派紅包榜
|
|
bangpaihongbao() {
|
|
this.showNoRank();
|
|
this.changTitle("本服", "幫派名稱", "幫派之星", "該幫總銀兩", true, false, false, false);
|
|
this.showSelf();
|
|
}
|
|
// 世界紅包榜
|
|
shijiehongbao() {
|
|
this.showNoRank();
|
|
this.changTitle("總榜", "服務器名", "服務器之星", "該服總銀兩", true, false, false, false);
|
|
this.showSelf();
|
|
}
|
|
// 千秋功績榜
|
|
qianqiugongji() {
|
|
let tree: fairygui.GTree = FGUtil.getList(this.main, "alert/menu3").asTree;
|
|
if (tree.getChild("qianqiugongji").asTree.treeNode.expanded) {
|
|
tree.selectNode(tree.getChild("gongjizongbang").asTree.treeNode)
|
|
this.gongjizongbang();
|
|
}
|
|
}
|
|
// 功績總榜
|
|
gongjizongbang() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "功績個數", "功績點", false, false, false, false);
|
|
this.showSelf();
|
|
}
|
|
// 人物成長
|
|
renwuchengzhang() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "功績個數", "功績點", false, false, false, false);
|
|
this.showSelf();
|
|
}
|
|
// 坐騎培養
|
|
zuoqipeiyang() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "功績個數", "功績點", false, false, false, false);
|
|
this.showSelf();
|
|
}
|
|
// 召喚獸培養
|
|
zhaohuanshoupeiyang() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "功績個數", "功績點", false, false, false, false);
|
|
this.showSelf();
|
|
}
|
|
// 裝備打造
|
|
zhuangbeidazao() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "功績個數", "功績點", false, false, false, false);
|
|
this.showSelf();
|
|
}
|
|
// 人物社交
|
|
renwushejiao() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "功績個數", "功績點", false, false, false, false);
|
|
this.showSelf();
|
|
}
|
|
// 江湖萬千
|
|
jianghuwanqian() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "功績個數", "功績點", false, false, false, false);
|
|
this.showSelf();
|
|
}
|
|
// 固定隊實力榜
|
|
gudingduishili() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "隊伍名字", "隊伍信息", "平均修為", false, false, false, false);
|
|
this.hideSelf();
|
|
}
|
|
// 錦繡值榜
|
|
jinxiuzhi() {
|
|
this.showNoRank();
|
|
this.changTitle("本服", "角色名稱", "種族性別", "錦繡值", true, false, false, false);
|
|
this.showSelf();
|
|
}
|
|
// 雕樑畫棟榜
|
|
diaolianghuadong() {
|
|
this.showNoRank();
|
|
this.changTitle("本服", "角色名稱", "總榜", "收藏數", true, false, true, false);
|
|
this.hideSelf();
|
|
}
|
|
// 大話佳人榜
|
|
dahuajiaren() {
|
|
this.showNoRank();
|
|
this.changTitle("名次", "角色名稱", "人氣", "幫派", false, false, false, false);
|
|
this.showSelf();
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 設置標題和是否右下拉選項
|
|
changTitle(title1: string, title2: string, title3: string, title4: string, down1: boolean, down2: boolean, down3: boolean, down4: boolean,) {
|
|
var titleBar = FGUtil.getComponent(this.main, "alert/title")
|
|
FGUtil.getTextField(titleBar, "title1").text = title1;
|
|
FGUtil.getTextField(titleBar, "title2").text = title2;
|
|
FGUtil.getTextField(titleBar, "title3").text = title3;
|
|
FGUtil.getTextField(titleBar, "title4").text = title4;
|
|
FGUtil.getControl(titleBar, "down1").selectedIndex = down1 ? 1 : 0;
|
|
FGUtil.getControl(titleBar, "down2").selectedIndex = down2 ? 1 : 0;
|
|
FGUtil.getControl(titleBar, "down3").selectedIndex = down3 ? 1 : 0;
|
|
FGUtil.getControl(titleBar, "down4").selectedIndex = down4 ? 1 : 0;
|
|
}
|
|
|
|
refresh(type: number, data: any, selfData: any = null) {
|
|
if (this.main == null) {
|
|
return;
|
|
}
|
|
if (data.length == 0) {
|
|
this.showNoPeople();
|
|
return
|
|
}
|
|
this.showRank();
|
|
this.listType = type;
|
|
this.listData = data;
|
|
this.selfData = selfData;
|
|
this.hideSelf();
|
|
let list = FGUtil.getList(this.main, "alert/list");
|
|
list.numItems = this.listData.length;
|
|
list.scrollToView(0, true, false);
|
|
}
|
|
|
|
} |