예제 #1
0
        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();
        }
예제 #2
0
파일: MessageBox.cs 프로젝트: Epicguru/Raze
 public override void Draw(LayoutUserInterface ui)
 {
     ui.Paragraph(Text, Color.White);
 }