Menu基本完成
This commit is contained in:
@@ -3464,7 +3464,7 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
m_Material: {fileID: 0}
|
m_Material: {fileID: 0}
|
||||||
m_Color: {r: 0.49056602, g: 0.49056602, b: 0.49056602, a: 1}
|
m_Color: {r: 0.75, g: 0.75, b: 0.75, a: 1}
|
||||||
m_RaycastTarget: 1
|
m_RaycastTarget: 1
|
||||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
m_Maskable: 1
|
m_Maskable: 1
|
||||||
@@ -3732,7 +3732,7 @@ GameObject:
|
|||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 1
|
m_IsActive: 0
|
||||||
--- !u!224 &6098402083919947941
|
--- !u!224 &6098402083919947941
|
||||||
RectTransform:
|
RectTransform:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -4032,17 +4032,17 @@ RectTransform:
|
|||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 4551339722402108901}
|
- {fileID: 4551339722402108901}
|
||||||
- {fileID: 3053449365611135054}
|
- {fileID: 3053449365611135054}
|
||||||
- {fileID: 4491000668490005289}
|
|
||||||
- {fileID: 1164717157833169956}
|
- {fileID: 1164717157833169956}
|
||||||
- {fileID: 8264390159060979104}
|
- {fileID: 8264390159060979104}
|
||||||
|
- {fileID: 4491000668490005289}
|
||||||
- {fileID: 8539601127519975421}
|
- {fileID: 8539601127519975421}
|
||||||
- {fileID: 5482144863011502994}
|
|
||||||
- {fileID: 6536910438325192580}
|
- {fileID: 6536910438325192580}
|
||||||
- {fileID: 7089605701005238764}
|
- {fileID: 7089605701005238764}
|
||||||
- {fileID: 1391245266664431848}
|
- {fileID: 1391245266664431848}
|
||||||
- {fileID: 4219303162948560369}
|
- {fileID: 4219303162948560369}
|
||||||
- {fileID: 7412017548843780828}
|
- {fileID: 7412017548843780828}
|
||||||
- {fileID: 4383495645718972772}
|
- {fileID: 4383495645718972772}
|
||||||
|
- {fileID: 5482144863011502994}
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 0.5}
|
m_AnchorMin: {x: 0, y: 0.5}
|
||||||
@@ -4064,7 +4064,10 @@ MonoBehaviour:
|
|||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
content: {fileID: 7049295459616353746}
|
content: {fileID: 7049295459616353746}
|
||||||
layoutElement: {fileID: 2225817646999968926}
|
layoutElement: {fileID: 2225817646999968926}
|
||||||
button: {fileID: 1243830395405912301}
|
expandButton: {fileID: 1243830395405912301}
|
||||||
|
enterStorylineButton: {fileID: 902400648064669948}
|
||||||
|
enterSongSelectionButton: {fileID: 5935354699868473682}
|
||||||
|
chapterName:
|
||||||
isExpanded: 0
|
isExpanded: 0
|
||||||
isDuringAnimation: 0
|
isDuringAnimation: 0
|
||||||
bottomTip: {fileID: 3369054462927452463}
|
bottomTip: {fileID: 3369054462927452463}
|
||||||
@@ -4727,7 +4730,7 @@ GameObject:
|
|||||||
- component: {fileID: 888334063374963160}
|
- component: {fileID: 888334063374963160}
|
||||||
- component: {fileID: 1243830395405912301}
|
- component: {fileID: 1243830395405912301}
|
||||||
m_Layer: 5
|
m_Layer: 5
|
||||||
m_Name: Button
|
m_Name: ExpandButton
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
8
Assets/Prefabs/Menu/SongSelection.meta
Normal file
8
Assets/Prefabs/Menu/SongSelection.meta
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a2db6e8ec612d964d98b85207c85e895
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
501
Assets/Prefabs/Menu/SongSelection/SongSelectionTab.prefab
Normal file
501
Assets/Prefabs/Menu/SongSelection/SongSelectionTab.prefab
Normal file
@@ -0,0 +1,501 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &1436000617920105069
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 8536548118669694916}
|
||||||
|
- component: {fileID: 8345872182840364925}
|
||||||
|
- component: {fileID: 7419423604420564312}
|
||||||
|
- component: {fileID: 6093386095854275100}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: SongSelectionTab
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &8536548118669694916
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1436000617920105069}
|
||||||
|
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_ConstrainProportionsScale: 0
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 6247940886474273465}
|
||||||
|
- {fileID: 2186738650345674754}
|
||||||
|
m_Father: {fileID: 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: 980, y: 100}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &8345872182840364925
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1436000617920105069}
|
||||||
|
m_CullTransparentMesh: 0
|
||||||
|
--- !u!114 &7419423604420564312
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1436000617920105069}
|
||||||
|
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: 0, g: 0, b: 0, a: 0.39215687}
|
||||||
|
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: 21300000, guid: 5e16c7aea118d68498053518146c9cf9, type: 3}
|
||||||
|
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: 10
|
||||||
|
--- !u!114 &6093386095854275100
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1436000617920105069}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: e65fe538f854fc041a6bc0065c5959b9, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
connectedSong:
|
||||||
|
songName:
|
||||||
|
displaySongName:
|
||||||
|
composer:
|
||||||
|
isNewSong: 0
|
||||||
|
songSwitch:
|
||||||
|
idInternal: 0
|
||||||
|
valueGuidInternal:
|
||||||
|
groupIdInternal: 0
|
||||||
|
groupGuidInternal:
|
||||||
|
WwiseObjectReference: {fileID: 0}
|
||||||
|
albumIconCover: {fileID: 0}
|
||||||
|
albumIllustrationCover: {fileID: 0}
|
||||||
|
illustratorName:
|
||||||
|
additionalInformation:
|
||||||
|
difficultyDataList: []
|
||||||
|
songNameText: {fileID: 1112448872792176886}
|
||||||
|
switchDifficultyButton: {fileID: 4539070712526871303}
|
||||||
|
currentDifficultyName:
|
||||||
|
--- !u!1 &2995843195340799518
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 4258703617781175079}
|
||||||
|
- component: {fileID: 5069000752092650568}
|
||||||
|
- component: {fileID: 4496223596282735305}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Text (TMP)
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &4258703617781175079
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2995843195340799518}
|
||||||
|
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_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 2186738650345674754}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
|
m_AnchorMax: {x: 1, y: 1}
|
||||||
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
|
m_SizeDelta: {x: 0, y: 0}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &5069000752092650568
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2995843195340799518}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!114 &4496223596282735305
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2995843195340799518}
|
||||||
|
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: Difficulty Lv.X
|
||||||
|
m_isRightToLeft: 0
|
||||||
|
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||||
|
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||||
|
m_fontSharedMaterials: []
|
||||||
|
m_fontMaterial: {fileID: 0}
|
||||||
|
m_fontMaterials: []
|
||||||
|
m_fontColor32:
|
||||||
|
serializedVersion: 2
|
||||||
|
rgba: 4281479730
|
||||||
|
m_fontColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, 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: 24
|
||||||
|
m_fontSizeBase: 24
|
||||||
|
m_fontWeight: 400
|
||||||
|
m_enableAutoSizing: 0
|
||||||
|
m_fontSizeMin: 18
|
||||||
|
m_fontSizeMax: 72
|
||||||
|
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: 1
|
||||||
|
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: 0, y: 0, z: 0, 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!1 &4315792707800784636
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 6247940886474273465}
|
||||||
|
- component: {fileID: 449787441181856078}
|
||||||
|
- component: {fileID: 1112448872792176886}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Text (TMP)
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &6247940886474273465
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4315792707800784636}
|
||||||
|
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_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 8536548118669694916}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 0.5}
|
||||||
|
m_AnchorMax: {x: 0, y: 0.5}
|
||||||
|
m_AnchoredPosition: {x: 245, y: 0}
|
||||||
|
m_SizeDelta: {x: 490, y: 50}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &449787441181856078
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4315792707800784636}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!114 &1112448872792176886
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4315792707800784636}
|
||||||
|
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: Song Name
|
||||||
|
m_isRightToLeft: 0
|
||||||
|
m_fontAsset: {fileID: 11400000, guid: 19a92ec938f7b364dad1975875f9fe3a, type: 2}
|
||||||
|
m_sharedMaterial: {fileID: -5812992765432063453, guid: 19a92ec938f7b364dad1975875f9fe3a,
|
||||||
|
type: 2}
|
||||||
|
m_fontSharedMaterials: []
|
||||||
|
m_fontMaterial: {fileID: 0}
|
||||||
|
m_fontMaterials: []
|
||||||
|
m_fontColor32:
|
||||||
|
serializedVersion: 2
|
||||||
|
rgba: 4294967295
|
||||||
|
m_fontColor: {r: 1, g: 1, b: 1, 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: 36
|
||||||
|
m_fontSizeBase: 36
|
||||||
|
m_fontWeight: 400
|
||||||
|
m_enableAutoSizing: 0
|
||||||
|
m_fontSizeMin: 18
|
||||||
|
m_fontSizeMax: 72
|
||||||
|
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: 1
|
||||||
|
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: 0, y: 0, z: 0, 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!1 &8998634759518483856
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 2186738650345674754}
|
||||||
|
- component: {fileID: 503392587650119134}
|
||||||
|
- component: {fileID: 7578099826838010891}
|
||||||
|
- component: {fileID: 4539070712526871303}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Button
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &2186738650345674754
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8998634759518483856}
|
||||||
|
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_ConstrainProportionsScale: 0
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 4258703617781175079}
|
||||||
|
m_Father: {fileID: 8536548118669694916}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 1, y: 0.5}
|
||||||
|
m_AnchorMax: {x: 1, y: 0.5}
|
||||||
|
m_AnchoredPosition: {x: -150, y: 0}
|
||||||
|
m_SizeDelta: {x: 200, y: 50}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &503392587650119134
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8998634759518483856}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!114 &7578099826838010891
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8998634759518483856}
|
||||||
|
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_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_Type: 1
|
||||||
|
m_PreserveAspect: 0
|
||||||
|
m_FillCenter: 1
|
||||||
|
m_FillMethod: 4
|
||||||
|
m_FillAmount: 1
|
||||||
|
m_FillClockwise: 1
|
||||||
|
m_FillOrigin: 0
|
||||||
|
m_UseSpriteMesh: 0
|
||||||
|
m_PixelsPerUnitMultiplier: 1
|
||||||
|
--- !u!114 &4539070712526871303
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8998634759518483856}
|
||||||
|
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: 7578099826838010891}
|
||||||
|
m_OnClick:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ed294c3952286f543be7a8908b1735e0
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -32,7 +32,9 @@ namespace Ichni
|
|||||||
ThemeBundleManager.instance.LoadThemeBundles(new List<string>(){"departure_to_multiverse"});
|
ThemeBundleManager.instance.LoadThemeBundles(new List<string>(){"departure_to_multiverse"});
|
||||||
Observable.EveryUpdate().Where(_ => ThemeBundleManager.instance.waitingBundleAmount.Value == 0).First().Subscribe(_ =>
|
Observable.EveryUpdate().Where(_ => ThemeBundleManager.instance.waitingBundleAmount.Value == 0).First().Subscribe(_ =>
|
||||||
{
|
{
|
||||||
Load("Chapter1", "Chaos Zone", "Hard");
|
Load(InformationTransistor.instance.chapterName,
|
||||||
|
InformationTransistor.instance.songName,
|
||||||
|
InformationTransistor.instance.difficultyName);
|
||||||
});
|
});
|
||||||
|
|
||||||
Observable.EveryUpdate()
|
Observable.EveryUpdate()
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ namespace Ichni
|
|||||||
|
|
||||||
public ChapterSelectionUIPage chapterSelectionUIPage;
|
public ChapterSelectionUIPage chapterSelectionUIPage;
|
||||||
public List<ChapterSelectionUnit> chapters;
|
public List<ChapterSelectionUnit> chapters;
|
||||||
|
public string currentChapter;
|
||||||
}
|
}
|
||||||
|
|
||||||
public partial class ChapterSelectionManager
|
public partial class ChapterSelectionManager
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ using System.Linq;
|
|||||||
using AK.Wwise;
|
using AK.Wwise;
|
||||||
using Sirenix.OdinInspector;
|
using Sirenix.OdinInspector;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
using UnityEngine.Serialization;
|
||||||
|
|
||||||
namespace Ichni.Menu
|
namespace Ichni.Menu
|
||||||
{
|
{
|
||||||
@@ -28,13 +29,13 @@ namespace Ichni.Menu
|
|||||||
{
|
{
|
||||||
if(song.difficultyDataList.All(d => d.difficultyName != "Easy"))
|
if(song.difficultyDataList.All(d => d.difficultyName != "Easy"))
|
||||||
{
|
{
|
||||||
song.difficultyDataList.Add(new DifficultyData("Easy","", "",
|
song.difficultyDataList.Add(new DifficultyData("Easy","", 0, "",
|
||||||
new Color(0f, 0.7f, 0.2f, 1f)));
|
new Color(0f, 0.7f, 0.2f, 1f)));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (song.difficultyDataList.All(d => d.difficultyName != "Hard"))
|
if (song.difficultyDataList.All(d => d.difficultyName != "Hard"))
|
||||||
{
|
{
|
||||||
song.difficultyDataList.Add(new DifficultyData("Hard", "", "",
|
song.difficultyDataList.Add(new DifficultyData("Hard", "", 0, "",
|
||||||
new Color(1f, 0.2f, 0.2f, 1f)));
|
new Color(1f, 0.2f, 0.2f, 1f)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -52,8 +53,8 @@ namespace Ichni.Menu
|
|||||||
[FoldoutGroup("$songName")]
|
[FoldoutGroup("$songName")]
|
||||||
public string displaySongName;
|
public string displaySongName;
|
||||||
|
|
||||||
[FoldoutGroup("$songName")]
|
[FormerlySerializedAs("author")] [FoldoutGroup("$songName")]
|
||||||
public string author;
|
public string composer;
|
||||||
|
|
||||||
[FoldoutGroup("$songName")]
|
[FoldoutGroup("$songName")]
|
||||||
public bool isNewSong;
|
public bool isNewSong;
|
||||||
@@ -82,15 +83,16 @@ namespace Ichni.Menu
|
|||||||
{
|
{
|
||||||
public string difficultyName;
|
public string difficultyName;
|
||||||
public string displayDifficultyName;
|
public string displayDifficultyName;
|
||||||
|
public int difficultyValue;
|
||||||
public string designerName;
|
public string designerName;
|
||||||
public Color color;
|
public Color color;
|
||||||
|
|
||||||
public DifficultyData(string difficultyName, string displayDifficultyName, string designerName, Color color)
|
public DifficultyData(string difficultyName, string displayDifficultyName, int difficultyValue, string designerName, Color color)
|
||||||
{
|
{
|
||||||
this.difficultyName = difficultyName;
|
this.difficultyName = difficultyName;
|
||||||
this.displayDifficultyName = displayDifficultyName;
|
this.displayDifficultyName = displayDifficultyName;
|
||||||
this.designerName = designerName;
|
this.designerName = designerName;
|
||||||
|
this.difficultyValue = difficultyValue;
|
||||||
this.color = color;
|
this.color = color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,18 +25,18 @@ namespace Ichni
|
|||||||
public Switch chapterSwitch;
|
public Switch chapterSwitch;
|
||||||
public Switch musicSwitch;
|
public Switch musicSwitch;
|
||||||
|
|
||||||
private void Start()
|
private void Awake()
|
||||||
{
|
{
|
||||||
if (instance!=null && instance != this)
|
if (instance == null)
|
||||||
{
|
|
||||||
Destroy(gameObject);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
instance = this;
|
instance = this;
|
||||||
DontDestroyOnLoad(gameObject);
|
DontDestroyOnLoad(gameObject);
|
||||||
isReturnedFromGame = false;
|
isReturnedFromGame = false;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Destroy(gameObject);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetInformation(string chapterName, string songName, string composerName,
|
public void SetInformation(string chapterName, string songName, string composerName,
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ using System;
|
|||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using AK.Wwise;
|
using AK.Wwise;
|
||||||
|
using Ichni.Story.UI;
|
||||||
using Ichni.UI;
|
using Ichni.UI;
|
||||||
using Sirenix.OdinInspector;
|
using Sirenix.OdinInspector;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
@@ -14,7 +15,12 @@ namespace Ichni
|
|||||||
{
|
{
|
||||||
public static MenuManager instance;
|
public static MenuManager instance;
|
||||||
|
|
||||||
[FormerlySerializedAs("preparePage")] public PrepareUIPage prepareUIPage;
|
public StartUIPage startUIPage;
|
||||||
|
public ChapterSelectionUIPage chapterSelectionUIPage;
|
||||||
|
public StoryUIPage storyUIPage;
|
||||||
|
public DialogUIPage dialogUIPage;
|
||||||
|
public SongSelectionUIPage songSelectionUIPage;
|
||||||
|
public PrepareUIPage prepareUIPage;
|
||||||
}
|
}
|
||||||
|
|
||||||
public partial class MenuManager
|
public partial class MenuManager
|
||||||
@@ -36,21 +42,8 @@ namespace Ichni
|
|||||||
|
|
||||||
public partial class MenuManager
|
public partial class MenuManager
|
||||||
{
|
{
|
||||||
public Sprite testSprite;
|
|
||||||
public Switch testChapterSwitch;
|
|
||||||
public Switch testMusicSwitch;
|
|
||||||
|
|
||||||
public void TestEnterGame()
|
public void TestEnterGame()
|
||||||
{
|
{
|
||||||
InformationTransistor.instance.SetInformation(
|
|
||||||
"Chapter 1",
|
|
||||||
"Chaos Zone",
|
|
||||||
"s/a_荒しそら & LaRin",
|
|
||||||
"Hard",
|
|
||||||
"None",
|
|
||||||
"Trader",
|
|
||||||
Color.red, testSprite,testChapterSwitch, testMusicSwitch);
|
|
||||||
|
|
||||||
asyncOperation.allowSceneActivation = true;
|
asyncOperation.allowSceneActivation = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ using System;
|
|||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Ichni.RhythmGame;
|
using Ichni.RhythmGame;
|
||||||
|
using Ichni.UI;
|
||||||
using Sirenix.OdinInspector;
|
using Sirenix.OdinInspector;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
@@ -11,6 +12,8 @@ namespace Ichni.Menu
|
|||||||
{
|
{
|
||||||
public static SongSelectionManager instance;
|
public static SongSelectionManager instance;
|
||||||
|
|
||||||
|
public SongSelectionUIPage songSelectionUIPage;
|
||||||
|
|
||||||
|
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
|
|||||||
8
Assets/Scripts/Saving.meta
Normal file
8
Assets/Scripts/Saving.meta
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 81811d9d9c15b884592f7264eb06fad2
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -41,7 +41,7 @@ namespace Ichni.Story
|
|||||||
|
|
||||||
public void SetDialog(string dialogName)
|
public void SetDialog(string dialogName)
|
||||||
{
|
{
|
||||||
string chapter = StoryManager.instance.currentChapter;
|
string chapter = ChapterSelectionManager.instance.currentChapter;
|
||||||
TextAsset dialog = Resources.Load<TextAsset>("Story/" + chapter + "/Dialogs/" + dialogName);
|
TextAsset dialog = Resources.Load<TextAsset>("Story/" + chapter + "/Dialogs/" + dialogName);
|
||||||
SetDialog(new List<TextAsset> { dialog });
|
SetDialog(new List<TextAsset> { dialog });
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ namespace Ichni.Story
|
|||||||
[FormerlySerializedAs("storylineDisplay")] public Storyline storyline;
|
[FormerlySerializedAs("storylineDisplay")] public Storyline storyline;
|
||||||
public StoryUIPage storyUIPage;
|
public StoryUIPage storyUIPage;
|
||||||
|
|
||||||
public string currentChapter;
|
|
||||||
public Dictionary<string, StoryData> storyDatas;
|
public Dictionary<string, StoryData> storyDatas;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ namespace Ichni.Story.UI
|
|||||||
|
|
||||||
button.onClick.AddListener(() =>
|
button.onClick.AddListener(() =>
|
||||||
{
|
{
|
||||||
|
MenuManager.instance.prepareUIPage.SetUpPrepareUIPage(songName);
|
||||||
MenuManager.instance.prepareUIPage.FadeIn();
|
MenuManager.instance.prepareUIPage.FadeIn();
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -44,7 +45,7 @@ namespace Ichni.Story.UI
|
|||||||
{
|
{
|
||||||
SongStatusSave songStatusSave = GameSaveManager.instance.SongSaveModule.songStatusSaves[songName];
|
SongStatusSave songStatusSave = GameSaveManager.instance.SongSaveModule.songStatusSaves[songName];
|
||||||
|
|
||||||
string chapter = StoryManager.instance.currentChapter;
|
string chapter = ChapterSelectionManager.instance.currentChapter;
|
||||||
ChapterSelectionUnit cpt = ChapterSelectionManager.instance.chapters.First(c => c.chapterIndex == chapter);
|
ChapterSelectionUnit cpt = ChapterSelectionManager.instance.chapters.First(c => c.chapterIndex == chapter);
|
||||||
SongItemData song = cpt.songs.First(s => s.songName == this.songName);
|
SongItemData song = cpt.songs.First(s => s.songName == this.songName);
|
||||||
foreach (DifficultyData difficulty in song.difficultyDataList)
|
foreach (DifficultyData difficulty in song.difficultyDataList)
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ namespace Ichni.Story.UI
|
|||||||
int cIndex = index; // Capture the current index for the listener
|
int cIndex = index; // Capture the current index for the listener
|
||||||
|
|
||||||
GameObject choiceButton = Instantiate(choiceButtonPrefab, container);
|
GameObject choiceButton = Instantiate(choiceButtonPrefab, container);
|
||||||
choiceButton.GetComponentInChildren<Localize>().SetTerm(StoryManager.instance.currentChapter + "/" + choice.choiceText);
|
choiceButton.GetComponentInChildren<Localize>().SetTerm(ChapterSelectionManager.instance.currentChapter + "/" + choice.choiceText);
|
||||||
choiceButton.GetComponent<Button>().onClick.AddListener(() =>
|
choiceButton.GetComponent<Button>().onClick.AddListener(() =>
|
||||||
{
|
{
|
||||||
DialogManager.instance.PlayNextDialogParagraph(choice.nextDialogName);
|
DialogManager.instance.PlayNextDialogParagraph(choice.nextDialogName);
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ namespace Ichni.Story
|
|||||||
{
|
{
|
||||||
DialogTextUI dialogTextUI = Instantiate(textPrefab, dialogContentContainer).GetComponent<DialogTextUI>();
|
DialogTextUI dialogTextUI = Instantiate(textPrefab, dialogContentContainer).GetComponent<DialogTextUI>();
|
||||||
dialogTextUI.speakerNameText.SetTerm("Characters/" + speakerName);
|
dialogTextUI.speakerNameText.SetTerm("Characters/" + speakerName);
|
||||||
dialogTextUI.contentText.SetTerm(StoryManager.instance.currentChapter +"/" +content);
|
dialogTextUI.contentText.SetTerm(ChapterSelectionManager.instance.currentChapter +"/" +content);
|
||||||
dialogTexts.Add(dialogTextUI);
|
dialogTexts.Add(dialogTextUI);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using Ichni.UI;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace Ichni.UI
|
namespace Ichni.Story.UI
|
||||||
{
|
{
|
||||||
public class StoryUIPage : UIPageBase
|
public class StoryUIPage : UIPageBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ namespace Ichni.Story.UI
|
|||||||
//TutorialBlockUI t0 = GenerateTutorialBlock(new Vector2(200, -400), "ZakoCurse 0");
|
//TutorialBlockUI t0 = GenerateTutorialBlock(new Vector2(200, -400), "ZakoCurse 0");
|
||||||
//TextBlockUI b1 = GenerateTextBlock("Departure_P1_A", new Vector2(1000, -400), StoryBlockState.Current);
|
//TextBlockUI b1 = GenerateTextBlock("Departure_P1_A", new Vector2(1000, -400), StoryBlockState.Current);
|
||||||
|
|
||||||
SetUpStoryline(StoryManager.instance.currentChapter);
|
SetUpStoryline(ChapterSelectionManager.instance.currentChapter);
|
||||||
|
|
||||||
/*GenerateTextBlock("Departure_P1_A", new Vector2(1000, -400), StoryBlockState.Current);
|
/*GenerateTextBlock("Departure_P1_A", new Vector2(1000, -400), StoryBlockState.Current);
|
||||||
GenerateTextBlock("Departure_P2_A", new Vector2(1500, -400), StoryBlockState.Current);
|
GenerateTextBlock("Departure_P2_A", new Vector2(1500, -400), StoryBlockState.Current);
|
||||||
@@ -60,7 +60,7 @@ namespace Ichni.Story.UI
|
|||||||
public TutorialBlockUI GenerateTutorialBlock(string blockName, Vector2 position, StoryBlockState state)
|
public TutorialBlockUI GenerateTutorialBlock(string blockName, Vector2 position, StoryBlockState state)
|
||||||
{
|
{
|
||||||
TutorialBlockUI block = Instantiate(tutorialBlockPrefab, content).GetComponent<TutorialBlockUI>();
|
TutorialBlockUI block = Instantiate(tutorialBlockPrefab, content).GetComponent<TutorialBlockUI>();
|
||||||
StoryData storyData = StoryManager.instance.storyDatas[StoryManager.instance.currentChapter];
|
StoryData storyData = StoryManager.instance.storyDatas[ChapterSelectionManager.instance.currentChapter];
|
||||||
TutorialBlockData blockData = storyData.tutorialBlockDatas.FirstOrDefault(data => data.blockName == blockName);
|
TutorialBlockData blockData = storyData.tutorialBlockDatas.FirstOrDefault(data => data.blockName == blockName);
|
||||||
|
|
||||||
if (blockData == null) throw new KeyNotFoundException("There is no block with name " + blockName);
|
if (blockData == null) throw new KeyNotFoundException("There is no block with name " + blockName);
|
||||||
@@ -76,7 +76,7 @@ namespace Ichni.Story.UI
|
|||||||
public DialogBlockUI GenerateDialogBlock(string blockName, Vector2 position, StoryBlockState state)
|
public DialogBlockUI GenerateDialogBlock(string blockName, Vector2 position, StoryBlockState state)
|
||||||
{
|
{
|
||||||
DialogBlockUI block = Instantiate(dialogBlockPrefab, content).GetComponent<DialogBlockUI>();
|
DialogBlockUI block = Instantiate(dialogBlockPrefab, content).GetComponent<DialogBlockUI>();
|
||||||
StoryData storyData = StoryManager.instance.storyDatas[StoryManager.instance.currentChapter];
|
StoryData storyData = StoryManager.instance.storyDatas[ChapterSelectionManager.instance.currentChapter];
|
||||||
DialogBlockData blockData = storyData.dialogBlockDatas.FirstOrDefault(data => data.blockName == blockName);
|
DialogBlockData blockData = storyData.dialogBlockDatas.FirstOrDefault(data => data.blockName == blockName);
|
||||||
|
|
||||||
if (blockData == null) throw new KeyNotFoundException("There is no block with name " + blockName);
|
if (blockData == null) throw new KeyNotFoundException("There is no block with name " + blockName);
|
||||||
@@ -92,7 +92,7 @@ namespace Ichni.Story.UI
|
|||||||
public SongBlockUI GenerateSongBlock(string blockName, Vector2 position, StoryBlockState state)
|
public SongBlockUI GenerateSongBlock(string blockName, Vector2 position, StoryBlockState state)
|
||||||
{
|
{
|
||||||
SongBlockUI block = Instantiate(musicBlockPrefab, content).GetComponent<SongBlockUI>();
|
SongBlockUI block = Instantiate(musicBlockPrefab, content).GetComponent<SongBlockUI>();
|
||||||
StoryData storyData = StoryManager.instance.storyDatas[StoryManager.instance.currentChapter];
|
StoryData storyData = StoryManager.instance.storyDatas[ChapterSelectionManager.instance.currentChapter];
|
||||||
SongBlockData blockData = storyData.songBlockDatas.FirstOrDefault(data => data.blockName == blockName);
|
SongBlockData blockData = storyData.songBlockDatas.FirstOrDefault(data => data.blockName == blockName);
|
||||||
|
|
||||||
if (blockData == null) throw new KeyNotFoundException("There is no block with name " + blockName);
|
if (blockData == null) throw new KeyNotFoundException("There is no block with name " + blockName);
|
||||||
@@ -243,7 +243,7 @@ namespace Ichni.Story.UI
|
|||||||
{
|
{
|
||||||
ClearStoryline();
|
ClearStoryline();
|
||||||
|
|
||||||
StoryData storyData = StoryManager.instance.storyDatas[StoryManager.instance.currentChapter];
|
StoryData storyData = StoryManager.instance.storyDatas[ChapterSelectionManager.instance.currentChapter];
|
||||||
List<InitialBlockData> initialBlocks = storyData.initialBlocks;
|
List<InitialBlockData> initialBlocks = storyData.initialBlocks;
|
||||||
|
|
||||||
foreach (InitialBlockData blockData in initialBlocks)
|
foreach (InitialBlockData blockData in initialBlocks)
|
||||||
@@ -273,7 +273,7 @@ namespace Ichni.Story.UI
|
|||||||
}
|
}
|
||||||
|
|
||||||
SetUpBackground();
|
SetUpBackground();
|
||||||
SaveStoryline(StoryManager.instance.currentChapter);
|
SaveStoryline(ChapterSelectionManager.instance.currentChapter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -7,6 +7,7 @@ using Ichni.Story;
|
|||||||
using Sirenix.OdinInspector;
|
using Sirenix.OdinInspector;
|
||||||
using TMPro;
|
using TMPro;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
using UnityEngine.Serialization;
|
||||||
using UnityEngine.UI;
|
using UnityEngine.UI;
|
||||||
|
|
||||||
namespace Ichni.UI
|
namespace Ichni.UI
|
||||||
@@ -15,8 +16,11 @@ namespace Ichni.UI
|
|||||||
{
|
{
|
||||||
public RectTransform content;
|
public RectTransform content;
|
||||||
public LayoutElement layoutElement;
|
public LayoutElement layoutElement;
|
||||||
public Button button;
|
[FormerlySerializedAs("button")] public Button expandButton;
|
||||||
|
public Button enterStorylineButton;
|
||||||
|
public Button enterSongSelectionButton;
|
||||||
|
|
||||||
|
public string chapterName;
|
||||||
public bool isExpanded;
|
public bool isExpanded;
|
||||||
public bool isDuringAnimation;
|
public bool isDuringAnimation;
|
||||||
|
|
||||||
@@ -40,7 +44,12 @@ namespace Ichni.UI
|
|||||||
|
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
button.onClick.AddListener(() =>
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Initialize(ChapterSelectionUnit chapter)
|
||||||
|
{
|
||||||
|
expandButton.onClick.AddListener(() =>
|
||||||
{
|
{
|
||||||
if (isDuringAnimation)
|
if (isDuringAnimation)
|
||||||
{
|
{
|
||||||
@@ -49,21 +58,38 @@ namespace Ichni.UI
|
|||||||
|
|
||||||
if (isExpanded)
|
if (isExpanded)
|
||||||
{
|
{
|
||||||
Collapse();
|
Shrink();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Expand();
|
Expand();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
|
||||||
|
|
||||||
public void Initialize(ChapterSelectionUnit chapter)
|
enterStorylineButton.onClick.AddListener(() =>
|
||||||
{
|
{
|
||||||
|
if (isDuringAnimation)
|
||||||
|
{
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Expand()
|
ChapterSelectionManager.instance.chapterSelectionUIPage.FadeOut();
|
||||||
|
StoryManager.instance.storyUIPage.FadeIn();
|
||||||
|
});
|
||||||
|
|
||||||
|
enterSongSelectionButton.onClick.AddListener(() =>
|
||||||
|
{
|
||||||
|
if (isDuringAnimation)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
ChapterSelectionManager.instance.chapterSelectionUIPage.FadeOut();
|
||||||
|
SongSelectionManager.instance.songSelectionUIPage.FadeIn();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Expand()
|
||||||
{
|
{
|
||||||
isExpanded = true;
|
isExpanded = true;
|
||||||
|
|
||||||
@@ -98,42 +124,43 @@ namespace Ichni.UI
|
|||||||
expandSequence.Play();
|
expandSequence.Play();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Collapse()
|
private void Shrink()
|
||||||
{
|
{
|
||||||
isExpanded = false;
|
isExpanded = false;
|
||||||
|
|
||||||
Sequence collapseSequence = DOTween.Sequence();
|
Sequence shrinkSequence = DOTween.Sequence();
|
||||||
|
|
||||||
collapseSequence.Append(bottomTip.DOFade(0f, 0.4f));
|
shrinkSequence.Append(bottomTip.DOFade(0f, 0.4f));
|
||||||
collapseSequence.Join(upperTip.DOFade(0f, 0.4f));
|
shrinkSequence.Join(upperTip.DOFade(0f, 0.4f));
|
||||||
|
|
||||||
collapseSequence.Append(expansionInfos.GetComponent<CanvasGroup>().DOFade(0, 0.4f)
|
shrinkSequence.Append(expansionInfos.GetComponent<CanvasGroup>().DOFade(0, 0.4f)
|
||||||
.OnComplete(()=>
|
.OnComplete(()=>
|
||||||
{
|
{
|
||||||
expansionInfos.gameObject.SetActive(false);
|
expansionInfos.gameObject.SetActive(false);
|
||||||
}));
|
}));
|
||||||
collapseSequence.Join(expansionFunctions.GetComponent<CanvasGroup>().DOFade(0, 0.4f)
|
shrinkSequence.Join(expansionFunctions.GetComponent<CanvasGroup>().DOFade(0, 0.4f)
|
||||||
.OnComplete(() =>
|
.OnComplete(() =>
|
||||||
{
|
{
|
||||||
expansionFunctions.gameObject.SetActive(false);
|
expansionFunctions.gameObject.SetActive(false);
|
||||||
}));
|
}));
|
||||||
|
|
||||||
collapseSequence.Append(titleRect.DOSizeDelta(new Vector2(322, 100), 0.4f));
|
shrinkSequence.Append(titleRect.DOSizeDelta(new Vector2(322, 100), 0.4f).SetEase(Ease.InQuad));
|
||||||
|
|
||||||
collapseSequence.Append(expansionBackground.DOSizeDelta(new Vector2(322, 826), 0.4f)
|
shrinkSequence.Append(expansionBackground.DOSizeDelta(new Vector2(322, 826), 0.4f)
|
||||||
|
.SetEase(Ease.InQuad)
|
||||||
.OnComplete(() =>
|
.OnComplete(() =>
|
||||||
{
|
{
|
||||||
expansionBackground.gameObject.SetActive(false);
|
expansionBackground.gameObject.SetActive(false);
|
||||||
}));
|
}));
|
||||||
|
|
||||||
collapseSequence.Join(DOTween.To(() => layoutElement.preferredWidth,
|
shrinkSequence.Join(DOTween.To(() => layoutElement.preferredWidth,
|
||||||
x => layoutElement.preferredWidth = x, 322, 0.4f));
|
x => layoutElement.preferredWidth = x, 322, 0.4f).SetEase(Ease.InQuad));
|
||||||
collapseSequence.Join(avatarMask.rectTransform.DOSizeDelta(new Vector2(322, 826), 0.4f));
|
shrinkSequence.Join(avatarMask.rectTransform.DOSizeDelta(new Vector2(322, 826), 0.4f).SetEase(Ease.InQuad));
|
||||||
|
|
||||||
collapseSequence.OnStart(() => isDuringAnimation = true);
|
shrinkSequence.OnStart(() => isDuringAnimation = true);
|
||||||
collapseSequence.OnComplete(() => isDuringAnimation = false);
|
shrinkSequence.OnComplete(() => isDuringAnimation = false);
|
||||||
|
|
||||||
collapseSequence.Play();
|
shrinkSequence.Play();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -18,6 +18,7 @@ namespace Ichni.UI
|
|||||||
{
|
{
|
||||||
ChapterSelectionUI item = Instantiate(chapterSelectionUIPrefab, chapterContainer).GetComponent<ChapterSelectionUI>();
|
ChapterSelectionUI item = Instantiate(chapterSelectionUIPrefab, chapterContainer).GetComponent<ChapterSelectionUI>();
|
||||||
item.Initialize(chapter);
|
item.Initialize(chapter);
|
||||||
|
item.chapterName = chapter.chapterName;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +1,76 @@
|
|||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using Ichni.Menu;
|
||||||
|
using Ichni.Story;
|
||||||
|
using TMPro;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.UI;
|
using UnityEngine.UI;
|
||||||
|
|
||||||
namespace Ichni.UI
|
namespace Ichni.UI
|
||||||
{
|
{
|
||||||
public class PrepareUIPage : UIPageBase
|
public partial class PrepareUIPage : UIPageBase
|
||||||
{
|
{
|
||||||
public Button enterGameButton;
|
public Button enterGameButton;
|
||||||
|
public Button switchDifficultyButton;
|
||||||
|
|
||||||
|
public string songName;
|
||||||
|
public List<string> difficulties;
|
||||||
|
public string difficultyName;
|
||||||
|
|
||||||
|
private ChapterSelectionUnit chapter;
|
||||||
|
private SongItemData songItem;
|
||||||
|
private DifficultyData difficultyData;
|
||||||
|
}
|
||||||
|
|
||||||
|
public partial class PrepareUIPage
|
||||||
|
{
|
||||||
|
public void SetUpPrepareUIPage(string songName)
|
||||||
|
{
|
||||||
|
chapter = ChapterSelectionManager.instance.chapters
|
||||||
|
.FirstOrDefault(c => c.chapterIndex == ChapterSelectionManager.instance.currentChapter);
|
||||||
|
songItem = chapter.songs.FirstOrDefault(s => s.songName == songName);
|
||||||
|
|
||||||
|
this.songName = songName;
|
||||||
|
this.difficulties = new List<string>();
|
||||||
|
foreach (DifficultyData difficulty in songItem.difficultyDataList)
|
||||||
|
{
|
||||||
|
this.difficulties.Add(difficulty.difficultyName);
|
||||||
|
}
|
||||||
|
|
||||||
|
this.difficultyName = difficulties[0];
|
||||||
|
|
||||||
|
difficultyData = songItem.difficultyDataList.FirstOrDefault(d => d.difficultyName == difficultyName);
|
||||||
|
switchDifficultyButton.GetComponentInChildren<TMP_Text>().text = difficultyName + " Lv." + difficultyData.difficultyValue;
|
||||||
|
switchDifficultyButton.GetComponentInChildren<TMP_Text>().color = difficultyData.color;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SwitchDifficulty()
|
||||||
|
{
|
||||||
|
int currentIndex = difficulties.IndexOf(difficultyName);
|
||||||
|
int nextIndex = (currentIndex + 1) % difficulties.Count;
|
||||||
|
difficultyName = difficulties[nextIndex];
|
||||||
|
|
||||||
|
difficultyData = songItem.difficultyDataList
|
||||||
|
.FirstOrDefault(d => d.difficultyName == difficultyName);
|
||||||
|
|
||||||
|
switchDifficultyButton.GetComponentInChildren<TMP_Text>().text = difficultyName + " Lv." + difficultyData.difficultyValue;
|
||||||
|
switchDifficultyButton.GetComponentInChildren<TMP_Text>().color = difficultyData.color;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void EnterGame()
|
||||||
|
{
|
||||||
|
InformationTransistor.instance.SetInformation(
|
||||||
|
ChapterSelectionManager.instance.currentChapter,
|
||||||
|
songItem.songName,
|
||||||
|
songItem.composer,
|
||||||
|
difficultyName,
|
||||||
|
songItem.illustratorName,
|
||||||
|
difficultyData.displayDifficultyName,
|
||||||
|
difficultyData.color, songItem.albumIllustrationCover,
|
||||||
|
chapter.chapterSwitch, songItem.songSwitch);
|
||||||
|
|
||||||
|
MenuManager.instance.TestEnterGame();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
35
Assets/Scripts/UI/SongSelection/SongSelectionTabUI.cs
Normal file
35
Assets/Scripts/UI/SongSelection/SongSelectionTabUI.cs
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using TMPro;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.UI;
|
||||||
|
|
||||||
|
namespace Ichni.Menu.UI
|
||||||
|
{
|
||||||
|
public class SongSelectionTabUI : MonoBehaviour
|
||||||
|
{
|
||||||
|
public SongItemData connectedSong;
|
||||||
|
public TMP_Text songNameText;
|
||||||
|
public Button switchDifficultyButton;
|
||||||
|
public string currentDifficultyName;
|
||||||
|
|
||||||
|
public void SetUpTab(SongItemData song)
|
||||||
|
{
|
||||||
|
connectedSong = song;
|
||||||
|
songNameText.text = song.songName;
|
||||||
|
currentDifficultyName = song.difficultyDataList[0].difficultyName;
|
||||||
|
switchDifficultyButton.GetComponentInChildren<TMP_Text>().text = currentDifficultyName + " Lv." + song.difficultyDataList[0].difficultyValue;
|
||||||
|
switchDifficultyButton.GetComponentInChildren<TMP_Text>().color = song.difficultyDataList[0].color;
|
||||||
|
|
||||||
|
switchDifficultyButton.onClick.AddListener(() =>
|
||||||
|
{
|
||||||
|
int currentIndex = song.difficultyDataList.FindIndex(d => d.difficultyName == currentDifficultyName);
|
||||||
|
int nextIndex = (currentIndex + 1) % song.difficultyDataList.Count;
|
||||||
|
currentDifficultyName = song.difficultyDataList[nextIndex].difficultyName;
|
||||||
|
|
||||||
|
switchDifficultyButton.GetComponentInChildren<TMP_Text>().text = currentDifficultyName + " Lv." + song.difficultyDataList[nextIndex].difficultyValue;
|
||||||
|
switchDifficultyButton.GetComponentInChildren<TMP_Text>().color = song.difficultyDataList[nextIndex].color;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
11
Assets/Scripts/UI/SongSelection/SongSelectionTabUI.cs.meta
Normal file
11
Assets/Scripts/UI/SongSelection/SongSelectionTabUI.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e65fe538f854fc041a6bc0065c5959b9
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -1,11 +1,42 @@
|
|||||||
|
using System;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using Ichni.Menu;
|
||||||
|
using Ichni.Menu.UI;
|
||||||
|
using Ichni.UI;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace Ichni.UI
|
namespace Ichni.UI
|
||||||
{
|
{
|
||||||
public class SongSelectionUIPage : UIPageBase
|
public class SongSelectionUIPage : UIPageBase
|
||||||
{
|
{
|
||||||
|
public GameObject songSelectionTabPrefab;
|
||||||
|
public RectTransform songSelectionTabContainer;
|
||||||
|
public List<SongSelectionTabUI> songSelectionTabs;
|
||||||
|
|
||||||
|
private void Start()
|
||||||
|
{
|
||||||
|
GenerateSongTabs();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void GenerateSongTabs()
|
||||||
|
{
|
||||||
|
string chapter = ChapterSelectionManager.instance.currentChapter;
|
||||||
|
ChapterSelectionUnit chapterUnit = ChapterSelectionManager.instance.chapters.Find(c => c.chapterIndex == chapter);
|
||||||
|
foreach (SongItemData song in chapterUnit.songs)
|
||||||
|
{
|
||||||
|
SongSelectionTabUI tab = Instantiate(songSelectionTabPrefab, songSelectionTabContainer).GetComponent<SongSelectionTabUI>();
|
||||||
|
tab.SetUpTab(song);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ClearTabs()
|
||||||
|
{
|
||||||
|
foreach (SongSelectionTabUI tab in songSelectionTabs)
|
||||||
|
{
|
||||||
|
Destroy(tab.gameObject);
|
||||||
|
}
|
||||||
|
songSelectionTabs.Clear();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -19,7 +19,7 @@ MonoBehaviour:
|
|||||||
width: 1706.6667
|
width: 1706.6667
|
||||||
height: 869.3334
|
height: 869.3334
|
||||||
m_ShowMode: 4
|
m_ShowMode: 4
|
||||||
m_Title: Hierarchy
|
m_Title: Project
|
||||||
m_RootView: {fileID: 2}
|
m_RootView: {fileID: 2}
|
||||||
m_MinSize: {x: 875, y: 300}
|
m_MinSize: {x: 875, y: 300}
|
||||||
m_MaxSize: {x: 10000, y: 10000}
|
m_MaxSize: {x: 10000, y: 10000}
|
||||||
@@ -119,7 +119,7 @@ MonoBehaviour:
|
|||||||
m_MinSize: {x: 300, y: 100}
|
m_MinSize: {x: 300, y: 100}
|
||||||
m_MaxSize: {x: 24288, y: 16192}
|
m_MaxSize: {x: 24288, y: 16192}
|
||||||
vertical: 0
|
vertical: 0
|
||||||
controlID: 46
|
controlID: 113
|
||||||
draggingID: 0
|
draggingID: 0
|
||||||
--- !u!114 &6
|
--- !u!114 &6
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
@@ -145,7 +145,7 @@ MonoBehaviour:
|
|||||||
m_MinSize: {x: 200, y: 100}
|
m_MinSize: {x: 200, y: 100}
|
||||||
m_MaxSize: {x: 16192, y: 16192}
|
m_MaxSize: {x: 16192, y: 16192}
|
||||||
vertical: 1
|
vertical: 1
|
||||||
controlID: 47
|
controlID: 57
|
||||||
draggingID: 0
|
draggingID: 0
|
||||||
--- !u!114 &7
|
--- !u!114 &7
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
@@ -192,8 +192,8 @@ MonoBehaviour:
|
|||||||
y: 0
|
y: 0
|
||||||
width: 304
|
width: 304
|
||||||
height: 552
|
height: 552
|
||||||
m_MinSize: {x: 200, y: 200}
|
m_MinSize: {x: 201, y: 221}
|
||||||
m_MaxSize: {x: 4000, y: 4000}
|
m_MaxSize: {x: 4001, y: 4021}
|
||||||
m_ActualView: {fileID: 13}
|
m_ActualView: {fileID: 13}
|
||||||
m_Panes:
|
m_Panes:
|
||||||
- {fileID: 13}
|
- {fileID: 13}
|
||||||
@@ -358,21 +358,21 @@ MonoBehaviour:
|
|||||||
scrollPos: {x: 0, y: 0}
|
scrollPos: {x: 0, y: 0}
|
||||||
m_SelectedIDs:
|
m_SelectedIDs:
|
||||||
m_LastClickedID: 0
|
m_LastClickedID: 0
|
||||||
m_ExpandedIDs: 0efbfffffc8a0000de8b0000
|
m_ExpandedIDs: f236fffffe36ffff0237ffff3638ffff7044ffff7244ffff36bbffff5ccaffffd2f1ffff1afbfffff4ffffffae8c00004299000094990000189a0000249a0000fa9a0000
|
||||||
m_RenameOverlay:
|
m_RenameOverlay:
|
||||||
m_UserAcceptedRename: 0
|
m_UserAcceptedRename: 0
|
||||||
m_Name:
|
m_Name: DialogPage
|
||||||
m_OriginalName:
|
m_OriginalName: DialogPage
|
||||||
m_EditFieldRect:
|
m_EditFieldRect:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
x: 0
|
x: 0
|
||||||
y: 0
|
y: 0
|
||||||
width: 0
|
width: 0
|
||||||
height: 0
|
height: 0
|
||||||
m_UserData: 0
|
m_UserData: 39920
|
||||||
m_IsWaitingForDelay: 0
|
m_IsWaitingForDelay: 0
|
||||||
m_IsRenaming: 0
|
m_IsRenaming: 0
|
||||||
m_OriginalEventType: 11
|
m_OriginalEventType: 0
|
||||||
m_IsRenamingFilename: 0
|
m_IsRenamingFilename: 0
|
||||||
m_ClientGUIView: {fileID: 8}
|
m_ClientGUIView: {fileID: 8}
|
||||||
m_SearchString:
|
m_SearchString:
|
||||||
@@ -765,9 +765,9 @@ MonoBehaviour:
|
|||||||
m_PlayAudio: 0
|
m_PlayAudio: 0
|
||||||
m_AudioPlay: 0
|
m_AudioPlay: 0
|
||||||
m_Position:
|
m_Position:
|
||||||
m_Target: {x: 0.60934234, y: -8.48709, z: -0.81458604}
|
m_Target: {x: 20.123274, y: 6.281849, z: -0.5672182}
|
||||||
speed: 2
|
speed: 2
|
||||||
m_Value: {x: 0.60934234, y: -8.48709, z: -0.81458604}
|
m_Value: {x: 20.123274, y: 6.281849, z: -0.5672182}
|
||||||
m_RenderMode: 0
|
m_RenderMode: 0
|
||||||
m_CameraMode:
|
m_CameraMode:
|
||||||
drawMode: 0
|
drawMode: 0
|
||||||
@@ -817,9 +817,9 @@ MonoBehaviour:
|
|||||||
speed: 2
|
speed: 2
|
||||||
m_Value: {x: 0, y: 0, z: 0, w: 1}
|
m_Value: {x: 0, y: 0, z: 0, w: 1}
|
||||||
m_Size:
|
m_Size:
|
||||||
m_Target: 91.45831
|
m_Target: 66.72148
|
||||||
speed: 2
|
speed: 2
|
||||||
m_Value: 91.45831
|
m_Value: 66.72148
|
||||||
m_Ortho:
|
m_Ortho:
|
||||||
m_Target: 1
|
m_Target: 1
|
||||||
speed: 2
|
speed: 2
|
||||||
@@ -1065,7 +1065,7 @@ MonoBehaviour:
|
|||||||
m_SkipHidden: 0
|
m_SkipHidden: 0
|
||||||
m_SearchArea: 1
|
m_SearchArea: 1
|
||||||
m_Folders:
|
m_Folders:
|
||||||
- Assets/Resources/Story/Chapter0/Dialogs
|
- Assets/Prefabs/Menu/SongSelection
|
||||||
m_Globs: []
|
m_Globs: []
|
||||||
m_OriginalText:
|
m_OriginalText:
|
||||||
m_ImportLogFlags: 0
|
m_ImportLogFlags: 0
|
||||||
@@ -1073,30 +1073,30 @@ MonoBehaviour:
|
|||||||
m_ViewMode: 1
|
m_ViewMode: 1
|
||||||
m_StartGridSize: 16
|
m_StartGridSize: 16
|
||||||
m_LastFolders:
|
m_LastFolders:
|
||||||
- Assets/Resources/Story/Chapter0/Dialogs
|
- Assets/Prefabs/Menu/SongSelection
|
||||||
m_LastFoldersGridSize: 16
|
m_LastFoldersGridSize: 16
|
||||||
m_LastProjectPath: D:\Projects\ichni Official
|
m_LastProjectPath: D:\Projects\ichni Official
|
||||||
m_LockTracker:
|
m_LockTracker:
|
||||||
m_IsLocked: 0
|
m_IsLocked: 0
|
||||||
m_FolderTreeState:
|
m_FolderTreeState:
|
||||||
scrollPos: {x: 0, y: 433.6667}
|
scrollPos: {x: 0, y: 293.6667}
|
||||||
m_SelectedIDs: fe910000
|
m_SelectedIDs: 98e30000
|
||||||
m_LastClickedID: 37374
|
m_LastClickedID: 58264
|
||||||
m_ExpandedIDs: 000000006a9100006c9100006e91000070910000729100007491000076910000789100007a9100007c9100007e91000080910000829100008491000086910000889100008a9100008c9100008e91000090910000929100009491000096910000989100009a9100009c9100009e910000a0910000a2910000a4910000a6910000a8910000aa910000ac91000000ca9a3b
|
m_ExpandedIDs: 000000006491000066910000689100006a9100006c9100006e91000070910000729100007491000076910000789100007a9100007c9100007e91000080910000829100008491000086910000889100008a9100008c9100008e910000909100009291000094910000989100009a9100009c910000a0910000a2910000a4910000a691000000920000089200000a92000000ca9a3b
|
||||||
m_RenameOverlay:
|
m_RenameOverlay:
|
||||||
m_UserAcceptedRename: 0
|
m_UserAcceptedRename: 0
|
||||||
m_Name:
|
m_Name: ChapterSelection
|
||||||
m_OriginalName:
|
m_OriginalName: ChapterSelection
|
||||||
m_EditFieldRect:
|
m_EditFieldRect:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
x: 0
|
x: 0
|
||||||
y: 0
|
y: 0
|
||||||
width: 0
|
width: 0
|
||||||
height: 0
|
height: 0
|
||||||
m_UserData: 0
|
m_UserData: 37480
|
||||||
m_IsWaitingForDelay: 0
|
m_IsWaitingForDelay: 0
|
||||||
m_IsRenaming: 0
|
m_IsRenaming: 0
|
||||||
m_OriginalEventType: 11
|
m_OriginalEventType: 0
|
||||||
m_IsRenamingFilename: 1
|
m_IsRenamingFilename: 1
|
||||||
m_ClientGUIView: {fileID: 10}
|
m_ClientGUIView: {fileID: 10}
|
||||||
m_SearchString:
|
m_SearchString:
|
||||||
@@ -1110,7 +1110,7 @@ MonoBehaviour:
|
|||||||
scrollPos: {x: 0, y: 0}
|
scrollPos: {x: 0, y: 0}
|
||||||
m_SelectedIDs:
|
m_SelectedIDs:
|
||||||
m_LastClickedID: 0
|
m_LastClickedID: 0
|
||||||
m_ExpandedIDs: 000000006a9100006c9100006e91000070910000729100007491000076910000789100007a9100007c9100007e91000080910000829100008491000086910000889100008a9100008c9100008e91000090910000929100009491000096910000989100009a9100009c9100009e910000a0910000a2910000a4910000a6910000a8910000aa910000ac910000
|
m_ExpandedIDs: 000000006491000066910000689100006a9100006c9100006e91000070910000729100007491000076910000789100007a9100007c9100007e91000080910000829100008491000086910000889100008a9100008c9100008e91000090910000929100009491000096910000989100009a9100009c9100009e910000a0910000a2910000a4910000a6910000
|
||||||
m_RenameOverlay:
|
m_RenameOverlay:
|
||||||
m_UserAcceptedRename: 0
|
m_UserAcceptedRename: 0
|
||||||
m_Name:
|
m_Name:
|
||||||
@@ -1141,18 +1141,18 @@ MonoBehaviour:
|
|||||||
m_ExpandedInstanceIDs: c6230000d2c101005ac60100bec80100b6c80100000000000cd901003ada010074b30100d4a10600f8a300000e8e00003e91000044900000
|
m_ExpandedInstanceIDs: c6230000d2c101005ac60100bec80100b6c80100000000000cd901003ada010074b30100d4a10600f8a300000e8e00003e91000044900000
|
||||||
m_RenameOverlay:
|
m_RenameOverlay:
|
||||||
m_UserAcceptedRename: 0
|
m_UserAcceptedRename: 0
|
||||||
m_Name:
|
m_Name: ChapterSelectionUnit
|
||||||
m_OriginalName:
|
m_OriginalName: ChapterSelectionUnit
|
||||||
m_EditFieldRect:
|
m_EditFieldRect:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
x: 0
|
x: 0
|
||||||
y: 0
|
y: 0
|
||||||
width: 0
|
width: 0
|
||||||
height: 0
|
height: 0
|
||||||
m_UserData: 0
|
m_UserData: 31720
|
||||||
m_IsWaitingForDelay: 0
|
m_IsWaitingForDelay: 0
|
||||||
m_IsRenaming: 0
|
m_IsRenaming: 0
|
||||||
m_OriginalEventType: 11
|
m_OriginalEventType: 0
|
||||||
m_IsRenamingFilename: 1
|
m_IsRenamingFilename: 1
|
||||||
m_ClientGUIView: {fileID: 10}
|
m_ClientGUIView: {fileID: 10}
|
||||||
m_CreateAssetUtility:
|
m_CreateAssetUtility:
|
||||||
@@ -1238,7 +1238,7 @@ MonoBehaviour:
|
|||||||
m_OverlaysVisible: 1
|
m_OverlaysVisible: 1
|
||||||
m_LockTracker:
|
m_LockTracker:
|
||||||
m_IsLocked: 0
|
m_IsLocked: 0
|
||||||
m_LastSelectedObjectID: 35864
|
m_LastSelectedObjectID: -48010
|
||||||
--- !u!114 &20
|
--- !u!114 &20
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 52
|
m_ObjectHideFlags: 52
|
||||||
|
|||||||
Reference in New Issue
Block a user