mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-26 22:10:17 +00:00
register Resume and Exit entries
This commit is contained in:
parent
1185732b28
commit
23cbd6163d
1 changed files with 15 additions and 1 deletions
|
@ -56,6 +56,20 @@ namespace SanAndreasUnity.UI {
|
|||
|
||||
void Start () {
|
||||
|
||||
this.menuBar.RegisterMenuEntry(new MenuBarEntry
|
||||
{
|
||||
name = "Resume",
|
||||
sortPriority = int.MinValue,
|
||||
clickAction = () => IsOpened = false,
|
||||
});
|
||||
|
||||
this.menuBar.RegisterMenuEntry(new MenuBarEntry
|
||||
{
|
||||
name = "Exit",
|
||||
sortPriority = int.MaxValue,
|
||||
clickAction = () => GameManager.ExitApplication (),
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
public static PauseMenuWindow[] GetAllWindows() {
|
||||
|
|
Loading…
Reference in a new issue