|
123456789101112131415161718192021222324252627 |
- using System;
- using HarmonyLib;
-
- using RobocraftX.Services;
-
- namespace GamecraftModdingAPI.App
- {
- public class DualChoicePrompt : MultiChoiceError
- {
- public DualChoicePrompt(string errorMessage, string title, string firstButtonText, Action firstButtonAction, string secondButtonText, Action secondButtonAction) : base(errorMessage, firstButtonText, firstButtonAction, secondButtonText, secondButtonAction)
- {
- // internal readonly field smh
- new Traverse(this).Field<string>("Title").Value = title;
- }
- }
-
- public class SingleChoicePrompt : SingleChoiceError
- {
- public SingleChoicePrompt(string errorMessage, string buttonText, Action buttonClickAction) : base(errorMessage, buttonText, buttonClickAction)
- {
- }
-
- public SingleChoicePrompt(string titleText, string errorMessage, string buttonText, Action buttonClickAction) : base(titleText, errorMessage, buttonText, buttonClickAction)
- {
- }
- }
- }
|