Repository navigation
Expand file tree
/
Copy pathCredits.cs
More file actions
88 lines (72 loc) · 2.56 KB
/
Copy pathCredits.cs
File metadata and controls
88 lines (72 loc) · 2.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
using StereoKit.Framework;
using StereoKit;
using System;
using System.Collections.Generic;
using System.Text;
namespace StereoKitApp
{
internal class Credits : IStepper
{
private Pose _pose = new Pose();
private bool _enabled;
private TextStyle _style;
public bool Enabled
{
get => _enabled;
set
{
if (value)
{
Vec3 windowPosition = Input.Head.position + Input.Head.Forward * 0.3f;
Quat lookAt = Quat.LookAt(windowPosition, Input.Head.position);
_pose = new Pose(windowPosition, lookAt);
}
_enabled = value;
}
}
public bool Initialize()
{
_style = Text.MakeStyle(Default.Font, 0.012f, Color.White);
return true;
}
public void Shutdown()
{
}
public void Step()
{
if (Enabled)
{
UI.WindowBegin("Credits", ref _pose, moveType: UIMove.FaceUser);
if (UI.Button("Close"))
Enabled = false;
UI.HSeparator();
UI.PushTextStyle(_style);
UI.Label("Approximate Spider Models");
UI.PopTextStyle();
UI.Label("Created by Brianna Baker");
UI.HSeparator();
UI.PushTextStyle(_style);
UI.Label("Bee Buzz Sound");
UI.PopTextStyle();
UI.Label("By https://quicksounds.com/sound/2760/bumblebee-1");
UI.HSeparator();
UI.PushTextStyle(_style);
UI.Label("Realistic Bee Model");
UI.PopTextStyle();
UI.Label("Exported from Microsoft 3D Viewer");
UI.HSeparator();
UI.PushTextStyle(_style);
UI.Label("Realistic Spider Model");
UI.PopTextStyle();
UI.Label("This work is based on \"Animated Low - Poly Spider Game - Ready\" " +
Environment.NewLine +
"(https://sketchfab.com/3d-models/animated-low-poly-spider-game-ready" +
Environment.NewLine +
"-2d79c585b5404a23b7bcc0be06068283) by 3DHaupt (https://sketchfab.com/dennish2010)" +
Environment.NewLine +
"licensed under CC-BY-NC-ND-4.0 (http://creativecommons.org/licenses/by-nc-nd/4.0/)");
UI.WindowEnd();
}
}
}
}