You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Gets or sets the callback to invoke when the settings button is triggered.
50
+
/// </summary>
35
51
publicAction<SettingsButton>OnTriggered{get;set;}
36
52
53
+
/// <summary>
54
+
/// Gets the base entry.
55
+
/// </summary>
37
56
publicnewSSButtonBase{get;}
38
57
58
+
/// <summary>
59
+
/// Gets the time, in seconds (using <see cref="Time.realtimeSinceStartup"/>), at which the last trigger event occurred, or null if no trigger has occurred.
60
+
/// </summary>
39
61
publicfloat?LastTriggerTime{get;privateset;}
40
62
63
+
/// <summary>
64
+
/// Gets the time (using <see cref="Time.realtimeSinceStartup"/>), at which the last trigger event occurred, or null if no trigger has occurred.
65
+
/// </summary>
41
66
publicTimeSpan?TimeSinceLastTrigger
42
67
{
43
68
get
@@ -49,16 +74,19 @@ public TimeSpan? TimeSinceLastTrigger
49
74
}
50
75
}
51
76
77
+
/// <summary>
78
+
/// Gets or sets the required duration, in seconds, that the button must be held to trigger successfully.
/// Creates a new instance of the SettingsButton class with the specified identifier, label, text, and optional
114
+
/// settings.
115
+
/// </summary>
116
+
/// <param name="customId">A unique string identifier for the button. Cannot be null, empty, or consist only of white-space characters.</param>
117
+
/// <param name="buttonLabel">The label displayed on the button. Cannot be null, empty, or consist only of white-space characters.</param>
118
+
/// <param name="buttonText">The text shown on the button. Cannot be null, empty, or consist only of white-space characters.</param>
119
+
/// <param name="buttonHint">An optional hint or tooltip text for the button. May be null if no hint is required.</param>
120
+
/// <param name="requiredHeldTimeSeconds">The optional duration, in seconds, that the button must be held before activation. If null, the button does
121
+
/// not require a hold.</param>
122
+
/// <returns>A new SettingsButton instance configured with the specified parameters.</returns>
123
+
/// <exception cref="ArgumentNullException">Thrown if customId, buttonLabel, or buttonText is null, empty, or consists only of white-space characters.</exception>
/// Creates a new instance of the SettingsTwoButtons class with the specified button configuration.
204
+
/// </summary>
205
+
/// <param name="customId">A unique identifier for the button setting. Cannot be null, empty, or consist only of white-space
206
+
/// characters.</param>
207
+
/// <param name="buttonLabel">The label displayed above the two buttons. Cannot be null, empty, or consist only of white-space characters.</param>
208
+
/// <param name="buttonAText">The text displayed on the first button. Cannot be null, empty, or consist only of white-space characters.</param>
209
+
/// <param name="buttonBText">The text displayed on the second button. Cannot be null, empty, or consist only of white-space characters.</param>
210
+
/// <param name="isDefaultButtonB">true to make the second button the default selection; otherwise, false.</param>
211
+
/// <param name="buttonsHint">An optional hint or description displayed below the buttons. Can be null.</param>
212
+
/// <returns>A new SettingsTwoButtons instance configured with the specified labels, button texts, and options.</returns>
213
+
/// <exception cref="ArgumentNullException">Thrown if customId, buttonLabel, buttonAText, or buttonBText is null, empty, or consists only of white-space
0 commit comments