Main Menu update

This commit is contained in:
maverickdgg 2023-03-20 16:47:34 +08:00
parent dddc1c5542
commit e88f5c9d1c
3 changed files with 40 additions and 46 deletions

View File

@ -76,7 +76,7 @@
NumberOfChildren: 0 NumberOfChildren: 0
Components: Components:
Transform Component: Transform Component:
Translate: {x: 0, y: 150, z: 0.400000006} Translate: {x: 0, y: 0, z: 0.400000006}
Rotate: {x: 0, y: 0, z: 0} Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 400, y: 100, z: 1} Scale: {x: 400, y: 100, z: 1}
IsActive: true IsActive: true
@ -143,28 +143,28 @@
clickScale: 0.899999976 clickScale: 0.899999976
- EID: 7 - EID: 7
Name: Level Select Button Name: Level Select Button
IsActive: true IsActive: false
NumberOfChildren: 0 NumberOfChildren: 0
Components: Components:
Transform Component: Transform Component:
Translate: {x: 0, y: 0, z: 0.400000006} Translate: {x: 0, y: 0, z: 0.400000006}
Rotate: {x: 0, y: 0, z: 0} Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 400, y: 100, z: 1} Scale: {x: 400, y: 100, z: 1}
IsActive: true IsActive: false
Renderable Component: Renderable Component:
Mesh: 141771688 Mesh: 141771688
Material: 129340704 Material: 129340704
IsActive: true IsActive: false
Button Component: Button Component:
Default Texture: 66852025 Default Texture: 66852025
Hovered Texture: 65992947 Hovered Texture: 65992947
Clicked Texture: 57197441 Clicked Texture: 57197441
IsActive: true IsActive: false
UI Component: UI Component:
Canvas ID: 0 Canvas ID: 0
Hovered: false Hovered: false
Clicked: false Clicked: false
IsActive: true IsActive: false
Scripts: Scripts:
- Type: SHADE_Scripting.UI.ButtonFX - Type: SHADE_Scripting.UI.ButtonFX
Enabled: true Enabled: true
@ -338,7 +338,7 @@
NumberOfChildren: 0 NumberOfChildren: 0
Components: ~ Components: ~
Scripts: Scripts:
- Type: SHADE_Scripting.UI.TweenManager - Type: TweenManager
Enabled: true Enabled: true
- EID: 13 - EID: 13
Name: How To Play Canvas Name: How To Play Canvas
@ -479,17 +479,17 @@
Components: Components:
Transform Component: Transform Component:
Translate: {x: -800, y: 450, z: 0} Translate: {x: -800, y: 450, z: 0}
Rotate: {x: 0, y: 0, z: 3.14159274} Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 100, y: 100, z: 1} Scale: {x: 273, y: 100, z: 1}
IsActive: true IsActive: true
Renderable Component: Renderable Component:
Mesh: 141771688 Mesh: 141771688
Material: 129340704 Material: 129340704
IsActive: true IsActive: true
Button Component: Button Component:
Default Texture: 55358401 Default Texture: 59813125
Hovered Texture: 59400474 Hovered Texture: 59813125
Clicked Texture: 52333376 Clicked Texture: 59813125
IsActive: true IsActive: true
UI Component: UI Component:
Canvas ID: 13 Canvas ID: 13
@ -566,17 +566,17 @@
Components: Components:
Transform Component: Transform Component:
Translate: {x: -800, y: 450, z: 0} Translate: {x: -800, y: 450, z: 0}
Rotate: {x: 0, y: 0, z: 3.14159274} Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 100, y: 100, z: 1} Scale: {x: 273, y: 100, z: 1}
IsActive: true IsActive: true
Renderable Component: Renderable Component:
Mesh: 141771688 Mesh: 141771688
Material: 129340704 Material: 129340704
IsActive: true IsActive: true
Button Component: Button Component:
Default Texture: 55358401 Default Texture: 59813125
Hovered Texture: 59400474 Hovered Texture: 59813125
Clicked Texture: 52333376 Clicked Texture: 59813125
IsActive: true IsActive: true
UI Component: UI Component:
Canvas ID: 19 Canvas ID: 19
@ -1095,8 +1095,6 @@
- Type: SHADE_Scripting.UI.SliderText - Type: SHADE_Scripting.UI.SliderText
Enabled: true Enabled: true
sliderObj: 29 sliderObj: 29
minValue: 0
maxValue: 0
- EID: 41 - EID: 41
Name: SFX Volume Slider Text Name: SFX Volume Slider Text
IsActive: true IsActive: true
@ -1122,8 +1120,6 @@
- Type: SHADE_Scripting.UI.SliderText - Type: SHADE_Scripting.UI.SliderText
Enabled: true Enabled: true
sliderObj: 30 sliderObj: 30
minValue: 0
maxValue: 0
- EID: 42 - EID: 42
Name: BGM Volume Slider Text Name: BGM Volume Slider Text
IsActive: true IsActive: true
@ -1149,8 +1145,6 @@
- Type: SHADE_Scripting.UI.SliderText - Type: SHADE_Scripting.UI.SliderText
Enabled: true Enabled: true
sliderObj: 31 sliderObj: 31
minValue: 0
maxValue: 0
- EID: 43 - EID: 43
Name: Camera Slider Text Group Name: Camera Slider Text Group
IsActive: true IsActive: true
@ -1192,8 +1186,6 @@
- Type: SHADE_Scripting.UI.SliderText - Type: SHADE_Scripting.UI.SliderText
Enabled: true Enabled: true
sliderObj: 37 sliderObj: 37
minValue: 0
maxValue: 0
- EID: 45 - EID: 45
Name: Sensitivity Slider Text Name: Sensitivity Slider Text
IsActive: true IsActive: true
@ -1219,8 +1211,6 @@
- Type: SHADE_Scripting.UI.SliderText - Type: SHADE_Scripting.UI.SliderText
Enabled: true Enabled: true
sliderObj: 38 sliderObj: 38
minValue: 0
maxValue: 0
- EID: 46 - EID: 46
Name: Credits Canvas Name: Credits Canvas
IsActive: false IsActive: false
@ -1251,7 +1241,11 @@
Hovered: false Hovered: false
Clicked: false Clicked: false
IsActive: true IsActive: true
Scripts: ~ Scripts:
- Type: SHADE_Scripting.UI.ScrollingCredits
Enabled: true
endY: 4500
duration: 32
- EID: 48 - EID: 48
Name: BackButton Name: BackButton
IsActive: true IsActive: true
@ -1259,17 +1253,17 @@
Components: Components:
Transform Component: Transform Component:
Translate: {x: -800, y: 450, z: 0} Translate: {x: -800, y: 450, z: 0}
Rotate: {x: 0, y: 0, z: 3.14159274} Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 100, y: 100, z: 1} Scale: {x: 273, y: 100, z: 1}
IsActive: true IsActive: true
Renderable Component: Renderable Component:
Mesh: 141771688 Mesh: 141771688
Material: 129340704 Material: 129340704
IsActive: true IsActive: true
Button Component: Button Component:
Default Texture: 55358401 Default Texture: 59813125
Hovered Texture: 59400474 Hovered Texture: 59813125
Clicked Texture: 52333376 Clicked Texture: 59813125
IsActive: true IsActive: true
UI Component: UI Component:
Canvas ID: 46 Canvas ID: 46
@ -1368,17 +1362,17 @@
Components: Components:
Transform Component: Transform Component:
Translate: {x: -800, y: 450, z: 0} Translate: {x: -800, y: 450, z: 0}
Rotate: {x: 0, y: 0, z: 3.14159274} Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 100, y: 100, z: 1} Scale: {x: 273, y: 100, z: 1}
IsActive: true IsActive: true
Renderable Component: Renderable Component:
Mesh: 141771688 Mesh: 141771688
Material: 129340704 Material: 129340704
IsActive: true IsActive: true
Button Component: Button Component:
Default Texture: 55358401 Default Texture: 59813125
Hovered Texture: 59400474 Hovered Texture: 59813125
Clicked Texture: 52333376 Clicked Texture: 59813125
IsActive: true IsActive: true
UI Component: UI Component:
Canvas ID: 50 Canvas ID: 50

