Gameplay and Main Menu UI Update #448

Merged
maverickdgg merged 7 commits from SP3-20-UI-System into main 2023-03-31 15:07:19 +08:00
6 changed files with 299 additions and 68 deletions
Showing only changes of commit af9e523da9 - Show all commits

View File

@ -122,8 +122,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.876652002, y: 0.485357881, z: 0.166061834, w: 1} Color Tint: {x: 0.876652002, y: 0.485357881, z: 0.166061834, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: 0, z: 0} Acceleration: {x: 0, y: 0, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -193,8 +197,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.876652002, y: 0.485357881, z: 0.166061834, w: 1} Color Tint: {x: 0.876652002, y: 0.485357881, z: 0.166061834, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: 0, z: 0} Acceleration: {x: 0, y: 0, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -264,8 +272,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.977993011, y: 1, z: 0.286343634, w: 1} Color Tint: {x: 0.977993011, y: 1, z: 0.286343634, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: -0.0199999996, z: 0} Acceleration: {x: 0, y: -0.0199999996, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -335,8 +347,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.977993011, y: 1, z: 0.286343634, w: 1} Color Tint: {x: 0.977993011, y: 1, z: 0.286343634, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: -0.0199999996, z: 0} Acceleration: {x: 0, y: -0.0199999996, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -406,8 +422,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.279913902, y: 0.845814943, z: 0.0856993049, w: 1} Color Tint: {x: 0.279913902, y: 0.845814943, z: 0.0856993049, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: -0.0199999996, z: 0} Acceleration: {x: 0, y: -0.0199999996, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -477,8 +497,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.279913902, y: 0.845814943, z: 0.0856993049, w: 1} Color Tint: {x: 0.279913902, y: 0.845814943, z: 0.0856993049, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: -0.0199999996, z: 0} Acceleration: {x: 0, y: -0.0199999996, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -548,8 +572,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.279913902, y: 0.845814943, z: 0.0856993049, w: 1} Color Tint: {x: 0.279913902, y: 0.845814943, z: 0.0856993049, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: -0.0199999996, z: 0} Acceleration: {x: 0, y: -0.0199999996, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -619,8 +647,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 1, y: 1, z: 1, w: 1} Color Tint: {x: 1, y: 1, z: 1, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: -0.00999999978, z: 0} Acceleration: {x: 0, y: -0.00999999978, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -863,8 +895,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.876652002, y: 0.485357881, z: 0.166061834, w: 1} Color Tint: {x: 0.876652002, y: 0.485357881, z: 0.166061834, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: 0, z: 0} Acceleration: {x: 0, y: 0, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -934,8 +970,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.279913902, y: 0.845814943, z: 0.0856993049, w: 1} Color Tint: {x: 0.279913902, y: 0.845814943, z: 0.0856993049, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: -0.0199999996, z: 0} Acceleration: {x: 0, y: -0.0199999996, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -1005,8 +1045,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.279913902, y: 0.845814943, z: 0.0856993049, w: 1} Color Tint: {x: 0.279913902, y: 0.845814943, z: 0.0856993049, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: -0.0199999996, z: 0} Acceleration: {x: 0, y: -0.0199999996, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -1076,8 +1120,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.279913902, y: 0.845814943, z: 0.0856993049, w: 1} Color Tint: {x: 0.279913902, y: 0.845814943, z: 0.0856993049, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: -0.0199999996, z: 0} Acceleration: {x: 0, y: -0.0199999996, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -1147,8 +1195,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.977993011, y: 1, z: 0.286343634, w: 1} Color Tint: {x: 0.977993011, y: 1, z: 0.286343634, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: -0.0199999996, z: 0} Acceleration: {x: 0, y: -0.0199999996, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -1218,8 +1270,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.876652002, y: 0.485357881, z: 0.166061834, w: 1} Color Tint: {x: 0.876652002, y: 0.485357881, z: 0.166061834, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: 0, z: 0} Acceleration: {x: 0, y: 0, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -1289,8 +1345,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.876652002, y: 0.485357881, z: 0.166061834, w: 1} Color Tint: {x: 0.876652002, y: 0.485357881, z: 0.166061834, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: 0, z: 0} Acceleration: {x: 0, y: 0, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -1360,8 +1420,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.876652002, y: 0.485357881, z: 0.166061834, w: 1} Color Tint: {x: 0.876652002, y: 0.485357881, z: 0.166061834, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: 0, z: 0} Acceleration: {x: 0, y: 0, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -1431,8 +1495,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.279913902, y: 0.845814943, z: 0.0856993049, w: 1} Color Tint: {x: 0.279913902, y: 0.845814943, z: 0.0856993049, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: -0.0199999996, z: 0} Acceleration: {x: 0, y: -0.0199999996, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -1502,8 +1570,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.279913902, y: 0.845814943, z: 0.0856993049, w: 1} Color Tint: {x: 0.279913902, y: 0.845814943, z: 0.0856993049, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: -0.0199999996, z: 0} Acceleration: {x: 0, y: -0.0199999996, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -1573,8 +1645,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.279913902, y: 0.845814943, z: 0.0856993049, w: 1} Color Tint: {x: 0.279913902, y: 0.845814943, z: 0.0856993049, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: -0.0199999996, z: 0} Acceleration: {x: 0, y: -0.0199999996, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -1644,8 +1720,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.279913902, y: 0.845814943, z: 0.0856993049, w: 1} Color Tint: {x: 0.279913902, y: 0.845814943, z: 0.0856993049, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: -0.0199999996, z: 0} Acceleration: {x: 0, y: -0.0199999996, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -1715,8 +1795,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.279913902, y: 0.845814943, z: 0.0856993049, w: 1} Color Tint: {x: 0.279913902, y: 0.845814943, z: 0.0856993049, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: -0.0199999996, z: 0} Acceleration: {x: 0, y: -0.0199999996, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -1786,8 +1870,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.279913902, y: 0.845814943, z: 0.0856993049, w: 1} Color Tint: {x: 0.279913902, y: 0.845814943, z: 0.0856993049, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: -0.0199999996, z: 0} Acceleration: {x: 0, y: -0.0199999996, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -1857,8 +1945,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.876652002, y: 0.485357881, z: 0.166061834, w: 1} Color Tint: {x: 0.876652002, y: 0.485357881, z: 0.166061834, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: 0, z: 0} Acceleration: {x: 0, y: 0, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -1928,8 +2020,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.977993011, y: 1, z: 0.286343634, w: 1} Color Tint: {x: 0.977993011, y: 1, z: 0.286343634, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: -0.0199999996, z: 0} Acceleration: {x: 0, y: -0.0199999996, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -1999,8 +2095,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.279913902, y: 0.845814943, z: 0.0856993049, w: 1} Color Tint: {x: 0.279913902, y: 0.845814943, z: 0.0856993049, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: -0.0199999996, z: 0} Acceleration: {x: 0, y: -0.0199999996, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -2070,8 +2170,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.279913902, y: 0.845814943, z: 0.0856993049, w: 1} Color Tint: {x: 0.279913902, y: 0.845814943, z: 0.0856993049, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: -0.0199999996, z: 0} Acceleration: {x: 0, y: -0.0199999996, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -2141,8 +2245,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.279913902, y: 0.845814943, z: 0.0856993049, w: 1} Color Tint: {x: 0.279913902, y: 0.845814943, z: 0.0856993049, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: -0.0199999996, z: 0} Acceleration: {x: 0, y: -0.0199999996, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -2212,8 +2320,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.290321946, y: 0.823788524, z: 0.323222876, w: 1} Color Tint: {x: 0.290321946, y: 0.823788524, z: 0.323222876, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: 0, z: 0} Acceleration: {x: 0, y: 0, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -2288,8 +2400,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.290321946, y: 0.823788524, z: 0.323222876, w: 1} Color Tint: {x: 0.290321946, y: 0.823788524, z: 0.323222876, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: 0, z: 0} Acceleration: {x: 0, y: 0, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -2359,8 +2475,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.290321946, y: 0.823788524, z: 0.323222876, w: 1} Color Tint: {x: 0.290321946, y: 0.823788524, z: 0.323222876, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: 0, z: 0} Acceleration: {x: 0, y: 0, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -2430,8 +2550,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.290321946, y: 0.823788524, z: 0.323222876, w: 1} Color Tint: {x: 0.290321946, y: 0.823788524, z: 0.323222876, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: 0, z: 0} Acceleration: {x: 0, y: 0, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -2501,8 +2625,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.290321946, y: 0.823788524, z: 0.323222876, w: 1} Color Tint: {x: 0.290321946, y: 0.823788524, z: 0.323222876, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: 0, z: 0} Acceleration: {x: 0, y: 0, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -2572,8 +2700,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.290321946, y: 0.823788524, z: 0.323222876, w: 1} Color Tint: {x: 0.290321946, y: 0.823788524, z: 0.323222876, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: 0, z: 0} Acceleration: {x: 0, y: 0, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -2643,8 +2775,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.290321946, y: 0.823788524, z: 0.323222876, w: 1} Color Tint: {x: 0.290321946, y: 0.823788524, z: 0.323222876, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: 0, z: 0} Acceleration: {x: 0, y: 0, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -2719,8 +2855,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.290321946, y: 0.823788524, z: 0.323222876, w: 1} Color Tint: {x: 0.290321946, y: 0.823788524, z: 0.323222876, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: 0, z: 0} Acceleration: {x: 0, y: 0, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -2790,8 +2930,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.290321946, y: 0.823788524, z: 0.323222876, w: 1} Color Tint: {x: 0.290321946, y: 0.823788524, z: 0.323222876, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: 0, z: 0} Acceleration: {x: 0, y: 0, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -2861,8 +3005,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.290321946, y: 0.823788524, z: 0.323222876, w: 1} Color Tint: {x: 0.290321946, y: 0.823788524, z: 0.323222876, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: 0, z: 0} Acceleration: {x: 0, y: 0, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -2932,8 +3080,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.290321946, y: 0.823788524, z: 0.323222876, w: 1} Color Tint: {x: 0.290321946, y: 0.823788524, z: 0.323222876, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: 0, z: 0} Acceleration: {x: 0, y: 0, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -3003,8 +3155,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.290321946, y: 0.823788524, z: 0.323222876, w: 1} Color Tint: {x: 0.290321946, y: 0.823788524, z: 0.323222876, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: 0, z: 0} Acceleration: {x: 0, y: 0, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -3074,8 +3230,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 1, y: 1, z: 1, w: 1} Color Tint: {x: 1, y: 1, z: 1, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: -0.00999999978, z: 0} Acceleration: {x: 0, y: -0.00999999978, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -3318,8 +3478,12 @@
Rotation Speed: 0.100000001 Rotation Speed: 0.100000001
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 1, y: 1, z: 1, w: 1} Color Tint: {x: 1, y: 1, z: 1, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: -0.00999999978, z: 0} Acceleration: {x: 0, y: -0.00999999978, z: 0}
IsActive: true IsActive: true
Scripts: Scripts:
@ -3601,8 +3765,12 @@
Rotation Speed: 0.0500000007 Rotation Speed: 0.0500000007
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 37407233 Custom Update Shader Asset ID: 37407233
Color Tint: {x: 0, y: 0, z: 0, w: 1} Color Tint: {x: 0, y: 0, z: 0, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: -0.0299999993, z: 0} Acceleration: {x: 0, y: -0.0299999993, z: 0}
IsActive: true IsActive: true
Scripts: ~ Scripts: ~
@ -3695,8 +3863,12 @@
Rotation Speed: 0.0500000007 Rotation Speed: 0.0500000007
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 37407233 Custom Update Shader Asset ID: 37407233
Color Tint: {x: 0, y: 0, z: 0, w: 1} Color Tint: {x: 0, y: 0, z: 0, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: -0.0299999993, z: 0} Acceleration: {x: 0, y: -0.0299999993, z: 0}
IsActive: true IsActive: true
Scripts: ~ Scripts: ~
@ -3980,8 +4152,12 @@
Rotation Speed: 0.805999994 Rotation Speed: 0.805999994
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 56224060 Texture Asset ID: 56224060
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 42141152 Custom Update Shader Asset ID: 42141152
Color Tint: {x: 1, y: 1, z: 1, w: 1} Color Tint: {x: 1, y: 1, z: 1, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: 0.0500000007, z: 0} Acceleration: {x: 0, y: 0.0500000007, z: 0}
IsActive: true IsActive: true
Scripts: ~ Scripts: ~
@ -4010,8 +4186,12 @@
Rotation Speed: 0.805999994 Rotation Speed: 0.805999994
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 56224060 Texture Asset ID: 56224060
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 42141152 Custom Update Shader Asset ID: 42141152
Color Tint: {x: 1, y: 1, z: 1, w: 1} Color Tint: {x: 1, y: 1, z: 1, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: 0.0500000007, z: 0} Acceleration: {x: 0, y: 0.0500000007, z: 0}
IsActive: true IsActive: true
Scripts: ~ Scripts: ~
@ -17034,14 +17214,24 @@
Hovered: false Hovered: false
Clicked: false Clicked: false
IsActive: true IsActive: true
Scripts: ~ Scripts:
- Type: SHADE_Scripting.UI.GameTimer
Enabled: true
criticalTime: 30
timer: 0
- Type: SHADE_Scripting.UI.ScaleBounce
Enabled: true
minScale: 1
maxScale: 1.20000005
duration: 1
isActive: false
- EID: 520 - EID: 520
Name: Timer BG Name: Timer BG
IsActive: true IsActive: true
NumberOfChildren: 0 NumberOfChildren: 0
Components: Components:
Transform Component: Transform Component:
Translate: {x: 0.5, y: 0.300000012, z: 0.98999995} Translate: {x: 0, y: 0.300000012, z: 0.98999995}
Rotate: {x: 0, y: 0, z: 0} Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 5, y: 2, z: 1} Scale: {x: 5, y: 2, z: 1}
IsActive: true IsActive: true
@ -17086,7 +17276,7 @@
NumberOfChildren: 1 NumberOfChildren: 1
Components: Components:
Transform Component: Transform Component:
Translate: {x: -800, y: 250, z: 0.100000001} Translate: {x: -800, y: 200, z: 0.100000001}
Rotate: {x: 0, y: 0, z: 0} Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 50, y: 50, z: 60} Scale: {x: 50, y: 50, z: 60}
IsActive: true IsActive: true
@ -17104,9 +17294,8 @@
Scripts: Scripts:
- Type: SHADE_Scripting.UI.MultiplierTextFx - Type: SHADE_Scripting.UI.MultiplierTextFx
Enabled: true Enabled: true
maxSize: 1 maxSize: 1.5
minSize: 0.300000012 minSize: 1
minAlpha: 0.300000012
- EID: 131593 - EID: 131593
Name: Multiplier BG Name: Multiplier BG
IsActive: true IsActive: true
@ -17180,8 +17369,12 @@
Rotation Speed: 0 Rotation Speed: 0
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.0187467411, y: 0.627120614, z: 0.709251106, w: 1} Color Tint: {x: 0.0187467411, y: 0.627120614, z: 0.709251106, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: -0.899999976, z: 0} Acceleration: {x: 0, y: -0.899999976, z: 0}
IsActive: true IsActive: true
Scripts: ~ Scripts: ~
@ -17210,8 +17403,12 @@
Rotation Speed: 0 Rotation Speed: 0
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.0187467411, y: 0.627120614, z: 0.709251106, w: 1} Color Tint: {x: 0.0187467411, y: 0.627120614, z: 0.709251106, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: 0.100000001, z: 0} Acceleration: {x: 0, y: 0.100000001, z: 0}
IsActive: true IsActive: true
Scripts: ~ Scripts: ~
@ -17240,8 +17437,12 @@
Rotation Speed: 0 Rotation Speed: 0
Rotation Decay: 0 Rotation Decay: 0
Texture Asset ID: 0 Texture Asset ID: 0
Custom Vertex Shader Asset ID: 0
Custom Fragment Shader Asset ID: 0
Custom Update Shader Asset ID: 0 Custom Update Shader Asset ID: 0
Color Tint: {x: 0.0187467411, y: 0.627120614, z: 0.709251106, w: 1} Color Tint: {x: 0.0187467411, y: 0.627120614, z: 0.709251106, w: 1}
Color Tint Range: {x: 0, y: 0, z: 0, w: 0}
Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: -0.100000001, z: 0} Acceleration: {x: 0, y: -0.100000001, z: 0}
IsActive: true IsActive: true
Scripts: ~ Scripts: ~

