xiyou_yueNanZhengshi
zhangjiannan 2024-09-30 15:39:37 +08:00
parent c48d4e94c8
commit f65cef243e
21 changed files with 2005 additions and 1971 deletions

View File

@ -278,5 +278,5 @@ MonoBehaviour:
isUpdate: 0
isSDK: 0
isSDKLogin: 0
isGuide: 1
isOpenGM: 0
isGuide: 0
isOpenGM: 1

View File

@ -68,7 +68,7 @@ Material:
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _R: 0.1
- _R: 0.100000024
- _ScaleX: 0.5625
- _ScaleY: 1
- _SmoothnessTextureChannel: 0

View File

@ -43718,10 +43718,10 @@ MonoBehaviour:
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_FontData:
m_Font: {fileID: 12800000, guid: 4b73e9e4512d17e4daeea351e090d33c, type: 3}
m_FontSize: 40
m_FontSize: 30
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 4
m_MinSize: 3
m_MaxSize: 40
m_Alignment: 3
m_AlignByGeometry: 0
@ -45393,10 +45393,10 @@ MonoBehaviour:
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_FontData:
m_Font: {fileID: 12800000, guid: 4b73e9e4512d17e4daeea351e090d33c, type: 3}
m_FontSize: 48
m_FontSize: 30
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 4
m_MinSize: 3
m_MaxSize: 50
m_Alignment: 4
m_AlignByGeometry: 0

View File

@ -17561,7 +17561,7 @@ MonoBehaviour:
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_FontData:
m_Font: {fileID: 12800000, guid: 4b73e9e4512d17e4daeea351e090d33c, type: 3}
m_FontSize: 36
m_FontSize: 25
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 2
@ -23032,7 +23032,7 @@ MonoBehaviour:
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_FontData:
m_Font: {fileID: 12800000, guid: 4b73e9e4512d17e4daeea351e090d33c, type: 3}
m_FontSize: 36
m_FontSize: 25
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 2

View File

@ -188,6 +188,7 @@ function this:NewItemView(config, gameObject, ...)
end
return sub
end
function this:playUIAnimsOnStart(gameObject)
local anims = gameObject:GetComponentsInChildren(typeof(PlayFlyAnim))
if anims.Length > 0 then
@ -231,7 +232,8 @@ function this:SetLevelData(go, data)
if BagManager.GetItemCountById(itemId) < costNum then
costNumText.text = string.format("<color=#%s>%s</color>", "E23823", PrintWanNum2(costNum))
else
costNumText.text =string.format("<color=#%s>%s</color>", colorText.color[data.state], PrintWanNum2(costNum))
costNumText.text = string.format("<color=#%s>%s</color>", colorText.color[data.state],
PrintWanNum2(costNum))
end
end
end
@ -270,7 +272,8 @@ function this:SetLevelData(go, data)
end)
UIManager.OpenPanel(UIName.FormationPanelV2, FORMATION_TYPE.XUANYUAN_MIRROR, curType, data)
end
UIManager.OpenPanel(UIName.GeneralPopup,GENERAL_POPUP_TYPE.XuanYuanBuyTimes,costNum,func,GetLanguageStrById(itemConfig[itemId].Name))
UIManager.OpenPanel(UIName.GeneralPopup, GENERAL_POPUP_TYPE.XuanYuanBuyTimes, costNum, func,
GetLanguageStrById(itemConfig[itemId].Name))
else
UIManager.OpenPanel(UIName.FormationPanelV2, FORMATION_TYPE.XUANYUAN_MIRROR, curType, data)
end
@ -324,7 +327,7 @@ function this:SetLevelData(go, data)
end
Util.GetGameObject(go, "Bg/BgQuality/title"):GetComponent("Text").text = "" --mirrors[data.type].id
Util.GetGameObject(go, "Bg/BgQuality/difficult"):GetComponent("Text").text = difficult.text[data.difficulity]
Util.GetGameObject(go, "Bg/BgQuality/Text"):GetComponent("Text").text = data.power
Util.GetGameObject(go, "Bg/BgQuality/Text"):GetComponent("Text").text = GetLanguageStrById(data.power)
if GetCurLanguage() == 2 then
Util.GetGameObject(go, "Bg/BgQuality/title"):GetComponent("Text").fontSize = 28
Util.GetGameObject(go, "Bg/BgQuality/difficult"):GetComponent("Text").fontSize = 28

View File

