Skip to content
Snippets Groups Projects
Commit 85d9d5ad authored by Marco Zimmer's avatar Marco Zimmer
Browse files

Introducing Edit-functionality

parent 91b27b84
No related branches found
No related tags found
No related merge requests found
Showing
with 7673 additions and 4302 deletions
...@@ -243,6 +243,11 @@ PrefabInstance: ...@@ -243,6 +243,11 @@ PrefabInstance:
m_Modification: m_Modification:
m_TransformParent: {fileID: 3020720017683626808} m_TransformParent: {fileID: 3020720017683626808}
m_Modifications: m_Modifications:
- target: {fileID: 947958301574655299, guid: b996060e27da25c498842defc1996d84,
type: 3}
propertyPath: m_TagString
value: DevelopingMode
objectReference: {fileID: 0}
- target: {fileID: 947958302436985159, guid: b996060e27da25c498842defc1996d84, - target: {fileID: 947958302436985159, guid: b996060e27da25c498842defc1996d84,
type: 3} type: 3}
propertyPath: FieldActions.Array.data[0].m_PersistentCalls.m_Calls.Array.data[0].m_Mode propertyPath: FieldActions.Array.data[0].m_PersistentCalls.m_Calls.Array.data[0].m_Mode
......
%YAML 1.1 %YAML 1.1
%TAG !u! tag:unity3d.com,2011: %TAG !u! tag:unity3d.com,2011:
--- !u!1 &2959976467324928173
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2959976467324928172}
- component: {fileID: 2959976467324928176}
- component: {fileID: 2959976467324928177}
- component: {fileID: 2959976467324928178}
- component: {fileID: 2959976467324928179}
- component: {fileID: 2959976467324928174}
m_Layer: 5
m_Name: CreateButton
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &2959976467324928172
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2959976467324928173}
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: 2959976468630027989}
m_Father: {fileID: 2959976467408446326}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 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.5, y: 0.5}
--- !u!222 &2959976467324928176
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2959976467324928173}
m_CullTransparentMesh: 1
--- !u!114 &2959976467324928177
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2959976467324928173}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 0.392}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
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
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!114 &2959976467324928178
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2959976467324928173}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, 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: 0
m_ChildForceExpandWidth: 0
m_ChildForceExpandHeight: 0
m_ChildControlWidth: 1
m_ChildControlHeight: 1
m_ChildScaleWidth: 0
m_ChildScaleHeight: 0
m_ReverseArrangement: 0
--- !u!114 &2959976467324928179
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2959976467324928173}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3}
m_Name:
m_EditorClassIdentifier:
m_IgnoreLayout: 0
m_MinWidth: 26.13
m_MinHeight: 26.13
m_PreferredWidth: -1
m_PreferredHeight: -1
m_FlexibleWidth: -1
m_FlexibleHeight: -1
m_LayoutPriority: 1
--- !u!114 &2959976467324928174
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2959976467324928173}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 2959976467324928177}
m_OnClick:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 0}
m_TargetAssemblyTypeName: MenueLoader, Assembly-CSharp
m_MethodName: SetMode
m_Mode: 3
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 2
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
--- !u!1 &2959976467408446327 --- !u!1 &2959976467408446327
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
...@@ -193,7 +12,6 @@ GameObject: ...@@ -193,7 +12,6 @@ GameObject:
- component: {fileID: 2959976467408446331} - component: {fileID: 2959976467408446331}
- component: {fileID: 2959976467408446324} - component: {fileID: 2959976467408446324}
- component: {fileID: 2959976467408446325} - component: {fileID: 2959976467408446325}
- component: {fileID: 4419334332453236392}
m_Layer: 5 m_Layer: 5
m_Name: BarButtonContainer m_Name: BarButtonContainer
m_TagString: Untagged m_TagString: Untagged
...@@ -285,202 +103,168 @@ MonoBehaviour: ...@@ -285,202 +103,168 @@ MonoBehaviour:
m_ChildScaleWidth: 0 m_ChildScaleWidth: 0
m_ChildScaleHeight: 0 m_ChildScaleHeight: 0
m_ReverseArrangement: 0 m_ReverseArrangement: 0
--- !u!114 &4419334332453236392 --- !u!1001 &2688813103282171108
MonoBehaviour: PrefabInstance:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2959976467408446327}
m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 2959976467408446324}
m_OnClick:
m_PersistentCalls:
m_Calls: []
--- !u!1 &2959976468630027990
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2959976468630027989}
- component: {fileID: 2959976468630027994}
- component: {fileID: 2959976468630027995}
- component: {fileID: 2959976468630027988}
m_Layer: 5
m_Name: CcreateText
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &2959976468630027989
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2959976468630027990}
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: 2959976467324928172}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 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.5, y: 0.5}
--- !u!222 &2959976468630027994
CanvasRenderer:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2959976468630027990}
m_CullTransparentMesh: 1
--- !u!114 &2959976468630027995
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2959976468630027990}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: +
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_sharedMaterial: {fileID: 2100000, guid: e73a58f6e2794ae7b1b7e50b7fb811b0, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2 serializedVersion: 2
rgba: 4283190348 m_Modification:
m_fontColor: {r: 0.29803923, g: 0.29803923, b: 0.29803923, a: 1} m_TransformParent: {fileID: 2959976467408446326}
m_enableVertexGradient: 0 m_Modifications:
m_colorMode: 3 - target: {fileID: 883663955743452232, guid: 3594133909be15942bcbadb9532c69a7,
m_fontColorGradient: type: 3}
topLeft: {r: 1, g: 1, b: 1, a: 1} propertyPath: m_Pivot.x
topRight: {r: 1, g: 1, b: 1, a: 1} value: 0.5
bottomLeft: {r: 1, g: 1, b: 1, a: 1} objectReference: {fileID: 0}
bottomRight: {r: 1, g: 1, b: 1, a: 1} - target: {fileID: 883663955743452232, guid: 3594133909be15942bcbadb9532c69a7,
m_fontColorGradientPreset: {fileID: 0} type: 3}
m_spriteAsset: {fileID: 0} propertyPath: m_Pivot.y
m_tintAllSprites: 0 value: 0.5
m_StyleSheet: {fileID: 0} objectReference: {fileID: 0}
m_TextStyleHashCode: -1183493901 - target: {fileID: 883663955743452232, guid: 3594133909be15942bcbadb9532c69a7,
m_overrideHtmlColors: 0 type: 3}
m_faceColor: propertyPath: m_RootOrder
serializedVersion: 2 value: 0
rgba: 4294967295 objectReference: {fileID: 0}
m_fontSize: 18 - target: {fileID: 883663955743452232, guid: 3594133909be15942bcbadb9532c69a7,
m_fontSizeBase: 17 type: 3}
m_fontWeight: 400 propertyPath: m_AnchorMax.x
m_enableAutoSizing: 1 value: 0
m_fontSizeMin: 0 objectReference: {fileID: 0}
m_fontSizeMax: 18 - target: {fileID: 883663955743452232, guid: 3594133909be15942bcbadb9532c69a7,
m_fontStyle: 0 type: 3}
m_HorizontalAlignment: 2 propertyPath: m_AnchorMax.y
m_VerticalAlignment: 512 value: 0
m_textAlignment: 65535 objectReference: {fileID: 0}
m_characterSpacing: 0 - target: {fileID: 883663955743452232, guid: 3594133909be15942bcbadb9532c69a7,
m_wordSpacing: 0 type: 3}
m_lineSpacing: 0 propertyPath: m_AnchorMin.x
m_lineSpacingMax: 0 value: 0
m_paragraphSpacing: 0 objectReference: {fileID: 0}
m_charWidthMaxAdj: 0 - target: {fileID: 883663955743452232, guid: 3594133909be15942bcbadb9532c69a7,
m_enableWordWrapping: 0 type: 3}
m_wordWrappingRatios: 0.4 propertyPath: m_AnchorMin.y
m_overflowMode: 0 value: 0
m_linkedTextComponent: {fileID: 0} objectReference: {fileID: 0}
parentLinkedComponent: {fileID: 0} - target: {fileID: 883663955743452232, guid: 3594133909be15942bcbadb9532c69a7,
m_enableKerning: 1 type: 3}
m_enableExtraPadding: 0 propertyPath: m_SizeDelta.x
checkPaddingRequired: 0 value: 0
m_isRichText: 1 objectReference: {fileID: 0}
m_parseCtrlCharacters: 1 - target: {fileID: 883663955743452232, guid: 3594133909be15942bcbadb9532c69a7,
m_isOrthographic: 1 type: 3}
m_isCullingEnabled: 0 propertyPath: m_SizeDelta.y
m_horizontalMapping: 0 value: 0
m_verticalMapping: 0 objectReference: {fileID: 0}
m_uvLineOffset: 0 - target: {fileID: 883663955743452232, guid: 3594133909be15942bcbadb9532c69a7,
m_geometrySortingOrder: 0 type: 3}
m_IsTextObjectScaleStatic: 0 propertyPath: m_LocalPosition.x
m_VertexBufferAutoSizeReduction: 0 value: 0
m_useMaxVisibleDescender: 1 objectReference: {fileID: 0}
m_pageToDisplay: 1 - target: {fileID: 883663955743452232, guid: 3594133909be15942bcbadb9532c69a7,
m_margin: {x: 8, y: 0, z: 8, w: 0} type: 3}
m_isUsingLegacyAnimationComponent: 0 propertyPath: m_LocalPosition.y
m_isVolumetricText: 0 value: 0
m_hasFontAssetChanged: 0 objectReference: {fileID: 0}
m_baseMaterial: {fileID: 0} - target: {fileID: 883663955743452232, guid: 3594133909be15942bcbadb9532c69a7,
m_maskOffset: {x: 0, y: 0, z: 0, w: 0} type: 3}
--- !u!114 &2959976468630027988 propertyPath: m_LocalPosition.z
MonoBehaviour: value: 0
m_ObjectHideFlags: 0 objectReference: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0} - target: {fileID: 883663955743452232, guid: 3594133909be15942bcbadb9532c69a7,
m_PrefabInstance: {fileID: 0} type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 883663955743452232, guid: 3594133909be15942bcbadb9532c69a7,
type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 883663955743452232, guid: 3594133909be15942bcbadb9532c69a7,
type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 883663955743452232, guid: 3594133909be15942bcbadb9532c69a7,
type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 883663955743452232, guid: 3594133909be15942bcbadb9532c69a7,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 883663955743452232, guid: 3594133909be15942bcbadb9532c69a7,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 883663955743452232, guid: 3594133909be15942bcbadb9532c69a7,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 883663955743452232, guid: 3594133909be15942bcbadb9532c69a7,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 883663955743452232, guid: 3594133909be15942bcbadb9532c69a7,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 883663955743452233, guid: 3594133909be15942bcbadb9532c69a7,
type: 3}
propertyPath: m_Name
value: CreateButton
objectReference: {fileID: 0}
- target: {fileID: 883663957049053745, guid: 3594133909be15942bcbadb9532c69a7,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 883663957049053745, guid: 3594133909be15942bcbadb9532c69a7,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 883663957049053745, guid: 3594133909be15942bcbadb9532c69a7,
type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 883663957049053745, guid: 3594133909be15942bcbadb9532c69a7,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 883663957049053745, guid: 3594133909be15942bcbadb9532c69a7,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 883663957049053745, guid: 3594133909be15942bcbadb9532c69a7,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 883663957049053759, guid: 3594133909be15942bcbadb9532c69a7,
type: 3}
propertyPath: m_text
value: +
objectReference: {fileID: 0}
- target: {fileID: 883663957049053759, guid: 3594133909be15942bcbadb9532c69a7,
type: 3}
propertyPath: m_fontSize
value: 18
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 3594133909be15942bcbadb9532c69a7, type: 3}
--- !u!224 &2959976467324928172 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 883663955743452232, guid: 3594133909be15942bcbadb9532c69a7,
type: 3}
m_PrefabInstance: {fileID: 2688813103282171108}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2959976468630027990}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3}
m_Name:
m_EditorClassIdentifier:
m_IgnoreLayout: 0
m_MinWidth: -1
m_MinHeight: 26.13
m_PreferredWidth: -1
m_PreferredHeight: -1
m_FlexibleWidth: -1
m_FlexibleHeight: -1
m_LayoutPriority: 1
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &883663955743452233
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 883663955743452232}
- component: {fileID: 883663955743452244}
- component: {fileID: 883663955743452245}
- component: {fileID: 883663955743452246}
- component: {fileID: 883663955743452247}
- component: {fileID: 883663955743452234}
m_Layer: 5
m_Name: Button
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &883663955743452232
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 883663955743452233}
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: 883663957049053745}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 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.5, y: 0.5}
--- !u!222 &883663955743452244
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 883663955743452233}
m_CullTransparentMesh: 1
--- !u!114 &883663955743452245
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 883663955743452233}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 0.392}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
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
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!114 &883663955743452246
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 883663955743452233}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, 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: 0
m_ChildForceExpandWidth: 0
m_ChildForceExpandHeight: 0
m_ChildControlWidth: 1
m_ChildControlHeight: 1
m_ChildScaleWidth: 0
m_ChildScaleHeight: 0
m_ReverseArrangement: 0
--- !u!114 &883663955743452247
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 883663955743452233}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3}
m_Name:
m_EditorClassIdentifier:
m_IgnoreLayout: 0
m_MinWidth: 26.13
m_MinHeight: 26.13
m_PreferredWidth: -1
m_PreferredHeight: -1
m_FlexibleWidth: -1
m_FlexibleHeight: -1
m_LayoutPriority: 1
--- !u!114 &883663955743452234
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 883663955743452233}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 883663955743452245}
m_OnClick:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 0}
m_TargetAssemblyTypeName: MenueLoader, Assembly-CSharp
m_MethodName: SetMode
m_Mode: 3
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 2
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
--- !u!1 &883663957049053746
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 883663957049053745}
- component: {fileID: 883663957049053758}
- component: {fileID: 883663957049053759}
- component: {fileID: 883663957049053744}
m_Layer: 5
m_Name: ButtonText
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &883663957049053745
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 883663957049053746}
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: 883663955743452232}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 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.5, y: 0.5}
--- !u!222 &883663957049053758
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 883663957049053746}
m_CullTransparentMesh: 1
--- !u!114 &883663957049053759
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 883663957049053746}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: Text
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_sharedMaterial: {fileID: 2100000, guid: e73a58f6e2794ae7b1b7e50b7fb811b0, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4283190348
m_fontColor: {r: 0.29803923, g: 0.29803923, b: 0.29803923, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 0
m_fontSizeBase: 17
m_fontWeight: 400
m_enableAutoSizing: 1
m_fontSizeMin: 0
m_fontSizeMax: 18
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 512
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_enableWordWrapping: 0
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 1
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 8, y: 0, z: 8, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!114 &883663957049053744
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 883663957049053746}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3}
m_Name:
m_EditorClassIdentifier:
m_IgnoreLayout: 0
m_MinWidth: -1
m_MinHeight: 26.13
m_PreferredWidth: -1
m_PreferredHeight: -1
m_FlexibleWidth: -1
m_FlexibleHeight: -1
m_LayoutPriority: 1
fileFormatVersion: 2 fileFormatVersion: 2
guid: bc2f3e0825f2de949b2415981eb86cc2 guid: 3594133909be15942bcbadb9532c69a7
PrefabImporter: PrefabImporter:
externalObjects: {} externalObjects: {}
userData: userData:
......
This diff is collapsed.
fileFormatVersion: 2
guid: 30f37aa452756344ebfa932f1ef8a2ee
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &8803042889665911745
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8803042889665911744}
- component: {fileID: 8803042889665911757}
- component: {fileID: 8803042889665911746}
- component: {fileID: 8803042889665911747}
- component: {fileID: 6157414922619838332}
m_Layer: 5
m_Name: Entry_Dummy
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &8803042889665911744
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8803042889665911745}
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_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 526, y: 0}
m_Pivot: {x: 0.5, y: 1}
--- !u!222 &8803042889665911757
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8803042889665911745}
m_CullTransparentMesh: 1
--- !u!114 &8803042889665911746
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8803042889665911745}
m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 0.392}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
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
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!114 &8803042889665911747
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8803042889665911745}
m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 30649d3a9faa99c48a7b1166b86bf2a0, 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: 0
m_ChildForceExpandWidth: 0
m_ChildForceExpandHeight: 0
m_ChildControlWidth: 0
m_ChildControlHeight: 1
m_ChildScaleWidth: 0
m_ChildScaleHeight: 0
m_ReverseArrangement: 0
--- !u!114 &6157414922619838332
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8803042889665911745}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3}
m_Name:
m_EditorClassIdentifier:
m_IgnoreLayout: 0
m_MinWidth: -1
m_MinHeight: 219
m_PreferredWidth: -1
m_PreferredHeight: -1
m_FlexibleWidth: -1
m_FlexibleHeight: -1
m_LayoutPriority: 1
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &1408060057091758429
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7099870708961142632}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 7099870708961142644}
m_OnClick:
m_PersistentCalls:
m_Calls: []
--- !u!1001 &2805706523153696800
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 2501937192852105332}
m_Modifications:
- target: {fileID: 4929209569244540744, guid: cab09b1cb0c50a5419ee4ffa3897e5cf,
type: 3}
propertyPath: m_Name
value: LegEntry (3)
objectReference: {fileID: 0}
- target: {fileID: 4929209569244540747, guid: cab09b1cb0c50a5419ee4ffa3897e5cf,
type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 4929209569244540747, guid: cab09b1cb0c50a5419ee4ffa3897e5cf,
type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 4929209569244540747, guid: cab09b1cb0c50a5419ee4ffa3897e5cf,
type: 3}
propertyPath: m_RootOrder
value: 3
objectReference: {fileID: 0}
- target: {fileID: 4929209569244540747, guid: cab09b1cb0c50a5419ee4ffa3897e5cf,
type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4929209569244540747, guid: cab09b1cb0c50a5419ee4ffa3897e5cf,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4929209569244540747, guid: cab09b1cb0c50a5419ee4ffa3897e5cf,
type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4929209569244540747, guid: cab09b1cb0c50a5419ee4ffa3897e5cf,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4929209569244540747, guid: cab09b1cb0c50a5419ee4ffa3897e5cf,
type: 3}
propertyPath: m_SizeDelta.x
value: 40
objectReference: {fileID: 0}
- target: {fileID: 4929209569244540747, guid: cab09b1cb0c50a5419ee4ffa3897e5cf,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4929209569244540747, guid: cab09b1cb0c50a5419ee4ffa3897e5cf,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4929209569244540747, guid: cab09b1cb0c50a5419ee4ffa3897e5cf,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4929209569244540747, guid: cab09b1cb0c50a5419ee4ffa3897e5cf,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4929209569244540747, guid: cab09b1cb0c50a5419ee4ffa3897e5cf,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4929209569244540747, guid: cab09b1cb0c50a5419ee4ffa3897e5cf,
type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4929209569244540747, guid: cab09b1cb0c50a5419ee4ffa3897e5cf,
type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4929209569244540747, guid: cab09b1cb0c50a5419ee4ffa3897e5cf,
type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4929209569244540747, guid: cab09b1cb0c50a5419ee4ffa3897e5cf,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4929209569244540747, guid: cab09b1cb0c50a5419ee4ffa3897e5cf,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4929209569244540747, guid: cab09b1cb0c50a5419ee4ffa3897e5cf,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4929209569244540747, guid: cab09b1cb0c50a5419ee4ffa3897e5cf,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4929209569244540747, guid: cab09b1cb0c50a5419ee4ffa3897e5cf,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4929209569244540757, guid: cab09b1cb0c50a5419ee4ffa3897e5cf,
type: 3}
propertyPath: m_ChildForceExpandWidth
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4929209570368938763, guid: cab09b1cb0c50a5419ee4ffa3897e5cf,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4929209570368938763, guid: cab09b1cb0c50a5419ee4ffa3897e5cf,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4929209570368938763, guid: cab09b1cb0c50a5419ee4ffa3897e5cf,
type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4929209570368938763, guid: cab09b1cb0c50a5419ee4ffa3897e5cf,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4929209570368938763, guid: cab09b1cb0c50a5419ee4ffa3897e5cf,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4929209570368938763, guid: cab09b1cb0c50a5419ee4ffa3897e5cf,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4929209570368938773, guid: cab09b1cb0c50a5419ee4ffa3897e5cf,
type: 3}
propertyPath: m_text
value: Edit
objectReference: {fileID: 0}
- target: {fileID: 4929209570368938773, guid: cab09b1cb0c50a5419ee4ffa3897e5cf,
type: 3}
propertyPath: m_fontSize
value: 17
objectReference: {fileID: 0}
- target: {fileID: 4929209570368938773, guid: cab09b1cb0c50a5419ee4ffa3897e5cf,
type: 3}
propertyPath: m_fontSizeBase
value: 17
objectReference: {fileID: 0}
- target: {fileID: 4929209570368938773, guid: cab09b1cb0c50a5419ee4ffa3897e5cf,
type: 3}
propertyPath: m_enableWordWrapping
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: cab09b1cb0c50a5419ee4ffa3897e5cf, type: 3}
--- !u!1 &7099870708961142632 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 4929209569244540744, guid: cab09b1cb0c50a5419ee4ffa3897e5cf,
type: 3}
m_PrefabInstance: {fileID: 2805706523153696800}
m_PrefabAsset: {fileID: 0}
--- !u!114 &7099870708961142644 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 4929209569244540756, guid: cab09b1cb0c50a5419ee4ffa3897e5cf,
type: 3}
m_PrefabInstance: {fileID: 2805706523153696800}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7099870708961142632}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1001 &6382192487931917236
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 4155835518542550927, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4155835518542550927, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4155835518542550927, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4155835518542550927, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4155835518542550927, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4155835519766567887, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4155835519766567887, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4155835519766567887, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4155835519766567887, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4155835519766567887, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5029370682201358680, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5029370682201358680, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5029370682201358680, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_SizeDelta.x
value: 250
objectReference: {fileID: 0}
- target: {fileID: 5029370682201358680, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5029370682201358680, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5029370682201358680, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5029370683124960536, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5029370683124960536, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5029370683124960536, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5029370683124960536, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5029370683124960536, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5029370683124960536, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5988211129369983941, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5988211129369983941, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5988211129369983941, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5988211129369983941, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5988211129369983941, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5988211129369983941, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5988211130494777221, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5988211130494777221, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5988211130494777221, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5988211130494777221, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5988211130494777221, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8803042889665911744, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 8803042889665911744, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_Pivot.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8803042889665911744, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8803042889665911744, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8803042889665911744, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8803042889665911744, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8803042889665911744, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8803042889665911744, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_SizeDelta.x
value: 526
objectReference: {fileID: 0}
- target: {fileID: 8803042889665911744, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8803042889665911744, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8803042889665911744, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8803042889665911744, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8803042889665911744, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8803042889665911744, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8803042889665911744, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8803042889665911744, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8803042889665911744, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8803042889665911744, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8803042889665911744, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8803042889665911744, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8803042889665911744, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8803042889665911745, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
propertyPath: m_Name
value: LocalEntry (0)
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: e3c6f9259eca30d41b52eac75be03324, type: 3}
--- !u!224 &2501937192852105332 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 8803042889665911744, guid: e3c6f9259eca30d41b52eac75be03324,
type: 3}
m_PrefabInstance: {fileID: 6382192487931917236}
m_PrefabAsset: {fileID: 0}
fileFormatVersion: 2
guid: 59f7a79ac29f866409b5e8c706608c90
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
...@@ -100,7 +100,7 @@ MonoBehaviour: ...@@ -100,7 +100,7 @@ MonoBehaviour:
m_ChildForceExpandWidth: 0 m_ChildForceExpandWidth: 0
m_ChildForceExpandHeight: 0 m_ChildForceExpandHeight: 0
m_ChildControlWidth: 1 m_ChildControlWidth: 1
m_ChildControlHeight: 0 m_ChildControlHeight: 1
m_ChildScaleWidth: 0 m_ChildScaleWidth: 0
m_ChildScaleHeight: 0 m_ChildScaleHeight: 0
m_ReverseArrangement: 0 m_ReverseArrangement: 0
...@@ -160,7 +160,7 @@ RectTransform: ...@@ -160,7 +160,7 @@ RectTransform:
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 26.13} m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &4929209570368938772 --- !u!222 &4929209570368938772
CanvasRenderer: CanvasRenderer:
......
This diff is collapsed.
...@@ -44,6 +44,12 @@ public Stage(int number, string name, string description, string scene, bool loc ...@@ -44,6 +44,12 @@ public Stage(int number, string name, string description, string scene, bool loc
factState = new FactOrganizer(); factState = new FactOrganizer();
} }
public void CopyStates( Stage get)
{
this.solution = get.solution;
this.factState = get.factState;
}
public void SetMode(bool create) public void SetMode(bool create)
{ {
if (create == creatorMode) if (create == creatorMode)
...@@ -63,8 +69,8 @@ public void SetMode(bool create) ...@@ -63,8 +69,8 @@ public void SetMode(bool create)
else else
{ {
solution = factState as SolutionOrganizer; solution = factState as SolutionOrganizer;
solution.invoke = false;
factState.Undraw(); factState.Undraw();
//solution.invoke = false;
factState = hiddenState; factState = hiddenState;
factState.Draw(); factState.Draw();
...@@ -72,12 +78,17 @@ public void SetMode(bool create) ...@@ -72,12 +78,17 @@ public void SetMode(bool create)
} }
public void delete()
{
throw new System.NotImplementedException();
}
public void store() public void store()
{ {
hierarchie ??= new List<Directories>(); hierarchie ??= new List<Directories>();
hierarchie.AddRange(hierStage.AsEnumerable()); hierarchie.AddRange(hierStage.AsEnumerable());
if (creatorMode) if (creatorMode || StageStatic.devel)
{ {
string path = CreatePathToFile(out bool exists, name, "JSON", hierarchie, use_install_folder); string path = CreatePathToFile(out bool exists, name, "JSON", hierarchie, use_install_folder);
//TODO: if exists //TODO: if exists
......
...@@ -13,6 +13,12 @@ public static class StageStatic ...@@ -13,6 +13,12 @@ public static class StageStatic
public static bool devel = false; public static bool devel = false;
public static Mode mode; public static Mode mode;
public static List<string> Worlds
{
get { return _Worlds ?? GenerateWorldList(); }
}
private static List<string> _Worlds = null;
public static Stage stage { public static Stage stage {
get { get {
return (local_stage ? StageLocal : StageOfficial)[current_name]; return (local_stage ? StageLocal : StageOfficial)[current_name];
...@@ -23,9 +29,38 @@ public static Stage stage { ...@@ -23,9 +29,38 @@ public static Stage stage {
(local_stage ? StageLocal : StageOfficial).Remove(current_name); (local_stage ? StageLocal : StageOfficial).Remove(current_name);
(local_stage ? StageLocal : StageOfficial).Add(current_name, value); (local_stage ? StageLocal : StageOfficial).Add(current_name, value);
bool tmp = value.creatorMode;
value.creatorMode = true;
value.store();
value.creatorMode = tmp;
} }
} }
// TODO! generate at buildtime
private static List<string> GenerateWorldList()
{
_Worlds = new List<string>();
string world = "World";
string ending = ".unity";
foreach (UnityEditor.EditorBuildSettingsScene scene in UnityEditor.EditorBuildSettings.scenes)
{
if (scene.enabled)
{
string name = new System.IO.FileInfo(scene.path).Name;
name = name.Substring(0, name.Length - ending.Length);
if (0 == string.Compare(name, name.Length - world.Length, world, 0, world.Length))
{
_Worlds.Add(name);
}
}
}
return _Worlds;
}
public enum Mode public enum Mode
{ {
Play, Play,
...@@ -58,26 +93,36 @@ public static void SetMode(Mode mode, GameObject gameObject = null) ...@@ -58,26 +93,36 @@ public static void SetMode(Mode mode, GameObject gameObject = null)
} }
public static void WakeUp() public static int Validate(int id, string name, string description, string scene)
{ {
int error = 0;
error = (error << 1) + (!Worlds.Contains(scene) ? 1 : 0);
error = (error << 1) + (false ? 1 : 0);
error = (error << 1) + (name.Length == 0 || ContainsKey(name, true) ? 1 : 0);
error = (error << 1) + (ContainsNumber(id, true) ? 1 : 0);
return error;
} }
public static bool LoadNewStage(int id, string name, string description, string scene) public static int LoadNewStage(int id, string name, string description, string scene)
{ {
if (name.Length == 0 int ret = Validate(id, name, description, scene);
|| ContainsKey(name, true) if (ret != 0)
|| ContainsNumber(id, true)) return ret;
return false;
stage = new Stage(id, name, description, scene, true); stage = new Stage(id, name, description, scene, true);
stage.creatorMode = true; stage.creatorMode = true;
stage.store(); stage.store();
devel = true; LoadCreate();
Loader.LoadScene(scene); return ret;
}
return true; public static void LoadCreate()
{
devel = true;
Loader.LoadScene(stage.scene);
} }
public static int NextNumber(bool local) public static int NextNumber(bool local)
...@@ -110,12 +155,23 @@ public static void ShallowLoadStages() ...@@ -110,12 +155,23 @@ public static void ShallowLoadStages()
StageLocal = Stage.Grup(null, false); StageLocal = Stage.Grup(null, false);
} }
public static void SetStage(string name, bool local = false) public static void SetStage(string name, bool local)
{ {
local_stage = local; local_stage = local;
current_name = name; current_name = name;
} }
public static Stage GetStage(string name, bool local)
{
return (local ? StageLocal : StageOfficial)[name];
}
public static void Delete(Stage stage)
{
GetStage(stage.name, !stage.use_install_folder).delete();
(!stage.use_install_folder ? StageLocal : StageOfficial).Remove(stage.name);
}
public static bool LoadInitStage(string name, bool local = false, bool restore_session = true, GameObject gameObject = null) public static bool LoadInitStage(string name, bool local = false, bool restore_session = true, GameObject gameObject = null)
{ {
if (!ContainsKey(name, local)) if (!ContainsKey(name, local))
......
...@@ -22,6 +22,9 @@ private void Update() ...@@ -22,6 +22,9 @@ private void Update()
public void Fix() public void Fix()
{ {
if (input == null || output == null)
Start();
output.text = input.text + " "; output.text = input.text + " ";
} }
} }
...@@ -11,16 +11,42 @@ public class CreateLoader : MenueLoader ...@@ -11,16 +11,42 @@ public class CreateLoader : MenueLoader
public GameObject Messenger; public GameObject Messenger;
private const string ending = ".unity"; protected int id {
get { return Id.text.Length == 0 ? StageStatic.NextNumber(true) : int.Parse(Id.text); }
set { Id.text = value.ToString(); }
}
protected new string name {
get { return Name.text.Trim(); }
set { Name.text = value; }
}
protected string description {
get { return Description.text; }
set { Description.text = value; }
}
protected string scene {
get {
return WorldDropdown.value < StageStatic.Worlds.Count ?
StageStatic.Worlds[WorldDropdown.value] : invalid_world;
}
set {
if (!StageStatic.Worlds.Contains(value)) {
//WorldDropdown.AddOptions(new List<string> { invalid_world });
WorldDropdown.value = StageStatic.Worlds.Count;
} else
WorldDropdown.value = StageStatic.Worlds.IndexOf(value);
}
}
private List<string> Scenes = new List<string>();
private void OnEnable() protected string invalid_world = "Invalid";
protected void OnEnable()
{ {
Init(); Init();
} }
private void Start() protected new void Start()
{ {
scroll.verticalScrollbar.numberOfSteps = 0; scroll.verticalScrollbar.numberOfSteps = 0;
scroll.verticalNormalizedPosition = 1f; scroll.verticalNormalizedPosition = 1f;
...@@ -28,43 +54,25 @@ private void Start() ...@@ -28,43 +54,25 @@ private void Start()
public void Init() public void Init()
{ {
//TODO? Update list at buildtime
List<TMPro.TMP_Dropdown.OptionData> Worlds = new List<TMPro.TMP_Dropdown.OptionData>();
Scenes.Clear();
string world = "World";
foreach (UnityEditor.EditorBuildSettingsScene scene in UnityEditor.EditorBuildSettings.scenes)
{
if (scene.enabled)
{
string name = new System.IO.FileInfo(scene.path).Name;
name = name.Substring(0, name.Length - ending.Length);
if (0 == string.Compare(name, name.Length - world.Length, world, 0, world.Length))
{
Scenes.Add(name);
Worlds.Add(new TMPro.TMP_Dropdown.OptionData(name));
}
}
}
WorldDropdown.ClearOptions(); WorldDropdown.ClearOptions();
WorldDropdown.AddOptions(Worlds); WorldDropdown.AddOptions(StageStatic.Worlds);
} }
public void Create() public void Create()
{ {
string string
name = Name.text.Trim(), scen = StageStatic.Worlds[WorldDropdown.value];
decr = Description.text.Trim(),
scen = Scenes[WorldDropdown.value];
int id = Id.text.Length == 0 ? StageStatic.NextNumber(true) : int.Parse(Id.text);
if (StageStatic.LoadNewStage(id, name, decr, scen)) int error = StageStatic.LoadNewStage(id, name, description, scen);
if (error != 0) {
Error(error);
return; return;
}
}
protected void Error(int error)
{
//TODO: inform failure & why? //TODO: inform failure & why?
throw new System.NotImplementedException("handle error");
} }
} }
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EditLoader : CreateLoader
{
private Stage original_stage;
public new void Init()
{
base.Init();
}
public void SetStage(string name, bool local)
{
StageStatic.SetStage(name, local);
original_stage = StageStatic.stage;
if (!original_stage.DeepLoad())
Error(-1);
id = original_stage.number;
this.name = original_stage.name;
description= original_stage.description;
scene = original_stage.scene;
}
public void Reset()
{
SetStage(original_stage.name, !original_stage.use_install_folder);
}
private void _Delete()
{
StageStatic.Delete(original_stage);
}
public void Delete()
{
//Reset();
//TODO: ask user
_Delete();
pageMenue.RevertMode();
}
private bool _Clone(bool overwrite)
{
int error = StageStatic.Validate(id, name, description, scene)
- (overwrite ? (1 << 1) + 1 : 0);
if (error != 0) {
Error(error);
return false;
}
Stage new_stage = new Stage(id, name, description, scene, true);
new_stage.CopyStates(original_stage);
StageStatic.stage = new_stage;
return true;
}
public void Clone()
{
if (!_Clone(false))
return;
StageStatic.SetStage(name, true);
StageStatic.LoadCreate();
}
private bool _Save()
{
if (!_Clone(true))
return false;
if (name != original_stage.name)
// has not been overridden
_Delete();
return true;
}
public void Save()
{
if (!_Save())
return;
pageMenue.RevertMode();
}
public void Edit()
{
_Save();
StageStatic.SetStage(name, true);
StageStatic.LoadCreate();
}
}
fileFormatVersion: 2
guid: 539ba35d1f01abe4f90836d14a1c9e23
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
//TODO: SE: Split for Stage/Local
public abstract class ListLoader<T> : MenueLoader
{
public GameObject List;
public GameObject Entry;
protected void OnEnable()
{
Clear();
Init();
}
protected void OnDisable()
{
Clear();
}
public abstract void Init();
protected virtual void Clear()
{
for (int i = 0; i < List.transform.childCount; i++)
Destroy(List.transform.GetChild(i).gameObject);
}
protected abstract void Default();
public virtual void ListButtons(List<T> list)
{
if (list.Count == 0)
Default();
else
ListButtonsWrapped(list);
}
protected abstract void ListButtonsWrapped(List<T> list);
protected void WriteInChildText(GameObject entry, string content)
{
if (content == null)
return;
entry.transform.GetChild(0).gameObject.GetComponent<TMPro.TextMeshProUGUI>().text = content;
}
}
fileFormatVersion: 2
guid: 6474295d21f12d745bfb4d006233654c
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment