2025.10.10 修爬塔不能战斗bug,rolelistitem图片替换为人物立绘
This commit is contained in:
parent
bb0ae4f7d6
commit
c8fb0858fb
@ -17,7 +17,7 @@ GameObject:
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
m_IsActive: 0
|
||||
--- !u!224 &1448609256709237708
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -77,6 +77,7 @@ GameObject:
|
||||
- component: {fileID: 1392043903466673900}
|
||||
- component: {fileID: 5295199916191688684}
|
||||
- component: {fileID: 6683996002171845105}
|
||||
- component: {fileID: 3083692918886920178}
|
||||
m_Layer: 5
|
||||
m_Name: img_character
|
||||
m_TagString: Untagged
|
||||
@ -101,7 +102,7 @@ RectTransform:
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 228, y: 249}
|
||||
m_SizeDelta: {x: 180, y: 326}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &5295199916191688684
|
||||
CanvasRenderer:
|
||||
@ -131,7 +132,7 @@ MonoBehaviour:
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 21300000, guid: e09691dca7a03724b8f37c0996bcad76, type: 3}
|
||||
m_Sprite: {fileID: 21300000, guid: 07125a32edda7094d80464c6f4014176, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
@ -141,6 +142,28 @@ MonoBehaviour:
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!114 &3083692918886920178
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 732202772935232595}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 8759edc0b8b4b3d4aa8ffef2482e17ee, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
UIName:
|
||||
keys:
|
||||
- UnityEngine.RectTransform
|
||||
- UnityEngine.CanvasRenderer
|
||||
- UnityEngine.UI.Image
|
||||
- UINode
|
||||
values: 00000100
|
||||
depObjs:
|
||||
- {fileID: 3196780638981482764}
|
||||
activeType: 0
|
||||
--- !u!1 &931562414808475295
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -601,7 +624,7 @@ GameObject:
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1088528806368046067
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -1792,6 +1815,7 @@ GameObject:
|
||||
- component: {fileID: 8520103217955849617}
|
||||
- component: {fileID: 3076450759219288884}
|
||||
- component: {fileID: 7888706841634981472}
|
||||
- component: {fileID: 8624821282849099405}
|
||||
m_Layer: 5
|
||||
m_Name: img_character
|
||||
m_TagString: Untagged
|
||||
@ -1816,7 +1840,7 @@ RectTransform:
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 228, y: 249}
|
||||
m_SizeDelta: {x: 180, y: 326}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &3076450759219288884
|
||||
CanvasRenderer:
|
||||
@ -1846,7 +1870,7 @@ MonoBehaviour:
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 21300000, guid: e09691dca7a03724b8f37c0996bcad76, type: 3}
|
||||
m_Sprite: {fileID: 21300000, guid: 07125a32edda7094d80464c6f4014176, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
@ -1856,6 +1880,28 @@ MonoBehaviour:
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!114 &8624821282849099405
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8105413834690104621}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 8759edc0b8b4b3d4aa8ffef2482e17ee, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
UIName:
|
||||
keys:
|
||||
- UnityEngine.RectTransform
|
||||
- UnityEngine.CanvasRenderer
|
||||
- UnityEngine.UI.Image
|
||||
- UINode
|
||||
values: 00000100
|
||||
depObjs:
|
||||
- {fileID: 3563403111255782966}
|
||||
activeType: 0
|
||||
--- !u!1 &8484526377876038866
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
||||
8
Assets/Content/Raw_Art/UI/UIBattle.meta
Normal file
8
Assets/Content/Raw_Art/UI/UIBattle.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 86d927633c2a72b448ee3fa5206e4dc8
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -36,7 +36,11 @@ function RoleListItemCtr:SetData(wnd, item, data, onClickOwner, onClickCB)
|
||||
|
||||
CommonUtil.LoadIcon(wnd, cfgData.Avatar, function (sprite)
|
||||
item.head.image.sprite = sprite
|
||||
item.go_selected.img_character.image.sprite = sprite
|
||||
item.go_none_selected.img_character.image.sprite = sprite
|
||||
end)
|
||||
item.go_none_selected.img_character.image:SetNativeSize()
|
||||
item.go_selected.img_character.image:SetNativeSize()
|
||||
|
||||
CommonUtil.LoadIcon(wnd, cfgData.JobIcon2, function (sprite)
|
||||
item.job.image.sprite = sprite
|
||||
|
||||
@ -36,9 +36,14 @@ function TeamRoleListItemCtr:SetData(wnd, item, data, onClickOwner, onClickCB)
|
||||
--end
|
||||
end)
|
||||
|
||||
CommonUtil.LoadIcon(wnd, cfgData.Avatar, function (sprite)
|
||||
|
||||
CommonUtil.LoadIcon(wnd, cfgData.Avatar, function(sprite)
|
||||
item.head.image.sprite = sprite
|
||||
item.go_selected.img_character.image.sprite = sprite
|
||||
item.go_none_selected.img_character.image.sprite = sprite
|
||||
end)
|
||||
item.go_none_selected.img_character.image:SetNativeSize()
|
||||
item.go_selected.img_character.image:SetNativeSize()
|
||||
|
||||
CommonUtil.LoadIcon(wnd, cfgData.JobIcon2, function (sprite)
|
||||
item.job.image.sprite = sprite
|
||||
|
||||
@ -2,6 +2,22 @@
|
||||
---@field public gameObject UnityEngine.GameObject
|
||||
---@field public button UnityEngine.UI.Button
|
||||
|
||||
---@class RoleListItem__Generate_go_none_selected_img_character
|
||||
---@field public gameObject UnityEngine.GameObject
|
||||
---@field public image UnityEngine.UI.Image
|
||||
|
||||
---@class RoleListItem__Generate_go_none_selected
|
||||
---@field public gameObject UnityEngine.GameObject
|
||||
---@field public img_character RoleListItem__Generate_go_none_selected_img_character
|
||||
|
||||
---@class RoleListItem__Generate_go_selected_img_character
|
||||
---@field public gameObject UnityEngine.GameObject
|
||||
---@field public image UnityEngine.UI.Image
|
||||
|
||||
---@class RoleListItem__Generate_go_selected
|
||||
---@field public gameObject UnityEngine.GameObject
|
||||
---@field public img_character RoleListItem__Generate_go_selected_img_character
|
||||
|
||||
---@class RoleListItem__Generate_text_level
|
||||
---@field public gameObject UnityEngine.GameObject
|
||||
---@field public text TMPro.TextMeshProUGUI
|
||||
@ -39,9 +55,9 @@
|
||||
---@field private plus UnityEngine.GameObject
|
||||
---@field private plusFrame RoleListItem__Generate_plusFrame
|
||||
---@field private text_level RoleListItem__Generate_text_level
|
||||
---@field private go_selected UnityEngine.GameObject
|
||||
---@field private go_selected RoleListItem__Generate_go_selected
|
||||
---@field private labelUp UnityEngine.GameObject
|
||||
---@field private go_none_selected UnityEngine.GameObject
|
||||
---@field private go_none_selected RoleListItem__Generate_go_none_selected
|
||||
---@field private btn RoleListItem__Generate_btn
|
||||
local RoleListItemView = class("RoleListItemView")
|
||||
|
||||
@ -72,6 +88,8 @@ function RoleListItemView:InitGenerate(Root, data)
|
||||
self:InitGenerate__11(Root,data)
|
||||
self:InitGenerate__12(Root,data)
|
||||
self:InitGenerate__13(Root,data)
|
||||
self:InitGenerate__14(Root,data)
|
||||
self:InitGenerate__15(Root,data)
|
||||
|
||||
|
||||
end
|
||||
@ -209,6 +227,20 @@ end
|
||||
|
||||
---@private
|
||||
function RoleListItemView:InitGenerate__11(Root, data)
|
||||
--[[
|
||||
go_selected/img_bg/img_character
|
||||
--]]
|
||||
local tmp = Root:Find("go_selected/img_bg/img_character").gameObject
|
||||
if tolua.getpeer(tmp) == nil then
|
||||
tolua.setpeer(tmp, {})
|
||||
end
|
||||
self.go_selected.img_character = tmp
|
||||
|
||||
tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
|
||||
end
|
||||
|
||||
---@private
|
||||
function RoleListItemView:InitGenerate__12(Root, data)
|
||||
--[[
|
||||
go_selected/LabelUp
|
||||
--]]
|
||||
@ -220,7 +252,7 @@ function RoleListItemView:InitGenerate__11(Root, data)
|
||||
end
|
||||
|
||||
---@private
|
||||
function RoleListItemView:InitGenerate__12(Root, data)
|
||||
function RoleListItemView:InitGenerate__13(Root, data)
|
||||
--[[
|
||||
go_none_selected
|
||||
--]]
|
||||
@ -232,7 +264,21 @@ function RoleListItemView:InitGenerate__12(Root, data)
|
||||
end
|
||||
|
||||
---@private
|
||||
function RoleListItemView:InitGenerate__13(Root, data)
|
||||
function RoleListItemView:InitGenerate__14(Root, data)
|
||||
--[[
|
||||
go_none_selected/img_bg/img_character
|
||||
--]]
|
||||
local tmp = Root:Find("go_none_selected/img_bg/img_character").gameObject
|
||||
if tolua.getpeer(tmp) == nil then
|
||||
tolua.setpeer(tmp, {})
|
||||
end
|
||||
self.go_none_selected.img_character = tmp
|
||||
|
||||
tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
|
||||
end
|
||||
|
||||
---@private
|
||||
function RoleListItemView:InitGenerate__15(Root, data)
|
||||
--[[
|
||||
btn
|
||||
--]]
|
||||
@ -247,6 +293,12 @@ end
|
||||
|
||||
---@private
|
||||
function RoleListItemView:GenerateDestroy()
|
||||
if tolua.getpeer(self.go_none_selected.img_character) ~= nil then
|
||||
tolua.setpeer(self.go_none_selected.img_character, nil)
|
||||
end
|
||||
if tolua.getpeer(self.go_selected.img_character) ~= nil then
|
||||
tolua.setpeer(self.go_selected.img_character, nil)
|
||||
end
|
||||
if tolua.getpeer(self.frame) ~= nil then
|
||||
tolua.setpeer(self.frame, nil)
|
||||
end
|
||||
|
||||
@ -76,7 +76,7 @@ function UIClimbingTowerCtr:GetLevelInfo(levelId)
|
||||
return TowerDataMgr:FindLevelData(levelId)
|
||||
end
|
||||
|
||||
function UIClimbingTowerCtr:EntevrBattle(levelId)
|
||||
function UIClimbingTowerCtr:EnterBattle(levelId)
|
||||
-- TowerDataMgr:EnterBattle(levelId)
|
||||
TowerDataMgr:SendClimbingTowerBeginReq(levelId)
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user