|
|
- GameResPath = GameResPath or {}
-
- --返回ab包以及资源名字
- function GameResPath.GetModelShadowRes(obj_type, obj_id)
- if tonumber(obj_id) == 0 then
- return
- end
-
- local abName = ModelPartName[5] .. obj_id
- return abName, abName --模型资源单独打包
- end
-
- --返回ab包以及资源名字
- function GameResPath.GetModelClotheRes(obj_type, obj_id, load_dynamic_bone, is_right)
- if not obj_id or tonumber(obj_id) == 0 then
- print("==========GameResPath.GetModelClotheRes=>obj_id:",obj_id)
- return
- end
-
- local abName, abResId = "", obj_id
- if obj_type == SceneBaseType.Pet or obj_type == SceneBaseType.Horse or
- obj_type == SceneBaseType.FGun or obj_type == SceneBaseType.FCloud or
- obj_type == SceneBaseType.FArmour or obj_type == SceneBaseType.FWing or
- obj_type == SceneBaseType.FPearl or obj_type == SceneBaseType.FWeapon or
- obj_type == SceneBaseType.Baby_Horse then
- --进阶系统部分
- if obj_type == SceneBaseType.FWeapon then
- --武器要区分职业,左右手
- abResId = GameResPath:GetFWeaponResName( nil,obj_id )
- abName = ModelPartName[obj_type]..abResId
- local resName = ModelPartName[obj_type] .. (is_right and "r" or "l") .. "_" ..abResId
- return abName, resName
- else
- abName = ModelPartName[obj_type]
- end
- elseif obj_type == SceneBaseType.Pokemon--宠物
- or obj_type == SceneBaseType.Evil--守护
- or obj_type == SceneBaseType.Equip--装备
- or obj_type == SceneBaseType.Baby --宝宝子女
- or obj_type == SceneBaseType.Galaxy--星辰
- or obj_type == SceneBaseType.God----神座
- or obj_type == SceneBaseType.WarSoul--战魂
- or obj_type == SceneBaseType.MapModel--世界地图
- then
- abName = ModelPartName[obj_type]
- elseif obj_type == SceneBaseType.OtherGoods then--其他模型
- abName = ""
- else
- abName = ModelPartName[1]
- end
-
- --动态骨骼模型,主角、AI娘
- if load_dynamic_bone then
- if (obj_type == SceneBaseType.MainRole and IsDynamicModel[obj_id])
- or (obj_type == SceneBaseType.Role and IsDynamicModel[obj_id])
- or (obj_type == SceneBaseType.Pet and IsDynamicServantModel[obj_id]) then
- abName = abName.."dynamic_"
- end
- end
-
- abName = abName..abResId
- return abName, abName --模型资源单独打包
- end
-
- --进阶武器的资源名
- function GameResPath:GetFWeaponResName( career,obj_id )
- if (RoleManager.Instance and RoleManager.Instance.mainRoleInfo) and (not career) then
- career = RoleManager.Instance.mainRoleInfo.career
- end
- career = career or 1
- return obj_id + career*1000
- end
-
- --返回家具ab包以及资源名字
- function GameResPath.GetModelFurnitureRes(obj_id, is_god_wing)
- if not obj_id or tonumber(obj_id) == 0 then
- print("==========GameResPath.GetModelClotheRes=>obj_id:",obj_id)
- return
- end
-
- local abName = ModelPartName[8] .. obj_id
- return abName, abName --模型资源单独打包
- end
-
- --返回ab包和头饰资源名字
- function GameResPath.GetHeadRes(obj_type, obj_id)
- if tonumber(obj_id) == 0 then
- return
- end
-
- local abName = ModelPartName[6] .. obj_id
- return abName, abName --模型资源单独打包
- end
-
- --返回ab包和发饰资源名字
- function GameResPath.GetHatRes(obj_id)
- if tonumber(obj_id) == 0 then
- return
- end
-
- local abName = ModelPartName[27] .. obj_id
- return abName, abName --模型资源单独打包
- end
-
- function GameResPath.GetGodWeaponRes(obj_type,weapon_id)
- if tonumber(obj_id) == 0 then
- return
- end
-
- local abName = ModelPartName[1] .. obj_id
- return abName, abName --模型资源单独打包
- end
-
- --返回ab包以及武器挂接点名字列表和武器资源名字列表
- function GameResPath.GetWeaponRes(obj_type,weapon_id,career)
- local abName = "model_weapon_" .. weapon_id--ModelABName[obj_type]
- local weapon_type = WeaponProvideType.SingleRightHand
- if career then
- weapon_type = WeaponCountInfo.role[career]
- end
-
- if weapon_type then
- local weapon_attach_list = {}
- local weapon_res_list = {}
- if weapon_type == WeaponProvideType.SingleLeftHand then
- table.insert(weapon_attach_list,AttachNode.LHand)
- table.insert(weapon_res_list, ModelPartName[2] .. weapon_id)
- elseif weapon_type == WeaponProvideType.SingleRightHand then
- table.insert(weapon_attach_list,AttachNode.RHand)
- table.insert(weapon_res_list, ModelPartName[3] .. weapon_id)
- elseif weapon_type == WeaponProvideType.BehindHand then
- table.insert(weapon_attach_list,AttachNode.BHand)
- table.insert(weapon_res_list, ModelPartName[4] .. weapon_id)
- elseif weapon_type == WeaponProvideType.BothHand then
- table.insert(weapon_attach_list,AttachNode.LHand)
- table.insert(weapon_attach_list,AttachNode.RHand)
- table.insert(weapon_res_list, ModelPartName[2] .. weapon_id)
- table.insert(weapon_res_list, ModelPartName[3] .. weapon_id)
- elseif weapon_type == WeaponProvideType.ThirdHand then
- table.insert(weapon_attach_list,AttachNode.LHand)
- table.insert(weapon_attach_list,AttachNode.RHand)
- table.insert(weapon_attach_list,AttachNode.BHand)
- table.insert(weapon_res_list, ModelPartName[2] .. weapon_id)
- table.insert(weapon_res_list, ModelPartName[3] .. weapon_id)
- table.insert(weapon_res_list, ModelPartName[4] .. weapon_id)
- end
- return abName, weapon_attach_list,weapon_res_list
- end
- end
-
- function GameResPath.GetGoodsIcon(icon)
- return "client/assets/icon/goodsIcon/" .. icon .. ".png"
- end
-
- function GameResPath.GetModelMask(icon)
- return "client/assets/icon/modelMask/" .. icon .. ".png"
- end
-
- function GameResPath.GetCircleHeadIcon(icon)
- return "client/assets/icon/roleHead/head/head_circle_" .. icon .. ".png"
- end
-
- function GameResPath.GetRhombusRoleHeadIcon(icon)
- return "client/assets/icon/roleHead/head_rhombus/head_icon_" .. icon .. ".png"
- end
-
- function GameResPath.GetHeadIcon(photo_id)
- return "client/assets/icon/roleHead/head_icon/head_icon_" .. photo_id .. ".png"
- end
-
- function GameResPath.GetMonsterHeadIcon(icon)
- --texture = texture or 0
- return "client/assets/icon/MonsterIcon/icon_" .. icon .. ".png"
- end
-
- function GameResPath.GetMountIcon(icon)
- return "client/assets/icon/mount/" .. icon .. ".png"
- end
-
- function GameResPath.GetPetIcon(icon)
- return "client/assets/icon/pet/" .. icon .. ".png"
- end
-
- function GameResPath.GetPetHeadIcon(icon)
- return "client/assets/icon/pet/roleHead/" .. icon .. ".png"
- end
-
-
- function GameResPath.GetBeastHeadIcon(icon)
- return "client/assets/icon/MonsterIcon/beast_" .. icon .. ".png"
- end
-
- function GameResPath.GetSevenDaysLoginIcon(icon)
- return "client/assets/icon/SevenLoginICON/" .. icon .. ".png"
- end
-
- function GameResPath.GetChatDressIcon(icon)
- return "client/assets/icon/dress/" .. icon .. ".png"
- end
-
- function GameResPath.GetSceneLoadBg(res)
- return "client/assets/icon/sceneLoadBg/".. res ..".png"
- end
-
- function GameResPath.GetSkillViewBg(res)
- return "client/assets/icon/skillui/"..res..".png"
- end
-
- function GameResPath.GetSkillIcon(id)
- return "client/assets/icon/skillIcon/".. id ..".png"
- end
-
- function GameResPath.GetPartnerNormalSkillIcon(id)
- return Language.substitute("client/assets/icon/PartnerIcon/NormalSkill/{0}.png",id)
- end
-
- function GameResPath.GetPartnerTalentSkillIcon(id)
- return Language.substitute("client/assets/icon/PartnerIcon/TalentSkill/{0}.png",id)
- end
-
- function GameResPath.GetPartnerProtectSkillIcon(id)
- return Language.substitute("client/assets/icon/PartnerIcon/ProtectSkill/{0}.png",id)
- end
-
- function GameResPath.GetPartnerHeadIcon(id)
- return Language.substitute("client/assets/icon/PartnerIcon/PartnerHead/{0}.png",id)
- end
-
- function GameResPath.GetPartnerModuleIcon(id, file_type)
- file_type = file_type or ".png"
- return Language.substitute("client/assets/icon/PartnerModule/{0}" .. file_type,id)
- end
-
- function GameResPath.GetIntrusionIcon(index)
- return "client/assets/icon/intrusion/"..index
- end
-
- function GameResPath.GetWelfareBg(icon)
- return "client/assets/icon/welfare/"..icon..".png"
- end
-
- function GameResPath.GetGuildModuleIcon(id)
- return Language.substitute("client/assets/icon/GuildModule/{0}.png",id)
- end
-
- function GameResPath.GetSoundScenePath(res_name)
- return "client/assets/sound/scene/" .. res_name
-
- end
- function GameResPath.GetHorseIcon(icon)
- return "client/assets/icon/horse/" .. icon .. ".png"
- end
-
- function GameResPath.GetCaptureFlagIcon(icon)
- return "client/assets/icon/captureFlag/" .. icon .. ".png"
- end
-
- function GameResPath.GetBuffIcon(buff_id)
- return "client/assets/icon/buffIcon/" .. buff_id .. ".png"
- end
-
- function GameResPath.GetSevenDaysImage(img_name)
- return Language.substitute("client/assets/icon/SevenDay/{0}.png",img_name)
- end
-
- function GameResPath.GetLookModuleIcon(id)
- return Language.substitute("client/assets/icon/LookModul/{0}.png",id)
- end
-
- function GameResPath.GetCommerceTaskImage(img_name)
- return Language.substitute("client/assets/icon/CommerceTask/{0}.png",img_name)
- end
-
- function GameResPath.GetBuffBigIcon(id)
- return "client/assets/icon/buffIconBig/" .. id .. ".png"
- end
-
- function GameResPath.GetCareerIcon(id)
- return "client/assets/icon/careerIcon/"..id..".png"
- end
-
- function GameResPath.GetVipBg(id)
- return "client/assets/icon/vipBg/"..id..".png"
- end
-
- --天空战场图片
- function GameResPath.GetSkyWarBg(id)
- return "client/assets/icon/skyWar/".. id ..".png"
- end
-
- function GameResPath.GetJpgImage(resName)
- return "client/assets/iconjpg/" .. resName .. ".jpg"
- end
-
- function GameResPath.GetPartnerHeadImage(id)
- return "client/assets/icon/PartnerIcon/PartnerHead/"..id..".png"
- end
-
- --首充大背景图片
- function GameResPath.GetFirstChargeBg(resName)
- return "client/assets/icon/firstCharge/".. resName ..".png"
- end
-
- function GameResPath.GetHelperModuleIcon(resName)
- return Language.substitute("client/assets/icon/helper/{0}.png",resName)
- end
-
- --获取冒险副本入口图路径
- function GameResPath.GetAdvImage(type,id,extName)
- return "client/assets/icon/AdventureModule/adv_"..type.."_"..id..extName
- end
-
- --冒险之旅
- function GameResPath.GetAdventureTripIcon(resName)
- return "client/assets/icon/adventureTripIcon/".. resName ..".png"
- end
-
- --英灵殿背景大图
- function GameResPath.GetValhallaBg(resName)
- return "client/assets/icon/Valhalla/".. resName ..".png"
- end
-
- --新功能开发背景图
- function GameResPath.GetFuncOpenModuleIcon(resName)
- return "client/assets/icon/Func/".. resName ..".png"
- end
-
- --红包背景大图
- function GameResPath.GetRedPacketBg(resName)
- return "client/assets/icon/redPacket/".. resName ..".png"
- end
-
- function GameResPath.GetArenaImage(resName)
- return "client/assets/icon/arena/".. resName ..".png"
- end
-
- --副本
- function GameResPath.GetButterflyImage(resName)
- return "client/assets/icon/butterfly/".. resName ..".png"
- end
-
- --彩钻大战
- function GameResPath.GetDiamondFightImage(resName)
- return "client/assets/icon/diamondFight/".. resName ..".png"
- end
-
- --星灵争霸
- function GameResPath.GetSpiritWarImage(resName)
- return "client/assets/icon/spiritWar/".. resName ..".png"
- end
-
- --星界试炼
- function GameResPath.GetStarFightImage(resName)
- return "client/assets/icon/starFight/".. resName ..".png"
- end
-
- --活动预告
- function GameResPath.GetTaskAnnounce(resName)
- return "client/assets/icon/taskAnnounce/".. resName ..".png"
- end
-
- --聊天背景
- function GameResPath.GetChatBg(resName)
- return "client/assets/icon/chatModule/".. resName ..".png"
- end
-
- --花语大图
- function GameResPath.GetFlowerImage(resName)
- return "client/assets/icon/flower/".. resName ..".png"
- end
-
- function GameResPath.GetNewShapeIcon(resName)
- return "client/assets/icon/tailsman/".. resName ..".png"
- end
- --翅膀图标
- function GameResPath.GetWingIcon(resName)
- return "client/assets/icon/wing/".. resName ..".png"
- end
-
- --法宝图标
- function GameResPath.GetTailsmanIcon(resName)
- return "client/assets/icon/tailsman/".. resName ..".png"
- end
-
- --神兵图标
- function GameResPath.GetGodweaponIcon(resName)
- return "client/assets/icon/godweapon/".. resName ..".png"
- end
-
- --时装预览大图
- function GameResPath.GetFashionPreviewBg(resName)
- return "client/assets/icon/FashionPreview/".. resName ..".png"
- end
-
- function GameResPath.GetActivityModuleIcon(resName)
- return "client/assets/icon/ActivityModule/".. resName ..".png"
- end
-
- --平台logo
- function GameResPath.GetPlatformLogo( platName )
- return "client/assets/icon/plat/".. platName .. ".png"
- end
-
- function GameResPath.GetAdvertising( resName)
- return "client/assets/icon/advertisingIcon/".. resName .. ".png"
- end
-
- function GameResPath.GetTotalChargeImage( resName)
- return "client/assets/icon/totalCharge/".. resName .. ".png"
- end
-
- function GameResPath.GetMarriageImage(resName)
- return "client/assets/icon/marriage/"..resName..".png"
- end
-
- function GameResPath.GetEscortImage(resName)
- return "client/assets/icon/escort/".. resName .. ".png"
- end
-
- function GameResPath.GetBossImage(resName)
- return "client/assets/icon/boss/".. resName .. ".png"
- end
-
- function GameResPath.GetBossBgImage(resName)
- return "client/assets/icon/boss/big_bg/".. resName .. ".png"
- end
-
- function GameResPath.GetBossBigImage(resName)
- return "client/assets/icon/boss/big/".. resName .. ".png"
- end
-
- function GameResPath.GetBossIcon(icon_id)
- return "client/assets/icon/boss/head_icon/head_icon_".. icon_id .. ".png"
- end
-
- function GameResPath.GetBossTabIcon(icon_id)
- --icon_id = 10010102
- return "client/assets/icon/boss/head_icon/head_tab_".. icon_id .. ".png"
- end
-
- function GameResPath.GetGuideImage(resName)
- return "client/assets/icon/guide/".. resName .. ".png"
- end
-
- function GameResPath.GetGuildImage(resName)
- return "client/assets/icon/guild/".. resName .. ".png"
- end
-
- function GameResPath.GetGuildWarImage(resName)
- return "client/assets/icon/guildWar/".. resName .. ".png"
- end
-
- function GameResPath.GetKfGuildWarImage(resName)
- return "client/assets/icon/kfGuildWar/".. resName .. ".png"
- end
-
- function GameResPath.GetHappyTurnTableImage(resName)
- return "client/assets/icon/happyTurnTable/".. resName .. ".png"
- end
-
- function GameResPath.GetDesignImage(resName)
- return "client/assets/icon/designIcon/".. resName .. ".png"
- end
-
- function GameResPath.GetSocialityImage(resName)
- return "client/assets/icon/sociality/".. resName .. ".png"
- end
-
- function GameResPath.GetCommonImage(resName)
- return "client/assets/icon/common/".. resName .. ".png"
- end
-
- function GameResPath.GetComposeImage(resName)
- return "client/assets/icon/compose/".. resName .. ".png"
- end
-
- function GameResPath.GetBagImage(resName)
- return "client/assets/icon/bag/".. resName .. ".png"
- end
-
- function GameResPath.GetBeastImage(resName)
- return "client/assets/icon/beast/" .. resName .. ".png"
- end
-
- function GameResPath.GetMainRoleImage(resName)
- return "client/assets/icon/mainRole/".. resName .. ".png"
- end
-
- --获取符文|聚魂相关的大图片
- function GameResPath.GetRuneImage(resName)
- return "client/assets/icon/rune/".. resName .. ".png"
- end
-
- --获取宝石相关的大图片
- function GameResPath.GetJewelImage(resName)
- return "client/assets/icon/jewel/".. resName .. ".png"
- end
-
- function GameResPath.GetHorsePetImage(resName)
- return "client/assets/icon/horsePet/".. resName .. ".png"
- end
-
- function GameResPath.GetChatDressImage(resName)
- return "client/assets/icon/chatDress/".. resName .. ".png"
- end
-
- -- 转生
- function GameResPath.GetReinImage(resName)
- return "client/assets/icon/reincarnation/".. resName .. ".png"
- end
-
- --VIP资源
- function GameResPath.GetVipImage(vip_lv)
- return "common_asset", "vip_" .. (vip_lv or 0)
- end
-
- --答题
- function GameResPath.GetQuizImage(resName)
- return "client/assets/icon/quiz/".. resName .. ".png"
- end
-
- --日常外部资源
- function GameResPath.GetDailyImage(resName)
- return "client/assets/icon/daily/".. resName .. ".png"
- end
-
- --日常外部资源
- function GameResPath.GetDailyBGImage(resName)
- return "client/assets/icon/daily/bg/".. resName .. ".png"
- end
-
- --设置
- function GameResPath.GetSettingImage(resName)
- return "client/assets/icon/setting/".. resName .. ".png"
- end
-
- --祈愿
- function GameResPath.GetPrayImage(resName)
- return "client/assets/icon/pray/".. resName .. ".png"
- end
-
- --福利
- function GameResPath.GetWelfareImage(resName)
- return "client/assets/icon/welfare/".. resName .. ".png"
- end
-
- --开服活动
- function GameResPath.GetKFActivityImage(resName)
- return "client/assets/icon/kfActivity/".. resName .. ".png"
- end
-
- --星图
- function GameResPath.GetStarMapImage(resName)
- return "client/assets/icon/starMap/".. resName .. ".png"
- end
-
- --星图
- function GameResPath.GetCharmRankImage(resName)
- return "client/assets/icon/charmRank/".. resName .. ".png"
- end
-
- --冒险之书
- function GameResPath.GetAdventureBookImage(resName)
- return "client/assets/icon/adventureBook/".. resName .. ".png"
- end
-
- --开服狂欢
- function GameResPath.GetKFRevelActImage(resName)
- return "client/assets/icon/kfRevel/".. resName .. ".png"
- end
-
-
- --定制活动
- function GameResPath.GetCustomActivityImage(resName)
- return "client/assets/icon/customActivity/"..resName..".png"
- end
-
- --物品大图标
- function GameResPath.GetGoodsBigImage(resName)
- return "client/assets/icon/goodsBig/"..resName..".png"
- end
-
- --神格大图
- function GameResPath.GetDeityImage(resName)
- return "client/assets/icon/deity/".. resName .. ".png"
- end
-
- function GameResPath.GetImage(module, resName)
- return "client/assets/icon/"..module.."/"..resName..".png"
- end
-
- function GameResPath.GetArtifactImage(resName)
- return "client/assets/icon/artifact/"..resName..".png"
- end
-
- function GameResPath.GetCspImage(resName)
- return "client/assets/icon/csp/"..resName..".png"
- end
-
- --宝藏
- function GameResPath.GetTreasureImage(resName)
- return "client/assets/icon/treasureHunt/"..resName..".png"
- end
-
- --商城
- function GameResPath.GetShopImage(resName)
- return "client/assets/icon/shop/"..resName..".png"
- end
-
- --变强
- function GameResPath.GetStrengthImage(resName)
- return "client/assets/icon/strength/"..resName..".png"
- end
-
- --幸运鉴宝
- function GameResPath.GetLcukyAccImage(resName)
- return "client/assets/icon/luckyAcc/"..resName..".png"
- end
- --精品特卖
- function GameResPath.GetBoutiqueImage(resName)
- return "client/assets/icon/boutiqueSale/"..resName..".png"
- end
- --星灵
- function GameResPath.GetStarSpiritImage(resName)
- return "client/assets/icon/starSpirit/"..resName..".png"
- end
-
- --小地图
- function GameResPath.GetMiniMapImage( mapid )
- return "client/assets/icon/smallmap/" .. mapid .. ".jpg"
- end
-
- --小地图(透明)
- function GameResPath.GetMiniMapImageAlpha( mapid )
- return "client/assets/icon/smallmap/" .. mapid .. ".png"
- end
-
- --区域小地图
- function GameResPath.GetAreaMiniMapImage( mapid )
- return "client/assets/icon/smallAreamap/" .. mapid .. ".jpg"
- end
-
- --时间地图小地图icon
- function GameResPath.GetWorldMapIcon( res )
- return "client/assets/icon/map/" .. res .. ".png"
- end
-
- --神秘限购
- function GameResPath.GetMysticalPurchaseIcon( resName )
- return "client/assets/icon/mysticalPurchase/"..resName..".png"
- end
-
- --贵族
- function GameResPath.GetSupremeVipIcon( resName )
- return "client/assets/icon/supremeVip/"..resName..".png"
- end
-
- --根据外部资源路径获取ab包名
- function GameResPath.GetOutSideResAbName( res_path )
- local dir_list = LuaMemManager.Split(res_path,'/')
- local file_name = dir_list[#dir_list]
- local file_str = LuaMemManager.Split(file_name,".")
- local file_name_no_ext = file_str[1]
- local file_parent = dir_list[#dir_list - 1]
- local ab_name = "icon_" ..file_parent .. "_" .. file_name_no_ext
- if #dir_list < 5 then
- ab_name = "icon_" .. file_name_no_ext
- end
-
- if file_parent == "goodsIcon" then
- ab_name = GameResPath.GetGoodsAssetBundleName(file_name_no_ext)
- elseif file_parent == "skillIcon" then
- ab_name = GameResPath.GetSkillIconAssetBundleName(file_name_no_ext)
- end
- return ab_name,file_name
- end
-
- --技能图标ID分类打包物品图片分类一致
- function GameResPath.GetSkillIconAssetBundleName( id )
- local step = ""
- local goods_id = tonumber(id)
- if (goods_id < 101000) then
- step = "0"
- elseif (goods_id >= 101000 and goods_id < 105000) then
- step = math.floor(goods_id / 1000) * 1000
- elseif (goods_id >= 105000 and goods_id < 121000) then
- step = "105000"
- elseif (goods_id >= 121000 and goods_id < 200000) then
- step = "121000"
- elseif (goods_id >= 200000 and goods_id < 210000) then
- step = "200000"
- elseif (goods_id >= 210000 and goods_id < 300000) then
- step = "210000"
- elseif (goods_id >= 300000 and goods_id < 1110000000) then
- step = math.floor(goods_id / 100000) * 100000
- else
- step = "1110000000"
- end
- return "icon_skillIcon_" .. step
- end
-
- --物品ID分类,和打包物品图片分类一致
- function GameResPath.GetGoodsAssetBundleName( id )
- local step = ""
- local goods_id = tonumber(id)
- if (goods_id < 100000) then
- step = "0"
- elseif (goods_id >= 100000 and goods_id < 102000) then
- --货币道具
- step = "100000"
- elseif (goods_id >= 102000 and goods_id < 105000) then
- --杂物道具
- step = "102000"
- elseif (goods_id >= 105000 and goods_id < 210000) then
- --运营道具(后续可能调整)
- step = "105000"
- elseif (goods_id >= 210000 and goods_id < 230000) then
- --人物技能书、幻光
- step = "210000"
- elseif (goods_id >= 230000 and goods_id < 240000) then
- --进阶系统
- if (goods_id < 235000) then
- step = "230000"
- elseif (goods_id < 240000) then
- step = "235000"
- end
- elseif (goods_id >= 240000 and goods_id < 250000) then
- --印记
- if (goods_id < 245000) then
- step = "240000"
- elseif (goods_id < 250000) then
- step = "245000"
- end
- elseif (goods_id >= 250000 and goods_id < 290000) then
- --25-29*10000
- step = math.floor(goods_id / 10000) * 10000
- elseif (goods_id >= 290000 and goods_id < 300000) then
- --神魂
- step = "290000"
- elseif (goods_id >= 300000 and goods_id < 310000) then
- --座印
- if (goods_id < 300200) then
- step = "300100"
- elseif (goods_id < 300300) then
- step = "300200"
- elseif (goods_id < 300400) then
- step = "300300"
- elseif (goods_id < 300500) then
- step = "300400"
- elseif (goods_id < 300600) then
- step = "300500"
- elseif (goods_id < 300700) then
- step = "300600"
- elseif (goods_id < 300800) then
- step = "300700"
- elseif (goods_id < 300900) then
- step = "300800"
- else
- step = "300900"
- end
- elseif (goods_id >= 310000 and goods_id < 400000) then
- --神魂装备礼包
- step = "310000"
- elseif (goods_id >= 400000 and goods_id < 710000) then
- --40-71*10000
- step = math.floor(goods_id / 10000) * 10000
- elseif (goods_id >= 710000 and goods_id < 750000) then
- --星辰
- step = "710000"
- elseif (goods_id >= 750000 and goods_id < 1000000) then
- --待定
- --75-99*10000
- step = math.floor(goods_id / 10000) * 10000
- elseif (goods_id >= 10000000 and goods_id >= 24000000) then
- --装备
- step = math.floor(goods_id / 100000) * 100000
- end
-
- return "icon_goodsIcon_" .. step
- end
-
- --图鉴
- function GameResPath.GetHandbookImage(resName)
- return "client/assets/icon/handbook/"..resName..".png"
- end
-
- --圣器契约
- function GameResPath.GetRelicsTargetImage(resName)
- return "client/assets/icon/relicsTarget/"..resName..".png"
- end
-
- --充值活动
- function GameResPath.GetRechargeActivityImage(resName)
- return "client/assets/icon/rechargeActivity/"..resName..".png"
- end
-
- --宝宝
- function GameResPath.GetBabyImage(resName)
- return "client/assets/icon/baby/"..resName..".png"
- end
-
- --排行榜
- function GameResPath.GetRankImage(resName)
- return "client/assets/icon/rank/"..resName..".png"
- end
-
- --唤神装备图
- function GameResPath.GetGodEquipImage(suit_id,pos)
- return "/client/assets/icon/god/soul_icon/god_soul_"..suit_id.."_"..pos..".png"
- end
-
- -- 神座系统资源
- function GameResPath.GetGodBg( resName )
- return "/client/assets/icon/god/bg/".. resName .. ".png"
- end
-
- -- 超值投资
- function GameResPath.GetInvestValueImage(resName)
- return "client/assets/icon/investValue/"..resName..".png"
- end
-
- --魂珠大图
- function GameResPath.GetSoulBeadImage(resName)
- return "client/assets/icon/soulBead/".. resName .. ".png"
- end
-
-
- --钓鱼图鉴
- function GameResPath.GetFishbookImage(resName)
- return "client/assets/icon/fish/"..resName..".png"
- end
-
- --vip广告
- function GameResPath.GetVipAdsImage(resName)
- return "client/assets/icon/vip4/"..resName..".png"
- end
-
- --至尊VIP
- function GameResPath.GetBestVipImage(resName)
- return "client/assets/icon/bestVip/"..resName..".png"
- end
-
- --装备icon
- function GameResPath.GetEquipIcon(resName)
- return "client/assets/icon/equip/"..resName..".png"
- end
-
- --装备刻印icon
- function GameResPath.GetEquipDraconicIcon(resName)
- return "client/assets/icon/equipDraconic/"..resName..".png"
- end
-
- --宝宝icon
- function GameResPath.GetChildIcon(resName)
- return "client/assets/icon/child/"..resName..".png"
- end
-
- --宝宝图鉴icon
- function GameResPath.GetChildHandbookIcon(resName)
- return "client/assets/icon/child/toys/"..resName..".png"
- end
-
- -- 宝宝时装原画
- function GameResPath.GetChildDressIcon(resName)
- return "client/assets/icon/child/fashion/"..resName..".png"
- end
-
- -- 宝宝玩具系列原画
- function GameResPath.GetChildToyImgIcon(resName)
- return "client/assets/icon/child/toyImg/"..resName..".png"
- end
-
- --升品寻宝icon
- function GameResPath.GetEmpowerIcon(resName)
- return "client/assets/icon/empower/"..resName..".png"
- end
- --跨服世界icon
- function GameResPath.GetKfWorldIcon(resName)
- return "client/assets/icon/kfworld/"..resName..".png"
- end
-
- --跑马的闪灯图
- function GameResPath.GetGuildTVLightIcon(resName)
- return "client/assets/icon/guildTV/"..resName..".png"
- end
-
-
- function GameResPath.GetLimitTimeRankImage(resName)
- return "client/assets/icon/limitTimeRank/"..resName..".png"
- end
-
- function GameResPath.GetJoyWishImage(resName)
- return "client/assets/icon/joyWish/"..resName..".png"
- end
-
- function GameResPath.GetDiscountImage(resName)
- return "client/assets/icon/discount/"..resName..".png"
- end
-
- function GameResPath.GetVipSaleImage(resName)
- return "client/assets/icon/vipSale/"..resName..".png"
- end
-
- --返回功能模块大界面背景
- function GameResPath.GetViewBigBg(name)
- return "client/assets/icon/allBg/"..name..".png"
- end
-
- --返回角色图片资源
- function GameResPath.GetRoleBg(name)
- return "client/assets/icon/roleBg/"..name..".png"
- end
-
- --副本通用ui资源
- function GameResPath.GetDungeonImage(resName)
- return "client/assets/icon/dungeon/".. resName ..".png"
- end
-
- --副本主界面资源
- function GameResPath.GetDungeonMainViewImage(resName)
- return "client/assets/icon/dungeonView/".. resName ..".png"
- end
-
- --主线材料副本bg
- function GameResPath.GetDungeonMainPlotImage(resName)
- return "client/assets/icon/dungeonMainPlot/".. resName ..".png"
- end
-
- function GameResPath.GetFosterHead( type_id,grade )
- type_id = type_id or 1
- grade = grade or 1
- return "client/assets/icon/foster/head/foster_head_".. type_id .. "_" .. grade ..".png"
- end
-
- -- 获取进阶装备界面左侧tab头像图片
- function GameResPath.GetFosterTabHead(type_id, grade)
- type_id = type_id or 1
- grade = grade or 1
- return "client/assets/icon/foster/tab/foster_tab_head_".. type_id .. "_" .. grade ..".png"
- end
-
- --获取进阶武器图片(区分职业)
- function GameResPath.GetFosterWeaponTabHead(type_id, grade,career)
- local type_id = type_id or 1
- local grade = grade or 1
- local career = career or 1
- local career_num = 1
- if career == 1 or career == 2 then
- career_num = 1
- else
- career_num = 2
- end
- return "client/assets/icon/foster/tab/foster_tab_head_".. type_id .. "_" .. grade .. "_"..career_num ..".png"
- end
-
- function GameResPath.GetAttrIcon( attr_id, force, res_type )
- --res_type 默认nil,取暗色图标,为1 取亮色图
- local name_str1 = res_type == 1 and "common_sign2_" or "common_sign_"
- -------------------------
- if force then
- return "common_asset", name_str1 .. attr_id ..".png"
- else
- local have = {
- [1] = true, [2] = true, [3] = true, [4] = true, [5] = true,}
- return "common_asset", name_str1 .. (have[attr_id] and attr_id or 1) ..".png"
- end
- end
-
- --学位资源
- function GameResPath.GetDegreeImage(resName)
- return "client/assets/icon/degree/".. resName ..".png"
- end
-
- --宠物资源
- function GameResPath.GetPetImage(resName)
- return "client/assets/icon/pet/".. resName ..".png"
- end
-
- --系统设置资源
- function GameResPath.GetSettingImage(resName)
- return "client/assets/icon/setting/".. resName ..".png"
- end
-
- -- 社团图标资源
- function GameResPath.GetGuildIcon(icon_flag)
- return "client/assets/icon/guild/guild_icon".. icon_flag ..".png"
- end
-
- --性别图标资源
- function GameResPath.GetSexImage(sex)
- return "common_asset", sex == 1 and "com_boy" or "com_girl"
- end
-
- -- 功能开放
- function GameResPath.GetFuncIcon(resName)
- return "client/assets/icon/func/".. resName ..".png"
- end
-
- -- vip
- function GameResPath.GetVipIconImage(resName)
- return "client/assets/icon/vip/".. resName ..".png"
- end
-
- -- 成就系统获取角色立绘
- function GameResPath.GetAchieveRoleSP(resName)
- return "client/assets/icon/achievement/achieve_sp_".. resName ..".png"
- end
-
- -- 成就系统资源大图
- function GameResPath.GetAchieveBigPic(resName)
- return "client/assets/icon/achievement/".. resName ..".png"
- end
-
- --返回竞技联赛
- function GameResPath.GetPkRankBg(name)
- return "client/assets/icon/pkrank/"..name..".png"
- end
-
- --返回竞技联赛
- function GameResPath.GetRankBg(name)
- return "client/assets/icon/rank/"..name..".png"
- end
-
- --返回功能模块大界面背景
- function GameResPath.GetCommomBg(name)
- return "client/assets/icon/common/"..name..".png"
- end
-
- -- 返回七日登录相关资源路径
- function GameResPath.GetSevenLoginsDayRes(res_name)
- return "client/assets/icon/sevenDaysLogin/"..res_name..".png"
- end
-
- --返回龙神宝库相关资源路径
- function GameResPath.GetCapsuleEggRes(res_name)
- return "client/assets/icon/capsuleEgg/"..res_name..".png"
- end
-
- --护送资源
- function GameResPath.GetEscortImage(resName)
- return "client/assets/icon/escort/".. resName ..".png"
- end
-
- --限购礼包资源
- function GameResPath.GetLimitGiftImage(resName)
- return "client/assets/icon/limitGift/"..resName..".png"
- end
-
- --0元礼包资源
- function GameResPath.GetZeroGiftImage(resName)
- return "client/assets/icon/zeroGift/"..resName..".png"
- end
-
- --唤神头像
- function GameResPath.GetGodHeadIcon( god_id,res_id )
- return "god_icon_asset", "god_icon_" .. (res_id or god_id)
- end
-
- --唤神头像
- function GameResPath.GetGodSuitIcon( suit_id )
- if suit_id then
- return "god_icon_asset", "god_suit_" .. suit_id
- end
- return "god_icon_asset", "god_suit_1"
- end
-
- --唤神变身头像
- function GameResPath.GetGodSkillIcon( god_id )
- if god_id then
- return "god_skill_icon_asset", "god_skill_icon_" .. god_id
- end
- return "god_skill_icon_asset", "god_skill_icon_1001"
- end
-
- --精英考核外部资源
- function GameResPath.GetEliteAssessImage(resName)
- return "client/assets/icon/eliteAssess/".. resName .. ".png"
- end
-
- --竞榜外部资源
- function GameResPath.GetCompetingListImage(resName)
- return "client/assets/icon/competingList/".. resName .. ".png"
- end
-
- --社团竞榜外部资源
- function GameResPath.GetGuildSpeedActImage(resName)
- return "client/assets/icon/guildSpeedAct/".. resName .. ".png"
- end
-
- --臻享礼包外部资源
- function GameResPath.GetHopeGiftImage(resName)
- return "client/assets/icon/hopeGift/".. resName .. ".png"
- end
-
- --福利部资源
- function GameResPath.GetFuliImage(resName)
- return "client/assets/icon/fuli/".. resName .. ".png"
- end
-
- function GameResPath.GetCSGWarImage( resName )
- return "client/assets/icon/CSGWar/".. resName .. ".png"
- end
-
- --全民动员
- function GameResPath.GetMobilizationImage( resName )
- return "client/assets/icon/mobilization/".. resName .. ".png"
- end
-
- --活动宣传图
- function GameResPath.GetAdBigBg( resName )
- return "client/assets/icon/allBg/adBg/"..resName..".png"
- end
-
- --星辰系统背景
- function GameResPath.GetGalaxyBg( resName )
- return "client/assets/icon/galaxy/"..resName..".png"
- end
-
- --星辰副本资源图
- function GameResPath.GetGalaxyDunBg( resName )
- return "client/assets/icon/galaxy/dungeon/"..resName..".png"
- end
-
- --无尽领域
- function GameResPath.GetEndLessnBg( resName )
- return "client/assets/icon/endless/"..resName..".png"
- end
-
- --主题活动
- function GameResPath.GetOperateActImage(resName)
- return "client/assets/icon/operateAct/".. resName .. ".png"
- end
-
- --可以写图片路径
- function GameResPath.GetReadWriteImage(resName)
- return "client/assets/icon/rwicon/".. resName .. ".png"
- end
-
- --战魂
- function GameResPath.GetWarSoulImage( resName )
- return "client/assets/icon/warSoul/".. resName .. ".png"
- end
-
- --风采系统资源
- function GameResPath.GetWardrobeImage( resName )
- return "client/assets/icon/wardrobe/".. resName .. ".png"
- end
-
- -- -- 性格系统 获取节点图标
- -- function GameResPath.GetNatureIcon( resName )
- -- return "client/assets/icon/nature/spotIcon/".. resName .. ".png"
- -- end
-
- -- -- 性格系统 获取小窗口背景图
- -- function GameResPath.GetNatureBg( resName )
- -- return "client/assets/icon/nature/".. resName .. ".png"
- -- end
-
- -- 眼疾手快
- function GameResPath.GetAmasingJipSawBg( resName )
- return "client/assets/icon/amasingjigsawpuzzle/".. resName .. ".png"
- end
-
- --获取羁绊外部图片
- function GameResPath.GetMateImage(resName)
- return "client/assets/icon/mate/".. resName .. ".png"
- end
-
- --合成机资源
- function GameResPath.GetComposeRobotImage(resName)
- return "client/assets/icon/composeRobot/"..resName..".png"
- end
-
- -- 大陆征途 图腾
- function GameResPath.GetTotemImage(resName)
- return "client/assets/icon/mainlandJourney/totem/"..resName..".png"
- end
-
- -- 大陆征途 npc头像
- function GameResPath.GetMainJourneyHeadIconImage(resName)
- return "client/assets/icon/mainlandJourney/headIcon/"..resName..".png"
- end
-
- -- 大陆征途
- function GameResPath.GetMainJourneyImage(resName)
- return "client/assets/icon/mainlandJourney/"..resName..".png"
- end
-
- -- 跨服主功能
- function GameResPath.GetCSMainImage(resName)
- return "client/assets/icon/csMain/"..resName..".png"
- end
-
- -- 军衔标志
- function GameResPath.GetMilitaryImage(resName)
- return "client/assets/icon/csMain/military/"..resName..".png"
- end
-
- -- 星域世界预告小图
- function GameResPath.GetCSMainAdvanceNoticeImage(resName)
- return "client/assets/icon/csMain/advanceNoticeBg/"..resName..".png"
- end
-
- -- 大陆征途 地图大背景
- function GameResPath.GetMainJourneyBigImage(resName)
- return "client/assets/icon/mainlandJourney/bg/"..resName..".png"
- end
-
- -- 获取藏宝图外部图片
- function GameResPath.GetTreasureMapImage(resName)
- return "client/assets/icon/treasureMap/"..resName..".png"
- end
|