mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-22 20:13:02 +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
|
@ -55,7 +55,21 @@ 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