This class represents HUD warning
More...
|
| MyHudWarning (MyWarningDetectionMethod detectionMethod, int priority, int repeatInterval=0, int soundDelay=0, int disappearTime=0) |
| Creates new instance of HUD warning More...
|
|
bool | Update (bool isWarnedHigherPriority) |
| Call it in each update More...
|
|
Public Member Functions inherited from Sandbox.Game.Gui.MyHudNotification |
| MyHudNotification (MyStringId text=default(MyStringId), int disappearTimeMs=2500, string font=MyFontEnum.White, MyGuiDrawAlignEnum textAlign=MyGuiDrawAlignEnum.HORISONTAL_CENTER_AND_VERTICAL_CENTER, int priority=0, MyNotificationLevel level=MyNotificationLevel.Normal) |
|
Public Member Functions inherited from Sandbox.Game.Gui.MyHudNotificationBase |
| MyHudNotificationBase (int disapearTimeMs, string font=MyFontEnum.White, MyGuiDrawAlignEnum textAlign=MyGuiDrawAlignEnum.HORISONTAL_CENTER_AND_VERTICAL_CENTER, int priority=0, MyNotificationLevel level=MyNotificationLevel.Normal) |
|
void | SetTextDirty () |
|
string | GetText () |
|
object[] | GetTextFormatArguments () |
|
void | SetTextFormatArguments (params object[] arguments) |
|
void | AddAliveTime (int timeStep) |
|
void | ResetAliveTime () |
|
virtual void | BeforeAdd () |
|
virtual void | BeforeRemove () |
|
This class represents HUD warning
Definition at line 39 of file MyHudWarning.cs.
Sandbox.Game.Gui.MyHudWarning.MyHudWarning |
( |
MyWarningDetectionMethod |
detectionMethod, |
|
|
int |
priority, |
|
|
int |
repeatInterval = 0 , |
|
|
int |
soundDelay = 0 , |
|
|
int |
disappearTime = 0 |
|
) |
| |
|
inline |
Creates new instance of HUD warning
- Parameters
-
detectionMethod | Warning's detection method |
soundWarning | Sound warning |
textWarning | Text warning |
priority | Warning's priority |
Definition at line 64 of file MyHudWarning.cs.
bool Sandbox.Game.Gui.MyHudWarning.Update |
( |
bool |
isWarnedHigherPriority | ) |
|
|
inline |
Call it in each update
- Parameters
-
isWarnedHigherPriority | Indicated if warning with greater priority was signalized |
- Returns
- Returns true if warning detected. Else returns false
Definition at line 79 of file MyHudWarning.cs.
Func<bool> Sandbox.Game.Gui.MyHudWarning.CanPlay |
Action Sandbox.Game.Gui.MyHudWarning.Played |
int Sandbox.Game.Gui.MyHudWarning.RepeatInterval |
int Sandbox.Game.Gui.MyHudWarning.WarningPriority |
|
get |
The documentation for this class was generated from the following file: