text scroll

This commit is contained in:
fu-majime 2024-03-25 20:36:12 +09:00
parent 5002e16ac8
commit 93f84e17cb
21 changed files with 12017 additions and 2683 deletions

Binary file not shown.

View file

@ -0,0 +1,21 @@
fileFormatVersion: 2
guid: 1af8ae841c25a874a8945ac67e3e2f36
TrueTypeFontImporter:
externalObjects: {}
serializedVersion: 4
fontSize: 16
forceTextureCase: -2
characterSpacing: 0
characterPadding: 1
includeFontData: 1
fontNames:
- WarioWareIncMerge
fallbackFontReferences: []
customCharacters:
fontRenderingMode: 0
ascentCalculationMode: 1
useLegacyBoundsCalculation: 0
shouldRoundAdvanceValue: 1
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,116 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: WarioWareIncMerge SDF 1
m_Shader: {fileID: 4800000, guid: bc1ede39bf3643ee8e493720e4259791, type: 3}
m_ValidKeywords:
- OUTLINE_ON
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _Cube:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _FaceTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 354257792991978780, guid: 5493f7489392d4a47abde0ea2c7caecf, type: 2}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MaskTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OutlineTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _Ambient: 0.5
- _Bevel: 0.5
- _BevelClamp: 0
- _BevelOffset: 0
- _BevelRoundness: 0
- _BevelWidth: 0
- _BumpFace: 0
- _BumpOutline: 0
- _ColorMask: 15
- _CullMode: 0
- _Diffuse: 0.5
- _FaceDilate: 0
- _FaceUVSpeedX: 0
- _FaceUVSpeedY: 0
- _GlowInner: 0.05
- _GlowOffset: 0
- _GlowOuter: 0.05
- _GlowPower: 0.75
- _GradientScale: 6
- _LightAngle: 3.1416
- _MaskEdgeSoftness: 0.01
- _MaskInverse: 0
- _MaskSoftnessX: 0
- _MaskSoftnessY: 0
- _MaskWipeControl: 0.5
- _OutlineSoftness: 0
- _OutlineUVSpeedX: 0
- _OutlineUVSpeedY: 0
- _OutlineWidth: 0.336
- _PerspectiveFilter: 0.875
- _Reflectivity: 10
- _ScaleRatioA: 0.8333333
- _ScaleRatioB: 0.6770833
- _ScaleRatioC: 0.6770833
- _ScaleX: 1
- _ScaleY: 1
- _ShaderFlags: 0
- _Sharpness: 0
- _SpecularPower: 2
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
- _TextureHeight: 1024
- _TextureWidth: 1024
- _UnderlayDilate: 0
- _UnderlayOffsetX: 0
- _UnderlayOffsetY: 0
- _UnderlaySoftness: 0
- _VertexOffsetX: 0
- _VertexOffsetY: 0
- _WeightBold: 0.75
- _WeightNormal: 0
m_Colors:
- _ClipRect: {r: -10, g: -10, b: -10, a: 10}
- _EnvMatrixRotation: {r: 0, g: 0, b: 0, a: 0}
- _FaceColor: {r: 1, g: 1, b: 1, a: 1}
- _GlowColor: {r: 0, g: 1, b: 0, a: 0.5}
- _MaskCoord: {r: 0, g: 0, b: 32767, a: 32767}
- _MaskEdgeColor: {r: 1, g: 1, b: 1, a: 1}
- _OutlineColor: {r: 0, g: 0, b: 1, a: 1}
- _ReflectFaceColor: {r: 0, g: 0, b: 0, a: 1}
- _ReflectOutlineColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecularColor: {r: 1, g: 1, b: 1, a: 1}
- _UnderlayColor: {r: 0, g: 0, b: 0, a: 0.5}
m_BuildTextureStacks: []

View file

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 82df20bb2a72d0547850ba6b12512a0d
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,116 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: WarioWareIncMerge SDF 2
m_Shader: {fileID: 4800000, guid: bc1ede39bf3643ee8e493720e4259791, type: 3}
m_ValidKeywords:
- OUTLINE_ON
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _Cube:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _FaceTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 354257792991978780, guid: 5493f7489392d4a47abde0ea2c7caecf, type: 2}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MaskTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OutlineTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _Ambient: 0.5
- _Bevel: 0.5
- _BevelClamp: 0
- _BevelOffset: 0
- _BevelRoundness: 0
- _BevelWidth: 0
- _BumpFace: 0
- _BumpOutline: 0
- _ColorMask: 15
- _CullMode: 0
- _Diffuse: 0.5
- _FaceDilate: 0
- _FaceUVSpeedX: 0
- _FaceUVSpeedY: 0
- _GlowInner: 0.05
- _GlowOffset: 0
- _GlowOuter: 0.05
- _GlowPower: 0.75
- _GradientScale: 6
- _LightAngle: 3.1416
- _MaskEdgeSoftness: 0.01
- _MaskInverse: 0
- _MaskSoftnessX: 0
- _MaskSoftnessY: 0
- _MaskWipeControl: 0.5
- _OutlineSoftness: 0
- _OutlineUVSpeedX: 0
- _OutlineUVSpeedY: 0
- _OutlineWidth: 0.336
- _PerspectiveFilter: 0.875
- _Reflectivity: 10
- _ScaleRatioA: 0.8333333
- _ScaleRatioB: 0.6770833
- _ScaleRatioC: 0.6770833
- _ScaleX: 1
- _ScaleY: 1
- _ShaderFlags: 0
- _Sharpness: 0
- _SpecularPower: 2
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
- _TextureHeight: 1024
- _TextureWidth: 1024
- _UnderlayDilate: 0
- _UnderlayOffsetX: 0
- _UnderlayOffsetY: 0
- _UnderlaySoftness: 0
- _VertexOffsetX: 0
- _VertexOffsetY: 0
- _WeightBold: 0.75
- _WeightNormal: 0
m_Colors:
- _ClipRect: {r: -10, g: -10, b: -10, a: 10}
- _EnvMatrixRotation: {r: 0, g: 0, b: 0, a: 0}
- _FaceColor: {r: 1, g: 1, b: 1, a: 1}
- _GlowColor: {r: 0, g: 1, b: 0, a: 0.5}
- _MaskCoord: {r: 0, g: 0, b: 32767, a: 32767}
- _MaskEdgeColor: {r: 1, g: 1, b: 1, a: 1}
- _OutlineColor: {r: 0, g: 0, b: 1, a: 1}
- _ReflectFaceColor: {r: 0, g: 0, b: 0, a: 1}
- _ReflectOutlineColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecularColor: {r: 1, g: 1, b: 1, a: 1}
- _UnderlayColor: {r: 0, g: 0, b: 0, a: 0.5}
m_BuildTextureStacks: []

