-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPhone.cs
More file actions
27 lines (24 loc) · 994 Bytes
/
Phone.cs
File metadata and controls
27 lines (24 loc) · 994 Bytes
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
using S1API.PhoneApp;
using S1API.UI;
using UnityEngine;
namespace ExampleMod.QuestTest
{
/// <summary>
/// Defines the MyAwesomeApp, a specialized application integrated into an in-game phone system.
/// </summary>
/// <remarks>
/// This class leverages the PhoneApp framework to specify application-specific properties like name, title,
/// icon label, and icon file name. It also overrides the method for defining the user interface layout upon creation.
/// </remarks>
public class MyAwesomeApp : S1API.PhoneApp.PhoneApp
{
protected override string AppName => "test";
protected override string AppTitle => "My test App";
protected override string IconLabel => "test";
protected override string IconFileName => "my_icon.png";
protected override void OnCreatedUI(UnityEngine.GameObject container)
{
var panel = UIFactory.Panel("MainPanel", container.transform, Color.black);
}
}
}