quantum-space-buddies/QSB/Menus/IMenuAPI.cs

29 lines
1.5 KiB
C#
Raw Normal View History

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
GameObject TitleScreen_MakeMenuOpenButton(string name, Menu menuToOpen);
GameObject TitleScreen_MakeSceneLoadButton(string name, SubmitActionLoadScene.LoadableScenes sceneToLoad, PopupMenu confirmPopup = null);
Button TitleScreen_MakeSimpleButton(string name);
// 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);
// Options
Menu OptionsMenu_MakeNonScrollingOptionsTab(string name);
GameObject OptionsMenu_MakeTwoButtonToggle(string label, string trueText, string falseText, string tooltipText, bool savedValue, Menu menuTab);
GameObject OptionsMenu_MakeNonDisplaySliderElement(string label, string tooltipText, float savedValue, Menu menuTab);
void OptionsMenu_MakeSpacer(float minHeight, Menu menuTab);
void OptionsMenu_MakeLabel(string label, Menu menuTab);
2021-08-24 19:59:05 +00:00
void OptionsMenu_MakeTextInput(string label, string tooltipText, string placeholderText, string savedValue, Menu menuTab);
2021-06-04 10:31:09 +00:00
// Misc
PopupMenu MakeTwoChoicePopup(string message, string confirmText, string cancelText);
PopupInputMenu MakeInputFieldPopup(string message, string placeholderMessage, string confirmText, string cancelText);
}
}