@@ -84,6 +84,15 @@ public interface IPublicAPI
8484 /// <param name="subTitle">Optional message subtitle</param>
8585 void ShowMsgError ( string title , string subTitle = "" ) ;
8686
87+ /// <summary>
88+ /// Show the error message using Flow's standard error icon.
89+ /// </summary>
90+ /// <param name="title">Message title</param>
91+ /// <param name="buttonText">Message button content</param>
92+ /// <param name="buttonAction">Message button action</param>
93+ /// <param name="subTitle">Optional message subtitle</param>
94+ void ShowMsgErrorWithButton ( string title , string buttonText , Action buttonAction , string subTitle = "" ) ;
95+
8796 /// <summary>
8897 /// Show the MainWindow when hiding
8998 /// </summary>
@@ -127,6 +136,27 @@ public interface IPublicAPI
127136 /// <param name="useMainWindowAsOwner">when true will use main windows as the owner</param>
128137 void ShowMsg ( string title , string subTitle , string iconPath , bool useMainWindowAsOwner = true ) ;
129138
139+ /// <summary>
140+ /// Show message box with button
141+ /// </summary>
142+ /// <param name="title">Message title</param>
143+ /// <param name="buttonText">Message button content</param>
144+ /// <param name="buttonAction">Message button action</param>
145+ /// <param name="subTitle">Message subtitle</param>
146+ /// <param name="iconPath">Message icon path (relative path to your plugin folder)</param>
147+ void ShowMsgWithButton ( string title , string buttonText , Action buttonAction , string subTitle = "" , string iconPath = "" ) ;
148+
149+ /// <summary>
150+ /// Show message box with button
151+ /// </summary>
152+ /// <param name="title">Message title</param>
153+ /// <param name="buttonText">Message button content</param>
154+ /// <param name="buttonAction">Message button action</param>
155+ /// <param name="subTitle">Message subtitle</param>
156+ /// <param name="iconPath">Message icon path (relative path to your plugin folder)</param>
157+ /// <param name="useMainWindowAsOwner">when true will use main windows as the owner</param>
158+ void ShowMsgWithButton ( string title , string buttonText , Action buttonAction , string subTitle , string iconPath , bool useMainWindowAsOwner = true ) ;
159+
130160 /// <summary>
131161 /// Open setting dialog
132162 /// </summary>
0 commit comments