补充登录界面选中状态

This commit is contained in:
DESKTOP-SAJ6RKV\Administrator 2025-05-07 21:05:34 +08:00
parent c1e0cdbdc5
commit 5bd7f34888
9 changed files with 365 additions and 32 deletions

View File

@ -72,24 +72,18 @@ SpriteAtlas:
variantMultiplier: 1
packables:
- {fileID: 21300000, guid: 346ace4c36c0e70439cc4e264a54e7fe, type: 3}
- {fileID: 21300000, guid: 1f32cc3539821d84fa1d38bdc7e15faa, type: 3}
- {fileID: 21300000, guid: 9c4f53e9ccf3de442994111b32d0334c, type: 3}
- {fileID: 21300000, guid: a7b373fa6831d8f41abad130b231ff33, type: 3}
- {fileID: 21300000, guid: 329c27d19bace40408fe12636d57a348, type: 3}
- {fileID: 21300000, guid: b3fc31f739543024e8e7e7bf648f27f6, type: 3}
bindAsDefault: 1
isAtlasV2: 0
cachedData: {fileID: 0}
packedSpriteRenderDataKeys:
- 329c27d19bace40408fe12636d57a348: 21300000
- 9c4f53e9ccf3de442994111b32d0334c: 21300000
- 346ace4c36c0e70439cc4e264a54e7fe: 21300000
packedSpriteRenderDataKeys: []
m_MasterAtlas: {fileID: 0}
m_PackedSprites:
- {fileID: 21300000, guid: 329c27d19bace40408fe12636d57a348, type: 3}
- {fileID: 21300000, guid: 9c4f53e9ccf3de442994111b32d0334c, type: 3}
- {fileID: 21300000, guid: 346ace4c36c0e70439cc4e264a54e7fe, type: 3}
m_PackedSpriteNamesToIndex:
- dl_bt3
- dl_bt2
- dl_bt1
m_PackedSprites: []
m_PackedSpriteNamesToIndex: []
m_RenderDataMap: {}
m_Tag: "UIRaw_Atlas_\u767B\u5F55"
m_IsVariant: 0

View File

@ -393,7 +393,7 @@ RectTransform:
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -0.0000076294, y: -1.4309}
m_SizeDelta: {x: 346, y: 119}
m_SizeDelta: {x: 413, y: 177}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &4761366044680436145
CanvasRenderer:
@ -423,7 +423,7 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 9c4f53e9ccf3de442994111b32d0334c, type: 3}
m_Sprite: {fileID: 21300000, guid: a7b373fa6831d8f41abad130b231ff33, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
@ -468,7 +468,7 @@ RectTransform:
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -0.0000076294, y: -1.4309}
m_SizeDelta: {x: 346, y: 119}
m_SizeDelta: {x: 413, y: 177}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &4592885157423171675
CanvasRenderer:
@ -498,7 +498,7 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 346ace4c36c0e70439cc4e264a54e7fe, type: 3}
m_Sprite: {fileID: 21300000, guid: 1f32cc3539821d84fa1d38bdc7e15faa, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
@ -956,7 +956,7 @@ RectTransform:
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -0.0000076294, y: -1.4309}
m_SizeDelta: {x: 346, y: 119}
m_SizeDelta: {x: 413, y: 177}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &320093249577183939
CanvasRenderer:
@ -986,7 +986,7 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 329c27d19bace40408fe12636d57a348, type: 3}
m_Sprite: {fileID: 21300000, guid: b3fc31f739543024e8e7e7bf648f27f6, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

@ -0,0 +1,114 @@
fileFormatVersion: 2
guid: 1f32cc3539821d84fa1d38bdc7e15faa
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
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
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
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: 0
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@ -0,0 +1,114 @@
fileFormatVersion: 2
guid: a7b373fa6831d8f41abad130b231ff33
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
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
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
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: 0
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

@ -0,0 +1,114 @@
fileFormatVersion: 2
guid: b3fc31f739543024e8e7e7bf648f27f6
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
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
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
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: 0
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -10,14 +10,12 @@ namespace GameLogic
{
#region
private RectTransform m_rect_GameModel;
private RectTransform m_rect_GameTimeLen;
private Button m_btn_GameStart;
private Button m_btn_Setting;
private Button m_btn_GameRank;
protected override void ScriptGenerator()
{
m_rect_GameModel = FindChildComponent<RectTransform>("Bg/m_rect_GameModel");
m_rect_GameTimeLen = FindChildComponent<RectTransform>("Bg/m_rect_GameTimeLen");
m_btn_GameStart = FindChildComponent<Button>("Bg/m_btn_GameStart");
m_btn_Setting = FindChildComponent<Button>("Bg/m_btn_Setting");
m_btn_GameRank = FindChildComponent<Button>("Bg/m_btn_GameRank");
@ -26,7 +24,6 @@ namespace GameLogic
m_btn_GameRank.onClick.AddListener(OnClick_GameRankBtn);
}
#endregion
#region
// 两个模式的选择记忆功能补充
@ -46,13 +43,13 @@ namespace GameLogic
}
}
for (int i = 0; i < m_rect_GameTimeLen.childCount; i++)
{
if (m_rect_GameTimeLen.GetChild(i).GetComponent<Toggle>().isOn)
{
gameLenTiemrId = i;
}
}
//for (int i = 0; i < m_rect_GameTimeLen.childCount; i++)
//{
// if (m_rect_GameTimeLen.GetChild(i).GetComponent<Toggle>().isOn)
// {
// gameLenTiemrId = i;
// }
//}
// 设置游戏模式
// EventConts.gameStateType = (GameStateType)gameModelId;
@ -61,13 +58,13 @@ namespace GameLogic
switch (gameLenTiemrId)
{
case 0:
EventConts.gameLenTiemr = 20 * 60;
EventConts.gameLenTiemr = 10 * 60;
break;
case 1:
EventConts.gameLenTiemr = 30 * 60;
EventConts.gameLenTiemr = 20 * 60;
break;
case 2:
EventConts.gameLenTiemr = 60 * 60;
EventConts.gameLenTiemr = 30 * 60;
break;
default:
Log.Error("没有选中支持的时长模式!{0}", gameLenTiemrId);
@ -115,7 +112,7 @@ namespace GameLogic
gameLenTiemrId = GameModule.Setting.GetInt("gameLenTiemrId");
m_rect_GameModel.GetChild(gameModelId).GetComponent<Toggle>().isOn = true;
m_rect_GameTimeLen.GetChild(gameLenTiemrId).GetComponent<Toggle>().isOn = true;
//m_rect_GameTimeLen.GetChild(gameLenTiemrId).GetComponent<Toggle>().isOn = true;
// 读取音频设置