|
PsionicConst = PsionicConst or {}
|
|
-- 事件相关
|
|
PsionicConst.REQUEST_CCMD_EVENT = "PsionicConst.REQUEST_CCMD_EVENT" -- 请求协议
|
|
PsionicConst.UPDATE_PISIONIC_BAG_ARMOR = "PsionicConst.UPDATE_PISIONIC_BAG_ARMOR" -- 更新圣物背包装备
|
|
PsionicConst.UPDATE_PISIONIC_EQUIP_ARMOR = "PsionicConst.UPDATE_PISIONIC_EQUIP_ARMOR" -- 更新圣物穿戴装备
|
|
PsionicConst.UPDATE_ADVANCE_BY_GOODSID = "PsionicConst.UPDATE_ADVANCE_BY_GOODSID" -- 圣物装备升级推送
|
|
PsionicConst.WEAR_ARMOR_SUCCEED = "PsionicConst.WEAR_ARMOR_SUCCEED" -- 穿戴圣物成功
|
|
PsionicConst.REMOVE_ARMOR_SUCCEED = "PsionicConst.REMOVE_ARMOR_SUCCEED" -- 卸圣物成功
|
|
-- PsionicConst.UPDATE_PSIONIC_LV = "PsionicConst.UPDATE_PSIONIC_LV" -- 圣物技能激活推送
|
|
PsionicConst.UPDATE_ACVANCE_VIEW = "PsionicConst.UPDATE_ACVANCE_VIEW" -- 圣物进阶界面更新(装备突破成功)
|
|
PsionicConst.UPDATE_REFACT_SUCCEED = "PsionicConst.UPDATE_REFACT_SUCCEED" -- 圣物重构成功刷新
|
|
PsionicConst.UPDATE_PSIONIC_AWAKE_DATA = "PsionicConst.UPDATE_PSIONIC_AWAKE_DATA" -- 更新圣物觉醒等级信息
|
|
|
|
PsionicConst.UPDATE_PSIONIC_SKILL_VO = "PsionicConst.UPDATE_PSIONIC_SKILL_VO" -- 更新圣物主动技能vo
|
|
|
|
PsionicConst.OPEN_MAIN_VIEW = "PsionicConst.OPEN_MAIN_VIEW" -- 打开主界面
|
|
PsionicConst.OPEN_RESOLVE_VIEW = "PsionicConst.OPEN_RESOLVE_VIEW" -- 打开装备分解界面
|
|
PsionicConst.UPDATE_RED_BY_TABID = "PsionicConst.UPDATE_RED_BY_TABID" -- 根据界面类型更新红点
|
|
PsionicConst.UPDATE_DATADIG_RED_BY_TYPE = "PsionicConst.UPDATE_DATADIG_RED_BY_TYPE" -- 根据奖池类型刷新数据挖掘红点
|
|
|
|
PsionicConst.UPDATE_DIG_DATA = "PsionicConst.UPDATE_DIG_DATA" -- 更新圣物抽奖信息
|
|
-- 2020年7月9日重构新增
|
|
PsionicConst.OPEN_SKILL_TIPS_VIEW = "PsionicConst.OPEN_SKILL_TIPS_VIEW" -- 打开技能tip界面
|
|
PsionicConst.SHOW_ALL_ITEMS_IN_REFACTVIEW = "PsionicConst.SHOW_ALL_ITEMS_IN_REFACTVIEW" -- 在洗练界面中显示出所有的item节点,并取消对左侧装备的选中
|
|
PsionicConst.EXCHANGE_SUCCEED = "PsionicConst.EXCHANGE_SUCCEED" -- 圣物兑换商店兑换成功
|
|
PsionicConst.UPDATE_PSIONIC_ADVANCE_GOODSNUM = "PsionicConst.UPDATE_PSIONIC_ADVANCE_GOODSNUM" -- 更新圣物系统用的进阶道具数量
|
|
|
|
|
|
-- 新增
|
|
PsionicConst.UPDATE_SLOT_DATA = "PsionicConst.UPDATE_SLOT_DATA" -- 更新圣物槽位数据
|
|
-- PsionicConst.UPGRADE_PSIONIC_LV = "PsionicConst.UPGRADE_PSIONIC_LV" -- 更新圣物头衔等级
|
|
PsionicConst.UPDATE_SLOT_SKILL = "PsionicConst.UPDATE_SLOT_SKILL" -- 更新圣物槽位数据(技能)
|
|
PsionicConst.UPDATE_SLOT_WASH_DATA = "PsionicConst.UPDATE_SLOT_WASH_DATA" -- 更新圣物槽位数据(洗练)
|
|
PsionicConst.UPDATE_EQUIP_BREAK_SUCCEED = "PsionicConst.UPDATE_EQUIP_BREAK_SUCCEED" -- 装备升星成功刷新
|
|
PsionicConst.OPEN_DRAW_PREVIEW_VIEW = "PsionicConst.OPEN_DRAW_PREVIEW_VIEW" -- 打开圣物抽奖奖池预览界面
|
|
PsionicConst.OPEN_TITLE_TIP_VIEW = "PsionicConst.OPEN_TITLE_TIP_VIEW" -- 打开圣物魂阶头衔激活界面
|
|
PsionicConst.OPEN_PSIONIC_DRAW_RESULT_VIEW = "PsionicConst.OPEN_PSIONIC_DRAW_RESULT_VIEW" -- 打开圣物抽奖结算界面
|
|
PsionicConst.PLAY_EFFECT = "PsionicConst.PLAY_EFFECT" -- 播放特效
|
|
PsionicConst.OPEN_PSIONIC_EFFECT_EQUIP_VIEW = "PsionicConst.OPEN_PSIONIC_EFFECT_EQUIP_VIEW" -- 打开圣魂装备界面
|
|
PsionicConst.UPDATE_PSIONIC_EFFECT = "PsionicConst.UPDATE_PSIONIC_EFFECT" -- 更新主角圣物魂环特效
|
|
PsionicConst.ACTIVATE_SLOT_SKILL = "PsionicConst.ACTIVATE_SLOT_SKILL" -- 更新主角圣物魂环特效
|
|
|
|
PsionicConst.OPEN_SKILL_UPGRADE_SUCCESS_VIEW = "PsionicConst.OPEN_SKILL_UPGRADE_SUCCESS_VIEW" -- 打开技能觉醒成功结算界面
|
|
PsionicConst.OPEN_BREAK_SUCCESS_VIEW = "PsionicConst.OPEN_BREAK_SUCCESS_VIEW" -- 打开装备升星成功结算界面
|
|
PsionicConst.TEST_ACTION = "PsionicConst.TEST_ACTION" --
|
|
|
|
|
|
-- 界面tabid
|
|
PsionicConst.TabId = {
|
|
-- PLevel = 1, -- 圣物头衔
|
|
PArmor = 2, -- 圣物装备
|
|
PAdvance = 3, -- 灵装进阶
|
|
PBreak = 4, -- 灵装突破
|
|
PWash = 5, -- 灵装洗练
|
|
PSkill = 6, -- 灵装觉醒
|
|
PDataDig = 7, -- 灵装寻宝
|
|
PExchange = 8, -- 灵装兑换
|
|
}
|
|
-- 界面页签
|
|
PsionicConst.TabData = {
|
|
-- {id = PsionicConst.TabId.PLevel, module_id = 139, sub_id = 1, name = "头衔", abName = "psionic_asset", light_res = "ps_ui_tab_1_1", dark_res = "ps_ui_tab_1_2",},
|
|
{id = PsionicConst.TabId.PArmor, module_id = 139, sub_id = 2, name = "圣物", abName = "psionic_asset", light_res = "ps_ui_tab_2_1", dark_res = "ps_ui_tab_2_2",},
|
|
{id = PsionicConst.TabId.PAdvance, module_id = 139, sub_id = 3, name = "升级", abName = "psionic_asset", light_res = "ps_ui_tab_3_1", dark_res = "ps_ui_tab_3_2",},
|
|
{id = PsionicConst.TabId.PBreak, module_id = 139, sub_id = 3, name = "进化", abName = "psionic_asset", light_res = "ps_ui_tab_4_1", dark_res = "ps_ui_tab_4_2",},
|
|
{id = PsionicConst.TabId.PWash, module_id = 139, sub_id = 5, name = "洗练", abName = "psionic_asset", light_res = "ps_ui_tab_5_1", dark_res = "ps_ui_tab_5_2",},
|
|
{id = PsionicConst.TabId.PSkill, module_id = 139, sub_id = 4, name = "觉醒", abName = "psionic_asset", light_res = "ps_ui_tab_6_1", dark_res = "ps_ui_tab_6_2",},
|
|
{id = PsionicConst.TabId.PDataDig, module_id = 139, sub_id = 7, name = "寻宝", abName = "psionic_asset", light_res = "ps_ui_tab_7_1", dark_res = "ps_ui_tab_7_2",},
|
|
{id = PsionicConst.TabId.PExchange, module_id = 139, sub_id = 2, name = "兑换", abName = "psionic_asset", light_res = "ps_ui_tab_8_1", dark_res = "ps_ui_tab_8_2",},
|
|
}
|
|
-- 圣物等级头衔颜色配置 等级 = 颜色暗/亮
|
|
PsionicConst.LevelTitleColor = {
|
|
[1] = {color_dark = ColorUtil.WHITE, color_light = ColorUtil.WHITE,},
|
|
[2] = {color_dark = ColorUtil.GREEN_DARK, color_light = ColorUtil.GREEN_DARK,},
|
|
[3] = {color_dark = ColorUtil.GREEN_DARK, color_light = ColorUtil.GREEN_DARK,},
|
|
[4] = {color_dark = ColorUtil.BLUE_DARK, color_light = ColorUtil.BLUE_DARK,},
|
|
[5] = {color_dark = ColorUtil.BLUE_DARK, color_light = ColorUtil.BLUE_DARK,},
|
|
[6] = {color_dark = ColorUtil.PURPLE_DARK, color_light = ColorUtil.PURPLE_DARK,},
|
|
[7] = {color_dark = ColorUtil.PURPLE_DARK, color_light = ColorUtil.PURPLE_DARK,},
|
|
[8] = {color_dark = ColorUtil.ORANGE_DARK, color_light = ColorUtil.ORANGE_DARK,},
|
|
[9] = {color_dark = ColorUtil.ORANGE_DARK, color_light = ColorUtil.ORANGE_DARK,},
|
|
[10] = {color_dark = ColorUtil.RED_DARK, color_light = ColorUtil.RED_DARK,},
|
|
[11] = {color_dark = ColorUtil.RED_DARK, color_light = ColorUtil.RED_DARK,},
|
|
}
|
|
-- 圣物对应槽位装备名称
|
|
PsionicConst.EquipSlotName = {
|
|
[4] = "圣书",
|
|
[5] = "圣球",
|
|
[6] = "圣杯",
|
|
[7] = "圣冠",
|
|
}
|
|
-- 圣物装备获取途径跳转用装备id 格式为[slot] = {[color2] = type_id1, [color2] = type_id2}
|
|
PsionicConst.JumpTypeId = {
|
|
[4] = {[3] = 281032, [4] = 281042,},
|
|
[5] = {[3] = 282032, [4] = 282042,},
|
|
[6] = {[3] = 283032, [4] = 283042,},
|
|
[7] = {[3] = 284032, [4] = 284042,},
|
|
}
|
|
-- 圣物装备获取途径跳转用装备id(随便找一个填的,是什么品级无所谓)
|
|
PsionicConst.JumpTpTypeId = 281021
|
|
-- 界面切换时的装备品质需求
|
|
PsionicConst.RequireEquipColor = {
|
|
-- [PsionicConst.TabId.PLevel] = {color = 0, str = ""},
|
|
[PsionicConst.TabId.PArmor] = {color = 0, str = ""},
|
|
[PsionicConst.TabId.PAdvance] = {color = 0, str = ""},
|
|
[PsionicConst.TabId.PBreak] = {color = 0, str = ""},
|
|
[PsionicConst.TabId.PWash] = {color = 0, str = ""},
|
|
[PsionicConst.TabId.PSkill] = {color = 4, str = "橙色"},
|
|
[PsionicConst.TabId.PDataDig] = {color = 0, str = ""},
|
|
[PsionicConst.TabId.PExchange] = {color = 0, str = ""},
|
|
}
|
|
-- 圣物系统中道具item的样式flag
|
|
PsionicConst.ArmorItemFlag = {
|
|
Show = 0, -- 单纯展示,无按钮
|
|
Bag = 1, -- 背包中的装,显示穿戴/销毁按钮
|
|
Equiped = 2, -- 穿戴中的装备,显示卸下,强化按钮
|
|
Advance = 3, -- 进阶界面中展示
|
|
Resolve = 4, -- 圣物分解界面中展示,不显示按钮
|
|
Break = 5, -- 圣物突破界面中展示,不显示按钮
|
|
Wash = 6, -- 洗练界面左侧装备使用,展示洗练按钮,用于打开洗练操作界面
|
|
BreakSelected = 7, -- 圣物突破界面中被选中的节点,不显示tips
|
|
AdvanceRefact = 8, -- 圣物洗练界面左侧的装备节点,要做圣物可洗练动画效果
|
|
}
|
|
-- 圣物系统专用颜色和描述配置
|
|
PsionicConst.EquipColorData = {
|
|
[1] = {quality = 1, color = 2, str = "普通"},
|
|
[2] = {quality = 2, color = 3, str = "精致"},
|
|
[3] = {quality = 3, color = 4, str = "稀有"},
|
|
[4] = {quality = 4, color = 4, str = "极品"},
|
|
[5] = {quality = 5, color = 6, str = "绝世"},
|
|
[6] = {quality = 6, color = 6, str = "传说"},
|
|
[7] = {quality = 7, color = 6, str = "永恒"},
|
|
[8] = {quality = 8, color = 6, str = "不朽"},
|
|
}
|
|
PsionicConst.SkillLevelData = {
|
|
[1] = {level = 1, color = ColorUtil.GRAY_DARK, str = "初段觉醒"},
|
|
[2] = {level = 2, color = ColorUtil.GREEN_DARK, str = "二段觉醒"},
|
|
[3] = {level = 3, color = ColorUtil.BLUE_DARK, str = "三段觉醒"},
|
|
[4] = {level = 4, color = ColorUtil.PURPLE_DARK, str = "四段觉醒"},
|
|
[5] = {level = 5, color = ColorUtil.ORANGE_DARK, str = "五段觉醒"},
|
|
[6] = {level = 6, color = ColorUtil.RED_DARK, str = "六段觉醒"},
|
|
[7] = {level = 7, color = ColorUtil.RED_DARK, str = "七段觉醒"},
|
|
}
|
|
|
|
-- 圣物装备分解类型枚举
|
|
PsionicConst.ResovleType = {
|
|
Blue = 1, -- 蓝色灵装
|
|
Purple = 2, -- 紫色灵装
|
|
Normal = 3, -- 普通属性灵装
|
|
Rare = 4, -- 珍稀属性灵装
|
|
Filter = 5, -- 智能筛选
|
|
}
|
|
|
|
-- 圣物数据挖掘奖池类型配置
|
|
PsionicConst.DrawPoolType = {
|
|
Normal = 1,
|
|
Deep = 2,
|
|
}
|
|
-- 圣物数据挖掘抽卡数类型
|
|
PsionicConst.DrawNumType = {
|
|
OneDraw = 1,
|
|
TenDraw = 2,
|
|
}
|
|
-- 圣物槽位展示模型
|
|
PsionicConst.SlotModel = {
|
|
[4] = {model = "model_holy_1000", scale = 300, pos = Vector3(0, 40, -300), rotate = Vector3(15, 180, 0)},
|
|
[5] = {model = "model_holy_1001", scale = 300, pos = Vector3(0, 20, -300), rotate = Vector3(15, 180, 0)},
|
|
[6] = {model = "model_holy_1002", scale = 300, pos = Vector3(0, 20, -300), rotate = Vector3(15, 180, 0)},
|
|
[7] = {model = "model_holy_1003", scale = 300, pos = Vector3(0, 40, -300), rotate = Vector3(15, 180, 0)},
|
|
}
|
|
-- 圣物抽奖展示模型
|
|
PsionicConst.DrawShowModel = {
|
|
[1] = "model_box_2",
|
|
[2] = "model_box_1",
|
|
}
|
|
|
|
PsionicConst.EffectSize = {
|
|
["effect_hunhuan_001"] = 1,
|
|
["effect_hunhuan_002"] = 1,
|
|
["effect_hunhuan_003"] = 1,
|
|
}
|
|
PsionicConst.EffectCondition = {
|
|
[1] = {color = 3, color_hex = ColorUtil.PURPLE_DARK, str = "紫色"},
|
|
[2] = {color = 4, color_hex = ColorUtil.ORANGE_DARK, str = "橙色色"},
|
|
[3] = {color = 5, color_hex = ColorUtil.RED_DARK, str = "红色"},
|
|
}
|
|
PsionicConst.EffectName = {
|
|
[1] = "紫曜圣环",
|
|
[2] = "华策圣环",
|
|
[3] = "曜日圣环",
|
|
}
|
|
|
|
-- 协议控制特效播放类型
|
|
PsionicConst.EffectType = {
|
|
BreakLevel = 1,
|
|
BreakEquip = 2,
|
|
Skill = 3,
|
|
}
|
|
|
|
PsionicConst.DrawPreviewQuality = {
|
|
[1] = "<color=#66abff>其他道具</color>",
|
|
[2] = "<color=#f558ff>紫色圣物</color>",
|
|
[3] = "<color=#feb940>橙色圣物</color>",
|
|
[4] = "<color=#ff203a>红色圣物</color>",
|
|
}
|
|
|
|
-- 圣物抽奖界面气泡动画参数
|
|
PsionicConst.DrawAnimData = {
|
|
-- anim_time动画时间 start_pos起点坐标 end_pos动画终点坐标 动画的位置会在start_pos和end_pos往复
|
|
[1] = {anim_time = 2, start_pos = 138, end_pos = 138 + 50,},
|
|
[2] = {anim_time = 2, start_pos = 176, end_pos = 176 + 50,},
|
|
[3] = {anim_time = 2, start_pos = 256, end_pos = 256 + 50,},
|
|
[4] = {anim_time = 2, start_pos = 203, end_pos = 203 + 50,},
|
|
[5] = {anim_time = 2, start_pos = 138.5, end_pos = 138.5 + 50,},
|
|
[6] = {anim_time = 2, start_pos = 171.5, end_pos = 171.5 + 50,},
|
|
[7] = {anim_time = 2, start_pos = 198, end_pos = 198 + 50,},
|
|
[8] = {anim_time = 2, start_pos = 245, end_pos = 245 + 50,},
|
|
}
|