MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / AddStatusMessage

Method AddStatusMessage

Source/Editor/Modules/UIModule.cs:413–422  ·  view source on GitHub ↗

Adds the status bar message text to be displayed as a notification. The message to display. The ID of that status message (unique). Can be used to hide it manually.

(string message)

Source from the content-addressed store, hash-verified

411 /// <param name="message">The message to display.</param>
412 /// <returns>The ID of that status message (unique). Can be used to hide it manually.</returns>
413 public int AddStatusMessage(string message)
414 {
415 if (_statusMessages == null)
416 _statusMessages = new List<Status>();
417 var status = new Status { ID = _statusID++, Text = message, EndTime = DateTime.Now + TimeSpan.FromSeconds(3.0f) };
418 _statusMessages.Add(status);
419 if (_statusMessages.Count == 1)
420 UpdateStatusBar();
421 return status.ID;
422 }
423
424 /// <summary>
425 /// Removes a specific status message once it's not needed anymore,

Callers 5

SaveAllMethod · 0.80
SaveScenesMethod · 0.80
SelectionChangeMethod · 0.80
GameWindowMethod · 0.80

Calls 2

FromSecondsMethod · 0.80
AddMethod · 0.45

Tested by

no test coverage detected