View file

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 40591d38cfb2b6445b594c69ac3d691b
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,116 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: WarioWareIncMerge SDF 3
m_Shader: {fileID: 4800000, guid: bc1ede39bf3643ee8e493720e4259791, type: 3}
m_ValidKeywords:
- OUTLINE_ON
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _Cube:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _FaceTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 354257792991978780, guid: 5493f7489392d4a47abde0ea2c7caecf, type: 2}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MaskTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OutlineTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _Ambient: 0.5
- _Bevel: 0.5
- _BevelClamp: 0
- _BevelOffset: 0
- _BevelRoundness: 0
- _BevelWidth: 0
- _BumpFace: 0
- _BumpOutline: 0
- _ColorMask: 15
- _CullMode: 0
- _Diffuse: 0.5
- _FaceDilate: 0
- _FaceUVSpeedX: 0
- _FaceUVSpeedY: 0
- _GlowInner: 0.05
- _GlowOffset: 0
- _GlowOuter: 0.05
- _GlowPower: 0.75
- _GradientScale: 6
- _LightAngle: 3.1416
- _MaskEdgeSoftness: 0.01
- _MaskInverse: 0
- _MaskSoftnessX: 0
- _MaskSoftnessY: 0
- _MaskWipeControl: 0.5
- _OutlineSoftness: 0
- _OutlineUVSpeedX: 0
- _OutlineUVSpeedY: 0
- _OutlineWidth: 0.336
- _PerspectiveFilter: 0.875
- _Reflectivity: 10
- _ScaleRatioA: 0.8333333
- _ScaleRatioB: 0.6770833
- _ScaleRatioC: 0.6770833
- _ScaleX: 1
- _ScaleY: 1
- _ShaderFlags: 0
- _Sharpness: 0
- _SpecularPower: 2
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
- _TextureHeight: 1024
- _TextureWidth: 1024
- _UnderlayDilate: 0
- _UnderlayOffsetX: 0
- _UnderlayOffsetY: 0
- _UnderlaySoftness: 0
- _VertexOffsetX: 0
- _VertexOffsetY: 0
- _WeightBold: 0.75
- _WeightNormal: 0
m_Colors:
- _ClipRect: {r: -10, g: -10, b: -10, a: 10}
- _EnvMatrixRotation: {r: 0, g: 0, b: 0, a: 0}
- _FaceColor: {r: 1, g: 1, b: 1, a: 1}
- _GlowColor: {r: 0, g: 1, b: 0, a: 0.5}
- _MaskCoord: {r: 0, g: 0, b: 32767, a: 32767}
- _MaskEdgeColor: {r: 1, g: 1, b: 1, a: 1}
- _OutlineColor: {r: 0, g: 0, b: 1, a: 1}
- _ReflectFaceColor: {r: 0, g: 0, b: 0, a: 1}
- _ReflectOutlineColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecularColor: {r: 1, g: 1, b: 1, a: 1}
- _UnderlayColor: {r: 0, g: 0, b: 0, a: 0.5}
m_BuildTextureStacks: []

View file

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 912a0f041a83f2f45916404517be0608
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,116 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: WarioWareIncMerge SDF 4
m_Shader: {fileID: 4800000, guid: bc1ede39bf3643ee8e493720e4259791, type: 3}
m_ValidKeywords:
- OUTLINE_ON
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _Cube:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _FaceTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 354257792991978780, guid: 5493f7489392d4a47abde0ea2c7caecf, type: 2}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MaskTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OutlineTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _Ambient: 0.5
- _Bevel: 0.5
- _BevelClamp: 0
- _BevelOffset: 0
- _BevelRoundness: 0
- _BevelWidth: 0
- _BumpFace: 0
- _BumpOutline: 0
- _ColorMask: 15
- _CullMode: 0
- _Diffuse: 0.5
- _FaceDilate: 0
- _FaceUVSpeedX: 0
- _FaceUVSpeedY: 0
- _GlowInner: 0.05
- _GlowOffset: 0
- _GlowOuter: 0.05
- _GlowPower: 0.75
- _GradientScale: 6
- _LightAngle: 3.1416
- _MaskEdgeSoftness: 0.01
- _MaskInverse: 0
- _MaskSoftnessX: 0
- _MaskSoftnessY: 0
- _MaskWipeControl: 0.5
- _OutlineSoftness: 0
- _OutlineUVSpeedX: 0
- _OutlineUVSpeedY: 0
- _OutlineWidth: 0.336
- _PerspectiveFilter: 0.875
- _Reflectivity: 10
- _ScaleRatioA: 0.8333333
- _ScaleRatioB: 0.6770833
- _ScaleRatioC: 0.6770833
- _ScaleX: 1
- _ScaleY: 1
- _ShaderFlags: 0
- _Sharpness: 0
- _SpecularPower: 2
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
- _TextureHeight: 1024
- _TextureWidth: 1024
- _UnderlayDilate: 0
- _UnderlayOffsetX: 0
- _UnderlayOffsetY: 0
- _UnderlaySoftness: 0
- _VertexOffsetX: 0
- _VertexOffsetY: 0
- _WeightBold: 0.75
- _WeightNormal: 0
m_Colors:
- _ClipRect: {r: -10, g: -10, b: -10, a: 10}
- _EnvMatrixRotation: {r: 0, g: 0, b: 0, a: 0}
- _FaceColor: {r: 1, g: 1, b: 1, a: 1}
- _GlowColor: {r: 0, g: 1, b: 0, a: 0.5}
- _MaskCoord: {r: 0, g: 0, b: 32767, a: 32767}
- _MaskEdgeColor: {r: 1, g: 1, b: 1, a: 1}
- _OutlineColor: {r: 0, g: 0, b: 1, a: 1}
- _ReflectFaceColor: {r: 0, g: 0, b: 0, a: 1}
- _ReflectOutlineColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecularColor: {r: 1, g: 1, b: 1, a: 1}
- _UnderlayColor: {r: 0, g: 0, b: 0, a: 0.5}
m_BuildTextureStacks: []

View file

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 70bcc4aa6e597144fbcaa78477577a71
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,116 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: WarioWareIncMerge SDF 5
m_Shader: {fileID: 4800000, guid: bc1ede39bf3643ee8e493720e4259791, type: 3}
m_ValidKeywords:
- OUTLINE_ON
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _Cube:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _FaceTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 354257792991978780, guid: 5493f7489392d4a47abde0ea2c7caecf, type: 2}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MaskTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OutlineTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _Ambient: 0.5
- _Bevel: 0.5
- _BevelClamp: 0
- _BevelOffset: 0
- _BevelRoundness: 0
- _BevelWidth: 0
- _BumpFace: 0
- _BumpOutline: 0
- _ColorMask: 15
- _CullMode: 0
- _Diffuse: 0.5
- _FaceDilate: 0
- _FaceUVSpeedX: 0
- _FaceUVSpeedY: 0
- _GlowInner: 0.05
- _GlowOffset: 0
- _GlowOuter: 0.05
- _GlowPower: 0.75
- _GradientScale: 6
- _LightAngle: 3.1416
- _MaskEdgeSoftness: 0.01
- _MaskInverse: 0
- _MaskSoftnessX: 0
- _MaskSoftnessY: 0
- _MaskWipeControl: 0.5
- _OutlineSoftness: 0
- _OutlineUVSpeedX: 0
- _OutlineUVSpeedY: 0
- _OutlineWidth: 0.336
- _PerspectiveFilter: 0.875
- _Reflectivity: 10
- _ScaleRatioA: 0.8333333
- _ScaleRatioB: 0.6770833
- _ScaleRatioC: 0.6770833
- _ScaleX: 1
- _ScaleY: 1
- _ShaderFlags: 0
- _Sharpness: 0
- _SpecularPower: 2
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
- _TextureHeight: 1024
- _TextureWidth: 1024
- _UnderlayDilate: 0
- _UnderlayOffsetX: 0
- _UnderlayOffsetY: 0
- _UnderlaySoftness: 0
- _VertexOffsetX: 0
- _VertexOffsetY: 0
- _WeightBold: 0.75
- _WeightNormal: 0
m_Colors:
- _ClipRect: {r: -10, g: -10, b: -10, a: 10}
- _EnvMatrixRotation: {r: 0, g: 0, b: 0, a: 0}
- _FaceColor: {r: 1, g: 1, b: 1, a: 1}
- _GlowColor: {r: 0, g: 1, b: 0, a: 0.5}
- _MaskCoord: {r: 0, g: 0, b: 32767, a: 32767}
- _MaskEdgeColor: {r: 1, g: 1, b: 1, a: 1}
- _OutlineColor: {r: 0, g: 0, b: 1, a: 1}
- _ReflectFaceColor: {r: 0, g: 0, b: 0, a: 1}
- _ReflectOutlineColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecularColor: {r: 1, g: 1, b: 1, a: 1}
- _UnderlayColor: {r: 0, g: 0, b: 0, a: 0.5}
m_BuildTextureStacks: []