@ -89,15 +89,11 @@ function ExpeditionMonsterInfoPopup:OnOpen(popupType,...)
contentScripts[index].view:OnShow(this, ...) --1、传入自己 2、传入不定参
end
--界面打开或者重新打开后,界面刷新时调用(用于子类重写)
function ExpeditionMonsterInfoPopup:OnShow()
end
--界面关闭时调用(用于子类重写)
function ExpeditionMonsterInfoPopup:OnClose()
for i = 1, #contentScripts do

View File

@ -51,7 +51,6 @@ end
--绑定事件(用于子类重写)
function FightSmallChoosePanel:BindEvent()
Util.AddClick(self.BtnBack, function()
self:ClosePanel()
end)
@ -72,7 +71,6 @@ end
--界面打开时调用(用于子类重写)
function FightSmallChoosePanel:OnOpen(smallFightId)
curSmallFightId = smallFightId
curMiddleFightId = math.floor(smallFightId / 1000)
difficultType = smallFightId % 10
@ -81,7 +79,6 @@ end
--界面打开或者重新打开后,界面刷新时调用(用于子类重写)
function FightSmallChoosePanel:OnShow()
--self.UpView:OnOpen({ showType = UpViewOpenType.ShowLeft, panelType = PanelType.Main })
self:OnShowPanelData()
SoundManager.PlaySound(SoundConfig.Sound_LittleMap)
@ -128,7 +125,8 @@ function FightSmallChoosePanel:OnShowPanelData()
self.curMapBg.sprite = self.spLoader:LoadSprite(curMiddleConFigData.ChapterBg)
self.curMapBg:SetNativeSize()
self.curMapBg.transform.localScale = Vector3.one
self.curMapBg.transform.localPosition = Vector3.New(curMiddleConFigData.ChapterBgPos[1],curMiddleConFigData.ChapterBgPos[2],0)
self.curMapBg.transform.localPosition = Vector3.New(curMiddleConFigData.ChapterBgPos[1],
curMiddleConFigData.ChapterBgPos[2], 0)
curDifficulSData = {}
if difficultType == FightDifficultyState.SimpleLevel then
@ -171,22 +169,28 @@ function FightSmallChoosePanel:OnShowPanelData()
chaterInfoList[i].text = descs[i] or ""
end
end
function FightSmallChoosePanel:SingleSmallFightShow(indext)
smallListGo[indext]:SetActive(true)
local curSmallFightConFig = mainLevelConfig[curDifficulSData[indext]]
smallListGo[indext]:GetComponent("RectTransform").anchoredPosition = Vector2.New(curSmallFightConFig.LevelPointPosition[1], curSmallFightConFig.LevelPointPosition[2])
Util.GetGameObject(smallListGo[indext].transform, "icon"):SetActive((math.floor((curSmallFightConFig.Id%100)/10))%5 ~= 0)
Util.GetGameObject(smallListGo[indext].transform, "icon2"):SetActive((math.floor((curSmallFightConFig.Id%100)/10))%5 == 0)
smallListGo[indext]:GetComponent("RectTransform").anchoredPosition = Vector2.New(
curSmallFightConFig.LevelPointPosition[1], curSmallFightConFig.LevelPointPosition[2])
Util.GetGameObject(smallListGo[indext].transform, "icon"):SetActive((math.floor((curSmallFightConFig.Id % 100) / 10)) %
5 ~= 0)
Util.GetGameObject(smallListGo[indext].transform, "icon2"):SetActive((math.floor((curSmallFightConFig.Id % 100) / 10)) %
5 == 0)
if curSmallFightConFig.Id == curSmallFightId then
self:SelectRenPos(smallListGo[indext])
end
end
function FightSmallChoosePanel:SelectRenPos(_parent)
self.selectMap.transform:SetParent(_parent.transform.parent)
self.selectMap.transform.localPosition = _parent.transform.localPosition
self.selectMap.transform.localScale = Vector3.one
--self.selectMap.transform.localPosition = Vector3.zero
end
--界面关闭时调用(用于子类重写)
function FightSmallChoosePanel:OnClose()
end

View File

@ -96,7 +96,7 @@ function PracticeStatePreview:SetSingleData(index, _go, _data)
end
if _data.RealmDesc then
specialText.gameObject:SetActive(true)
specialText.text = GetLanguageStrById(GetLanguageStrById(_data.RealmDesc))
specialText.text = GetLanguageStrById(_data.RealmDesc)
if _data.IsActive == 1 or _data.IsActive == 2 then
specialText.text = string.format("<color=#1CC853>%s</color>", GetLanguageStrById(_data.RealmDesc))
end

