////------------------------------------------------------------------ // @author: o@syg.com(必填, 创建模块的人员) // @description: // //
Create: new Date().toISOString() ////------------------------------------------------------------------ const DispatchConst = {}; // 某一订单数据更新 DispatchConst.UpdateOrder = "UpdateOrder"; // 远航数据更新(所有订单、刷次次数) DispatchConst.FreshData = "FreshData"; // 删除订单 DispatchConst.DeleteOrder = "DeleteOrder"; // 远航活动状态 DispatchConst.UpdateActivityStatusEvent = "UpdateActivityStatusEvent"; //订单状态 DispatchConst.Order_Status = { Unget: 1, // 未接取 Underway: 2, // 进行中 Finish: 3, // 已完成 } //订单稀有度 DispatchConst.Order_Rarity = { Normal: 0, // 普通 Excellent: 1, // 精良 Uncommon: 2, // 稀有 Epic: 3, // 史诗 Legend: 4, // 传说 Eternity: 5, // 不朽 } //订单稀有度对应的资源 DispatchConst.Order_Rarity_Res = { [ DispatchConst.Order_Rarity.Normal ]: "voyage_1006", [ DispatchConst.Order_Rarity.Excellent ]: "voyage_1005", [ DispatchConst.Order_Rarity.Uncommon ]: "voyage_1004", [ DispatchConst.Order_Rarity.Epic ]: "voyage_1003", [ DispatchConst.Order_Rarity.Legend ]: "voyage_1002", [ DispatchConst.Order_Rarity.Eternity ]: "voyage_1001", } //订单稀有度对应的字色 DispatchConst.Order_Rarity_Color = { [ DispatchConst.Order_Rarity.Normal ]: new cc.Color( 66, 75, 84, 255 ), [ DispatchConst.Order_Rarity.Excellent ]: new cc.Color( 35, 119, 1, 255 ), [ DispatchConst.Order_Rarity.Uncommon ]: new cc.Color( 6, 79, 147, 255 ), [ DispatchConst.Order_Rarity.Epic ]: new cc.Color( 126, 6, 147, 255 ), [ DispatchConst.Order_Rarity.Legend ]: new cc.Color( 147, 86, 6, 255 ), [ DispatchConst.Order_Rarity.Eternity ]: new cc.Color( 161, 1, 1, 255 ), } //订单状态对应按钮的字色 DispatchConst.Order_Status_Color = { [ DispatchConst.Order_Status.Unget ]: new cc.Color( 37, 85, 5, 255 ), [ DispatchConst.Order_Status.Underway ]: new cc.Color( 37, 85, 5, 255 ), [ DispatchConst.Order_Status.Finish ]: new cc.Color( 113, 40, 4, 255 ), } //选中的英雄头像框位置 DispatchConst.Chose_Hero_PosX = { [ 1 ]: [ 319 ], [ 2 ]: [ 255, 383 ], [ 3 ]: [ 191, 319, 447 ], [ 4 ]: [ 127, 255, 383, 511 ], [ 5 ]: [ 63, 191, 319, 447, 575 ] } DispatchConst.Condition_Icon_PosX = { [ 1 ]: [ 0 ], [ 2 ]: [ -38, 38 ], [ 3 ]: [ -76, 0, 76 ], [ 4 ]: [ -114, -38, 38, 114 ], [ 5 ]: [ -152, -76, 0, 76, 152 ] } module.exports = DispatchConst;