예제 #1
0
 public TutHelpMenu(FirstRunTutorial tut, Main main) : base(tut, main)
 {
     m_overlay.SnapShotCaptured += (s, a) =>
     {
         PaintHighlight(a.Gfx, a.ClientRectangle, m_main.m_menu_help.ParentFormRectangle());
     };
 }
예제 #2
0
 public TutFileScroll(FirstRunTutorial tut, Main main) : base(tut, main)
 {
     m_overlay.SnapShotCaptured += (s, a) =>
     {
         PaintHighlight(a.Gfx, a.ClientRectangle, m_main.m_scroll_file.ParentFormRectangle());
     };
 }
예제 #3
0
 public TutEnableActions(FirstRunTutorial tut, Main main) : base(tut, main)
 {
     m_overlay.SnapShotCaptured += (s, a) =>
     {
         PaintHighlight(a.Gfx, a.ClientRectangle, m_main.m_btn_actions.ParentFormRectangle());
     };
 }
예제 #4
0
 public TutPatternsList(FirstRunTutorial tut, Main main, SettingsUI ui) : base(tut, main)
 {
     m_ui = ui;
     m_overlay.SnapShotCaptured += (s, a) =>
     {
         PaintHighlight(a.Gfx, a.ClientRectangle, m_ui.m_grid_highlight.ParentFormRectangle());
     };
 }
예제 #5
0
            public TutPatternSets(FirstRunTutorial tut, Main main) : base(tut, main)
            {
                m_overlay.SnapShotCaptured += (s, a) =>
                {
                    using (a.Gfx.SaveState())
                    {
                        m_main.m_menu_file.ShowDropDown();
                        m_main.m_menu_file_pattern_set.ShowDropDown();
                        var pt1 = m_main.PointToClient(m_main.m_menu_file.DropDown.Bounds.Location);
                        var pt2 = m_main.PointToClient(m_main.m_menu_file_pattern_set.DropDown.Bounds.Location);
                        m_main.m_menu_file.HideDropDown();
                        m_main.m_menu_file_pattern_set.HideDropDown();

                        // Fill the overlay with light blue, then redraw the file menu and drop downs
                        PaintHighlight(a.Gfx, a.ClientRectangle, m_main.m_menu_file.ParentFormRectangle());
                        a.Gfx.DrawImageUnscaled(m_main.m_menu_file.DropDown.ToBitmap(), pt1);
                        a.Gfx.DrawImageUnscaled(m_main.m_menu_file_pattern_set.DropDown.ToBitmap(), pt2);
                    }
                };
            }
예제 #6
0
 public PageBase(FirstRunTutorial tut, Main main)
 {
     m_tut     = tut;
     m_main    = main;
     m_overlay = new Overlay();
 }