修改设置界面
@@ -73,6 +73,21 @@ MonoBehaviour:
|
|||||||
- {fileID: 102900000, guid: 064d656ec28baec4e984e51d3b9b7fc3, type: 3}
|
- {fileID: 102900000, guid: 064d656ec28baec4e984e51d3b9b7fc3, type: 3}
|
||||||
FilterEnum: 0
|
FilterEnum: 0
|
||||||
Filter: '*'
|
Filter: '*'
|
||||||
|
- Path: Assets/ResRaw/Fgui/Common/Common_atlas_mbu9ye.png
|
||||||
|
Address: UI/Common_atlas_mbu9ye
|
||||||
|
Type: Texture2D
|
||||||
|
Bundle: main/ui.bundle
|
||||||
|
Tags:
|
||||||
|
Group:
|
||||||
|
Name: UI
|
||||||
|
Enable: 1
|
||||||
|
BundleMode: 0
|
||||||
|
AddressMode: 2
|
||||||
|
Tags:
|
||||||
|
Collectors:
|
||||||
|
- {fileID: 102900000, guid: 064d656ec28baec4e984e51d3b9b7fc3, type: 3}
|
||||||
|
FilterEnum: 0
|
||||||
|
Filter: '*'
|
||||||
- Path: Assets/ResRaw/Fgui/Common/Common_fui.bytes
|
- Path: Assets/ResRaw/Fgui/Common/Common_fui.bytes
|
||||||
Address: UI/Common_fui
|
Address: UI/Common_fui
|
||||||
Type: TextAsset
|
Type: TextAsset
|
||||||
@@ -22815,8 +22830,8 @@ MonoBehaviour:
|
|||||||
Filter: '*'
|
Filter: '*'
|
||||||
Bundles:
|
Bundles:
|
||||||
- Name: main/ui.bundle
|
- Name: main/ui.bundle
|
||||||
Hash: c96a5ac655b07d1e085439236fe63968
|
Hash: a6d6be8890d773594b4e6a1d4acf82d3
|
||||||
Size: 6556310
|
Size: 7664301
|
||||||
Assets:
|
Assets:
|
||||||
- Path: Assets/ResRaw/Fgui/Common/Common_atlas0.png
|
- Path: Assets/ResRaw/Fgui/Common/Common_atlas0.png
|
||||||
Address: UI/Common_atlas0
|
Address: UI/Common_atlas0
|
||||||
@@ -22878,6 +22893,21 @@ MonoBehaviour:
|
|||||||
- {fileID: 102900000, guid: 064d656ec28baec4e984e51d3b9b7fc3, type: 3}
|
- {fileID: 102900000, guid: 064d656ec28baec4e984e51d3b9b7fc3, type: 3}
|
||||||
FilterEnum: 0
|
FilterEnum: 0
|
||||||
Filter: '*'
|
Filter: '*'
|
||||||
|
- Path: Assets/ResRaw/Fgui/Common/Common_atlas_mbu9ye.png
|
||||||
|
Address: UI/Common_atlas_mbu9ye
|
||||||
|
Type: Texture2D
|
||||||
|
Bundle: main/ui.bundle
|
||||||
|
Tags:
|
||||||
|
Group:
|
||||||
|
Name: UI
|
||||||
|
Enable: 1
|
||||||
|
BundleMode: 0
|
||||||
|
AddressMode: 2
|
||||||
|
Tags:
|
||||||
|
Collectors:
|
||||||
|
- {fileID: 102900000, guid: 064d656ec28baec4e984e51d3b9b7fc3, type: 3}
|
||||||
|
FilterEnum: 0
|
||||||
|
Filter: '*'
|
||||||
- Path: Assets/ResRaw/Fgui/Common/Common_fui.bytes
|
- Path: Assets/ResRaw/Fgui/Common/Common_fui.bytes
|
||||||
Address: UI/Common_fui
|
Address: UI/Common_fui
|
||||||
Type: TextAsset
|
Type: TextAsset
|
||||||
@@ -23106,8 +23136,8 @@ MonoBehaviour:
|
|||||||
Dependencies: []
|
Dependencies: []
|
||||||
Tags:
|
Tags:
|
||||||
- Name: main/item.bundle
|
- Name: main/item.bundle
|
||||||
Hash: c940c1d62b2fc2adefd9488fde66d412
|
Hash: 768629ee5aca8558e6aff5faf8389b71
|
||||||
Size: 438276177
|
Size: 438274914
|
||||||
Assets:
|
Assets:
|
||||||
- Path: Assets/ResRaw/gfx/baits/black_leech/black_leech.prefab
|
- Path: Assets/ResRaw/gfx/baits/black_leech/black_leech.prefab
|
||||||
Address: Item/black_leech
|
Address: Item/black_leech
|
||||||
@@ -40968,8 +40998,8 @@ MonoBehaviour:
|
|||||||
Dependencies: []
|
Dependencies: []
|
||||||
Tags:
|
Tags:
|
||||||
- Name: main/plyaer.bundle
|
- Name: main/plyaer.bundle
|
||||||
Hash: e032c081ff79c687c6d4e0e0a50122cf
|
Hash: 44e8e09453d51e947b7f6f0034ba15d5
|
||||||
Size: 393869083
|
Size: 393873086
|
||||||
Assets:
|
Assets:
|
||||||
- Path: Assets/ResRaw/Prefabs/chwytak/chwytak.prefab
|
- Path: Assets/ResRaw/Prefabs/chwytak/chwytak.prefab
|
||||||
Address: Plyaer/chwytak
|
Address: Plyaer/chwytak
|
||||||
@@ -41406,8 +41436,23 @@ MonoBehaviour:
|
|||||||
- {fileID: 102900000, guid: aa3f5467c0c153642ac320466aee0ec1, type: 3}
|
- {fileID: 102900000, guid: aa3f5467c0c153642ac320466aee0ec1, type: 3}
|
||||||
FilterEnum: 0
|
FilterEnum: 0
|
||||||
Filter: '*'
|
Filter: '*'
|
||||||
- Path: Assets/ResRaw/Prefabs/Line/fishingLine.asset
|
- Path: Assets/ResRaw/Prefabs/Line/FishingRopeLong.asset
|
||||||
Address: Plyaer/fishingLine
|
Address: Plyaer/FishingRopeLong
|
||||||
|
Type: ObiRopeBlueprint
|
||||||
|
Bundle: main/plyaer.bundle
|
||||||
|
Tags:
|
||||||
|
Group:
|
||||||
|
Name: Plyaer
|
||||||
|
Enable: 1
|
||||||
|
BundleMode: 0
|
||||||
|
AddressMode: 2
|
||||||
|
Tags:
|
||||||
|
Collectors:
|
||||||
|
- {fileID: 102900000, guid: aa3f5467c0c153642ac320466aee0ec1, type: 3}
|
||||||
|
FilterEnum: 0
|
||||||
|
Filter: '*'
|
||||||
|
- Path: Assets/ResRaw/Prefabs/Line/FishingRopeShort.asset
|
||||||
|
Address: Plyaer/FishingRopeShort
|
||||||
Type: ObiRopeBlueprint
|
Type: ObiRopeBlueprint
|
||||||
Bundle: main/plyaer.bundle
|
Bundle: main/plyaer.bundle
|
||||||
Tags:
|
Tags:
|
||||||
@@ -41436,81 +41481,6 @@ MonoBehaviour:
|
|||||||
- {fileID: 102900000, guid: aa3f5467c0c153642ac320466aee0ec1, type: 3}
|
- {fileID: 102900000, guid: aa3f5467c0c153642ac320466aee0ec1, type: 3}
|
||||||
FilterEnum: 0
|
FilterEnum: 0
|
||||||
Filter: '*'
|
Filter: '*'
|
||||||
- Path: Assets/ResRaw/Prefabs/Line/rope blueprint.asset
|
|
||||||
Address: Plyaer/rope blueprint
|
|
||||||
Type: ObiRopeBlueprint
|
|
||||||
Bundle: main/plyaer.bundle
|
|
||||||
Tags:
|
|
||||||
Group:
|
|
||||||
Name: Plyaer
|
|
||||||
Enable: 1
|
|
||||||
BundleMode: 0
|
|
||||||
AddressMode: 2
|
|
||||||
Tags:
|
|
||||||
Collectors:
|
|
||||||
- {fileID: 102900000, guid: aa3f5467c0c153642ac320466aee0ec1, type: 3}
|
|
||||||
FilterEnum: 0
|
|
||||||
Filter: '*'
|
|
||||||
- Path: Assets/ResRaw/Prefabs/Line/RopeSegment_1 1.asset
|
|
||||||
Address: Plyaer/RopeSegment_1 1
|
|
||||||
Type: ObiRopeBlueprint
|
|
||||||
Bundle: main/plyaer.bundle
|
|
||||||
Tags:
|
|
||||||
Group:
|
|
||||||
Name: Plyaer
|
|
||||||
Enable: 1
|
|
||||||
BundleMode: 0
|
|
||||||
AddressMode: 2
|
|
||||||
Tags:
|
|
||||||
Collectors:
|
|
||||||
- {fileID: 102900000, guid: aa3f5467c0c153642ac320466aee0ec1, type: 3}
|
|
||||||
FilterEnum: 0
|
|
||||||
Filter: '*'
|
|
||||||
- Path: Assets/ResRaw/Prefabs/Line/RopeSegment_1.asset
|
|
||||||
Address: Plyaer/RopeSegment_1
|
|
||||||
Type: ObiRopeBlueprint
|
|
||||||
Bundle: main/plyaer.bundle
|
|
||||||
Tags:
|
|
||||||
Group:
|
|
||||||
Name: Plyaer
|
|
||||||
Enable: 1
|
|
||||||
BundleMode: 0
|
|
||||||
AddressMode: 2
|
|
||||||
Tags:
|
|
||||||
Collectors:
|
|
||||||
- {fileID: 102900000, guid: aa3f5467c0c153642ac320466aee0ec1, type: 3}
|
|
||||||
FilterEnum: 0
|
|
||||||
Filter: '*'
|
|
||||||
- Path: Assets/ResRaw/Prefabs/Line/RopeSegment_2.asset
|
|
||||||
Address: Plyaer/RopeSegment_2
|
|
||||||
Type: ObiRopeBlueprint
|
|
||||||
Bundle: main/plyaer.bundle
|
|
||||||
Tags:
|
|
||||||
Group:
|
|
||||||
Name: Plyaer
|
|
||||||
Enable: 1
|
|
||||||
BundleMode: 0
|
|
||||||
AddressMode: 2
|
|
||||||
Tags:
|
|
||||||
Collectors:
|
|
||||||
- {fileID: 102900000, guid: aa3f5467c0c153642ac320466aee0ec1, type: 3}
|
|
||||||
FilterEnum: 0
|
|
||||||
Filter: '*'
|
|
||||||
- Path: Assets/ResRaw/Prefabs/Line/RopeSegment_3.asset
|
|
||||||
Address: Plyaer/RopeSegment_3
|
|
||||||
Type: ObiRopeBlueprint
|
|
||||||
Bundle: main/plyaer.bundle
|
|
||||||
Tags:
|
|
||||||
Group:
|
|
||||||
Name: Plyaer
|
|
||||||
Enable: 1
|
|
||||||
BundleMode: 0
|
|
||||||
AddressMode: 2
|
|
||||||
Tags:
|
|
||||||
Collectors:
|
|
||||||
- {fileID: 102900000, guid: aa3f5467c0c153642ac320466aee0ec1, type: 3}
|
|
||||||
FilterEnum: 0
|
|
||||||
Filter: '*'
|
|
||||||
- Path: Assets/ResRaw/Prefabs/Line/RopeSegment_4.asset
|
- Path: Assets/ResRaw/Prefabs/Line/RopeSegment_4.asset
|
||||||
Address: Plyaer/RopeSegment_4
|
Address: Plyaer/RopeSegment_4
|
||||||
Type: ObiRopeBlueprint
|
Type: ObiRopeBlueprint
|
||||||
@@ -41541,21 +41511,6 @@ MonoBehaviour:
|
|||||||
- {fileID: 102900000, guid: aa3f5467c0c153642ac320466aee0ec1, type: 3}
|
- {fileID: 102900000, guid: aa3f5467c0c153642ac320466aee0ec1, type: 3}
|
||||||
FilterEnum: 0
|
FilterEnum: 0
|
||||||
Filter: '*'
|
Filter: '*'
|
||||||
- Path: Assets/ResRaw/Prefabs/Line/Tip.prefab
|
|
||||||
Address: Plyaer/Tip
|
|
||||||
Type: GameObject
|
|
||||||
Bundle: main/plyaer.bundle
|
|
||||||
Tags:
|
|
||||||
Group:
|
|
||||||
Name: Plyaer
|
|
||||||
Enable: 1
|
|
||||||
BundleMode: 0
|
|
||||||
AddressMode: 2
|
|
||||||
Tags:
|
|
||||||
Collectors:
|
|
||||||
- {fileID: 102900000, guid: aa3f5467c0c153642ac320466aee0ec1, type: 3}
|
|
||||||
FilterEnum: 0
|
|
||||||
Filter: '*'
|
|
||||||
- Path: Assets/ResRaw/Prefabs/Player/Anim/AnimationClip/CameraCrouch.anim
|
- Path: Assets/ResRaw/Prefabs/Player/Anim/AnimationClip/CameraCrouch.anim
|
||||||
Address: Plyaer/CameraCrouch
|
Address: Plyaer/CameraCrouch
|
||||||
Type: AnimationClip
|
Type: AnimationClip
|
||||||
|
|||||||
@@ -13,22 +13,19 @@ MonoBehaviour:
|
|||||||
m_Name: example_bool_tutorialCompleted
|
m_Name: example_bool_tutorialCompleted
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
serializationData:
|
serializationData:
|
||||||
SerializedFormat: 2
|
SerializedFormat: 0
|
||||||
SerializedBytes:
|
SerializedBytes: 2d010e000000520065007000610069006e0074005200650071007500650073007400
|
||||||
ReferencedUnityObjects: []
|
ReferencedUnityObjects: []
|
||||||
SerializedBytesString:
|
SerializedBytesString:
|
||||||
Prefab: {fileID: 0}
|
Prefab: {fileID: 0}
|
||||||
PrefabModificationsReferencedUnityObjects: []
|
PrefabModificationsReferencedUnityObjects: []
|
||||||
PrefabModifications: []
|
PrefabModifications: []
|
||||||
SerializationNodes:
|
SerializationNodes: []
|
||||||
- Name: RepaintRequest
|
|
||||||
Entry: 6
|
|
||||||
Data:
|
|
||||||
TagIndex: 0
|
TagIndex: 0
|
||||||
Description:
|
Description:
|
||||||
_guid: 1afe66c634254d647bce4ea62658436e
|
_guid: 1afe66c634254d647bce4ea62658436e
|
||||||
_saveGuid: 0
|
_saveGuid: 0
|
||||||
_value: 1
|
_value: 0
|
||||||
_debugLogEnabled: 0
|
_debugLogEnabled: 0
|
||||||
_saved: 1
|
_saved: 1
|
||||||
_defaultValue: 0
|
_defaultValue: 0
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 4.5 MiB After Width: | Height: | Size: 971 KiB |
BIN
Assets/ResRaw/Fgui/Common/Common_atlas_mbu9ye.png
Normal file
|
After Width: | Height: | Size: 1.5 MiB |
117
Assets/ResRaw/Fgui/Common/Common_atlas_mbu9ye.png.meta
Normal file
@@ -0,0 +1,117 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 91f05f7801b3e284e9bf6ec0efa4571e
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 13
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 1
|
||||||
|
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: 0
|
||||||
|
wrapV: 0
|
||||||
|
wrapW: 0
|
||||||
|
nPOTScale: 1
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 0
|
||||||
|
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: 0
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 0
|
||||||
|
textureShape: 1
|
||||||
|
singleChannelComponent: 0
|
||||||
|
flipbookRows: 1
|
||||||
|
flipbookColumns: 1
|
||||||
|
maxTextureSizeSet: 0
|
||||||
|
compressionQualitySet: 0
|
||||||
|
textureFormatSet: 0
|
||||||
|
ignorePngGamma: 0
|
||||||
|
applyGammaDecoding: 0
|
||||||
|
swizzle: 50462976
|
||||||
|
cookieLightType: 0
|
||||||
|
platformSettings:
|
||||||
|
- serializedVersion: 4
|
||||||
|
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: 4
|
||||||
|
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: []
|
||||||
|
customData:
|
||||||
|
physicsShape: []
|
||||||
|
bones: []
|
||||||
|
spriteID:
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
spriteCustomMetadata:
|
||||||
|
entries: []
|
||||||
|
nameFileIdTable: {}
|
||||||
|
mipmapLimitGroupName:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 452 KiB |
@@ -26,7 +26,7 @@ RenderSettings:
|
|||||||
m_AmbientIntensity: 0.8050667
|
m_AmbientIntensity: 0.8050667
|
||||||
m_AmbientMode: 0
|
m_AmbientMode: 0
|
||||||
m_SubtractiveShadowColor: {r: 0.8679245, g: 0.8679245, b: 0.8679245, a: 1}
|
m_SubtractiveShadowColor: {r: 0.8679245, g: 0.8679245, b: 0.8679245, a: 1}
|
||||||
m_SkyboxMaterial: {fileID: 183935945}
|
m_SkyboxMaterial: {fileID: 2032963743}
|
||||||
m_HaloStrength: 0.5
|
m_HaloStrength: 0.5
|
||||||
m_FlareStrength: 1
|
m_FlareStrength: 1
|
||||||
m_FlareFadeSpeed: 3
|
m_FlareFadeSpeed: 3
|
||||||
@@ -387,54 +387,6 @@ MonoBehaviour:
|
|||||||
_MaximumSpeed: 100
|
_MaximumSpeed: 100
|
||||||
_WarnOnSpeedClamp: 0
|
_WarnOnSpeedClamp: 0
|
||||||
_DebugSubsteps: 0
|
_DebugSubsteps: 0
|
||||||
--- !u!21 &183935945
|
|
||||||
Material:
|
|
||||||
serializedVersion: 8
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: Enviro/Skybox
|
|
||||||
m_Shader: {fileID: 4800000, guid: 34fee0a1b19b20b45aea7483b5f757da, type: 3}
|
|
||||||
m_Parent: {fileID: 0}
|
|
||||||
m_ModifiedSerializedProperties: 0
|
|
||||||
m_ValidKeywords: []
|
|
||||||
m_InvalidKeywords: []
|
|
||||||
m_LightmapFlags: 4
|
|
||||||
m_EnableInstancingVariants: 0
|
|
||||||
m_DoubleSidedGI: 0
|
|
||||||
m_CustomRenderQueue: -1
|
|
||||||
stringTagMap: {}
|
|
||||||
disabledShaderPasses: []
|
|
||||||
m_LockedProperties:
|
|
||||||
m_SavedProperties:
|
|
||||||
serializedVersion: 3
|
|
||||||
m_TexEnvs:
|
|
||||||
- _GalaxyTex:
|
|
||||||
m_Texture: {fileID: 8900000, guid: 5734983fc81450b4187c3cfa5985edef, type: 3}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- _MoonGlowTex:
|
|
||||||
m_Texture: {fileID: 2800000, guid: 6838e0810da4e49488b5d9a6ee76eb07, type: 3}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- _MoonTex:
|
|
||||||
m_Texture: {fileID: 2800000, guid: c6fd9f694390e0245b6dca5812065950, type: 3}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- _StarsTex:
|
|
||||||
m_Texture: {fileID: 8900000, guid: b5a7175da0f133b4d951c19c9c2cebfc, type: 3}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- _SunTex:
|
|
||||||
m_Texture: {fileID: 2800000, guid: c95bed5306e94f24ba5802d841607ac7, type: 3}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
m_Ints: []
|
|
||||||
m_Floats: []
|
|
||||||
m_Colors: []
|
|
||||||
m_BuildTextureStacks: []
|
|
||||||
m_AllowLocking: 1
|
|
||||||
--- !u!1 &211586105
|
--- !u!1 &211586105
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -882,7 +834,7 @@ MonoBehaviour:
|
|||||||
_Sky: 1
|
_Sky: 1
|
||||||
_DisablePixelLights: 1
|
_DisablePixelLights: 1
|
||||||
_DisableShadows: 1
|
_DisableShadows: 1
|
||||||
_HDR: 1
|
_HDR: 0
|
||||||
_Stencil: 0
|
_Stencil: 0
|
||||||
_QualitySettingsOverride:
|
_QualitySettingsOverride:
|
||||||
_OverrideLodBias: 0
|
_OverrideLodBias: 0
|
||||||
@@ -1024,7 +976,7 @@ MonoBehaviour:
|
|||||||
customRendering: 0
|
customRendering: 0
|
||||||
useFog: 0
|
useFog: 0
|
||||||
bakingCam: {fileID: 0}
|
bakingCam: {fileID: 0}
|
||||||
renderId: 11157
|
renderId: 2
|
||||||
--- !u!215 &878887029
|
--- !u!215 &878887029
|
||||||
ReflectionProbe:
|
ReflectionProbe:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -1487,6 +1439,54 @@ MonoBehaviour:
|
|||||||
_MaximumSpeed: 100
|
_MaximumSpeed: 100
|
||||||
_WarnOnSpeedClamp: 0
|
_WarnOnSpeedClamp: 0
|
||||||
_DebugSubsteps: 0
|
_DebugSubsteps: 0
|
||||||
|
--- !u!21 &2032963743
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: Enviro/Skybox
|
||||||
|
m_Shader: {fileID: 4800000, guid: 34fee0a1b19b20b45aea7483b5f757da, type: 3}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _GalaxyTex:
|
||||||
|
m_Texture: {fileID: 8900000, guid: 5734983fc81450b4187c3cfa5985edef, type: 3}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MoonGlowTex:
|
||||||
|
m_Texture: {fileID: 2800000, guid: 6838e0810da4e49488b5d9a6ee76eb07, type: 3}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MoonTex:
|
||||||
|
m_Texture: {fileID: 2800000, guid: c6fd9f694390e0245b6dca5812065950, type: 3}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _StarsTex:
|
||||||
|
m_Texture: {fileID: 8900000, guid: b5a7175da0f133b4d951c19c9c2cebfc, type: 3}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _SunTex:
|
||||||
|
m_Texture: {fileID: 2800000, guid: c95bed5306e94f24ba5802d841607ac7, type: 3}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats: []
|
||||||
|
m_Colors: []
|
||||||
|
m_BuildTextureStacks: []
|
||||||
|
m_AllowLocking: 1
|
||||||
--- !u!1 &2079119365
|
--- !u!1 &2079119365
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -8216,7 +8216,6 @@ MonoBehaviour:
|
|||||||
GearNode: {fileID: 6022323663597824692}
|
GearNode: {fileID: 6022323663597824692}
|
||||||
Water: {fileID: 0}
|
Water: {fileID: 0}
|
||||||
LineRenderer: {fileID: 0}
|
LineRenderer: {fileID: 0}
|
||||||
AzureCoreSystem: {fileID: 0}
|
|
||||||
FPS: 0
|
FPS: 0
|
||||||
updateInterval: 0.2
|
updateInterval: 0.2
|
||||||
--- !u!1 &7460703579491896368
|
--- !u!1 &7460703579491896368
|
||||||
@@ -8330,11 +8329,11 @@ MonoBehaviour:
|
|||||||
Lighting: {fileID: 1121697361819163703, guid: 59da3fbf5f918234799ed9be3eb0ddba, type: 2}
|
Lighting: {fileID: 1121697361819163703, guid: 59da3fbf5f918234799ed9be3eb0ddba, type: 2}
|
||||||
Reflections: {fileID: 3003072118128753163, guid: 59da3fbf5f918234799ed9be3eb0ddba, type: 2}
|
Reflections: {fileID: 3003072118128753163, guid: 59da3fbf5f918234799ed9be3eb0ddba, type: 2}
|
||||||
Sky: {fileID: -1033463005042072443, guid: 59da3fbf5f918234799ed9be3eb0ddba, type: 2}
|
Sky: {fileID: -1033463005042072443, guid: 59da3fbf5f918234799ed9be3eb0ddba, type: 2}
|
||||||
Fog: {fileID: 6137975383063632260, guid: 59da3fbf5f918234799ed9be3eb0ddba, type: 2}
|
Fog: {fileID: 0}
|
||||||
VolumetricClouds: {fileID: 0}
|
VolumetricClouds: {fileID: 0}
|
||||||
FlatClouds: {fileID: -6856645797116724545, guid: 59da3fbf5f918234799ed9be3eb0ddba, type: 2}
|
FlatClouds: {fileID: -6856645797116724545, guid: 59da3fbf5f918234799ed9be3eb0ddba, type: 2}
|
||||||
Weather: {fileID: -2780709178333184838, guid: 59da3fbf5f918234799ed9be3eb0ddba, type: 2}
|
Weather: {fileID: -2780709178333184838, guid: 59da3fbf5f918234799ed9be3eb0ddba, type: 2}
|
||||||
Aurora: {fileID: 4011421771873438716, guid: 59da3fbf5f918234799ed9be3eb0ddba, type: 2}
|
Aurora: {fileID: 0}
|
||||||
Audio: {fileID: 2333546472042683326, guid: 59da3fbf5f918234799ed9be3eb0ddba, type: 2}
|
Audio: {fileID: 2333546472042683326, guid: 59da3fbf5f918234799ed9be3eb0ddba, type: 2}
|
||||||
Effects: {fileID: -6613759932185320841, guid: 59da3fbf5f918234799ed9be3eb0ddba, type: 2}
|
Effects: {fileID: -6613759932185320841, guid: 59da3fbf5f918234799ed9be3eb0ddba, type: 2}
|
||||||
Lightning: {fileID: 8141577898218642580, guid: 59da3fbf5f918234799ed9be3eb0ddba, type: 2}
|
Lightning: {fileID: 8141577898218642580, guid: 59da3fbf5f918234799ed9be3eb0ddba, type: 2}
|
||||||
|
|||||||
@@ -2183,8 +2183,8 @@ BlendTree:
|
|||||||
m_CycleOffset: 0
|
m_CycleOffset: 0
|
||||||
m_DirectBlendParameter:
|
m_DirectBlendParameter:
|
||||||
m_Mirror: 0
|
m_Mirror: 0
|
||||||
m_BlendParameter: Jump 0
|
m_BlendParameter: mouthLowerDownRight
|
||||||
m_BlendParameterY: JumpLeg
|
m_BlendParameterY: TH
|
||||||
m_MinThreshold: 0
|
m_MinThreshold: 0
|
||||||
m_MaxThreshold: 40
|
m_MaxThreshold: 40
|
||||||
m_UseAutomaticThresholds: 0
|
m_UseAutomaticThresholds: 0
|
||||||
|
|||||||
@@ -1629,8 +1629,8 @@ Camera:
|
|||||||
y: 0
|
y: 0
|
||||||
width: 1
|
width: 1
|
||||||
height: 1
|
height: 1
|
||||||
near clip plane: 0.01
|
near clip plane: 0.1
|
||||||
far clip plane: 5000
|
far clip plane: 3000
|
||||||
field of view: 60.000004
|
field of view: 60.000004
|
||||||
orthographic: 0
|
orthographic: 0
|
||||||
orthographic size: 5
|
orthographic size: 5
|
||||||
@@ -1784,6 +1784,7 @@ GameObject:
|
|||||||
- component: {fileID: 1341717235351337375}
|
- component: {fileID: 1341717235351337375}
|
||||||
- component: {fileID: 7388915548948935574}
|
- component: {fileID: 7388915548948935574}
|
||||||
- component: {fileID: 7388915548948935575}
|
- component: {fileID: 7388915548948935575}
|
||||||
|
- component: {fileID: 7388915548948935576}
|
||||||
m_Layer: 0
|
m_Layer: 0
|
||||||
m_Name: Init
|
m_Name: Init
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
@@ -1826,6 +1827,24 @@ MonoBehaviour:
|
|||||||
MoveInput: {x: 0, y: 0}
|
MoveInput: {x: 0, y: 0}
|
||||||
EyeAngle: 0
|
EyeAngle: 0
|
||||||
NextState: 0
|
NextState: 0
|
||||||
|
--- !u!114 &7388915548948935576
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7388915548948935573}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: bb1abc98a51ad124fa638d080c051ce4, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier: Assembly-CSharp::NBC.SoundManager
|
||||||
|
mixer: {fileID: 24100000, guid: 7a7096d3677868648abe69eb19c512c3, type: 2}
|
||||||
|
bgmGroup: {fileID: 0}
|
||||||
|
sfxGroup: {fileID: 0}
|
||||||
|
uiGroup: {fileID: 0}
|
||||||
|
ambientGroup: {fileID: 0}
|
||||||
|
playerGroup: {fileID: 0}
|
||||||
--- !u!1660057539 &9223372036854775807
|
--- !u!1660057539 &9223372036854775807
|
||||||
SceneRoots:
|
SceneRoots:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|||||||
@@ -20,9 +20,8 @@ namespace NBF
|
|||||||
[AttributeUsage(AttributeTargets.Method)]
|
[AttributeUsage(AttributeTargets.Method)]
|
||||||
public class UIExtensionAutoBindAttribute : BaseAttribute
|
public class UIExtensionAutoBindAttribute : BaseAttribute
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[AttributeUsage(AttributeTargets.Field)]
|
[AttributeUsage(AttributeTargets.Field)]
|
||||||
public class InputIconAttribute : BaseAttribute
|
public class InputIconAttribute : BaseAttribute
|
||||||
{
|
{
|
||||||
@@ -74,4 +73,19 @@ namespace NBF
|
|||||||
Sort = sort;
|
Sort = sort;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[AttributeUsage(AttributeTargets.Method)]
|
||||||
|
public class InputInvokeAttribute : BaseAttribute
|
||||||
|
{
|
||||||
|
public string Name;
|
||||||
|
public string Key;
|
||||||
|
public bool ShowLeft;
|
||||||
|
|
||||||
|
public InputInvokeAttribute(string name, string key = "", bool showLeft = true)
|
||||||
|
{
|
||||||
|
Name = name;
|
||||||
|
Key = key;
|
||||||
|
ShowLeft = showLeft;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using NBC;
|
using NBC;
|
||||||
// using Rewired;
|
// using Rewired;
|
||||||
@@ -13,6 +14,12 @@ namespace NBF
|
|||||||
GamePad = 1
|
GamePad = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public struct UIInputInvoke
|
||||||
|
{
|
||||||
|
public object UIObject;
|
||||||
|
public InputInvokeAttribute InputInvoke;
|
||||||
|
}
|
||||||
|
|
||||||
public class InputManager : MonoService<InputManager>
|
public class InputManager : MonoService<InputManager>
|
||||||
{
|
{
|
||||||
public static bool IsOp1;
|
public static bool IsOp1;
|
||||||
@@ -237,5 +244,20 @@ namespace NBF
|
|||||||
OnUIPerformed?.Invoke(actionName);
|
OnUIPerformed?.Invoke(actionName);
|
||||||
OnUICanceled?.Invoke(actionName);
|
OnUICanceled?.Invoke(actionName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#region UI界面按键管理
|
||||||
|
|
||||||
|
private readonly Dictionary<object, List<UIInputInvoke>> _panelActions =
|
||||||
|
new Dictionary<object, List<UIInputInvoke>>();
|
||||||
|
|
||||||
|
public void On(object obj)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Off(object obj)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -7,6 +7,7 @@ namespace NBF.Setting
|
|||||||
public interface IMultiOption : IOptionBase
|
public interface IMultiOption : IOptionBase
|
||||||
{
|
{
|
||||||
List<string> GetOptionNames();
|
List<string> GetOptionNames();
|
||||||
|
bool IsDropdown { get; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public abstract class MultiOption<T> : OptionBase, IMultiOption
|
public abstract class MultiOption<T> : OptionBase, IMultiOption
|
||||||
@@ -21,6 +22,8 @@ namespace NBF.Setting
|
|||||||
|
|
||||||
public List<string> GetOptionNames() => OptionTable.GetNames();
|
public List<string> GetOptionNames() => OptionTable.GetNames();
|
||||||
|
|
||||||
|
public virtual bool IsDropdown => false;
|
||||||
|
|
||||||
|
|
||||||
protected void SelectOption(T value, int defaultIndex = 0)
|
protected void SelectOption(T value, int defaultIndex = 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -51,13 +51,18 @@ namespace NBF.Setting
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ISettings Root { get; private set; }
|
public ISettings Root { get; private set; }
|
||||||
|
|
||||||
|
|
||||||
public void Initialize(ISettings root)
|
public void Initialize(ISettings root)
|
||||||
{
|
{
|
||||||
Root = root;
|
Root = root;
|
||||||
Load();
|
Load();
|
||||||
OnInitialize();
|
OnInitialize();
|
||||||
|
if (!PlayerPrefs.HasKey(SaveKey))
|
||||||
|
{
|
||||||
|
OnSetDefaultValue();
|
||||||
|
}
|
||||||
|
|
||||||
Apply();
|
Apply();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -85,15 +90,14 @@ namespace NBF.Setting
|
|||||||
|
|
||||||
public virtual void Cancel()
|
public virtual void Cancel()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public virtual string GetDisplayString()
|
public virtual string GetDisplayString()
|
||||||
{
|
{
|
||||||
return GetValue().ToString();
|
return GetValue().ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual int GetValue()
|
public virtual int GetValue()
|
||||||
{
|
{
|
||||||
return Value;
|
return Value;
|
||||||
@@ -109,6 +113,11 @@ namespace NBF.Setting
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected virtual void OnSetDefaultValue()
|
||||||
|
{
|
||||||
|
Value = DefaultValue;
|
||||||
|
SaveValue = DefaultValue;
|
||||||
|
}
|
||||||
|
|
||||||
protected abstract void OnApply();
|
protected abstract void OnApply();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
using Unity.Collections;
|
||||||
|
using System.Collections;
|
||||||
|
|
||||||
namespace NBF.Setting
|
namespace NBF.Setting
|
||||||
{
|
{
|
||||||
@@ -20,8 +22,15 @@ namespace NBF.Setting
|
|||||||
|
|
||||||
protected override void OnApply()
|
protected override void OnApply()
|
||||||
{
|
{
|
||||||
// Screen.fullScreenMode = GetSelectedOption();
|
Screen.fullScreenMode = GetSelectedOption();
|
||||||
// Debug.Log($"FullScreenMode: {Screen.fullScreenMode} value: {GetSelectedOption()}");
|
if (Screen.fullScreenMode == FullScreenMode.ExclusiveFullScreen)
|
||||||
|
{
|
||||||
|
Screen.fullScreen = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
var nmsl = KeyCode.Alpha0;
|
||||||
|
|
||||||
|
Debug.Log($"FullScreenMode: {Screen.fullScreenMode} value: {GetSelectedOption()}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -16,19 +16,84 @@ namespace NBF.Setting
|
|||||||
public override string Group => SettingsDef.Group.Graphic;
|
public override string Group => SettingsDef.Group.Graphic;
|
||||||
protected override int DefaultValue => _defaultResolution;
|
protected override int DefaultValue => _defaultResolution;
|
||||||
public override string Tab => SettingsDef.Tab.Graphic;
|
public override string Tab => SettingsDef.Tab.Graphic;
|
||||||
|
public override bool IsDropdown => true;
|
||||||
|
|
||||||
|
|
||||||
|
static readonly (int w, int h)[] Classic16_9 =
|
||||||
|
{
|
||||||
|
(1280, 720),
|
||||||
|
(1600, 900),
|
||||||
|
(1920, 1080),
|
||||||
|
(2560, 1440),
|
||||||
|
(3840, 2160),
|
||||||
|
};
|
||||||
|
|
||||||
|
static readonly (int w, int h)[] Classic16_10 =
|
||||||
|
{
|
||||||
|
(1280, 800),
|
||||||
|
(1680, 1050),
|
||||||
|
(1920, 1200),
|
||||||
|
(2560, 1600),
|
||||||
|
};
|
||||||
|
|
||||||
|
static readonly (int w, int h)[] Classic21_9 =
|
||||||
|
{
|
||||||
|
(2560, 1080),
|
||||||
|
(3440, 1440),
|
||||||
|
(3840, 1600),
|
||||||
|
};
|
||||||
|
|
||||||
|
static readonly (int w, int h)[] Classic32_9 =
|
||||||
|
{
|
||||||
|
(3840, 1080),
|
||||||
|
(5120, 1440),
|
||||||
|
};
|
||||||
|
|
||||||
protected override void OnInitialize()
|
protected override void OnInitialize()
|
||||||
{
|
{
|
||||||
var supportedResolutions = Screen.resolutions
|
var supported = Screen.resolutions
|
||||||
.GroupBy(r => $"{r.width}x{r.height}") // 按宽高分组
|
.Select(r => (r.width, r.height))
|
||||||
.Select(g => g.OrderByDescending(r => r.refreshRateRatio).First())
|
.Distinct()
|
||||||
.ToArray();
|
.ToHashSet();
|
||||||
foreach (var resolution in supportedResolutions)
|
|
||||||
|
var mainWindowDisplayInfo = Screen.mainWindowDisplayInfo; // 主窗口所在显示器的信息
|
||||||
|
|
||||||
|
float aspect = (float)Screen.currentResolution.width / Screen.currentResolution.height;
|
||||||
|
|
||||||
|
bool Near(float a, float b, float eps = 0.03f) => Mathf.Abs(a - b) <= eps;
|
||||||
|
|
||||||
|
IEnumerable<(int w, int h)> preferred =
|
||||||
|
Near(aspect, 16f / 9f) ? Classic16_9 :
|
||||||
|
Near(aspect, 16f / 10f) ? Classic16_10 :
|
||||||
|
Near(aspect, 21f / 9f) ? Classic21_9 :
|
||||||
|
Near(aspect, 32f / 9f) ? Classic32_9 :
|
||||||
|
Classic16_9; // 兜底
|
||||||
|
|
||||||
|
|
||||||
|
var list = preferred.Where(supported.Contains).ToList();
|
||||||
|
|
||||||
|
// 兜底:保证原生分辨率一定在列表里(尤其是超宽屏)
|
||||||
|
var native = (Screen.currentResolution.width, Screen.currentResolution.height);
|
||||||
|
if (!list.Contains(native) && supported.Contains(native))
|
||||||
|
list.Add(native);
|
||||||
|
|
||||||
|
// 排序(从小到大或从大到小都行)
|
||||||
|
list = list.OrderBy(x => x.w * x.h).ToList();
|
||||||
|
|
||||||
|
|
||||||
|
foreach (var resolution in list)
|
||||||
{
|
{
|
||||||
if (resolution.width < 720 || resolution.height < 720) continue;
|
var w = resolution.w;
|
||||||
AddOption($"{resolution.width}x{resolution.height}", resolution);
|
var h = resolution.h;
|
||||||
Log.Info($"Resolution {resolution.width}x{resolution.height}");
|
if (w > mainWindowDisplayInfo.width || h > mainWindowDisplayInfo.height) continue;
|
||||||
|
AddOption($"{w}x{h}", new Resolution()
|
||||||
|
{
|
||||||
|
width = w,
|
||||||
|
height = h,
|
||||||
|
});
|
||||||
|
Log.Info($"Resolution {w}x{h}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
TryGetIndex(t =>
|
TryGetIndex(t =>
|
||||||
t.width == Screen.currentResolution.width && t.height == Screen.currentResolution.height,
|
t.width == Screen.currentResolution.width && t.height == Screen.currentResolution.height,
|
||||||
@@ -38,7 +103,15 @@ namespace NBF.Setting
|
|||||||
{
|
{
|
||||||
_defaultResolution = 0;
|
_defaultResolution = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var n = Value;
|
||||||
|
var nm = SaveValue;
|
||||||
|
if (!PlayerPrefs.HasKey(SaveKey))
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
protected override void OnApply()
|
protected override void OnApply()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ namespace NBF
|
|||||||
public string Key;
|
public string Key;
|
||||||
public string Icon;
|
public string Icon;
|
||||||
public bool IsAll;
|
public bool IsAll;
|
||||||
|
public string Name;
|
||||||
|
|
||||||
// 条目可以是任意对象类型
|
// 条目可以是任意对象类型
|
||||||
public List<object> Items = new List<object>();
|
public List<object> Items = new List<object>();
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
|
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
|
||||||
// version 1.14.2
|
// version 1.16.0
|
||||||
// from Assets/PlayerInputControl.inputactions
|
// from Assets/PlayerInputControl.inputactions
|
||||||
//
|
//
|
||||||
// Changes to this file may cause incorrect behavior and will be lost if
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
|
|||||||
@@ -91,6 +91,8 @@ namespace NBF
|
|||||||
// loadAssemblies.Add(assembly);
|
// loadAssemblies.Add(assembly);
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
gameObject.AddComponent<Settings>();
|
||||||
|
|
||||||
// 1. 初始化 Fantasy 框架
|
// 1. 初始化 Fantasy 框架
|
||||||
await Fantasy.Platform.Unity.Entry.Initialize();
|
await Fantasy.Platform.Unity.Entry.Initialize();
|
||||||
|
|
||||||
@@ -151,9 +153,6 @@ namespace NBF
|
|||||||
|
|
||||||
private void InitUI()
|
private void InitUI()
|
||||||
{
|
{
|
||||||
GRoot.inst.SetContentScaleFactor(UIDef.DefaultScreen.Width, UIDef.DefaultScreen.Height,
|
|
||||||
UIContentScaler.ScreenMatchMode.MatchWidthOrHeight);
|
|
||||||
|
|
||||||
Binder.BindAll();
|
Binder.BindAll();
|
||||||
UIObjectFactory.SetLoaderExtension(typeof(XGLoader));
|
UIObjectFactory.SetLoaderExtension(typeof(XGLoader));
|
||||||
UIConst.UIPackRootUrl = UIDef.UIRoot;
|
UIConst.UIPackRootUrl = UIDef.UIRoot;
|
||||||
|
|||||||
@@ -60,7 +60,8 @@ namespace NBF
|
|||||||
{
|
{
|
||||||
// await Task.Delay(100);
|
// await Task.Delay(100);
|
||||||
CommonTopPanel.Show();
|
CommonTopPanel.Show();
|
||||||
LoginPanel.Show();
|
SettingPanel.Show();
|
||||||
|
// LoginPanel.Show();
|
||||||
// PreviewPanel.Show();
|
// PreviewPanel.Show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ namespace NBF
|
|||||||
UIObjectFactory.SetPackageItemExtension(ClassifyList.URL, typeof(ClassifyList));
|
UIObjectFactory.SetPackageItemExtension(ClassifyList.URL, typeof(ClassifyList));
|
||||||
UIObjectFactory.SetPackageItemExtension(CommonMenu.URL, typeof(CommonMenu));
|
UIObjectFactory.SetPackageItemExtension(CommonMenu.URL, typeof(CommonMenu));
|
||||||
UIObjectFactory.SetPackageItemExtension(MarqueeTag.URL, typeof(MarqueeTag));
|
UIObjectFactory.SetPackageItemExtension(MarqueeTag.URL, typeof(MarqueeTag));
|
||||||
|
UIObjectFactory.SetPackageItemExtension(BtnSubMenuLeft.URL, typeof(BtnSubMenuLeft));
|
||||||
UIObjectFactory.SetPackageItemExtension(BtnTextInputControl.URL, typeof(BtnTextInputControl));
|
UIObjectFactory.SetPackageItemExtension(BtnTextInputControl.URL, typeof(BtnTextInputControl));
|
||||||
UIObjectFactory.SetPackageItemExtension(CommonItemList.URL, typeof(CommonItemList));
|
UIObjectFactory.SetPackageItemExtension(CommonItemList.URL, typeof(CommonItemList));
|
||||||
UIObjectFactory.SetPackageItemExtension(BtnTitleInputControl.URL, typeof(BtnTitleInputControl));
|
UIObjectFactory.SetPackageItemExtension(BtnTitleInputControl.URL, typeof(BtnTitleInputControl));
|
||||||
@@ -22,6 +23,7 @@ namespace NBF
|
|||||||
UIObjectFactory.SetPackageItemExtension(CommonSubMenu.URL, typeof(CommonSubMenu));
|
UIObjectFactory.SetPackageItemExtension(CommonSubMenu.URL, typeof(CommonSubMenu));
|
||||||
UIObjectFactory.SetPackageItemExtension(BtnInputControl.URL, typeof(BtnInputControl));
|
UIObjectFactory.SetPackageItemExtension(BtnInputControl.URL, typeof(BtnInputControl));
|
||||||
UIObjectFactory.SetPackageItemExtension(ListTitleItem.URL, typeof(ListTitleItem));
|
UIObjectFactory.SetPackageItemExtension(ListTitleItem.URL, typeof(ListTitleItem));
|
||||||
|
UIObjectFactory.SetPackageItemExtension(BtnSubMenu.URL, typeof(BtnSubMenu));
|
||||||
UIObjectFactory.SetPackageItemExtension(ModelViewer.URL, typeof(ModelViewer));
|
UIObjectFactory.SetPackageItemExtension(ModelViewer.URL, typeof(ModelViewer));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ namespace NBF
|
|||||||
if (_panel == null) return;
|
if (_panel == null) return;
|
||||||
if (!_panel.IsShowing) return;
|
if (!_panel.IsShowing) return;
|
||||||
if (!_panel.IsTop) return;
|
if (!_panel.IsTop) return;
|
||||||
|
|
||||||
if (action == InputDef.UI.SubPrev)
|
if (action == InputDef.UI.SubPrev)
|
||||||
{
|
{
|
||||||
OnClickBtnPrev();
|
OnClickBtnPrev();
|
||||||
@@ -57,7 +57,7 @@ namespace NBF
|
|||||||
for (int i = 0; i < subItems.Count; i++)
|
for (int i = 0; i < subItems.Count; i++)
|
||||||
{
|
{
|
||||||
var tabData = subItems[i];
|
var tabData = subItems[i];
|
||||||
var tabItem = List.AddItemFromPool().asButton;
|
var tabItem = List.AddItemFromPool(i == 0 ? BtnSubMenuLeft.URL : BtnSubMenu.URL).asButton;
|
||||||
tabItem.SetLanguage(tabData.Key);
|
tabItem.SetLanguage(tabData.Key);
|
||||||
|
|
||||||
width += tabItem.width;
|
width += tabItem.width;
|
||||||
|
|||||||
3
Assets/Scripts/UI/Common/Menu/item.meta
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 21fd308a87b848d7b4a9138f06c4c5f7
|
||||||
|
timeCreated: 1769923363
|
||||||
25
Assets/Scripts/UI/Common/Menu/item/BtnSubMenu.Designer.cs
generated
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
/**本脚本为自动生成,每次生成会覆盖!请勿手动修改,生成插件文档及项目地址:https://git.whoot.com/whoot-games/whoot.fguieditorplugin**/
|
||||||
|
|
||||||
|
|
||||||
|
using FairyGUI;
|
||||||
|
using FairyGUI.Utils;
|
||||||
|
using NBC;
|
||||||
|
|
||||||
|
namespace NBF
|
||||||
|
{
|
||||||
|
public partial class BtnSubMenu
|
||||||
|
{
|
||||||
|
public const string URL = "ui://6hgkvlauvbojxi";
|
||||||
|
|
||||||
|
public GImage back;
|
||||||
|
|
||||||
|
public override void ConstructFromXML(XML xml)
|
||||||
|
{
|
||||||
|
base.ConstructFromXML(xml);
|
||||||
|
|
||||||
|
back = (GImage)GetChild("back");
|
||||||
|
OnInited();
|
||||||
|
UILanguage.TrySetComponentLanguage(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 670c4d5385c0ad741a5381d10fc7dd15
|
||||||
15
Assets/Scripts/UI/Common/Menu/item/BtnSubMenu.cs
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
// 本脚本只在不存在时会生成一次。组件逻辑写在当前脚本内。已存在不会再次生成覆盖
|
||||||
|
|
||||||
|
using UnityEngine;
|
||||||
|
using FairyGUI;
|
||||||
|
using NBC;
|
||||||
|
|
||||||
|
namespace NBF
|
||||||
|
{
|
||||||
|
public partial class BtnSubMenu : GButton
|
||||||
|
{
|
||||||
|
private void OnInited()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
2
Assets/Scripts/UI/Common/Menu/item/BtnSubMenu.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 5b6a27e3fa4572443afc883702c768f3
|
||||||
25
Assets/Scripts/UI/Common/Menu/item/BtnSubMenuLeft.Designer.cs
generated
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
/**本脚本为自动生成,每次生成会覆盖!请勿手动修改,生成插件文档及项目地址:https://git.whoot.com/whoot-games/whoot.fguieditorplugin**/
|
||||||
|
|
||||||
|
|
||||||
|
using FairyGUI;
|
||||||
|
using FairyGUI.Utils;
|
||||||
|
using NBC;
|
||||||
|
|
||||||
|
namespace NBF
|
||||||
|
{
|
||||||
|
public partial class BtnSubMenuLeft
|
||||||
|
{
|
||||||
|
public const string URL = "ui://6hgkvlaumbu9y9";
|
||||||
|
|
||||||
|
public GImage back;
|
||||||
|
|
||||||
|
public override void ConstructFromXML(XML xml)
|
||||||
|
{
|
||||||
|
base.ConstructFromXML(xml);
|
||||||
|
|
||||||
|
back = (GImage)GetChild("back");
|
||||||
|
OnInited();
|
||||||
|
UILanguage.TrySetComponentLanguage(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: bfb4ffee7088da54d95a349215186ba6
|
||||||
15
Assets/Scripts/UI/Common/Menu/item/BtnSubMenuLeft.cs
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
// 本脚本只在不存在时会生成一次。组件逻辑写在当前脚本内。已存在不会再次生成覆盖
|
||||||
|
|
||||||
|
using UnityEngine;
|
||||||
|
using FairyGUI;
|
||||||
|
using NBC;
|
||||||
|
|
||||||
|
namespace NBF
|
||||||
|
{
|
||||||
|
public partial class BtnSubMenuLeft : GButton
|
||||||
|
{
|
||||||
|
private void OnInited()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 5ce6cf183d4b20f4997dd9ca99797135
|
||||||
@@ -30,13 +30,14 @@ namespace NBF
|
|||||||
{
|
{
|
||||||
await LoginHelper.Login(InputAccount.text);
|
await LoginHelper.Login(InputAccount.text);
|
||||||
|
|
||||||
await Fishing.Instance.Go(RoleModel.Instance.Info.MapId);
|
// await Fishing.Instance.Go(RoleModel.Instance.Info.MapId);
|
||||||
// await MapHelper.EnterMap(mapId, role.RoomCode);
|
// await MapHelper.EnterMap(mapId, role.RoomCode);
|
||||||
|
|
||||||
// BagPanel.Show();
|
// BagPanel.Show();
|
||||||
// BagSlotPanel.Show();
|
// BagSlotPanel.Show();
|
||||||
|
|
||||||
// FishingShopPanel.Show();
|
// FishingShopPanel.Show();
|
||||||
|
SettingPanel.Show();
|
||||||
|
|
||||||
Del();
|
Del();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,14 +11,12 @@ namespace NBF
|
|||||||
{
|
{
|
||||||
public const string URL = "ui://hxr7rc7pe9z89";
|
public const string URL = "ui://hxr7rc7pe9z89";
|
||||||
|
|
||||||
public GTextField TextName;
|
|
||||||
public GTextField TextIntroduce;
|
public GTextField TextIntroduce;
|
||||||
|
|
||||||
public override void ConstructFromXML(XML xml)
|
public override void ConstructFromXML(XML xml)
|
||||||
{
|
{
|
||||||
base.ConstructFromXML(xml);
|
base.ConstructFromXML(xml);
|
||||||
|
|
||||||
TextName = (GTextField)GetChild("TextName");
|
|
||||||
TextIntroduce = (GTextField)GetChild("TextIntroduce");
|
TextIntroduce = (GTextField)GetChild("TextIntroduce");
|
||||||
OnInited();
|
OnInited();
|
||||||
UILanguage.TrySetComponentLanguage(this);
|
UILanguage.TrySetComponentLanguage(this);
|
||||||
|
|||||||
12
Assets/Scripts/UI/Settings/SettingItem.Designer.cs
generated
@@ -16,10 +16,12 @@ namespace NBF
|
|||||||
public GTextField TextName;
|
public GTextField TextName;
|
||||||
public GTextField TextInfo;
|
public GTextField TextInfo;
|
||||||
public GSlider Slider;
|
public GSlider Slider;
|
||||||
public BtnInputControl BtnPrev;
|
|
||||||
public BtnInputControl BtnNext;
|
|
||||||
public GTextField TextSliderValue;
|
public GTextField TextSliderValue;
|
||||||
public SelectPages Pages;
|
public SelectPages Pages;
|
||||||
|
public GButton BtnPrev;
|
||||||
|
public GButton BtnNext;
|
||||||
|
public BtnInputControl BtnControl;
|
||||||
|
public GComboBox ComboBox;
|
||||||
|
|
||||||
public override void ConstructFromXML(XML xml)
|
public override void ConstructFromXML(XML xml)
|
||||||
{
|
{
|
||||||
@@ -30,10 +32,12 @@ namespace NBF
|
|||||||
TextName = (GTextField)GetChild("TextName");
|
TextName = (GTextField)GetChild("TextName");
|
||||||
TextInfo = (GTextField)GetChild("TextInfo");
|
TextInfo = (GTextField)GetChild("TextInfo");
|
||||||
Slider = (GSlider)GetChild("Slider");
|
Slider = (GSlider)GetChild("Slider");
|
||||||
BtnPrev = (BtnInputControl)GetChild("BtnPrev");
|
|
||||||
BtnNext = (BtnInputControl)GetChild("BtnNext");
|
|
||||||
TextSliderValue = (GTextField)GetChild("TextSliderValue");
|
TextSliderValue = (GTextField)GetChild("TextSliderValue");
|
||||||
Pages = (SelectPages)GetChild("Pages");
|
Pages = (SelectPages)GetChild("Pages");
|
||||||
|
BtnPrev = (GButton)GetChild("BtnPrev");
|
||||||
|
BtnNext = (GButton)GetChild("BtnNext");
|
||||||
|
BtnControl = (BtnInputControl)GetChild("BtnControl");
|
||||||
|
ComboBox = (GComboBox)GetChild("ComboBox");
|
||||||
OnInited();
|
OnInited();
|
||||||
UILanguage.TrySetComponentLanguage(this);
|
UILanguage.TrySetComponentLanguage(this);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ namespace NBF
|
|||||||
BtnPrev.onClick.Set(OnPrev);
|
BtnPrev.onClick.Set(OnPrev);
|
||||||
BtnNext.onClick.Set(OnNext);
|
BtnNext.onClick.Set(OnNext);
|
||||||
Slider.onChanged.Set(OnSliderChanged);
|
Slider.onChanged.Set(OnSliderChanged);
|
||||||
|
ComboBox.onChanged.Set(OnComboBoxChanged);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetData(OptionBase option)
|
public void SetData(OptionBase option)
|
||||||
@@ -24,18 +25,34 @@ namespace NBF
|
|||||||
|
|
||||||
if (option is IMultiOption multiOption)
|
if (option is IMultiOption multiOption)
|
||||||
{
|
{
|
||||||
style.selectedIndex = 0;
|
if (multiOption.IsDropdown)
|
||||||
|
{
|
||||||
|
style.selectedIndex = 2;
|
||||||
|
if (multiOption.IsDropdown)
|
||||||
|
{
|
||||||
|
ComboBox.items = multiOption.GetOptionNames().ToArray();
|
||||||
|
ComboBox.selectedIndex = multiOption.GetValue();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
style.selectedIndex = 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (option is RangeOption range)
|
else if (option is RangeOption range)
|
||||||
{
|
{
|
||||||
style.selectedIndex = 1;
|
style.selectedIndex = 3; //进度类型
|
||||||
Slider.min = range.MinValue;
|
Slider.min = range.MinValue;
|
||||||
Slider.max = range.MaxValue;
|
Slider.max = range.MaxValue;
|
||||||
Slider.wholeNumbers = true;
|
Slider.wholeNumbers = true;
|
||||||
}
|
}
|
||||||
else if (option is KeyBoardOption keyBoardOption)
|
else if (option is KeyBoardOption keyBoardOption)
|
||||||
{
|
{
|
||||||
style.selectedIndex = 2;
|
style.selectedIndex = 4; //按键类型
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
style.selectedIndex = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
TextName.SetLanguage(Option.Name);
|
TextName.SetLanguage(Option.Name);
|
||||||
@@ -65,7 +82,8 @@ namespace NBF
|
|||||||
if (Option is ResolutionSetting resolutionSetting)
|
if (Option is ResolutionSetting resolutionSetting)
|
||||||
{
|
{
|
||||||
var res = Screen.resolutions;
|
var res = Screen.resolutions;
|
||||||
Debug.LogError($"next index={index} count = {multiOption.GetOptionNames().Count} res={res.Length}");
|
Debug.LogError(
|
||||||
|
$"next index={index} count = {multiOption.GetOptionNames().Count} res={res.Length}");
|
||||||
}
|
}
|
||||||
|
|
||||||
multiOption.SetValue(index);
|
multiOption.SetValue(index);
|
||||||
@@ -137,6 +155,15 @@ namespace NBF
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void OnComboBoxChanged()
|
||||||
|
{
|
||||||
|
Debug.Log(ComboBox.selectedIndex);
|
||||||
|
if (Option is IMultiOption multiOption)
|
||||||
|
{
|
||||||
|
multiOption.SetValue(ComboBox.selectedIndex);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void UpdateValueText()
|
private void UpdateValueText()
|
||||||
{
|
{
|
||||||
Pages.visible = false;
|
Pages.visible = false;
|
||||||
|
|||||||
@@ -14,16 +14,14 @@ namespace NBF
|
|||||||
public override string UIPackName => "Main";
|
public override string UIPackName => "Main";
|
||||||
public override string UIResName => "SettingPanel";
|
public override string UIResName => "SettingPanel";
|
||||||
|
|
||||||
[AutoFind(Name = "Menu")]
|
[AutoFind(Name = "MenuList")]
|
||||||
public CommonMenu Menu;
|
public CommonSubMenu MenuList;
|
||||||
[AutoFind(Name = "Introduce")]
|
[AutoFind(Name = "Introduce")]
|
||||||
public IntroduceTag Introduce;
|
public IntroduceTag Introduce;
|
||||||
[AutoFind(Name = "List")]
|
[AutoFind(Name = "List")]
|
||||||
public GList List;
|
public GList List;
|
||||||
[AutoFind(Name = "BottomMenu")]
|
[AutoFind(Name = "BottomMenu")]
|
||||||
public BottomMenu BottomMenu;
|
public BottomMenu BottomMenu;
|
||||||
[AutoFind(Name = "BottomLine")]
|
|
||||||
public GImage BottomLine;
|
|
||||||
[AutoFind(Name = "Mask")]
|
[AutoFind(Name = "Mask")]
|
||||||
public GLabel Mask;
|
public GLabel Mask;
|
||||||
[AutoFind(Name = "InputWait")]
|
[AutoFind(Name = "InputWait")]
|
||||||
|
|||||||
@@ -23,27 +23,28 @@ namespace NBF
|
|||||||
base.OnInit();
|
base.OnInit();
|
||||||
IsShowCursor = true;
|
IsShowCursor = true;
|
||||||
IsDontBack = true;
|
IsDontBack = true;
|
||||||
|
//TEXT_SETTINGS_
|
||||||
var groupNames = Settings.Instance.GetAllTabs();
|
var groupNames = Settings.Instance.GetAllTabs();
|
||||||
foreach (var group in groupNames)
|
foreach (var group in groupNames)
|
||||||
{
|
{
|
||||||
var tab = new TabItemData
|
var tab = new TabItemData
|
||||||
{
|
{
|
||||||
Key = $"TEXT_SETTINGS_{group}"
|
Key = $"TEXT_SETTINGS_{group}",
|
||||||
|
Name = group
|
||||||
};
|
};
|
||||||
tabList.Add(tab);
|
tabList.Add(tab);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Menu.OnTabChange += ChangeTab;
|
MenuList.OnTabChange += ChangeTab;
|
||||||
List.onClickItem.Set(OnClickListItem);
|
List.onClickItem.Set(OnClickListItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnShow()
|
protected override void OnShow()
|
||||||
{
|
{
|
||||||
|
InputManager.Instance.Off(this);
|
||||||
Settings.Instance.LoadAllSettings();
|
Settings.Instance.LoadAllSettings();
|
||||||
InputManager.OnUICanceled += OnUICanceled;
|
MenuList.SetTabs(tabList);
|
||||||
Menu.SetTabs(tabList);
|
|
||||||
UseBottomMenu();
|
UseBottomMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -52,7 +53,7 @@ namespace NBF
|
|||||||
if (index < 0) return;
|
if (index < 0) return;
|
||||||
Log.Info($"Change tab index={index}");
|
Log.Info($"Change tab index={index}");
|
||||||
var tabListData = tabList[index];
|
var tabListData = tabList[index];
|
||||||
_currentTab = tabListData.Key;
|
_currentTab = tabListData.Name;
|
||||||
ResetSettingList();
|
ResetSettingList();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -82,35 +83,29 @@ namespace NBF
|
|||||||
|
|
||||||
|
|
||||||
var url = UIPackage.GetItemURL(UIPackName, "SettingSubTitleItem");
|
var url = UIPackage.GetItemURL(UIPackName, "SettingSubTitleItem");
|
||||||
|
var groupIndex = 0;
|
||||||
foreach (var key in groupOptions.Keys)
|
foreach (var key in groupOptions.Keys)
|
||||||
{
|
{
|
||||||
var value = groupOptions[key];
|
var value = groupOptions[key];
|
||||||
if (List.AddItemFromPool(url) is GLabel label)
|
if (groupIndex > 0)
|
||||||
{
|
{
|
||||||
label.SetLanguage(key);
|
if (List.AddItemFromPool(url) is GLabel label)
|
||||||
|
{
|
||||||
|
label.SetLanguage(key);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var option in value)
|
foreach (var option in value)
|
||||||
{
|
{
|
||||||
if (option is InputOption)
|
if (List.AddItemFromPool() is SettingItem item)
|
||||||
{
|
{
|
||||||
if (List.AddItemFromPool(SettingInputItem.URL) is SettingInputItem item)
|
item.SetData(option);
|
||||||
{
|
var index = List.GetChildIndex(item);
|
||||||
item.SetData(option as InputOption);
|
_canSelectIndex.Add(index);
|
||||||
var index = List.GetChildIndex(item);
|
|
||||||
_canSelectIndex.Add(index);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (List.AddItemFromPool() is SettingItem item)
|
|
||||||
{
|
|
||||||
item.SetData(option);
|
|
||||||
var index = List.GetChildIndex(item);
|
|
||||||
_canSelectIndex.Add(index);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
groupIndex++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -119,16 +114,6 @@ namespace NBF
|
|||||||
BottomMenu.Use(this);
|
BottomMenu.Use(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnApplySettings()
|
|
||||||
{
|
|
||||||
var options = Settings.Instance.GetOptionsByTab(_currentTab);
|
|
||||||
Log.Info("OnApplySettings");
|
|
||||||
foreach (var option in options)
|
|
||||||
{
|
|
||||||
option.Apply();
|
|
||||||
}
|
|
||||||
Notices.Success("TEXT_OP_SUCCESS");
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnResetSettings()
|
private void OnResetSettings()
|
||||||
{
|
{
|
||||||
@@ -138,51 +123,10 @@ namespace NBF
|
|||||||
{
|
{
|
||||||
option.Reset();
|
option.Reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
ResetSettingList();
|
|
||||||
|
|
||||||
Notices.Success("TEXT_OP_SUCCESS");
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnUICanceled(string action)
|
ResetSettingList();
|
||||||
{
|
|
||||||
if (action == InputDef.UI.SubPrev)
|
Notices.Success("TEXT_OP_SUCCESS");
|
||||||
{
|
|
||||||
if (List.GetChildAt(List.selectedIndex) is SettingItem item)
|
|
||||||
{
|
|
||||||
item.OnPrev();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (action == InputDef.UI.SubNext)
|
|
||||||
{
|
|
||||||
if (List.GetChildAt(List.selectedIndex) is SettingItem item)
|
|
||||||
{
|
|
||||||
item.OnNext();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (action == InputDef.UI.Up)
|
|
||||||
{
|
|
||||||
ChangeListSelected();
|
|
||||||
}
|
|
||||||
else if (action == InputDef.UI.Down)
|
|
||||||
{
|
|
||||||
ChangeListSelected(false);
|
|
||||||
}
|
|
||||||
else if (action == InputDef.UI.Back)
|
|
||||||
{
|
|
||||||
OnBack();
|
|
||||||
}
|
|
||||||
else if (action == InputDef.UI.Enter)
|
|
||||||
{
|
|
||||||
OnApplySettings();
|
|
||||||
}
|
|
||||||
else if (action == InputDef.UI.Reset)
|
|
||||||
{
|
|
||||||
MessageBox.Show("是否重置为默认?", (ret) =>
|
|
||||||
{
|
|
||||||
if (ret) OnResetSettings();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -225,12 +169,62 @@ namespace NBF
|
|||||||
var settingItem = List.GetChildAt(index);
|
var settingItem = List.GetChildAt(index);
|
||||||
if (settingItem is SettingItem item)
|
if (settingItem is SettingItem item)
|
||||||
{
|
{
|
||||||
Introduce.TextName.SetLanguage(item.Option.Name);
|
// Introduce.TextName.SetLanguage(item.Option.Name);
|
||||||
Introduce.TextIntroduce.SetLanguage(item.Option.Name);
|
Introduce.TextIntroduce.SetLanguage(item.Option.Name);
|
||||||
// Introduce.
|
// Introduce.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private void CancelAndBack()
|
||||||
|
{
|
||||||
|
var groupNames = Settings.Instance.GetAllTabs();
|
||||||
|
foreach (var group in groupNames)
|
||||||
|
{
|
||||||
|
var options = Settings.Instance.GetOptionsByTab(group);
|
||||||
|
foreach (var option in options)
|
||||||
|
{
|
||||||
|
if (option.HaveNotApple())
|
||||||
|
{
|
||||||
|
option.Cancel();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Input Evnet
|
||||||
|
|
||||||
|
[InputInvoke(InputDef.UI.SubPrev)]
|
||||||
|
private void OnSubPrev()
|
||||||
|
{
|
||||||
|
if (List.GetChildAt(List.selectedIndex) is SettingItem item)
|
||||||
|
{
|
||||||
|
item.OnPrev();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[InputInvoke(InputDef.UI.SubNext)]
|
||||||
|
private void OnSubNext()
|
||||||
|
{
|
||||||
|
if (List.GetChildAt(List.selectedIndex) is SettingItem item)
|
||||||
|
{
|
||||||
|
item.OnNext();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[InputInvoke(InputDef.UI.Up)]
|
||||||
|
private void OnUp()
|
||||||
|
{
|
||||||
|
ChangeListSelected();
|
||||||
|
}
|
||||||
|
|
||||||
|
[InputInvoke(InputDef.UI.Down)]
|
||||||
|
private void OnDown()
|
||||||
|
{
|
||||||
|
ChangeListSelected(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
[InputInvoke(InputDef.UI.Back)]
|
||||||
private void OnBack()
|
private void OnBack()
|
||||||
{
|
{
|
||||||
if (Settings.Instance.HaveNotAppleSettings())
|
if (Settings.Instance.HaveNotAppleSettings())
|
||||||
@@ -250,33 +244,40 @@ namespace NBF
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void CancelAndBack()
|
[InputInvoke(InputDef.UI.Enter)]
|
||||||
|
private void OnApplySettings()
|
||||||
{
|
{
|
||||||
|
var options = Settings.Instance.GetOptionsByTab(_currentTab);
|
||||||
var groupNames = Settings.Instance.GetAllTabs();
|
Log.Info("OnApplySettings");
|
||||||
foreach (var group in groupNames)
|
foreach (var option in options)
|
||||||
{
|
{
|
||||||
var options = Settings.Instance.GetOptionsByTab(group);
|
option.Apply();
|
||||||
foreach (var option in options)
|
|
||||||
{
|
|
||||||
if (option.HaveNotApple())
|
|
||||||
{
|
|
||||||
option.Cancel();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Notices.Success("TEXT_OP_SUCCESS");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[InputInvoke(InputDef.UI.Reset)]
|
||||||
|
private void OnReset()
|
||||||
|
{
|
||||||
|
MessageBox.Show("是否重置为默认?", (ret) =>
|
||||||
|
{
|
||||||
|
if (ret) OnResetSettings();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
protected override void OnHide()
|
protected override void OnHide()
|
||||||
{
|
{
|
||||||
base.OnHide();
|
base.OnHide();
|
||||||
InputManager.OnUICanceled -= OnUICanceled;
|
InputManager.Instance.Off(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnDestroy()
|
protected override void OnDestroy()
|
||||||
{
|
{
|
||||||
base.OnDestroy();
|
base.OnDestroy();
|
||||||
Menu.OnTabChange -= ChangeTab;
|
MenuList.OnTabChange -= ChangeTab;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -25,7 +25,7 @@ MonoBehaviour:
|
|||||||
m_SupportsTerrainHoles: 1
|
m_SupportsTerrainHoles: 1
|
||||||
m_SupportsHDR: 1
|
m_SupportsHDR: 1
|
||||||
m_HDRColorBufferPrecision: 0
|
m_HDRColorBufferPrecision: 0
|
||||||
m_MSAA: 8
|
m_MSAA: 2
|
||||||
m_RenderScale: 1
|
m_RenderScale: 1
|
||||||
m_UpscalingFilter: 0
|
m_UpscalingFilter: 0
|
||||||
m_FsrOverrideSharpness: 0
|
m_FsrOverrideSharpness: 0
|
||||||
|
|||||||
@@ -1,9 +1,15 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<component size="1920,1080" extention="Label">
|
<component size="1920,1080" extention="Label">
|
||||||
<displayList>
|
<displayList>
|
||||||
<loader id="n36_gii7" name="icon" xy="0,0" size="1920,1080" url="ui://6hgkvlau8hy8lb" align="center" vAlign="middle"/>
|
<loader id="n36_gii7" name="icon" xy="0,0" size="1920,1080" url="ui://6hgkvlaumbu9ye" align="center" vAlign="middle"/>
|
||||||
<image id="n38_xd2f" name="back" src="r03ui6" fileName="Images/Panels/BasicPanel.png" xy="0,0" size="1920,1080" alpha="0.99" color="#041c26" pkg="xo76q8wz">
|
<image id="n38_xd2f" name="back" src="vbojnh" fileName="ImagesNew/Square/square128_fill.png" xy="0,0" size="1920,1080" alpha="0.96" color="#000000">
|
||||||
<relation target="" sidePair="width-width,height-height"/>
|
<relation target="" sidePair="width-width,height-height"/>
|
||||||
</image>
|
</image>
|
||||||
|
<image id="n39_mbu9" name="n39" src="vbojs9" fileName="ImagesNew/Glow/glow_horizontal/glow_horizontal_3.png" xy="0,0" size="1920,523" color="#000000">
|
||||||
|
<relation target="" sidePair="center-center,top-top"/>
|
||||||
|
</image>
|
||||||
|
<image id="n40_mbu9" name="n40" src="vbojsb" fileName="ImagesNew/Glow/glow_horizontal/glow_horizontal_1.png" xy="0,557" size="1920,523" color="#000000">
|
||||||
|
<relation target="" sidePair="center-center,bottom-bottom"/>
|
||||||
|
</image>
|
||||||
</displayList>
|
</displayList>
|
||||||
</component>
|
</component>
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<component size="32,32" pivot="0.5,0.5" extention="Button">
|
<component size="28,28" pivot="0.5,0.5" extention="Button">
|
||||||
<controller name="show" pages="0,,1," selected="0"/>
|
<controller name="show" pages="0,,1," selected="0"/>
|
||||||
<displayList>
|
<displayList>
|
||||||
<loader id="n11_r03u" name="icon" xy="0,0" size="32,32" url="ui://xo76q8wz8hy8lx" align="center" vAlign="middle" fill="scaleFree" color="#8bf3ff"/>
|
<loader id="n11_r03u" name="icon" xy="0,0" size="28,28" url="ui://6hgkvlauvbojuz" align="center" vAlign="middle" fill="scaleMatchHeight"/>
|
||||||
</displayList>
|
</displayList>
|
||||||
<Button downEffect="scale" downEffectValue=".95"/>
|
<Button downEffect="scale" downEffectValue="0.95"/>
|
||||||
</component>
|
</component>
|
||||||
5
FGUIProject/assets/Common/Com/Buttons/BtnMask.xml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<component size="20,20" extention="Button">
|
||||||
|
<displayList/>
|
||||||
|
<Button/>
|
||||||
|
</component>
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<component size="85,32" pivot="0.5,0.5" extention="Button">
|
<component size="79,32" pivot="0.5,0.5" extention="Button">
|
||||||
<controller name="show" pages="0,,1," selected="0"/>
|
<controller name="show" pages="0,,1," selected="0"/>
|
||||||
<displayList>
|
<displayList>
|
||||||
<loader id="n9_r03u" name="icon" xy="0,0" size="32,32" url="ui://xo76q8wz8hy8m3" align="center" vAlign="middle" fill="scaleFree" color="#8bf3ff"/>
|
<loader id="n9_r03u" name="icon" xy="0,2" size="34,28" url="ui://6hgkvlauvbojv4" align="center" vAlign="middle" fill="scaleMatchHeight"/>
|
||||||
<text id="n10_r03u" name="title" xy="38,0" size="47,32" font="ui://6hgkvlaugkm7w" fontSize="22" color="#8bf3ff" text="继续"/>
|
<text id="n10_r03u" name="title" xy="38,2" size="41,28" font="ui://6hgkvlaugkm7w" fontSize="19" color="#ffffff" text="继续"/>
|
||||||
</displayList>
|
</displayList>
|
||||||
<Button downEffect="scale" downEffectValue=".95"/>
|
<Button downEffect="scale" downEffectValue="0.95"/>
|
||||||
<relation target="n10_r03u" sidePair="rightext-right"/>
|
<relation target="n10_r03u" sidePair="rightext-right"/>
|
||||||
</component>
|
</component>
|
||||||
8
FGUIProject/assets/Common/Com/Buttons/BtnTriangle.xml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<component size="36,40" pivot="0.5,0.5" extention="Button">
|
||||||
|
<displayList>
|
||||||
|
<image id="n20_mbu9" name="n20" src="mbu9yj" fileName="ImagesNew/Square/mini/square20_stroke1px.png" xy="0,0" size="36,40" color="#252523"/>
|
||||||
|
<loader id="n19_mbu9" name="icon" xy="3,5" pivot="0.5,0.5" size="30,30" aspect="true" url="ui://6hgkvlauvbojpj" fill="scale" color="#b2b2b2"/>
|
||||||
|
</displayList>
|
||||||
|
<Button downEffect="scale" downEffectValue="0.95"/>
|
||||||
|
</component>
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<component size="1920,1007" designImage="ui://hxr7rc7pr03ue" designImageAlpha="0">
|
<component size="1920,1007" designImage="ui://hxr7rc7pr03ue" designImageAlpha="0">
|
||||||
<controller name="style" pages="1,oneMenu,2,twoMenu" selected="0">
|
<controller name="style" pages="1,oneMenu,2,twoMenu" selected="1">
|
||||||
<remark page="0" value="一级菜单"/>
|
<remark page="0" value="一级菜单"/>
|
||||||
<remark page="1" value="二级菜单"/>
|
<remark page="1" value="二级菜单"/>
|
||||||
</controller>
|
</controller>
|
||||||
@@ -8,12 +8,12 @@
|
|||||||
<component id="n3_fcfg" name="Menu" src="fcfggr" fileName="Com/Menu/CommonMenu.xml" xy="0,0">
|
<component id="n3_fcfg" name="Menu" src="fcfggr" fileName="Com/Menu/CommonMenu.xml" xy="0,0">
|
||||||
<relation target="" sidePair="width-width,center-center,top-top"/>
|
<relation target="" sidePair="width-width,center-center,top-top"/>
|
||||||
</component>
|
</component>
|
||||||
<component id="n25_r03u" name="SubMenu" src="r03us" fileName="Com/Menu/CommonSubMenu.xml" xy="49,96" size="1830,80">
|
<component id="n25_r03u" name="SubMenu" src="r03us" fileName="Com/Menu/CommonSubMenu.xml" xy="76,128">
|
||||||
<gearDisplay controller="style" pages="2"/>
|
<gearDisplay controller="style" pages="2"/>
|
||||||
</component>
|
</component>
|
||||||
<component id="n6_drkw" name="List" src="drkwh1" fileName="Com/ClassifyList.xml" xy="49,113" size="1846,883">
|
<component id="n6_drkw" name="List" src="drkwh1" fileName="Com/ClassifyList.xml" xy="49,216" size="1846,790">
|
||||||
<gearXY controller="style" pages="1" values="49,113" default="49,193"/>
|
<gearXY controller="style" pages="1,2" values="49,113|49,216"/>
|
||||||
<gearSize controller="style" pages="1" values="1846,883,1,1" default="1846,733,1,1"/>
|
<gearSize controller="style" pages="1,2" values="1846,883,1,1|1846,790,1,1"/>
|
||||||
<relation target="" sidePair="width-width,top-top,bottomext-bottom"/>
|
<relation target="" sidePair="width-width,top-top,bottomext-bottom"/>
|
||||||
</component>
|
</component>
|
||||||
</displayList>
|
</displayList>
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<component size="1920,88">
|
<component size="1920,66">
|
||||||
<displayList>
|
<displayList>
|
||||||
<list id="n33_9lmc" name="List" xy="980,8" size="891,40" layout="row" colGap="32" defaultItem="ui://6hgkvlaur03uj0" align="right" vAlign="middle" autoClearItems="true">
|
<list id="n33_9lmc" name="List" xy="980,13" size="891,40" layout="row" colGap="32" defaultItem="ui://6hgkvlaur03uj0" align="right" vAlign="middle" autoClearItems="true">
|
||||||
<relation target="" sidePair="right-right,top-top"/>
|
<relation target="" sidePair="right-right,top-top"/>
|
||||||
<item title="按钮1"/>
|
<item title="按钮1"/>
|
||||||
<item title="按钮2"/>
|
<item title="按钮2"/>
|
||||||
<item/>
|
<item/>
|
||||||
<item/>
|
<item/>
|
||||||
</list>
|
</list>
|
||||||
<list id="n34_9mf1" name="LeftList" xy="52,8" size="713,40" layout="row" colGap="32" defaultItem="ui://6hgkvlaur03uj0" vAlign="middle" autoClearItems="true">
|
<list id="n34_9mf1" name="LeftList" xy="52,13" size="713,40" layout="row" colGap="32" defaultItem="ui://6hgkvlaur03uj0" vAlign="middle" autoClearItems="true">
|
||||||
<relation target="" sidePair="left-left,top-top"/>
|
<relation target="" sidePair="left-left,top-top"/>
|
||||||
<item/>
|
<item/>
|
||||||
<item/>
|
<item/>
|
||||||
|
|||||||
@@ -1,23 +1,20 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<component size="1920,95" extention="Label" designImage="ui://6hgkvlaufcfgh0" designImageAlpha="0">
|
<component size="1920,95" extention="Label" designImage="ui://6hgkvlaufcfgh0" designImageAlpha="0">
|
||||||
<displayList>
|
<displayList>
|
||||||
<image id="n13_r03u" name="n13" src="r03uij" fileName="Images/Misc/TopGlow.png" xy="222,0" size="1476,93" visible="false" alpha="0.2">
|
<image id="n13_r03u" name="n13" pkg="6hgkvlau" src="r03uij" fileName="Images/Misc/TopGlow.png" xy="222,0" size="1476,93" visible="false" alpha="0.2">
|
||||||
<relation target="" sidePair="center-center,top-top"/>
|
<relation target="" sidePair="center-center,top-top"/>
|
||||||
</image>
|
</image>
|
||||||
<list id="n2_fcfg" name="List" xy="103,41" size="647,54" layout="row" scroll="horizontal" colGap="12" defaultItem="ui://6hgkvlaufcfggs" vAlign="bottom" autoClearItems="true">
|
<list id="n15_vboj" name="List" xy="104,7" size="646,88" layout="row" overflow="hidden" scroll="horizontal" defaultItem="ui://6hgkvlauvbojt5" autoClearItems="true">
|
||||||
<relation target="" sidePair="left-left,bottom-bottom"/>
|
<item title="主页"/>
|
||||||
<item title="GENERAL"/>
|
<item title="商店"/>
|
||||||
<item title="GRAPHICS"/>
|
<item title="设置"/>
|
||||||
<item title="标题标题标题"/>
|
<item title="排行"/>
|
||||||
<item/>
|
<item title="档案"/>
|
||||||
|
<item title="设置"/>
|
||||||
</list>
|
</list>
|
||||||
<component id="n11_r03u" name="BtnPrev" src="r03ut" fileName="Com/Buttons/BtnInputControl.xml" xy="58,42">
|
<component id="n11_r03u" name="BtnPrev" src="r03ut" fileName="Com/Buttons/BtnInputControl.xml" xy="58,33"/>
|
||||||
<relation target="n2_fcfg" sidePair="left-left,top-top"/>
|
<component id="n12_r03u" name="BtnNext" src="r03ut" fileName="Com/Buttons/BtnInputControl.xml" xy="767,33"/>
|
||||||
</component>
|
<image id="n14_r03u" name="n14" src="kryob" fileName="Images/Square.png" pkg="xo76q8wz" xy="0,93" pivot="0,1" size="1920,2" alpha="0.1" color="#323232">
|
||||||
<component id="n12_r03u" name="BtnNext" src="r03ut" fileName="Com/Buttons/BtnInputControl.xml" xy="767,42">
|
|
||||||
<relation target="n2_fcfg" sidePair="right-right,top-top"/>
|
|
||||||
</component>
|
|
||||||
<image id="n14_r03u" name="n14" src="kryob" fileName="Images/Square.png" pkg="xo76q8wz" xy="0,93" pivot="0,1" size="1920,2" alpha="0.1" color="#cccccc">
|
|
||||||
<relation target="" sidePair="width-width,bottom-bottom"/>
|
<relation target="" sidePair="width-width,bottom-bottom"/>
|
||||||
</image>
|
</image>
|
||||||
</displayList>
|
</displayList>
|
||||||
|
|||||||
@@ -1,19 +1,13 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<component size="1920,80">
|
<component size="1920,52">
|
||||||
<displayList>
|
<displayList>
|
||||||
<list id="n25_r03u" name="List" xy="68,27" size="530,53" layout="row" scroll="horizontal" colGap="14" defaultItem="ui://6hgkvlaunmzbk7">
|
<list id="n29_vboj" name="List" xy="50,0" size="999,52" layout="row" colGap="-36" defaultItem="ui://6hgkvlauvbojxi" autoClearItems="true">
|
||||||
|
<item url="ui://6hgkvlaumbu9y9"/>
|
||||||
<item/>
|
<item/>
|
||||||
<item/>
|
<item/>
|
||||||
<item url="ui://6hgkvlaunmzbk8"/>
|
|
||||||
<item url="ui://6hgkvlaunmzbk8"/>
|
|
||||||
<item/>
|
<item/>
|
||||||
</list>
|
</list>
|
||||||
<image id="n26_r03u" name="n26" src="kryob" fileName="Images/Square.png" xy="0,78" pivot="0,1" size="1920,2" alpha="0.1" color="#cccccc" pkg="xo76q8wz">
|
<component id="n27_r03u" name="BtnPrev" src="r03ut" fileName="Com/Buttons/BtnInputControl.xml" xy="1,12"/>
|
||||||
<relation target="" sidePair="width-width,bottom-bottom"/>
|
<component id="n28_r03u" name="BtnNext" src="r03ut" fileName="Com/Buttons/BtnInputControl.xml" xy="1064,12"/>
|
||||||
</image>
|
|
||||||
<component id="n27_r03u" name="BtnPrev" src="r03ut" fileName="Com/Buttons/BtnInputControl.xml" xy="9,32"/>
|
|
||||||
<component id="n28_r03u" name="BtnNext" src="r03ut" fileName="Com/Buttons/BtnInputControl.xml" xy="627,32">
|
|
||||||
<relation target="n25_r03u" sidePair="middle-middle,right-right"/>
|
|
||||||
</component>
|
|
||||||
</displayList>
|
</displayList>
|
||||||
</component>
|
</component>
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<component size="6,20" extention="Button">
|
<component size="6,20" extention="Button">
|
||||||
<displayList>
|
<displayList>
|
||||||
<graph id="n0_oome" name="n0" xy="0,0" size="6,20" alpha="0.2" touchable="false" type="rect" lineSize="0" fillColor="#ff8bf3ff">
|
<graph id="n0_oome" name="n0" xy="0,0" size="6,20" touchable="false" type="rect" lineSize="0">
|
||||||
<relation target="" sidePair="width-width,height-height"/>
|
<relation target="" sidePair="width-width,height-height"/>
|
||||||
</graph>
|
</graph>
|
||||||
</displayList>
|
</displayList>
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<component size="4,4" extention="Button">
|
<component size="40,4" extention="Button">
|
||||||
<controller name="button" pages="2,up,3,down" selected="0"/>
|
<controller name="button" pages="2,up,3,down" selected="0"/>
|
||||||
<displayList>
|
<displayList>
|
||||||
<image id="n14_5dtx" name="n14" src="kryob" fileName="Images/Square.png" xy="0,0" color="#5c748b" pkg="xo76q8wz">
|
<image id="n14_5dtx" name="n14" src="kryob" fileName="Images/Square.png" pkg="xo76q8wz" xy="0,0" size="40,4" color="#7e7e7c">
|
||||||
<gearColor controller="button" pages="2,3" values="#5c748b|#8bf3ff"/>
|
<gearColor controller="button" pages="2,3" values="#7e7e7c|#cbcbc9"/>
|
||||||
</image>
|
</image>
|
||||||
</displayList>
|
</displayList>
|
||||||
<Button mode="Radio"/>
|
<Button mode="Radio"/>
|
||||||
|
|||||||
@@ -1,16 +1,10 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<component size="60,4">
|
<component size="84,4">
|
||||||
<displayList>
|
<displayList>
|
||||||
<list id="n15_5dtx" name="List" xy="0,0" size="60,4" layout="row" colGap="4" defaultItem="ui://6hgkvlau5dtx19" align="center" autoClearItems="true">
|
<list id="n15_5dtx" name="List" xy="0,0" size="84,4" layout="row" colGap="4" defaultItem="ui://6hgkvlau5dtx19" align="center" autoClearItems="true">
|
||||||
<relation target="" sidePair="width-width,height-height"/>
|
<relation target="" sidePair="width-width,height-height"/>
|
||||||
<item/>
|
<item/>
|
||||||
<item/>
|
<item/>
|
||||||
<item/>
|
|
||||||
<item/>
|
|
||||||
<item/>
|
|
||||||
<item/>
|
|
||||||
<item/>
|
|
||||||
<item/>
|
|
||||||
</list>
|
</list>
|
||||||
</displayList>
|
</displayList>
|
||||||
</component>
|
</component>
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<component size="50,5" extention="Slider">
|
<component size="50,12" extention="Slider">
|
||||||
<displayList>
|
<displayList>
|
||||||
<graph id="n0_e9z8" name="n0" xy="0,0" size="50,5" type="rect" lineSize="0" lineColor="#ffa0a0a0" fillColor="#ff5c748b">
|
<graph id="n0_e9z8" name="n0" xy="0,0" size="50,12" type="rect" lineSize="0" lineColor="#ffa0a0a0" fillColor="#ff202020">
|
||||||
<relation target="" sidePair="width-width,height-height"/>
|
<relation target="" sidePair="width-width,height-height"/>
|
||||||
</graph>
|
</graph>
|
||||||
<graph id="n1_e9z8" name="bar" xy="0,0" size="50,5" type="rect" lineSize="0" fillColor="#ff8bf3ff"/>
|
<graph id="n1_e9z8" name="bar" xy="0,0" size="50,12" type="rect" lineSize="0" fillColor="#ffdbdbdb"/>
|
||||||
<component id="n2_e9z8" name="grip" src="e9z8k3" fileName="Com/Slider/Slider1_grip.xml" xy="45,-12">
|
<component id="n2_e9z8" name="grip" src="e9z8k3" fileName="Com/Slider/Slider1_grip.xml" xy="44,-9">
|
||||||
<relation target="n1_e9z8" sidePair="right-right"/>
|
<relation target="n1_e9z8" sidePair="right-right"/>
|
||||||
</component>
|
</component>
|
||||||
</displayList>
|
</displayList>
|
||||||
|
|||||||
@@ -2,10 +2,7 @@
|
|||||||
<component size="10,30" extention="Button">
|
<component size="10,30" extention="Button">
|
||||||
<controller name="button" pages="0,up,1,down,2,over,3,selectedOver" selected="1"/>
|
<controller name="button" pages="0,up,1,down,2,over,3,selectedOver" selected="1"/>
|
||||||
<displayList>
|
<displayList>
|
||||||
<graph id="n0_e9z8" name="n0" xy="0,0" size="10,30" touchable="false" type="rect" lineSize="0" fillColor="#ff8bf3ff">
|
<graph id="n0_e9z8" name="n0" xy="0,0" size="10,30" touchable="false" type="rect" lineSize="0" fillColor="#ffdbdbdb">
|
||||||
<relation target="" sidePair="width-width,height-height"/>
|
|
||||||
</graph>
|
|
||||||
<graph id="n3_e9z8" name="n3" xy="0,0" size="10,30" touchable="false" type="rect" lineSize="0" fillColor="#ffd8fbff">
|
|
||||||
<gearDisplay controller="button" pages="1,3"/>
|
<gearDisplay controller="button" pages="1,3"/>
|
||||||
<relation target="" sidePair="width-width,height-height"/>
|
<relation target="" sidePair="width-width,height-height"/>
|
||||||
</graph>
|
</graph>
|
||||||
|
|||||||
9
FGUIProject/assets/Common/Com/Tags/ComoomTitle.xml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<component size="1920,90">
|
||||||
|
<displayList>
|
||||||
|
<text id="n17_d3lv" name="TextTitle" xy="70,11" size="114,66" font="ui://6hgkvlaugkm7v" fontSize="50" color="#07acda" letterSpacing="12" text="选项"/>
|
||||||
|
<image id="n20_mbu9" name="n20" src="kryob" fileName="Images/Square.png" pkg="xo76q8wz" xy="0,88" pivot="0,1" size="1920,2" alpha="0.1" color="#323232">
|
||||||
|
<relation target="" sidePair="width-width,bottom-bottom"/>
|
||||||
|
</image>
|
||||||
|
</displayList>
|
||||||
|
</component>
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<component size="90,90" extention="Button">
|
<component size="60,60" extention="Button">
|
||||||
<displayList>
|
<displayList>
|
||||||
<component id="n0_fcfg" name="icon" src="fcfgft" fileName="Com/Head.xml" xy="0,0" size="90,90">
|
<component id="n0_fcfg" name="icon" src="fcfgft" fileName="Com/Head.xml" xy="0,0" size="60,60">
|
||||||
<relation target="" sidePair="width-width,height-height"/>
|
<relation target="" sidePair="width-width,height-height"/>
|
||||||
</component>
|
</component>
|
||||||
<loader id="n1_fcfg" name="flag" xy="7,74" size="19,13" url="ui://bo7mod5eoso14c" fill="scaleMatchHeight">
|
<loader id="n1_fcfg" name="flag" xy="4,49" size="12,8" url="ui://bo7mod5eoso14c" fill="scaleMatchHeight">
|
||||||
<relation target="" sidePair="width-width%,height-height%,left-left%,bottom-bottom%"/>
|
<relation target="" sidePair="width-width%,height-height%,left-left%,bottom-bottom%"/>
|
||||||
</loader>
|
</loader>
|
||||||
</displayList>
|
</displayList>
|
||||||
|
|||||||
18
FGUIProject/assets/Common/ComNew/BtnMenu.xml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<component size="100,88" extention="Button">
|
||||||
|
<controller name="button" pages="2,up,3,down,4,over,5,selectedOver" selected="1"/>
|
||||||
|
<displayList>
|
||||||
|
<image id="n4_vboj" name="n4" src="vbojsb" fileName="ImagesNew/Glow/glow_horizontal/glow_horizontal_1.png" xy="0,0" size="100,88" alpha="0.2" color="#07acda">
|
||||||
|
<gearDisplay controller="button" pages="3,4,5"/>
|
||||||
|
<relation target="" sidePair="width-width,height-height,center-center,middle-middle"/>
|
||||||
|
</image>
|
||||||
|
<image id="n3_vboj" name="n3" src="vbojpz" fileName="ImagesNew/Line/line_h.png" xy="0,86" size="100,2" color="#07acda">
|
||||||
|
<gearDisplay controller="button" pages="3,5"/>
|
||||||
|
<relation target="" sidePair="width-width,center-center,bottom-bottom"/>
|
||||||
|
</image>
|
||||||
|
<text id="n10_vboj" name="title" xy="26,27" pivot="0.5,0.5" size="47,32" fontSize="22" color="#e4dbdb" align="center" vAlign="middle" text="主页">
|
||||||
|
<relation target="" sidePair="center-center,middle-middle"/>
|
||||||
|
</text>
|
||||||
|
</displayList>
|
||||||
|
<Button mode="Radio"/>
|
||||||
|
</component>
|
||||||
16
FGUIProject/assets/Common/ComNew/BtnSubMenu.xml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<component size="210,52" extention="Button">
|
||||||
|
<controller name="button" pages="2,up,3,down,4,over,5,selectedOver" selected="2"/>
|
||||||
|
<displayList>
|
||||||
|
<image id="n14_vboj" name="back" src="vbojxg" fileName="ImagesNew/Button/SubMenuMid.png" xy="0,0" size="210,52" alpha="0.9" color="#0c0c0c">
|
||||||
|
<gearLook controller="button" pages="2,3,4,5" values="0.9,0,0,0|1,0,0,0|0.9,0,0,0|1,0,0,0"/>
|
||||||
|
<gearColor controller="button" pages="2,3,4,5" values="#0c0c0c|#cccccc|#0c0c0c|#cccccc"/>
|
||||||
|
<relation target="" sidePair="width-width,height-height"/>
|
||||||
|
</image>
|
||||||
|
<text id="n15_vboj" name="title" xy="67,11" pivot="0.5,0.5" size="75,26" fontSize="18" color="#6b6d6c" align="center" vAlign="middle" text="随身武器">
|
||||||
|
<gearColor controller="button" pages="3" values="#323232,#000000" default="#6b6d6c,#000000"/>
|
||||||
|
<relation target="" sidePair="center-center,middle-middle"/>
|
||||||
|
</text>
|
||||||
|
</displayList>
|
||||||
|
<Button mode="Radio"/>
|
||||||
|
</component>
|
||||||
16
FGUIProject/assets/Common/ComNew/BtnSubMenuLeft.xml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<component size="176,52" extention="Button">
|
||||||
|
<controller name="button" pages="2,up,3,down,4,over,5,selectedOver" selected="2"/>
|
||||||
|
<displayList>
|
||||||
|
<image id="n14_vboj" name="back" src="vbojxf" fileName="ImagesNew/Button/SubMenuLeft.png" xy="0,0" size="176,52" alpha="0.9" color="#0c0c0c">
|
||||||
|
<gearLook controller="button" pages="2,3,4,5" values="0.9,0,0,0|1,0,0,0|0.9,0,0,0|1,0,0,0"/>
|
||||||
|
<gearColor controller="button" pages="2,3,4,5" values="#0c0c0c|#cccccc|#0c0c0c|#cccccc"/>
|
||||||
|
<relation target="" sidePair="width-width,height-height"/>
|
||||||
|
</image>
|
||||||
|
<text id="n15_vboj" name="title" xy="33,13" pivot="0.5,0.5" size="75,26" fontSize="18" color="#6b6d6c" align="center" vAlign="middle" text="随身武器">
|
||||||
|
<gearColor controller="button" pages="3" values="#323232,#000000" default="#6b6d6c,#000000"/>
|
||||||
|
<relation target="" sidePair="center-center,middle-middle"/>
|
||||||
|
</text>
|
||||||
|
</displayList>
|
||||||
|
<Button mode="Radio"/>
|
||||||
|
</component>
|
||||||
38
FGUIProject/assets/Common/ComNew/Test.xml
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<component size="1920,1080" designImage="ui://6hgkvlauvbojmm" designImageAlpha="100">
|
||||||
|
<displayList>
|
||||||
|
<component id="n5_vboj" name="back" src="8hy8la" fileName="Com/Back/Back1.xml" xy="0,0" size="1920,1080"/>
|
||||||
|
<image id="n1_vboj" name="n1" src="vbojpz" fileName="ImagesNew/Line/line_h.png" xy="0,87" size="1920,1" color="#323232"/>
|
||||||
|
<list id="n11_vboj" name="n11" xy="85,0" size="695,88" layout="row" overflow="hidden" scroll="horizontal" defaultItem="ui://6hgkvlauvbojt5" autoClearItems="true">
|
||||||
|
<item title="主页"/>
|
||||||
|
<item title="商店"/>
|
||||||
|
<item title="设置"/>
|
||||||
|
<item title="排行"/>
|
||||||
|
<item title="档案"/>
|
||||||
|
<item title="设置"/>
|
||||||
|
<item title="成就"/>
|
||||||
|
</list>
|
||||||
|
<component id="n12_vboj" name="n12" src="r03ut" fileName="Com/Buttons/BtnInputControl.xml" xy="34,30">
|
||||||
|
<Button icon="ui://6hgkvlauvbojue"/>
|
||||||
|
</component>
|
||||||
|
<component id="n13_vboj" name="n13" src="r03ut" fileName="Com/Buttons/BtnInputControl.xml" xy="803,30">
|
||||||
|
<Button icon="ui://6hgkvlauvbojv3"/>
|
||||||
|
</component>
|
||||||
|
<list id="n17_vboj" name="n17" xy="120,125" size="1679,52" layout="row" colGap="-36" defaultItem="ui://6hgkvlauvbojxi" autoClearItems="true">
|
||||||
|
<item/>
|
||||||
|
<item/>
|
||||||
|
<item/>
|
||||||
|
<item/>
|
||||||
|
<item/>
|
||||||
|
<item/>
|
||||||
|
</list>
|
||||||
|
<component id="n18_vboj" name="n18" src="r03ut" fileName="Com/Buttons/BtnInputControl.xml" xy="1809,137">
|
||||||
|
<Button icon="ui://6hgkvlauvbojv2"/>
|
||||||
|
</component>
|
||||||
|
<component id="n20_vboj" name="n20" src="r03ut" fileName="Com/Buttons/BtnInputControl.xml" xy="83,137">
|
||||||
|
<Button icon="ui://6hgkvlauvbojuz"/>
|
||||||
|
</component>
|
||||||
|
<component id="n21_vboj" name="n21" src="fcfgfu" fileName="Com/UserHead.xml" xy="1840,14" size="60,60"/>
|
||||||
|
<component id="n23_vboj" name="n23" src="r03uj0" fileName="Com/Buttons/BtnTitleInputControl.xml" xy="53,980"/>
|
||||||
|
</displayList>
|
||||||
|
</component>
|
||||||
BIN
FGUIProject/assets/Common/Images/Back/Background(1).png
Normal file
|
After Width: | Height: | Size: 626 KiB |
BIN
FGUIProject/assets/Common/Images/Back/Loading_Slovakia_4.png
Normal file
|
After Width: | Height: | Size: 1.0 MiB |
|
Before Width: | Height: | Size: 315 B |
|
Before Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 403 B |
|
Before Width: | Height: | Size: 184 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 7.7 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 7.5 KiB |
|
Before Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 8.0 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 8.2 KiB |
|
Before Width: | Height: | Size: 9.9 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 8.6 KiB |
|
Before Width: | Height: | Size: 9.9 KiB |
|
Before Width: | Height: | Size: 9.6 KiB |
|
Before Width: | Height: | Size: 9.8 KiB |
|
Before Width: | Height: | Size: 9.9 KiB |
|
Before Width: | Height: | Size: 9.9 KiB |
|
Before Width: | Height: | Size: 6.7 KiB |
|
Before Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 4.4 KiB |
|
Before Width: | Height: | Size: 4.4 KiB |
|
Before Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 864 B |
|
Before Width: | Height: | Size: 830 B |
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 865 B |
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |