2021-08-25 09:41:11 +00:00
|
|
|
|
using UnityEngine;
|
2021-06-04 10:31:09 +00:00
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
|
|
|
|
|
namespace QSB.Menus
|
|
|
|
|
{
|
|
|
|
|
public interface IMenuAPI
|
|
|
|
|
{
|
|
|
|
|
// Title screen
|
2021-12-04 23:24:26 +00:00
|
|
|
|
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);
|
2021-06-04 10:31:09 +00:00
|
|
|
|
// 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);
|
2021-08-26 07:51:33 +00:00
|
|
|
|
PopupMenu MakeInfoPopup(string message, string continueButtonText);
|
2021-06-04 10:31:09 +00:00
|
|
|
|
}
|
|
|
|
|
}
|