View File

@ -48,7 +48,7 @@ function this:OnShow(_parent,...)
this.addTextList[i].transform.localPosition = Vector3.zero
end
this.addTextList[i]:SetActive(true)
local str = QiJieStageBuff[attri].Describe
local str = GetLanguageStrById(QiJieStageBuff[attri].Describe)
this.addTextList[i]:GetComponent("Text").text = str
this.addTextList[i]:GetComponent("Text").text = string.format("<color=#2E2929>·%s</color>", str)
end

View File

@ -310,18 +310,22 @@ function GodPrintPopUp:RefreshShow(_type)
elseif index == 2 then
if equipConfig[soulId].Star >= index - 1 then
stringInfo = stringInfo ..
"<color=#44C853>" .. curStr .. string.format(Language[11173], index - 1) .. "</color>\n"
"<color=#44C853>" ..
curStr .. " " .. string.format(Language[11173], index - 1) .. "</color>\n"
else
stringInfo = stringInfo ..
"<color=#725949>" .. curStr .. string.format(Language[11173], index - 1) .. "</color>\n"
"<color=#725949>" ..
curStr .. " " .. string.format(Language[11173], index - 1) .. "</color>\n"
end
else
if equipConfig[soulId].Star >= index - 1 then
stringInfo = stringInfo ..
"<color=#44C853>" .. curStr .. string.format(Language[11173], index - 1) .. "</color>\n"
"<color=#44C853>" ..
curStr .. " " .. string.format(Language[11173], index - 1) .. "</color>\n"
else
stringInfo = stringInfo ..
"<color=#725949>" .. curStr .. string.format(Language[11173], index - 1) .. "</color>\n"
"<color=#725949>" ..
curStr .. " " .. string.format(Language[11173], index - 1) .. "</color>\n"
end
end
end

View File

