Example #1
0
 public ChatDialog(GUIController controller)
 {
     InitializeComponent();
     if (controller == null)
     {
         throw new ArgumentNullException("Cannot pass a null GUIController");
     }
     _Controller = controller;
     this.Dock = DockStyle.Fill;
     m_currentlyTyping = false;
 }
Example #2
0
        public WhiteboardDialog(Form mainForm, GUIController controller, WhiteboardRoom wbRoom)
        {
            InitializeComponent();
            if (controller == null)
            {
                throw new ArgumentNullException("Cannot pass a null GUIController");
            }
            _MainForm = mainForm;
            _Controller = controller;
            WBRoom = wbRoom;
            this.Dock = DockStyle.Fill;

            if (WBRoom != null)
            {
                wbColorB.BackColor = Color.FromArgb(WBRoom.DrawColor);
                wbRoom.DrawPointSize = wbPointSize.Value;
            }

            // Turn off the gradient in toolstrip
            ProfessionalColorTable professionalColorTable = new ProfessionalColorTable();
            professionalColorTable.UseSystemColors = true;
            toolStrip1.Renderer = new ToolStripProfessionalRenderer(professionalColorTable);

            // Set the default image for tool button drop down
            if (WBRoom != null)
            {
                SetWhiteboardToolImage(WBRoom.DrawMode);
            }

            // Setup tooltips
            wbTooltip.SetToolTip (textDD, "Enter text for use in text or line drawing control");
            wbTooltip.SetToolTip(wbColorB, "Click to choose drawing color");
            wbTooltip.SetToolTip(wbPointSize, "Use to set size for drawing objects or text");
            wbTooltip.SetToolTip(undoB, "Click to undo your last drawing operation");
            wbTooltip.SetToolTip(clearB, "Click to clear all of your drawing in this Whiteboard room");
            wbTooltip.SetToolTip(clearAllB, "Click to clear entire Whiteboard room");
            wbTooltip.SetToolTip(playerListDD, "Select a player to synchronize your map view with");
            wbTooltip.SetToolTip(viewUndoB, "Revert to your previous view");
            wbTooltip.SetToolTip(otherWBRoomsLB, "Select additional Whiteboard rooms to overlay with this room");

        }
Example #3
0
        public Scene[] InitializeScenes(GameFramework g)
        {
            //_Controller = null;
            //return new Scene[] { new SandBox(this) };
            //_Controller = null;
            //return new Scene[] { new SplashScene(this) };

            _Controller = new GUIController(DDD_Global.Instance.PlayerID, DDD_Global.Instance.HostName,
                DDD_Global.Instance.nc, DDD_Global.Instance.SimModel);

            DDD_HeadsUpDisplay h = new DDD_HeadsUpDisplay(this, _Controller);
            return new Scene[] { new SplashScene2(this, _Controller), h };
        }
        public Scene[] InitializeScenes(GameFramework g)
        {
            try
            {
                _Controller = new GUIController(DDD_Global.Instance.PlayerID, DDD_Global.Instance.HostName,
                    DDD_Global.Instance.SimModel);


                return new Scene[] { new WinForm_Splash(this, _Controller), new MapPlayfieldContainer(this, _Controller) };
            }
            catch (Exception exc)
            {
                throw new Exception(exc.Message);
            }
        }
Example #5
0
 public WhiteboardRoom(string name, List<string> membership_list, GUIController controller)
 {
     if (controller == null)
     {
         throw new ArgumentNullException("Cannot pass a null GUIController");
     }
     _Controller = controller;
     _name = name;
     _membership_list = membership_list;
     drawingCommands = new List<object>();
 }