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

Method MainMenuButton

Source/Editor/GUI/MainMenuButton.cs:39–54  ·  view source on GitHub ↗

Initializes a new instance of the class. The text.

(string text)

Source from the content-addressed store, hash-verified

37 /// </summary>
38 /// <param name="text">The text.</param>
39 public MainMenuButton(string text)
40 : base(0, 0, 32, 16)
41 {
42 Text = text;
43
44 var style = Style.Current;
45 if (!Utilities.Utils.UseCustomWindowDecorations())
46 {
47 BackgroundColorMouseOver = style.BackgroundHighlighted;
48 BackgroundColorMouseOverOpened = style.Background;
49 }
50 else
51 {
52 BackgroundColorMouseOver = BackgroundColorMouseOverOpened = style.LightBackground * 1.3f;
53 }
54 }
55
56 /// <inheritdoc />
57 public override void Draw()

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected