mirror of
https://gitgud.io/AbstractConcept/rimworld-animation-studio.git
synced 2024-08-15 00:43:27 +00:00
Basic XML tweaking and export
This commit is contained in:
parent
3c7cc0c973
commit
f78d85de3b
153 changed files with 7705 additions and 2512 deletions
BIN
.vs/RimWorld-Animation-Studio/v16/.suo
Normal file
BIN
.vs/RimWorld-Animation-Studio/v16/.suo
Normal file
Binary file not shown.
|
@ -9,7 +9,7 @@
|
|||
<ProductVersion>10.0.20506</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<RootNamespace></RootNamespace>
|
||||
<ProjectGuid>{82CB4426-9663-1039-C4CF-BBECE8C19A09}</ProjectGuid>
|
||||
<ProjectGuid>{DE362359-44D0-09FA-2268-B3965C19E49B}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<AssemblyName>Assembly-CSharp</AssemblyName>
|
||||
|
@ -64,6 +64,7 @@
|
|||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Assets\Scripts\ActorBody.cs" />
|
||||
<Compile Include="Assets\Scripts\ActorCard.cs" />
|
||||
<Compile Include="Assets\Scripts\AnimationComponents\Actor.cs" />
|
||||
<Compile Include="Assets\Scripts\AnimationComponents\AlienRaceOffset.cs" />
|
||||
<Compile Include="Assets\Scripts\AnimationComponents\AnimationClips\AnimationClip.cs" />
|
||||
|
@ -78,6 +79,7 @@
|
|||
<Compile Include="Assets\Scripts\AnimationController.cs" />
|
||||
<Compile Include="Assets\Scripts\CurvePoint.cs" />
|
||||
<Compile Include="Assets\Scripts\Defs.cs" />
|
||||
<Compile Include="Assets\Scripts\DialogBox.cs" />
|
||||
<Compile Include="Assets\Scripts\Enums.cs" />
|
||||
<Compile Include="Assets\Scripts\GenMath.cs" />
|
||||
<Compile Include="Assets\Scripts\PawnUtility.cs" />
|
||||
|
@ -94,6 +96,10 @@
|
|||
<Compile Include="Assets\Scripts\StandaloneFileBrowser\StandaloneFileBrowserLinux.cs" />
|
||||
<Compile Include="Assets\Scripts\StandaloneFileBrowser\StandaloneFileBrowserMac.cs" />
|
||||
<Compile Include="Assets\Scripts\StandaloneFileBrowser\StandaloneFileBrowserWindows.cs" />
|
||||
<Compile Include="Assets\Scripts\Tag.cs" />
|
||||
<Compile Include="Assets\Scripts\Workspace.cs" />
|
||||
<Compile Include="Assets\Scripts\WorkspaceSnapShot.cs" />
|
||||
<Compile Include="Assets\Scripts\XmlUtility.cs" />
|
||||
<Reference Include="UnityEngine">
|
||||
<HintPath>C:/Program Files/Unity/Hub/Editor/2019.4.20f1/Editor/Data/Managed/UnityEngine/UnityEngine.dll</HintPath>
|
||||
</Reference>
|
||||
|
@ -278,10 +284,10 @@
|
|||
<HintPath>C:/Program Files/Unity/Hub/Editor/2019.4.20f1/Editor/Data/Managed/UnityEditor.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Ookii.Dialogs">
|
||||
<HintPath>C:/UnityDev/RimWorld-Animation-Studio/Assets/Scripts/StandaloneFileBrowser/Plugins/Ookii.Dialogs.dll</HintPath>
|
||||
<HintPath>C:/UnityDev/rimworld-animation-studio/Assets/Scripts/StandaloneFileBrowser/Plugins/Ookii.Dialogs.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Windows.Forms">
|
||||
<HintPath>C:/UnityDev/RimWorld-Animation-Studio/Assets/Scripts/StandaloneFileBrowser/Plugins/System.Windows.Forms.dll</HintPath>
|
||||
<HintPath>C:/UnityDev/rimworld-animation-studio/Assets/Scripts/StandaloneFileBrowser/Plugins/System.Windows.Forms.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="netstandard">
|
||||
<HintPath>C:/Program Files/Unity/Hub/Editor/2019.4.20f1/Editor/Data/NetStandard/ref/2.0.0/netstandard.dll</HintPath>
|
||||
|
@ -629,85 +635,85 @@
|
|||
<HintPath>C:/Program Files/Unity/Hub/Editor/2019.4.20f1/Editor/Data/NetStandard/compat/2.0.0/shims/netfx/System.Xml.Serialization.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Unity.Timeline.Editor">
|
||||
<HintPath>C:/UnityDev/RimWorld-Animation-Studio/Library/ScriptAssemblies/Unity.Timeline.Editor.dll</HintPath>
|
||||
<HintPath>C:/UnityDev/rimworld-animation-studio/Library/ScriptAssemblies/Unity.Timeline.Editor.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Unity.2D.Animation.Runtime">
|
||||
<HintPath>C:/UnityDev/RimWorld-Animation-Studio/Library/ScriptAssemblies/Unity.2D.Animation.Runtime.dll</HintPath>
|
||||
<HintPath>C:/UnityDev/rimworld-animation-studio/Library/ScriptAssemblies/Unity.2D.Animation.Runtime.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Unity.2D.PixelPerfect.Editor">
|
||||
<HintPath>C:/UnityDev/RimWorld-Animation-Studio/Library/ScriptAssemblies/Unity.2D.PixelPerfect.Editor.dll</HintPath>
|
||||
<HintPath>C:/UnityDev/rimworld-animation-studio/Library/ScriptAssemblies/Unity.2D.PixelPerfect.Editor.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Unity.VSCode.Editor">
|
||||
<HintPath>C:/UnityDev/RimWorld-Animation-Studio/Library/ScriptAssemblies/Unity.VSCode.Editor.dll</HintPath>
|
||||
<HintPath>C:/UnityDev/rimworld-animation-studio/Library/ScriptAssemblies/Unity.VSCode.Editor.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Unity.2D.SpriteShape.Editor">
|
||||
<HintPath>C:/UnityDev/RimWorld-Animation-Studio/Library/ScriptAssemblies/Unity.2D.SpriteShape.Editor.dll</HintPath>
|
||||
<HintPath>C:/UnityDev/rimworld-animation-studio/Library/ScriptAssemblies/Unity.2D.SpriteShape.Editor.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Unity.TextMeshPro.Editor">
|
||||
<HintPath>C:/UnityDev/RimWorld-Animation-Studio/Library/ScriptAssemblies/Unity.TextMeshPro.Editor.dll</HintPath>
|
||||
<HintPath>C:/UnityDev/rimworld-animation-studio/Library/ScriptAssemblies/Unity.TextMeshPro.Editor.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Unity.2D.Path.Editor">
|
||||
<HintPath>C:/UnityDev/RimWorld-Animation-Studio/Library/ScriptAssemblies/Unity.2D.Path.Editor.dll</HintPath>
|
||||
<HintPath>C:/UnityDev/rimworld-animation-studio/Library/ScriptAssemblies/Unity.2D.Path.Editor.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.UI">
|
||||
<HintPath>C:/UnityDev/RimWorld-Animation-Studio/Library/ScriptAssemblies/UnityEngine.UI.dll</HintPath>
|
||||
<HintPath>C:/UnityDev/rimworld-animation-studio/Library/ScriptAssemblies/UnityEngine.UI.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Unity.Timeline">
|
||||
<HintPath>C:/UnityDev/RimWorld-Animation-Studio/Library/ScriptAssemblies/Unity.Timeline.dll</HintPath>
|
||||
<HintPath>C:/UnityDev/rimworld-animation-studio/Library/ScriptAssemblies/Unity.Timeline.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Unity.2D.Animation.Triangle.Runtime">
|
||||
<HintPath>C:/UnityDev/RimWorld-Animation-Studio/Library/ScriptAssemblies/Unity.2D.Animation.Triangle.Runtime.dll</HintPath>
|
||||
<HintPath>C:/UnityDev/rimworld-animation-studio/Library/ScriptAssemblies/Unity.2D.Animation.Triangle.Runtime.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="PsdPlugin">
|
||||
<HintPath>C:/UnityDev/RimWorld-Animation-Studio/Library/ScriptAssemblies/PsdPlugin.dll</HintPath>
|
||||
<HintPath>C:/UnityDev/rimworld-animation-studio/Library/ScriptAssemblies/PsdPlugin.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Unity.CollabProxy.Editor">
|
||||
<HintPath>C:/UnityDev/RimWorld-Animation-Studio/Library/ScriptAssemblies/Unity.CollabProxy.Editor.dll</HintPath>
|
||||
<HintPath>C:/UnityDev/rimworld-animation-studio/Library/ScriptAssemblies/Unity.CollabProxy.Editor.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Unity.Rider.Editor">
|
||||
<HintPath>C:/UnityDev/RimWorld-Animation-Studio/Library/ScriptAssemblies/Unity.Rider.Editor.dll</HintPath>
|
||||
<HintPath>C:/UnityDev/rimworld-animation-studio/Library/ScriptAssemblies/Unity.Rider.Editor.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Unity.Mathematics">
|
||||
<HintPath>C:/UnityDev/RimWorld-Animation-Studio/Library/ScriptAssemblies/Unity.Mathematics.dll</HintPath>
|
||||
<HintPath>C:/UnityDev/rimworld-animation-studio/Library/ScriptAssemblies/Unity.Mathematics.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Unity.2D.Psdimporter.Editor">
|
||||
<HintPath>C:/UnityDev/RimWorld-Animation-Studio/Library/ScriptAssemblies/Unity.2D.Psdimporter.Editor.dll</HintPath>
|
||||
<HintPath>C:/UnityDev/rimworld-animation-studio/Library/ScriptAssemblies/Unity.2D.Psdimporter.Editor.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Unity.InternalAPIEngineBridge.001">
|
||||
<HintPath>C:/UnityDev/RimWorld-Animation-Studio/Library/ScriptAssemblies/Unity.InternalAPIEngineBridge.001.dll</HintPath>
|
||||
<HintPath>C:/UnityDev/rimworld-animation-studio/Library/ScriptAssemblies/Unity.InternalAPIEngineBridge.001.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Unity.2D.Sprite.Editor">
|
||||
<HintPath>C:/UnityDev/RimWorld-Animation-Studio/Library/ScriptAssemblies/Unity.2D.Sprite.Editor.dll</HintPath>
|
||||
<HintPath>C:/UnityDev/rimworld-animation-studio/Library/ScriptAssemblies/Unity.2D.Sprite.Editor.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Unity.2D.Common.Runtime">
|
||||
<HintPath>C:/UnityDev/RimWorld-Animation-Studio/Library/ScriptAssemblies/Unity.2D.Common.Runtime.dll</HintPath>
|
||||
<HintPath>C:/UnityDev/rimworld-animation-studio/Library/ScriptAssemblies/Unity.2D.Common.Runtime.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Unity.2D.Tilemap.Editor">
|
||||
<HintPath>C:/UnityDev/RimWorld-Animation-Studio/Library/ScriptAssemblies/Unity.2D.Tilemap.Editor.dll</HintPath>
|
||||
<HintPath>C:/UnityDev/rimworld-animation-studio/Library/ScriptAssemblies/Unity.2D.Tilemap.Editor.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Unity.2D.SpriteShape.Runtime">
|
||||
<HintPath>C:/UnityDev/RimWorld-Animation-Studio/Library/ScriptAssemblies/Unity.2D.SpriteShape.Runtime.dll</HintPath>
|
||||
<HintPath>C:/UnityDev/rimworld-animation-studio/Library/ScriptAssemblies/Unity.2D.SpriteShape.Runtime.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Unity.2D.PixelPerfect">
|
||||
<HintPath>C:/UnityDev/RimWorld-Animation-Studio/Library/ScriptAssemblies/Unity.2D.PixelPerfect.dll</HintPath>
|
||||
<HintPath>C:/UnityDev/rimworld-animation-studio/Library/ScriptAssemblies/Unity.2D.PixelPerfect.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Unity.2D.Animation.Editor">
|
||||
<HintPath>C:/UnityDev/RimWorld-Animation-Studio/Library/ScriptAssemblies/Unity.2D.Animation.Editor.dll</HintPath>
|
||||
<HintPath>C:/UnityDev/rimworld-animation-studio/Library/ScriptAssemblies/Unity.2D.Animation.Editor.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Unity.Mathematics.Editor">
|
||||
<HintPath>C:/UnityDev/RimWorld-Animation-Studio/Library/ScriptAssemblies/Unity.Mathematics.Editor.dll</HintPath>
|
||||
<HintPath>C:/UnityDev/rimworld-animation-studio/Library/ScriptAssemblies/Unity.Mathematics.Editor.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Unity.TextMeshPro">
|
||||
<HintPath>C:/UnityDev/RimWorld-Animation-Studio/Library/ScriptAssemblies/Unity.TextMeshPro.dll</HintPath>
|
||||
<HintPath>C:/UnityDev/rimworld-animation-studio/Library/ScriptAssemblies/Unity.TextMeshPro.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Unity.2D.Common.Editor">
|
||||
<HintPath>C:/UnityDev/RimWorld-Animation-Studio/Library/ScriptAssemblies/Unity.2D.Common.Editor.dll</HintPath>
|
||||
<HintPath>C:/UnityDev/rimworld-animation-studio/Library/ScriptAssemblies/Unity.2D.Common.Editor.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Unity.InternalAPIEditorBridge.001">
|
||||
<HintPath>C:/UnityDev/RimWorld-Animation-Studio/Library/ScriptAssemblies/Unity.InternalAPIEditorBridge.001.dll</HintPath>
|
||||
<HintPath>C:/UnityDev/rimworld-animation-studio/Library/ScriptAssemblies/Unity.InternalAPIEditorBridge.001.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEditor.UI">
|
||||
<HintPath>C:/UnityDev/RimWorld-Animation-Studio/Library/ScriptAssemblies/UnityEditor.UI.dll</HintPath>
|
||||
<HintPath>C:/UnityDev/rimworld-animation-studio/Library/ScriptAssemblies/UnityEditor.UI.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup></ItemGroup>
|
||||
|
|
3802
Assets/Resources/Prefabs/ActorCard.prefab
Normal file
3802
Assets/Resources/Prefabs/ActorCard.prefab
Normal file
File diff suppressed because it is too large
Load diff
7
Assets/Resources/Prefabs/ActorCard.prefab.meta
Normal file
7
Assets/Resources/Prefabs/ActorCard.prefab.meta
Normal file
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 73a40f7e8cdb25c4390e3ea857ff50ea
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
1017
Assets/Resources/Prefabs/AddTag.prefab
Normal file
1017
Assets/Resources/Prefabs/AddTag.prefab
Normal file
File diff suppressed because it is too large
Load diff
7
Assets/Resources/Prefabs/AddTag.prefab.meta
Normal file
7
Assets/Resources/Prefabs/AddTag.prefab.meta
Normal file
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 55d980591973c924eb2a68aedd2a8b10
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
383
Assets/Resources/Prefabs/Tag original.prefab
Normal file
383
Assets/Resources/Prefabs/Tag original.prefab
Normal file
|
@ -0,0 +1,383 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &2457332935154835317
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 3579657770581364086}
|
||||
- component: {fileID: 4290777413156071777}
|
||||
- component: {fileID: 4316394326062907506}
|
||||
- component: {fileID: 6316298721278742349}
|
||||
- component: {fileID: 5023412901064837631}
|
||||
m_Layer: 5
|
||||
m_Name: CancelButton
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &3579657770581364086
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2457332935154835317}
|
||||
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: 3885973051141023947}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 1, y: 1}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 24, y: 24}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &4290777413156071777
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2457332935154835317}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &4316394326062907506
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2457332935154835317}
|
||||
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: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 21300000, guid: b0310c99dea57fb4d94c4d001d8e0ccf, type: 3}
|
||||
m_Type: 0
|
||||
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 &6316298721278742349
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2457332935154835317}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, 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: 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: 4316394326062907506}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls:
|
||||
- m_Target: {fileID: 6278582729557287117}
|
||||
m_MethodName: DeleteTag
|
||||
m_Mode: 1
|
||||
m_Arguments:
|
||||
m_ObjectArgument: {fileID: 0}
|
||||
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
|
||||
m_IntArgument: 0
|
||||
m_FloatArgument: 0
|
||||
m_StringArgument:
|
||||
m_BoolArgument: 0
|
||||
m_CallState: 2
|
||||
--- !u!114 &5023412901064837631
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2457332935154835317}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_IgnoreLayout: 1
|
||||
m_MinWidth: -1
|
||||
m_MinHeight: -1
|
||||
m_PreferredWidth: -1
|
||||
m_PreferredHeight: -1
|
||||
m_FlexibleWidth: -1
|
||||
m_FlexibleHeight: -1
|
||||
m_LayoutPriority: 1
|
||||
--- !u!1 &3885973050753013168
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 3885973050753013169}
|
||||
- component: {fileID: 3885973050753013180}
|
||||
- component: {fileID: 3885973050753013183}
|
||||
- component: {fileID: 3885973050753013182}
|
||||
m_Layer: 5
|
||||
m_Name: TagText
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &3885973050753013169
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3885973050753013168}
|
||||
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: 3885973051141023947}
|
||||
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 &3885973050753013180
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3885973050753013168}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &3885973050753013183
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3885973050753013168}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_FontData:
|
||||
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_FontSize: 14
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 0
|
||||
m_MinSize: 10
|
||||
m_MaxSize: 40
|
||||
m_Alignment: 4
|
||||
m_AlignByGeometry: 0
|
||||
m_RichText: 1
|
||||
m_HorizontalOverflow: 0
|
||||
m_VerticalOverflow: 0
|
||||
m_LineSpacing: 1
|
||||
m_Text: Tag
|
||||
--- !u!114 &3885973050753013182
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3885973050753013168}
|
||||
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: 30
|
||||
m_PreferredWidth: -1
|
||||
m_PreferredHeight: 30
|
||||
m_FlexibleWidth: -1
|
||||
m_FlexibleHeight: -1
|
||||
m_LayoutPriority: 1
|
||||
--- !u!1 &3885973051141023946
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 3885973051141023947}
|
||||
- component: {fileID: 3885973051141023959}
|
||||
- component: {fileID: 3885973051141023958}
|
||||
- component: {fileID: 3885973051141023945}
|
||||
- component: {fileID: 3885973051141023944}
|
||||
- component: {fileID: 6278582729557287117}
|
||||
m_Layer: 5
|
||||
m_Name: Tag
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &3885973051141023947
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3885973051141023946}
|
||||
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: 3885973050753013169}
|
||||
- {fileID: 3579657770581364086}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: -136}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &3885973051141023959
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3885973051141023946}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &3885973051141023958
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3885973051141023946}
|
||||
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: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 10911, 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 &3885973051141023945
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3885973051141023946}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_HorizontalFit: 2
|
||||
m_VerticalFit: 2
|
||||
--- !u!114 &3885973051141023944
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3885973051141023946}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Padding:
|
||||
m_Left: 10
|
||||
m_Right: 10
|
||||
m_Top: 0
|
||||
m_Bottom: 0
|
||||
m_ChildAlignment: 0
|
||||
m_Spacing: 0
|
||||
m_ChildForceExpandWidth: 1
|
||||
m_ChildForceExpandHeight: 1
|
||||
m_ChildControlWidth: 1
|
||||
m_ChildControlHeight: 1
|
||||
m_ChildScaleWidth: 0
|
||||
m_ChildScaleHeight: 0
|
||||
--- !u!114 &6278582729557287117
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3885973051141023946}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: e3306014932bdc74ca0fe3ff85867c58, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
tagName: Tag
|
||||
tagText: {fileID: 3885973050753013183}
|
7
Assets/Resources/Prefabs/Tag original.prefab.meta
Normal file
7
Assets/Resources/Prefabs/Tag original.prefab.meta
Normal file
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: b77422ff2d3c9134ca5b1d461e1d3868
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
343
Assets/Resources/Prefabs/Tag.prefab
Normal file
343
Assets/Resources/Prefabs/Tag.prefab
Normal file
|
@ -0,0 +1,343 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &2457332935154835317
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 3579657770581364086}
|
||||
- component: {fileID: 4290777413156071777}
|
||||
- component: {fileID: 4316394326062907506}
|
||||
- component: {fileID: 6316298721278742349}
|
||||
- component: {fileID: 5023412901064837631}
|
||||
m_Layer: 5
|
||||
m_Name: CancelButton
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &3579657770581364086
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2457332935154835317}
|
||||
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: 3885973051141023947}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 1, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 5}
|
||||
m_SizeDelta: {x: 24, y: 24}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &4290777413156071777
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2457332935154835317}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &4316394326062907506
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2457332935154835317}
|
||||
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: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 21300000, guid: b0310c99dea57fb4d94c4d001d8e0ccf, type: 3}
|
||||
m_Type: 0
|
||||
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 &6316298721278742349
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2457332935154835317}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, 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: 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: 4316394326062907506}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls:
|
||||
- m_Target: {fileID: 6278582729557287117}
|
||||
m_MethodName: DeleteTag
|
||||
m_Mode: 1
|
||||
m_Arguments:
|
||||
m_ObjectArgument: {fileID: 0}
|
||||
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
|
||||
m_IntArgument: 0
|
||||
m_FloatArgument: 0
|
||||
m_StringArgument:
|
||||
m_BoolArgument: 0
|
||||
m_CallState: 2
|
||||
--- !u!114 &5023412901064837631
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2457332935154835317}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_IgnoreLayout: 1
|
||||
m_MinWidth: -1
|
||||
m_MinHeight: -1
|
||||
m_PreferredWidth: -1
|
||||
m_PreferredHeight: -1
|
||||
m_FlexibleWidth: -1
|
||||
m_FlexibleHeight: -1
|
||||
m_LayoutPriority: 1
|
||||
--- !u!1 &3885973050753013168
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 3885973050753013169}
|
||||
- component: {fileID: 3885973050753013180}
|
||||
- component: {fileID: 3885973050753013183}
|
||||
- component: {fileID: 3885973050753013182}
|
||||
m_Layer: 5
|
||||
m_Name: TagText
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &3885973050753013169
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3885973050753013168}
|
||||
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: 3885973051141023947}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 80, y: 30}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &3885973050753013180
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3885973050753013168}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &3885973050753013183
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3885973050753013168}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_FontData:
|
||||
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_FontSize: 14
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 0
|
||||
m_MinSize: 10
|
||||
m_MaxSize: 40
|
||||
m_Alignment: 4
|
||||
m_AlignByGeometry: 0
|
||||
m_RichText: 1
|
||||
m_HorizontalOverflow: 0
|
||||
m_VerticalOverflow: 0
|
||||
m_LineSpacing: 1
|
||||
m_Text: Tag
|
||||
--- !u!114 &3885973050753013182
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3885973050753013168}
|
||||
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: 30
|
||||
m_PreferredWidth: -1
|
||||
m_PreferredHeight: 30
|
||||
m_FlexibleWidth: -1
|
||||
m_FlexibleHeight: -1
|
||||
m_LayoutPriority: 1
|
||||
--- !u!1 &3885973051141023946
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 3885973051141023947}
|
||||
- component: {fileID: 3885973051141023959}
|
||||
- component: {fileID: 3885973051141023958}
|
||||
- component: {fileID: 6278582729557287117}
|
||||
m_Layer: 5
|
||||
m_Name: Tag
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &3885973051141023947
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3885973051141023946}
|
||||
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: 3885973050753013169}
|
||||
- {fileID: 3579657770581364086}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &3885973051141023959
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3885973051141023946}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &3885973051141023958
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3885973051141023946}
|
||||
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: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 10911, 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 &6278582729557287117
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3885973051141023946}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: e3306014932bdc74ca0fe3ff85867c58, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
tagName: Tag
|
||||
tagText: {fileID: 3885973050753013183}
|
||||
tagPrefab: {fileID: 0}
|
7
Assets/Resources/Prefabs/Tag.prefab.meta
Normal file
7
Assets/Resources/Prefabs/Tag.prefab.meta
Normal file
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 63160f5485db7444a9493d2195860460
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
8
Assets/Resources/Textures/Symbols.meta
Normal file
8
Assets/Resources/Textures/Symbols.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 17f7f29078cfcd84ba9586192aabf428
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Resources/Textures/Symbols/cancel.png
Normal file
BIN
Assets/Resources/Textures/Symbols/cancel.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
92
Assets/Resources/Textures/Symbols/cancel.png.meta
Normal file
92
Assets/Resources/Textures/Symbols/cancel.png.meta
Normal file
|
@ -0,0 +1,92 @@
|
|||
fileFormatVersion: 2
|
||||
guid: b0310c99dea57fb4d94c4d001d8e0ccf
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 11
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 1
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 1
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 8
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
applyGammaDecoding: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 5e97eb03825dee720800000000000000
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
File diff suppressed because it is too large
Load diff
52
Assets/Scripts/ActorCard.cs
Normal file
52
Assets/Scripts/ActorCard.cs
Normal file
|
@ -0,0 +1,52 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace RimWorldAnimationStudio
|
||||
{
|
||||
public class ActorCard : MonoBehaviour
|
||||
{
|
||||
public Dropdown genderDropdown;
|
||||
public Dropdown bodyTypeDropdown;
|
||||
public InputField bodyOffsetXField;
|
||||
public InputField bodyOffsetZField;
|
||||
public Toggle initiatorToggle;
|
||||
public GameObject bodyPartsTags;
|
||||
|
||||
private AnimationDef animationDef;
|
||||
private int actorID = 0;
|
||||
|
||||
public string bodyType
|
||||
{
|
||||
get
|
||||
{
|
||||
string _bodyType = bodyTypeDropdown.options[bodyTypeDropdown.value].text;
|
||||
if (_bodyType == "") return "Male";
|
||||
|
||||
return _bodyType;
|
||||
}
|
||||
}
|
||||
|
||||
public void Initialize(AnimationDef animationDef, int actorID)
|
||||
{
|
||||
this.animationDef = animationDef;
|
||||
this.actorID = actorID;
|
||||
|
||||
UpdateBodyType();
|
||||
initiatorToggle.isOn = animationDef.actors[actorID].initiator;
|
||||
}
|
||||
|
||||
public void UpdateBodyType()
|
||||
{
|
||||
bodyOffsetXField.text = animationDef.actors[actorID].bodyTypeOffset.GetOffset(bodyType).x.ToString();
|
||||
bodyOffsetZField.text = animationDef.actors[actorID].bodyTypeOffset.GetOffset(bodyType).z.ToString();
|
||||
}
|
||||
|
||||
public void UpdateAnimationDef()
|
||||
{
|
||||
animationDef.actors[actorID].initiator = initiatorToggle.isOn;
|
||||
animationDef.actors[actorID].bodyTypeOffset.SetOffset(bodyType, new Vector2(float.Parse(bodyOffsetXField.text), float.Parse(bodyOffsetZField.text)));
|
||||
}
|
||||
}
|
||||
}
|
11
Assets/Scripts/ActorCard.cs.meta
Normal file
11
Assets/Scripts/ActorCard.cs.meta
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 9731614c7527b624492dd33f9b006fcb
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -9,15 +9,11 @@ namespace RimWorldAnimationStudio
|
|||
public string defName = "Undefined";
|
||||
public string label = "Undefined";
|
||||
public bool sounds = false;
|
||||
public int animationTimeTicks = 0;
|
||||
public List<string> sexTypes = new List<string>();
|
||||
public List<string> interactionDefTypes = new List<string>();
|
||||
|
||||
[XmlArray("actors"), XmlArrayItem("li")]
|
||||
public List<Actor> actors = new List<Actor>();
|
||||
|
||||
[XmlArray("animationStages"), XmlArrayItem("li")]
|
||||
public List<AnimationStage> animationStages = new List<AnimationStage>();
|
||||
[XmlIgnore] public int animationTimeTicks = 0;
|
||||
[XmlArray("sexTypes"), XmlArrayItem("li")] public List<string> sexTypes = new List<string>();
|
||||
[XmlArray("interactionDefTypes"), XmlArrayItem("li")] public List<string> interactionDefTypes = new List<string>();
|
||||
[XmlArray("actors"), XmlArrayItem("li")] public List<Actor> actors = new List<Actor>();
|
||||
[XmlArray("animationStages"), XmlArrayItem("li")] public List<AnimationStage> animationStages = new List<AnimationStage>();
|
||||
|
||||
public void Initialize()
|
||||
{
|
||||
|
|
|
@ -12,11 +12,25 @@ namespace RimWorldAnimationStudio
|
|||
public string Hulk;
|
||||
public string Fat;
|
||||
|
||||
public void SetOffset(string bodyType, Vector2 offset)
|
||||
{
|
||||
FieldInfo bodyTypeOffsetInfo = typeof(BodyTypeOffset).GetField(bodyType);
|
||||
|
||||
if (bodyTypeOffsetInfo == null)
|
||||
{ return; }
|
||||
|
||||
bodyTypeOffsetInfo.SetValue(this, offset.ToString());
|
||||
}
|
||||
|
||||
public Vector3 GetOffset(string bodyType)
|
||||
{
|
||||
Debug.Log(bodyType);
|
||||
|
||||
FieldInfo bodyTypeOffsetInfo = typeof(BodyTypeOffset).GetField(bodyType);
|
||||
|
||||
if (bodyTypeOffsetInfo == null)
|
||||
{ return new Vector2(); }
|
||||
|
||||
string bodyTypeOffsetString = (string)bodyTypeOffsetInfo.GetValue(this);
|
||||
|
||||
if (bodyTypeOffsetString == null || bodyTypeOffsetString == "")
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using System.Text;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
|
@ -27,11 +28,14 @@ namespace RimWorldAnimationStudio
|
|||
|
||||
public ActorBody actorBodyPrefab;
|
||||
public List<ActorBody> actorBodies = new List<ActorBody>();
|
||||
public List<Dropdown> bodyTypeDropdowns = new List<Dropdown>();
|
||||
//public List<Dropdown> bodyTypeDropdowns = new List<Dropdown>();
|
||||
|
||||
public Text stageTickField;
|
||||
public Text stageLengthField;
|
||||
|
||||
public Transform actorCards;
|
||||
public GameObject actorCardPrefab;
|
||||
|
||||
private float currentTime = 0;
|
||||
|
||||
public T ReadDataFromXML<T>(string inputPath)
|
||||
|
@ -55,10 +59,34 @@ namespace RimWorldAnimationStudio
|
|||
anim = defs.animationDefs[0];
|
||||
InitializeAnimation(anim);
|
||||
|
||||
foreach (Actor actor in anim.actors)
|
||||
{
|
||||
AddActor();
|
||||
}
|
||||
|
||||
UpdateAnimation();
|
||||
}
|
||||
}
|
||||
|
||||
public void SaveXML()
|
||||
{
|
||||
if (anim == null)
|
||||
{ return; }
|
||||
|
||||
string path = StandaloneFileBrowser.SaveFilePanel("Save file", "", anim.defName + ".xml", ".xml");
|
||||
|
||||
if (path == null || path == "")
|
||||
{ return; }
|
||||
|
||||
XmlSerializer writer = new XmlSerializer(typeof(AnimationDef));
|
||||
XmlSerializerNamespaces ns = new XmlSerializerNamespaces();
|
||||
ns.Add("", "");
|
||||
FileStream file = File.Create(path);
|
||||
|
||||
writer.Serialize(file, anim, ns);
|
||||
file.Close();
|
||||
}
|
||||
|
||||
public void OpenFileDialog()
|
||||
{
|
||||
var paths = StandaloneFileBrowser.OpenFilePanel("Open File", "", "", false);
|
||||
|
@ -94,7 +122,8 @@ namespace RimWorldAnimationStudio
|
|||
|
||||
public void Update()
|
||||
{
|
||||
if (anim == null || isAnimating == false) return;
|
||||
if (anim == null) { return; }
|
||||
if (isAnimating == false) { UpdateAnimation(); return; }
|
||||
|
||||
currentTime += Time.deltaTime;
|
||||
|
||||
|
@ -119,6 +148,12 @@ namespace RimWorldAnimationStudio
|
|||
UpdateAnimation();
|
||||
}
|
||||
|
||||
public void AddActor()
|
||||
{
|
||||
GameObject actorCardObject = Instantiate(actorCardPrefab, actorCards);
|
||||
actorCardObject.GetComponent<ActorCard>().Initialize(anim, actorCards.childCount - 1);
|
||||
}
|
||||
|
||||
public void InitializeAnimation(AnimationDef anim)
|
||||
{
|
||||
ResetAnimation();
|
||||
|
@ -153,7 +188,7 @@ namespace RimWorldAnimationStudio
|
|||
for (int actorID = 0; actorID < actorBodies.Count; actorID++)
|
||||
{
|
||||
ActorBody actorBody = actorBodies[actorID];
|
||||
string bodyType = bodyTypeDropdowns[actorID].options[bodyTypeDropdowns[actorID].value].text;
|
||||
string bodyType = actorCards.transform.GetChild(actorID).GetComponent<ActorCard>().bodyType; //bodyTypeDropdowns[actorID].options[bodyTypeDropdowns[actorID].value].text;
|
||||
|
||||
PawnAnimationClip clip = anim.animationStages[stageID].animationClips[actorID];
|
||||
float clipPercent = (float)(stageTick % clip.duration) / clip.duration;
|
||||
|
|
|
@ -4,7 +4,7 @@ using System.Xml.Serialization;
|
|||
|
||||
namespace RimWorldAnimationStudio
|
||||
{
|
||||
[XmlRoot("Defs")]
|
||||
[XmlRoot("Defs", IsNullable = false)]
|
||||
public class Defs
|
||||
{
|
||||
[XmlElement("Rimworld_Animations.AnimationDef")]
|
||||
|
|
35
Assets/Scripts/DialogBox.cs
Normal file
35
Assets/Scripts/DialogBox.cs
Normal file
|
@ -0,0 +1,35 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace RimWorldAnimationStudio
|
||||
{
|
||||
public class DialogBox : MonoBehaviour
|
||||
{
|
||||
public Image backSplash;
|
||||
|
||||
public void Start()
|
||||
{
|
||||
//backSplash = Instanitate(new Image() { SpriteRenderer }, transform);
|
||||
//SpriteRenderer spriteRenderer = backSplash.GetComponent<SpriteRenderer>();
|
||||
//spriteRenderer.sprite = Resources.Load("whiteSquare");
|
||||
//spriteRenderer.color = new Color(0f, 0f, 0f, 0f.2f);
|
||||
|
||||
//panelRectTransform.anchorMin = new Vector2(1, 0);
|
||||
//panelRectTransform.anchorMax = new Vector2(0, 1);
|
||||
//panelRectTransform.pivot = new Vector2(0.5f, 0.5f);
|
||||
|
||||
// Set layer to backsplash?
|
||||
}
|
||||
|
||||
public void Pop()
|
||||
{
|
||||
//backSplash.SetActive(gameObject.activeSelf == false);
|
||||
gameObject.SetActive(gameObject.activeSelf == false);
|
||||
}
|
||||
}
|
||||
}
|
11
Assets/Scripts/DialogBox.cs.meta
Normal file
11
Assets/Scripts/DialogBox.cs.meta
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 5a554bad525e79e4fb3dea0d391daf48
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
35
Assets/Scripts/Tag.cs
Normal file
35
Assets/Scripts/Tag.cs
Normal file
|
@ -0,0 +1,35 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace RimWorldAnimationStudio
|
||||
{
|
||||
public class Tag : MonoBehaviour
|
||||
{
|
||||
public string tagName = "New Tag";
|
||||
public Text tagText;
|
||||
public GameObject tagPrefab;
|
||||
|
||||
public void Initialize(string tagName)
|
||||
{
|
||||
this.tagName = tagName;
|
||||
tagText.text = tagName;
|
||||
}
|
||||
|
||||
public void AddTag()
|
||||
{
|
||||
GameObject newTag = Instantiate(tagPrefab, transform.parent);
|
||||
newTag.GetComponent<Tag>().Initialize(tagText.text);
|
||||
|
||||
tagText.text = tagName;
|
||||
transform.SetAsLastSibling();
|
||||
}
|
||||
|
||||
public void DeleteTag()
|
||||
{
|
||||
//SendMessageUpwards("DeleteTag", this);
|
||||
Destroy(gameObject);
|
||||
}
|
||||
}
|
||||
}
|
11
Assets/Scripts/Tag.cs.meta
Normal file
11
Assets/Scripts/Tag.cs.meta
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e3306014932bdc74ca0fe3ff85867c58
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
84
Assets/Scripts/Workspace.cs
Normal file
84
Assets/Scripts/Workspace.cs
Normal file
|
@ -0,0 +1,84 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RimWorldAnimationStudio
|
||||
{
|
||||
public class Workspace : MonoBehaviour
|
||||
{
|
||||
public AnimationDef animationDef;
|
||||
public int stageID = 0;
|
||||
public bool isDirty = false;
|
||||
|
||||
public List<WorkspaceSnapShot> workspaceHistory = new List<WorkspaceSnapShot>();
|
||||
public int maxHistoryDepth = 100;
|
||||
public int historyIndex = 0;
|
||||
|
||||
public void TryToCloseApplication()
|
||||
{
|
||||
if (isDirty)
|
||||
{
|
||||
//exitDialog.Pop();
|
||||
return;
|
||||
}
|
||||
|
||||
CloseApplication();
|
||||
}
|
||||
|
||||
public void CloseApplication()
|
||||
{
|
||||
Application.Quit();
|
||||
}
|
||||
|
||||
public void GenerateLoadOptions(Defs defs)
|
||||
{
|
||||
for (int i = 0; i < defs.animationDefs.Count - 1; i++)
|
||||
{
|
||||
//Instantiate child button
|
||||
//button.text
|
||||
//buttoncallback = LoadADef(list[i]);
|
||||
}
|
||||
}
|
||||
|
||||
public void TrackChanges()
|
||||
{
|
||||
if (historyIndex < workspaceHistory.Count - 1)
|
||||
{ workspaceHistory.RemoveRange(historyIndex + 1, workspaceHistory.Count - historyIndex); }
|
||||
|
||||
if (workspaceHistory.Any() && workspaceHistory.Count >= maxHistoryDepth)
|
||||
{ workspaceHistory.RemoveAt(0); }
|
||||
|
||||
WorkspaceSnapShot workspaceSnapShot = new WorkspaceSnapShot();
|
||||
workspaceSnapShot.animationDef = animationDef;
|
||||
workspaceSnapShot.stageID = stageID;
|
||||
|
||||
workspaceHistory.Add(workspaceSnapShot);
|
||||
|
||||
// track bType for actors, stageID, isdirty
|
||||
|
||||
historyIndex++;
|
||||
}
|
||||
|
||||
public void Undo()
|
||||
{
|
||||
historyIndex = Mathf.Clamp(historyIndex - 1, 0, workspaceHistory.Count - 1);
|
||||
LoadHistoricState();
|
||||
}
|
||||
|
||||
public void Redo()
|
||||
{
|
||||
historyIndex = Mathf.Clamp(historyIndex - 1, 0, workspaceHistory.Count - 1);
|
||||
LoadHistoricState();
|
||||
}
|
||||
|
||||
public void LoadHistoricState()
|
||||
{
|
||||
animationDef = workspaceHistory[historyIndex].animationDef;
|
||||
|
||||
// All other data
|
||||
}
|
||||
}
|
||||
}
|
11
Assets/Scripts/Workspace.cs.meta
Normal file
11
Assets/Scripts/Workspace.cs.meta
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: bf0f782b7c407bf4896b633d509f5568
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
14
Assets/Scripts/WorkspaceSnapShot.cs
Normal file
14
Assets/Scripts/WorkspaceSnapShot.cs
Normal file
|
@ -0,0 +1,14 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace RimWorldAnimationStudio
|
||||
{
|
||||
public class WorkspaceSnapShot
|
||||
{
|
||||
public AnimationDef animationDef;
|
||||
public int stageID = 0;
|
||||
}
|
||||
}
|
11
Assets/Scripts/WorkspaceSnapShot.cs.meta
Normal file
11
Assets/Scripts/WorkspaceSnapShot.cs.meta
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: d877470affbfa194db9947e8bdd1bcb9
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
37
Assets/Scripts/XmlUtility.cs
Normal file
37
Assets/Scripts/XmlUtility.cs
Normal file
|
@ -0,0 +1,37 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.IO;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace RimWorldAnimationStudio
|
||||
{
|
||||
public class XmlUtility
|
||||
{
|
||||
public T ReadXML<T>(string path)
|
||||
{
|
||||
using (StreamReader stringReader = new StreamReader(path))
|
||||
{
|
||||
XmlSerializer serializer = new XmlSerializer(typeof(T));
|
||||
|
||||
return (T)serializer.Deserialize(stringReader);
|
||||
}
|
||||
}
|
||||
|
||||
public void WriteXML(AnimationDef animationDef, string path)
|
||||
{
|
||||
if (animationDef == null || path == null || path == "")
|
||||
{ return; }
|
||||
|
||||
XmlSerializer writer = new XmlSerializer(typeof(AnimationDef));
|
||||
XmlSerializerNamespaces nameSpaces = new XmlSerializerNamespaces();
|
||||
nameSpaces.Add("", "");
|
||||
|
||||
FileStream file = File.Create(path);
|
||||
writer.Serialize(file, animationDef, nameSpaces);
|
||||
file.Close();
|
||||
}
|
||||
}
|
||||
}
|
11
Assets/Scripts/XmlUtility.cs.meta
Normal file
11
Assets/Scripts/XmlUtility.cs.meta
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 98d85a0061a130d47863c6a7b14df10f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Binary file not shown.
BIN
Library/Artifacts/03/0307e3ffe8ec326143b8405950a082b2
Normal file
BIN
Library/Artifacts/03/0307e3ffe8ec326143b8405950a082b2
Normal file
Binary file not shown.
BIN
Library/Artifacts/04/042f5075d0db4b3e09939a034e078c4d
Normal file
BIN
Library/Artifacts/04/042f5075d0db4b3e09939a034e078c4d
Normal file
Binary file not shown.
BIN
Library/Artifacts/06/067ad74fe717a83f0a97a6d93734eb65
Normal file
BIN
Library/Artifacts/06/067ad74fe717a83f0a97a6d93734eb65
Normal file
Binary file not shown.
BIN
Library/Artifacts/06/06850be10a90572d5c3b0e6422c4f270
Normal file
BIN
Library/Artifacts/06/06850be10a90572d5c3b0e6422c4f270
Normal file
Binary file not shown.
BIN
Library/Artifacts/08/0801c4e3fe9535bf1403cb4c4cecaa26
Normal file
BIN
Library/Artifacts/08/0801c4e3fe9535bf1403cb4c4cecaa26
Normal file
Binary file not shown.
BIN
Library/Artifacts/0b/0b727ac9ada12a3574746345de47d830
Normal file
BIN
Library/Artifacts/0b/0b727ac9ada12a3574746345de47d830
Normal file
Binary file not shown.
BIN
Library/Artifacts/0d/0d13c7b6c3fb222071bf044121eac853
Normal file
BIN
Library/Artifacts/0d/0d13c7b6c3fb222071bf044121eac853
Normal file
Binary file not shown.
BIN
Library/Artifacts/0e/0ec79e85bc9d13858f553faef1cab351
Normal file
BIN
Library/Artifacts/0e/0ec79e85bc9d13858f553faef1cab351
Normal file
Binary file not shown.
BIN
Library/Artifacts/13/13e597ecb14fc7213734639928fcf334
Normal file
BIN
Library/Artifacts/13/13e597ecb14fc7213734639928fcf334
Normal file
Binary file not shown.
BIN
Library/Artifacts/15/155bfaf801629fe6e688737f2848893a
Normal file
BIN
Library/Artifacts/15/155bfaf801629fe6e688737f2848893a
Normal file
Binary file not shown.
BIN
Library/Artifacts/19/19c30a77763c36124bd419d61a991cbb
Normal file
BIN
Library/Artifacts/19/19c30a77763c36124bd419d61a991cbb
Normal file
Binary file not shown.
BIN
Library/Artifacts/1a/1ab6e723528fd0d1f924348691bc9544
Normal file
BIN
Library/Artifacts/1a/1ab6e723528fd0d1f924348691bc9544
Normal file
Binary file not shown.
BIN
Library/Artifacts/1b/1b163d0b17f3a95e7ac846412398921d
Normal file
BIN
Library/Artifacts/1b/1b163d0b17f3a95e7ac846412398921d
Normal file
Binary file not shown.
BIN
Library/Artifacts/1c/1ce4ea2f18ebc8933a81a79c917fe634
Normal file
BIN
Library/Artifacts/1c/1ce4ea2f18ebc8933a81a79c917fe634
Normal file
Binary file not shown.
BIN
Library/Artifacts/1e/1ed1186fb0e79af297e4c5ccd7ace861
Normal file
BIN
Library/Artifacts/1e/1ed1186fb0e79af297e4c5ccd7ace861
Normal file
Binary file not shown.
BIN
Library/Artifacts/22/228ff432e60855c420d180c0d3808c6f
Normal file
BIN
Library/Artifacts/22/228ff432e60855c420d180c0d3808c6f
Normal file
Binary file not shown.
BIN
Library/Artifacts/25/25cd5aee84845b77dffde42a9f49fee5
Normal file
BIN
Library/Artifacts/25/25cd5aee84845b77dffde42a9f49fee5
Normal file
Binary file not shown.
BIN
Library/Artifacts/27/278cc20b1f41877932c270c3bc607e0c
Normal file
BIN
Library/Artifacts/27/278cc20b1f41877932c270c3bc607e0c
Normal file
Binary file not shown.
BIN
Library/Artifacts/2b/2bcab76928c25667a6db79bae5b99081
Normal file
BIN
Library/Artifacts/2b/2bcab76928c25667a6db79bae5b99081
Normal file
Binary file not shown.
BIN
Library/Artifacts/2e/2e60918762996f21ed6bdc9b327494a5
Normal file
BIN
Library/Artifacts/2e/2e60918762996f21ed6bdc9b327494a5
Normal file
Binary file not shown.
BIN
Library/Artifacts/30/30743fbc25fe0ec7f5fa2815b24c369a
Normal file
BIN
Library/Artifacts/30/30743fbc25fe0ec7f5fa2815b24c369a
Normal file
Binary file not shown.
BIN
Library/Artifacts/30/30b42e11e29abe884cfbe30a8097fcfd
Normal file
BIN
Library/Artifacts/30/30b42e11e29abe884cfbe30a8097fcfd
Normal file
Binary file not shown.
BIN
Library/Artifacts/32/320e00a508e4b8ec816d239099719b97
Normal file
BIN
Library/Artifacts/32/320e00a508e4b8ec816d239099719b97
Normal file
Binary file not shown.
BIN
Library/Artifacts/33/33e92d2e8a3581be8e37f797ce096326
Normal file
BIN
Library/Artifacts/33/33e92d2e8a3581be8e37f797ce096326
Normal file
Binary file not shown.
BIN
Library/Artifacts/37/373d8e5f9e4dcf459fea07266059ded3
Normal file
BIN
Library/Artifacts/37/373d8e5f9e4dcf459fea07266059ded3
Normal file
Binary file not shown.
BIN
Library/Artifacts/3d/3da31b1164543ea8c388e423f3d1eaa3
Normal file
BIN
Library/Artifacts/3d/3da31b1164543ea8c388e423f3d1eaa3
Normal file
Binary file not shown.
BIN
Library/Artifacts/3e/3e42fbb0849f0c943143ffd34d1e480d
Normal file
BIN
Library/Artifacts/3e/3e42fbb0849f0c943143ffd34d1e480d
Normal file
Binary file not shown.
BIN
Library/Artifacts/3f/3fed264862b9b93f29a23cf4c61bc248
Normal file
BIN
Library/Artifacts/3f/3fed264862b9b93f29a23cf4c61bc248
Normal file
Binary file not shown.
BIN
Library/Artifacts/42/4275cdb5a5d7e875e3fb7185c1f08ed0
Normal file
BIN
Library/Artifacts/42/4275cdb5a5d7e875e3fb7185c1f08ed0
Normal file
Binary file not shown.
BIN
Library/Artifacts/47/47f4cea8647aab0ae359551541454241
Normal file
BIN
Library/Artifacts/47/47f4cea8647aab0ae359551541454241
Normal file
Binary file not shown.
BIN
Library/Artifacts/49/4990881b4c29fed522dd773166c8ffff
Normal file
BIN
Library/Artifacts/49/4990881b4c29fed522dd773166c8ffff
Normal file
Binary file not shown.
BIN
Library/Artifacts/49/49e0c1e246591d39e0ad69a8d87ee137
Normal file
BIN
Library/Artifacts/49/49e0c1e246591d39e0ad69a8d87ee137
Normal file
Binary file not shown.
BIN
Library/Artifacts/4e/4e9047202edb2a14df068205c74234e5
Normal file
BIN
Library/Artifacts/4e/4e9047202edb2a14df068205c74234e5
Normal file
Binary file not shown.
BIN
Library/Artifacts/4f/4f42a65027d0fbafb821711af2191439
Normal file
BIN
Library/Artifacts/4f/4f42a65027d0fbafb821711af2191439
Normal file
Binary file not shown.
BIN
Library/Artifacts/51/51f247ce692ef81d830a73714bacedea
Normal file
BIN
Library/Artifacts/51/51f247ce692ef81d830a73714bacedea
Normal file
Binary file not shown.
BIN
Library/Artifacts/53/53041bf9184971024831b2a851a36541
Normal file
BIN
Library/Artifacts/53/53041bf9184971024831b2a851a36541
Normal file
Binary file not shown.
BIN
Library/Artifacts/53/53443c392ab86a42bdb6322e4401667f
Normal file
BIN
Library/Artifacts/53/53443c392ab86a42bdb6322e4401667f
Normal file
Binary file not shown.
BIN
Library/Artifacts/56/56cf2d2938a03161fd607ae961fdd899
Normal file
BIN
Library/Artifacts/56/56cf2d2938a03161fd607ae961fdd899
Normal file
Binary file not shown.
BIN
Library/Artifacts/57/57b8839b2cd392f8643e2cc4c3a6fe0a
Normal file
BIN
Library/Artifacts/57/57b8839b2cd392f8643e2cc4c3a6fe0a
Normal file
Binary file not shown.
BIN
Library/Artifacts/5c/5c64a1a5766951bdd7d7feda5329e037
Normal file
BIN
Library/Artifacts/5c/5c64a1a5766951bdd7d7feda5329e037
Normal file
Binary file not shown.
BIN
Library/Artifacts/5e/5e4de499f5c22b6246cff8b668da8545
Normal file
BIN
Library/Artifacts/5e/5e4de499f5c22b6246cff8b668da8545
Normal file
Binary file not shown.
BIN
Library/Artifacts/61/61fbfc821c7baac2c3fd29f76b6782d0
Normal file
BIN
Library/Artifacts/61/61fbfc821c7baac2c3fd29f76b6782d0
Normal file
Binary file not shown.
BIN
Library/Artifacts/64/643bc24a0832dc478846056612706c91
Normal file
BIN
Library/Artifacts/64/643bc24a0832dc478846056612706c91
Normal file
Binary file not shown.
BIN
Library/Artifacts/68/68c7ca055405cbbc45bfcd0603fcd06d
Normal file
BIN
Library/Artifacts/68/68c7ca055405cbbc45bfcd0603fcd06d
Normal file
Binary file not shown.
BIN
Library/Artifacts/6b/6b03d0e5ecdf0de0f834318db64408af
Normal file
BIN
Library/Artifacts/6b/6b03d0e5ecdf0de0f834318db64408af
Normal file
Binary file not shown.
BIN
Library/Artifacts/6d/6dc367d33288f4b2967d8fb28a692322
Normal file
BIN
Library/Artifacts/6d/6dc367d33288f4b2967d8fb28a692322
Normal file
Binary file not shown.
BIN
Library/Artifacts/70/70bf5e90b0e538e43ed19c282a0210ac
Normal file
BIN
Library/Artifacts/70/70bf5e90b0e538e43ed19c282a0210ac
Normal file
Binary file not shown.
BIN
Library/Artifacts/73/73a575d5cb76bbb81013c8bec339fcfb
Normal file
BIN
Library/Artifacts/73/73a575d5cb76bbb81013c8bec339fcfb
Normal file
Binary file not shown.
BIN
Library/Artifacts/74/7469c4f6b2680ddc5adf4d444d5dd30f
Normal file
BIN
Library/Artifacts/74/7469c4f6b2680ddc5adf4d444d5dd30f
Normal file
Binary file not shown.
BIN
Library/Artifacts/74/74989263f57aefb44a4deb3922160290
Normal file
BIN
Library/Artifacts/74/74989263f57aefb44a4deb3922160290
Normal file
Binary file not shown.
BIN
Library/Artifacts/7d/7da2c4c2413a75ae6914cf9863f7738a
Normal file
BIN
Library/Artifacts/7d/7da2c4c2413a75ae6914cf9863f7738a
Normal file
Binary file not shown.
BIN
Library/Artifacts/80/8088dbbf28f397b49993f88a90437aa3
Normal file
BIN
Library/Artifacts/80/8088dbbf28f397b49993f88a90437aa3
Normal file
Binary file not shown.
BIN
Library/Artifacts/85/857c17020ac0ddec807fe186bddca3c2
Normal file
BIN
Library/Artifacts/85/857c17020ac0ddec807fe186bddca3c2
Normal file
Binary file not shown.
BIN
Library/Artifacts/8b/8ba4e30e701052e030435f4d018cea81
Normal file
BIN
Library/Artifacts/8b/8ba4e30e701052e030435f4d018cea81
Normal file
Binary file not shown.
BIN
Library/Artifacts/8c/8cd8eebab4965179424ee2513ae1a0eb
Normal file
BIN
Library/Artifacts/8c/8cd8eebab4965179424ee2513ae1a0eb
Normal file
Binary file not shown.
BIN
Library/Artifacts/92/92e19bd3383728c5f8c7b0f657b1f93f
Normal file
BIN
Library/Artifacts/92/92e19bd3383728c5f8c7b0f657b1f93f
Normal file
Binary file not shown.
BIN
Library/Artifacts/93/936373fd978c22efded74b759a31ff41
Normal file
BIN
Library/Artifacts/93/936373fd978c22efded74b759a31ff41
Normal file
Binary file not shown.
BIN
Library/Artifacts/98/9803d6f0e84909fdd8948714982aba64
Normal file
BIN
Library/Artifacts/98/9803d6f0e84909fdd8948714982aba64
Normal file
Binary file not shown.
BIN
Library/Artifacts/98/98530fa4c650d004a40688ecf6517523
Normal file
BIN
Library/Artifacts/98/98530fa4c650d004a40688ecf6517523
Normal file
Binary file not shown.
BIN
Library/Artifacts/98/98ca68955aa1dd8426304d059357019b
Normal file
BIN
Library/Artifacts/98/98ca68955aa1dd8426304d059357019b
Normal file
Binary file not shown.
BIN
Library/Artifacts/99/991346c3478de8cb979f258543495b16
Normal file
BIN
Library/Artifacts/99/991346c3478de8cb979f258543495b16
Normal file
Binary file not shown.
BIN
Library/Artifacts/a5/a50ebd6ddea38a78808f9fc790656617
Normal file
BIN
Library/Artifacts/a5/a50ebd6ddea38a78808f9fc790656617
Normal file
Binary file not shown.
BIN
Library/Artifacts/a7/a72806333a4dcbc76fde76c0d245452e
Normal file
BIN
Library/Artifacts/a7/a72806333a4dcbc76fde76c0d245452e
Normal file
Binary file not shown.
BIN
Library/Artifacts/a7/a798a8ff0f04f2bb16cfdb894ddfac6c
Normal file
BIN
Library/Artifacts/a7/a798a8ff0f04f2bb16cfdb894ddfac6c
Normal file
Binary file not shown.
BIN
Library/Artifacts/a9/a9624f7c21ce750f13459e4108fed54d
Normal file
BIN
Library/Artifacts/a9/a9624f7c21ce750f13459e4108fed54d
Normal file
Binary file not shown.
BIN
Library/Artifacts/ab/ab861568d32e90225731f045809d03c4
Normal file
BIN
Library/Artifacts/ab/ab861568d32e90225731f045809d03c4
Normal file
Binary file not shown.
BIN
Library/Artifacts/ad/ad949252e87d91262e06f886534a3e78
Normal file
BIN
Library/Artifacts/ad/ad949252e87d91262e06f886534a3e78
Normal file
Binary file not shown.
BIN
Library/Artifacts/b0/b060e16ef878045e35075876f4eafbb1
Normal file
BIN
Library/Artifacts/b0/b060e16ef878045e35075876f4eafbb1
Normal file
Binary file not shown.
BIN
Library/Artifacts/b1/b16cfeef9d970cafccd87fa72a5da150
Normal file
BIN
Library/Artifacts/b1/b16cfeef9d970cafccd87fa72a5da150
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue