mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 01:46:15 +00:00
Added implicit operator to return Minigame component from Phone Menu
This commit is contained in:
1 parent
6dd36a80ab
commit
f2a4cf2b37
1 file changed
+9
@@ -328,6 +328,15 @@ public abstract class CustomPhoneMenu : ICustomMenu
|
|||||||
button.UnselectedColor = uColor;
|
button.UnselectedColor = uColor;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Implicitly converts to the <see cref="Minigame"/> the <see cref="CustomPhoneMenu"/> wraps.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="menu">The menu instance.</param>
|
||||||
|
public static implicit operator Minigame(CustomPhoneMenu menu)
|
||||||
|
{
|
||||||
|
return menu.Component;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc cref="CustomPhoneMenu"/>
|
/// <inheritdoc cref="CustomPhoneMenu"/>
|
||||||
|
|||||||
Reference in new issue
Block a user