mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 01:46:15 +00:00
update example
This commit is contained in:
1 parent
22be3c24f3
commit
612df4bb3c
4 files changed
+15
-3
No files matched your search
@@ -2,7 +2,6 @@
|
||||
using MiraAPI.Example.Roles;
|
||||
using MiraAPI.GameOptions;
|
||||
using MiraAPI.GameOptions.Attributes;
|
||||
using MiraAPI.GameOptions.OptionTypes;
|
||||
|
||||
namespace MiraAPI.Example.Options.Roles;
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
using MiraAPI.Example.Roles;
|
||||
using MiraAPI.GameOptions;
|
||||
using MiraAPI.GameOptions.Attributes;
|
||||
using MiraAPI.GameOptions.OptionTypes;
|
||||
|
||||
namespace MiraAPI.Example.Options.Roles;
|
||||
|
||||
|
||||
@@ -5,8 +5,23 @@ namespace MiraAPI.GameOptions;
|
||||
|
||||
public interface IModdedOptionGroup
|
||||
{
|
||||
/// <summary>
|
||||
/// The name of the group. Visible in options menu.
|
||||
/// </summary>
|
||||
public string GroupName { get; }
|
||||
|
||||
/// <summary>
|
||||
/// A function that returns whether the group should be visible or not.
|
||||
/// </summary>
|
||||
public Func<bool> GroupVisible => () => true;
|
||||
|
||||
/// <summary>
|
||||
/// The group color. This is used to color the group in the options menu.
|
||||
/// </summary>
|
||||
public Color GroupColor => Color.clear;
|
||||
|
||||
/// <summary>
|
||||
/// The role the group is associated with. This is used for the advanced role options menu.
|
||||
/// </summary>
|
||||
public Type AdvancedRole => null;
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
using HarmonyLib;
|
||||
using MiraAPI.Utilities.Assets;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
using UnityEngine.UI;
|
||||
|
||||
Reference in new issue
Block a user