@ -34,7 +34,8 @@ function RewardGemSingleShowPopup:InitComponent()
this.howGet = Util.GetGameObject(self.transform, "bg/midBar/layout1")
this.scroll = Util.GetGameObject(self.transform, "bg/midBar/scroll")
this.equipProGrid = Util.GetGameObject(self.transform, "bg/midBar/scroll/grid")
this.equipProGridCom = Util.GetGameObject(self.transform, "bg/midBar/scroll/grid"):GetComponent("VerticalLayoutGroup")
this.equipProGridCom = Util.GetGameObject(self.transform, "bg/midBar/scroll/grid"):GetComponent(
"VerticalLayoutGroup")
this.bottomBar = Util.GetGameObject(self.transform, "bg/bottomBar")
this.btnSure = Util.GetGameObject(self.transform, "bg/bottomBar/btnSure")
this.btnJump = Util.GetGameObject(self.transform, "bg/bottomBar/btnJump")
@ -47,12 +48,10 @@ function RewardGemSingleShowPopup:InitComponent()
this.proPre = Util.GetGameObject(this.proGrid, "proName")
this.proPre:SetActive(false)
this.proList = {}
end
--绑定事件(用于子类重写)
function RewardGemSingleShowPopup:BindEvent()
Util.AddClick(this.BtnBack, function()
PlaySoundWithoutClick(SoundConfig.Sound_UICancel)
PlayerManager.RewardItemSingleShowPopupIsRoleUpStarLayout2 = false
@ -124,6 +123,7 @@ function RewardGemSingleShowPopup:OnOpen(...)
this.position = data[5]
end
end
function RewardGemSingleShowPopup:OnShow()
Log("itemSid" .. tostring(itemSid))
this.itemName.text = GetLanguageStrById(itemData.config.Name) -- GetStringByEquipQua(itemData.config.Quality, GetLanguageStrById(itemData.config.Name))
@ -197,7 +197,8 @@ function RewardGemSingleShowPopup:OnShow()
for i = 1, #jumpSortData do
-- type 大于 10000为活动 直接显示按钮如果小于1000 为功能 开启才显示
if jumpSortData[i].id > 0 and (JumpConfig[jumpSortData[i].id].Type >= 10000 or ActTimeCtrlManager.SingleFuncState(JumpConfig[jumpSortData[i].id].Type)) then
local tempView = SubUIManager.Open(SubUIConfig.JumpView, this.equipProGrid.transform, jumpSortData[i].id,true,self)
local tempView = SubUIManager.Open(SubUIConfig.JumpView, this.equipProGrid.transform, jumpSortData[i].id,
true, self)
if tempView then
table.insert(this.jumpViewList, tempView)
end
@ -206,7 +207,8 @@ function RewardGemSingleShowPopup:OnShow()
this.scroll:GetComponent("RectTransform").sizeDelta = Vector2.New(912.8, 600)
this.equipProGridCom.spacing = 130
if jumpDataList and #jumpDataList then
this.equipProGrid:GetComponent("RectTransform").sizeDelta = Vector2.New(807.7,this.equipProGridCom.spacing*(#jumpDataList))
this.equipProGrid:GetComponent("RectTransform").sizeDelta = Vector2.New(807.7,
this.equipProGridCom.spacing * (#jumpDataList))
end
this.itemView:OnOpen(true, itemData, 1.1, false, false, false, self.sortingOrder)
@ -252,13 +254,14 @@ function this.SetGemProperty()
if data[i][2] == itemData.config.MaxProperty then
add = string.format(" <color=#529764FF>%s</color>", "(Max)")
else
add=string.format(" <color=#529764FF>%s</color>","("..string.format("%.2f",data[i][2]/itemData.config.MaxProperty*100).."%)")
add = string.format(" <color=#529764FF>%s</color>",
"(" .. string.format("%.2f", data[i][2] / itemData.config.MaxProperty * 100) .. "%)")
end
if PropertyConfig[data[i][1]].Style == 1 then
str=string.format( "%s+%s",PropertyConfig[data[i][1]].Info,data[i][2])
str = string.format("%s+%s", GetLanguageStrById(PropertyConfig[data[i][1]].Info), data[i][2])
elseif PropertyConfig[data[i][1]].Style == 2 then
LogError("data[i][2]==============" .. data[i][2])
str=string.format( "%s+%s",PropertyConfig[data[i][1]].Info,data[i][2]/100).."%"
str = string.format("%s+%s", GetLanguageStrById(PropertyConfig[data[i][1]].Info), data[i][2] / 100) .. "%"
end
go:GetComponent("Text").text = str .. add
end
@ -305,8 +308,8 @@ function RewardGemSingleShowPopup:OnDestroy()
this.gemType = nil
this.position = nil
this.spLoader:Destroy()
end
function this.WarPowerChange(oldPowerNum, type)
-- 设置脏数据
HeroPropManager.SetFuncPropDirty(Func_Prop_Type.PlayerExtra)
@ -317,4 +320,5 @@ function this.WarPowerChange(oldPowerNum,type)
UIManager.OpenPanel(UIName.WarPowerChangeNotifyPanelV2, { oldValue = oldPowerNum, newValue = newPowerNum })
end
end
return RewardGemSingleShowPopup

View File

@ -508,15 +508,19 @@ function RewardTalismanSingleShowPopup2:SetSkillShow(_infos, _preList, _grid, _l
local str = ""
if self.position > 6 then
if value.lv <= _lv then
str = "<color=#1CC853>" .. proper.Desc .. " (" .. value.lv .. Language[12233] .. "</color>"
str = "<color=#1CC853>" ..
GetLanguageStrById(proper.Desc) .. " (" .. value.lv .. Language[12233] .. "</color>"
else
str = "<color=#828282>" .. proper.Desc .. " (" .. value.lv .. Language[12233] .. "</color>"
str = "<color=#828282>" ..
GetLanguageStrById(proper.Desc) .. " (" .. value.lv .. Language[12233] .. "</color>"
end
else
if value.lv <= _lv then
str = "<color=#1CC853>" .. proper.Desc .. Language[12234] .. value.lv .. Language[12235] .. "</color>"
str = "<color=#1CC853>" ..
GetLanguageStrById(proper.Desc) .. Language[12234] .. value.lv .. Language[12235] .. "</color>"
else
str = "<color=#828282>" .. proper.Desc .. Language[12234] .. value.lv .. Language[12235] .. "</color>"
str = "<color=#828282>" ..
GetLanguageStrById(proper.Desc) .. Language[12234] .. value.lv .. Language[12235] .. "</color>"
end
end
@ -624,7 +628,9 @@ function RewardTalismanSingleShowPopup2:SetPropertyShow2(_infos, _preList, _grid
else
string = "<color=#828282>" ..
string ..
"\n" .. "<size=25>" .. string.format(Language[12237], GetLanguageStrById(attriConfig[index][2])) .. "</size></color>"
"\n" ..
"<size=25>" ..
string.format(Language[12237], GetLanguageStrById(attriConfig[index][2])) .. "</size></color>"
end
obj.transform:GetComponent("Text").text = string
obj.gameObject:SetActive(true)

View File

@ -278,15 +278,17 @@ end
function this.GetPreviewSingleText(id, value)
if id > 112 then
if PropertyConfig[id].Style == 1 then
return string.format("%s", PropertyConfig[id].Info), string.format("+%s", value)
return string.format("%s", GetLanguageStrById(PropertyConfig[id].Info)), string.format("+%s", value)
elseif PropertyConfig[id].Style == 2 then
return string.format("%s", PropertyConfig[id].Info), string.format("+%s", value) .. "%"
return string.format("%s", GetLanguageStrById(PropertyConfig[id].Info)), string.format("+%s", value) .. "%"
end
else
if PropertyConfig[id].Style == 1 then
return string.format(Language[12460], PropertyConfig[id].Info), string.format("+%s", value)
return string.format(Language[12460], GetLanguageStrById(PropertyConfig[id].Info)),
string.format("+%s", value)
elseif PropertyConfig[id].Style == 2 then
return string.format(Language[12460], PropertyConfig[id].Info), string.format("+%s", value) .. "%"
return string.format(Language[12460], GetLanguageStrById(PropertyConfig[id].Info)),
string.format("+%s", value) .. "%"
end
end
end

View File

@ -147,9 +147,9 @@ function this.CheckGoalIsFinish(_dataId, _obj, _formationList)
final = false
end
end
_obj.text = string.format("<color=#BAAF98>%s</color>", goalData.Describe)
_obj.text = string.format("<color=#BAAF98>%s</color>", GetLanguageStrById(goalData.Describe))
if final then
_obj.text = string.format("<color=#27DD65>%s</color>", goalData.Describe)
_obj.text = string.format("<color=#27DD65>%s</color>", GetLanguageStrById(goalData.Describe))
end
return final
end

View File

@ -98,7 +98,7 @@ end
-- 编队数据匹配
function QiJieShiLianMonsterInfo:FormationAdapter()
self.titleText.text = string.format(Language[12491], self.configData.Chapter, self.configData.Stage)
self.titleText.text = string.format(Language[12491], GetLanguageStrById(self.configData.Chapter), self.configData.Stage)
self.power.text = self.configData.Puwer
local bossTeaminfo = monsterGroup[self.configData.MonsterGroup].Contents[1]
for i = 1, #heroListGo do

View File

@ -236,14 +236,15 @@ end
function QiJieShiLianPanel:SetTabBox()
local tabList = QiJieShiLianManager.GetTabList()
self.ScrollView:SetData(tabList, function(index, go)
Util.GetGameObject(go, "Text"):GetComponent("Text").text = tabList[index].Chapter
Util.GetGameObject(go, "Text"):GetComponent("Text").text = GetLanguageStrById(tabList[index].Chapter)
local state = tabList[index].QijieType == self.configData.QijieType
local name = state and "r_hero_xuanze_001" or "r_hero_xuanze_002"
Util.GetGameObject(go, "Image"):GetComponent("Image").sprite = self.spLoader:LoadSprite(name)
Util.GetGameObject(go, "LockImage"):SetActive(not state)
Util.AddOnceClick(go, function()
if not state then
PopupTipPanel.ShowTip(string.format(Language[12495], NumToWeek[index], tabList[index].Chapter))
PopupTipPanel.ShowTip(string.format(Language[12495], NumToWeek[index],
GetLanguageStrById(tabList[index].Chapter)))
end
end)
end, false, true)
@ -256,7 +257,7 @@ function QiJieShiLianPanel:SetTopBar()
local text = self.qijieData.curRank > 0 and self.qijieData.curRank or Language[10036]
local text2 = self.qijieData.curScore >= 0 and self.qijieData.curScore or "0"
self.info.text = string.format(Language[12496], text, text2)
self.name.text = string.format(Language[12491], self.configData.Chapter, self.configData.Stage)
self.name.text = string.format(Language[12491], GetLanguageStrById(self.configData.Chapter), self.configData.Stage)
end
--设置下方挑战信息和奖励信息

View File

@ -171,7 +171,7 @@ function this.SetScrollPre(root, data)
SoulPrintSpriteByQuantity[data.Quantity].circleBg2)
Util.GetGameObject(root, "circleFrameBg/circleFrame"):GetComponent("Image").sprite = this.spLoader:LoadSprite(
SoulPrintSpriteByQuantity[data.Quantity].circle)
local str = data.Name
local str = GetLanguageStrById(data.Name)
if GetCurLanguage() == 0 and LengthString(data.Name) >= 5 then
str = SubString(data.Name, 4) .. "..."
end

View File

@ -28,14 +28,14 @@ function SoulPrintHandBook:InitComponent()
this.scrollRoot = Util.GetGameObject(this.gameObject, "ScrollRoot")
this.pre = Util.GetGameObject(this.scrollRoot, "Pre")
this.scrollView = SubUIManager.Open(SubUIConfig.ScrollCycleView, this.scrollRoot.transform, this.pre, nil, --
Vector2.New(this.scrollRoot.transform.rect.width,this.scrollRoot.transform.rect.height),1,4,Vector2.New(50,15))
Vector2.New(this.scrollRoot.transform.rect.width, this.scrollRoot.transform.rect.height), 1, 4,
Vector2.New(50, 15))
this.scrollView.gameObject:GetComponent("RectTransform").anchoredPosition = Vector2.New(0, 0)
this.scrollView.gameObject:GetComponent("RectTransform").anchorMin = Vector2.New(0.5, 0.5)
this.scrollView.gameObject:GetComponent("RectTransform").anchorMax = Vector2.New(0.5, 0.5)
this.scrollView.gameObject:GetComponent("RectTransform").pivot = Vector2.New(0.5, 0.5)
this.scrollView.moveTween.MomentumAmount = 1
this.scrollView.moveTween.Strength = 2
end
function SoulPrintHandBook:BindEvent()
@ -69,6 +69,7 @@ end
function SoulPrintHandBook:AddListener()
end
function SoulPrintHandBook:RemoveListener()
end
@ -97,6 +98,7 @@ function SoulPrintHandBook:SetSelect()
this.selectBtn.transform.localPosition = tabs[curIndex].transform.localPosition
this.selectBtnText.text = Util.GetGameObject(tabs[curIndex].transform, "Text"):GetComponent("Text").text
end
function this.GetAllData()
allSoulPrintData = {}
local allCurSoulPrintData = ConfigManager.GetAllConfigsDataByKey(ConfigName.EquipConfig, "Position", 5)
@ -117,6 +119,7 @@ function this.GetAllData()
--end
end
end
--特殊的开启条件
function this.SetBottomBarIsActive()
for i = 1, #tabs do
@ -172,6 +175,7 @@ function this.OnRefresh(index)
orginLayer2 = this.sortingOrder
orginLayer = this.sortingOrder
end
--设置预设
function this.SetScrollPre(root, data)
Util.SetParticleSortLayer(root, this.sortingOrder + 1)
@ -185,9 +189,11 @@ function this.SetScrollPre(root,data)
frame.sprite = this.spLoader:LoadSprite(GetQuantityImageByquality(data.Quality))
icon.sprite = this.spLoader:LoadSprite(GetResourcePath(itemConfig[data.Id].ResourceID))
Util.GetGameObject(root,"circleFrameBg"):GetComponent("Image").sprite=this.spLoader:LoadSprite(SoulPrintSpriteByQuantity[itemConfig[data.Id].Quantity].circleBg2)
Util.GetGameObject(root,"circleFrameBg/circleFrame"):GetComponent("Image").sprite=this.spLoader:LoadSprite(SoulPrintSpriteByQuantity[itemConfig[data.Id].Quantity].circle)
local str = data.Name
Util.GetGameObject(root, "circleFrameBg"):GetComponent("Image").sprite = this.spLoader:LoadSprite(
SoulPrintSpriteByQuantity[itemConfig[data.Id].Quantity].circleBg2)
Util.GetGameObject(root, "circleFrameBg/circleFrame"):GetComponent("Image").sprite = this.spLoader:LoadSprite(
SoulPrintSpriteByQuantity[itemConfig[data.Id].Quantity].circle)
local str = GetLanguageStrById(data.Name)
if GetCurLanguage() == 0 and LengthString(data.Name) >= 5 then
str = SubString(data.Name, 4) .. "..."
end

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 928fd3985e8c04d4fa22136ad79aee4d
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: