创角名字修改
parent
95f693a499
commit
b377bde004
|
@ -34481,7 +34481,7 @@ GameObject:
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 1
|
m_IsActive: 0
|
||||||
--- !u!224 &3045684752745784241
|
--- !u!224 &3045684752745784241
|
||||||
RectTransform:
|
RectTransform:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -39259,7 +39259,7 @@ RectTransform:
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
m_AnchoredPosition: {x: -30, y: 231}
|
m_AnchoredPosition: {x: -30, y: -200}
|
||||||
m_SizeDelta: {x: 841, y: 987}
|
m_SizeDelta: {x: 841, y: 987}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!222 &3471754034931023599
|
--- !u!222 &3471754034931023599
|
||||||
|
@ -58551,7 +58551,7 @@ RectTransform:
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
m_AnchoredPosition: {x: 304, y: 645}
|
m_AnchoredPosition: {x: 304, y: 545}
|
||||||
m_SizeDelta: {x: 214, y: 120}
|
m_SizeDelta: {x: 214, y: 120}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!222 &2708493886753159597
|
--- !u!222 &2708493886753159597
|
||||||
|
|
|
@ -45,8 +45,8 @@ function CreateNamePopup:InitComponent()
|
||||||
this.btnConfirmNew = Util.GetGameObject(self.gameObject, "createName/Frame/btnConfirm")
|
this.btnConfirmNew = Util.GetGameObject(self.gameObject, "createName/Frame/btnConfirm")
|
||||||
this.textNameNew = Util.GetGameObject(self.gameObject, "createName/Frame/InputField"):GetComponent("InputField")
|
this.textNameNew = Util.GetGameObject(self.gameObject, "createName/Frame/InputField"):GetComponent("InputField")
|
||||||
this.btnRandNameNew = Util.GetGameObject(self.gameObject, "createName/Frame/randIcon")
|
this.btnRandNameNew = Util.GetGameObject(self.gameObject, "createName/Frame/randIcon")
|
||||||
this.btnBoy = Util.GetGameObject(self.gameObject, "createName/boy")
|
--this.btnBoy = Util.GetGameObject(self.gameObject, "createName/boy")
|
||||||
this.btnBitch = Util.GetGameObject(self.gameObject, "createName/girl")
|
--this.btnBitch = Util.GetGameObject(self.gameObject, "createName/girl")
|
||||||
|
|
||||||
-- 性别区分
|
-- 性别区分
|
||||||
this.roleLive = Util.GetGameObject(self.gameObject, "roleHill/roleLIve")
|
this.roleLive = Util.GetGameObject(self.gameObject, "roleHill/roleLIve")
|
||||||
|
@ -74,8 +74,8 @@ function CreateNamePopup:InitComponent()
|
||||||
bigInfo[1].Scale, bigInfo[1].Pos)
|
bigInfo[1].Scale, bigInfo[1].Pos)
|
||||||
end
|
end
|
||||||
if not this.girlLive then
|
if not this.girlLive then
|
||||||
this.girlLive = poolManager:LoadLive(girlBigLive, this.roleStand.transform,
|
-- this.girlLive = poolManager:LoadLive(girlBigLive, this.roleStand.transform,
|
||||||
bigInfo[2].Scale, bigInfo[2].Pos)
|
-- bigInfo[2].Scale, bigInfo[2].Pos)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
@ -222,13 +222,13 @@ function CreateNamePopup:BindEvent()
|
||||||
this:ClosePanel()
|
this:ClosePanel()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
Util.AddClick(this.btnBoy, function ()
|
-- Util.AddClick(this.btnBoy, function ()
|
||||||
this.FreshSex(boy)
|
-- this.FreshSex(boy)
|
||||||
end)
|
-- end)
|
||||||
|
|
||||||
Util.AddClick(this.btnBitch, function ()
|
-- Util.AddClick(this.btnBitch, function ()
|
||||||
this.FreshSex(girl)
|
-- this.FreshSex(girl)
|
||||||
end)
|
-- end)
|
||||||
|
|
||||||
Util.AddClick(this.mask, function()
|
Util.AddClick(this.mask, function()
|
||||||
self:ClosePanel()
|
self:ClosePanel()
|
||||||
|
@ -259,11 +259,11 @@ function this.FreshSex(sex)
|
||||||
|
|
||||||
this.Shadow.sprite = this.spLoader:LoadSprite(shadowRes)
|
this.Shadow.sprite = this.spLoader:LoadSprite(shadowRes)
|
||||||
this.Text.sprite = this.spLoader:LoadSprite(textRes)
|
this.Text.sprite = this.spLoader:LoadSprite(textRes)
|
||||||
this.btnBoy:GetComponent("Image").sprite = this.spLoader:LoadSprite(boyIconRes)
|
--this.btnBoy:GetComponent("Image").sprite = this.spLoader:LoadSprite(boyIconRes)
|
||||||
this.btnBitch:GetComponent("Image").sprite = this.spLoader:LoadSprite(bitchIconRes)
|
--this.btnBitch:GetComponent("Image").sprite = this.spLoader:LoadSprite(bitchIconRes)
|
||||||
|
|
||||||
this.btnBoy:GetComponent("Image"):SetNativeSize()
|
--this.btnBoy:GetComponent("Image"):SetNativeSize()
|
||||||
this.btnBitch:GetComponent("Image"):SetNativeSize()
|
--this.btnBitch:GetComponent("Image"):SetNativeSize()
|
||||||
|
|
||||||
this.boyLive:SetActive(sex == boy)
|
this.boyLive:SetActive(sex == boy)
|
||||||
this.girlLive:SetActive(sex ~= boy)
|
this.girlLive:SetActive(sex ~= boy)
|
||||||
|
|
Loading…
Reference in New Issue