我要变强预制体替换

onepiece_demo_arena
xiejun 2024-01-24 18:14:51 +08:00
parent ea592a85ad
commit 7db0a04431
6 changed files with 930 additions and 235 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 581 KiB

View File

@ -0,0 +1,110 @@
fileFormatVersion: 2
guid: cf0af89a5345a1743ab1a3ef2ca869bf
TextureImporter:
fileIDToRecycleName: {}
externalObjects: {}
serializedVersion: 9
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 2
aniso: -1
mipBias: -100
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- serializedVersion: 2
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: 65
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 1
androidETC2FallbackOverride: 0
- serializedVersion: 2
buildTarget: iPhone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: 57
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 1
androidETC2FallbackOverride: 0
- serializedVersion: 2
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: 4
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 1
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: dd925f2528f097b428152fa181e5b5e2
vertices: []
indices:
edges: []
weights: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -46,7 +46,7 @@ TextureImporter:
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteBorder: {x: 101, y: 18, z: 136, w: 15}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
@ -91,6 +91,17 @@ TextureImporter:
allowsAlphaSplitting: 0
overridden: 1
androidETC2FallbackOverride: 0
- serializedVersion: 2
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []

View File

@ -20,7 +20,7 @@ function BattleFailPopup:InitComponent()
this.btnBattleBack = Util.GetGameObject(this.btnClose, "btnBattleBack")
-- this.btnBattleBack:GetComponent("Image").sprite = this.spLoader:LoadSprite("s_silingshilian_huifanganniu_zh")
this.btnGrowUp = Util.GetGameObject(this.btnClose, "btnGrowUp")
this.btnGrowUp:SetActive(false)
this.btnGrowUp:SetActive(true)
end
--绑定事件(用于子类重写)
@ -125,7 +125,7 @@ function BattleFailPopup:OnOpen(battlePanel, showRecord, backPanel,_fightType)
else
this.btnBattleBack:SetActive(true)
--屏蔽我要变强界面
this.btnGrowUp:SetActive(false)
this.btnGrowUp:SetActive(true)
end
if fightType == BATTLE_TYPE.GUILD_CAR_DELAY then--车迟
--车迟抢夺cd计时

View File

@ -65,8 +65,8 @@ end
-- 按钮开闭状态改变
local _BtnStatus = {
open = {img = "Btn_hz_cheng_01", text = Language[11631], textColor = Color.New(132/255,81/255,62/255,1)},
close = {img = "Btn_hz_lan_01", text = Language[11632], textColor = Color.New(139/255,104/255,11/255,1)}
open = {img = "Btn_hz_cheng_01", text = Language[11631], textColor = Color.New(255/255,255/255,255/255,1)},
close = {img = "Btn_hz_lan_01", text = Language[11632], textColor = Color.New(139/255,255/255,255/255,1)}
}
local function _SetBtnStatus(btn, status)
local status = _BtnStatus[status]
@ -74,14 +74,14 @@ local function _SetBtnStatus(btn, status)
btn:GetComponent("Image").sprite = this.spLoader:LoadSprite(status.img)
local txt = Util.GetGameObject(btn, "Text"):GetComponent("Text")
txt.text = status.text
txt.color = status.textColor
-- txt.color = status.textColor
end
-- Tab管理器
local TabBox = require("Modules/Common/TabBox")
local _TabSprite = { default = "r_qrkh_anniu_2", select = "r_qrkh_anniu_1" }
local _TabFontColor = { default = Color.New(181 / 255, 164 / 255, 129 / 255, 1),
select = Color.New(253 / 255, 244 / 255, 214 / 255, 1) }
local _TabSprite = { default = "UI_hz_zhonghe01_83", select = "UI_hz_zhonghe01_82" }
local _TabFontColor = { default = Color.New(255 / 255, 255 / 255, 255 / 255, 1),
select = Color.New(255 / 255, 244 / 255, 255 / 255, 1) }
local _TabData = {
[1] = { name = Language[11633] },
[2] = { name = Language[11634] },