View File

@ -136,7 +136,7 @@ public class GameManager : Script
if(scoreText) if(scoreText)
scoreText.GetComponent<TextRenderable>().Text = $"{Score}"; scoreText.GetComponent<TextRenderable>().Text = $"{Score}";
if(timeText) if(timeText)
timeText.GetComponent<TextRenderable>().Text = $"{timer.ToString("0.00")}"; timeText.GetComponent<TextRenderable>().Text = $"{timer.ToString("0")}";
if (itemScored) if (itemScored)
{ {

View File

@ -0,0 +1,57 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SHADE;
namespace SHADE_Scripting.UI
{
public class GameTimer: Script
{
private ScaleBounce scaleBounce;
private TextRenderable text;
public float criticalTime = 30;
public float timer;
protected override void awake()
{
text = GetComponent<TextRenderable>();
if(!text)
{
Debug.Log("GameTimer: No text renderable found");
}
scaleBounce = GetScript<ScaleBounce>();
if(!scaleBounce)
{
Debug.Log("GameTimer: No Scalebounce found in children");
}
else
{
scaleBounce.isActive = false;
}
}
protected override void update()
{
timer = GameManager.Instance.timer;
if (timer <= criticalTime)
{
scaleBounce.isActive = true;
text.TextColor = new Color(1.0f, 0.0f, 0.0f, 1.0f);
}
}
}
}

View File

@ -0,0 +1,3 @@
Name: SC_GameTimer
ID: 158823052
Type: 9

View File

@ -12,98 +12,66 @@ namespace SHADE_Scripting.UI
[NonSerialized] [NonSerialized]
private TweenThread sizeThread; private TweenThread sizeThread;
private TweenThread sizeInvertThread; private TweenThread sizeInvertThread;
private TweenThread alphaThread;
public float maxSize = 1.0f; public float maxSize = 1.0f;
public float minSize = 0.3f; public float minSize = 0.3f;
public float minAlpha = 0.3f;
private bool showMultiplier = false;
const float sizeUpDuration = 0.1f; const float sizeUpDuration = 0.1f;
[NonSerialized] [NonSerialized]
private Vector3 defaultScale; private Vector3 defaultScale;
private bool tweenUp = false;
protected override void start() protected override void start()
{ {
sizeThread = TweenManager.CreateTweenThread(0.0f, maxSize, minSize, EASING_METHOD.EASE_IN_SINE); sizeThread = TweenManager.CreateTweenThread(0.01f, maxSize, minSize, EASING_METHOD.EASE_IN_SINE);
sizeInvertThread = TweenManager.CreateTweenThread(sizeUpDuration, minSize, maxSize, EASING_METHOD.EASE_IN_SINE); sizeInvertThread = TweenManager.CreateTweenThread(sizeUpDuration, minSize, maxSize, EASING_METHOD.EASE_IN_SINE);
alphaThread = TweenManager.CreateTweenThread(0.0f, 1.0f, minAlpha, EASING_METHOD.EASE_OUT_SINE);
Transform transform = GetComponent<Transform>(); Transform transform = GetComponent<Transform>();
if (transform != null) if (transform != null)
{ {
defaultScale = transform.LocalScale; defaultScale = transform.LocalScale;
transform.LocalScale = Vector3.Zero; transform.LocalScale = Vector3.Zero;
} }
showMultiplier = false;
} }
protected override void update() protected override void update()
{
Transform transform = GetComponent<Transform>();
if (transform != null)
{
if (tweenUp == false)
{ {
Transform transform = GetComponent<Transform>(); transform.LocalScale = defaultScale * sizeThread.GetValue();
if (transform != null && showMultiplier == true)
{
if(!sizeInvertThread.IsCompleted())
{
transform.LocalScale = defaultScale * sizeInvertThread.GetValue();
Renderable rend = GetComponentInChildren<Renderable>();
if(rend)
{
rend.Material.SetProperty<float>("data.alpha", 1.0f);
}
TextRenderable text = GetComponent<TextRenderable>();
if (text)
{
Color clr = text.TextColor;
text.TextColor = new Color(clr.r, clr.g, clr.b, 1.0f);
}
return;
}
if(sizeThread.IsCompleted())
{
transform.LocalScale = Vector3.Zero;
showMultiplier = false;
}
else
{
transform.LocalScale = defaultScale * sizeThread.GetValue();
Renderable rend = GetComponentInChildren<Renderable>();
if (rend)
{
rend.Material.SetProperty<float>("data.alpha", alphaThread.GetValue());
}
TextRenderable text = GetComponent<TextRenderable>();
if(text)
{
Color clr = text.TextColor;
text.TextColor = new Color(clr.r,clr.g,clr.b,alphaThread.GetValue() * 1.3f);
}
}
}
} }
else
{
if (sizeInvertThread.IsCompleted())
{
tweenUp = false;
sizeThread.Reset();
}
transform.LocalScale = defaultScale * sizeInvertThread.GetValue();
}
}
}
public void ShowMultiplier(int multiplier, float duration) public void ShowMultiplier(int multiplier, float duration)
{ {
GetComponent<TextRenderable>().Text = $"X {multiplier}"; GetComponent<TextRenderable>().Text = $"X {multiplier}";
sizeThread.duration = duration + sizeUpDuration; sizeThread.duration = duration + sizeUpDuration;
alphaThread.duration = duration + sizeUpDuration;
sizeInvertThread.Reset(); sizeInvertThread.Reset();
sizeThread.Reset(); sizeThread.Reset();
alphaThread.Reset(); tweenUp = true;
showMultiplier = true;
} }

View File

@ -19,6 +19,8 @@ namespace SHADE_Scripting.UI
private Vector3 defaultScale; private Vector3 defaultScale;
public bool isActive = true;
protected override void start() protected override void start()
{ {
thread = TweenManager.CreateTweenThread(duration, minScale, maxScale, EASING_METHOD.EASE_IN_SINE); thread = TweenManager.CreateTweenThread(duration, minScale, maxScale, EASING_METHOD.EASE_IN_SINE);
@ -32,7 +34,7 @@ namespace SHADE_Scripting.UI
protected override void update() protected override void update()
{ {
Transform trans = GetComponent<Transform>(); Transform trans = GetComponent<Transform>();
if(trans != null) if(trans != null && isActive)
{ {
trans.LocalScale = defaultScale * thread.GetValue(); trans.LocalScale = defaultScale * thread.GetValue();
} }