private void DrawConnectingUI(LayoutUserInterface ui) { int sw = ui.IMGUI.ScreenProvider.GetWidth(); int sh = ui.IMGUI.ScreenProvider.GetHeight(); int w = 450; int h = 250; var sb = new Rectangle((sw - w) / 2, (sh - h) / 2, w, h); ui.PanelContext(sb); ui.Anchor = Anchor.Centered; ui.Paragraph(connectionStatus, TextAlignment.Centered, Color.White); ui.Anchor = Anchor.Vertical; ui.FlatSeparator(); if (ui.Button("Cancel")) { OnCancelConnectClicked(); } ui.EndContext(); }
public override void Draw(LayoutUserInterface ui) { ui.Paragraph(Text, Color.White); }