View File

@ -25,32 +25,32 @@ public static class EasingHelper
{ {
return EaseInSine(value); return EaseInSine(value);
} }
break;
case EASING_METHOD.EASE_OUT_SINE: case EASING_METHOD.EASE_OUT_SINE:
{ {
return EaseOutSine(value); return EaseOutSine(value);
} }
break;
case EASING_METHOD.EASE_OUT_BOUNCE: case EASING_METHOD.EASE_OUT_BOUNCE:
{ {
return EaseOutBounce(value); return EaseOutBounce(value);
} }
break;
case EASING_METHOD.EASE_IN_BOUNCE: case EASING_METHOD.EASE_IN_BOUNCE:
{ {
return EaseInBounce(value); return EaseInBounce(value);
} }
break;
case EASING_METHOD.EASE_INOUT_BOUNCE: case EASING_METHOD.EASE_INOUT_BOUNCE:
{ {
return EaseInOutBounce(value); return EaseInOutBounce(value);
} }
break;
case EASING_METHOD.LINEAR: case EASING_METHOD.LINEAR:
{ {
return value; return value;
} }
break;
default: default:
return 0.0f; return 0.0f;
} }

View File

@ -30,8 +30,8 @@ namespace SHADE_Scripting.UI
Transform transform = GetComponent<Transform>(); Transform transform = GetComponent<Transform>();
if(transform != null) if(transform != null)
{ {
thread = TweenManager.CreateTweenThread(duration, transform.LocalPosition.y, endY, EASING_METHOD.EASE_IN_SINE); thread = TweenManager.CreateTweenThread(duration, transform.LocalPosition.y, endY, EASING_METHOD.LINEAR);
//thread.SetResetOnInactive(GameObject); thread.SetResetOnInactive(GameObject);
} }
} }