2021-12-05 10:23:36 +00:00
|
|
|
|
using System;
|
|
|
|
|
using UnityEngine;
|
2021-06-04 10:31:09 +00:00
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
|
2022-03-03 03:46:33 +00:00
|
|
|
|
namespace QSB.Menus;
|
|
|
|
|
|
|
|
|
|
public interface IMenuAPI
|
2021-06-04 10:31:09 +00:00
|
|
|
|
{
|
2022-03-03 03:46:33 +00:00
|
|
|
|
// Title screen
|
|
|
|
|
GameObject TitleScreen_MakeMenuOpenButton(string name, int index, Menu menuToOpen);
|
|
|
|
|
GameObject TitleScreen_MakeSceneLoadButton(string name, int index, SubmitActionLoadScene.LoadableScenes sceneToLoad, PopupMenu confirmPopup = null);
|
|
|
|
|
Button TitleScreen_MakeSimpleButton(string name, int index);
|
|
|
|
|
// Pause menu
|
|
|
|
|
GameObject PauseMenu_MakeMenuOpenButton(string name, Menu menuToOpen, Menu customMenu = null);
|
|
|
|
|
GameObject PauseMenu_MakeSceneLoadButton(string name, SubmitActionLoadScene.LoadableScenes sceneToLoad, PopupMenu confirmPopup = null, Menu customMenu = null);
|
|
|
|
|
Button PauseMenu_MakeSimpleButton(string name, Menu customMenu = null);
|
|
|
|
|
Menu PauseMenu_MakePauseListMenu(string title);
|
|
|
|
|
// Misc
|
|
|
|
|
PopupMenu MakeTwoChoicePopup(string message, string confirmText, string cancelText);
|
|
|
|
|
PopupInputMenu MakeInputFieldPopup(string message, string placeholderMessage, string confirmText, string cancelText);
|
|
|
|
|
PopupMenu MakeInfoPopup(string message, string continueButtonText);
|
2022-04-30 14:33:55 +00:00
|
|
|
|
// Startup Popups
|
|
|
|
|
void RegisterStartupPopup(string message);
|
2022-02-25 06:04:54 +00:00
|
|
|
|
}
|