View file

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 5dbec2ea9ddfece4c8e83fb2d4fb2ec2
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 5493f7489392d4a47abde0ea2c7caecf
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: cdedeec6e131edb46a0448c63e2c995c
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,176 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &2706366231333981540
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1920265007186936794}
- component: {fileID: 7322374868700629857}
- component: {fileID: 5093494505832089830}
m_Layer: 0
m_Name: Line
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1920265007186936794
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2706366231333981540}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 7, y: 7, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
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: 63.190033, y: 3.2699814}
m_SizeDelta: {x: 20, y: 0.1659}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!23 &7322374868700629857
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2706366231333981540}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: -1553956461212507765, guid: 5493f7489392d4a47abde0ea2c7caecf, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 500
m_AdditionalVertexStreams: {fileID: 0}
--- !u!114 &5093494505832089830
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2706366231333981540}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9541d86e2fd84c1d9990edf0852d74ab, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text:
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 5493f7489392d4a47abde0ea2c7caecf, type: 2}
m_sharedMaterial: {fileID: -1553956461212507765, guid: 5493f7489392d4a47abde0ea2c7caecf, 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: 1.25
m_fontSizeBase: 1.25
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 1
m_HorizontalAlignment: 1
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_TextWrappingMode: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 0
m_ActiveFontFeatures: 6e72656b
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_EmojiFallbackSupport: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 0
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.59575295, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
_SortingLayer: 0
_SortingLayerID: 0
_SortingOrder: 0
m_hasFontAssetChanged: 0
m_renderer: {fileID: 7322374868700629857}
m_maskType: 0

View file

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 78487bc7b5cf6854785e7515af8dfc95
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,176 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &7961906119209586664
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7327288365011852406}
- component: {fileID: 8392419209326797689}
- component: {fileID: 7071067088870843725}
m_Layer: 0
m_Name: LineBlue
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &7327288365011852406
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7961906119209586664}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 7, y: 7, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
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: 62.94707, y: 3.268}
m_SizeDelta: {x: 19.9307, y: 0.1659}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!23 &8392419209326797689
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7961906119209586664}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 82df20bb2a72d0547850ba6b12512a0d, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 501
m_AdditionalVertexStreams: {fileID: 0}
--- !u!114 &7071067088870843725
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7961906119209586664}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9541d86e2fd84c1d9990edf0852d74ab, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text:
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 5493f7489392d4a47abde0ea2c7caecf, type: 2}
m_sharedMaterial: {fileID: 2100000, guid: 82df20bb2a72d0547850ba6b12512a0d, 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: 1.25
m_fontSizeBase: 1.25
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 1
m_HorizontalAlignment: 1
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_TextWrappingMode: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 0
m_ActiveFontFeatures: 6e72656b
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_EmojiFallbackSupport: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 0
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.59575295, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
_SortingLayer: 0
_SortingLayerID: 0
_SortingOrder: 0
m_hasFontAssetChanged: 0
m_renderer: {fileID: 8392419209326797689}
m_maskType: 0

View file

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 65acee4392db51c4197f3c42be8cc30f
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -16,25 +16,25 @@ namespace HeavenStudio.Games.Loaders
public static class AgbBonOdoriLoader public static class AgbBonOdoriLoader
{ {
public static Minigame AddGame(EventCaller eventCaller) public static Minigame AddGame(EventCaller eventCaller)
{ {
return new Minigame("bonOdori", "The☆Bon Odori \n<color=#adadad>(Za☆Bon Odori)</color>", "312B9F", false, false, new List<GameAction>() return new Minigame("bonOdori", "The☆Bon Odori \n<color=#adadad>(Za☆Bon Odori)</color>", "312B9F", false, false, new List<GameAction>()
{ new GameAction("bop", "Bop") {
{ function = delegate {BonOdori.instance.Bop(eventCaller.currentEntity.beat, eventCaller.currentEntity.length, eventCaller.currentEntity["toggle"], eventCaller.currentEntity["auto"]);}, new GameAction("bop", "Bop")
{
function = delegate { var e = eventCaller.currentEntity; BonOdori.instance.ToggleBop(e.beat, e.length, e["toggle"], e["auto"]);},
resizable = true, resizable = true,
parameters = new List<Param>() parameters = new List<Param>()
{ {
new Param("toggle", true, "Bop", "Toggle if the Donpans and Yagura-chan should bop for the duration of this event."), new Param("toggle", true, "Bop", "Toggle if the Donpans and Yagura-chan should bop for the duration of this event."),
new Param("auto", false, "Bop (Auto)", "Toggle if the Donpans and Yagura-chan should automatically bop until another Bop event is reached."), new Param("auto", false, "Bop (Auto)", "Toggle if the Donpans and Yagura-chan should automatically bop until another Bop event is reached."),
}, },
}, },
new GameAction("pan", "Pan") new GameAction("pan", "Pan")
{ {
preFunction = delegate
preFunction = delegate { {
var e = eventCaller.currentEntity; var e = eventCaller.currentEntity;
string variation = "variation" + (new string[] { "Pan", "Pa", "Pa_n" })[e["type"]]; string variation = "variation" + (new string[] { "Pan", "Pa", "Pa_n" })[e["type"]];
BonOdori.instance.PreClap(e.beat, e[variation], e["type"], e["mute"],e["clapType"], e["semitone"]); BonOdori.instance.PreClap(e.beat, e[variation], e["type"], e["mute"],e["clapType"], e["semitone"]);
@ -53,12 +53,11 @@ namespace HeavenStudio.Games.Loaders
new Param("variationPa_n", BonOdori.variationPa_n.Pa_nA , "Pa-n Type", "Set the variation of the voice line."), new Param("variationPa_n", BonOdori.variationPa_n.Pa_nA , "Pa-n Type", "Set the variation of the voice line."),
new Param("clapType", BonOdori.typeClap.SideClap, "Clap Type", "Set the type of clap."), new Param("clapType", BonOdori.typeClap.SideClap, "Clap Type", "Set the type of clap."),
new Param("semitone", new EntityTypes.Integer(-EntityTypes.Note.maxSemitones, EntityTypes.Note.maxSemitones, 0), "Semitone", "Set the number of semitones up or down this note should be pitched."), new Param("semitone", new EntityTypes.Integer(-EntityTypes.Note.maxSemitones, EntityTypes.Note.maxSemitones, 0), "Semitone", "Set the number of semitones up or down this note should be pitched."),
} },
}, },
new GameAction("don", "Don") new GameAction("don", "Don")
{ {
function = delegate { function = delegate {
var e = eventCaller.currentEntity; var e = eventCaller.currentEntity;
string variation = "variation" + (new string[] { "Don", "Do", "Do_n" })[e["type"]]; string variation = "variation" + (new string[] { "Don", "Do", "Do_n" })[e["type"]];
@ -76,15 +75,17 @@ namespace HeavenStudio.Games.Loaders
new Param("variationDo", BonOdori.variationDo.DoC, "Do Type", "Set the variation of the voice line."), new Param("variationDo", BonOdori.variationDo.DoC, "Do Type", "Set the variation of the voice line."),
new Param("variationDo_n", BonOdori.variationDo_n.Do_nA, "Do-n Type", "Set the variation of the voice line."), new Param("variationDo_n", BonOdori.variationDo_n.Do_nA, "Do-n Type", "Set the variation of the voice line."),
new Param("semitone", new EntityTypes.Integer(-EntityTypes.Note.maxSemitones, EntityTypes.Note.maxSemitones, 0), "Semitone", "Set the number of semitones up or down this note should be pitched."), new Param("semitone", new EntityTypes.Integer(-EntityTypes.Note.maxSemitones, EntityTypes.Note.maxSemitones, 0), "Semitone", "Set the number of semitones up or down this note should be pitched."),
} },
}, },
new GameAction("show text", "Show Text") new GameAction("show text", "Show Text")
{ {
function = delegate {BonOdori.instance.ShowText(eventCaller.currentEntity["line 1"], eventCaller.currentEntity["line 2"], eventCaller.currentEntity["line 3"], eventCaller.currentEntity["line 4"], eventCaller.currentEntity["line 5"]);}, function = delegate { var e = eventCaller.currentEntity; BonOdori.instance.ShowText(e["line 1"], e["line 2"], e["line 3"], e["line 4"], e["line 5"]);},
defaultLength = 1f, defaultLength = 1f,
parameters = new List<Param>() parameters = new List<Param>()
{ new Param("whichLine", new EntityTypes.Integer(1,5,1), "Line", "Which line to modify.", new(){ {
new Param("whichLine", new EntityTypes.Integer(1,5,1), "Line", "Which line to modify.", new()
{
new((x, _) => (int)x == 1, new string[] { "line 1"}), new((x, _) => (int)x == 1, new string[] { "line 1"}),
new((x, _) => (int)x == 2, new string[] { "line 2"}), new((x, _) => (int)x == 2, new string[] { "line 2"}),
new((x, _) => (int)x == 3, new string[] { "line 3"}), new((x, _) => (int)x == 3, new string[] { "line 3"}),
@ -93,19 +94,16 @@ namespace HeavenStudio.Games.Loaders
}), }),
new Param("line 1", "Type r| for red text, g| for green text and y| for yellow text. These can be used multiple times in a single line.", "Line 1", "Set the text for line 1."), new Param("line 1", "Type r| for red text, g| for green text and y| for yellow text. These can be used multiple times in a single line.", "Line 1", "Set the text for line 1."),
new Param("line 2", "", "Line 2", "Set the text for line 2."), new Param("line 2", "", "Line 2", "Set the text for line 2."),
new Param("line 3", "", "Line 3", "Set the text for line 3.y"), new Param("line 3", "", "Line 3", "Set the text for line 3."),
new Param("line 4", "", "Line 4", "Set the text for line 4."), new Param("line 4", "", "Line 4", "Set the text for line 4."),
new Param("line 5", "", "Line 5", "Set the text for line 5."), new Param("line 5", "", "Line 5", "Set the text for line 5."),
}, },
priority = 1 priority = 1
}, },
new GameAction("delete text", "Delete Text") new GameAction("delete text", "Delete Text")
{ {
function = delegate {BonOdori.instance.DeleteText(eventCaller.currentEntity["line 1"],eventCaller.currentEntity["line 2"],eventCaller.currentEntity["line 3"],eventCaller.currentEntity["line 4"],eventCaller.currentEntity["line 5"]);}, function = delegate { var e = eventCaller.currentEntity; BonOdori.instance.DeleteText(e["line 1"], e["line 2"], e["line 3"], e["line 4"], e["line 5"]);},
defaultLength = 1f, defaultLength = 1f,
parameters = new List<Param>() parameters = new List<Param>()
{ {
@ -115,11 +113,11 @@ namespace HeavenStudio.Games.Loaders
new Param("line 4", false, "Line 4", "Delete the contents of line 4."), new Param("line 4", false, "Line 4", "Delete the contents of line 4."),
new Param("line 5", false, "Line 5", "Delete the contents of line 5."), new Param("line 5", false, "Line 5", "Delete the contents of line 5."),
}, },
}, },
new GameAction("scroll text", "Scroll Text") new GameAction("scroll text", "Scroll Text")
{ {
function = delegate {BonOdori.instance.ScrollText(eventCaller.currentEntity["line 1"],eventCaller.currentEntity["line 2"],eventCaller.currentEntity["line 3"],eventCaller.currentEntity["line 4"],eventCaller.currentEntity["line 5"], eventCaller.currentEntity.length, eventCaller.currentEntity.beat);}, function = delegate { var e = eventCaller.currentEntity; BonOdori.instance.ScrollText(e.beat, e.length, e["line 1"], e["line 2"], e["line 3"], e["line 4"], e["line 5"]);},
defaultLength = 1f, defaultLength = 1f,
resizable = true, resizable = true,
parameters = new List<Param>() parameters = new List<Param>()
@ -132,6 +130,7 @@ namespace HeavenStudio.Games.Loaders
}, },
}, },
new GameAction("bow", "Bow") new GameAction("bow", "Bow")
{ {
function = delegate { BonOdori.instance.Bow(eventCaller.currentEntity.beat, eventCaller.currentEntity.length);}, function = delegate { BonOdori.instance.Bow(eventCaller.currentEntity.beat, eventCaller.currentEntity.length);},
@ -139,12 +138,13 @@ namespace HeavenStudio.Games.Loaders
resizable = true, resizable = true,
}, },
// new GameAction("spin", "Spin") // new GameAction("spin", "Spin")
// { // {
// function = delegate { BonOdori.instance.Spin(eventCaller.currentEntity.beat, eventCaller.currentEntity.length);}, // function = delegate { BonOdori.instance.Spin(eventCaller.currentEntity.beat, eventCaller.currentEntity.length);},
// defaultLength = 1f, // defaultLength = 1f,
// }, // },
new GameAction("toggle bg", "Toggle Darker Background") new GameAction("toggle bg", "Toggle Darker Background")
{ {
function = delegate { BonOdori.instance.DarkBG(eventCaller.currentEntity.beat, eventCaller.currentEntity["toggle"], eventCaller.currentEntity.length);}, function = delegate { BonOdori.instance.DarkBG(eventCaller.currentEntity.beat, eventCaller.currentEntity["toggle"], eventCaller.currentEntity.length);},
@ -153,26 +153,17 @@ namespace HeavenStudio.Games.Loaders
{ {
new Param("toggle", true, "Darken Background", "Darkens the background"), new Param("toggle", true, "Darken Background", "Darkens the background"),
} }
}, },
},
new List<string>() { "agb", "normal" }, "agbBonOdori", "en", new List<string>() { }
);
});
} }
}; };
}; };
namespace HeavenStudio.Games namespace HeavenStudio.Games
{ {
public class BonOdori : Minigame public class BonOdori : Minigame
{ {
string prefix; string prefix;
double beatUniversal; double beatUniversal;
string suffix; string suffix;
@ -182,54 +173,19 @@ namespace HeavenStudio.Games
bool bopDonpans; bool bopDonpans;
int clapTypeGlobal = 0; int clapTypeGlobal = 0;
string clapTypeString = "ClapSide"; string clapTypeString = "ClapSide";
string originalText1; string[] originalTexts = new string[5];
string originalText2; Coroutine[] Scrolls = new Coroutine[5];
string originalText3;
string originalText4;
string originalText5;
Coroutine Scroll1;
Coroutine Scroll2;
Coroutine Scroll3;
Coroutine Scroll4;
Coroutine Scroll5;
Coroutine DarkerBG; Coroutine DarkerBG;
bool darkBgIsOn = false; bool darkBgIsOn = false;
TextMeshProUGUI Text1_GUI;
TextMeshProUGUI Text2_GUI;
TextMeshProUGUI Text3_GUI;
TextMeshProUGUI Text4_GUI;
TextMeshProUGUI Text5_GUI;
TextMeshProUGUI Text6_GUI;
TextMeshProUGUI Text7_GUI;
TextMeshProUGUI Text8_GUI;
TextMeshProUGUI Text9_GUI;
TextMeshProUGUI Text10_GUI;
[SerializeField] TMP_Text[] Texts;
[SerializeField] TMP_Text[] TextsBlue;
[SerializeField] TMP_Text Text1; [SerializeField] Animator[] Donpans;
[SerializeField] TMP_Text Text2; [SerializeField] Animator[] DonpansFace;
[SerializeField] TMP_Text Text3;
[SerializeField] TMP_Text Text4;
[SerializeField] TMP_Text Text5;
[SerializeField] TMP_Text Text6;
[SerializeField] TMP_Text Text7;
[SerializeField] TMP_Text Text8;
[SerializeField] TMP_Text Text9;
[SerializeField] TMP_Text Text10;
[SerializeField] Animator Player;
[SerializeField] Animator Judge; [SerializeField] Animator Judge;
[SerializeField] Animator JudgeFace;
[SerializeField] GameObject DarkPlane; [SerializeField] GameObject DarkPlane;
[SerializeField] Animator CPU1;
[SerializeField] Animator CPU2;
[SerializeField] Animator CPU3;
[SerializeField] Animator Face;
[SerializeField] Animator CPU1Face;
[SerializeField] Animator CPU2Face;
[SerializeField] Animator CPU3Face;
[SerializeField] Animator PlayerFace;
public enum typeClap public enum typeClap
{ {
SideClap = 0, SideClap = 0,
@ -245,9 +201,8 @@ namespace HeavenStudio.Games
public bool muted; public bool muted;
public int clapType; public int clapType;
public int semitone; public int semitone;
} }
public enum typePan public enum typePan
{ {
Pan = 0, Pan = 0,
@ -294,73 +249,38 @@ namespace HeavenStudio.Games
DoC = 0, DoC = 0,
DoG = 1 DoG = 1
} }
public static BonOdori instance { get; set; }
public void Awake()
public static BonOdori instance { get; set; }
public void Awake()
{ {
darkPlane = DarkPlane.GetComponent<SpriteRenderer>(); darkPlane = DarkPlane.GetComponent<SpriteRenderer>();
clapTypeGlobal = 0; clapTypeGlobal = 0;
instance = this; instance = this;
Text1_GUI = Text1.GetComponent<TextMeshProUGUI>();
Text2_GUI = Text2.GetComponent<TextMeshProUGUI>();
Text3_GUI = Text3.GetComponent<TextMeshProUGUI>();
Text4_GUI = Text4.GetComponent<TextMeshProUGUI>();
Text5_GUI = Text5.GetComponent<TextMeshProUGUI>();
Text6_GUI = Text6.GetComponent<TextMeshProUGUI>();
Text7_GUI = Text7.GetComponent<TextMeshProUGUI>();
Text8_GUI = Text8.GetComponent<TextMeshProUGUI>();
Text9_GUI = Text9.GetComponent<TextMeshProUGUI>();
Text10_GUI = Text10.GetComponent<TextMeshProUGUI>();
} }
public void OnStop() public void OnStop()
{ {
DarkPlane.GetComponent<SpriteRenderer>().color = new Color(1f, 1f, 1f, 0f); DarkPlane.GetComponent<SpriteRenderer>().color = new Color(1f, 1f, 1f, 0f);
} }
public void Update() public void Update()
{ {
Conductor con = new Conductor(); var cond = Conductor.instance;
if (!con.NotStopped()) if (!cond.isPlaying || cond.isPaused) return;
if (!cond.NotStopped())
{ {
Text1.text = ""; for (int i = 0; i < Scrolls.Length; i++)
Text2.text = ""; {
Text3.text = ""; StopCoroutine(Scrolls[i]);
Text4.text = ""; Texts[i].text = "";
Text6.text = ""; TextsBlue[i].text = "";
Text7.text = ""; TextsBlue[i].GetComponent<TextMeshPro>().SetMask(0, new Vector4(-10f, -10f, -10f, 10));
Text8.text = ""; }
Text9.text = ""; StopCoroutine(DarkerBG);
Text10.text = "";
StopCoroutine(Scroll1);
StopCoroutine(Scroll2);
StopCoroutine(Scroll3);
StopCoroutine(Scroll4);
StopCoroutine(Scroll5);
StopCoroutine(DarkerBG);
Text6.GetComponent<TextMeshPro>().SetMask(0, new Vector4(-10f, -10f, -10f, 10));
Text7.GetComponent<TextMeshPro>().SetMask(0, new Vector4(-10f, -10f, -10f, 10));
Text8.GetComponent<TextMeshPro>().SetMask(0, new Vector4(-10f, -10f, -10f, 10));
Text9.GetComponent<TextMeshPro>().SetMask(0, new Vector4(-10f, -10f, -10f, 10));
Text10.GetComponent<TextMeshPro>().SetMask(0, new Vector4(-10f, -10f, -10f, 10));
} }
if (PlayerInput.GetIsAction(BonOdori.InputAction_BasicPress) && !IsExpectingInputNow(InputAction_BasicPress)) if (PlayerInput.GetIsAction(BonOdori.InputAction_BasicPress) && !IsExpectingInputNow(InputAction_BasicPress))
{ {
@ -375,39 +295,31 @@ namespace HeavenStudio.Games
clapTypeString = "ClapFront"; clapTypeString = "ClapFront";
} }
Player.DoScaledAnimationAsync(clapTypeString, 0.5f); Donpans[0].DoScaledAnimationAsync(clapTypeString, 0.5f);
if (!goBopDonpans) if (!goBopDonpans)
{ {
BeatAction.New(instance, new List<BeatAction.Action>() BeatAction.New(instance, new List<BeatAction.Action>()
{ {
new BeatAction.Action(beatUniversal + 1d, delegate { Player.DoScaledAnimationAsync("NeutralClapped", 0.5f); CPU1.DoScaledAnimationAsync("NeutralClapped", 0.5f); CPU2.DoScaledAnimationAsync("NeutralClapped", 0.5f); CPU3.DoScaledAnimationAsync("NeutralClapped", 0.5f);}), new BeatAction.Action(beatUniversal + 1d, delegate {
foreach (var chara in Donpans) {
chara.DoScaledAnimationAsync("NeutralClapped", 0.5f);
}
}),
}); });
} }
} }
} }
public override void OnGameSwitch(double beat) public override void OnGameSwitch(double beat)
{ {
if (queuedClaps.Count > 0) if (queuedClaps.Count > 0)
{ {
foreach (var clap in queuedClaps) Clap(clap.beat, clap.variation, clap.typeSpeak, clap.muted, clap.clapType, clap.semitone); foreach (var clap in queuedClaps) Clap(clap.beat, clap.variation, clap.typeSpeak, clap.muted, clap.clapType, clap.semitone);
queuedClaps.Clear(); queuedClaps.Clear();
} }
} }
public void PreClap(double beat, int variation, int typeSpeak, bool muted, int clapType, int semitone) public void PreClap(double beat, int variation, int typeSpeak, bool muted, int clapType, int semitone)
{ {
if (GameManager.instance.currentGame == "bonOdori") if (GameManager.instance.currentGame == "bonOdori")
@ -427,8 +339,8 @@ namespace HeavenStudio.Games
}); });
} }
} }
public void Clap(double beat, int variation, int typeSpeak, bool muted, int clapType, int semitone)
public void Clap(double beat, int variation, int typeSpeak, bool muted, int clapType, int semitone)
{ {
if (clapType == 1) if (clapType == 1)
{ {
@ -438,14 +350,8 @@ namespace HeavenStudio.Games
{ {
clapTypeGlobal = 0; clapTypeGlobal = 0;
} }
if (muted) if (!muted)
{ {
ScheduleInput(beat, 0f, InputAction_BasicPress, Success, Miss, Empty);
}
else
{
string clip = typeSpeak switch string clip = typeSpeak switch
{ {
0 => "pan", 0 => "pan",
@ -455,13 +361,11 @@ namespace HeavenStudio.Games
var pitch = SoundByte.GetPitchFromSemiTones(semitone, true); var pitch = SoundByte.GetPitchFromSemiTones(semitone, true);
SoundByte.PlayOneShotGame($"bonOdori/" + clip + (variation + 1), beat, pitch); SoundByte.PlayOneShotGame($"bonOdori/" + clip + (variation + 1), beat, pitch);
beatUniversal = beat; beatUniversal = beat;
}
ScheduleInput(beat, 0f, InputAction_BasicPress, Success, Miss, Empty); ScheduleInput(beat, 0f, InputAction_BasicPress, Success, Miss, Empty);
} }
}
public void Sound(double beat, int variation, int typeSpeak, int semitone) public void Sound(double beat, int variation, int typeSpeak, int semitone)
{ {
string clip = typeSpeak switch string clip = typeSpeak switch
@ -474,7 +378,6 @@ namespace HeavenStudio.Games
var pitch = SoundByte.GetPitchFromSemiTones(semitone, true); var pitch = SoundByte.GetPitchFromSemiTones(semitone, true);
SoundByte.PlayOneShotGame($"bonOdori/" + clip + (variation + 1), beat, pitch); SoundByte.PlayOneShotGame($"bonOdori/" + clip + (variation + 1), beat, pitch);
} }
@ -488,39 +391,25 @@ namespace HeavenStudio.Games
{ {
clapTypeString = "ClapFront"; clapTypeString = "ClapFront";
} }
foreach (var chara in Donpans) {
chara.DoScaledAnimationAsync(clapTypeString, 0.5f);
}
Player.DoScaledAnimationAsync(clapTypeString, 0.5f);
CPU1.DoScaledAnimationAsync(clapTypeString, 0.5f);
CPU2.DoScaledAnimationAsync(clapTypeString, 0.5f);
CPU3.DoScaledAnimationAsync(clapTypeString, 0.5f);
if (!goBopDonpans) if (!goBopDonpans)
{ {
BeatAction.New(instance, new List<BeatAction.Action>() BeatAction.New(instance, new List<BeatAction.Action>()
{ {
new BeatAction.Action(beatUniversal + 1d, delegate { Player.Play("NeutralClapped"); CPU1.Play("NeutralClapped"); CPU2.Play("NeutralClapped"); CPU3.Play("NeutralClapped");}), new BeatAction.Action(beatUniversal + 1d, delegate {
foreach (var chara in Donpans) {
chara.DoScaledAnimationAsync("NeutralClapped", 0.5f);
}
}),
}); });
} }
SoundByte.PlayOneShotGame("bonOdori/clap"); SoundByte.PlayOneShotGame("bonOdori/clap");
} }
public void Miss(PlayerActionEvent caller) public void Miss(PlayerActionEvent caller)
{
CPU1.DoScaledAnimationAsync(clapTypeString, 0.5f);
CPU2.DoScaledAnimationAsync(clapTypeString, 0.5f);
CPU3.DoScaledAnimationAsync(clapTypeString, 0.5f);
SoundByte.PlayOneShot("miss");
BeatAction.New(instance, new List<BeatAction.Action>()
{
new BeatAction.Action(beatUniversal + 1d, delegate { Face.Play("Sad");}),
new BeatAction.Action(beatUniversal + 3d, delegate {Face.Play("Neutral");})
});
}
public void Empty(PlayerActionEvent caller)
{ {
if (clapTypeGlobal == 0) if (clapTypeGlobal == 0)
{ {
@ -530,36 +419,33 @@ namespace HeavenStudio.Games
{ {
clapTypeString = "ClapFront"; clapTypeString = "ClapFront";
} }
foreach (var chara in Donpans) {
chara.DoScaledAnimationAsync(clapTypeString, 0.5f);
}
Player.DoScaledAnimationAsync(clapTypeString, 0.5f); SoundByte.PlayOneShot("miss");
CPU1.DoScaledAnimationAsync(clapTypeString, 0.5f);
CPU2.DoScaledAnimationAsync(clapTypeString, 0.5f);
CPU3.DoScaledAnimationAsync(clapTypeString, 0.5f);
if (!goBopDonpans)
{
BeatAction.New(instance, new List<BeatAction.Action>() BeatAction.New(instance, new List<BeatAction.Action>()
{ {
new BeatAction.Action(beatUniversal + 1d, delegate { Player.Play("NeutralClapped"); CPU1.Play("NeutralClapped"); CPU2.Play("NeutralClapped"); CPU3.Play("NeutralClapped");}), new BeatAction.Action(beatUniversal + 1d, delegate { JudgeFace.Play("Sad");}),
new BeatAction.Action(beatUniversal + 3d, delegate { JudgeFace.Play("Neutral");})
}); });
}
SoundByte.PlayOneShot("nearMiss");
} }
string ChangeColor(string text, bool isScroll)
public void Empty(PlayerActionEvent caller) { }
string ConvertText(string text, bool isScroll = false)
{ {
if (text.Contains("r|") | text.Contains("y|") | text.Contains("g|")) if (text.Contains("r|") | text.Contains("y|") | text.Contains("g|") | text.Contains("s|") | text.Contains("d|"))
{ {
if (!isScroll) if (!isScroll)
{ {
return text.Replace("r|", "<color=#ff0000>") return text.Replace("r|", "<color=#ff0000>")
.Replace("g|", "<color=#00ff00>") .Replace("g|", "<color=#00ff00>")
.Replace("y|", "<color=#ffff00>") .Replace("y|", "<color=#ffff00>")
.Replace("s|", "<size=0.9375>")
.Replace("|s", "</size>")
.Replace("d|", "")
+ "</color>"; + "</color>";
} }
else else
@ -567,209 +453,139 @@ namespace HeavenStudio.Games
return text.Replace("r|", "<color=#ff00ff>") return text.Replace("r|", "<color=#ff00ff>")
.Replace("g|", "<color=#00ffff>") .Replace("g|", "<color=#00ffff>")
.Replace("y|", "<color=#ffffff>") .Replace("y|", "<color=#ffffff>")
.Replace("s|", "<size=0.9375>")
.Replace("|s", "</size>")
.Replace("d|", "")
+ "</color>"; + "</color>";
} }
} }
return text; return text;
}
int[] GetTextPositions(string text)
{
string preSplitedText = text.Replace("r|", "")
.Replace("g|", "")
.Replace("y|", "")
.Replace("s|", "")
.Replace("|s", "");
string[] parts = preSplitedText.Split(new string[] { "d|" }, StringSplitOptions.None);
List<int> positions = new List<int>();
int currentPosition = 0;
foreach (var part in parts)
{
positions.Add(currentPosition);
currentPosition += part.Length;
}
return positions.ToArray();
} }
public void ShowText(string text1, string text2, string text3, string text4, string text5) public void ShowText(string text1, string text2, string text3, string text4, string text5)
{ {
var texts = new string[]{text1, text2, text3, text4, text5};
if (text1 is not "" && text1 is not "Type r| for red text, g| for green text and y| for yellow text. These can be used multiple times in a single line.") for (int i = 0; i < texts.Length; i++)
{ {
if (Scroll1 is not null) var text = texts[i];
if (text is not "" and not "Type r| for red text, g| for green text and y| for yellow text. These can be used multiple times in a single line.")
{ {
StopCoroutine(Scroll1); var scroll = Scrolls[i];
Scroll1 = null; var textTMP = Texts[i];
} var textBlueTMP = TextsBlue[i];
Text6.GetComponent<TextMeshPro>().SetMask(0, new Vector4(-10f, -10f, -10f, 10));
originalText1 = text1;
text1 = ChangeColor(text1, false);
Text1.text = text1; if (scroll is not null)
Text6.text = ChangeColor(originalText1, true);
}
if (text2 is not "")
{ {
if (Scroll2 is not null) StopCoroutine(scroll);
{ scroll = null;
StopCoroutine(Scroll2);
Scroll2 = null;
} }
Text7.GetComponent<TextMeshPro>().SetMask(0, new Vector4(-10f, -10f, -10f, 10)); textBlueTMP.GetComponent<TextMeshPro>().SetMask(0, new Vector4(-10f, -10f, -10f, 10));
originalText2 = text2;
text2 = ChangeColor(text2, false);
Text2.text = text2;
Text7.text = ChangeColor(originalText2, true);
originalTexts[i] = text;
text = ConvertText(originalTexts[i], false);
textTMP.text = text;
textBlueTMP.text = ConvertText(originalTexts[i], true);
} }
if (text3 is not "")
{
if (Scroll3 is not null)
{
StopCoroutine(Scroll3);
Scroll3 = null;
} }
originalText3 = text3;
Text8.GetComponent<TextMeshPro>().SetMask(0, new Vector4(-10f, -10f, -10f, 10));
text3 = ChangeColor(text3, false);
Text3.text = text3;
Text8.text = ChangeColor(originalText3, true);
}
if (text4 is not "")
{
if (Scroll4 is not null)
{
StopCoroutine(Scroll4);
Scroll4 = null;
}
Text9.GetComponent<TextMeshPro>().SetMask(0, new Vector4(-10f, -10f, -10f, 10));
originalText4 = text4;
text4 = ChangeColor(text4, false);
Text4.text = text4;
Text9.text = text4;
Text9.text = ChangeColor(originalText4, true);
}
if (text5 is not "")
{
if (Scroll5 is not null)
{
StopCoroutine(Scroll5);
Scroll5 = null;
}
Text10.GetComponent<TextMeshPro>().SetMask(0, new Vector4(-10f, -10f, -10f, 10));
originalText5 = text5;
text5 = ChangeColor(text5, false);
Text5.text = text5;
Text10.text = ChangeColor(originalText5, true);
} }
}
public void DeleteText(bool text1, bool text2, bool text3, bool text4, bool text5) public void DeleteText(bool text1, bool text2, bool text3, bool text4, bool text5)
{ {
if (text1 == true) var texts = new bool[]{text1, text2, text3, text4, text5};
for (int i = 0; i < texts.Length; i++)
{ {
if (Scroll1 is not null) if (texts[i] == true)
{ {
StopCoroutine(Scroll1); var scroll = Scrolls[i];
Scroll1 = null; var textTMP = Texts[i];
var textBlueTMP = TextsBlue[i];
if (scroll is not null)
{
StopCoroutine(scroll);
scroll = null;
} }
Text6.GetComponent<TextMeshPro>().SetMask(0, new Vector4(-10, -10, -10, 10)); textBlueTMP.GetComponent<TextMeshPro>().SetMask(0, new Vector4(-10, -10, -10, 10));
Text1.text = ""; textTMP.text = "";
Text6.text = ""; textBlueTMP.text = "";
} }
if (text2 == true)
{
if (Scroll2 is not null)
{
StopCoroutine(Scroll2);
Scroll2 = null;
} }
Text7.GetComponent<TextMeshPro>().SetMask(0, new Vector4(-10, -10, -10, 10));
Text2.text = "";
Text7.text = "";
}
if (text3 == true)
{
if (Scroll3 is not null)
{
StopCoroutine(Scroll3);
Scroll3 = null;
}
Text8.GetComponent<TextMeshPro>().SetMask(0, new Vector4(-10, -10, -10, 10));
Text3.text = "";
Text8.text = "";
}
if (text4 == true)
{
if (Scroll4 is not null)
{
StopCoroutine(Scroll4);
Scroll4 = null;
}
Text9.GetComponent<TextMeshPro>().SetMask(0, new Vector4(-10, -10, -10, 10));
Text4.text = "";
Text9.text = "";
}
if (text5 == true)
{
if (Scroll5 is not null)
{
StopCoroutine(Scroll5);
Scroll5 = null;
}
Text10.GetComponent<TextMeshPro>().SetMask(0, new Vector4(-10, -10, -10, 10));
Text5.text = "";
Text10.text = "";
} }
IEnumerator SmoothText(double beat, float length, TextMeshPro textTMP, float[] maskEdges)
}
IEnumerator SmoothText(TMP_Text text, float length, double beat)
{ {
Conductor conductor = new Conductor(); var cond = Conductor.instance;
float startTime = Time.time; float startTime = Time.time;
float endTime = startTime + length; float endTime = startTime + length;
float duration = ((length / conductor.GetBpmAtBeat(beat)) * 60); float duration = ((length / cond.GetBpmAtBeat(beat)) * 60);
int len = maskEdges.Length;
while (Time.time < endTime) while (Time.time < endTime)
{ {
float t = ((Time.time - startTime) / duration); float t = ((Time.time - startTime) / duration);
float maskValue = Mathf.Lerp(-10f, -7f, t); int index = Math.Max(0, Math.Min((int)Math.Floor(t * (len-1)), len-2));
t = t * (len-1) - index;
text.GetComponent<TextMeshPro>().SetMask(0, new Vector4(-10, -10, maskValue, 10)); float maskValue = Mathf.Lerp(maskEdges[index], maskEdges[index+1], t);
textTMP.SetMask(0, new Vector4(-10, -10, maskValue, 10));
yield return null; yield return null;
}
} }
public void ScrollText(double beat, float length, bool text1, bool text2, bool text3, bool text4, bool text5)
{
var texts = new bool[]{text1, text2, text3, text4, text5};
for (int i = 0; i < texts.Length; i++)
{
if (texts[i])
{
var textTMP = TextsBlue[i].GetComponent<TextMeshPro>();
int[] positions = GetTextPositions(originalTexts[i]);
var maskEdges = new List<float>();
foreach (var pos in positions)
{
maskEdges.Add(textTMP.textInfo.characterInfo[pos].topLeft.x);
} }
public void ScrollText(bool text1, bool text2, bool text3, bool text4, bool text5, float length, double beat) maskEdges[0] = -textTMP.rectTransform.sizeDelta.x/2;
{ maskEdges.Add(maskEdges[0] + textTMP.preferredWidth);
if (text1)
{ Scrolls[i] = StartCoroutine(SmoothText(beat, length, textTMP, maskEdges.ToArray()));
Scroll1 = StartCoroutine(SmoothText(Text6, length, beat));
} }
if (text2)
{
Scroll2 = StartCoroutine(SmoothText(Text7, length, beat));
} }
if (text3)
{
Scroll3 = StartCoroutine(SmoothText(Text8, length, beat));
}
if (text4)
{
Scroll4 = StartCoroutine(SmoothText(Text9, length, beat));
}
if (text5)
{
Scroll5 = StartCoroutine(SmoothText(Text10, length, beat));
} }
} public void ToggleBop(double beat, float length, bool bopOrNah, bool autoBop)
public void Bop(double beat, float length, bool shouldBop, bool autoBop)
{ {
goBopDonpans = autoBop; goBopJudge = autoBop; goBopDonpans = autoBop; goBopJudge = autoBop;
if (autoBop && shouldBop) { return; } if (autoBop) return;
if (shouldBop) if (bopOrNah)
{ {
for (int i = 0; i < length; i++) for (int i = 0; i < length; i++)
{ {
@ -777,33 +593,23 @@ namespace HeavenStudio.Games
{ {
new BeatAction.Action(beat + i, delegate new BeatAction.Action(beat + i, delegate
{ {
Player.DoScaledAnimationAsync("Bop", 0.5f); foreach (var chara in Donpans) {
CPU1.DoScaledAnimationAsync("Bop", 0.5f); chara.DoScaledAnimationAsync("Bop", 0.5f);
CPU2.DoScaledAnimationAsync("Bop", 0.5f); }
CPU3.DoScaledAnimationAsync("Bop", 0.5f);
Judge.DoScaledAnimationAsync("Bop", 0.5f); Judge.DoScaledAnimationAsync("Bop", 0.5f);
}), }),
new BeatAction.Action(beat + length, delegate new BeatAction.Action(beat + length, delegate
{ {
Player.Play("NeutralBopped"); foreach (var chara in Donpans) {
CPU1.Play("NeutralBopped"); chara.Play("NeutralBopped");
CPU2.Play("NeutralBopped"); }
CPU3.Play("NeutralBopped");
}) })
}); });
} }
} }
else
{
return;
} }
}
public void Bow(double beat, float length) public void Bow(double beat, float length)
{ {
if (goBopDonpans == true) if (goBopDonpans == true)
@ -816,15 +622,19 @@ namespace HeavenStudio.Games
} }
goBopDonpans = false; goBopDonpans = false;
Player.Play("Bow"); foreach (var chara in Donpans) {
CPU1.Play("Bow"); chara.Play("Bow");
CPU2.Play("Bow"); }
CPU3.Play("Bow");
BeatAction.New(instance, new List<BeatAction.Action>() BeatAction.New(instance, new List<BeatAction.Action>()
{ {
new BeatAction.Action(beat + length, delegate { Player.Play("NeutralBopped"); CPU1.Play("NeutralBopped");CPU2.Play("NeutralBopped"); CPU3.Play("NeutralBopped"); if (bopDonpans) {goBopDonpans = true;}}) new BeatAction.Action(beat + length, delegate {
foreach (var chara in Donpans) {
chara.Play("NeutralBopped");
}
})
}); });
} }
// public void Spin(double beat, float length) // public void Spin(double beat, float length)
// { // {
@ -834,22 +644,21 @@ namespace HeavenStudio.Games
{ {
if (goBopDonpans) if (goBopDonpans)
{ {
Player.DoScaledAnimationAsync("Bop", 0.5f); foreach (var chara in Donpans) {
CPU1.DoScaledAnimationAsync("Bop", 0.5f); chara.DoScaledAnimationAsync("Bop", 0.5f);
CPU2.DoScaledAnimationAsync("Bop", 0.5f); }
CPU3.DoScaledAnimationAsync("Bop", 0.5f);
} }
if (goBopJudge) if (goBopJudge)
{ {
Judge.DoScaledAnimationAsync("Bop", 0.5f); Judge.DoScaledAnimationAsync("Bop", 0.5f);
} }
} }
public void DarkBG(double beat, bool toggle, float length) public void DarkBG(double beat, bool toggle, float length)
{ {
DarkerBG = StartCoroutine(DarkBGCoroutine(beat, toggle, length)); DarkerBG = StartCoroutine(DarkBGCoroutine(beat, toggle, length));
} }
IEnumerator DarkBGCoroutine(double beat, bool toggle, float length) IEnumerator DarkBGCoroutine(double beat, bool toggle, float length)
{ {
if (toggle) if (toggle)
@ -860,23 +669,14 @@ namespace HeavenStudio.Games
} }
else else
{ {
float startTime = Time.time; float startTime = Time.time;
Conductor con = new Conductor(); var cond = Conductor.instance;
float realLength = length / con.GetBpmAtBeat(beat) * 60; float realLength = length / cond.GetBpmAtBeat(beat) * 60;
while (Time.time < realLength + startTime) while (Time.time < realLength + startTime)
{ {
darkPlane.color = new Color(1f, 1f, 1f, Mathf.Lerp(0f, 0.4666f, (Time.time - startTime) / realLength)); darkPlane.color = new Color(1f, 1f, 1f, Mathf.Lerp(0f, 0.4666f, (Time.time - startTime) / realLength));
darkBgIsOn = true; darkBgIsOn = true;
yield return null; yield return null;
} }
} }
} }
@ -888,29 +688,16 @@ namespace HeavenStudio.Games
} }
else else
{ {
float startTime = Time.time; float startTime = Time.time;
Conductor con = new Conductor(); var cond = Conductor.instance;
float realLength = length / con.GetBpmAtBeat(beat) * 60; float realLength = length / cond.GetBpmAtBeat(beat) * 60;
while (Time.time < realLength + startTime) while (Time.time < realLength + startTime)
{ {
darkPlane.color = new Color(1f, 1f, 1f, Mathf.Lerp(0.4666f, 0f, (Time.time - startTime) / realLength)); darkPlane.color = new Color(1f, 1f, 1f, Mathf.Lerp(0.4666f, 0f, (Time.time - startTime) / realLength));
darkBgIsOn = true; darkBgIsOn = true;
yield return null; yield return null;
}
}
}
}
} }
} }
} }