创角名字修改

tcx_xiyou_dev
PC-202302260912\Administrator 2024-05-10 23:31:23 +08:00
parent 95f693a499
commit b377bde004
2 changed files with 17 additions and 17 deletions

View File

@ -34481,7 +34481,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &3045684752745784241
RectTransform:
m_ObjectHideFlags: 0
@ -39259,7 +39259,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: -30, y: 231}
m_AnchoredPosition: {x: -30, y: -200}
m_SizeDelta: {x: 841, y: 987}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &3471754034931023599
@ -58551,7 +58551,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: 304, y: 645}
m_AnchoredPosition: {x: 304, y: 545}
m_SizeDelta: {x: 214, y: 120}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2708493886753159597

View File

@ -45,8 +45,8 @@ function CreateNamePopup:InitComponent()
this.btnConfirmNew = Util.GetGameObject(self.gameObject, "createName/Frame/btnConfirm")
this.textNameNew = Util.GetGameObject(self.gameObject, "createName/Frame/InputField"):GetComponent("InputField")
this.btnRandNameNew = Util.GetGameObject(self.gameObject, "createName/Frame/randIcon")
this.btnBoy = Util.GetGameObject(self.gameObject, "createName/boy")
this.btnBitch = Util.GetGameObject(self.gameObject, "createName/girl")
--this.btnBoy = Util.GetGameObject(self.gameObject, "createName/boy")
--this.btnBitch = Util.GetGameObject(self.gameObject, "createName/girl")
-- 性别区分
this.roleLive = Util.GetGameObject(self.gameObject, "roleHill/roleLIve")
@ -74,8 +74,8 @@ function CreateNamePopup:InitComponent()
bigInfo[1].Scale, bigInfo[1].Pos)
end
if not this.girlLive then
this.girlLive = poolManager:LoadLive(girlBigLive, this.roleStand.transform,
bigInfo[2].Scale, bigInfo[2].Pos)
-- this.girlLive = poolManager:LoadLive(girlBigLive, this.roleStand.transform,
-- bigInfo[2].Scale, bigInfo[2].Pos)
end
@ -222,13 +222,13 @@ function CreateNamePopup:BindEvent()
this:ClosePanel()
end)
Util.AddClick(this.btnBoy, function ()
this.FreshSex(boy)
end)
-- Util.AddClick(this.btnBoy, function ()
-- this.FreshSex(boy)
-- end)
Util.AddClick(this.btnBitch, function ()
this.FreshSex(girl)
end)
-- Util.AddClick(this.btnBitch, function ()
-- this.FreshSex(girl)
-- end)
Util.AddClick(this.mask, function()
self:ClosePanel()
@ -259,11 +259,11 @@ function this.FreshSex(sex)
this.Shadow.sprite = this.spLoader:LoadSprite(shadowRes)
this.Text.sprite = this.spLoader:LoadSprite(textRes)
this.btnBoy:GetComponent("Image").sprite = this.spLoader:LoadSprite(boyIconRes)
this.btnBitch:GetComponent("Image").sprite = this.spLoader:LoadSprite(bitchIconRes)
--this.btnBoy:GetComponent("Image").sprite = this.spLoader:LoadSprite(boyIconRes)
--this.btnBitch:GetComponent("Image").sprite = this.spLoader:LoadSprite(bitchIconRes)
this.btnBoy:GetComponent("Image"):SetNativeSize()
this.btnBitch:GetComponent("Image"):SetNativeSize()
--this.btnBoy:GetComponent("Image"):SetNativeSize()
--this.btnBitch:GetComponent("Image"):SetNativeSize()
this.boyLive:SetActive(sex == boy)
this.girlLive:SetActive(sex ~= boy)