【命格】提交
parent
1ae26afed2
commit
d3a2fdf110
File diff suppressed because it is too large
Load Diff
|
|
@ -5064,9 +5064,9 @@ RectTransform:
|
|||
m_Father: {fileID: 4618111448975546095}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 462.5, y: -82}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 150, y: 100}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &7521160282375271655
|
||||
|
|
@ -15071,7 +15071,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 545, y: -402.85004}
|
||||
m_AnchoredPosition: {x: 545, y: -383.85004}
|
||||
m_SizeDelta: {x: 320, y: 80}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &4039748911539082380
|
||||
|
|
@ -21191,7 +21191,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: -131}
|
||||
m_AnchoredPosition: {x: 0, y: -112}
|
||||
m_SizeDelta: {x: 1080, y: 80}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &5974558750208915759
|
||||
|
|
@ -26484,8 +26484,8 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: -0.3, y: 0.61}
|
||||
m_SizeDelta: {x: 180, y: 130}
|
||||
m_AnchoredPosition: {x: -0.3, y: 1.05}
|
||||
m_SizeDelta: {x: 180, y: 122.1}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &3737911589591998203
|
||||
CanvasRenderer:
|
||||
|
|
@ -26700,9 +26700,9 @@ RectTransform:
|
|||
m_Father: {fileID: 4618111448975546095}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 617.5, y: -82}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 150, y: 100}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &6901141591350123851
|
||||
|
|
@ -36999,8 +36999,8 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: -0.3, y: 0.61}
|
||||
m_SizeDelta: {x: 180, y: 130}
|
||||
m_AnchoredPosition: {x: -0.3, y: 1.05}
|
||||
m_SizeDelta: {x: 180, y: 122.1}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &3436178720543727198
|
||||
CanvasRenderer:
|
||||
|
|
@ -38135,7 +38135,7 @@ GameObject:
|
|||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &4618111448975546095
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
@ -38154,7 +38154,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: -789}
|
||||
m_AnchoredPosition: {x: 0, y: -758}
|
||||
m_SizeDelta: {x: 1080, y: 164}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &1045508418924788606
|
||||
|
|
@ -57585,7 +57585,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: -131}
|
||||
m_AnchoredPosition: {x: 0, y: -112}
|
||||
m_SizeDelta: {x: 1080, y: 80}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &349050461137193553
|
||||
|
|
@ -58546,7 +58546,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: -211}
|
||||
m_AnchoredPosition: {x: 0, y: -192}
|
||||
m_SizeDelta: {x: 260, y: 74}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &7148059748799985506
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ function Gem:InitComponent()
|
|||
self.gemName = Util.GetGameObject(self.gameObject, "Stones/Name/Text"):GetComponent("Text")
|
||||
self.itemList = {}
|
||||
self.propertyList = {}
|
||||
self.lightList = {}
|
||||
|
||||
--页签
|
||||
self.btnPractice = Util.GetGameObject(self.gameObject, "Tab/tab1")
|
||||
|
|
@ -111,6 +112,7 @@ function Gem:SetGems()
|
|||
for i = 1, 8 do
|
||||
local itemGo = Util.GetGameObject(self.gems,"item ("..i..")")
|
||||
local nameImg = Util.GetGameObject(itemGo,"Name"):GetComponent("Image")
|
||||
self.lightList[i] = Util.GetGameObject(itemGo,"Light")
|
||||
nameImg.sprite = self.spLoader:LoadSprite(imgName[i])
|
||||
for j = 1, 3 do
|
||||
local stoneGo = Util.GetGameObject(itemGo,"stone ("..j..")")
|
||||
|
|
@ -146,6 +148,9 @@ function Gem:SetStones(_data,index)
|
|||
end
|
||||
local data = _data
|
||||
self.gemName.text = typeName[index].."命格"
|
||||
for i = 1, #self.lightList do
|
||||
self.lightList:SetActive(self.curType == index)
|
||||
end
|
||||
for i = 1, 3 do
|
||||
local stoneGo = Util.GetGameObject(self.stones,"Stone ("..i..")")
|
||||
local item = Util.GetGameObject(stoneGo,"Item")
|
||||
|
|
|
|||
Loading…
Reference in New Issue