mirror of
https://github.com/FriendshipIsEpic/FiE-Game.git
synced 2024-11-21 21:37:59 +01:00
Added Control Mapper (Rewired) library.
This commit is contained in:
parent
1789a03ea3
commit
c92b1ac80d
707 changed files with 649121 additions and 0 deletions
10
Assets/Control Mapper/Data.meta
Normal file
10
Assets/Control Mapper/Data.meta
Normal file
|
@ -0,0 +1,10 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 194ecf2936abaae4baa43a7a8eb0796f
|
||||
folderAsset: yes
|
||||
timeCreated: 1510961639
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
18
Assets/Control Mapper/Data/EditorSettings.asset
Normal file
18
Assets/Control Mapper/Data/EditorSettings.asset
Normal file
|
@ -0,0 +1,18 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -1822101463, guid: 09c9b883b79ef864a99683bb36c5776d, type: 3}
|
||||
m_Name: EditorSettings
|
||||
m_EditorClassIdentifier:
|
||||
programVersion1: 1
|
||||
programVersion2: 1
|
||||
programVersion3: 7
|
||||
programVersion4: 8
|
||||
dataVersion: 1
|
10
Assets/Control Mapper/Data/EditorSettings.asset.meta
Normal file
10
Assets/Control Mapper/Data/EditorSettings.asset.meta
Normal file
|
@ -0,0 +1,10 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 387272021120ec5498e3f4810cbd225e
|
||||
timeCreated: 1510961639
|
||||
licenseType: Free
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
5
Assets/Control Mapper/DevTools.meta
Normal file
5
Assets/Control Mapper/DevTools.meta
Normal file
|
@ -0,0 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 34c7bef5c84872341b7be0322b72cc64
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
userData:
|
52
Assets/Control Mapper/DevTools/DebugInformation.prefab
Normal file
52
Assets/Control Mapper/DevTools/DebugInformation.prefab
Normal file
|
@ -0,0 +1,52 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &100000
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 400000}
|
||||
- 114: {fileID: 11400000}
|
||||
m_Layer: 0
|
||||
m_Name: DebugInformation
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &400000
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100000}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100000}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 1559198062, guid: 09c9b883b79ef864a99683bb36c5776d, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!1001 &100100000
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 1
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications: []
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 100000}
|
||||
m_IsPrefabParent: 1
|
||||
m_IsExploded: 1
|
|
@ -0,0 +1,4 @@
|
|||
fileFormatVersion: 2
|
||||
guid: b1bb11887b0e1ce49aa3433d94d1900b
|
||||
NativeFormatImporter:
|
||||
userData:
|
|
@ -0,0 +1,76 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &100000
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 400000}
|
||||
- 132: {fileID: 13200000}
|
||||
- 114: {fileID: 11400000}
|
||||
m_Layer: 0
|
||||
m_Name: JoystickElementIdentifier
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &400000
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100000}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100000}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -567314509, guid: 09c9b883b79ef864a99683bb36c5776d, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!132 &13200000
|
||||
GUIText:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100000}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_Text:
|
||||
m_Anchor: 6
|
||||
m_Alignment: 0
|
||||
m_PixelOffset: {x: 0, y: 0}
|
||||
m_LineSpacing: 1
|
||||
m_TabSize: 4
|
||||
m_Font: {fileID: 0}
|
||||
m_Material: {fileID: 0}
|
||||
m_FontSize: 0
|
||||
m_FontStyle: 0
|
||||
m_Color:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_PixelCorrect: 1
|
||||
m_RichText: 1
|
||||
--- !u!1001 &100100000
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 1
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications: []
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 100000}
|
||||
m_IsPrefabParent: 1
|
||||
m_IsExploded: 1
|
|
@ -0,0 +1,4 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 9b25557305ecedf448b4c43532aac32e
|
||||
NativeFormatImporter:
|
||||
userData:
|
484
Assets/Control Mapper/DevTools/JoystickElementIdentifier.unity
Normal file
484
Assets/Control Mapper/DevTools/JoystickElementIdentifier.unity
Normal file
|
@ -0,0 +1,484 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!29 &1
|
||||
SceneSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PVSData:
|
||||
m_PVSObjectsArray: []
|
||||
m_PVSPortalsArray: []
|
||||
m_OcclusionBakeSettings:
|
||||
smallestOccluder: 5
|
||||
smallestHole: .25
|
||||
backfaceThreshold: 100
|
||||
--- !u!104 &2
|
||||
RenderSettings:
|
||||
m_Fog: 0
|
||||
m_FogColor: {r: .5, g: .5, b: .5, a: 1}
|
||||
m_FogMode: 3
|
||||
m_FogDensity: .00999999978
|
||||
m_LinearFogStart: 0
|
||||
m_LinearFogEnd: 300
|
||||
m_AmbientLight: {r: .200000003, g: .200000003, b: .200000003, a: 1}
|
||||
m_SkyboxMaterial: {fileID: 0}
|
||||
m_HaloStrength: .5
|
||||
m_FlareStrength: 1
|
||||
m_FlareFadeSpeed: 3
|
||||
m_HaloTexture: {fileID: 0}
|
||||
m_SpotCookie: {fileID: 0}
|
||||
m_ObjectHideFlags: 0
|
||||
--- !u!127 &3
|
||||
LevelGameManager:
|
||||
m_ObjectHideFlags: 0
|
||||
--- !u!157 &4
|
||||
LightmapSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
m_LightProbes: {fileID: 0}
|
||||
m_Lightmaps: []
|
||||
m_LightmapsMode: 1
|
||||
m_BakedColorSpace: 0
|
||||
m_UseDualLightmapsInForward: 0
|
||||
m_LightmapEditorSettings:
|
||||
m_Resolution: 50
|
||||
m_LastUsedResolution: 0
|
||||
m_TextureWidth: 1024
|
||||
m_TextureHeight: 1024
|
||||
m_BounceBoost: 1
|
||||
m_BounceIntensity: 1
|
||||
m_SkyLightColor: {r: .860000014, g: .930000007, b: 1, a: 1}
|
||||
m_SkyLightIntensity: 0
|
||||
m_Quality: 0
|
||||
m_Bounces: 1
|
||||
m_FinalGatherRays: 1000
|
||||
m_FinalGatherContrastThreshold: .0500000007
|
||||
m_FinalGatherGradientThreshold: 0
|
||||
m_FinalGatherInterpolationPoints: 15
|
||||
m_AOAmount: 0
|
||||
m_AOMaxDistance: .100000001
|
||||
m_AOContrast: 1
|
||||
m_LODSurfaceMappingDistance: 1
|
||||
m_Padding: 0
|
||||
m_TextureCompression: 0
|
||||
m_LockAtlas: 0
|
||||
--- !u!196 &5
|
||||
NavMeshSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
m_BuildSettings:
|
||||
agentRadius: .5
|
||||
agentHeight: 2
|
||||
agentSlope: 45
|
||||
agentClimb: .400000006
|
||||
ledgeDropHeight: 0
|
||||
maxJumpAcrossDistance: 0
|
||||
accuratePlacement: 0
|
||||
minRegionArea: 2
|
||||
widthInaccuracy: 16.666666
|
||||
heightInaccuracy: 10
|
||||
m_NavMesh: {fileID: 0}
|
||||
--- !u!1 &84910976
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 84910981}
|
||||
- 20: {fileID: 84910980}
|
||||
- 92: {fileID: 84910979}
|
||||
- 124: {fileID: 84910978}
|
||||
- 81: {fileID: 84910977}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!81 &84910977
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 84910976}
|
||||
m_Enabled: 1
|
||||
--- !u!124 &84910978
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 84910976}
|
||||
m_Enabled: 1
|
||||
--- !u!92 &84910979
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 84910976}
|
||||
m_Enabled: 1
|
||||
--- !u!20 &84910980
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 84910976}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 1
|
||||
m_BackGroundColor: {r: .192156866, g: .301960796, b: .474509805, a: .0196078438}
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: .300000012
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 0
|
||||
orthographic size: 5
|
||||
m_Depth: -1
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_HDR: 0
|
||||
m_OcclusionCulling: 1
|
||||
--- !u!4 &84910981
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 84910976}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 1, z: -10}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
--- !u!1 &311556634
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 311556636}
|
||||
- 114: {fileID: 311556635}
|
||||
m_Layer: 0
|
||||
m_Name: Rewired Input Manager
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &311556635
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 311556634}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 581b3e3c96df0ef42aef16b63b27b87f, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
_dontDestroyOnLoad: 1
|
||||
_userData:
|
||||
configVars:
|
||||
updateLoop: 1
|
||||
alwaysUseUnityInput: 0
|
||||
windowsStandalonePrimaryInputSource: 0
|
||||
osx_primaryInputSource: 0
|
||||
linux_primaryInputSource: 0
|
||||
windowsUWP_primaryInputSource: 0
|
||||
xboxOne_primaryInputSource: 0
|
||||
ps4_primaryInputSource: 0
|
||||
useXInput: 1
|
||||
useNativeMouse: 1
|
||||
useEnhancedDeviceSupport: 1
|
||||
windowsStandalone_useSteamRawInputControllerWorkaround: 0
|
||||
osxStandalone_useEnhancedDeviceSupport: 1
|
||||
android_supportUnknownGamepads: 1
|
||||
ps4_assignJoysticksByPS4JoyId: 1
|
||||
useSteamControllerSupport: 1
|
||||
platformVars_allPlatforms:
|
||||
disableKeyboard: 0
|
||||
ignoreInputWhenAppNotInFocus: 1
|
||||
platformVars_windowsStandalone:
|
||||
disableKeyboard: 0
|
||||
ignoreInputWhenAppNotInFocus: 1
|
||||
platformVars_linuxStandalone:
|
||||
disableKeyboard: 0
|
||||
ignoreInputWhenAppNotInFocus: 1
|
||||
platformVars_osxStandalone:
|
||||
disableKeyboard: 0
|
||||
ignoreInputWhenAppNotInFocus: 1
|
||||
platformVars_windows8Store:
|
||||
disableKeyboard: 0
|
||||
ignoreInputWhenAppNotInFocus: 1
|
||||
platformVars_windowsUWP:
|
||||
disableKeyboard: 0
|
||||
ignoreInputWhenAppNotInFocus: 1
|
||||
platformVars_iOS:
|
||||
disableKeyboard: 0
|
||||
ignoreInputWhenAppNotInFocus: 1
|
||||
platformVars_tvOS:
|
||||
disableKeyboard: 0
|
||||
ignoreInputWhenAppNotInFocus: 1
|
||||
platformVars_android:
|
||||
disableKeyboard: 0
|
||||
ignoreInputWhenAppNotInFocus: 1
|
||||
platformVars_ps3:
|
||||
disableKeyboard: 0
|
||||
ignoreInputWhenAppNotInFocus: 1
|
||||
platformVars_ps4:
|
||||
disableKeyboard: 0
|
||||
ignoreInputWhenAppNotInFocus: 1
|
||||
platformVars_psVita:
|
||||
disableKeyboard: 0
|
||||
ignoreInputWhenAppNotInFocus: 1
|
||||
platformVars_xbox360:
|
||||
disableKeyboard: 0
|
||||
ignoreInputWhenAppNotInFocus: 1
|
||||
platformVars_xboxOne:
|
||||
disableKeyboard: 0
|
||||
ignoreInputWhenAppNotInFocus: 1
|
||||
platformVars_wii:
|
||||
disableKeyboard: 0
|
||||
ignoreInputWhenAppNotInFocus: 1
|
||||
platformVars_wiiu:
|
||||
disableKeyboard: 0
|
||||
ignoreInputWhenAppNotInFocus: 1
|
||||
platformVars_webGL:
|
||||
disableKeyboard: 0
|
||||
ignoreInputWhenAppNotInFocus: 1
|
||||
maxJoysticksPerPlayer: 1
|
||||
autoAssignJoysticks: 1
|
||||
assignJoysticksToPlayingPlayersOnly: 0
|
||||
distributeJoysticksEvenly: 1
|
||||
reassignJoystickToPreviousOwnerOnReconnect: 1
|
||||
defaultJoystickAxis2DDeadZoneType: 1
|
||||
force4WayHats: 0
|
||||
editorSettings:
|
||||
exportConsts_useParentClass: 0
|
||||
exportConsts_parentClassName: RewiredConsts
|
||||
exportConsts_useNamespace: 1
|
||||
exportConsts_namespace: RewiredConsts
|
||||
exportConsts_actions: 1
|
||||
exportConsts_actionsClassName: Action
|
||||
exportConsts_actionsIncludeActionCategory: 0
|
||||
exportConsts_mapCategories: 1
|
||||
exportConsts_mapCategoriesClassName: Category
|
||||
exportConsts_layouts: 1
|
||||
exportConsts_layoutsClassName: Layout
|
||||
exportConsts_players: 1
|
||||
exportConsts_playersClassName: Player
|
||||
exportConsts_customControllers: 1
|
||||
exportConsts_customControllersClassName: CustomController
|
||||
exportConsts_customControllersAxesClassName: Axis
|
||||
exportConsts_customControllersButtonsClassName: Button
|
||||
players:
|
||||
- _id: 9999999
|
||||
_name: System
|
||||
_descriptiveName: System
|
||||
_startPlaying: 1
|
||||
_defaultJoystickMaps: []
|
||||
_defaultMouseMaps: []
|
||||
_defaultKeyboardMaps: []
|
||||
_defaultCustomControllerMaps: []
|
||||
_startingCustomControllers: []
|
||||
_assignMouseOnStart: 1
|
||||
_assignKeyboardOnStart: 1
|
||||
_excludeFromControllerAutoAssignment: 1
|
||||
actions: []
|
||||
actionCategories:
|
||||
- _name: Default
|
||||
_descriptiveName: Default
|
||||
_tag:
|
||||
_id: 0
|
||||
_userAssignable: 1
|
||||
actionCategoryMap:
|
||||
list:
|
||||
- categoryId: 0
|
||||
actionIds:
|
||||
inputBehaviors:
|
||||
- _id: 0
|
||||
_name: Default
|
||||
_joystickAxisSensitivity: 1
|
||||
_digitalAxisSimulation: 1
|
||||
_digitalAxisSnap: 1
|
||||
_digitalAxisInstantReverse: 0
|
||||
_digitalAxisGravity: 3
|
||||
_digitalAxisSensitivity: 3
|
||||
_mouseXYAxisMode: 0
|
||||
_mouseOtherAxisMode: 0
|
||||
_mouseXYAxisSensitivity: 1
|
||||
_mouseXYAxisDeltaCalc: 0
|
||||
_mouseOtherAxisSensitivity: 1
|
||||
_customControllerAxisSensitivity: 1
|
||||
_buttonDoublePressSpeed: .300000012
|
||||
_buttonShortPressTime: .25
|
||||
_buttonShortPressExpiresIn: 0
|
||||
_buttonLongPressTime: 1
|
||||
_buttonLongPressExpiresIn: 0
|
||||
_buttonDeadZone: .5
|
||||
_buttonDownBuffer: 0
|
||||
mapCategories:
|
||||
- _name: Default
|
||||
_descriptiveName: Default
|
||||
_tag:
|
||||
_id: 0
|
||||
_userAssignable: 1
|
||||
_checkConflictsWithAllCategories: 1
|
||||
_checkConflictsCategoryIds:
|
||||
joystickLayouts:
|
||||
- _name: Default
|
||||
_descriptiveName: Default
|
||||
_id: 0
|
||||
keyboardLayouts:
|
||||
- _name: Default
|
||||
_descriptiveName: Default
|
||||
_id: 0
|
||||
mouseLayouts:
|
||||
- _name: Default
|
||||
_descriptiveName: Default
|
||||
_id: 0
|
||||
customControllerLayouts:
|
||||
- _name: Default
|
||||
_descriptiveName: Default
|
||||
_id: 0
|
||||
joystickMaps: []
|
||||
keyboardMaps: []
|
||||
mouseMaps: []
|
||||
customControllerMaps: []
|
||||
customControllers: []
|
||||
playerIdCounter: 1
|
||||
actionIdCounter: 0
|
||||
actionCategoryIdCounter: 1
|
||||
inputBehaviorIdCounter: 1
|
||||
mapCategoryIdCounter: 1
|
||||
joystickLayoutIdCounter: 1
|
||||
keyboardLayoutIdCounter: 1
|
||||
mouseLayoutIdCounter: 1
|
||||
customControllerLayoutIdCounter: 1
|
||||
joystickMapIdCounter: 0
|
||||
keyboardMapIdCounter: 0
|
||||
mouseMapIdCounter: 0
|
||||
customControllerMapIdCounter: 0
|
||||
customControllerIdCounter: 0
|
||||
_controllerDataFiles: {fileID: 11400000, guid: d21d2b20df8369642b76aafbb2576ba7,
|
||||
type: 2}
|
||||
--- !u!4 &311556636
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 311556634}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
--- !u!1 &845884272
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 100000, guid: 9b25557305ecedf448b4c43532aac32e, type: 2}
|
||||
m_PrefabInternal: {fileID: 1431304253}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 845884275}
|
||||
- 132: {fileID: 845884274}
|
||||
- 114: {fileID: 845884273}
|
||||
m_Layer: 0
|
||||
m_Name: JoystickElementIdentifier
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &845884273
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 11400000, guid: 9b25557305ecedf448b4c43532aac32e,
|
||||
type: 2}
|
||||
m_PrefabInternal: {fileID: 1431304253}
|
||||
m_GameObject: {fileID: 845884272}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -567314509, guid: 09c9b883b79ef864a99683bb36c5776d, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!132 &845884274
|
||||
GUIText:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 13200000, guid: 9b25557305ecedf448b4c43532aac32e,
|
||||
type: 2}
|
||||
m_PrefabInternal: {fileID: 1431304253}
|
||||
m_GameObject: {fileID: 845884272}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_Text:
|
||||
m_Anchor: 6
|
||||
m_Alignment: 0
|
||||
m_PixelOffset: {x: 0, y: 0}
|
||||
m_LineSpacing: 1
|
||||
m_TabSize: 4
|
||||
m_Font: {fileID: 0}
|
||||
m_Material: {fileID: 0}
|
||||
m_FontSize: 0
|
||||
m_FontStyle: 0
|
||||
m_Color:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_PixelCorrect: 1
|
||||
m_RichText: 1
|
||||
--- !u!4 &845884275
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 400000, guid: 9b25557305ecedf448b4c43532aac32e, type: 2}
|
||||
m_PrefabInternal: {fileID: 1431304253}
|
||||
m_GameObject: {fileID: 845884272}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
--- !u!1001 &1431304253
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 400000, guid: 9b25557305ecedf448b4c43532aac32e, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 400000, guid: 9b25557305ecedf448b4c43532aac32e, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 400000, guid: 9b25557305ecedf448b4c43532aac32e, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 400000, guid: 9b25557305ecedf448b4c43532aac32e, type: 2}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 400000, guid: 9b25557305ecedf448b4c43532aac32e, type: 2}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 400000, guid: 9b25557305ecedf448b4c43532aac32e, type: 2}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 400000, guid: 9b25557305ecedf448b4c43532aac32e, type: 2}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: 9b25557305ecedf448b4c43532aac32e, type: 2}
|
||||
m_RootGameObject: {fileID: 845884272}
|
||||
m_IsPrefabParent: 0
|
||||
m_IsExploded: 1
|
|
@ -0,0 +1,4 @@
|
|||
fileFormatVersion: 2
|
||||
guid: f1add3d573270314f9989babd5c4a3c1
|
||||
DefaultImporter:
|
||||
userData:
|
|
@ -0,0 +1,76 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &100000
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 400000}
|
||||
- 132: {fileID: 13200000}
|
||||
- 114: {fileID: 11400000}
|
||||
m_Layer: 0
|
||||
m_Name: UnityJoystickElementIdentifier
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &400000
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100000}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100000}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -1558239198, guid: 09c9b883b79ef864a99683bb36c5776d, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!132 &13200000
|
||||
GUIText:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100000}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_Text:
|
||||
m_Anchor: 6
|
||||
m_Alignment: 0
|
||||
m_PixelOffset: {x: 0, y: 0}
|
||||
m_LineSpacing: 1
|
||||
m_TabSize: 4
|
||||
m_Font: {fileID: 0}
|
||||
m_Material: {fileID: 0}
|
||||
m_FontSize: 0
|
||||
m_FontStyle: 0
|
||||
m_Color:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_PixelCorrect: 1
|
||||
m_RichText: 1
|
||||
--- !u!1001 &100100000
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 1
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications: []
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 100000}
|
||||
m_IsPrefabParent: 1
|
||||
m_IsExploded: 1
|
|
@ -0,0 +1,21 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 9431ba5b04ae3934a8cde0abd640ad65
|
||||
labels:
|
||||
- Input
|
||||
- Joysticks
|
||||
- Controllers
|
||||
- Rewired
|
||||
- Hotplugging
|
||||
- Keyboard
|
||||
- Mouse
|
||||
- Touch
|
||||
- InputManager
|
||||
- Control
|
||||
- Gamepad
|
||||
- Controller
|
||||
- Joystick
|
||||
- Xbox360
|
||||
- XInput
|
||||
- DirectInput
|
||||
NativeFormatImporter:
|
||||
userData:
|
|
@ -0,0 +1,484 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!29 &1
|
||||
SceneSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PVSData:
|
||||
m_PVSObjectsArray: []
|
||||
m_PVSPortalsArray: []
|
||||
m_OcclusionBakeSettings:
|
||||
smallestOccluder: 5
|
||||
smallestHole: .25
|
||||
backfaceThreshold: 100
|
||||
--- !u!104 &2
|
||||
RenderSettings:
|
||||
m_Fog: 0
|
||||
m_FogColor: {r: .5, g: .5, b: .5, a: 1}
|
||||
m_FogMode: 3
|
||||
m_FogDensity: .00999999978
|
||||
m_LinearFogStart: 0
|
||||
m_LinearFogEnd: 300
|
||||
m_AmbientLight: {r: .200000003, g: .200000003, b: .200000003, a: 1}
|
||||
m_SkyboxMaterial: {fileID: 0}
|
||||
m_HaloStrength: .5
|
||||
m_FlareStrength: 1
|
||||
m_FlareFadeSpeed: 3
|
||||
m_HaloTexture: {fileID: 0}
|
||||
m_SpotCookie: {fileID: 0}
|
||||
m_ObjectHideFlags: 0
|
||||
--- !u!127 &3
|
||||
LevelGameManager:
|
||||
m_ObjectHideFlags: 0
|
||||
--- !u!157 &4
|
||||
LightmapSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
m_LightProbes: {fileID: 0}
|
||||
m_Lightmaps: []
|
||||
m_LightmapsMode: 1
|
||||
m_BakedColorSpace: 0
|
||||
m_UseDualLightmapsInForward: 0
|
||||
m_LightmapEditorSettings:
|
||||
m_Resolution: 50
|
||||
m_LastUsedResolution: 0
|
||||
m_TextureWidth: 1024
|
||||
m_TextureHeight: 1024
|
||||
m_BounceBoost: 1
|
||||
m_BounceIntensity: 1
|
||||
m_SkyLightColor: {r: .860000014, g: .930000007, b: 1, a: 1}
|
||||
m_SkyLightIntensity: 0
|
||||
m_Quality: 0
|
||||
m_Bounces: 1
|
||||
m_FinalGatherRays: 1000
|
||||
m_FinalGatherContrastThreshold: .0500000007
|
||||
m_FinalGatherGradientThreshold: 0
|
||||
m_FinalGatherInterpolationPoints: 15
|
||||
m_AOAmount: 0
|
||||
m_AOMaxDistance: .100000001
|
||||
m_AOContrast: 1
|
||||
m_LODSurfaceMappingDistance: 1
|
||||
m_Padding: 0
|
||||
m_TextureCompression: 0
|
||||
m_LockAtlas: 0
|
||||
--- !u!196 &5
|
||||
NavMeshSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
m_BuildSettings:
|
||||
agentRadius: .5
|
||||
agentHeight: 2
|
||||
agentSlope: 45
|
||||
agentClimb: .400000006
|
||||
ledgeDropHeight: 0
|
||||
maxJumpAcrossDistance: 0
|
||||
accuratePlacement: 0
|
||||
minRegionArea: 2
|
||||
widthInaccuracy: 16.666666
|
||||
heightInaccuracy: 10
|
||||
m_NavMesh: {fileID: 0}
|
||||
--- !u!1 &84910976
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 84910981}
|
||||
- 20: {fileID: 84910980}
|
||||
- 92: {fileID: 84910979}
|
||||
- 124: {fileID: 84910978}
|
||||
- 81: {fileID: 84910977}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!81 &84910977
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 84910976}
|
||||
m_Enabled: 1
|
||||
--- !u!124 &84910978
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 84910976}
|
||||
m_Enabled: 1
|
||||
--- !u!92 &84910979
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 84910976}
|
||||
m_Enabled: 1
|
||||
--- !u!20 &84910980
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 84910976}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 1
|
||||
m_BackGroundColor: {r: .192156866, g: .301960796, b: .474509805, a: .0196078438}
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: .300000012
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 0
|
||||
orthographic size: 5
|
||||
m_Depth: -1
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_HDR: 0
|
||||
m_OcclusionCulling: 1
|
||||
--- !u!4 &84910981
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 84910976}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 1, z: -10}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
--- !u!1001 &282959991
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 400000, guid: 9431ba5b04ae3934a8cde0abd640ad65, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 400000, guid: 9431ba5b04ae3934a8cde0abd640ad65, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 400000, guid: 9431ba5b04ae3934a8cde0abd640ad65, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 400000, guid: 9431ba5b04ae3934a8cde0abd640ad65, type: 2}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 400000, guid: 9431ba5b04ae3934a8cde0abd640ad65, type: 2}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 400000, guid: 9431ba5b04ae3934a8cde0abd640ad65, type: 2}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 400000, guid: 9431ba5b04ae3934a8cde0abd640ad65, type: 2}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: 9431ba5b04ae3934a8cde0abd640ad65, type: 2}
|
||||
m_RootGameObject: {fileID: 1800550507}
|
||||
m_IsPrefabParent: 0
|
||||
m_IsExploded: 1
|
||||
--- !u!1 &311556634
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 311556636}
|
||||
- 114: {fileID: 311556635}
|
||||
m_Layer: 0
|
||||
m_Name: Rewired Input Manager
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &311556635
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 311556634}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 581b3e3c96df0ef42aef16b63b27b87f, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
_dontDestroyOnLoad: 1
|
||||
_userData:
|
||||
configVars:
|
||||
updateLoop: 1
|
||||
alwaysUseUnityInput: 0
|
||||
windowsStandalonePrimaryInputSource: 0
|
||||
osx_primaryInputSource: 0
|
||||
linux_primaryInputSource: 0
|
||||
windowsUWP_primaryInputSource: 0
|
||||
xboxOne_primaryInputSource: 0
|
||||
ps4_primaryInputSource: 0
|
||||
useXInput: 1
|
||||
useNativeMouse: 1
|
||||
useEnhancedDeviceSupport: 1
|
||||
windowsStandalone_useSteamRawInputControllerWorkaround: 0
|
||||
osxStandalone_useEnhancedDeviceSupport: 1
|
||||
android_supportUnknownGamepads: 1
|
||||
ps4_assignJoysticksByPS4JoyId: 1
|
||||
useSteamControllerSupport: 1
|
||||
platformVars_allPlatforms:
|
||||
disableKeyboard: 0
|
||||
ignoreInputWhenAppNotInFocus: 1
|
||||
platformVars_windowsStandalone:
|
||||
disableKeyboard: 0
|
||||
ignoreInputWhenAppNotInFocus: 1
|
||||
platformVars_linuxStandalone:
|
||||
disableKeyboard: 0
|
||||
ignoreInputWhenAppNotInFocus: 1
|
||||
platformVars_osxStandalone:
|
||||
disableKeyboard: 0
|
||||
ignoreInputWhenAppNotInFocus: 1
|
||||
platformVars_windows8Store:
|
||||
disableKeyboard: 0
|
||||
ignoreInputWhenAppNotInFocus: 1
|
||||
platformVars_windowsUWP:
|
||||
disableKeyboard: 0
|
||||
ignoreInputWhenAppNotInFocus: 1
|
||||
platformVars_iOS:
|
||||
disableKeyboard: 0
|
||||
ignoreInputWhenAppNotInFocus: 1
|
||||
platformVars_tvOS:
|
||||
disableKeyboard: 0
|
||||
ignoreInputWhenAppNotInFocus: 1
|
||||
platformVars_android:
|
||||
disableKeyboard: 0
|
||||
ignoreInputWhenAppNotInFocus: 1
|
||||
platformVars_ps3:
|
||||
disableKeyboard: 0
|
||||
ignoreInputWhenAppNotInFocus: 1
|
||||
platformVars_ps4:
|
||||
disableKeyboard: 0
|
||||
ignoreInputWhenAppNotInFocus: 1
|
||||
platformVars_psVita:
|
||||
disableKeyboard: 0
|
||||
ignoreInputWhenAppNotInFocus: 1
|
||||
platformVars_xbox360:
|
||||
disableKeyboard: 0
|
||||
ignoreInputWhenAppNotInFocus: 1
|
||||
platformVars_xboxOne:
|
||||
disableKeyboard: 0
|
||||
ignoreInputWhenAppNotInFocus: 1
|
||||
platformVars_wii:
|
||||
disableKeyboard: 0
|
||||
ignoreInputWhenAppNotInFocus: 1
|
||||
platformVars_wiiu:
|
||||
disableKeyboard: 0
|
||||
ignoreInputWhenAppNotInFocus: 1
|
||||
platformVars_webGL:
|
||||
disableKeyboard: 0
|
||||
ignoreInputWhenAppNotInFocus: 1
|
||||
maxJoysticksPerPlayer: 1
|
||||
autoAssignJoysticks: 1
|
||||
assignJoysticksToPlayingPlayersOnly: 0
|
||||
distributeJoysticksEvenly: 1
|
||||
reassignJoystickToPreviousOwnerOnReconnect: 1
|
||||
defaultJoystickAxis2DDeadZoneType: 1
|
||||
force4WayHats: 0
|
||||
editorSettings:
|
||||
exportConsts_useParentClass: 0
|
||||
exportConsts_parentClassName: RewiredConsts
|
||||
exportConsts_useNamespace: 1
|
||||
exportConsts_namespace: RewiredConsts
|
||||
exportConsts_actions: 1
|
||||
exportConsts_actionsClassName: Action
|
||||
exportConsts_actionsIncludeActionCategory: 0
|
||||
exportConsts_mapCategories: 1
|
||||
exportConsts_mapCategoriesClassName: Category
|
||||
exportConsts_layouts: 1
|
||||
exportConsts_layoutsClassName: Layout
|
||||
exportConsts_players: 1
|
||||
exportConsts_playersClassName: Player
|
||||
exportConsts_customControllers: 1
|
||||
exportConsts_customControllersClassName: CustomController
|
||||
exportConsts_customControllersAxesClassName: Axis
|
||||
exportConsts_customControllersButtonsClassName: Button
|
||||
players:
|
||||
- _id: 9999999
|
||||
_name: System
|
||||
_descriptiveName: System
|
||||
_startPlaying: 1
|
||||
_defaultJoystickMaps: []
|
||||
_defaultMouseMaps: []
|
||||
_defaultKeyboardMaps: []
|
||||
_defaultCustomControllerMaps: []
|
||||
_startingCustomControllers: []
|
||||
_assignMouseOnStart: 1
|
||||
_assignKeyboardOnStart: 1
|
||||
_excludeFromControllerAutoAssignment: 1
|
||||
actions: []
|
||||
actionCategories:
|
||||
- _name: Default
|
||||
_descriptiveName: Default
|
||||
_tag:
|
||||
_id: 0
|
||||
_userAssignable: 1
|
||||
actionCategoryMap:
|
||||
list:
|
||||
- categoryId: 0
|
||||
actionIds:
|
||||
inputBehaviors:
|
||||
- _id: 0
|
||||
_name: Default
|
||||
_joystickAxisSensitivity: 1
|
||||
_digitalAxisSimulation: 1
|
||||
_digitalAxisSnap: 1
|
||||
_digitalAxisInstantReverse: 0
|
||||
_digitalAxisGravity: 3
|
||||
_digitalAxisSensitivity: 3
|
||||
_mouseXYAxisMode: 0
|
||||
_mouseOtherAxisMode: 0
|
||||
_mouseXYAxisSensitivity: 1
|
||||
_mouseXYAxisDeltaCalc: 0
|
||||
_mouseOtherAxisSensitivity: 1
|
||||
_customControllerAxisSensitivity: 1
|
||||
_buttonDoublePressSpeed: .300000012
|
||||
_buttonShortPressTime: .25
|
||||
_buttonShortPressExpiresIn: 0
|
||||
_buttonLongPressTime: 1
|
||||
_buttonLongPressExpiresIn: 0
|
||||
_buttonDeadZone: .5
|
||||
_buttonDownBuffer: 0
|
||||
mapCategories:
|
||||
- _name: Default
|
||||
_descriptiveName: Default
|
||||
_tag:
|
||||
_id: 0
|
||||
_userAssignable: 1
|
||||
_checkConflictsWithAllCategories: 1
|
||||
_checkConflictsCategoryIds:
|
||||
joystickLayouts:
|
||||
- _name: Default
|
||||
_descriptiveName: Default
|
||||
_id: 0
|
||||
keyboardLayouts:
|
||||
- _name: Default
|
||||
_descriptiveName: Default
|
||||
_id: 0
|
||||
mouseLayouts:
|
||||
- _name: Default
|
||||
_descriptiveName: Default
|
||||
_id: 0
|
||||
customControllerLayouts:
|
||||
- _name: Default
|
||||
_descriptiveName: Default
|
||||
_id: 0
|
||||
joystickMaps: []
|
||||
keyboardMaps: []
|
||||
mouseMaps: []
|
||||
customControllerMaps: []
|
||||
customControllers: []
|
||||
playerIdCounter: 1
|
||||
actionIdCounter: 0
|
||||
actionCategoryIdCounter: 1
|
||||
inputBehaviorIdCounter: 1
|
||||
mapCategoryIdCounter: 1
|
||||
joystickLayoutIdCounter: 1
|
||||
keyboardLayoutIdCounter: 1
|
||||
mouseLayoutIdCounter: 1
|
||||
customControllerLayoutIdCounter: 1
|
||||
joystickMapIdCounter: 0
|
||||
keyboardMapIdCounter: 0
|
||||
mouseMapIdCounter: 0
|
||||
customControllerMapIdCounter: 0
|
||||
customControllerIdCounter: 0
|
||||
_controllerDataFiles: {fileID: 11400000, guid: d21d2b20df8369642b76aafbb2576ba7,
|
||||
type: 2}
|
||||
--- !u!4 &311556636
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 311556634}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
--- !u!1 &1800550507
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 100000, guid: 9431ba5b04ae3934a8cde0abd640ad65, type: 2}
|
||||
m_PrefabInternal: {fileID: 282959991}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 1800550510}
|
||||
- 132: {fileID: 1800550509}
|
||||
- 114: {fileID: 1800550508}
|
||||
m_Layer: 0
|
||||
m_Name: UnityJoystickElementIdentifier
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &1800550508
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 11400000, guid: 9431ba5b04ae3934a8cde0abd640ad65,
|
||||
type: 2}
|
||||
m_PrefabInternal: {fileID: 282959991}
|
||||
m_GameObject: {fileID: 1800550507}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -1558239198, guid: 09c9b883b79ef864a99683bb36c5776d, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!132 &1800550509
|
||||
GUIText:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 13200000, guid: 9431ba5b04ae3934a8cde0abd640ad65,
|
||||
type: 2}
|
||||
m_PrefabInternal: {fileID: 282959991}
|
||||
m_GameObject: {fileID: 1800550507}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_Text:
|
||||
m_Anchor: 6
|
||||
m_Alignment: 0
|
||||
m_PixelOffset: {x: 0, y: 0}
|
||||
m_LineSpacing: 1
|
||||
m_TabSize: 4
|
||||
m_Font: {fileID: 0}
|
||||
m_Material: {fileID: 0}
|
||||
m_FontSize: 0
|
||||
m_FontStyle: 0
|
||||
m_Color:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_PixelCorrect: 1
|
||||
m_RichText: 1
|
||||
--- !u!4 &1800550510
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 400000, guid: 9431ba5b04ae3934a8cde0abd640ad65, type: 2}
|
||||
m_PrefabInternal: {fileID: 282959991}
|
||||
m_GameObject: {fileID: 1800550507}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
|
@ -0,0 +1,4 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 616b862448906a846bd333011203531d
|
||||
DefaultImporter:
|
||||
userData:
|
10
Assets/Control Mapper/Extras.meta
Normal file
10
Assets/Control Mapper/Extras.meta
Normal file
|
@ -0,0 +1,10 @@
|
|||
fileFormatVersion: 2
|
||||
guid: eb9b22b87ca2b534792f4e2bfe82d906
|
||||
folderAsset: yes
|
||||
timeCreated: 1510961687
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
5
Assets/Control Mapper/Extras/ControlMapper.meta
Normal file
5
Assets/Control Mapper/Extras/ControlMapper.meta
Normal file
|
@ -0,0 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: bcb78a741c8b9434ab0e20947fd8a8e8
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
userData:
|
5
Assets/Control Mapper/Extras/ControlMapper/Examples.meta
Normal file
5
Assets/Control Mapper/Extras/ControlMapper/Examples.meta
Normal file
|
@ -0,0 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: d4ebbee129e87524aa8f5ce8adf0c27a
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
userData:
|
|
@ -0,0 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 15aeebade1a2ad64ca05bf993aa08972
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
userData:
|
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,4 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 2a0b7c6aa445acd4c9cb07e4be4a0151
|
||||
DefaultImporter:
|
||||
userData:
|
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,4 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 8e63fb93411f2b844a52d533b35a4c1c
|
||||
DefaultImporter:
|
||||
userData:
|
|
@ -0,0 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 8453f99cd1e05e644b66d7b6af2c8914
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
userData:
|
|
@ -0,0 +1,49 @@
|
|||
// Copyright (c) 2015 Augie R. Maddox, Guavaman Enterprises. All rights reserved.
|
||||
#pragma warning disable 0219
|
||||
#pragma warning disable 0618
|
||||
#pragma warning disable 0649
|
||||
|
||||
namespace Rewired.Demos {
|
||||
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
using System.Collections;
|
||||
|
||||
[AddComponentMenu("")]
|
||||
public class ControlMapperDemoMessage : MonoBehaviour {
|
||||
|
||||
public Rewired.UI.ControlMapper.ControlMapper controlMapper;
|
||||
|
||||
public UnityEngine.UI.Selectable defaultSelectable;
|
||||
|
||||
void Awake() {
|
||||
if(controlMapper != null) {
|
||||
controlMapper.ScreenClosedEvent += OnControlMapperClosed;
|
||||
controlMapper.ScreenOpenedEvent += OnControlMapperOpened;
|
||||
}
|
||||
}
|
||||
|
||||
void Start() {
|
||||
SelectDefault();
|
||||
}
|
||||
|
||||
void OnControlMapperClosed() {
|
||||
this.gameObject.SetActive(true);
|
||||
StartCoroutine(SelectDefaultDeferred());
|
||||
}
|
||||
|
||||
void OnControlMapperOpened() {
|
||||
this.gameObject.SetActive(false);
|
||||
}
|
||||
|
||||
void SelectDefault() {
|
||||
if(EventSystem.current == null) return;
|
||||
if(defaultSelectable != null) EventSystem.current.SetSelectedGameObject(defaultSelectable.gameObject);
|
||||
}
|
||||
|
||||
IEnumerator SelectDefaultDeferred() {
|
||||
yield return null;
|
||||
SelectDefault();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 3d522437a28e26a419d3e5e5a84e2f7e
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
5
Assets/Control Mapper/Extras/ControlMapper/Images.meta
Normal file
5
Assets/Control Mapper/Extras/ControlMapper/Images.meta
Normal file
|
@ -0,0 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a694a995f97d1674dbedaa76ca47719e
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
userData:
|
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
|
@ -0,0 +1,47 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 7f4e5f9eac93c0a4ab5e638adf6b02e1
|
||||
TextureImporter:
|
||||
fileIDToRecycleName: {}
|
||||
serializedVersion: 2
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
linearTexture: 0
|
||||
correctGamma: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: .25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: -1
|
||||
maxTextureSize: 1024
|
||||
textureSettings:
|
||||
filterMode: -1
|
||||
aniso: 16
|
||||
mipBias: -1
|
||||
wrapMode: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 1
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: .5, y: .5}
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spritePixelsToUnits: 100
|
||||
alphaIsTransparency: 1
|
||||
textureType: 8
|
||||
buildTargetSettings: []
|
||||
spriteSheet:
|
||||
sprites: []
|
||||
spritePackingTag: RewiredControlMapper
|
||||
userData:
|
Binary file not shown.
After Width: | Height: | Size: 2.5 KiB |
|
@ -0,0 +1,47 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ec2db8ab6243b9545bbe7e137131b6c3
|
||||
TextureImporter:
|
||||
fileIDToRecycleName: {}
|
||||
serializedVersion: 2
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
linearTexture: 0
|
||||
correctGamma: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: .25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: -1
|
||||
maxTextureSize: 1024
|
||||
textureSettings:
|
||||
filterMode: -1
|
||||
aniso: 16
|
||||
mipBias: -1
|
||||
wrapMode: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 1
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: .5, y: .5}
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spritePixelsToUnits: 100
|
||||
alphaIsTransparency: 1
|
||||
textureType: 8
|
||||
buildTargetSettings: []
|
||||
spriteSheet:
|
||||
sprites: []
|
||||
spritePackingTag: RewiredControlMapper
|
||||
userData:
|
Binary file not shown.
After Width: | Height: | Size: 3.9 KiB |
|
@ -0,0 +1,47 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a734389a53a8a384888da1abcad1dd1f
|
||||
TextureImporter:
|
||||
fileIDToRecycleName: {}
|
||||
serializedVersion: 2
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
linearTexture: 0
|
||||
correctGamma: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: .25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: -1
|
||||
maxTextureSize: 1024
|
||||
textureSettings:
|
||||
filterMode: -1
|
||||
aniso: 16
|
||||
mipBias: -1
|
||||
wrapMode: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 1
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: .5, y: .5}
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spritePixelsToUnits: 100
|
||||
alphaIsTransparency: 1
|
||||
textureType: 8
|
||||
buildTargetSettings: []
|
||||
spriteSheet:
|
||||
sprites: []
|
||||
spritePackingTag: RewiredControlMapper
|
||||
userData:
|
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
|
@ -0,0 +1,47 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c084db22e43bd61499f3d42d7946ba31
|
||||
TextureImporter:
|
||||
fileIDToRecycleName: {}
|
||||
serializedVersion: 2
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
linearTexture: 0
|
||||
correctGamma: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: .25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: -1
|
||||
maxTextureSize: 1024
|
||||
textureSettings:
|
||||
filterMode: -1
|
||||
aniso: 16
|
||||
mipBias: -1
|
||||
wrapMode: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 1
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: .5, y: .5}
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spritePixelsToUnits: 100
|
||||
alphaIsTransparency: 1
|
||||
textureType: 8
|
||||
buildTargetSettings: []
|
||||
spriteSheet:
|
||||
sprites: []
|
||||
spritePackingTag: RewiredControlMapper
|
||||
userData:
|
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
|
@ -0,0 +1,47 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 0c9ce4e64fb83764aa394faeeed56210
|
||||
TextureImporter:
|
||||
fileIDToRecycleName: {}
|
||||
serializedVersion: 2
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
linearTexture: 0
|
||||
correctGamma: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: .25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: -1
|
||||
maxTextureSize: 1024
|
||||
textureSettings:
|
||||
filterMode: -1
|
||||
aniso: 16
|
||||
mipBias: -1
|
||||
wrapMode: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 1
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: .5, y: .5}
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spritePixelsToUnits: 100
|
||||
alphaIsTransparency: 1
|
||||
textureType: 8
|
||||
buildTargetSettings: []
|
||||
spriteSheet:
|
||||
sprites: []
|
||||
spritePackingTag: RewiredControlMapper
|
||||
userData:
|
BIN
Assets/Control Mapper/Extras/ControlMapper/Images/icon-mouse.png
Normal file
BIN
Assets/Control Mapper/Extras/ControlMapper/Images/icon-mouse.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
|
@ -0,0 +1,47 @@
|
|||
fileFormatVersion: 2
|
||||
guid: fc88ce24a47f4014cb0ad237abc8d1dd
|
||||
TextureImporter:
|
||||
fileIDToRecycleName: {}
|
||||
serializedVersion: 2
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
linearTexture: 0
|
||||
correctGamma: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: .25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: -1
|
||||
maxTextureSize: 1024
|
||||
textureSettings:
|
||||
filterMode: -1
|
||||
aniso: 16
|
||||
mipBias: -1
|
||||
wrapMode: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 1
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: .5, y: .5}
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spritePixelsToUnits: 100
|
||||
alphaIsTransparency: 1
|
||||
textureType: 8
|
||||
buildTargetSettings: []
|
||||
spriteSheet:
|
||||
sprites: []
|
||||
spritePackingTag: RewiredControlMapper
|
||||
userData:
|
|
@ -0,0 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e830dad4ecf38cb4ca0bc89628fd5d49
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
userData:
|
|
@ -0,0 +1,80 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: e240f552ac8b850498d8b7473de529bd, type: 3}
|
||||
m_Name: DefaultEnglish
|
||||
m_EditorClassIdentifier:
|
||||
_yes: Yes
|
||||
_no: No
|
||||
_add: Add
|
||||
_replace: Replace
|
||||
_remove: Remove
|
||||
_cancel: Cancel
|
||||
_none: None
|
||||
_okay: Okay
|
||||
_done: Done
|
||||
_default: Default
|
||||
_assignControllerWindowTitle: Choose Controller
|
||||
_assignControllerWindowMessage: Press any button or move an axis on the controller
|
||||
you would like to use.
|
||||
_controllerAssignmentConflictWindowTitle: Controller Assignment
|
||||
_controllerAssignmentConflictWindowMessage: '{0} is already assigned to {1}. Do
|
||||
you want to assign this controller to {2} instead?'
|
||||
_elementAssignmentPrePollingWindowMessage: First center or zero all sticks and axes
|
||||
and press any button or wait for the timer to finish.
|
||||
_joystickElementAssignmentPollingWindowMessage: Now press a button or move an axis
|
||||
to assign it to {0}.
|
||||
_keyboardElementAssignmentPollingWindowMessage: Press a key to assign it to {0}.
|
||||
Modifier keys may also be used. To assign a modifier key alone, hold it down for
|
||||
1 second.
|
||||
_mouseElementAssignmentPollingWindowMessage: Press a mouse button or move an axis
|
||||
to assign it to {0}.
|
||||
_elementAssignmentConflictWindowMessage: Assignment Conflict
|
||||
_elementAlreadyInUseBlocked: '{0} is already in use cannot be replaced.'
|
||||
_elementAlreadyInUseCanReplace: '{0} is already in use. Do you want to replace it?'
|
||||
_elementAlreadyInUseCanReplace_conflictAllowed: '{0} is already in use. Do you want
|
||||
to replace it? You may also choose to add the assignment anyway.'
|
||||
_mouseAssignmentConflictWindowTitle: Mouse Assignment
|
||||
_mouseAssignmentConflictWindowMessage: The mouse is already assigned to {0}. Do
|
||||
you want to assign the mouse to {1} instead?
|
||||
_calibrateControllerWindowTitle: Calibrate Controller
|
||||
_calibrateAxisStep1WindowTitle: Calibrate Zero
|
||||
_calibrateAxisStep1WindowMessage: Center or zero {0} and press any button or wait
|
||||
for the timer to finish.
|
||||
_calibrateAxisStep2WindowTitle: Calibrate Range
|
||||
_calibrateAxisStep2WindowMessage: Move {0} through its entire range then press any
|
||||
button or wait for the timer to finish.
|
||||
_inputBehaviorSettingsWindowTitle: Sensitivity Settings
|
||||
_restoreDefaultsWindowTitle: Restore Defaults
|
||||
_restoreDefaultsWindowMessage_onePlayer: This will restore the default input configuration.
|
||||
Are you sure you want to do this?
|
||||
_restoreDefaultsWindowMessage_multiPlayer: This will restore the default input configuration
|
||||
for all players. Are you sure you want to do this?
|
||||
_actionColumnLabel: Actions
|
||||
_keyboardColumnLabel: Keyboard
|
||||
_mouseColumnLabel: Mouse
|
||||
_controllerColumnLabel: Controller
|
||||
_removeControllerButtonLabel: Remove
|
||||
_calibrateControllerButtonLabel: Calibrate
|
||||
_assignControllerButtonLabel: Assign Controller
|
||||
_inputBehaviorSettingsButtonLabel: Sensitivity
|
||||
_doneButtonLabel: Done
|
||||
_restoreDefaultsButtonLabel: Restore Defaults
|
||||
_playersGroupLabel: 'Players:'
|
||||
_controllerSettingsGroupLabel: 'Controller:'
|
||||
_assignedControllersGroupLabel: 'Assigned Controllers:'
|
||||
_settingsGroupLabel: 'Settings:'
|
||||
_mapCategoriesGroupLabel: 'Categories:'
|
||||
_calibrateWindow_deadZoneSliderLabel: 'Dead Zone:'
|
||||
_calibrateWindow_zeroSliderLabel: 'Zero:'
|
||||
_calibrateWindow_sensitivitySliderLabel: 'Sensitivity:'
|
||||
_calibrateWindow_invertToggleLabel: Invert
|
||||
_calibrateWindow_calibrateButtonLabel: Calibrate
|
||||
_customEntries: []
|
|
@ -0,0 +1,4 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 2be3ae985e9faeb4b9dd3a1c915a3fc7
|
||||
NativeFormatImporter:
|
||||
userData:
|
5
Assets/Control Mapper/Extras/ControlMapper/Prefabs.meta
Normal file
5
Assets/Control Mapper/Extras/ControlMapper/Prefabs.meta
Normal file
|
@ -0,0 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 3b1ac3ec61d77f44998262e4e7bc7f4a
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
userData:
|
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,4 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 03b9a6db219d12e4f8ec2934e0c7e721
|
||||
NativeFormatImporter:
|
||||
userData:
|
|
@ -0,0 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 9d4c4f91c0f28bd44845a044b5057ee4
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
userData:
|
|
@ -0,0 +1,241 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &174586
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 22474586}
|
||||
- 222: {fileID: 22274586}
|
||||
- 114: {fileID: 11474586}
|
||||
m_Layer: 5
|
||||
m_Name: Text
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &174588
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 22474588}
|
||||
- 222: {fileID: 22274588}
|
||||
- 114: {fileID: 11474592}
|
||||
- 114: {fileID: 11483594}
|
||||
- 114: {fileID: 11485630}
|
||||
- 114: {fileID: 11474588}
|
||||
- 114: {fileID: 11471228}
|
||||
m_Layer: 5
|
||||
m_Name: AxisButton
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &11471228
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 174588}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: caf493bc378f92447a8a228821ba4eaf, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
_elements:
|
||||
- _themeClass:
|
||||
_component: {fileID: 11483594}
|
||||
- _themeClass: button
|
||||
_component: {fileID: 11474586}
|
||||
--- !u!114 &11474586
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 174586}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_FontData:
|
||||
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_FontSize: 15
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 0
|
||||
m_MinSize: 10
|
||||
m_MaxSize: 40
|
||||
m_Alignment: 4
|
||||
m_RichText: 1
|
||||
m_HorizontalOverflow: 0
|
||||
m_VerticalOverflow: 0
|
||||
m_LineSpacing: 1
|
||||
m_Text: Button
|
||||
--- !u!114 &11474588
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 174588}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 1679637790, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_IgnoreLayout: 0
|
||||
m_MinWidth: -1
|
||||
m_MinHeight: 40
|
||||
m_PreferredWidth: -1
|
||||
m_PreferredHeight: 40
|
||||
m_FlexibleWidth: -1
|
||||
m_FlexibleHeight: -1
|
||||
--- !u!114 &11474592
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 174588}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Type: 1
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
--- !u!114 &11483594
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 174588}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 6f3c86bd947a7414080a238779a33248, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Navigation:
|
||||
m_Mode: 3
|
||||
m_SelectOnUp: {fileID: 0}
|
||||
m_SelectOnDown: {fileID: 0}
|
||||
m_SelectOnLeft: {fileID: 0}
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 1
|
||||
m_Colors:
|
||||
m_NormalColor: {r: .300484419, g: .399280936, b: .458823532, a: 1}
|
||||
m_HighlightedColor: {r: 0, g: .419929147, b: .669117689, a: 1}
|
||||
m_PressedColor: {r: 0, g: .627586365, b: 1, a: 1}
|
||||
m_DisabledColor: {r: .140376776, g: .18981342, b: .219607845, a: 1}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: .100000001
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 0}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 11474592}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
|
||||
Culture=neutral, PublicKeyToken=null
|
||||
_disabledHighlightedSprite: {fileID: 0}
|
||||
_disabledHighlightedColor: {r: 0, g: .419929147, b: .669117689, a: .494117647}
|
||||
_disabledHighlightedTrigger:
|
||||
_autoNavUp: 1
|
||||
_autoNavDown: 1
|
||||
_autoNavLeft: 1
|
||||
_autoNavRight: 1
|
||||
--- !u!114 &11485630
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 174588}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: c357af2e3002c314992d9c9d2811dac5, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
useCustomEdgePadding: 0
|
||||
customEdgePadding: 50
|
||||
--- !u!222 &22274586
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 174586}
|
||||
--- !u!222 &22274588
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 174588}
|
||||
--- !u!224 &22474586
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 174586}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 22474588}
|
||||
m_RootOrder: 0
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: .5, y: .5}
|
||||
--- !u!224 &22474588
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 174588}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 22474586}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 1}
|
||||
--- !u!1001 &100100000
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 1
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications: []
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 174588}
|
||||
m_IsPrefabParent: 1
|
||||
m_IsExploded: 1
|
|
@ -0,0 +1,4 @@
|
|||
fileFormatVersion: 2
|
||||
guid: dccefe3d1d2b9d14e86eca57b9cc5307
|
||||
NativeFormatImporter:
|
||||
userData:
|
|
@ -0,0 +1,223 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &143108
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 22443108}
|
||||
- 222: {fileID: 22243108}
|
||||
- 114: {fileID: 11443102}
|
||||
m_Layer: 5
|
||||
m_Name: Text
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &143110
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 22443110}
|
||||
- 222: {fileID: 22243110}
|
||||
- 114: {fileID: 11443106}
|
||||
- 114: {fileID: 11420626}
|
||||
- 114: {fileID: 11443110}
|
||||
- 114: {fileID: 11498774}
|
||||
m_Layer: 5
|
||||
m_Name: Button
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &11420626
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 143110}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 6f3c86bd947a7414080a238779a33248, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Navigation:
|
||||
m_Mode: 3
|
||||
m_SelectOnUp: {fileID: 0}
|
||||
m_SelectOnDown: {fileID: 0}
|
||||
m_SelectOnLeft: {fileID: 0}
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 1
|
||||
m_Colors:
|
||||
m_NormalColor: {r: .300484419, g: .399280936, b: .458823532, a: 1}
|
||||
m_HighlightedColor: {r: 0, g: .419929147, b: .669117689, a: 1}
|
||||
m_PressedColor: {r: 0, g: .627586365, b: 1, a: 1}
|
||||
m_DisabledColor: {r: .140376776, g: .18981342, b: .219607845, a: 1}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: .100000001
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 0}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 11443106}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
|
||||
Culture=neutral, PublicKeyToken=null
|
||||
_disabledHighlightedSprite: {fileID: 0}
|
||||
_disabledHighlightedColor: {r: 0, g: .419929147, b: .669117689, a: .494117647}
|
||||
_disabledHighlightedTrigger:
|
||||
_autoNavUp: 1
|
||||
_autoNavDown: 1
|
||||
_autoNavLeft: 1
|
||||
_autoNavRight: 1
|
||||
--- !u!114 &11443102
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 143108}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_FontData:
|
||||
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_FontSize: 18
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 1
|
||||
m_MinSize: 8
|
||||
m_MaxSize: 18
|
||||
m_Alignment: 4
|
||||
m_RichText: 1
|
||||
m_HorizontalOverflow: 0
|
||||
m_VerticalOverflow: 0
|
||||
m_LineSpacing: 1
|
||||
m_Text: Button
|
||||
--- !u!114 &11443106
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 143110}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Type: 1
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
--- !u!114 &11443110
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 143110}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: dd0463b06a911144bb290fdd9fadedf6, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
identifier: None
|
||||
intData: 0
|
||||
text: {fileID: 11443102}
|
||||
--- !u!114 &11498774
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 143110}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: caf493bc378f92447a8a228821ba4eaf, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
_elements:
|
||||
- _themeClass:
|
||||
_component: {fileID: 11420626}
|
||||
- _themeClass: button
|
||||
_component: {fileID: 11443102}
|
||||
--- !u!222 &22243108
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 143108}
|
||||
--- !u!222 &22243110
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 143110}
|
||||
--- !u!224 &22443108
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 143108}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 22443110}
|
||||
m_RootOrder: 0
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: .5, y: .5}
|
||||
--- !u!224 &22443110
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 143110}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 22443108}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 150, y: 40}
|
||||
m_Pivot: {x: .5, y: .5}
|
||||
--- !u!1001 &100100000
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 1
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications: []
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 143110}
|
||||
m_IsPrefabParent: 1
|
||||
m_IsExploded: 1
|
|
@ -0,0 +1,4 @@
|
|||
fileFormatVersion: 2
|
||||
guid: f71e844abdb0e87458f73bf1ce75ee09
|
||||
NativeFormatImporter:
|
||||
userData:
|
|
@ -0,0 +1,75 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &115408
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 22415408}
|
||||
- 222: {fileID: 22215408}
|
||||
- 114: {fileID: 11415408}
|
||||
m_Layer: 5
|
||||
m_Name: CenterStickGraphic
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &11415408
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 115408}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_Sprite: {fileID: 21300000, guid: ec2db8ab6243b9545bbe7e137131b6c3, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
--- !u!222 &22215408
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 115408}
|
||||
--- !u!224 &22415408
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 115408}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_AnchorMin: {x: .5, y: .5}
|
||||
m_AnchorMax: {x: .5, y: .5}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 264, y: 126}
|
||||
m_Pivot: {x: .5, y: .5}
|
||||
--- !u!1001 &100100000
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 1
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications: []
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 115408}
|
||||
m_IsPrefabParent: 1
|
||||
m_IsExploded: 1
|
|
@ -0,0 +1,4 @@
|
|||
fileFormatVersion: 2
|
||||
guid: aeba11a7084ef414baffd3b727f50ad2
|
||||
NativeFormatImporter:
|
||||
userData:
|
|
@ -0,0 +1,109 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &187138
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 22487138}
|
||||
- 222: {fileID: 22287138}
|
||||
- 114: {fileID: 11487138}
|
||||
- 114: {fileID: 11479576}
|
||||
- 114: {fileID: 11410068}
|
||||
m_Layer: 5
|
||||
m_Name: ContentText
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &11410068
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 187138}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: caf493bc378f92447a8a228821ba4eaf, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
_elements:
|
||||
- _themeClass:
|
||||
_component: {fileID: 11487138}
|
||||
--- !u!114 &11479576
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 187138}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 1741964061, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_HorizontalFit: 0
|
||||
m_VerticalFit: 2
|
||||
--- !u!114 &11487138
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 187138}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_FontData:
|
||||
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_FontSize: 26
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 1
|
||||
m_MinSize: 10
|
||||
m_MaxSize: 26
|
||||
m_Alignment: 1
|
||||
m_RichText: 1
|
||||
m_HorizontalOverflow: 0
|
||||
m_VerticalOverflow: 0
|
||||
m_LineSpacing: 1
|
||||
m_Text: Content Text
|
||||
--- !u!222 &22287138
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 187138}
|
||||
--- !u!224 &22487138
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 187138}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: -70}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 1}
|
||||
--- !u!1001 &100100000
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 1
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications: []
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 187138}
|
||||
m_IsPrefabParent: 1
|
||||
m_IsExploded: 1
|
|
@ -0,0 +1,4 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 50862c6ce73c3dc4d988ad75d9de58ae
|
||||
NativeFormatImporter:
|
||||
userData:
|
|
@ -0,0 +1,75 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &178326
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 22478326}
|
||||
- 222: {fileID: 22278326}
|
||||
- 114: {fileID: 11478326}
|
||||
m_Layer: 5
|
||||
m_Name: Fader
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &11478326
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 178326}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0, g: 0, b: 0, a: .501960814}
|
||||
m_Sprite: {fileID: 0}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
--- !u!222 &22278326
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 178326}
|
||||
--- !u!224 &22478326
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 178326}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: .5, y: .5}
|
||||
--- !u!1001 &100100000
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 1
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications: []
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 178326}
|
||||
m_IsPrefabParent: 1
|
||||
m_IsExploded: 1
|
|
@ -0,0 +1,4 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 24fe236f96731dd4189a177bb71019c7
|
||||
NativeFormatImporter:
|
||||
userData:
|
|
@ -0,0 +1,244 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &143108
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 22443108}
|
||||
- 222: {fileID: 22243108}
|
||||
- 114: {fileID: 11443102}
|
||||
m_Layer: 5
|
||||
m_Name: Text
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &143110
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 22443110}
|
||||
- 222: {fileID: 22243110}
|
||||
- 114: {fileID: 11443106}
|
||||
- 114: {fileID: 11420626}
|
||||
- 114: {fileID: 11443104}
|
||||
- 114: {fileID: 11443110}
|
||||
- 114: {fileID: 11498774}
|
||||
m_Layer: 5
|
||||
m_Name: FitButton
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &11420626
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 143110}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 6f3c86bd947a7414080a238779a33248, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Navigation:
|
||||
m_Mode: 3
|
||||
m_SelectOnUp: {fileID: 0}
|
||||
m_SelectOnDown: {fileID: 0}
|
||||
m_SelectOnLeft: {fileID: 0}
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 1
|
||||
m_Colors:
|
||||
m_NormalColor: {r: .300484419, g: .399280936, b: .458823532, a: 1}
|
||||
m_HighlightedColor: {r: 0, g: .419929147, b: .669117689, a: 1}
|
||||
m_PressedColor: {r: 0, g: .627586365, b: 1, a: 1}
|
||||
m_DisabledColor: {r: .140376776, g: .18981342, b: .219607845, a: 1}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: .100000001
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 0}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 11443106}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
|
||||
Culture=neutral, PublicKeyToken=null
|
||||
_disabledHighlightedSprite: {fileID: 0}
|
||||
_disabledHighlightedColor: {r: 0, g: .419929147, b: .669117689, a: .494117647}
|
||||
_disabledHighlightedTrigger:
|
||||
_autoNavUp: 1
|
||||
_autoNavDown: 1
|
||||
_autoNavLeft: 1
|
||||
_autoNavRight: 1
|
||||
--- !u!114 &11443102
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 143108}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_FontData:
|
||||
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_FontSize: 18
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 0
|
||||
m_MinSize: 8
|
||||
m_MaxSize: 18
|
||||
m_Alignment: 4
|
||||
m_RichText: 1
|
||||
m_HorizontalOverflow: 0
|
||||
m_VerticalOverflow: 1
|
||||
m_LineSpacing: 1
|
||||
m_Text: Button
|
||||
--- !u!114 &11443104
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 143110}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -405508275, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Padding:
|
||||
m_Left: 20
|
||||
m_Right: 20
|
||||
m_Top: 0
|
||||
m_Bottom: 0
|
||||
m_ChildAlignment: 1
|
||||
m_Spacing: 0
|
||||
m_ChildForceExpandWidth: 0
|
||||
m_ChildForceExpandHeight: 1
|
||||
--- !u!114 &11443106
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 143110}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Type: 1
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
--- !u!114 &11443110
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 143110}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: dd0463b06a911144bb290fdd9fadedf6, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
identifier: None
|
||||
intData: 0
|
||||
text: {fileID: 11443102}
|
||||
--- !u!114 &11498774
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 143110}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: caf493bc378f92447a8a228821ba4eaf, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
_elements:
|
||||
- _themeClass:
|
||||
_component: {fileID: 11420626}
|
||||
- _themeClass: button
|
||||
_component: {fileID: 11443102}
|
||||
--- !u!222 &22243108
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 143108}
|
||||
--- !u!222 &22243110
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 143110}
|
||||
--- !u!224 &22443108
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 143108}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 22443110}
|
||||
m_RootOrder: 0
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: .5, y: .5}
|
||||
--- !u!224 &22443110
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 143110}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 22443108}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 150, y: 40}
|
||||
m_Pivot: {x: .5, y: .5}
|
||||
--- !u!1001 &100100000
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 1
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications: []
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 143110}
|
||||
m_IsPrefabParent: 1
|
||||
m_IsExploded: 1
|
|
@ -0,0 +1,4 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 758f91be5975d8842a43a078fec194f4
|
||||
NativeFormatImporter:
|
||||
userData:
|
|
@ -0,0 +1,277 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &143108
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 22443108}
|
||||
- 222: {fileID: 22243108}
|
||||
- 114: {fileID: 11443102}
|
||||
- 114: {fileID: 11445102}
|
||||
m_Layer: 5
|
||||
m_Name: Text
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &143110
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 22443110}
|
||||
- 222: {fileID: 22243110}
|
||||
- 114: {fileID: 11443106}
|
||||
- 114: {fileID: 11437632}
|
||||
- 114: {fileID: 11493180}
|
||||
- 114: {fileID: 11443104}
|
||||
- 114: {fileID: 11456230}
|
||||
- 114: {fileID: 11461988}
|
||||
m_Layer: 5
|
||||
m_Name: InputGridFieldButton
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &11437632
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 143110}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 6f3c86bd947a7414080a238779a33248, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Navigation:
|
||||
m_Mode: 3
|
||||
m_SelectOnUp: {fileID: 0}
|
||||
m_SelectOnDown: {fileID: 0}
|
||||
m_SelectOnLeft: {fileID: 0}
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 1
|
||||
m_Colors:
|
||||
m_NormalColor: {r: .300484419, g: .399280936, b: .458823532, a: 1}
|
||||
m_HighlightedColor: {r: 0, g: .419929147, b: .669117689, a: 1}
|
||||
m_PressedColor: {r: 0, g: .627586365, b: 1, a: 1}
|
||||
m_DisabledColor: {r: .140376776, g: .18981342, b: .219607845, a: 1}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: .100000001
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 0}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 11443106}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
|
||||
Culture=neutral, PublicKeyToken=null
|
||||
_disabledHighlightedSprite: {fileID: 0}
|
||||
_disabledHighlightedColor: {r: 0, g: .419929147, b: .669117689, a: .494117647}
|
||||
_disabledHighlightedTrigger:
|
||||
_autoNavUp: 1
|
||||
_autoNavDown: 1
|
||||
_autoNavLeft: 1
|
||||
_autoNavRight: 1
|
||||
--- !u!114 &11443102
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 143108}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_FontData:
|
||||
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_FontSize: 16
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 1
|
||||
m_MinSize: 8
|
||||
m_MaxSize: 16
|
||||
m_Alignment: 4
|
||||
m_RichText: 1
|
||||
m_HorizontalOverflow: 0
|
||||
m_VerticalOverflow: 0
|
||||
m_LineSpacing: 1
|
||||
m_Text: Button
|
||||
--- !u!114 &11443104
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 143110}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -405508275, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Padding:
|
||||
m_Left: 20
|
||||
m_Right: 20
|
||||
m_Top: 0
|
||||
m_Bottom: 0
|
||||
m_ChildAlignment: 0
|
||||
m_Spacing: 0
|
||||
m_ChildForceExpandWidth: 0
|
||||
m_ChildForceExpandHeight: 1
|
||||
--- !u!114 &11443106
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 143110}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Type: 1
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
--- !u!114 &11445102
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 143108}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 1679637790, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_IgnoreLayout: 0
|
||||
m_MinWidth: -1
|
||||
m_MinHeight: -1
|
||||
m_PreferredWidth: 200
|
||||
m_PreferredHeight: -1
|
||||
m_FlexibleWidth: -1
|
||||
m_FlexibleHeight: -1
|
||||
--- !u!114 &11456230
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 143110}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 3c119c127d72b1a43918619144949697, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
identifier:
|
||||
intData: 0
|
||||
text: {fileID: 11443102}
|
||||
--- !u!114 &11461988
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 143110}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: caf493bc378f92447a8a228821ba4eaf, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
_elements:
|
||||
- _themeClass: inputGridField
|
||||
_component: {fileID: 11437632}
|
||||
- _themeClass: inputGridField
|
||||
_component: {fileID: 11443102}
|
||||
--- !u!114 &11493180
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 143110}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: c357af2e3002c314992d9c9d2811dac5, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
useCustomEdgePadding: 0
|
||||
customEdgePadding: 50
|
||||
--- !u!222 &22243108
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 143108}
|
||||
--- !u!222 &22243110
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 143110}
|
||||
--- !u!224 &22443108
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 143108}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 22443110}
|
||||
m_RootOrder: 0
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: .5, y: .5}
|
||||
--- !u!224 &22443110
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 143110}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 22443108}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 40}
|
||||
m_Pivot: {x: 0, y: 1}
|
||||
--- !u!1001 &100100000
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 1
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications: []
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 143110}
|
||||
m_IsPrefabParent: 1
|
||||
m_IsExploded: 1
|
|
@ -0,0 +1,4 @@
|
|||
fileFormatVersion: 2
|
||||
guid: afbefb47f672f4c488150a435dfe5013
|
||||
NativeFormatImporter:
|
||||
userData:
|
|
@ -0,0 +1,341 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &142742
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 22442742}
|
||||
- 222: {fileID: 22242742}
|
||||
- 114: {fileID: 11442744}
|
||||
- 114: {fileID: 11442742}
|
||||
m_Layer: 5
|
||||
m_Name: Checkmark
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &142744
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 22442744}
|
||||
- 222: {fileID: 22242744}
|
||||
- 114: {fileID: 11442746}
|
||||
- 114: {fileID: 11430488}
|
||||
m_Layer: 5
|
||||
m_Name: Background
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &142746
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 22442746}
|
||||
- 114: {fileID: 11496952}
|
||||
- 114: {fileID: 11455030}
|
||||
- 114: {fileID: 11403018}
|
||||
- 114: {fileID: 11481094}
|
||||
- 114: {fileID: 11480584}
|
||||
m_Layer: 5
|
||||
m_Name: InputGridFieldInvertToggle
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &11403018
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 142746}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: e7caacab17a8ea349a0d4d47c7f1d923, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
identifier:
|
||||
intData: 0
|
||||
text: {fileID: 0}
|
||||
--- !u!114 &11430488
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 142744}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 1679637790, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_IgnoreLayout: 0
|
||||
m_MinWidth: -1
|
||||
m_MinHeight: -1
|
||||
m_PreferredWidth: 40
|
||||
m_PreferredHeight: -1
|
||||
m_FlexibleWidth: -1
|
||||
m_FlexibleHeight: -1
|
||||
--- !u!114 &11442742
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 142742}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 5ee15fd4a916c224db6e6389a7119709, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
enabledState:
|
||||
color: {r: 1, g: 1, b: 1, a: 1}
|
||||
disabledState:
|
||||
color: {r: .0551480204, g: .0745695606, b: .0862745121, a: 1}
|
||||
--- !u!114 &11442744
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 142742}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: .0551480204, g: .0745695606, b: .0862745121, a: 1}
|
||||
m_Sprite: {fileID: 21300000, guid: c084db22e43bd61499f3d42d7946ba31, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
--- !u!114 &11442746
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 142744}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Type: 1
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
--- !u!114 &11455030
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 142746}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: c357af2e3002c314992d9c9d2811dac5, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
useCustomEdgePadding: 0
|
||||
customEdgePadding: 50
|
||||
--- !u!114 &11480584
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 142746}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: caf493bc378f92447a8a228821ba4eaf, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
_elements:
|
||||
- _themeClass:
|
||||
_component: {fileID: 11496952}
|
||||
- _themeClass:
|
||||
_component: {fileID: 11442744}
|
||||
- _themeClass: invertToggle
|
||||
_component: {fileID: 11442742}
|
||||
- _themeClass: invertToggleBackground
|
||||
_component: {fileID: 11442746}
|
||||
--- !u!114 &11481094
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 142746}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -405508275, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Padding:
|
||||
m_Left: 0
|
||||
m_Right: 0
|
||||
m_Top: 0
|
||||
m_Bottom: 0
|
||||
m_ChildAlignment: 0
|
||||
m_Spacing: 0
|
||||
m_ChildForceExpandWidth: 1
|
||||
m_ChildForceExpandHeight: 1
|
||||
--- !u!114 &11496952
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 142746}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 8a88ff81c0189fb49a20062465f1ce37, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Navigation:
|
||||
m_Mode: 3
|
||||
m_SelectOnUp: {fileID: 0}
|
||||
m_SelectOnDown: {fileID: 0}
|
||||
m_SelectOnLeft: {fileID: 0}
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 1
|
||||
m_Colors:
|
||||
m_NormalColor: {r: .300484419, g: .399280936, b: .458823532, a: 1}
|
||||
m_HighlightedColor: {r: 0, g: .419929147, b: .669117689, a: 1}
|
||||
m_PressedColor: {r: 0, g: .627586365, b: 1, a: 1}
|
||||
m_DisabledColor: {r: .140376776, g: .18981342, b: .219607845, a: 1}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: .100000001
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 0}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 11442746}
|
||||
toggleTransition: 1
|
||||
graphic: {fileID: 0}
|
||||
m_Group: {fileID: 0}
|
||||
onValueChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls:
|
||||
- m_Target: {fileID: 11442742}
|
||||
m_MethodName: SetEnabledState
|
||||
m_Mode: 0
|
||||
m_Arguments:
|
||||
m_ObjectArgument: {fileID: 0}
|
||||
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine, Version=0.0.0.0,
|
||||
Culture=neutral, PublicKeyToken=null
|
||||
m_IntArgument: 0
|
||||
m_FloatArgument: 0
|
||||
m_StringArgument:
|
||||
m_BoolArgument: 0
|
||||
m_CallState: 2
|
||||
m_TypeName: UnityEngine.UI.Toggle+ToggleEvent, UnityEngine.UI, Version=1.0.0.0,
|
||||
Culture=neutral, PublicKeyToken=null
|
||||
m_IsOn: 0
|
||||
_disabledHighlightedSprite: {fileID: 0}
|
||||
_disabledHighlightedColor: {r: 0, g: .419929147, b: .669117689, a: .494117647}
|
||||
_disabledHighlightedTrigger:
|
||||
_autoNavUp: 1
|
||||
_autoNavDown: 1
|
||||
_autoNavLeft: 1
|
||||
_autoNavRight: 1
|
||||
--- !u!222 &22242742
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 142742}
|
||||
--- !u!222 &22242744
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 142744}
|
||||
--- !u!224 &22442742
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 142742}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 22442744}
|
||||
m_RootOrder: 0
|
||||
m_AnchorMin: {x: .5, y: .5}
|
||||
m_AnchorMax: {x: .5, y: .5}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 20, y: 20}
|
||||
m_Pivot: {x: .5, y: .5}
|
||||
--- !u!224 &22442744
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 142744}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 22442742}
|
||||
m_Father: {fileID: 22442746}
|
||||
m_RootOrder: 0
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: .5, y: .5}
|
||||
--- !u!224 &22442746
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 142746}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 22442744}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 40}
|
||||
m_Pivot: {x: 0, y: 1}
|
||||
--- !u!1001 &100100000
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 1
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications: []
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 142746}
|
||||
m_IsPrefabParent: 1
|
||||
m_IsExploded: 1
|
|
@ -0,0 +1,4 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a183756d778416d4d885ecf041d1acda
|
||||
NativeFormatImporter:
|
||||
userData:
|
|
@ -0,0 +1,95 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &190600
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 22490600}
|
||||
- 222: {fileID: 22290600}
|
||||
- 114: {fileID: 11490600}
|
||||
- 114: {fileID: 11437868}
|
||||
m_Layer: 5
|
||||
m_Name: InputGridHeaderLabel
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &11437868
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 190600}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: caf493bc378f92447a8a228821ba4eaf, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
_elements:
|
||||
- _themeClass:
|
||||
_component: {fileID: 11490600}
|
||||
--- !u!114 &11490600
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 190600}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_FontData:
|
||||
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_FontSize: 24
|
||||
m_FontStyle: 1
|
||||
m_BestFit: 1
|
||||
m_MinSize: 8
|
||||
m_MaxSize: 24
|
||||
m_Alignment: 3
|
||||
m_RichText: 1
|
||||
m_HorizontalOverflow: 0
|
||||
m_VerticalOverflow: 0
|
||||
m_LineSpacing: 1
|
||||
m_Text: Label
|
||||
--- !u!222 &22290600
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 190600}
|
||||
--- !u!224 &22490600
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 190600}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 1}
|
||||
--- !u!1001 &100100000
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 1
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications: []
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 190600}
|
||||
m_IsPrefabParent: 1
|
||||
m_IsExploded: 1
|
|
@ -0,0 +1,4 @@
|
|||
fileFormatVersion: 2
|
||||
guid: da3d4a59e237f72498b31e02d8f9f733
|
||||
NativeFormatImporter:
|
||||
userData:
|
|
@ -0,0 +1,95 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &190600
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 22490600}
|
||||
- 222: {fileID: 22290600}
|
||||
- 114: {fileID: 11490600}
|
||||
- 114: {fileID: 11437328}
|
||||
m_Layer: 5
|
||||
m_Name: InputGridLabel
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &11437328
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 190600}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: caf493bc378f92447a8a228821ba4eaf, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
_elements:
|
||||
- _themeClass:
|
||||
_component: {fileID: 11490600}
|
||||
--- !u!114 &11490600
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 190600}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_FontData:
|
||||
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_FontSize: 18
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 1
|
||||
m_MinSize: 8
|
||||
m_MaxSize: 18
|
||||
m_Alignment: 3
|
||||
m_RichText: 1
|
||||
m_HorizontalOverflow: 0
|
||||
m_VerticalOverflow: 0
|
||||
m_LineSpacing: 1
|
||||
m_Text: Label
|
||||
--- !u!222 &22290600
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 190600}
|
||||
--- !u!224 &22490600
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 190600}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 40}
|
||||
m_Pivot: {x: 0, y: 1}
|
||||
--- !u!1001 &100100000
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 1
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications: []
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 190600}
|
||||
m_IsPrefabParent: 1
|
||||
m_IsExploded: 1
|
|
@ -0,0 +1,4 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 1814d9153fc43ff478f555945e287f39
|
||||
NativeFormatImporter:
|
||||
userData:
|
|
@ -0,0 +1,75 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &194384
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 22494384}
|
||||
- 222: {fileID: 22294384}
|
||||
- 114: {fileID: 11494384}
|
||||
m_Layer: 5
|
||||
m_Name: MoveStickGraphic
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &11494384
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 194384}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_Sprite: {fileID: 21300000, guid: a734389a53a8a384888da1abcad1dd1f, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
--- !u!222 &22294384
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 194384}
|
||||
--- !u!224 &22494384
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 194384}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_AnchorMin: {x: .5, y: .5}
|
||||
m_AnchorMax: {x: .5, y: .5}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 264, y: 126}
|
||||
m_Pivot: {x: .5, y: .5}
|
||||
--- !u!1001 &100100000
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 1
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications: []
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 194384}
|
||||
m_IsPrefabParent: 1
|
||||
m_IsExploded: 1
|
|
@ -0,0 +1,4 @@
|
|||
fileFormatVersion: 2
|
||||
guid: b633b9499355c8d44b2d5b99832f1790
|
||||
NativeFormatImporter:
|
||||
userData:
|
|
@ -0,0 +1,95 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &139440
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 22439440}
|
||||
- 222: {fileID: 22239440}
|
||||
- 114: {fileID: 11439440}
|
||||
- 114: {fileID: 11425068}
|
||||
m_Layer: 5
|
||||
m_Name: TitleText
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &11425068
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 139440}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: caf493bc378f92447a8a228821ba4eaf, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
_elements:
|
||||
- _themeClass:
|
||||
_component: {fileID: 11439440}
|
||||
--- !u!114 &11439440
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 139440}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_FontData:
|
||||
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_FontSize: 30
|
||||
m_FontStyle: 1
|
||||
m_BestFit: 1
|
||||
m_MinSize: 10
|
||||
m_MaxSize: 30
|
||||
m_Alignment: 4
|
||||
m_RichText: 1
|
||||
m_HorizontalOverflow: 0
|
||||
m_VerticalOverflow: 0
|
||||
m_LineSpacing: 1
|
||||
m_Text: Title
|
||||
--- !u!222 &22239440
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 139440}
|
||||
--- !u!224 &22439440
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 139440}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 50}
|
||||
m_Pivot: {x: 0, y: 1}
|
||||
--- !u!1001 &100100000
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 1
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications: []
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 139440}
|
||||
m_IsPrefabParent: 1
|
||||
m_IsExploded: 1
|
|
@ -0,0 +1,4 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 518aee9201d061d49aa25a25483697f9
|
||||
NativeFormatImporter:
|
||||
userData:
|
|
@ -0,0 +1,181 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &106688
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 22406688}
|
||||
- 222: {fileID: 22206690}
|
||||
- 114: {fileID: 11406682}
|
||||
- 114: {fileID: 11406684}
|
||||
- 114: {fileID: 11406686}
|
||||
m_Layer: 5
|
||||
m_Name: Title
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &106690
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 22406690}
|
||||
- 114: {fileID: 11406690}
|
||||
- 114: {fileID: 11406688}
|
||||
m_Layer: 5
|
||||
m_Name: UIControlSet
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &11406682
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 106688}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_FontData:
|
||||
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_FontSize: 20
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 0
|
||||
m_MinSize: 10
|
||||
m_MaxSize: 40
|
||||
m_Alignment: 0
|
||||
m_RichText: 1
|
||||
m_HorizontalOverflow: 0
|
||||
m_VerticalOverflow: 1
|
||||
m_LineSpacing: 1
|
||||
m_Text: Look Sensitivity
|
||||
--- !u!114 &11406684
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 106688}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: caf493bc378f92447a8a228821ba4eaf, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
_elements:
|
||||
- _themeClass:
|
||||
_component: {fileID: 11406682}
|
||||
--- !u!114 &11406686
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 106688}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 1679637790, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_IgnoreLayout: 0
|
||||
m_MinWidth: -1
|
||||
m_MinHeight: 25
|
||||
m_PreferredWidth: -1
|
||||
m_PreferredHeight: -1
|
||||
m_FlexibleWidth: -1
|
||||
m_FlexibleHeight: 0
|
||||
--- !u!114 &11406688
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 106690}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 1297475563, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Padding:
|
||||
m_Left: 0
|
||||
m_Right: 0
|
||||
m_Top: 0
|
||||
m_Bottom: 0
|
||||
m_ChildAlignment: 0
|
||||
m_Spacing: 10
|
||||
m_ChildForceExpandWidth: 1
|
||||
m_ChildForceExpandHeight: 0
|
||||
--- !u!114 &11406690
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 106690}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 8440a2f4f56c1b441813c53be6341e58, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
title: {fileID: 11406682}
|
||||
--- !u!222 &22206690
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 106688}
|
||||
--- !u!224 &22406688
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 106688}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 22406690}
|
||||
m_RootOrder: 0
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 1}
|
||||
--- !u!224 &22406690
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 106690}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 22406688}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 1}
|
||||
--- !u!1001 &100100000
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 1
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications: []
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 106690}
|
||||
m_IsPrefabParent: 1
|
||||
m_IsExploded: 1
|
|
@ -0,0 +1,4 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 47fb4e1b0f1159042ac032a510a3b81a
|
||||
NativeFormatImporter:
|
||||
userData:
|
|
@ -0,0 +1,690 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &116140
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 22416140}
|
||||
- 222: {fileID: 22216140}
|
||||
- 114: {fileID: 11416144}
|
||||
- 114: {fileID: 11416142}
|
||||
m_Layer: 5
|
||||
m_Name: Icon
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &116142
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 22416142}
|
||||
- 114: {fileID: 11416140}
|
||||
- 114: {fileID: 11463176}
|
||||
m_Layer: 5
|
||||
m_Name: UISliderControl
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &116144
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 22416144}
|
||||
- 114: {fileID: 11427558}
|
||||
- 114: {fileID: 11416150}
|
||||
- 114: {fileID: 11416148}
|
||||
- 114: {fileID: 11427560}
|
||||
m_Layer: 5
|
||||
m_Name: Slider
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &116146
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 22416146}
|
||||
- 222: {fileID: 22216142}
|
||||
- 114: {fileID: 11416156}
|
||||
m_Layer: 5
|
||||
m_Name: Fill
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &116148
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 22416148}
|
||||
m_Layer: 5
|
||||
m_Name: Handle Slide Area
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &116150
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 22416150}
|
||||
- 222: {fileID: 22216144}
|
||||
- 114: {fileID: 11416158}
|
||||
m_Layer: 5
|
||||
m_Name: Background
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &116152
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 22416152}
|
||||
m_Layer: 5
|
||||
m_Name: Fill Area
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &116154
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 22416154}
|
||||
- 222: {fileID: 22216146}
|
||||
- 114: {fileID: 11416160}
|
||||
m_Layer: 5
|
||||
m_Name: Handle
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &163176
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 22463176}
|
||||
- 114: {fileID: 11463178}
|
||||
m_Layer: 5
|
||||
m_Name: HorizontalLayout
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &163178
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 22463178}
|
||||
- 222: {fileID: 22263176}
|
||||
- 114: {fileID: 11463180}
|
||||
- 114: {fileID: 11443126}
|
||||
m_Layer: 5
|
||||
m_Name: Title
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &11416140
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 116142}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: a64895c80f33d2345837b43e3dd26acc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
title: {fileID: 11463180}
|
||||
iconImage: {fileID: 11416144}
|
||||
slider: {fileID: 11427558}
|
||||
--- !u!114 &11416142
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 116140}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 1679637790, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_IgnoreLayout: 0
|
||||
m_MinWidth: -1
|
||||
m_MinHeight: -1
|
||||
m_PreferredWidth: 40
|
||||
m_PreferredHeight: 40
|
||||
m_FlexibleWidth: 0
|
||||
m_FlexibleHeight: 0
|
||||
--- !u!114 &11416144
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 116140}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_Sprite: {fileID: 0}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 1
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
--- !u!114 &11416148
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 116144}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 1679637790, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_IgnoreLayout: 0
|
||||
m_MinWidth: -1
|
||||
m_MinHeight: 30
|
||||
m_PreferredWidth: -1
|
||||
m_PreferredHeight: -1
|
||||
m_FlexibleWidth: 1
|
||||
m_FlexibleHeight: 0
|
||||
--- !u!114 &11416150
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 116144}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: caf493bc378f92447a8a228821ba4eaf, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
_elements:
|
||||
- _themeClass:
|
||||
_component: {fileID: 11427558}
|
||||
- _themeClass: guiControlBackgroundColor
|
||||
_component: {fileID: 0}
|
||||
--- !u!114 &11416156
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 116146}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: .300484419, g: .399280936, b: .458823532, a: 1}
|
||||
m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Type: 1
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
--- !u!114 &11416158
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 116150}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: .140376776, g: .18981342, b: .219607845, a: 1}
|
||||
m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Type: 1
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
--- !u!114 &11416160
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 116154}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_Sprite: {fileID: 10913, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
--- !u!114 &11427558
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 116144}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: e53a7baa30e8cd345b7e6f4ea659452f, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Navigation:
|
||||
m_Mode: 2
|
||||
m_SelectOnUp: {fileID: 0}
|
||||
m_SelectOnDown: {fileID: 0}
|
||||
m_SelectOnLeft: {fileID: 0}
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 1
|
||||
m_Colors:
|
||||
m_NormalColor: {r: .300484419, g: .399280936, b: .458823532, a: 1}
|
||||
m_HighlightedColor: {r: 0, g: .419929147, b: .669117689, a: 1}
|
||||
m_PressedColor: {r: 0, g: .627586365, b: 1, a: 1}
|
||||
m_DisabledColor: {r: .140376776, g: .18981342, b: .219607845, a: 1}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: .100000001
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 0}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 11416160}
|
||||
m_FillRect: {fileID: 22416146}
|
||||
m_HandleRect: {fileID: 22416154}
|
||||
m_Direction: 0
|
||||
m_MinValue: 0
|
||||
m_MaxValue: 1
|
||||
m_WholeNumbers: 0
|
||||
m_Value: .5
|
||||
m_OnValueChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.Slider+SliderEvent, UnityEngine.UI, Version=1.0.0.0,
|
||||
Culture=neutral, PublicKeyToken=null
|
||||
_disabledHighlightedSprite: {fileID: 0}
|
||||
_disabledHighlightedColor: {r: 0, g: .419929147, b: .669117689, a: .494117647}
|
||||
_disabledHighlightedTrigger:
|
||||
_autoNavUp: 1
|
||||
_autoNavDown: 1
|
||||
_autoNavLeft: 0
|
||||
_autoNavRight: 0
|
||||
--- !u!114 &11427560
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 116144}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: c357af2e3002c314992d9c9d2811dac5, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
useCustomEdgePadding: 1
|
||||
customEdgePadding: 60
|
||||
--- !u!114 &11443126
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 163178}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: caf493bc378f92447a8a228821ba4eaf, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
_elements:
|
||||
- _themeClass:
|
||||
_component: {fileID: 11463180}
|
||||
--- !u!114 &11463176
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 116142}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 1297475563, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Padding:
|
||||
m_Left: 0
|
||||
m_Right: 0
|
||||
m_Top: 0
|
||||
m_Bottom: 0
|
||||
m_ChildAlignment: 0
|
||||
m_Spacing: 10
|
||||
m_ChildForceExpandWidth: 1
|
||||
m_ChildForceExpandHeight: 1
|
||||
--- !u!114 &11463178
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 163176}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -405508275, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Padding:
|
||||
m_Left: 0
|
||||
m_Right: 0
|
||||
m_Top: 0
|
||||
m_Bottom: 0
|
||||
m_ChildAlignment: 4
|
||||
m_Spacing: 20
|
||||
m_ChildForceExpandWidth: 0
|
||||
m_ChildForceExpandHeight: 0
|
||||
--- !u!114 &11463180
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 163178}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_FontData:
|
||||
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_FontSize: 18
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 0
|
||||
m_MinSize: 10
|
||||
m_MaxSize: 40
|
||||
m_Alignment: 0
|
||||
m_RichText: 1
|
||||
m_HorizontalOverflow: 0
|
||||
m_VerticalOverflow: 0
|
||||
m_LineSpacing: 1
|
||||
m_Text: Title
|
||||
--- !u!222 &22216140
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 116140}
|
||||
--- !u!222 &22216142
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 116146}
|
||||
--- !u!222 &22216144
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 116150}
|
||||
--- !u!222 &22216146
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 116154}
|
||||
--- !u!222 &22263176
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 163178}
|
||||
--- !u!224 &22416140
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 116140}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 22463176}
|
||||
m_RootOrder: 0
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: .5, y: .5}
|
||||
--- !u!224 &22416142
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 116142}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 22463178}
|
||||
- {fileID: 22463176}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: .5, y: .5}
|
||||
--- !u!224 &22416144
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 116144}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 22416150}
|
||||
- {fileID: 22416152}
|
||||
- {fileID: 22416148}
|
||||
m_Father: {fileID: 22463176}
|
||||
m_RootOrder: 1
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 0}
|
||||
--- !u!224 &22416146
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 116146}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 22416152}
|
||||
m_RootOrder: 0
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 10, y: 0}
|
||||
m_Pivot: {x: .5, y: .5}
|
||||
--- !u!224 &22416148
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 116148}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 22416154}
|
||||
m_Father: {fileID: 22416144}
|
||||
m_RootOrder: 2
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: -20, y: 0}
|
||||
m_Pivot: {x: .5, y: .5}
|
||||
--- !u!224 &22416150
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 116150}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 22416144}
|
||||
m_RootOrder: 0
|
||||
m_AnchorMin: {x: 0, y: .25}
|
||||
m_AnchorMax: {x: 1, y: .75}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: .5, y: .5}
|
||||
--- !u!224 &22416152
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 116152}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 22416146}
|
||||
m_Father: {fileID: 22416144}
|
||||
m_RootOrder: 1
|
||||
m_AnchorMin: {x: 0, y: .25}
|
||||
m_AnchorMax: {x: 1, y: .75}
|
||||
m_AnchoredPosition: {x: -5, y: 0}
|
||||
m_SizeDelta: {x: -20, y: 0}
|
||||
m_Pivot: {x: .5, y: .5}
|
||||
--- !u!224 &22416154
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 116154}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 22416148}
|
||||
m_RootOrder: 0
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 30, y: 0}
|
||||
m_Pivot: {x: .5, y: .5}
|
||||
--- !u!224 &22463176
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 163176}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 22416140}
|
||||
- {fileID: 22416144}
|
||||
m_Father: {fileID: 22416142}
|
||||
m_RootOrder: 1
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: .5, y: .5}
|
||||
--- !u!224 &22463178
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 163178}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 22416142}
|
||||
m_RootOrder: 0
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: .5, y: .5}
|
||||
--- !u!1001 &100100000
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 1
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications: []
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 116142}
|
||||
m_IsPrefabParent: 1
|
||||
m_IsExploded: 1
|
|
@ -0,0 +1,4 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 31c5c2ae2cefb724180d371f82059183
|
||||
NativeFormatImporter:
|
||||
userData:
|
|
@ -0,0 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 10dbeb61dd22cf448a8e55e563b086ad
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
userData:
|
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,4 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 38d33a94cb0d1e74c87c949cc4554f33
|
||||
NativeFormatImporter:
|
||||
userData:
|
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,4 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 981cd43603172924c95b6c4ef0a81a7d
|
||||
NativeFormatImporter:
|
||||
userData:
|
|
@ -0,0 +1,182 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &194266
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 22494266}
|
||||
- 222: {fileID: 22294270}
|
||||
- 114: {fileID: 11494268}
|
||||
- 114: {fileID: 11440684}
|
||||
m_Layer: 5
|
||||
m_Name: Panel
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &194268
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 22494268}
|
||||
- 225: {fileID: 22524224}
|
||||
- 114: {fileID: 11494270}
|
||||
m_Layer: 5
|
||||
m_Name: Window
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &194270
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 22494270}
|
||||
m_Layer: 5
|
||||
m_Name: Content
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &11440684
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 194266}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: caf493bc378f92447a8a228821ba4eaf, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
_elements:
|
||||
- _themeClass: popupWindow
|
||||
_component: {fileID: 11494268}
|
||||
--- !u!114 &11494268
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 194266}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: .140376776, g: .18981342, b: .219607845, a: 1}
|
||||
m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Type: 1
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
--- !u!114 &11494270
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 194268}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 56c9e2756f6b40c8b89e4abff4ff190d, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
backgroundImage: {fileID: 11494268}
|
||||
content: {fileID: 194270}
|
||||
--- !u!222 &22294270
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 194266}
|
||||
--- !u!224 &22494266
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 194266}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 22494268}
|
||||
m_RootOrder: 0
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: .5, y: .5}
|
||||
--- !u!224 &22494268
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 194268}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 22494266}
|
||||
- {fileID: 22494270}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_AnchorMin: {x: .5, y: .5}
|
||||
m_AnchorMax: {x: .5, y: .5}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 500, y: 400}
|
||||
m_Pivot: {x: .5, y: .5}
|
||||
--- !u!224 &22494270
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 194270}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 22494268}
|
||||
m_RootOrder: 1
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 5}
|
||||
m_SizeDelta: {x: -40, y: -30}
|
||||
m_Pivot: {x: .5, y: .5}
|
||||
--- !u!225 &22524224
|
||||
CanvasGroup:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 194268}
|
||||
m_Enabled: 1
|
||||
m_Alpha: 1
|
||||
m_Interactable: 1
|
||||
m_BlocksRaycasts: 1
|
||||
m_IgnoreParentGroups: 0
|
||||
--- !u!1001 &100100000
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 1
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications: []
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 194268}
|
||||
m_IsPrefabParent: 1
|
||||
m_IsExploded: 1
|
|
@ -0,0 +1,4 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e3a57c68883dca4408b56577d0a4d600
|
||||
NativeFormatImporter:
|
||||
userData:
|
5
Assets/Control Mapper/Extras/ControlMapper/Scripts.meta
Normal file
5
Assets/Control Mapper/Extras/ControlMapper/Scripts.meta
Normal file
|
@ -0,0 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: d8d82d6f384466c458e2ded1432df36e
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
userData:
|
|
@ -0,0 +1,14 @@
|
|||
// Copyright (c) 2015 Augie R. Maddox, Guavaman Enterprises. All rights reserved.
|
||||
#pragma warning disable 0219
|
||||
#pragma warning disable 0618
|
||||
#pragma warning disable 0649
|
||||
|
||||
namespace Rewired.UI.ControlMapper {
|
||||
|
||||
using UnityEngine;
|
||||
|
||||
[AddComponentMenu("")]
|
||||
public class ButtonInfo : UIElementInfo {
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: dd0463b06a911144bb290fdd9fadedf6
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
|
@ -0,0 +1,472 @@
|
|||
// Copyright (c) 2015 Augie R. Maddox, Guavaman Enterprises. All rights reserved.
|
||||
#pragma warning disable 0219
|
||||
#pragma warning disable 0618
|
||||
#pragma warning disable 0649
|
||||
|
||||
namespace Rewired.UI.ControlMapper {
|
||||
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using System.Collections.Generic;
|
||||
using Rewired;
|
||||
using Rewired.Utils;
|
||||
using Rewired.Integration.UnityUI;
|
||||
|
||||
[AddComponentMenu("")]
|
||||
public class CalibrationWindow : Window {
|
||||
|
||||
private const float minSensitivityOtherAxes = 0.1f; // used for non-menu axes, min value to prevent axis from becoming useless
|
||||
private const float maxDeadzone = 0.8f; // max dead zone value user is allowed to set to prevent full axis from becoming useless
|
||||
|
||||
[SerializeField]
|
||||
private RectTransform rightContentContainer;
|
||||
[SerializeField]
|
||||
private RectTransform valueDisplayGroup;
|
||||
[SerializeField]
|
||||
private RectTransform calibratedValueMarker;
|
||||
[SerializeField]
|
||||
private RectTransform rawValueMarker;
|
||||
[SerializeField]
|
||||
private RectTransform calibratedZeroMarker;
|
||||
[SerializeField]
|
||||
private RectTransform deadzoneArea;
|
||||
[SerializeField]
|
||||
private Slider deadzoneSlider;
|
||||
[SerializeField]
|
||||
private Slider zeroSlider;
|
||||
[SerializeField]
|
||||
private Slider sensitivitySlider;
|
||||
[SerializeField]
|
||||
private Toggle invertToggle;
|
||||
[SerializeField]
|
||||
private RectTransform axisScrollAreaContent;
|
||||
[SerializeField]
|
||||
private Button doneButton;
|
||||
[SerializeField]
|
||||
private Button calibrateButton;
|
||||
[SerializeField]
|
||||
private Text doneButtonLabel;
|
||||
[SerializeField]
|
||||
private Text cancelButtonLabel;
|
||||
[SerializeField]
|
||||
private Text defaultButtonLabel;
|
||||
[SerializeField]
|
||||
private Text deadzoneSliderLabel;
|
||||
[SerializeField]
|
||||
private Text zeroSliderLabel;
|
||||
[SerializeField]
|
||||
private Text sensitivitySliderLabel;
|
||||
[SerializeField]
|
||||
private Text invertToggleLabel;
|
||||
[SerializeField]
|
||||
private Text calibrateButtonLabel;
|
||||
|
||||
[SerializeField]
|
||||
private GameObject axisButtonPrefab;
|
||||
|
||||
private Joystick joystick;
|
||||
|
||||
private string origCalibrationData;
|
||||
private int selectedAxis = -1;
|
||||
private AxisCalibrationData origSelectedAxisCalibrationData;
|
||||
private float displayAreaWidth;
|
||||
private List<Button> axisButtons;
|
||||
|
||||
private bool axisSelected {
|
||||
get {
|
||||
if(joystick == null) return false;
|
||||
if(selectedAxis < 0 || selectedAxis >= joystick.calibrationMap.axisCount) return false;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
private AxisCalibration axisCalibration {
|
||||
get {
|
||||
if(!axisSelected) return null;
|
||||
return joystick.calibrationMap.GetAxis(selectedAxis);
|
||||
}
|
||||
}
|
||||
private Dictionary<int, System.Action<int>> buttonCallbacks;
|
||||
|
||||
private int playerId;
|
||||
private RewiredStandaloneInputModule rewiredStandaloneInputModule;
|
||||
private int menuHorizActionId = -1;
|
||||
private int menuVertActionId = -1;
|
||||
|
||||
/// <summary>
|
||||
/// This value prevents the user from lowering the axis sensitivity so far that the axis is unusable.
|
||||
/// This is very important for the axes used for menu navigation, otherwise the user could permanently
|
||||
/// disable their ability to navigate the menu on a console with no mouse/keyboard.
|
||||
/// This value will be drawn from the InputBehavior(s) assigned to the menu horizontal and vertical axes
|
||||
/// </summary>
|
||||
private float minSensitivity;
|
||||
|
||||
|
||||
public override void Initialize(int id, System.Func<int, bool> isFocusedCallback) {
|
||||
if(
|
||||
rightContentContainer == null ||
|
||||
valueDisplayGroup == null ||
|
||||
calibratedValueMarker == null ||
|
||||
rawValueMarker == null ||
|
||||
calibratedZeroMarker == null ||
|
||||
deadzoneArea == null ||
|
||||
deadzoneSlider == null ||
|
||||
sensitivitySlider == null ||
|
||||
zeroSlider == null ||
|
||||
invertToggle == null ||
|
||||
axisScrollAreaContent == null ||
|
||||
doneButton == null ||
|
||||
calibrateButton == null ||
|
||||
axisButtonPrefab == null ||
|
||||
doneButtonLabel == null ||
|
||||
cancelButtonLabel == null ||
|
||||
defaultButtonLabel == null ||
|
||||
deadzoneSliderLabel == null ||
|
||||
zeroSliderLabel == null ||
|
||||
sensitivitySliderLabel == null ||
|
||||
invertToggleLabel == null ||
|
||||
calibrateButtonLabel == null
|
||||
) {
|
||||
Debug.LogError("Rewired Control Mapper: All inspector values must be assigned!");
|
||||
return;
|
||||
}
|
||||
|
||||
axisButtons = new List<Button>();
|
||||
buttonCallbacks = new Dictionary<int, System.Action<int>>();
|
||||
|
||||
// Set static element labels
|
||||
doneButtonLabel.text = ControlMapper.GetLanguage().done;
|
||||
cancelButtonLabel.text = ControlMapper.GetLanguage().cancel;
|
||||
defaultButtonLabel.text = ControlMapper.GetLanguage().default_;
|
||||
deadzoneSliderLabel.text = ControlMapper.GetLanguage().calibrateWindow_deadZoneSliderLabel;
|
||||
zeroSliderLabel.text = ControlMapper.GetLanguage().calibrateWindow_zeroSliderLabel;
|
||||
sensitivitySliderLabel.text = ControlMapper.GetLanguage().calibrateWindow_sensitivitySliderLabel;
|
||||
invertToggleLabel.text = ControlMapper.GetLanguage().calibrateWindow_invertToggleLabel;
|
||||
calibrateButtonLabel.text = ControlMapper.GetLanguage().calibrateWindow_calibrateButtonLabel;
|
||||
|
||||
base.Initialize(id, isFocusedCallback);
|
||||
}
|
||||
|
||||
public void SetJoystick(int playerId, Joystick joystick) {
|
||||
if(!initialized) return;
|
||||
|
||||
this.playerId = playerId;
|
||||
this.joystick = joystick;
|
||||
|
||||
if(joystick == null) {
|
||||
Debug.LogError("Rewired Control Mapper: Joystick cannot be null!");
|
||||
return;
|
||||
}
|
||||
|
||||
// Create axis list
|
||||
float buttonHeight = 0.0f;
|
||||
for(int i = 0; i < joystick.axisCount; i++) {
|
||||
int index = i;
|
||||
GameObject instance = UITools.InstantiateGUIObject<Button>(axisButtonPrefab, axisScrollAreaContent, "Axis" + i);
|
||||
Button button = instance.GetComponent<Button>();
|
||||
button.onClick.AddListener(() => { OnAxisSelected(index, button); });
|
||||
Text text = UnityTools.GetComponentInSelfOrChildren<Text>(instance);
|
||||
if(text != null) text.text = joystick.AxisElementIdentifiers[i].name;
|
||||
if(buttonHeight == 0.0f) buttonHeight = UnityTools.GetComponentInSelfOrChildren<LayoutElement>(instance).minHeight;
|
||||
axisButtons.Add(button);
|
||||
}
|
||||
|
||||
// set axis list height
|
||||
float vSpacing = axisScrollAreaContent.GetComponent<VerticalLayoutGroup>().spacing;
|
||||
axisScrollAreaContent.sizeDelta = new Vector2(axisScrollAreaContent.sizeDelta.x, Mathf.Max((joystick.axisCount * (buttonHeight + vSpacing) - vSpacing), axisScrollAreaContent.sizeDelta.y));
|
||||
|
||||
// Store the original calibration data so we can revert
|
||||
origCalibrationData = joystick.calibrationMap.ToXmlString();
|
||||
|
||||
// Record info
|
||||
displayAreaWidth = rightContentContainer.sizeDelta.x;
|
||||
|
||||
// Try to get the UI control axis deadzone from the RewiredStandaloneInputModule if it exists in the hierarchy
|
||||
// This is used to prevent users from rendering menu navigation axes unusable by changing the axis sensitivity
|
||||
rewiredStandaloneInputModule = gameObject.transform.root.GetComponentInChildren<RewiredStandaloneInputModule>();
|
||||
if(rewiredStandaloneInputModule != null) {
|
||||
menuHorizActionId = ReInput.mapping.GetActionId(rewiredStandaloneInputModule.horizontalAxis);
|
||||
menuVertActionId = ReInput.mapping.GetActionId(rewiredStandaloneInputModule.verticalAxis);
|
||||
}
|
||||
|
||||
// Select first axis
|
||||
if(joystick.axisCount > 0) {
|
||||
SelectAxis(0);
|
||||
}
|
||||
|
||||
// Set default UI element
|
||||
defaultUIElement = doneButton.gameObject;
|
||||
|
||||
// Draw window
|
||||
RefreshControls();
|
||||
Redraw();
|
||||
}
|
||||
|
||||
public void SetButtonCallback(ButtonIdentifier buttonIdentifier, System.Action<int> callback) {
|
||||
if(!initialized) return;
|
||||
if(callback == null) return;
|
||||
if(buttonCallbacks.ContainsKey((int)buttonIdentifier)) buttonCallbacks[(int)buttonIdentifier] = callback;
|
||||
else buttonCallbacks.Add((int)buttonIdentifier, callback);
|
||||
}
|
||||
|
||||
public override void Cancel() {
|
||||
if(!initialized) return;
|
||||
// don't call on base
|
||||
if(joystick != null) joystick.ImportCalibrationMapFromXmlString(origCalibrationData); // restore old data
|
||||
System.Action<int> callback;
|
||||
if(!buttonCallbacks.TryGetValue((int)ButtonIdentifier.Cancel, out callback)) {
|
||||
if(cancelCallback != null) cancelCallback();
|
||||
return;
|
||||
}
|
||||
callback(id);
|
||||
}
|
||||
|
||||
protected override void Update() {
|
||||
if(!initialized) return;
|
||||
|
||||
base.Update();
|
||||
|
||||
UpdateDisplay(); // update the real-time display
|
||||
}
|
||||
|
||||
#region Control Event Handlers
|
||||
|
||||
public void OnDone() {
|
||||
if(!initialized) return;
|
||||
System.Action<int> callback;
|
||||
if(!buttonCallbacks.TryGetValue((int)ButtonIdentifier.Done, out callback)) return;
|
||||
callback(id);
|
||||
}
|
||||
|
||||
public void OnCancel() {
|
||||
Cancel();
|
||||
}
|
||||
|
||||
public void OnRestoreDefault() {
|
||||
if(!initialized) return;
|
||||
if(joystick == null) return;
|
||||
joystick.calibrationMap.Reset();
|
||||
RefreshControls();
|
||||
Redraw();
|
||||
}
|
||||
|
||||
public void OnCalibrate() {
|
||||
if(!initialized) return;
|
||||
System.Action<int> callback;
|
||||
if(!buttonCallbacks.TryGetValue((int)ButtonIdentifier.Calibrate, out callback)) return;
|
||||
callback(selectedAxis);
|
||||
}
|
||||
|
||||
public void OnInvert(bool state) {
|
||||
if(!initialized) return;
|
||||
if(!axisSelected) return;
|
||||
axisCalibration.invert = state;
|
||||
}
|
||||
|
||||
public void OnZeroValueChange(float value) {
|
||||
if(!initialized) return;
|
||||
if(!axisSelected) return;
|
||||
axisCalibration.calibratedZero = value;
|
||||
RedrawCalibratedZero();
|
||||
}
|
||||
|
||||
public void OnZeroCancel() {
|
||||
if(!initialized) return;
|
||||
if(!axisSelected) return;
|
||||
axisCalibration.calibratedZero = origSelectedAxisCalibrationData.zero;
|
||||
RedrawCalibratedZero();
|
||||
RefreshControls();
|
||||
}
|
||||
|
||||
public void OnDeadzoneValueChange(float value) {
|
||||
if(!initialized) return;
|
||||
if(!axisSelected) return;
|
||||
// Enforce a max dead zone to prevent axis from becoming useless
|
||||
axisCalibration.deadZone = Mathf.Clamp(value, 0.0f, maxDeadzone);
|
||||
if(value > maxDeadzone) deadzoneSlider.value = maxDeadzone; // prevent control from going outside range
|
||||
RedrawDeadzone();
|
||||
}
|
||||
|
||||
public void OnDeadzoneCancel() {
|
||||
if(!initialized) return;
|
||||
if(!axisSelected) return;
|
||||
axisCalibration.deadZone = origSelectedAxisCalibrationData.deadZone;
|
||||
RedrawDeadzone();
|
||||
RefreshControls();
|
||||
}
|
||||
|
||||
public void OnSensitivityValueChange(float value) {
|
||||
if(!initialized) return;
|
||||
if(!axisSelected) return;
|
||||
// Enforce a min sensitivity to prevent axis from becoming useless
|
||||
axisCalibration.sensitivity = Mathf.Clamp(value, minSensitivity, Mathf.Infinity);
|
||||
if(value < minSensitivity) sensitivitySlider.value = minSensitivity; // prevent control from going outside range
|
||||
}
|
||||
|
||||
public void OnSensitivityCancel(float value) {
|
||||
if(!initialized) return;
|
||||
if(!axisSelected) return;
|
||||
axisCalibration.sensitivity = origSelectedAxisCalibrationData.sensitivity;
|
||||
RefreshControls();
|
||||
}
|
||||
|
||||
public void OnAxisScrollRectScroll(Vector2 pos) {
|
||||
if(!initialized) return;
|
||||
}
|
||||
|
||||
private void OnAxisSelected(int axisIndex, Button button) {
|
||||
if(!initialized) return;
|
||||
if(joystick == null) return;
|
||||
SelectAxis(axisIndex);
|
||||
RefreshControls();
|
||||
Redraw();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private void UpdateDisplay() {
|
||||
RedrawValueMarkers();
|
||||
}
|
||||
|
||||
private void Redraw() {
|
||||
RedrawCalibratedZero(); // also updates deadzone
|
||||
RedrawValueMarkers();
|
||||
}
|
||||
|
||||
private void RefreshControls() {
|
||||
if(!axisSelected) {
|
||||
// Deadzone slider
|
||||
deadzoneSlider.value = 0;
|
||||
|
||||
// Zero slider
|
||||
zeroSlider.value = 0;
|
||||
|
||||
// Sensitivity slider
|
||||
sensitivitySlider.value = 0;
|
||||
|
||||
// Invert toggle
|
||||
invertToggle.isOn = false;
|
||||
} else {
|
||||
// Deadzone slider
|
||||
deadzoneSlider.value = axisCalibration.deadZone;
|
||||
|
||||
// Zero slider
|
||||
zeroSlider.value = axisCalibration.calibratedZero;
|
||||
|
||||
// Sensitivity slider
|
||||
sensitivitySlider.value = axisCalibration.sensitivity;
|
||||
|
||||
// Invert toggle
|
||||
invertToggle.isOn = axisCalibration.invert;
|
||||
}
|
||||
}
|
||||
|
||||
private void RedrawDeadzone() {
|
||||
if(!axisSelected) return;
|
||||
float width = displayAreaWidth * axisCalibration.deadZone;
|
||||
deadzoneArea.sizeDelta = new Vector2(width, deadzoneArea.sizeDelta.y);
|
||||
deadzoneArea.anchoredPosition = new Vector2(axisCalibration.calibratedZero * -deadzoneArea.parent.localPosition.x, deadzoneArea.anchoredPosition.y);
|
||||
}
|
||||
|
||||
private void RedrawCalibratedZero() {
|
||||
if(!axisSelected) return;
|
||||
calibratedZeroMarker.anchoredPosition = new Vector2(axisCalibration.calibratedZero * -deadzoneArea.parent.localPosition.x, calibratedZeroMarker.anchoredPosition.y);
|
||||
RedrawDeadzone();
|
||||
}
|
||||
|
||||
private void RedrawValueMarkers() {
|
||||
if(!axisSelected) {
|
||||
calibratedValueMarker.anchoredPosition = new Vector2(0, calibratedValueMarker.anchoredPosition.y);
|
||||
rawValueMarker.anchoredPosition = new Vector2(0, rawValueMarker.anchoredPosition.y);
|
||||
return;
|
||||
}
|
||||
|
||||
float value = joystick.GetAxis(selectedAxis);
|
||||
float rawValue = Mathf.Clamp(joystick.GetAxisRaw(selectedAxis),-1.0f, 1.0f);
|
||||
|
||||
calibratedValueMarker.anchoredPosition = new Vector2(displayAreaWidth * 0.5f * value, calibratedValueMarker.anchoredPosition.y);
|
||||
rawValueMarker.anchoredPosition = new Vector2(displayAreaWidth * 0.5f * rawValue, rawValueMarker.anchoredPosition.y);
|
||||
}
|
||||
|
||||
private void SelectAxis(int index) {
|
||||
if(index < 0 || index >= axisButtons.Count) return;
|
||||
if(axisButtons[index] == null) return;
|
||||
axisButtons[index].interactable = false; // disable this axis
|
||||
#if UNITY_5_3_OR_NEWER
|
||||
// Unity changed the system so when interactible is set to false,
|
||||
// the Selectable is immediately deselected.
|
||||
axisButtons[index].Select(); // force select after Unity deselects it
|
||||
#endif
|
||||
// Enable other axes
|
||||
for(int i = 0; i < axisButtons.Count; i++) {
|
||||
if(i == index) continue;
|
||||
axisButtons[i].interactable = true;
|
||||
}
|
||||
selectedAxis = index;
|
||||
origSelectedAxisCalibrationData = axisCalibration.GetData();
|
||||
SetMinSensitivity();
|
||||
}
|
||||
|
||||
public override void TakeInputFocus() {
|
||||
base.TakeInputFocus();
|
||||
if(selectedAxis >= 0) SelectAxis(selectedAxis); // refresh the axis selection so button interactivity matches
|
||||
RefreshControls();
|
||||
Redraw();
|
||||
}
|
||||
|
||||
private void SetMinSensitivity() {
|
||||
if(!axisSelected) return;
|
||||
|
||||
minSensitivity = minSensitivityOtherAxes;
|
||||
|
||||
// Set the minimum sensitivity for this axis
|
||||
if(rewiredStandaloneInputModule != null) {
|
||||
if(IsMenuAxis(menuHorizActionId, selectedAxis)) {
|
||||
GetAxisButtonDeadZone(playerId, menuHorizActionId, ref minSensitivity);
|
||||
} else if(IsMenuAxis(menuVertActionId, selectedAxis)) {
|
||||
GetAxisButtonDeadZone(playerId, menuVertActionId, ref minSensitivity);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private bool IsMenuAxis(int actionId, int axisIndex) {
|
||||
if(rewiredStandaloneInputModule == null) return false;
|
||||
|
||||
// Determine if menu action is mapped to this axis on any player
|
||||
IList<Player> players = ReInput.players.AllPlayers;
|
||||
int playerCount = players.Count;
|
||||
for(int i = 0; i < playerCount; i++) {
|
||||
IList<JoystickMap> maps = players[i].controllers.maps.GetMaps<JoystickMap>(joystick.id);
|
||||
if(maps == null) continue;
|
||||
int mapCount = maps.Count;
|
||||
for(int j = 0; j < mapCount; j++) {
|
||||
IList<ActionElementMap> aems = maps[j].AxisMaps;
|
||||
if(aems == null) continue;
|
||||
int aemCount = aems.Count;
|
||||
for(int k = 0; k < aemCount; k++) {
|
||||
ActionElementMap aem = aems[k];
|
||||
if(aem.actionId == actionId && aem.elementIndex == axisIndex) return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private void GetAxisButtonDeadZone(int playerId, int actionId, ref float value) {
|
||||
InputAction action = ReInput.mapping.GetAction(actionId);
|
||||
if(action == null) return;
|
||||
|
||||
int behaviorId = action.behaviorId;
|
||||
InputBehavior inputBehavior = ReInput.mapping.GetInputBehavior(playerId, behaviorId);
|
||||
if(inputBehavior == null) return;
|
||||
|
||||
value = inputBehavior.buttonDeadZone + 0.1f; // add a small amount so it never reaches the deadzone
|
||||
}
|
||||
|
||||
public enum ButtonIdentifier {
|
||||
Done,
|
||||
Cancel,
|
||||
Default,
|
||||
Calibrate
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 4e99c23df54f27446bb8e263e0ceb8ff
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
|
@ -0,0 +1,25 @@
|
|||
// Copyright (c) 2015 Augie R. Maddox, Guavaman Enterprises. All rights reserved.
|
||||
#pragma warning disable 0219
|
||||
#pragma warning disable 0618
|
||||
#pragma warning disable 0649
|
||||
|
||||
namespace Rewired.UI.ControlMapper {
|
||||
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// This class exists only for the purpose of being able to force a refresh on the canvas scaler to prevent drawing artifacts when changing the scale on Awake/Enable
|
||||
/// </summary>
|
||||
[AddComponentMenu("")]
|
||||
public class CanvasScalerExt : CanvasScaler {
|
||||
|
||||
/// <summary>
|
||||
/// Force a refresh on the canvas scaler.
|
||||
/// </summary>
|
||||
public void ForceRefresh() {
|
||||
Handle();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 1d5765b502c6a5e4ab9dfff21808a241
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
|
@ -0,0 +1,72 @@
|
|||
// Copyright (c) 2015 Augie R. Maddox, Guavaman Enterprises. All rights reserved.
|
||||
#pragma warning disable 0219
|
||||
#pragma warning disable 0618
|
||||
#pragma warning disable 0649
|
||||
|
||||
namespace Rewired.UI.ControlMapper {
|
||||
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
/// <summary>
|
||||
/// Adjusts the scale based on the current screen aspect ratio to try to fit the content sensibly.
|
||||
/// Uses break points to determine current scale settings.
|
||||
/// </summary>
|
||||
[RequireComponent(typeof(CanvasScalerExt))]
|
||||
public class CanvasScalerFitter : MonoBehaviour {
|
||||
|
||||
[SerializeField]
|
||||
private BreakPoint[] breakPoints;
|
||||
|
||||
private CanvasScalerExt canvasScaler;
|
||||
private int screenWidth;
|
||||
private int screenHeight;
|
||||
private System.Action ScreenSizeChanged;
|
||||
|
||||
void OnEnable() {
|
||||
canvasScaler = GetComponent<CanvasScalerExt>();
|
||||
Update(); // update immediately
|
||||
canvasScaler.ForceRefresh(); // force the canvas scaler to update now to avoid a flash at the wrong size when first enabled
|
||||
}
|
||||
|
||||
void Update() {
|
||||
// Check for screen size change
|
||||
if(Screen.width != screenWidth || Screen.height != screenHeight) { // screen size changed
|
||||
screenWidth = Screen.width;
|
||||
screenHeight = Screen.height;
|
||||
UpdateSize();
|
||||
}
|
||||
}
|
||||
|
||||
private void UpdateSize() {
|
||||
if(canvasScaler.uiScaleMode != CanvasScaler.ScaleMode.ScaleWithScreenSize) return;
|
||||
if(breakPoints == null) return;
|
||||
|
||||
float xRatio = (float)Screen.width / (float)Screen.height;
|
||||
|
||||
float closest = Mathf.Infinity;
|
||||
int closestIndex = 0;
|
||||
for(int i = 0; i < breakPoints.Length; i++) {
|
||||
float ratio = Mathf.Abs(xRatio - breakPoints[i].screenAspectRatio);
|
||||
if(ratio > breakPoints[i].screenAspectRatio && !Utils.MathTools.IsNear(breakPoints[i].screenAspectRatio, 0.01f)) continue;
|
||||
if(ratio < closest) {
|
||||
closest = ratio;
|
||||
closestIndex = i;
|
||||
}
|
||||
}
|
||||
|
||||
canvasScaler.referenceResolution = breakPoints[closestIndex].referenceResolution;
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
private class BreakPoint {
|
||||
[SerializeField]
|
||||
public string name;
|
||||
[SerializeField]
|
||||
public float screenAspectRatio;
|
||||
[SerializeField]
|
||||
public Vector2 referenceResolution;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 0b7420df3cab0ff46a7188a17749d1cc
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
3241
Assets/Control Mapper/Extras/ControlMapper/Scripts/ControlMapper.cs
Normal file
3241
Assets/Control Mapper/Extras/ControlMapper/Scripts/ControlMapper.cs
Normal file
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: edac79059a45d244a8050315593a7e9e
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences:
|
||||
- _rewiredInputManager: {instanceID: 0}
|
||||
- _themeSettings: {fileID: 11400000, guid: e15b0a66770d13f41a9adbbf6a4d7423, type: 2}
|
||||
- _language: {fileID: 11400000, guid: 2be3ae985e9faeb4b9dd3a1c915a3fc7, type: 2}
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
|
@ -0,0 +1,927 @@
|
|||
// Copyright (c) 2015 Augie R. Maddox, Guavaman Enterprises. All rights reserved.
|
||||
#pragma warning disable 0219
|
||||
#pragma warning disable 0618
|
||||
#pragma warning disable 0649
|
||||
|
||||
namespace Rewired.UI.ControlMapper {
|
||||
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using UnityEngine.EventSystems;
|
||||
using System.Collections.Generic;
|
||||
using Rewired;
|
||||
using Rewired.Utils;
|
||||
|
||||
public partial class ControlMapper {
|
||||
|
||||
#region GUI Elements
|
||||
|
||||
private abstract class GUIElement {
|
||||
public readonly GameObject gameObject;
|
||||
protected readonly Text text;
|
||||
public readonly Selectable selectable;
|
||||
protected readonly UIElementInfo uiElementInfo;
|
||||
protected bool permanentStateSet;
|
||||
protected readonly List<GUIElement> children;
|
||||
|
||||
public RectTransform rectTransform { get; private set; }
|
||||
|
||||
public GUIElement(GameObject gameObject) {
|
||||
if(gameObject == null) {
|
||||
Debug.LogError("Rewired Control Mapper: gameObject is null!");
|
||||
return;
|
||||
}
|
||||
this.selectable = gameObject.GetComponent<Selectable>();
|
||||
if(selectable == null) {
|
||||
Debug.LogError("Rewired Control Mapper: Selectable is null!");
|
||||
return;
|
||||
}
|
||||
this.gameObject = gameObject;
|
||||
this.rectTransform = gameObject.GetComponent<RectTransform>();
|
||||
text = UnityTools.GetComponentInSelfOrChildren<Text>(gameObject);
|
||||
this.uiElementInfo = gameObject.GetComponent<UIElementInfo>();
|
||||
children = new List<GUIElement>();
|
||||
}
|
||||
public GUIElement(Selectable selectable, Text label) {
|
||||
if(selectable == null) {
|
||||
Debug.LogError("Rewired Control Mapper: Selectable is null!");
|
||||
return;
|
||||
}
|
||||
this.selectable = selectable;
|
||||
this.gameObject = selectable.gameObject;
|
||||
this.rectTransform = gameObject.GetComponent<RectTransform>();
|
||||
this.text = label;
|
||||
this.uiElementInfo = gameObject.GetComponent<UIElementInfo>();
|
||||
children = new List<GUIElement>();
|
||||
}
|
||||
|
||||
public virtual void SetInteractible(bool state, bool playTransition) {
|
||||
SetInteractible(state, playTransition, false);
|
||||
}
|
||||
public virtual void SetInteractible(bool state, bool playTransition, bool permanent) {
|
||||
for(int i = 0; i < children.Count; i++) {
|
||||
if(children[i] == null) continue;
|
||||
children[i].SetInteractible(state, playTransition, permanent);
|
||||
}
|
||||
if(permanentStateSet) return;
|
||||
if(selectable == null) return;
|
||||
if(permanent) permanentStateSet = true;
|
||||
if(selectable.interactable == state) return;
|
||||
UI.ControlMapper.UITools.SetInteractable(selectable, state, playTransition);
|
||||
}
|
||||
|
||||
public virtual void SetTextWidth(int value) {
|
||||
if(text == null) return;
|
||||
LayoutElement e = text.GetComponent<LayoutElement>();
|
||||
if(e == null) e = text.gameObject.AddComponent<LayoutElement>();
|
||||
e.preferredWidth = value;
|
||||
}
|
||||
|
||||
public virtual void SetFirstChildObjectWidth(LayoutElementSizeType type, int value) {
|
||||
if(rectTransform.childCount == 0) return;
|
||||
Transform child = rectTransform.GetChild(0);
|
||||
LayoutElement e = child.GetComponent<LayoutElement>();
|
||||
if(e == null) e = child.gameObject.AddComponent<LayoutElement>();
|
||||
|
||||
if(type == LayoutElementSizeType.MinSize) e.minWidth = value;
|
||||
else if(type == LayoutElementSizeType.PreferredSize) e.preferredWidth = value;
|
||||
else throw new System.NotImplementedException();
|
||||
}
|
||||
|
||||
public virtual void SetLabel(string label) {
|
||||
if(text == null) return;
|
||||
text.text = label;
|
||||
}
|
||||
|
||||
public virtual string GetLabel() {
|
||||
if(text == null) return string.Empty;
|
||||
return text.text;
|
||||
}
|
||||
|
||||
public virtual void AddChild(GUIElement child) {
|
||||
children.Add(child);
|
||||
}
|
||||
|
||||
public void SetElementInfoData(string identifier, int intData) {
|
||||
if(uiElementInfo == null) return;
|
||||
uiElementInfo.identifier = identifier;
|
||||
uiElementInfo.intData = intData;
|
||||
}
|
||||
|
||||
public virtual void SetActive(bool state) {
|
||||
if(gameObject == null) return;
|
||||
gameObject.SetActive(state);
|
||||
}
|
||||
|
||||
protected virtual bool Init() {
|
||||
bool result = true;
|
||||
for(int i = 0; i < children.Count; i++) {
|
||||
if(children[i] == null) continue;
|
||||
if(!children[i].Init()) result = false;
|
||||
}
|
||||
if(selectable == null) {
|
||||
Debug.LogError("Rewired Control Mapper: UI Element is missing Selectable component!");
|
||||
result = false;
|
||||
}
|
||||
if(rectTransform == null) {
|
||||
Debug.LogError("Rewired Control Mapper: UI Element is missing RectTransform component!");
|
||||
result = false;
|
||||
}
|
||||
if(uiElementInfo == null) {
|
||||
Debug.LogError("Rewired Control Mapper: UI Element is missing UIElementInfo component!");
|
||||
result = false;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
private class GUIButton : GUIElement {
|
||||
|
||||
protected Button button => selectable as Button;
|
||||
public ButtonInfo buttonInfo => uiElementInfo as ButtonInfo;
|
||||
|
||||
public GUIButton(GameObject gameObject)
|
||||
: base(gameObject) {
|
||||
if(!Init()) return;
|
||||
}
|
||||
public GUIButton(Button button, Text label)
|
||||
: base(button, label) {
|
||||
if(!Init()) return;
|
||||
}
|
||||
|
||||
public void SetButtonInfoData(string identifier, int intData) {
|
||||
base.SetElementInfoData(identifier, intData);
|
||||
}
|
||||
|
||||
public void SetOnClickCallback(System.Action<ButtonInfo> callback) {
|
||||
if(button == null) return;
|
||||
button.onClick.AddListener(() => { callback(buttonInfo); });
|
||||
}
|
||||
}
|
||||
|
||||
private class GUIInputField : GUIElement {
|
||||
|
||||
protected Button button => selectable as Button;
|
||||
public InputFieldInfo fieldInfo => uiElementInfo as InputFieldInfo;
|
||||
public bool hasToggle => toggle != null;
|
||||
public GUIToggle toggle { get; private set; }
|
||||
|
||||
public int actionElementMapId {
|
||||
get {
|
||||
if(fieldInfo == null) return -1;
|
||||
return fieldInfo.actionElementMapId;
|
||||
}
|
||||
set {
|
||||
if(fieldInfo == null) return;
|
||||
fieldInfo.actionElementMapId = value;
|
||||
}
|
||||
}
|
||||
public int controllerId {
|
||||
get {
|
||||
if(fieldInfo == null) return -1;
|
||||
return fieldInfo.controllerId;
|
||||
}
|
||||
set {
|
||||
if(fieldInfo == null) return;
|
||||
fieldInfo.controllerId = value;
|
||||
}
|
||||
}
|
||||
|
||||
public GUIInputField(GameObject gameObject)
|
||||
: base(gameObject) {
|
||||
if(!Init()) return;
|
||||
}
|
||||
public GUIInputField(Button button, Text label)
|
||||
: base(button, label) {
|
||||
if(!Init()) return;
|
||||
}
|
||||
|
||||
public void SetFieldInfoData(int actionId, AxisRange axisRange, ControllerType controllerType, int intData) {
|
||||
base.SetElementInfoData(string.Empty, intData);
|
||||
if(fieldInfo == null) return;
|
||||
fieldInfo.actionId = actionId;
|
||||
fieldInfo.axisRange = axisRange;
|
||||
fieldInfo.controllerType = controllerType;
|
||||
}
|
||||
|
||||
public void SetOnClickCallback(System.Action<InputFieldInfo> callback) {
|
||||
if(button == null) return;
|
||||
button.onClick.AddListener(() => { callback(fieldInfo as InputFieldInfo); });
|
||||
}
|
||||
|
||||
public virtual void SetInteractable(bool state, bool playTransition, bool permanent) {
|
||||
if(permanentStateSet) return;
|
||||
if(hasToggle && !state) toggle.SetInteractible(state, playTransition, permanent); // disable toggle if main element disabled
|
||||
base.SetInteractible(state, playTransition, permanent);
|
||||
}
|
||||
|
||||
public void AddToggle(GUIToggle toggle) {
|
||||
if(toggle == null) return;
|
||||
this.toggle = toggle;
|
||||
}
|
||||
}
|
||||
|
||||
private class GUIToggle : GUIElement {
|
||||
|
||||
protected Toggle toggle => selectable as Toggle;
|
||||
public ToggleInfo toggleInfo => uiElementInfo as ToggleInfo;
|
||||
|
||||
public int actionElementMapId {
|
||||
get {
|
||||
if(toggleInfo == null) return -1;
|
||||
return toggleInfo.actionElementMapId;
|
||||
}
|
||||
set {
|
||||
if(toggleInfo == null) return;
|
||||
toggleInfo.actionElementMapId = value;
|
||||
}
|
||||
}
|
||||
|
||||
public GUIToggle(GameObject gameObject)
|
||||
: base(gameObject) {
|
||||
if(!Init()) return;
|
||||
}
|
||||
public GUIToggle(Toggle toggle, Text label)
|
||||
: base(toggle, label) {
|
||||
if(!Init()) return;
|
||||
}
|
||||
|
||||
public void SetToggleInfoData(int actionId, AxisRange axisRange, ControllerType controllerType, int intData) {
|
||||
base.SetElementInfoData(string.Empty, intData);
|
||||
if(toggleInfo == null) return;
|
||||
toggleInfo.actionId = actionId;
|
||||
toggleInfo.axisRange = axisRange;
|
||||
toggleInfo.controllerType = controllerType;
|
||||
}
|
||||
|
||||
public void SetOnSubmitCallback(System.Action<ToggleInfo, bool> callback) {
|
||||
if(toggle == null) return;
|
||||
|
||||
EventTrigger trigger = toggle.GetComponent<EventTrigger>();
|
||||
if(trigger == null) trigger = toggle.gameObject.AddComponent<EventTrigger>();
|
||||
|
||||
EventTrigger.TriggerEvent triggerEvent = new EventTrigger.TriggerEvent();
|
||||
triggerEvent.AddListener((BaseEventData data) => {
|
||||
PointerEventData p = data as PointerEventData;
|
||||
if(p != null && p.button != 0) return; // ignore mouse clicks for all buttons except LMB
|
||||
callback(toggleInfo, toggle.isOn);
|
||||
});
|
||||
|
||||
// Joystick/keyboard submit event
|
||||
EventTrigger.Entry entry = new EventTrigger.Entry() {
|
||||
callback = triggerEvent,
|
||||
eventID = EventTriggerType.Submit
|
||||
};
|
||||
|
||||
// Mouse click submit event
|
||||
EventTrigger.Entry entry2 = new EventTrigger.Entry() {
|
||||
callback = triggerEvent,
|
||||
eventID = EventTriggerType.PointerClick
|
||||
};
|
||||
|
||||
#if (UNITY_5_0_0 || UNITY_5_0_1 || UNITY_5_0_2 || UNITY_5_0_3 || UNITY_5_0_4) || UNITY_4_6 || UNITY_4_7 || UNITY_4_8 || UNITY_4_9
|
||||
if(trigger.delegates != null) trigger.delegates.Clear();
|
||||
else trigger.delegates = new List<EventTrigger.Entry>();
|
||||
trigger.delegates.Add(entry);
|
||||
trigger.delegates.Add(entry2);
|
||||
#else
|
||||
if(trigger.triggers != null) trigger.triggers.Clear();
|
||||
else trigger.triggers = new List<EventTrigger.Entry>();
|
||||
trigger.triggers.Add(entry);
|
||||
trigger.triggers.Add(entry2);
|
||||
#endif
|
||||
}
|
||||
|
||||
public void SetToggleState(bool state) {
|
||||
if(toggle == null) return;
|
||||
toggle.isOn = state;
|
||||
}
|
||||
}
|
||||
|
||||
private class GUILabel {
|
||||
|
||||
public GameObject gameObject { get; private set; }
|
||||
private Text text { get; set; }
|
||||
public RectTransform rectTransform { get; private set; }
|
||||
|
||||
public GUILabel(GameObject gameObject) {
|
||||
if(gameObject == null) {
|
||||
Debug.LogError("Rewired Control Mapper: gameObject is null!");
|
||||
return;
|
||||
}
|
||||
text = UnityTools.GetComponentInSelfOrChildren<Text>(gameObject);
|
||||
Check();
|
||||
}
|
||||
public GUILabel(Text label) {
|
||||
this.text = label;
|
||||
if(!Check()) return;
|
||||
}
|
||||
|
||||
public void SetSize(int width, int height) {
|
||||
if(text == null) return;
|
||||
rectTransform.SetSizeWithCurrentAnchors(RectTransform.Axis.Horizontal, width);
|
||||
rectTransform.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, height);
|
||||
}
|
||||
|
||||
public void SetWidth(int width) {
|
||||
if(text == null) return;
|
||||
rectTransform.SetSizeWithCurrentAnchors(RectTransform.Axis.Horizontal, width);
|
||||
}
|
||||
|
||||
public void SetHeight(int height) {
|
||||
if(text == null) return;
|
||||
rectTransform.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, height);
|
||||
}
|
||||
|
||||
public void SetLabel(string label) {
|
||||
if(text == null) return;
|
||||
text.text = label;
|
||||
}
|
||||
|
||||
public void SetFontStyle(FontStyle style) {
|
||||
if(text == null) return;
|
||||
text.fontStyle = style;
|
||||
}
|
||||
|
||||
public void SetTextAlignment(TextAnchor alignment) {
|
||||
if(text == null) return;
|
||||
text.alignment = alignment;
|
||||
}
|
||||
|
||||
public void SetActive(bool state) {
|
||||
if(gameObject == null) return;
|
||||
gameObject.SetActive(state);
|
||||
}
|
||||
|
||||
private bool Check() {
|
||||
bool result = true;
|
||||
if(text == null) {
|
||||
Debug.LogError("Rewired Control Mapper: Button is missing Text child component!");
|
||||
result = false;
|
||||
}
|
||||
gameObject = text.gameObject;
|
||||
rectTransform = text.GetComponent<RectTransform>();
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Serialized Data
|
||||
|
||||
[System.Serializable]
|
||||
public class MappingSet {
|
||||
|
||||
[SerializeField]
|
||||
[Tooltip("The Map Category that will be displayed to the user for remapping.")]
|
||||
private int _mapCategoryId;
|
||||
[SerializeField]
|
||||
[Tooltip("Choose whether you want to list Actions to display for this Map Category by individual Action or by all the Actions in an Action Category.")]
|
||||
private ActionListMode _actionListMode;
|
||||
[SerializeField]
|
||||
private int[] _actionCategoryIds;
|
||||
[SerializeField]
|
||||
private int[] _actionIds;
|
||||
|
||||
// Runtime vars
|
||||
private IList<int> _actionCategoryIdsReadOnly;
|
||||
private IList<int> _actionIdsReadOnly;
|
||||
|
||||
public int mapCategoryId => _mapCategoryId;
|
||||
public ActionListMode actionListMode => _actionListMode;
|
||||
|
||||
public IList<int> actionCategoryIds {
|
||||
get {
|
||||
if(_actionCategoryIds == null) return null;
|
||||
if(_actionCategoryIdsReadOnly == null) _actionCategoryIdsReadOnly = new System.Collections.ObjectModel.ReadOnlyCollection<int>(_actionCategoryIds);
|
||||
return _actionCategoryIdsReadOnly;
|
||||
}
|
||||
}
|
||||
public IList<int> actionIds {
|
||||
get {
|
||||
if(_actionIds == null) return null;
|
||||
if(_actionIdsReadOnly == null) _actionIdsReadOnly = new System.Collections.ObjectModel.ReadOnlyCollection<int>(_actionIds);
|
||||
return _actionIds;
|
||||
}
|
||||
}
|
||||
public bool isValid {
|
||||
get {
|
||||
if(_mapCategoryId < 0 || ReInput.mapping.GetMapCategory(_mapCategoryId) == null) return false;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public MappingSet() {
|
||||
this._mapCategoryId = -1;
|
||||
this._actionCategoryIds = new int[0];
|
||||
this._actionIds = new int[0];
|
||||
this._actionListMode = ActionListMode.ActionCategory;
|
||||
}
|
||||
|
||||
private MappingSet(int mapCategoryId, ActionListMode actionListMode, int[] actionCategoryIds, int[] actionIds) {
|
||||
this._mapCategoryId = mapCategoryId;
|
||||
this._actionListMode = actionListMode;
|
||||
this._actionCategoryIds = actionCategoryIds;
|
||||
this._actionIds = actionIds;
|
||||
}
|
||||
|
||||
// Static
|
||||
|
||||
public static MappingSet Default => new MappingSet(
|
||||
0, // Default
|
||||
ActionListMode.ActionCategory,
|
||||
new int[1] { 0 }, // Default
|
||||
new int[0] // No individual actions
|
||||
);
|
||||
|
||||
public enum ActionListMode {
|
||||
ActionCategory = 0,
|
||||
Action = 1
|
||||
}
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
public class InputBehaviorSettings {
|
||||
|
||||
// Info
|
||||
[SerializeField]
|
||||
[Tooltip("The Input Behavior that will be displayed to the user for modification.")]
|
||||
private int _inputBehaviorId = -1;
|
||||
|
||||
// Display options
|
||||
[SerializeField]
|
||||
[Tooltip("If checked, a slider will be displayed so the user can change this value.")]
|
||||
private bool _showJoystickAxisSensitivity = true;
|
||||
[SerializeField]
|
||||
[Tooltip("If checked, a slider will be displayed so the user can change this value.")]
|
||||
private bool _showMouseXYAxisSensitivity = true;
|
||||
//[SerializeField]
|
||||
//private bool _showMouseOtherAxisSensitivity = true;
|
||||
|
||||
// Name overrides
|
||||
[SerializeField]
|
||||
[Tooltip("If set to a non-blank value, this key will be used to look up the name in Language to be displayed as the title for the Input Behavior control set. Otherwise, the name field of the InputBehavior will be used.")]
|
||||
private string _labelLanguageKey = string.Empty;
|
||||
[SerializeField]
|
||||
[Tooltip("If set to a non-blank value, this name will be displayed above the individual slider control. Otherwise, no name will be displayed.")]
|
||||
private string _joystickAxisSensitivityLabelLanguageKey = string.Empty;
|
||||
[SerializeField]
|
||||
[Tooltip("If set to a non-blank value, this key will be used to look up the name in Language to be displayed above the individual slider control. Otherwise, no name will be displayed.")]
|
||||
private string _mouseXYAxisSensitivityLabelLanguageKey = string.Empty;
|
||||
//[SerializeField]
|
||||
//private string _mouseOtherAxisSensitivityDisplayName= string.Empty;
|
||||
|
||||
// Icons
|
||||
[SerializeField]
|
||||
[Tooltip("The icon to display next to the slider. Set to none for no icon.")]
|
||||
private Sprite _joystickAxisSensitivityIcon;
|
||||
[SerializeField]
|
||||
[Tooltip("The icon to display next to the slider. Set to none for no icon.")]
|
||||
private Sprite _mouseXYAxisSensitivityIcon;
|
||||
//[SerializeField]
|
||||
//private Sprite _mouseOtherAxisSensitivityIcon;
|
||||
|
||||
// Values
|
||||
[SerializeField]
|
||||
[Tooltip("Minimum value the user is allowed to set for this property.")]
|
||||
private float _joystickAxisSensitivityMin = 0f;
|
||||
[SerializeField]
|
||||
[Tooltip("Maximum value the user is allowed to set for this property.")]
|
||||
private float _joystickAxisSensitivityMax = 2.0f;
|
||||
[SerializeField]
|
||||
[Tooltip("Minimum value the user is allowed to set for this property.")]
|
||||
private float _mouseXYAxisSensitivityMin = 0f;
|
||||
[SerializeField]
|
||||
[Tooltip("Maximum value the user is allowed to set for this property.")]
|
||||
private float _mouseXYAxisSensitivityMax = 2.0f;
|
||||
|
||||
public int inputBehaviorId => _inputBehaviorId;
|
||||
public bool showJoystickAxisSensitivity => _showJoystickAxisSensitivity;
|
||||
public bool showMouseXYAxisSensitivity => _showMouseXYAxisSensitivity;
|
||||
public string labelLanguageKey => _labelLanguageKey;
|
||||
public string joystickAxisSensitivityLabelLanguageKey => _joystickAxisSensitivityLabelLanguageKey;
|
||||
public string mouseXYAxisSensitivityLabelLanguageKey => _mouseXYAxisSensitivityLabelLanguageKey;
|
||||
public Sprite joystickAxisSensitivityIcon => _joystickAxisSensitivityIcon;
|
||||
public Sprite mouseXYAxisSensitivityIcon => _mouseXYAxisSensitivityIcon;
|
||||
public float joystickAxisSensitivityMin => _joystickAxisSensitivityMin;
|
||||
public float joystickAxisSensitivityMax => _joystickAxisSensitivityMax;
|
||||
public float mouseXYAxisSensitivityMin => _mouseXYAxisSensitivityMin;
|
||||
public float mouseXYAxisSensitivityMax => _mouseXYAxisSensitivityMax;
|
||||
|
||||
public bool isValid // || _showMouseOtherAxisSensitivity); } }
|
||||
=> _inputBehaviorId >= 0 && (_showJoystickAxisSensitivity || _showMouseXYAxisSensitivity);
|
||||
|
||||
|
||||
public InputBehaviorSettings() {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
private class Prefabs {
|
||||
|
||||
[SerializeField]
|
||||
private GameObject _button;
|
||||
[SerializeField]
|
||||
private GameObject _fitButton;
|
||||
[SerializeField]
|
||||
private GameObject _inputGridLabel;
|
||||
[SerializeField]
|
||||
private GameObject _inputGridHeaderLabel;
|
||||
[SerializeField]
|
||||
private GameObject _inputGridFieldButton;
|
||||
[SerializeField]
|
||||
private GameObject _inputGridFieldInvertToggle;
|
||||
[SerializeField]
|
||||
private GameObject _window;
|
||||
[SerializeField]
|
||||
private GameObject _windowTitleText;
|
||||
[SerializeField]
|
||||
private GameObject _windowContentText;
|
||||
[SerializeField]
|
||||
private GameObject _fader;
|
||||
[SerializeField]
|
||||
private GameObject _calibrationWindow;
|
||||
[SerializeField]
|
||||
private GameObject _inputBehaviorsWindow;
|
||||
|
||||
// Optional
|
||||
[SerializeField]
|
||||
private GameObject _centerStickGraphic;
|
||||
[SerializeField]
|
||||
private GameObject _moveStickGraphic;
|
||||
|
||||
public GameObject button => _button;
|
||||
public GameObject fitButton => _fitButton;
|
||||
public GameObject inputGridLabel => _inputGridLabel;
|
||||
public GameObject inputGridHeaderLabel => _inputGridHeaderLabel;
|
||||
public GameObject inputGridFieldButton => _inputGridFieldButton;
|
||||
public GameObject inputGridFieldInvertToggle => _inputGridFieldInvertToggle;
|
||||
public GameObject window => _window;
|
||||
public GameObject windowTitleText => _windowTitleText;
|
||||
public GameObject windowContentText => _windowContentText;
|
||||
public GameObject fader => _fader;
|
||||
public GameObject calibrationWindow => _calibrationWindow;
|
||||
public GameObject inputBehaviorsWindow => _inputBehaviorsWindow;
|
||||
|
||||
public GameObject centerStickGraphic => _centerStickGraphic;
|
||||
public GameObject moveStickGraphic => _moveStickGraphic;
|
||||
|
||||
public bool Check() {
|
||||
if(
|
||||
_button == null ||
|
||||
_fitButton == null ||
|
||||
_inputGridLabel == null ||
|
||||
_inputGridHeaderLabel == null ||
|
||||
_inputGridFieldButton == null ||
|
||||
_inputGridFieldInvertToggle == null ||
|
||||
_window == null ||
|
||||
_windowTitleText == null ||
|
||||
_windowContentText == null ||
|
||||
_fader == null ||
|
||||
_calibrationWindow == null ||
|
||||
_inputBehaviorsWindow == null
|
||||
) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
private class References {
|
||||
|
||||
[SerializeField]
|
||||
private Canvas _canvas;
|
||||
[SerializeField]
|
||||
private CanvasGroup _mainCanvasGroup;
|
||||
[SerializeField]
|
||||
private Transform _mainContent;
|
||||
[SerializeField]
|
||||
private Transform _mainContentInner;
|
||||
[SerializeField]
|
||||
private UIGroup _playersGroup;
|
||||
[SerializeField]
|
||||
private Transform _controllerGroup;
|
||||
[SerializeField]
|
||||
private Transform _controllerGroupLabelGroup;
|
||||
[SerializeField]
|
||||
private UIGroup _controllerSettingsGroup;
|
||||
[SerializeField]
|
||||
private UIGroup _assignedControllersGroup;
|
||||
[SerializeField]
|
||||
private Transform _settingsAndMapCategoriesGroup;
|
||||
[SerializeField]
|
||||
private UIGroup _settingsGroup;
|
||||
[SerializeField]
|
||||
private UIGroup _mapCategoriesGroup;
|
||||
[SerializeField]
|
||||
private Transform _inputGridGroup;
|
||||
[SerializeField]
|
||||
private Transform _inputGridContainer;
|
||||
[SerializeField]
|
||||
private Transform _inputGridHeadersGroup;
|
||||
[SerializeField]
|
||||
private Scrollbar _inputGridVScrollbar;
|
||||
[SerializeField]
|
||||
private ScrollRect _inputGridScrollRect;
|
||||
[SerializeField]
|
||||
private Transform _inputGridInnerGroup;
|
||||
[SerializeField]
|
||||
private Text _controllerNameLabel;
|
||||
[SerializeField]
|
||||
private Button _removeControllerButton;
|
||||
[SerializeField]
|
||||
private Button _assignControllerButton;
|
||||
[SerializeField]
|
||||
private Button _calibrateControllerButton;
|
||||
[SerializeField]
|
||||
private Button _doneButton;
|
||||
[SerializeField]
|
||||
private Button _restoreDefaultsButton;
|
||||
[SerializeField]
|
||||
private Selectable _defaultSelection;
|
||||
[SerializeField]
|
||||
private GameObject[] _fixedSelectableUIElements;
|
||||
|
||||
// OPTIONAL
|
||||
[SerializeField]
|
||||
private Image _mainBackgroundImage;
|
||||
|
||||
public Canvas canvas => _canvas;
|
||||
public CanvasGroup mainCanvasGroup => _mainCanvasGroup;
|
||||
public Transform mainContent => _mainContent;
|
||||
public Transform mainContentInner => _mainContentInner;
|
||||
public UIGroup playersGroup => _playersGroup;
|
||||
public Transform controllerGroup => _controllerGroup;
|
||||
public Transform controllerGroupLabelGroup => _controllerGroupLabelGroup;
|
||||
public UIGroup controllerSettingsGroup => _controllerSettingsGroup;
|
||||
public UIGroup assignedControllersGroup => _assignedControllersGroup;
|
||||
public Transform settingsAndMapCategoriesGroup => _settingsAndMapCategoriesGroup;
|
||||
public UIGroup settingsGroup => _settingsGroup;
|
||||
public UIGroup mapCategoriesGroup => _mapCategoriesGroup;
|
||||
public Transform inputGridGroup => _inputGridGroup;
|
||||
public Transform inputGridContainer => _inputGridContainer;
|
||||
public Transform inputGridHeadersGroup => _inputGridHeadersGroup;
|
||||
public Scrollbar inputGridVScrollbar => _inputGridVScrollbar;
|
||||
public ScrollRect inputGridScrollRect => _inputGridScrollRect;
|
||||
public Transform inputGridInnerGroup => _inputGridInnerGroup;
|
||||
public Text controllerNameLabel => _controllerNameLabel;
|
||||
public Button removeControllerButton => _removeControllerButton;
|
||||
public Button assignControllerButton => _assignControllerButton;
|
||||
public Button calibrateControllerButton => _calibrateControllerButton;
|
||||
public Button doneButton => _doneButton;
|
||||
public Button restoreDefaultsButton => _restoreDefaultsButton;
|
||||
public Selectable defaultSelection => _defaultSelection;
|
||||
public GameObject[] fixedSelectableUIElements => _fixedSelectableUIElements;
|
||||
|
||||
public Image mainBackgroundImage => _mainBackgroundImage;
|
||||
|
||||
// Runtime references
|
||||
|
||||
public LayoutElement inputGridLayoutElement { get; set; }
|
||||
public Transform inputGridActionColumn { get; set; }
|
||||
public Transform inputGridKeyboardColumn { get; set; }
|
||||
public Transform inputGridMouseColumn { get; set; }
|
||||
public Transform inputGridControllerColumn { get; set; }
|
||||
|
||||
public Transform inputGridHeader1 { get; set; }
|
||||
public Transform inputGridHeader2 { get; set; }
|
||||
public Transform inputGridHeader3 { get; set; }
|
||||
public Transform inputGridHeader4 { get; set; }
|
||||
|
||||
public bool Check() {
|
||||
if( _canvas == null ||
|
||||
_mainCanvasGroup == null ||
|
||||
_mainContent == null ||
|
||||
_mainContentInner == null ||
|
||||
_playersGroup == null ||
|
||||
_controllerGroup == null ||
|
||||
_controllerGroupLabelGroup == null ||
|
||||
_controllerSettingsGroup == null ||
|
||||
_assignedControllersGroup == null ||
|
||||
_settingsAndMapCategoriesGroup == null ||
|
||||
_settingsGroup == null ||
|
||||
_mapCategoriesGroup == null ||
|
||||
_inputGridGroup == null ||
|
||||
_inputGridContainer == null ||
|
||||
_inputGridHeadersGroup == null ||
|
||||
_inputGridVScrollbar == null ||
|
||||
_inputGridScrollRect == null ||
|
||||
_inputGridInnerGroup == null ||
|
||||
_controllerNameLabel == null ||
|
||||
_removeControllerButton == null ||
|
||||
_assignControllerButton == null ||
|
||||
_calibrateControllerButton == null ||
|
||||
_doneButton == null ||
|
||||
_restoreDefaultsButton == null ||
|
||||
_defaultSelection == null
|
||||
) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private class InputActionSet {
|
||||
private int _actionId;
|
||||
private AxisRange _axisRange;
|
||||
|
||||
public int actionId => _actionId;
|
||||
public AxisRange axisRange => _axisRange;
|
||||
|
||||
public InputActionSet(int actionId, AxisRange axisRange) {
|
||||
this._actionId = actionId;
|
||||
this._axisRange = axisRange;
|
||||
}
|
||||
}
|
||||
|
||||
private class InputMapping {
|
||||
public string actionName { get; private set; }
|
||||
public InputFieldInfo fieldInfo { get; private set; }
|
||||
public ControllerMap map { get; private set; }
|
||||
public ActionElementMap aem { get; private set; }
|
||||
public ControllerType controllerType { get; private set; }
|
||||
public int controllerId { get; private set; }
|
||||
|
||||
public ControllerPollingInfo pollingInfo { get; set; }
|
||||
public ModifierKeyFlags modifierKeyFlags { get; set; }
|
||||
|
||||
public AxisRange axisRange {
|
||||
get {
|
||||
AxisRange axisRange = AxisRange.Positive;
|
||||
if(pollingInfo.elementType == ControllerElementType.Axis) {
|
||||
if(fieldInfo.axisRange == AxisRange.Full) axisRange = AxisRange.Full;
|
||||
else axisRange = pollingInfo.axisPole == Pole.Positive ? AxisRange.Positive : AxisRange.Negative;
|
||||
}
|
||||
return axisRange;
|
||||
}
|
||||
}
|
||||
public string elementName {
|
||||
get {
|
||||
if(controllerType == ControllerType.Keyboard) {
|
||||
if(modifierKeyFlags != ModifierKeyFlags.None) {
|
||||
return string.Format("{0} + {1}", Keyboard.ModifierKeyFlagsToString(modifierKeyFlags), pollingInfo.elementIdentifierName);
|
||||
}
|
||||
}
|
||||
|
||||
string name = pollingInfo.elementIdentifierName;
|
||||
|
||||
// Get the positive/negative name for axes
|
||||
if(pollingInfo.elementType == ControllerElementType.Axis) {
|
||||
if(axisRange == AxisRange.Positive) name = pollingInfo.elementIdentifier.positiveName;
|
||||
else if(axisRange == AxisRange.Negative) name = pollingInfo.elementIdentifier.negativeName;
|
||||
}
|
||||
|
||||
return name;
|
||||
}
|
||||
}
|
||||
|
||||
public InputMapping(string actionName, InputFieldInfo fieldInfo, ControllerMap map, ActionElementMap aem, ControllerType controllerType, int controllerId) {
|
||||
this.actionName = actionName;
|
||||
this.fieldInfo = fieldInfo;
|
||||
this.map = map;
|
||||
this.aem = aem;
|
||||
this.controllerType = controllerType;
|
||||
this.controllerId = controllerId;
|
||||
}
|
||||
|
||||
public ElementAssignment ToElementAssignment(ControllerPollingInfo pollingInfo) {
|
||||
this.pollingInfo = pollingInfo;
|
||||
return ToElementAssignment();
|
||||
}
|
||||
public ElementAssignment ToElementAssignment(ControllerPollingInfo pollingInfo, ModifierKeyFlags modifierKeyFlags) {
|
||||
this.pollingInfo = pollingInfo;
|
||||
this.modifierKeyFlags = modifierKeyFlags;
|
||||
return ToElementAssignment();
|
||||
}
|
||||
public ElementAssignment ToElementAssignment() {
|
||||
return new ElementAssignment(
|
||||
controllerType,
|
||||
pollingInfo.elementType,
|
||||
pollingInfo.elementIdentifierId,
|
||||
axisRange,
|
||||
pollingInfo.keyboardKey,
|
||||
modifierKeyFlags,
|
||||
fieldInfo.actionId,
|
||||
fieldInfo.axisRange == AxisRange.Negative ? Pole.Negative : Pole.Positive,
|
||||
false,
|
||||
aem != null ? aem.id : -1
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
private class AxisCalibrator {
|
||||
|
||||
public AxisCalibrationData data;
|
||||
public readonly Joystick joystick;
|
||||
public readonly int axisIndex;
|
||||
|
||||
private Controller.Axis axis;
|
||||
private bool firstRun;
|
||||
|
||||
public bool isValid => axis != null;
|
||||
|
||||
public AxisCalibrator(Joystick joystick, int axisIndex) {
|
||||
this.data = new AxisCalibrationData();
|
||||
this.joystick = joystick;
|
||||
this.axisIndex = axisIndex;
|
||||
if(joystick != null && axisIndex >= 0 && joystick.axisCount > axisIndex) {
|
||||
axis = joystick.Axes[axisIndex];
|
||||
data = joystick.calibrationMap.GetAxis(axisIndex).GetData();
|
||||
}
|
||||
firstRun = true;
|
||||
}
|
||||
|
||||
public void RecordMinMax() {
|
||||
if(axis == null) return;
|
||||
|
||||
float valueRaw = axis.valueRaw;
|
||||
if(firstRun || valueRaw < data.min) data.min = valueRaw;
|
||||
if(firstRun || valueRaw > data.max) data.max = valueRaw;
|
||||
|
||||
firstRun = false;
|
||||
}
|
||||
|
||||
public void RecordZero() {
|
||||
if(axis == null) return;
|
||||
data.zero = axis.valueRaw;
|
||||
}
|
||||
|
||||
public void Commit() {
|
||||
if(axis == null) return;
|
||||
AxisCalibration calibration = joystick.calibrationMap.GetAxis(axisIndex);
|
||||
if(calibration == null) return;
|
||||
|
||||
// Make sure min/max isn't the same or joystick cannot move
|
||||
if(Mathf.Abs(data.max - data.min) < 0.1) return; // too close, joystick would be useless
|
||||
|
||||
calibration.SetData(data);
|
||||
}
|
||||
}
|
||||
|
||||
private class IndexedDictionary<TKey, TValue> {
|
||||
|
||||
private List<Entry> list;
|
||||
|
||||
public int Count => list.Count;
|
||||
|
||||
public IndexedDictionary() {
|
||||
list = new List<Entry>();
|
||||
}
|
||||
|
||||
public TValue this[int index] => list[index].value;
|
||||
|
||||
public TValue Get(TKey key) {
|
||||
int index = IndexOfKey(key);
|
||||
if(index < 0) throw new System.Exception("Key does not exist!");
|
||||
return list[index].value;
|
||||
}
|
||||
|
||||
public bool TryGet(TKey key, out TValue value) {
|
||||
value = default(TValue);
|
||||
int index = IndexOfKey(key);
|
||||
if(index < 0) return false;
|
||||
value = list[index].value;
|
||||
return true;
|
||||
}
|
||||
|
||||
public void Add(TKey key, TValue value) {
|
||||
if(ContainsKey(key)) throw new System.Exception("Key " + key.ToString() + " is already in use!");
|
||||
list.Add(new Entry(key, value));
|
||||
}
|
||||
|
||||
public int IndexOfKey(TKey key) {
|
||||
int count = list.Count;
|
||||
for(int i = 0; i < count; i++) {
|
||||
if(EqualityComparer<TKey>.Default.Equals(list[i].key, key)) return i;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
public bool ContainsKey(TKey key) {
|
||||
int count = list.Count;
|
||||
for(int i = 0; i < count; i++) {
|
||||
if(EqualityComparer<TKey>.Default.Equals(list[i].key, key)) return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public void Clear() {
|
||||
list.Clear();
|
||||
}
|
||||
|
||||
private class Entry {
|
||||
public TKey key;
|
||||
public TValue value;
|
||||
|
||||
public Entry(TKey key, TValue value) {
|
||||
this.key = key;
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 8e6633fc8be03d640a4fbf7fced52ef3
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
|
@ -0,0 +1,28 @@
|
|||
// Copyright (c) 2015 Augie R. Maddox, Guavaman Enterprises. All rights reserved.
|
||||
#pragma warning disable 0219
|
||||
#pragma warning disable 0618
|
||||
#pragma warning disable 0649
|
||||
|
||||
namespace Rewired.UI.ControlMapper {
|
||||
public partial class ControlMapper {
|
||||
|
||||
private enum LayoutElementSizeType {
|
||||
MinSize = 0,
|
||||
PreferredSize = 1
|
||||
}
|
||||
|
||||
private enum WindowType {
|
||||
None = 0,
|
||||
ChooseJoystick,
|
||||
JoystickAssignmentConflict,
|
||||
ElementAssignment,
|
||||
ElementAssignmentPrePolling,
|
||||
ElementAssignmentPolling,
|
||||
ElementAssignmentResult,
|
||||
ElementAssignmentConflict,
|
||||
Calibration,
|
||||
CalibrateStep1,
|
||||
CalibrateStep2
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 467218971864e7a4faf88d836ca4de91
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
|
@ -0,0 +1,539 @@
|
|||
// Copyright (c) 2015 Augie R. Maddox, Guavaman Enterprises. All rights reserved.
|
||||
#pragma warning disable 0219
|
||||
#pragma warning disable 0618
|
||||
#pragma warning disable 0649
|
||||
|
||||
namespace Rewired.UI.ControlMapper {
|
||||
|
||||
using UnityEngine;
|
||||
using System.Collections.Generic;
|
||||
using Rewired;
|
||||
|
||||
public partial class ControlMapper {
|
||||
|
||||
private class InputGrid {
|
||||
|
||||
private InputGridEntryList list;
|
||||
private List<GameObject> groups;
|
||||
|
||||
public InputGrid() {
|
||||
list = new InputGridEntryList();
|
||||
groups = new List<GameObject>();
|
||||
}
|
||||
|
||||
public void AddMapCategory(int mapCategoryId) {
|
||||
list.AddMapCategory(mapCategoryId);
|
||||
}
|
||||
|
||||
public void AddAction(int mapCategoryId, InputAction action, AxisRange axisRange) {
|
||||
list.AddAction(mapCategoryId, action, axisRange);
|
||||
}
|
||||
|
||||
public void AddActionCategory(int mapCategoryId, int actionCategoryId) {
|
||||
list.AddActionCategory(mapCategoryId, actionCategoryId);
|
||||
}
|
||||
|
||||
public void AddInputFieldSet(int mapCategoryId, InputAction action, AxisRange axisRange, ControllerType controllerType, GameObject fieldSetContainer) {
|
||||
list.AddInputFieldSet(mapCategoryId, action, axisRange, controllerType, fieldSetContainer);
|
||||
}
|
||||
|
||||
public void AddInputField(int mapCategoryId, InputAction action, AxisRange axisRange, ControllerType controllerType, int fieldIndex, GUIInputField inputField) {
|
||||
list.AddInputField(mapCategoryId, action, axisRange, controllerType, fieldIndex, inputField);
|
||||
}
|
||||
|
||||
public void AddGroup(GameObject group) {
|
||||
groups.Add(group);
|
||||
}
|
||||
|
||||
public void AddActionLabel(int mapCategoryId, int actionId, AxisRange axisRange, GUILabel label) {
|
||||
list.AddActionLabel(mapCategoryId, actionId, axisRange, label);
|
||||
}
|
||||
|
||||
public void AddActionCategoryLabel(int mapCategoryId, int actionCategoryId, GUILabel label) {
|
||||
list.AddActionCategoryLabel(mapCategoryId, actionCategoryId, label);
|
||||
}
|
||||
|
||||
public bool Contains(int mapCategoryId, int actionId, AxisRange axisRange, ControllerType controllerType, int fieldIndex) {
|
||||
return list.Contains(mapCategoryId, actionId, axisRange, controllerType, fieldIndex);
|
||||
}
|
||||
|
||||
public GUIInputField GetGUIInputField(int mapCategoryId, int actionId, AxisRange axisRange, ControllerType controllerType, int fieldIndex) {
|
||||
return list.GetGUIInputField(mapCategoryId, actionId, axisRange, controllerType, fieldIndex);
|
||||
}
|
||||
|
||||
public IEnumerable<InputActionSet> GetActionSets(int mapCategoryId) {
|
||||
return list.GetActionSets(mapCategoryId);
|
||||
}
|
||||
|
||||
public void SetColumnHeight(int mapCategoryId, float height) {
|
||||
list.SetColumnHeight(mapCategoryId, height);
|
||||
}
|
||||
|
||||
public float GetColumnHeight(int mapCategoryId) {
|
||||
return list.GetColumnHeight(mapCategoryId);
|
||||
}
|
||||
|
||||
public void SetFieldsActive(int mapCategoryId, bool state) {
|
||||
list.SetFieldsActive(mapCategoryId, state);
|
||||
}
|
||||
|
||||
public void SetFieldLabel(int mapCategoryId, int actionId, AxisRange axisRange, ControllerType controllerType, int index, string label) {
|
||||
list.SetLabel(mapCategoryId, actionId, axisRange, controllerType, index, label);
|
||||
}
|
||||
|
||||
public void PopulateField(int mapCategoryId, int actionId, AxisRange axisRange, ControllerType controllerType, int controllerId, int index, int actionElementMapId, string label, bool invert) {
|
||||
list.PopulateField(mapCategoryId, actionId, axisRange, controllerType, controllerId, index, actionElementMapId, label, invert);
|
||||
}
|
||||
|
||||
public void SetFixedFieldData(int mapCategoryId, int actionId, AxisRange axisRange, ControllerType controllerType, int controllerId) {
|
||||
list.SetFixedFieldData(mapCategoryId, actionId, axisRange, controllerType, controllerId);
|
||||
}
|
||||
|
||||
public void InitializeFields(int mapCategoryId) {
|
||||
list.InitializeFields(mapCategoryId);
|
||||
}
|
||||
|
||||
public void Show(int mapCategoryId) {
|
||||
list.Show(mapCategoryId);
|
||||
}
|
||||
|
||||
public void HideAll() {
|
||||
list.HideAll();
|
||||
}
|
||||
|
||||
public void ClearLabels(int mapCategoryId) {
|
||||
list.ClearLabels(mapCategoryId);
|
||||
}
|
||||
|
||||
private void ClearGroups() {
|
||||
for(int i = 0; i < groups.Count; i++) {
|
||||
if(groups[i] == null) continue;
|
||||
Object.Destroy(groups[i]);
|
||||
}
|
||||
}
|
||||
|
||||
public void ClearAll() {
|
||||
ClearGroups();
|
||||
list.Clear();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
private class InputGridEntryList {
|
||||
|
||||
private IndexedDictionary<int, MapCategoryEntry> entries;
|
||||
|
||||
public InputGridEntryList() {
|
||||
entries = new IndexedDictionary<int, MapCategoryEntry>();
|
||||
}
|
||||
|
||||
public void AddMapCategory(int mapCategoryId) {
|
||||
if(mapCategoryId < 0) return;
|
||||
if(entries.ContainsKey(mapCategoryId)) return; // already used
|
||||
entries.Add(mapCategoryId, new MapCategoryEntry());
|
||||
}
|
||||
|
||||
public void AddAction(int mapCategoryId, InputAction action, AxisRange axisRange) {
|
||||
AddActionEntry(mapCategoryId, action, axisRange);
|
||||
}
|
||||
|
||||
private ActionEntry AddActionEntry(int mapCategoryId, InputAction action, AxisRange axisRange) {
|
||||
if(action == null) return null;
|
||||
MapCategoryEntry entry;
|
||||
if(!entries.TryGet(mapCategoryId, out entry)) return null;
|
||||
return entry.AddAction(action, axisRange);
|
||||
}
|
||||
|
||||
public void AddActionLabel(int mapCategoryId, int actionId, AxisRange axisRange, GUILabel label) {
|
||||
MapCategoryEntry entry;
|
||||
if(!entries.TryGet(mapCategoryId, out entry)) return;
|
||||
|
||||
ActionEntry actionEntry = entry.GetActionEntry(actionId, axisRange);
|
||||
if(actionEntry == null) return;
|
||||
|
||||
actionEntry.SetLabel(label);
|
||||
}
|
||||
|
||||
public void AddActionCategory(int mapCategoryId, int actionCategoryId) {
|
||||
AddActionCategoryEntry(mapCategoryId, actionCategoryId);
|
||||
}
|
||||
|
||||
private ActionCategoryEntry AddActionCategoryEntry(int mapCategoryId, int actionCategoryId) {
|
||||
MapCategoryEntry entry;
|
||||
if(!entries.TryGet(mapCategoryId, out entry)) return null;
|
||||
return entry.AddActionCategory(actionCategoryId);
|
||||
}
|
||||
|
||||
public void AddActionCategoryLabel(int mapCategoryId, int actionCategoryId, GUILabel label) {
|
||||
MapCategoryEntry entry;
|
||||
if(!entries.TryGet(mapCategoryId, out entry)) return;
|
||||
|
||||
ActionCategoryEntry actionCategoryEntry = entry.GetActionCategoryEntry(actionCategoryId);
|
||||
if(actionCategoryEntry == null) return;
|
||||
|
||||
actionCategoryEntry.SetLabel(label);
|
||||
}
|
||||
|
||||
public void AddInputFieldSet(int mapCategoryId, InputAction action, AxisRange axisRange, ControllerType controllerType, GameObject fieldSetContainer) {
|
||||
ActionEntry actionEntry = GetActionEntry(mapCategoryId, action, axisRange);
|
||||
if(actionEntry == null) return;
|
||||
actionEntry.AddInputFieldSet(controllerType, fieldSetContainer);
|
||||
}
|
||||
|
||||
public void AddInputField(int mapCategoryId, InputAction action, AxisRange axisRange, ControllerType controllerType, int fieldIndex, GUIInputField inputField) {
|
||||
ActionEntry actionEntry = GetActionEntry(mapCategoryId, action, axisRange);
|
||||
if(actionEntry == null) return;
|
||||
actionEntry.AddInputField(controllerType, fieldIndex, inputField);
|
||||
}
|
||||
|
||||
public bool Contains(int mapCategoryId, int actionId, AxisRange axisRange) {
|
||||
return GetActionEntry(mapCategoryId, actionId, axisRange) != null;
|
||||
}
|
||||
public bool Contains(int mapCategoryId, int actionId, AxisRange axisRange, ControllerType controllerType, int fieldIndex) {
|
||||
ActionEntry actionEntry = GetActionEntry(mapCategoryId, actionId, axisRange);
|
||||
if(actionEntry == null) return false;
|
||||
return actionEntry.Contains(controllerType, fieldIndex);
|
||||
}
|
||||
|
||||
public void SetColumnHeight(int mapCategoryId, float height) {
|
||||
MapCategoryEntry entry;
|
||||
if(!entries.TryGet(mapCategoryId, out entry)) return;
|
||||
entry.columnHeight = height;
|
||||
}
|
||||
|
||||
public float GetColumnHeight(int mapCategoryId) {
|
||||
MapCategoryEntry entry;
|
||||
if(!entries.TryGet(mapCategoryId, out entry)) return 0.0f;
|
||||
return entry.columnHeight;
|
||||
}
|
||||
|
||||
public GUIInputField GetGUIInputField(int mapCategoryId, int actionId, AxisRange axisRange, ControllerType controllerType, int fieldIndex) {
|
||||
ActionEntry actionEntry = GetActionEntry(mapCategoryId, actionId, axisRange);
|
||||
if(actionEntry == null) return null;
|
||||
return actionEntry.GetGUIInputField(controllerType, fieldIndex);
|
||||
}
|
||||
|
||||
private ActionEntry GetActionEntry(int mapCategoryId, int actionId, AxisRange axisRange) {
|
||||
if(actionId < 0) return null;
|
||||
|
||||
MapCategoryEntry entry;
|
||||
if(!entries.TryGet(mapCategoryId, out entry)) return null;
|
||||
|
||||
ActionEntry actionEntry = entry.GetActionEntry(actionId, axisRange);
|
||||
return actionEntry;
|
||||
}
|
||||
private ActionEntry GetActionEntry(int mapCategoryId, InputAction action, AxisRange axisRange) {
|
||||
if(action == null) return null;
|
||||
return GetActionEntry(mapCategoryId, action.id, axisRange);
|
||||
}
|
||||
|
||||
public IEnumerable<InputActionSet> GetActionSets(int mapCategoryId) {
|
||||
MapCategoryEntry entry;
|
||||
if(!entries.TryGet(mapCategoryId, out entry)) yield break;
|
||||
|
||||
List<ActionEntry> list = entry.actionList;
|
||||
int count = list != null ? list.Count : 0;
|
||||
for(int i = 0; i < count; i++) {
|
||||
yield return list[i].actionSet;
|
||||
}
|
||||
}
|
||||
|
||||
public void SetFieldsActive(int mapCategoryId, bool state) {
|
||||
MapCategoryEntry entry;
|
||||
if(!entries.TryGet(mapCategoryId, out entry)) return;
|
||||
|
||||
List<ActionEntry> list = entry.actionList;
|
||||
int count = list != null ? list.Count : 0;
|
||||
for(int i = 0; i < count; i++) {
|
||||
list[i].SetFieldsActive(state);
|
||||
}
|
||||
}
|
||||
|
||||
public void SetLabel(int mapCategoryId, int actionId, AxisRange axisRange, ControllerType controllerType, int index, string label) {
|
||||
ActionEntry entry = GetActionEntry(mapCategoryId, actionId, axisRange);
|
||||
if(entry == null) return;
|
||||
entry.SetFieldLabel(controllerType, index, label);
|
||||
}
|
||||
|
||||
public void PopulateField(int mapCategoryId, int actionId, AxisRange axisRange, ControllerType controllerType, int controllerId, int index, int actionElementMapId, string label, bool invert) {
|
||||
ActionEntry entry = GetActionEntry(mapCategoryId, actionId, axisRange);
|
||||
if(entry == null) return;
|
||||
entry.PopulateField(controllerType, controllerId, index, actionElementMapId, label, invert);
|
||||
}
|
||||
|
||||
public void SetFixedFieldData(int mapCategoryId, int actionId, AxisRange axisRange, ControllerType controllerType, int controllerId) {
|
||||
ActionEntry entry = GetActionEntry(mapCategoryId, actionId, axisRange);
|
||||
if(entry == null) return;
|
||||
entry.SetFixedFieldData(controllerType, controllerId);
|
||||
}
|
||||
|
||||
public void InitializeFields(int mapCategoryId) {
|
||||
MapCategoryEntry entry;
|
||||
if(!entries.TryGet(mapCategoryId, out entry)) return;
|
||||
|
||||
List<ActionEntry> list = entry.actionList;
|
||||
int count = list != null ? list.Count : 0;
|
||||
for(int i = 0; i < count; i++) {
|
||||
list[i].Initialize();
|
||||
}
|
||||
}
|
||||
|
||||
public void Show(int mapCategoryId) {
|
||||
MapCategoryEntry entry;
|
||||
if(!entries.TryGet(mapCategoryId, out entry)) return;
|
||||
entry.SetAllActive(true);
|
||||
}
|
||||
|
||||
public void HideAll() {
|
||||
for(int i = 0; i < entries.Count; i++) {
|
||||
entries[i].SetAllActive(false);
|
||||
}
|
||||
}
|
||||
|
||||
public void ClearLabels(int mapCategoryId) {
|
||||
MapCategoryEntry entry;
|
||||
if(!entries.TryGet(mapCategoryId, out entry)) return;
|
||||
|
||||
List<ActionEntry> list = entry.actionList;
|
||||
int count = list != null ? list.Count : 0;
|
||||
for(int i = 0; i < count; i++) {
|
||||
list[i].ClearLabels();
|
||||
}
|
||||
}
|
||||
|
||||
public void Clear() {
|
||||
entries.Clear();
|
||||
}
|
||||
|
||||
private class MapCategoryEntry {
|
||||
|
||||
private List<ActionEntry> _actionList;
|
||||
private IndexedDictionary<int, ActionCategoryEntry> _actionCategoryList;
|
||||
private float _columnHeight;
|
||||
|
||||
public List<ActionEntry> actionList => _actionList;
|
||||
public IndexedDictionary<int, ActionCategoryEntry> actionCategoryList => _actionCategoryList;
|
||||
public float columnHeight { get { return _columnHeight; } set { _columnHeight = value; } }
|
||||
|
||||
public MapCategoryEntry() {
|
||||
_actionList = new List<ActionEntry>();
|
||||
_actionCategoryList = new IndexedDictionary<int, ActionCategoryEntry>();
|
||||
}
|
||||
|
||||
public ActionEntry GetActionEntry(int actionId, AxisRange axisRange) {
|
||||
int index = IndexOfActionEntry(actionId, axisRange);
|
||||
if(index < 0) return null;
|
||||
return _actionList[index];
|
||||
}
|
||||
|
||||
public int IndexOfActionEntry(int actionId, AxisRange axisRange) {
|
||||
int count = _actionList.Count;
|
||||
for(int i = 0; i < count; i++) {
|
||||
if(_actionList[i].Matches(actionId, axisRange)) return i;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
public bool ContainsActionEntry(int actionId, AxisRange axisRange) {
|
||||
return IndexOfActionEntry(actionId, axisRange) >= 0;
|
||||
}
|
||||
|
||||
public ActionEntry AddAction(InputAction action, AxisRange axisRange) {
|
||||
if(action == null) return null;
|
||||
if(ContainsActionEntry(action.id, axisRange)) return null; // already used
|
||||
_actionList.Add(new ActionEntry(action, axisRange));
|
||||
return _actionList[_actionList.Count - 1];
|
||||
}
|
||||
|
||||
public ActionCategoryEntry GetActionCategoryEntry(int actionCategoryId) {
|
||||
if(!_actionCategoryList.ContainsKey(actionCategoryId)) return null;
|
||||
return _actionCategoryList.Get(actionCategoryId);
|
||||
}
|
||||
|
||||
public ActionCategoryEntry AddActionCategory(int actionCategoryId) {
|
||||
if(actionCategoryId < 0) return null;
|
||||
if(_actionCategoryList.ContainsKey(actionCategoryId)) return null; // already used
|
||||
_actionCategoryList.Add(actionCategoryId, new ActionCategoryEntry(actionCategoryId));
|
||||
return _actionCategoryList.Get(actionCategoryId);
|
||||
}
|
||||
|
||||
public void SetAllActive(bool state) {
|
||||
for(int i = 0; i < _actionCategoryList.Count; i++) {
|
||||
_actionCategoryList[i].SetActive(state);
|
||||
}
|
||||
for(int i = 0; i < _actionList.Count; i++) {
|
||||
_actionList[i].SetActive(state);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private class ActionEntry {
|
||||
|
||||
private IndexedDictionary<int, FieldSet> fieldSets;
|
||||
|
||||
public GUILabel label;
|
||||
public readonly InputAction action;
|
||||
public readonly AxisRange axisRange;
|
||||
|
||||
public readonly InputActionSet actionSet;
|
||||
|
||||
public ActionEntry(InputAction action, AxisRange axisRange) {
|
||||
this.action = action;
|
||||
this.axisRange = axisRange;
|
||||
this.actionSet = new InputActionSet(action.id, axisRange);
|
||||
fieldSets = new IndexedDictionary<int, FieldSet>();
|
||||
}
|
||||
|
||||
public void SetLabel(GUILabel label) {
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
public bool Matches(int actionId, AxisRange axisRange) {
|
||||
if(this.action.id != actionId) return false;
|
||||
if(this.axisRange != axisRange) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public void AddInputFieldSet(ControllerType controllerType, GameObject fieldSetContainer) {
|
||||
if(fieldSets.ContainsKey((int)controllerType)) return;
|
||||
fieldSets.Add((int)controllerType, new FieldSet(fieldSetContainer));
|
||||
}
|
||||
|
||||
public void AddInputField(ControllerType controllerType, int fieldIndex, GUIInputField inputField) {
|
||||
if(!fieldSets.ContainsKey((int)controllerType)) return;
|
||||
FieldSet fieldSet = fieldSets.Get((int)controllerType);
|
||||
if(fieldSet.fields.ContainsKey(fieldIndex)) return; // already used
|
||||
fieldSet.fields.Add(fieldIndex, inputField);
|
||||
}
|
||||
|
||||
public GUIInputField GetGUIInputField(ControllerType controllerType, int fieldIndex) {
|
||||
if(!fieldSets.ContainsKey((int)controllerType)) return null;
|
||||
if(!fieldSets.Get((int)controllerType).fields.ContainsKey(fieldIndex)) return null;
|
||||
return fieldSets.Get((int)controllerType).fields.Get(fieldIndex);
|
||||
}
|
||||
|
||||
public bool Contains(ControllerType controllerType, int fieldId) {
|
||||
if(!fieldSets.ContainsKey((int)controllerType)) return false;
|
||||
if(!fieldSets.Get((int)controllerType).fields.ContainsKey(fieldId)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public void SetFieldLabel(ControllerType controllerType, int index, string label) {
|
||||
if(!fieldSets.ContainsKey((int)controllerType)) return;
|
||||
if(!fieldSets.Get((int)controllerType).fields.ContainsKey(index)) return;
|
||||
fieldSets.Get((int)controllerType).fields.Get(index).SetLabel(label);
|
||||
}
|
||||
|
||||
public void PopulateField(ControllerType controllerType, int controllerId, int index, int actionElementMapId, string label, bool invert) {
|
||||
if(!fieldSets.ContainsKey((int)controllerType)) return;
|
||||
if(!fieldSets.Get((int)controllerType).fields.ContainsKey(index)) return;
|
||||
|
||||
GUIInputField field = fieldSets.Get((int)controllerType).fields.Get(index);
|
||||
field.SetLabel(label); // set the label
|
||||
field.actionElementMapId = actionElementMapId; // store the element map id
|
||||
field.controllerId = controllerId;
|
||||
if(field.hasToggle) {
|
||||
field.toggle.SetInteractible(true, false);
|
||||
field.toggle.SetToggleState(invert);
|
||||
field.toggle.actionElementMapId = actionElementMapId; // store the element map id
|
||||
}
|
||||
}
|
||||
|
||||
public void SetFixedFieldData(ControllerType controllerType, int controllerId) {
|
||||
if(!fieldSets.ContainsKey((int)controllerType)) return;
|
||||
var setEntries = fieldSets.Get((int)controllerType);
|
||||
int count = setEntries.fields.Count;
|
||||
for(int i = 0; i < count; i++) {
|
||||
setEntries.fields[i].controllerId = controllerId; // store the controller id
|
||||
}
|
||||
}
|
||||
|
||||
public void Initialize() {
|
||||
for(int i = 0; i < fieldSets.Count; i++) {
|
||||
var fieldSet = fieldSets[i];
|
||||
int count = fieldSet.fields.Count;
|
||||
for(int j = 0; j < count; j++) {
|
||||
GUIInputField field = fieldSet.fields[j];
|
||||
if(field.hasToggle) {
|
||||
field.toggle.SetInteractible(false, false); // disable toggle
|
||||
field.toggle.SetToggleState(false); // unset toggle
|
||||
field.toggle.actionElementMapId = -1;
|
||||
}
|
||||
field.SetLabel("");
|
||||
field.actionElementMapId = -1;
|
||||
field.controllerId = -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void SetActive(bool state) {
|
||||
if(label != null) label.SetActive(state);
|
||||
int count = fieldSets.Count;
|
||||
for(int i = 0; i < count; i++) {
|
||||
fieldSets[i].groupContainer.SetActive(state);
|
||||
}
|
||||
}
|
||||
|
||||
public void ClearLabels() {
|
||||
for(int i = 0; i < fieldSets.Count; i++) {
|
||||
var fieldSet = fieldSets[i];
|
||||
int count = fieldSet.fields.Count;
|
||||
for(int j = 0; j < count; j++) {
|
||||
GUIInputField field = fieldSet.fields[j];
|
||||
field.SetLabel("");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void SetFieldsActive(bool state) {
|
||||
for(int i = 0; i < fieldSets.Count; i++) {
|
||||
var fieldSet = fieldSets[i];
|
||||
int count = fieldSet.fields.Count;
|
||||
for(int j = 0; j < count; j++) {
|
||||
GUIInputField field = fieldSet.fields[j];
|
||||
field.SetInteractible(state, false);
|
||||
if(field.hasToggle) {
|
||||
if(!state || field.toggle.actionElementMapId >= 0) { // only enable toggle if something is mapped. Disable it regardless.
|
||||
field.toggle.SetInteractible(state, false); // set toggle state
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private class FieldSet {
|
||||
public readonly GameObject groupContainer;
|
||||
public readonly IndexedDictionary<int, GUIInputField> fields;
|
||||
|
||||
public FieldSet(GameObject groupContainer) {
|
||||
this.groupContainer = groupContainer;
|
||||
fields = new IndexedDictionary<int, GUIInputField>();
|
||||
}
|
||||
}
|
||||
|
||||
private class ActionCategoryEntry {
|
||||
|
||||
public readonly int actionCategoryId;
|
||||
public GUILabel label;
|
||||
|
||||
public ActionCategoryEntry(int actionCategoryId) {
|
||||
this.actionCategoryId = actionCategoryId;
|
||||
}
|
||||
|
||||
public void SetLabel(GUILabel label) {
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
public void SetActive(bool state) {
|
||||
if(label != null) label.SetActive(state);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 3df4f78e545603646b14f54e328b90d0
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
|
@ -0,0 +1,227 @@
|
|||
// Copyright (c) 2015 Augie R. Maddox, Guavaman Enterprises. All rights reserved.
|
||||
#pragma warning disable 0219
|
||||
#pragma warning disable 0618
|
||||
#pragma warning disable 0649
|
||||
|
||||
namespace Rewired.UI.ControlMapper {
|
||||
|
||||
using UnityEngine;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class ControlMapper {
|
||||
|
||||
private class WindowManager {
|
||||
|
||||
private List<Window> windows;
|
||||
private GameObject windowPrefab;
|
||||
private Transform parent;
|
||||
private GameObject fader;
|
||||
|
||||
private int idCounter = 0;
|
||||
|
||||
public bool isWindowOpen {
|
||||
get {
|
||||
for(int i = windows.Count - 1; i >= 0; i--) {
|
||||
if(windows[i] == null) continue;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
public Window topWindow {
|
||||
get {
|
||||
for(int i = windows.Count - 1; i >= 0; i--) {
|
||||
if(windows[i] == null) continue;
|
||||
return windows[i];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public WindowManager(GameObject windowPrefab, GameObject faderPrefab, Transform parent) {
|
||||
this.windowPrefab = windowPrefab;
|
||||
this.parent = parent;
|
||||
windows = new List<Window>();
|
||||
fader = (GameObject)Object.Instantiate(faderPrefab);
|
||||
fader.transform.SetParent(parent, false);
|
||||
fader.GetComponent<RectTransform>().localScale = Vector2.one;
|
||||
SetFaderActive(false);
|
||||
}
|
||||
|
||||
|
||||
public Window OpenWindow(string name, int width, int height) {
|
||||
Window window = InstantiateWindow(name, width, height);
|
||||
UpdateFader();
|
||||
return window;
|
||||
}
|
||||
|
||||
public Window OpenWindow(GameObject windowPrefab, string name) {
|
||||
if(windowPrefab == null) {
|
||||
Debug.LogError("Rewired Control Mapper: Window Prefab is null!");
|
||||
return null;
|
||||
}
|
||||
Window window = InstantiateWindow(name, windowPrefab);
|
||||
UpdateFader();
|
||||
return window;
|
||||
}
|
||||
|
||||
public void CloseTop() {
|
||||
for(int i = windows.Count - 1; i >= 0; i--) {
|
||||
if(windows[i] == null) {
|
||||
windows.RemoveAt(i); // remove null entry
|
||||
continue;
|
||||
}
|
||||
DestroyWindow(windows[i]);
|
||||
windows.RemoveAt(i);
|
||||
break;
|
||||
}
|
||||
UpdateFader();
|
||||
}
|
||||
|
||||
public void CloseWindow(int windowId) {
|
||||
CloseWindow(GetWindow(windowId));
|
||||
}
|
||||
public void CloseWindow(Window window) {
|
||||
if(window == null) return;
|
||||
for(int i = windows.Count - 1; i >= 0; i--) {
|
||||
if(windows[i] == null) {
|
||||
windows.RemoveAt(i); // remove null entry
|
||||
continue;
|
||||
}
|
||||
if(windows[i] != window) continue;
|
||||
DestroyWindow(windows[i]);
|
||||
windows.RemoveAt(i);
|
||||
break;
|
||||
}
|
||||
UpdateFader();
|
||||
FocusTopWindow();
|
||||
}
|
||||
|
||||
public void CloseAll() {
|
||||
SetFaderActive(false);
|
||||
for(int i = windows.Count - 1; i >= 0; i--) {
|
||||
if(windows[i] == null) {
|
||||
windows.RemoveAt(i); // remove null entry
|
||||
continue;
|
||||
}
|
||||
DestroyWindow(windows[i]);
|
||||
windows.RemoveAt(i);
|
||||
}
|
||||
UpdateFader();
|
||||
}
|
||||
|
||||
public void CancelAll() {
|
||||
if(!isWindowOpen) return;
|
||||
for(int i = windows.Count - 1; i >= 0; i--) {
|
||||
if(windows[i] == null) continue;
|
||||
windows[i].Cancel();
|
||||
}
|
||||
CloseAll();
|
||||
}
|
||||
|
||||
public Window GetWindow(int windowId) {
|
||||
if(windowId < 0) return null;
|
||||
for(int i = windows.Count - 1; i >= 0; i--) {
|
||||
if(windows[i] == null) continue;
|
||||
if(windows[i].id != windowId) continue;
|
||||
return windows[i];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public bool IsFocused(int windowId) {
|
||||
if(windowId < 0) return false;
|
||||
if(topWindow == null) return false;
|
||||
return topWindow.id == windowId;
|
||||
}
|
||||
|
||||
public void Focus(int windowId) {
|
||||
Focus(GetWindow(windowId));
|
||||
}
|
||||
public void Focus(Window window) {
|
||||
if(window == null) return;
|
||||
window.TakeInputFocus();
|
||||
DefocusOtherWindows(window.id);
|
||||
}
|
||||
|
||||
private void DefocusOtherWindows(int focusedWindowId) {
|
||||
if(focusedWindowId < 0) return;
|
||||
for(int i = windows.Count - 1; i >= 0; i--) {
|
||||
if(windows[i] == null) continue;
|
||||
if(windows[i].id == focusedWindowId) continue; // skip focused window
|
||||
windows[i].Disable();
|
||||
}
|
||||
}
|
||||
|
||||
private void UpdateFader() {
|
||||
if(!isWindowOpen) {
|
||||
SetFaderActive(false);
|
||||
return;
|
||||
}
|
||||
|
||||
// Activate the fader and move it behind the top window in the hierarchy
|
||||
Transform windowParent = topWindow.transform.parent;
|
||||
if(windowParent == null) return;
|
||||
|
||||
SetFaderActive(true); // activate fader
|
||||
|
||||
fader.transform.SetAsLastSibling(); // move to last place
|
||||
int topWindowIndex = topWindow.transform.GetSiblingIndex(); // get index of the top window which should always be next-to-last
|
||||
fader.transform.SetSiblingIndex(topWindowIndex); // move to next-to-last place
|
||||
|
||||
}
|
||||
|
||||
private void FocusTopWindow() {
|
||||
if(topWindow == null) return;
|
||||
topWindow.TakeInputFocus();
|
||||
}
|
||||
|
||||
private void SetFaderActive(bool state) {
|
||||
fader.SetActive(state);
|
||||
}
|
||||
|
||||
private Window InstantiateWindow(string name, int width, int height) {
|
||||
if(string.IsNullOrEmpty(name)) name = "Window";
|
||||
GameObject instance = UI.ControlMapper.UITools.InstantiateGUIObject<Window>(windowPrefab, parent, name);
|
||||
if(instance == null) return null;
|
||||
Window window = instance.GetComponent<Window>();
|
||||
if(window != null) {
|
||||
window.Initialize(GetNewId(), IsFocused);
|
||||
windows.Add(window);
|
||||
window.SetSize(width, height);
|
||||
}
|
||||
return window;
|
||||
}
|
||||
private Window InstantiateWindow(string name, GameObject windowPrefab) {
|
||||
if(string.IsNullOrEmpty(name)) name = "Window";
|
||||
if(windowPrefab == null) return null;
|
||||
GameObject instance = UI.ControlMapper.UITools.InstantiateGUIObject<Window>(windowPrefab, parent, name);
|
||||
if(instance == null) return null;
|
||||
Window window = instance.GetComponent<Window>();
|
||||
if(window != null) {
|
||||
window.Initialize(GetNewId(), IsFocused);
|
||||
windows.Add(window);
|
||||
}
|
||||
return window;
|
||||
}
|
||||
|
||||
private void DestroyWindow(Window window) {
|
||||
if(window == null) return;
|
||||
Object.Destroy(window.gameObject);
|
||||
}
|
||||
|
||||
private int GetNewId() {
|
||||
int id = idCounter;
|
||||
idCounter++;
|
||||
return id;
|
||||
}
|
||||
|
||||
public void ClearCompletely() {
|
||||
CloseAll();
|
||||
if(fader != null) Object.Destroy(fader);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 51dc8c3336dee634aa5275782cf622c3
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
|
@ -0,0 +1,244 @@
|
|||
// Copyright (c) 2015 Augie R. Maddox, Guavaman Enterprises. All rights reserved.
|
||||
#pragma warning disable 0219
|
||||
#pragma warning disable 0618
|
||||
#pragma warning disable 0649
|
||||
|
||||
namespace Rewired.UI.ControlMapper {
|
||||
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using UnityEngine.EventSystems;
|
||||
using UnityEngine.Events;
|
||||
using System.Collections;
|
||||
|
||||
/// <summary>
|
||||
/// Overrides auto-navigation in Selectable because it's inadequate for selectables inside a scroll rect
|
||||
/// Also enables selection of disabled controls for better navigation experience.
|
||||
/// </summary>
|
||||
[AddComponentMenu("")]
|
||||
public class CustomButton : Button, ICustomSelectable {
|
||||
|
||||
[SerializeField]
|
||||
private Sprite _disabledHighlightedSprite;
|
||||
[SerializeField]
|
||||
private Color _disabledHighlightedColor;
|
||||
[SerializeField]
|
||||
private string _disabledHighlightedTrigger;
|
||||
|
||||
[SerializeField]
|
||||
private bool _autoNavUp = true;
|
||||
[SerializeField]
|
||||
private bool _autoNavDown = true;
|
||||
[SerializeField]
|
||||
private bool _autoNavLeft = true;
|
||||
[SerializeField]
|
||||
private bool _autoNavRight = true;
|
||||
|
||||
public Sprite disabledHighlightedSprite { get { return _disabledHighlightedSprite; } set { _disabledHighlightedSprite = value; } }
|
||||
public Color disabledHighlightedColor { get { return _disabledHighlightedColor; } set { _disabledHighlightedColor = value; } }
|
||||
public string disabledHighlightedTrigger { get { return _disabledHighlightedTrigger; } set { _disabledHighlightedTrigger = value; } }
|
||||
|
||||
public bool autoNavUp { get { return _autoNavUp; } set { _autoNavUp = value; } }
|
||||
public bool autoNavDown { get { return _autoNavDown; } set { _autoNavDown = value; } }
|
||||
public bool autoNavLeft { get { return _autoNavLeft; } set { _autoNavLeft = value; } }
|
||||
public bool autoNavRight { get { return _autoNavRight; } set { _autoNavRight = value; } }
|
||||
|
||||
private bool isDisabled => !IsInteractable();
|
||||
private bool isHighlightDisabled;
|
||||
|
||||
// Events
|
||||
|
||||
private event UnityAction _CancelEvent;
|
||||
public event UnityAction CancelEvent { add { _CancelEvent += value; } remove { _CancelEvent -= value; } }
|
||||
|
||||
#region Selectable Overrides
|
||||
|
||||
public override Selectable FindSelectableOnLeft() {
|
||||
if((navigation.mode & Navigation.Mode.Horizontal) != 0 || _autoNavLeft) {
|
||||
return UISelectionUtility.FindNextSelectable(this, transform, Selectable.allSelectables, transform.rotation * Vector3.left);
|
||||
}
|
||||
return base.FindSelectableOnLeft();
|
||||
}
|
||||
|
||||
public override Selectable FindSelectableOnRight() {
|
||||
if((navigation.mode & Navigation.Mode.Horizontal) != 0 || _autoNavRight) {
|
||||
return UISelectionUtility.FindNextSelectable(this, transform, Selectable.allSelectables, transform.rotation * Vector3.right);
|
||||
}
|
||||
return base.FindSelectableOnRight();
|
||||
}
|
||||
|
||||
public override Selectable FindSelectableOnUp() {
|
||||
if((navigation.mode & Navigation.Mode.Vertical) != 0 || _autoNavUp) {
|
||||
return UISelectionUtility.FindNextSelectable(this, transform, Selectable.allSelectables, transform.rotation * Vector3.up);
|
||||
}
|
||||
return base.FindSelectableOnUp();
|
||||
}
|
||||
|
||||
public override Selectable FindSelectableOnDown() {
|
||||
if((navigation.mode & Navigation.Mode.Vertical) != 0 || _autoNavDown) {
|
||||
return UISelectionUtility.FindNextSelectable(this, transform, Selectable.allSelectables, transform.rotation * Vector3.down);
|
||||
}
|
||||
return base.FindSelectableOnDown();
|
||||
}
|
||||
|
||||
protected override void OnCanvasGroupChanged() {
|
||||
base.OnCanvasGroupChanged();
|
||||
|
||||
if(EventSystem.current == null) return;
|
||||
|
||||
// Handle highlight-disabled state transition
|
||||
EvaluateHightlightDisabled(EventSystem.current.currentSelectedGameObject == gameObject);
|
||||
}
|
||||
|
||||
protected override void DoStateTransition(SelectionState state, bool instant) {
|
||||
|
||||
if(isHighlightDisabled) {
|
||||
|
||||
Color tintColor = _disabledHighlightedColor;
|
||||
Sprite transitionSprite = _disabledHighlightedSprite;
|
||||
string triggerName = _disabledHighlightedTrigger;
|
||||
|
||||
if(gameObject.activeInHierarchy) {
|
||||
switch(this.transition) {
|
||||
case Transition.ColorTint:
|
||||
StartColorTween(tintColor * colors.colorMultiplier, instant);
|
||||
break;
|
||||
case Transition.SpriteSwap:
|
||||
DoSpriteSwap(transitionSprite);
|
||||
break;
|
||||
case Transition.Animation:
|
||||
TriggerAnimation(triggerName);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
base.DoStateTransition(state, instant);
|
||||
}
|
||||
}
|
||||
|
||||
void StartColorTween(Color targetColor, bool instant) {
|
||||
if(targetGraphic == null)
|
||||
return;
|
||||
|
||||
targetGraphic.CrossFadeColor(targetColor, instant ? 0f : colors.fadeDuration, true, true);
|
||||
}
|
||||
|
||||
void DoSpriteSwap(Sprite newSprite) {
|
||||
if(image == null)
|
||||
return;
|
||||
|
||||
image.overrideSprite = newSprite;
|
||||
}
|
||||
|
||||
void TriggerAnimation(string triggername) {
|
||||
#if UNITY_4_6 && (UNITY_4_6_0 || UNITY_4_6_1 || UNITY_4_6_2)
|
||||
if(animator == null || !animator.enabled || animator.runtimeAnimatorController == null || string.IsNullOrEmpty(triggername))
|
||||
return;
|
||||
#else
|
||||
if(animator == null || !animator.enabled || !animator.isActiveAndEnabled || animator.runtimeAnimatorController == null || string.IsNullOrEmpty(triggername))
|
||||
return;
|
||||
#endif
|
||||
|
||||
animator.ResetTrigger(_disabledHighlightedTrigger);
|
||||
animator.SetTrigger(triggername);
|
||||
}
|
||||
|
||||
public override void OnSelect(BaseEventData eventData) {
|
||||
base.OnSelect(eventData);
|
||||
|
||||
// Handle highlight-disabled state transition
|
||||
EvaluateHightlightDisabled(true);
|
||||
}
|
||||
|
||||
public override void OnDeselect(BaseEventData eventData) {
|
||||
base.OnDeselect(eventData);
|
||||
|
||||
// Handle highlight-disabled state transition
|
||||
EvaluateHightlightDisabled(false);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Button Overrides
|
||||
|
||||
private void Press() {
|
||||
if(!IsActive() || !IsInteractable())
|
||||
return;
|
||||
|
||||
onClick.Invoke();
|
||||
}
|
||||
|
||||
// Trigger all registered callbacks.
|
||||
public override void OnPointerClick(PointerEventData eventData) {
|
||||
if(!IsActive() || !IsInteractable()) return; // ignore click entirely if button is already disabled
|
||||
|
||||
if(eventData.button != PointerEventData.InputButton.Left)
|
||||
return;
|
||||
|
||||
Press();
|
||||
|
||||
// Transition to highlight-disabled state if disabled
|
||||
if(!IsActive() || !IsInteractable()) {
|
||||
isHighlightDisabled = true;
|
||||
DoStateTransition(SelectionState.Disabled, false);
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnSubmit(BaseEventData eventData) {
|
||||
Press();
|
||||
|
||||
// if we get set disabled during the press
|
||||
// don't run the coroutine.
|
||||
if(!IsActive() || !IsInteractable()) {
|
||||
// Transition to highlight-disabled state
|
||||
isHighlightDisabled = true;
|
||||
DoStateTransition(SelectionState.Disabled, false);
|
||||
return;
|
||||
}
|
||||
|
||||
DoStateTransition(SelectionState.Pressed, false);
|
||||
StartCoroutine(OnFinishSubmit());
|
||||
}
|
||||
|
||||
private IEnumerator OnFinishSubmit() {
|
||||
var fadeTime = colors.fadeDuration;
|
||||
var elapsedTime = 0f;
|
||||
|
||||
while(elapsedTime < fadeTime) {
|
||||
elapsedTime += Time.unscaledDeltaTime;
|
||||
yield return null;
|
||||
}
|
||||
|
||||
DoStateTransition(currentSelectionState, false);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private void EvaluateHightlightDisabled(bool isSelected) {
|
||||
|
||||
if(!isSelected) { // Deselection
|
||||
|
||||
if(isHighlightDisabled) {
|
||||
isHighlightDisabled = false;
|
||||
SelectionState state = isDisabled ? SelectionState.Disabled : currentSelectionState;
|
||||
DoStateTransition(state, false);
|
||||
}
|
||||
|
||||
} else { // Selection
|
||||
|
||||
if(!isDisabled) return;
|
||||
isHighlightDisabled = true;
|
||||
DoStateTransition(SelectionState.Disabled, false);
|
||||
}
|
||||
}
|
||||
|
||||
#region ICancelHandler Implementation
|
||||
|
||||
public void OnCancel(BaseEventData eventData) {
|
||||
if(_CancelEvent != null) _CancelEvent();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue