This commit is contained in:
fu-majime 2024-04-14 23:04:51 +09:00
parent a2039a0191
commit d8b38ee8c8
2 changed files with 27 additions and 27 deletions

View file

@ -25,8 +25,8 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 17465379349466863}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 5, y: 0.33333334, z: 1}
m_LocalPosition: {x: 0, y: 1, z: 0}
m_LocalScale: {x: 5, y: 0.1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 5400704965061131858}
@ -74,7 +74,7 @@ SpriteRenderer:
m_SortingLayer: 0
m_SortingOrder: -998
m_Sprite: {fileID: 21300000, guid: 830346b91e798d04db99c9a040d37d9f, type: 3}
m_Color: {r: 0.20392157, g: 0.38431373, b: 0.0627451, a: 1}
m_Color: {r: 0.204, g: 0.385, b: 0.064, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0
@ -1425,7 +1425,7 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2752892005562265666}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: -45, z: 0}
m_LocalPosition: {x: 0, y: -47.5, z: 0}
m_LocalScale: {x: 200, y: 100, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
@ -1474,7 +1474,7 @@ SpriteRenderer:
m_SortingLayer: 0
m_SortingOrder: -999
m_Sprite: {fileID: 7482667652216324306, guid: 311925a002f4447b3a28927169b83ea6, type: 3}
m_Color: {r: 0.07058824, g: 0.13333334, b: 0.019607844, a: 1}
m_Color: {r: 0.07, g: 0.133, b: 0.02, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0
@ -3222,7 +3222,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
m_IsActive: 1
--- !u!4 &5400704965061131858
Transform:
m_ObjectHideFlags: 0
@ -3885,7 +3885,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!4 &7525934475474049935
Transform:
m_ObjectHideFlags: 0

View file

@ -44,23 +44,23 @@ namespace HeavenStudio.Games.Loaders
new Param("countIn", false, "Count-In"),
}
},
// new GameAction("background appearance", "Background Appearance")
// {
// function = delegate {
// var e = eventCaller.currentEntity;
// Chameleon.instance.BackgroundColorSet(e.beat, e.length, e["colorBG1Start"], e["colorBG1End"], e["colorBG2Start"], e["colorBG2End"], e["ease"]);
// },
// defaultLength = 0.5f,
// resizable = true,
// parameters = new List<Param>()
// {
// new Param("colorBG1Start", new Color(1f, 0.937f, 0.224f), "Start BG Color", "Set top-most color of the background gradient at the start of the event."),
// new Param("colorBG1End", new Color(1f, 0.937f, 0.224f), "End BG Color", "Set top-most color of the background gradient at the end of the event."),
// new Param("colorBG2Start", new Color(1f, 0.937f, 0.224f), "Start BG Color", "Set bottom-most color of the background gradient at the start of the event."),
// new Param("colorBG2End", new Color(1f, 0.937f, 0.224f), "End BG Color", "Set bottom-most color of the background gradient at the end of the event."),
// new Param("ease", Util.EasingFunction.Ease.Instant, "Ease", "Set the easing of the action."),
// }
// },
new GameAction("background appearance", "Background Appearance")
{
function = delegate {
var e = eventCaller.currentEntity;
Chameleon.instance.BackgroundColorSet(e.beat, e.length, e["colorBG1Start"], e["colorBG1End"], e["colorBG2Start"], e["colorBG2End"], e["ease"]);
},
defaultLength = 0.5f,
resizable = true,
parameters = new List<Param>()
{
new Param("colorBG1Start", new Color(0.204f, 0.385f, 0.064f), "Start BG Color", "Set top-most color of the background gradient at the start of the event."),
new Param("colorBG1End", new Color(0.204f, 0.385f, 0.064f), "End BG Color", "Set top-most color of the background gradient at the end of the event."),
new Param("colorBG2Start", new Color(0.07f, 0.133f, 0.02f), "Start BG Color", "Set bottom-most color of the background gradient at the start of the event."),
new Param("colorBG2End", new Color(0.07f, 0.133f, 0.02f), "End BG Color", "Set bottom-most color of the background gradient at the end of the event."),
new Param("ease", Util.EasingFunction.Ease.Instant, "Ease", "Set the easing of the action."),
}
},
new GameAction("modifiers", "Modifiers")
{
function = delegate {
@ -154,8 +154,8 @@ namespace HeavenStudio.Games
Crown.SetActive(enableCrown);
colorEases = new ColorEase[] {
new(Color.white),
new(Color.white),
new(new Color(0.204f, 0.385f, 0.064f)),
new(new Color(0.07f, 0.133f, 0.02f)),
};
}
@ -226,7 +226,7 @@ namespace HeavenStudio.Games
}
}
// UpdateBackgroundColor();
UpdateBackgroundColor();
}
}