// Use this for initialization
    void Start()
    {
        currentLevel = new GameObject();

        GameObject guiManObj = GameObject.Find("GraphicsManager");
        guiMan = guiManObj.GetComponent<GuiManager>();
    }
 // Use this for initialization
 void Start()
 {
     //Set up to report score.
     GameObject gm = GameObject.Find("GraphicsManager");
     if(gm != null)
         manager = gm.GetComponent<GuiManager>();
 }
示例#3
0
	//Initialize problem
	public Problem(Vector2 InitialPosition,Vector2 finalPosition,Cell[,] matrix,GuiManager guiManager){

		//Set initialState
		initialState = new State (InitialPosition);
        _finalPosition = finalPosition;
        _matrix = matrix;
        _guimanager = guiManager;
	}
    // Use this for initialization
    void Start()
    {
        coins = 0;

        gui = GameObject.Find("GUI").GetComponent<GuiManager>();
        rb = GetComponent<Rigidbody>();
        magnetScrip = Magnet.GetComponent<Magnet>();
        levelController = TheLevel.GetComponent<LevelController>();
    }
示例#5
0
        /// <summary>
        /// Instantiates a new instance of the <see cref="Ennerbot"/> class
        /// </summary>
        public Ennerbuddy()
        {
            TryWithMessage(() =>
            {
                var guiManager = new GuiManager();
                this._macroManager = guiManager.CreateMacroManager();
            });

            // this.pluginPath = Path.Combine(Environment.CurrentDirectory, ff14bot.Settings.GlobalSettings.Instance.PluginsPath);
        }
示例#6
0
文件: Checkbox.cs 项目: HaKDMoDz/Psy
        private static Widget Create(GuiManager guiManager, XmlElement xmlElement, Widget parent)
        {
            var checkbox = new Checkbox(guiManager, parent)
            {
                Value = xmlElement.ReadBooleanAttribute("value")
            };

            checkbox.Size = new Vector2(16, 16);

            return checkbox;
        }
示例#7
0
文件: Listbox.cs 项目: HaKDMoDz/Psy
        internal Listbox(GuiManager guiManager, Widget parent)
            : base(guiManager, parent)
        {
            Columns = new List<ListboxColumn>(4);
            ColumnHeaderWidgets = new List<Widget>(4);
            Data = new List<List<string>>(10);

            _selectedRowIndex = -1;
            _highlightedRowIndex = -1;
            _ninePatchHandle = NinePatchHandle.Create("button");
        }
    // Update is called once per frame
    void Awake()
    {
        if (sInstance == null)
        {
            sInstance = this;
        }
        else
            enabled = false;

        Initialise();
    }
示例#9
0
	void Start () 
    {
        guiManager = new GuiManager(this);
        danceMoveManager = new DanceMoveManager();

        for (int i = 0; i < 3; i++)
        {
            GameObject tribemanObject = GameObject.Find("Tribeman_" + i);
            Tribeman newTribeman = new Tribeman(tribemanObject);
            tribemans.Add(newTribeman);
        }
	}
示例#10
0
 private void ResultsView_Loaded(object sender, RoutedEventArgs e)
 {
     if (DesignerProperties.GetIsInDesignMode(this)) return;
     DataControl.ItemsSource = _collection;
     _propertyManager = CoreSystem.Managers.Find(m => m.Name.Contains("PropertyManager")) as PropertyManager;
     ProjectManager projectManager = CoreSystem.Managers.Find(m => m.Name.Contains("ProjectManager")) as ProjectManager;
     _guiManager = CoreSystem.Managers.Find(m => m.Name.Contains("GuiManager")) as GuiManager;
     _propertyManager.NodeAddedEvent += PropertyManagerNodeAddedEvent;
     _propertyManager.NodeRemovedEvent += PropertyManagerNodeRemovedEvent;
     projectManager.Loading += ProjectManagerLoading;
     _guiManager.SelectedItemChanged += guiManager_SelectedItemChanged;
 }
        private void HandleLoaded(object sender, RoutedEventArgs e)
        {
            if (DesignerProperties.GetIsInDesignMode(this) == false) {
                _projectManager = CoreSystem.Managers.Find(m => m.Name.Contains("ProjectManager")) as ProjectManager;
                _guiManager = CoreSystem.Managers.Find(m => m.Name.Contains("GuiManager")) as GuiManager;

                if (_projectManager == null)
                    throw new Exception("ProjectManager is NULL!");

                _projectManager.OperationAddedEvent += HandleOperationCollectionChanged;
                _projectManager.OperationRemovedEvent += HandleOperationCollectionChanged;
                _projectManager.Loaded += HandleProjectLoaded;
                GenerateTree();
            }
        }
示例#12
0
 public MovementManager(Station firstStation, Station lastStation, Route route, Movement firstMovement, Movement normalMovement, Movement goOutMovement, TrainPassengers passengers, TimeCounter timeCounter, CurrentPoints points, GuiManager gui, GuiRendererControl backToMenuButton, GuiRendererControl showRankingButton, bool isLocal, GuiPlayersPointsElement playersPoints, NetworkEntityPlaying network)
 {
     this.firstStation = firstStation;
     this.lastStation = lastStation;
     this.route = route;
     this.movement = firstMovement;
     this.normalMovement = normalMovement;
     this.goOutMovement = goOutMovement;
     this.passengers = passengers;
     this.timeCounter = timeCounter;
     this.points = points;
     this.gui = gui;
     this.backToMenuButton = backToMenuButton;
     this.showRankingButton = showRankingButton;
     this.isLocal = isLocal;
     this.playersPoints = playersPoints;
     this.network = network;
 }
示例#13
0
    public ToolSelectMenu(GuiManager gameMenuManager)
    {
        background = Resources.Load(ResourcePaths.toolSelectBackground) as Texture;
        tipStyle = GuiFunctions.getTipStyle();

        gmm = gameMenuManager;

        int xSpace = Screen.width / 6;
        int ySpace = Screen.height / 6;
        backgroundRect = new Rect(xSpace, ySpace, Screen.width - xSpace * 2, Screen.height - ySpace * 2);

        guiRect = new Rect(backgroundRect.xMin + Screen.width / 40, backgroundRect.yMin + Screen.height / 40,
            backgroundRect.width - Screen.width / 20, backgroundRect.height - Screen.height / 20);

        float toolIconSize = guiRect.width / 5;
        float mouseIconSize = toolIconSize / 2;
        toolIconSpacing = toolIconSize / 4;
        toolGuiOptions = new GUILayoutOption[2] { GUILayout.Width(toolIconSize), GUILayout.Height(toolIconSize) };
        mouseGuiOptions = new GUILayoutOption[2] { GUILayout.Width(mouseIconSize), GUILayout.Height(mouseIconSize) };
    }
示例#14
0
        public override void LoadContent()
        {
            _font = _content.Load <SpriteFont>("misc/font");

            if (File.Exists("Score.bin"))
            {
                _br = new BinaryReader(new FileStream("Score.bin", FileMode.OpenOrCreate, FileAccess.Read));
                if (_br.BaseStream.Length > 0)
                {
                    Score = _br.ReadInt32();
                }

                _br.Close();
            }
            _roomManager  = new RoomManager(_content);
            _guiManager   = new GuiManager(_content, _defaultTex);
            _enemyManager = new EnemyManager(_content);

            _sprites = new List <Sprite>()
            {
                _roomManager.CreateRoom(
                    new Vector2(0, 0),
                    new Vector2(20, 20), // Room size
                    _enemyManager),

                new Player(new Dictionary <string, Animation>()
                {
                    { "WalkLeft", new Animation(_content.Load <Texture2D>("player/player_run_left"), 4, 0.1f) },
                    { "WalkRight", new Animation(_content.Load <Texture2D>("player/player_run_right"), 4, 0.1f) },
                    { "IdleLeft", new Animation(_content.Load <Texture2D>("player/player_idle_left"), 5, 0.2f) },
                    { "IdleRight", new Animation(_content.Load <Texture2D>("player/player_idle_right"), 5, 0.2f) },
                    { "AttackLeft1", new Animation(_content.Load <Texture2D>("player/player_attack_left1"), 6, 0.04f)
                      {
                          IsLooping = false
                      } },
                    { "AttackLeft2", new Animation(_content.Load <Texture2D>("player/player_attack_left2"), 6, 0.04f)
                      {
                          IsLooping = false
                      } },
                    { "AttackLeft3", new Animation(_content.Load <Texture2D>("player/player_attack_left3"), 5, 0.1f)
                      {
                          IsLooping = false
                      } },
                    { "AttackRight1", new Animation(_content.Load <Texture2D>("player/player_attack_right1"), 6, 0.04f)
                      {
                          IsLooping = false
                      } },
                    { "AttackRight2", new Animation(_content.Load <Texture2D>("player/player_attack_right2"), 6, 0.04f)
                      {
                          IsLooping = false
                      } },
                    { "AttackRight3", new Animation(_content.Load <Texture2D>("player/player_attack_right3"), 5, 0.1f)
                      {
                          IsLooping = false
                      } }
                })
                {
                    Health   = 6,
                    Position = new Vector2(_roomManager.CurrentRoom.Area.X + _roomManager.CurrentRoom.Area.Center.X, _roomManager.CurrentRoom.Area.Y + _roomManager.CurrentRoom.Area.Height - 300),
                    Speed    = 7,
                    Input    = new Input()
                    {
                        Left  = Keys.A,
                        Right = Keys.D,
                        Up    = Keys.W,
                        Down  = Keys.S
                    },
                },
            };

            _quad    = new Quadtree(0, _roomManager.CurrentRoom.Area);
            _players = _sprites.OfType <Player>().ToList();
        }
示例#15
0
 void Awake()
 {
     _instance = this;
 }
示例#16
0
        private Vector2 GetTooltipPosition(GuiManager guiManager)
        {
            var x = guiManager.LastMousePosition.X + 16;
            var y = guiManager.LastMousePosition.Y + 16;

            var maxX = guiManager.Desktop.Size.X - guiManager.TooltipWindow.Size.X;
            var maxY = guiManager.Desktop.Size.Y - guiManager.TooltipWindow.Size.Y;

            x = Math.Min(x, maxX);

            if (y > maxY)
            {
                y -= 16;
                y -= guiManager.TooltipWindow.Size.Y;
            }

            return new Vector2(x - 16, y);
        }
示例#17
0
		public PropertyWindow(GuiManager guiMan, InputManager inpMan, GameData gameData,
			GuiData guiData) : base(GuiManager.cursor)
		{
			#region engine data and GUI object references
			PropertyWindowMessages.guiData = guiData;
			PropertyWindowMessages.gameData = gameData;
			PropertyWindowMessages.guiMan = guiMan;
			PropertyWindowMessages.sprMan = gameData.sprMan;
			PropertyWindowMessages.propWindow = this;

			#endregion 

			#region Initialize this and the WAVListBox
			sclX = 20;
			sclY = 20;
			SetPositionTL(20, 22.8f);
			mMoveBar = true;
			AddXButton();
			mName = "Properties";

			propertiesEditingListBox = this.AddWAVListBox(GuiManager.cursor);
			propertiesEditingListBox.sclX = 7;
			propertiesEditingListBox.sclY = 18.5f;
			propertiesEditingListBox.SetPositionTL(sclX-12.5f, sclY + -.1f);
			propertiesEditingListBox.scrollBarVisible = false;
				
			propertiesEditingListBox.onClick += new FrbGuiMessage(PropertyWindowMessages.propertiesEditingClick);
			GuiManager.AddWindow(this);
			#endregion			

			#region textureGUI

			textureGUI = new WindowArray();
            
            texturePath = AddTextDisplay();
			texturePath.text = "Click button to set texture";
            texturePath.SetPositionTL(propertiesEditingListBox.sclX * 2 + 1, 1.5f);
			textureGUI.Add(texturePath);



			textureOrAnimation = AddComboBox();
			textureOrAnimation.sclX = 7;
			textureOrAnimation.AddItem("Single Texture");
			textureOrAnimation.AddItem("Animation Chain");
			textureOrAnimation.text = "Single Texture";
            textureOrAnimation.SetPositionTL(propertiesEditingListBox.sclX * 2 + 8, 3.5f);
			textureOrAnimation.onItemClick += new FrbGuiMessage(PropertyWindowMessages.updateTextureOrAnimationButton);
			textureGUI.Add(textureOrAnimation);

			#region single texture GUI


			textureButton = AddButton();
			textureButton.sclX = textureButton.sclY = 9;
            textureButton.SetPositionTL(propertiesEditingListBox.sclX * 2 + 10, 14.0f);
			textureButton.onClick += new FrbGuiMessage(PropertyWindowMessages.textureButtonClick);
			textureGUI.Add(textureButton);
			#endregion


			textureGUI.visible = false;

			propertiesEditingListBox.AddWindowArray("Texture", textureGUI);

			#endregion

			#region particlePropertiesGUI
			particlePropertiesGUI = new WindowArray();

			float runningY = 4;

			emitterNameDisplay = this.AddTextDisplay();
			emitterNameDisplay.text = "Name:";
			emitterNameDisplay.SetPositionTL(15, runningY);
			particlePropertiesGUI.Add(emitterNameDisplay);

			emitterName = AddTextBox();
			emitterName.sclX = 5;
			emitterName.SetPositionTL(26, runningY);
			emitterName.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.emitterNameTextBoxLoseFocus);
			particlePropertiesGUI.Add(emitterName);

			runningY += 3;

			#region x y z position

			xPos = AddTextDisplay();
			xPos.text = "X Pos:";
			xPos.SetPositionTL(15, runningY);
			particlePropertiesGUI.Add(xPos);

			xPosTextBox = AddTextBox();
			xPosTextBox.sclX = 3;
			xPosTextBox.SetPositionTL(24, runningY);
			xPosTextBox.format = TextBox.FormatTypes.DECIMAL;
			xPosTextBox.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.xPosTextBoxLoseFocus);
			particlePropertiesGUI.Add(xPosTextBox);

			runningY += 2.5f;

			yPos = AddTextDisplay();
			yPos.text = "Y Pos:";
			yPos.SetPositionTL(15, runningY);
			particlePropertiesGUI.Add(yPos);

			yPosTextBox = AddTextBox();
			yPosTextBox.sclX = 3;
			yPosTextBox.SetPositionTL(24, runningY);
			yPosTextBox.format = TextBox.FormatTypes.DECIMAL;
			yPosTextBox.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.yPosTextBoxLoseFocus);
			particlePropertiesGUI.Add(yPosTextBox);

			runningY += 2.5f;

			zPos = AddTextDisplay();
			zPos.text = "Z Pos:";
			zPos.SetPositionTL(15, runningY);
			particlePropertiesGUI.Add(zPos);

			zPosTextBox = AddTextBox();
			zPosTextBox.sclX = 3;
			zPosTextBox.SetPositionTL(24, runningY);
			zPosTextBox.format = TextBox.FormatTypes.DECIMAL;
			zPosTextBox.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.zPosTextBoxLoseFocus);
			particlePropertiesGUI.Add(zPosTextBox);

			runningY += 3;

			#endregion

			#region sclX and sclXVelocity
			xScl = AddTextDisplay();
			xScl.SetPositionTL(15, runningY);
			xScl.text = "X Scl:";
			particlePropertiesGUI.Add(xScl);

			xSclTextBox = AddTextBox();
			xSclTextBox.SetPositionTL(24f, runningY);
			xSclTextBox.sclX = 3;
			xSclTextBox.format = TextBox.FormatTypes.DECIMAL;
			xSclTextBox.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.xSclTextBoxLoseFocus);
			particlePropertiesGUI.Add(xSclTextBox);

			runningY += 2.5f;

			xSclVelocity = AddTextDisplay();
			xSclVelocity.SetPositionTL(15, runningY);
			xSclVelocity.text = "X Scl Vel:";
			particlePropertiesGUI.Add(xSclVelocity);

			xSclVelocityTextBox = AddTextBox();
			xSclVelocityTextBox.SetPositionTL(24f, runningY);
			xSclVelocityTextBox.sclX = 3;
			xSclVelocityTextBox.format = TextBox.FormatTypes.DECIMAL;
			xSclVelocityTextBox.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.xSclVelocityTextBoxLoseFocus);
			particlePropertiesGUI.Add(xSclVelocityTextBox);

			runningY += 3;
			#endregion

			#region sclY and sclYVelocity
			yScl = AddTextDisplay();
			yScl.SetPositionTL(15, runningY);
			yScl.text = "Y Scl:";
			particlePropertiesGUI.Add(yScl);

			ySclTextBox = AddTextBox();
			ySclTextBox.SetPositionTL(24f, runningY);
			ySclTextBox.sclX = 3;
			ySclTextBox.format = TextBox.FormatTypes.DECIMAL;
			ySclTextBox.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.ySclTextBoxLoseFocus);
			particlePropertiesGUI.Add(ySclTextBox);

			runningY += 2.5f;

			ySclVelocity = AddTextDisplay();
			ySclVelocity.SetPositionTL(15, runningY);
			ySclVelocity.text = "Y Scl Vel:";
			particlePropertiesGUI.Add(ySclVelocity);

			ySclVelocityTextBox = AddTextBox();
			ySclVelocityTextBox.SetPositionTL(24f, runningY);
			ySclVelocityTextBox.sclX = 3;
			ySclVelocityTextBox.format = TextBox.FormatTypes.DECIMAL;
			ySclVelocityTextBox.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.ySclVelocityTextBoxLoseFocus);
			particlePropertiesGUI.Add(ySclVelocityTextBox);

			runningY += 3;
			#endregion

			#region rotZ and rotZVelocity


			rotZDisplay = AddTextDisplay();
			rotZDisplay.SetPositionTL(15, runningY);
			rotZDisplay.text = "Z Rot:";
			particlePropertiesGUI.Add(rotZDisplay);

			rotZFixedOrRange = AddComboBox();
			rotZFixedOrRange.sclX = 3.5f;
			rotZFixedOrRange.AddItem("Fixed");
			rotZFixedOrRange.AddItem("Range");
			rotZFixedOrRange.text = "Fixed";
			rotZFixedOrRange.SetPositionTL(24.5f, runningY);
			rotZFixedOrRange.onItemClick += new FrbGuiMessage(PropertyWindowMessages.updateRotZRange);
			rotZFixedOrRange.onItemClick += new FrbGuiMessage(PropertyWindowMessages.rotZFixedOrRangeItemClick);

			particlePropertiesGUI.Add(rotZFixedOrRange);

			rotZMinTextBox = AddTextBox();
			rotZMinTextBox.SetPositionTL(30.5f, runningY);
			rotZMinTextBox.sclX = 2;
			rotZMinTextBox.format = TextBox.FormatTypes.DECIMAL;
			rotZMinTextBox.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.rotZMinTextBoxLoseFocus);
			particlePropertiesGUI.Add(rotZMinTextBox);

			rotZRangeGUI = new WindowArray();

			rotZTo = AddTextDisplay();
			rotZTo.SetPositionTL(32.0f, runningY);
			rotZTo.text = "to";
			rotZRangeGUI.Add(rotZTo);	
				
			rotZMaxTextBox = AddTextBox();
			rotZMaxTextBox.SetPositionTL(36f, runningY);
			rotZMaxTextBox.sclX = 2;
			rotZMaxTextBox.format = TextBox.FormatTypes.DECIMAL;
			rotZMaxTextBox.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.rotZMaxTextBoxLoseFocus);
			rotZRangeGUI.Add(rotZMaxTextBox);

			rotZRangeGUI.visible = false;
				

			runningY += 2.5f;

			rotZVelocityDisplay = AddTextDisplay();
			rotZVelocityDisplay.SetPositionTL(15, runningY);
			rotZVelocityDisplay.text = "Z Rot Vel:";
			particlePropertiesGUI.Add(rotZVelocityDisplay);

			rotZVelocityFixedOrRange = AddComboBox();
			rotZVelocityFixedOrRange.sclX = 3.5f;
			rotZVelocityFixedOrRange.AddItem("Fixed");
			rotZVelocityFixedOrRange.AddItem("Range");
			rotZVelocityFixedOrRange.text = "Fixed";
			rotZVelocityFixedOrRange.SetPositionTL(24.5f, runningY);
			rotZVelocityFixedOrRange.onItemClick += new FrbGuiMessage(PropertyWindowMessages.updateRotZVelocityRange);
			rotZVelocityFixedOrRange.onItemClick += new FrbGuiMessage(PropertyWindowMessages.rotZVelocityFixedOrRangeItemClick);
			particlePropertiesGUI.Add(rotZVelocityFixedOrRange);


			rotZVelocityMinTextBox = AddTextBox();
			rotZVelocityMinTextBox.SetPositionTL(30.5f, runningY);
			rotZVelocityMinTextBox.sclX = 2;
			rotZVelocityMinTextBox.format = TextBox.FormatTypes.DECIMAL;
			rotZVelocityMinTextBox.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.rotZVelocityMinTextBoxLoseFocus);
			particlePropertiesGUI.Add(rotZVelocityMinTextBox);

			rotZVelocityRangeGUI = new WindowArray();

			rotZVelocityTo = AddTextDisplay();
			rotZVelocityTo.SetPositionTL(32.0f, runningY);
			rotZVelocityTo.text = "to";
			rotZVelocityRangeGUI.Add(rotZVelocityTo);

			rotZVelocityMaxTextBox = AddTextBox();
			rotZVelocityMaxTextBox.SetPositionTL(36, runningY);
			rotZVelocityMaxTextBox.sclX = 2;
			rotZVelocityMaxTextBox.format = TextBox.FormatTypes.DECIMAL;
			rotZVelocityMaxTextBox.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.rotZVelocityMaxTextBoxLoseFocus);
			rotZVelocityRangeGUI.Add(rotZVelocityMaxTextBox);

			rotZVelocityRangeGUI.visible = false;

			runningY += 3;
			#endregion

			#region velocityLoss
			velocityLossPercentageRate = AddTextDisplay();
			velocityLossPercentageRate.SetPositionTL(15, runningY);
			velocityLossPercentageRate.text = "Velocity Loss %:";
			particlePropertiesGUI.Add(velocityLossPercentageRate);

			velocityLossTextBox = AddTextBox();
			velocityLossTextBox.SetPositionTL(28, runningY);
			velocityLossTextBox.sclX = 2.5f;
			velocityLossTextBox.format = TextBox.FormatTypes.DECIMAL;
			velocityLossTextBox.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.velocityLossTextBoxLoseFocus);
			particlePropertiesGUI.Add(velocityLossTextBox);

			runningY += 3;
			#endregion

			#region removal event GUI
			removalEvent = AddTextDisplay();
			removalEvent.text = "Removal Event:";
			removalEvent.SetPositionTL(15, runningY);
			particlePropertiesGUI.Add(removalEvent);

			removalEventComboBox = AddComboBox();
			removalEventComboBox.SetPositionTL(31, runningY);
			removalEventComboBox.sclX = 6f;
			removalEventComboBox.AddItem("Fade out");
			removalEventComboBox.AddItem("Out of screen");
			removalEventComboBox.AddItem("Timed");
			removalEventComboBox.AddItem("None");
			removalEventComboBox.text = "None";
			removalEventComboBox.onItemClick += new FrbGuiMessage(PropertyWindowMessages.removalEventComboBoxItemClick);
			removalEventComboBox.onItemClick += new FrbGuiMessage(PropertyWindowMessages.updateLastingTimeGUI);
			particlePropertiesGUI.Add(removalEventComboBox);

			runningY += 3;

			lastingTimeGUI = new WindowArray();
			lastingTime = AddTextDisplay();
			lastingTime.text = "Seconds Lasting:";
			lastingTime.SetPositionTL(15, runningY);
			lastingTimeGUI.Add(lastingTime);

			lastingTimeTextBox = AddTextBox();
			lastingTimeTextBox.SetPositionTL(28, runningY);
			lastingTimeTextBox.sclX = 3;
			lastingTimeTextBox.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.lastingTimeTextBoxLoseFocus);			
			lastingTimeGUI.Add(lastingTimeTextBox);
			lastingTimeTextBox.format = TextBox.FormatTypes.DECIMAL;

			lastingTimeGUI.visible = false;

			#endregion

			particlePropertiesGUI.visible = false;
			propertiesEditingListBox.AddWindowArray("Particle Prop.", particlePropertiesGUI);


			#endregion				
	
			#region emissionAreaGUI
			emissionAreaGUI = new WindowArray();

			runningY = 2;

			emissionAreaType = AddComboBox();
			emissionAreaType.SetPositionTL(24, runningY);
			emissionAreaType.sclX = 8;
			emissionAreaType.AddItem("Point");
			emissionAreaType.AddItem("Rectangle");
			emissionAreaType.AddItem("Cube");
			emissionAreaType.text = "Point";
			emissionAreaType.onItemClick += new FrbGuiMessage(PropertyWindowMessages.updateEmissionAreaGUIVisibility);
			emissionAreaType.onItemClick += new FrbGuiMessage(PropertyWindowMessages.ChangeAreaEmissionType);

			emissionAreaGUI.Add(emissionAreaType);


			runningY += 2.5f;

			emissionAreaSclXTextDisplay = this.AddTextDisplay();
			emissionAreaSclXTextDisplay.SetPositionTL(15, runningY);
			emissionAreaSclXTextDisplay.text = "Emission Area SclX:";
			emissionAreaGUI.Add(emissionAreaSclXTextDisplay);

			emissionAreaSclX = AddUpDown();
			emissionAreaSclX.sclX = 3f;
			emissionAreaSclX.SetPositionTL(30.2f, runningY);
			emissionAreaSclX.CurrentValue = 1;
			emissionAreaSclX.onGUIChange += new FrbGuiMessage(PropertyWindowMessages.EmissionAreaSclXChange);
			emissionAreaGUI.Add(emissionAreaSclX);

			runningY += 2;

			emissionAreaSclYTextDisplay = this.AddTextDisplay();
			emissionAreaSclYTextDisplay.SetPositionTL(15, runningY);
			emissionAreaSclYTextDisplay.text = "Emission Area SclY:";
			emissionAreaGUI.Add(emissionAreaSclYTextDisplay);

			emissionAreaSclY = AddUpDown();
			emissionAreaSclY.sclX = 3f;
			emissionAreaSclY.SetPositionTL(30.2f, runningY);
			emissionAreaSclY.CurrentValue = 1;
			emissionAreaSclY.onGUIChange += new FrbGuiMessage(PropertyWindowMessages.EmissionAreaSclYChange);
			emissionAreaGUI.Add(emissionAreaSclY);


			runningY += 2;

			emissionAreaSclZTextDisplay = this.AddTextDisplay();
			emissionAreaSclZTextDisplay.SetPositionTL(15, runningY);
			emissionAreaSclZTextDisplay.text = "Emission Area SclZ:";
			emissionAreaGUI.Add(emissionAreaSclZTextDisplay);

			emissionAreaSclZ = AddUpDown();
			emissionAreaSclZ.sclX = 3f;
			emissionAreaSclZ.SetPositionTL(30.2f, runningY);
			emissionAreaSclZ.CurrentValue = 1;
			emissionAreaSclZ.onGUIChange += new FrbGuiMessage(PropertyWindowMessages.EmissionAreaSclZChange);
			emissionAreaGUI.Add(emissionAreaSclZ);





			emissionAreaGUI.visible = false;
			propertiesEditingListBox.AddWindowArray("Emission Area", emissionAreaGUI);

			#endregion

			#region attachment props GUI
		
			relativePropertiesGUI = new WindowArray();

			runningY = 4.5f;

			attachmentInformationTextDisplay = this.AddTextDisplay();
			attachmentInformationTextDisplay.text = "Attached To:  null";
			attachmentInformationTextDisplay.SetPositionTL(15, runningY);
			relativePropertiesGUI.Add(attachmentInformationTextDisplay);

			runningY += 2.5f;

			relXDisplay = this.AddTextDisplay();
			relXDisplay.text = "RelX:";
			relXDisplay.SetPositionTL(15, runningY);
			relativePropertiesGUI.Add(relXDisplay);


			relXTextBox = this.AddTextBox();
			relXTextBox.SetPositionTL(25, runningY);
			relXTextBox.sclX = 3;
			relXTextBox.format = TextBox.FormatTypes.DECIMAL;
			relXTextBox.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.RelXTextBoxLoseFocus);
			relativePropertiesGUI.Add(relXTextBox);

			runningY += 2.5f;

			relYDisplay = this.AddTextDisplay();
			relYDisplay.text = "RelY:";
			relYDisplay.SetPositionTL(15, runningY);

			relativePropertiesGUI.Add(relYDisplay);

			relYTextBox = this.AddTextBox();
			relYTextBox.SetPositionTL(25, runningY);
			relYTextBox.sclX = 3;
			relYTextBox.format = TextBox.FormatTypes.DECIMAL;
			relYTextBox.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.RelYTextBoxLoseFocus);
			relativePropertiesGUI.Add(relYTextBox);

			runningY += 2.5f;


			relZDisplay = this.AddTextDisplay();
			relZDisplay.text = "RelZ:";
			relZDisplay.SetPositionTL(15, runningY);
			relativePropertiesGUI.Add(relZDisplay);

			relZTextBox = this.AddTextBox();
			relZTextBox.SetPositionTL(25, runningY);
			relZTextBox.sclX = 3;

			relZTextBox.format = TextBox.FormatTypes.DECIMAL;
			relZTextBox.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.RelZTextBoxLoseFocus);
			relativePropertiesGUI.Add(relZTextBox);

			runningY += 2.5f;


			relRotZDisplay = this.AddTextDisplay();
			relRotZDisplay.text = "RelRotZ:";
			relRotZDisplay.SetPositionTL(15, runningY);
			relativePropertiesGUI.Add(relRotZDisplay);

			relRotZTextBox = this.AddTextBox();
			relRotZTextBox.SetPositionTL(25, runningY);
			relRotZTextBox.sclX = 3;
			relRotZTextBox.format = TextBox.FormatTypes.DECIMAL;
			relativePropertiesGUI.Add(relRotZTextBox);

			runningY += 3.5f;
			
			considerParentVelocityToggleButton = this.AddToggleButton();
			considerParentVelocityToggleButton.SetPositionTL(28, runningY);
			considerParentVelocityToggleButton.sclX = 9.4f;
			considerParentVelocityToggleButton.sclY = 1.3f;
			considerParentVelocityToggleButton.SetText("Consider Parent Velocity OFF", "Consider Parent Velocity ON");
			considerParentVelocityToggleButton.onClick += new FrbGuiMessage(PropertyWindowMessages.ConsiderParentVelocityToggleButtonClick);
			relativePropertiesGUI.Add(considerParentVelocityToggleButton);
			
			relativePropertiesGUI.visible = false;
			propertiesEditingListBox.AddWindowArray("Relative Prop.", relativePropertiesGUI);

			#endregion

			#region sprite color operation window

			WindowArray colorOpWA = new WindowArray();

			TextDisplay tempTextDisplay;

			tempTextDisplay = AddTextDisplay();
			tempTextDisplay.text = "Color Op Type:";
			tempTextDisplay.SetPositionTL(15, 4f);
			colorOpWA.Add(tempTextDisplay);

			#region color op types
			noColorOp = AddToggleButton();
			noColorOp.sclX = 4f;
			noColorOp.sclY = 1f;
			noColorOp.SetPositionTL(19, 7f);
			noColorOp.text = "None";
			noColorOp.Press();
			noColorOp.SetOneAlwaysDown(true);
			noColorOp.onClick += new FrbGuiMessage(PropertyWindowMessages.noColorOpClick);
			colorOpWA.Add(noColorOp);

			addColorOp = AddToggleButton();
			addColorOp.sclX = 4f;
			addColorOp.sclY = 1f;
			addColorOp.SetPositionTL(19, 9f);
			addColorOp.text = "Add";
			addColorOp.onClick += new FrbGuiMessage(PropertyWindowMessages.addColorOpClick);
			noColorOp.AddToRadioGroup(addColorOp);
			colorOpWA.Add(addColorOp);

			addSignedColorOp = AddToggleButton();
			addSignedColorOp.sclX = 4f;
			addSignedColorOp.sclY = 1f;
			addSignedColorOp.SetPositionTL(19, 11f);
			addSignedColorOp.text = "AddSigned";
			addSignedColorOp.onClick += new FrbGuiMessage(PropertyWindowMessages.addSignedColorOpClick);
			noColorOp.AddToRadioGroup(addSignedColorOp);
			colorOpWA.Add(addSignedColorOp);

			modulateColorOp = AddToggleButton();
			modulateColorOp.sclX = 4f;
			modulateColorOp.sclY = 1f;
			modulateColorOp.SetPositionTL(19, 13f);
			modulateColorOp.text = "Modulate";
			modulateColorOp.onClick += new FrbGuiMessage(PropertyWindowMessages.modulateColorOpClick);
			noColorOp.AddToRadioGroup(modulateColorOp);
			colorOpWA.Add(modulateColorOp);

			subtractColorOp = AddToggleButton();
			subtractColorOp.sclX = 4f;
			subtractColorOp.sclY = 1f;
			subtractColorOp.SetPositionTL(19, 15f);
			subtractColorOp.text = "Subtract";
			subtractColorOp.onClick += new FrbGuiMessage(PropertyWindowMessages.subtractColorOpClick);
			noColorOp.AddToRadioGroup(subtractColorOp);
			colorOpWA.Add(subtractColorOp);

			#endregion

			#region RED updown
			tempTextDisplay = AddTextDisplay();
			tempTextDisplay.text = "R:";
			tempTextDisplay.SetPositionTL(25, 7f);
			colorOpWA.Add(tempTextDisplay);

			tintRed = AddUpDown();
			tintRed.SetPositionTL(29.5f, 7);
			tintRed.maxValue = 255;
			tintRed.minValue = 0;
			tintRed.sclX = 3;
			tintRed.onGUIChange += new FrbGuiMessage(PropertyWindowMessages.tintRedChange);
			colorOpWA.Add(tintRed);

			tintRedRate = AddUpDown();
			tintRedRate.SetPositionTL(36, 7);
			tintRedRate.sclX = 3;
			tintRedRate.onGUIChange += new FrbGuiMessage(PropertyWindowMessages.tintRedRateChange);
			colorOpWA.Add(tintRedRate);


			#endregion

			#region GREEN updown
			tempTextDisplay = AddTextDisplay();
			tempTextDisplay.text = "G:";
			tempTextDisplay.SetPositionTL(25, 10f);
			colorOpWA.Add(tempTextDisplay);

			tintGreen = AddUpDown();
			tintGreen.SetPositionTL(29.5f, 10);
			tintGreen.maxValue = 255;
			tintGreen.minValue = 0;
			tintGreen.sclX = 3;
			tintGreen.onGUIChange += new FrbGuiMessage(PropertyWindowMessages.tintGreenChange);
			colorOpWA.Add(tintGreen);

			tintGreenRate = AddUpDown();
			tintGreenRate.SetPositionTL(36, 10);
			tintGreenRate.sclX = 3;
			tintGreenRate.onGUIChange += new FrbGuiMessage(PropertyWindowMessages.tintGreenRateChange);
			colorOpWA.Add(tintGreenRate);

			#endregion

			#region BLUE updown
			tempTextDisplay = AddTextDisplay();
			tempTextDisplay.text = "B:";
			tempTextDisplay.SetPositionTL(25, 13f);
			colorOpWA.Add(tempTextDisplay);

			tintBlue = AddUpDown();
			tintBlue.SetPositionTL(29.5f, 13);
			tintBlue.maxValue = 255;
			tintBlue.minValue = 0;
			tintBlue.sclX = 3;
			tintBlue.onGUIChange += new FrbGuiMessage(PropertyWindowMessages.tintBlueChange);
			colorOpWA.Add(tintBlue);

			tintBlueRate = AddUpDown();
			tintBlueRate.SetPositionTL(36, 13);
			tintBlueRate.sclX = 3;
			tintBlueRate.onGUIChange += new FrbGuiMessage(PropertyWindowMessages.tintBlueRateChange);
			colorOpWA.Add(tintBlueRate);

			#endregion
	

			#region transparency
			tempTextDisplay = AddTextDisplay();
			tempTextDisplay.text = "Blend Op Type:";
			tempTextDisplay.SetPositionTL(15, 19);
			colorOpWA.Add(tempTextDisplay);

			fadeDisplay = AddTextDisplay();
			fadeDisplay.SetPositionTL(23f, 21);
			fadeDisplay.text = "Fade:";
			
			colorOpWA.Add(fadeDisplay);

			fadeUpDown = AddUpDown();
			fadeUpDown.SetPositionTL(29.5f, 21);
			fadeUpDown.sclX = 3;
			fadeUpDown.minValue = 0;
			fadeUpDown.maxValue = 255;
			fadeUpDown.onGUIChange += new FrbGuiMessage(PropertyWindowMessages.fadeTextBoxLoseFocus);
			colorOpWA.Add(fadeUpDown);

			fadeRateUpDown = AddUpDown();
			fadeRateUpDown.sclX = 3f;
			fadeRateUpDown.SetPositionTL(36, 21);
			fadeRateUpDown.onGUIChange += new FrbGuiMessage(PropertyWindowMessages.fadeRateTextBoxLoseFocus);
			colorOpWA.Add(fadeRateUpDown);



			regularBlend = AddToggleButton();
			regularBlend.sclY = 1f;
			regularBlend.sclX = 3.5f;
			regularBlend.text = "Regular";
			regularBlend.SetPositionTL(19, 21);
			regularBlend.SetOneAlwaysDown(true);
			regularBlend.onClick += new FrbGuiMessage(PropertyWindowMessages.regularBlendClick);
			colorOpWA.Add(regularBlend);

			additiveBlend = AddToggleButton();
			additiveBlend.sclY = 1f;
			additiveBlend.sclX = 3.5f;
			additiveBlend.text = "Additive";
			additiveBlend.SetPositionTL(19, 23);
			additiveBlend.onClick += new FrbGuiMessage(PropertyWindowMessages.additiveBlendClick);
			regularBlend.AddToRadioGroup(additiveBlend);
			colorOpWA.Add(additiveBlend);


			modulateBlend = AddToggleButton();
			modulateBlend.sclX = 3.5f;
			modulateBlend.sclY = 1f;
			modulateBlend.text = "Modulate";
			modulateBlend.SetPositionTL(19, 25);
			modulateBlend.onClick += new FrbGuiMessage(PropertyWindowMessages.modulateBlendClick);
			regularBlend.AddToRadioGroup(modulateBlend);
			colorOpWA.Add(modulateBlend);

			modulate2XBlend = AddToggleButton();
			modulate2XBlend.sclX = 3.5f;
			modulate2XBlend.sclY = 1f;
			modulate2XBlend.text = "Modulate2X";
			modulate2XBlend.SetPositionTL(19, 27);
			modulate2XBlend.onClick += new FrbGuiMessage(PropertyWindowMessages.modulate2XBlendClick);
			regularBlend.AddToRadioGroup(modulate2XBlend);
			colorOpWA.Add(modulate2XBlend);



			#endregion

			propertiesEditingListBox.AddWindowArray("Tint and fade", colorOpWA);
			colorOpWA.visible = false;


			#endregion

			#region initialVelocityGUI
			initialVelocityGUI = new WindowArray();

			spreadStyle = AddTextDisplay();
			spreadStyle.text = "Spread Style:";
			spreadStyle.SetPositionTL(sclX-5, 4);
				
			initialVelocityGUI.Add(spreadStyle);
				


			spreadStyleComboBox = AddComboBox();
			spreadStyleComboBox.AddItem("square");
			spreadStyleComboBox.AddItem("circle");
			spreadStyleComboBox.sclX = 8;
			spreadStyleComboBox.SetPositionTL(sclX+3.5f, 8f);
			spreadStyleComboBox.onItemClick += new FrbGuiMessage(PropertyWindowMessages.updateSpreadGUI);
			spreadStyleComboBox.onItemClick += new FrbGuiMessage(PropertyWindowMessages.spreadStyleComboBoxItemClick);
			initialVelocityGUI.Add(spreadStyleComboBox);

			initialVelocityGUI.visible = false;

			propertiesEditingListBox.AddWindowArray("Velocity", initialVelocityGUI);


			#region squareSpreadGUI
			
			squareSpreadGUI = new WindowArray();

			#region xVelocity
			xVelocityText = AddTextDisplay();
			xVelocityText.text = "X Vel.:";
			xVelocityText.SetPositionTL(sclX-5, 13);
			squareSpreadGUI.Add(xVelocityText);

			xVelocityType = AddComboBox();
			xVelocityType.SetPositionTL(sclX+3, 13);
			xVelocityType.sclX = 3.5f;
			xVelocityType.AddItem("Fixed");
			xVelocityType.AddItem("Range");
			xVelocityType.text = "Fixed";
			xVelocityType.onItemClick += new FrbGuiMessage(PropertyWindowMessages.updateVelocityRangeGUI);
			xVelocityType.onItemClick += new FrbGuiMessage(PropertyWindowMessages.xVelocityTypeLoseFocus);
			squareSpreadGUI.Add(xVelocityType);

			xMinValue = AddTextBox();
			xMinValue.sclX = 2;
			xMinValue.SetPositionTL(sclX+9, 13);
			xMinValue.format = TextBox.FormatTypes.DECIMAL;
			xMinValue.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.xMinValueLoseFocus);
			squareSpreadGUI.Add(xMinValue);

			xRangeGUI = new WindowArray();
			xTo = AddTextDisplay();
			xTo.text = "to";
			xTo.SetPositionTL(sclX+11.5f, 13);
			xRangeGUI.Add(xTo);

			xMaxValue = AddTextBox();
			xMaxValue.sclX = 2;
			xMaxValue.SetPositionTL(sclX+15.5f, 13);
			xMaxValue.format = TextBox.FormatTypes.DECIMAL;
			xMaxValue.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.xMaxValueLoseFocus);
			xRangeGUI.Add(xMaxValue);

			xRangeGUI.visible = false;
			#endregion
			#region yVelocity
			yVelocityType = AddComboBox();
			yVelocityType.SetPositionTL(sclX+3, 16);
			yVelocityType.sclX = 3.5f;
			yVelocityType.AddItem("Fixed");
			yVelocityType.AddItem("Range");
			yVelocityType.text = "Fixed";
			yVelocityType.onItemClick += new FrbGuiMessage(PropertyWindowMessages.updateVelocityRangeGUI);
			yVelocityType.onItemClick += new FrbGuiMessage(PropertyWindowMessages.yVelocityTypeLoseFocus);
			squareSpreadGUI.Add(yVelocityType);

			yMinValue = AddTextBox();
			yMinValue.sclX = 2;
			yMinValue.SetPositionTL(sclX+9, 16);
			yMinValue.format = TextBox.FormatTypes.DECIMAL;
			yMinValue.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.yMinValueLoseFocus);
			squareSpreadGUI.Add(yMinValue);

			yRangeGUI = new WindowArray();
			yTo = AddTextDisplay();
			yTo.text = "to";
			yTo.SetPositionTL(sclX+11.5f, 16);
			yRangeGUI.Add(yTo);

			yMaxValue = AddTextBox();
			yMaxValue.sclX = 2;
			yMaxValue.SetPositionTL(sclX+15.5f, 16);
			yMaxValue.format = TextBox.FormatTypes.DECIMAL;
			yMaxValue.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.yMaxValueLoseFocus);
			yRangeGUI.Add(yMaxValue);

			yRangeGUI.visible = false;


			yVelocityText = AddTextDisplay();
			yVelocityText.text = "Y Vel.:";
			yVelocityText.SetPositionTL(sclX-5, 16);
			squareSpreadGUI.Add(yVelocityText);
			#endregion
			#region zVelocity

			zVelocityType = AddComboBox();
			zVelocityType.SetPositionTL(sclX+3, 19);
			zVelocityType.sclX = 3.5f;
			zVelocityType.AddItem("Fixed");
			zVelocityType.AddItem("Range");
			zVelocityType.text = "Fixed";
			zVelocityType.onItemClick += new FrbGuiMessage(PropertyWindowMessages.updateVelocityRangeGUI);
			zVelocityType.onItemClick += new FrbGuiMessage(PropertyWindowMessages.zVelocityTypeLoseFocus);
			squareSpreadGUI.Add(zVelocityType);

			zMinValue = AddTextBox();
			zMinValue.sclX = 2;
			zMinValue.SetPositionTL(sclX+9, 19);
			zMinValue.format = TextBox.FormatTypes.DECIMAL;
			zMinValue.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.zMinValueLoseFocus);
			squareSpreadGUI.Add(zMinValue);

			zRangeGUI = new WindowArray();
			zTo = AddTextDisplay();
			zTo.text = "to";
			zTo.SetPositionTL(sclX+11.5f, 19);
			zRangeGUI.Add(zTo);

			zMaxValue = AddTextBox();
			zMaxValue.sclX = 2;
			zMaxValue.SetPositionTL(sclX+15.5f, 19);
			zMaxValue.format = TextBox.FormatTypes.DECIMAL;
			zMaxValue.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.zMaxValueLoseFocus);
			zRangeGUI.Add(zMaxValue);

				
			zVelocityText = AddTextDisplay();
			zVelocityText.text = "Z Vel.:";
			zVelocityText.SetPositionTL(sclX-5, 19);
			squareSpreadGUI.Add(zVelocityText);

			zRangeGUI.visible = false;
			#endregion
			squareSpreadGUI.visible = false;
			#endregion
			#region circleSpreadGUI

			circularSpreadGUI = new WindowArray();

			outwardVelocity = AddTextDisplay();
			outwardVelocity.text = "Outward Velocity:";
			outwardVelocity.SetPositionTL(sclX-5, 13);
			circularSpreadGUI.Add(outwardVelocity);


			outwardVelocityRangeOrFixed = AddComboBox();
			outwardVelocityRangeOrFixed.sclX = 4;
			outwardVelocityRangeOrFixed.AddItem("Fixed");
			outwardVelocityRangeOrFixed.AddItem("Range");
			outwardVelocityRangeOrFixed.SetPositionTL(sclX+9.5f, 13);
			outwardVelocityRangeOrFixed.onItemClick += new FrbGuiMessage(PropertyWindowMessages.updateCircularVelocityRangeGUI);
			outwardVelocityRangeOrFixed.onItemClick += new FrbGuiMessage(PropertyWindowMessages.outwardVelocityRangeOrFixedItemClicked);
			circularSpreadGUI.Add(outwardVelocityRangeOrFixed);


			outwardVelocityTextBox = AddTextBox();
			outwardVelocityTextBox.SetPositionTL(sclX, 16);
			outwardVelocityTextBox.sclX = 2;
			outwardVelocityTextBox.format = TextBox.FormatTypes.DECIMAL;
			outwardVelocityTextBox.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.outwardVelocityTextBoxLoseFocus);
			circularSpreadGUI.Add(outwardVelocityTextBox);

			outwardVelocityRangeGUI = new WindowArray();
			outwardVelocityTo = AddTextDisplay();
			outwardVelocityTo.text = "to";
			outwardVelocityTo.SetPositionTL(sclX+2.5f, 16);
			outwardVelocityRangeGUI.Add(outwardVelocityTo);

			outwardVelocityTextBoxMax = AddTextBox();
			outwardVelocityTextBoxMax.sclX = 2;
			outwardVelocityTextBoxMax.format = TextBox.FormatTypes.DECIMAL;
			outwardVelocityTextBoxMax.SetPositionTL(sclX+6.5f, 16);
			outwardVelocityTextBoxMax.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.outwardVelocityTextBoxMaxLoseFocus);
			outwardVelocityRangeGUI.Add(outwardVelocityTextBoxMax);

			outwardVelocityRangeGUI.visible = false;


			wedgeOrFull = AddComboBox();
			wedgeOrFull.sclX = 5;
			wedgeOrFull.AddItem("circle");
			wedgeOrFull.AddItem("wedge");
			wedgeOrFull.AddItem("sphere");
			wedgeOrFull.text = "circle";
			wedgeOrFull.SetPositionTL(sclX, 19);
			wedgeOrFull.onItemClick += new FrbGuiMessage(PropertyWindowMessages.updateWedgeOrFullGUI);
			wedgeOrFull.onItemClick += new FrbGuiMessage(PropertyWindowMessages.wedgeOrFullItemClick);
			circularSpreadGUI.Add(wedgeOrFull);

			circularSpreadGUI.visible = false;
				
				
			wedgeGUI = new WindowArray();
				
			directionAngle = AddTextDisplay();
			directionAngle.text = "Angle of Direction:";
			directionAngle.SetPositionTL(sclX-5, 22);
			wedgeGUI.Add(directionAngle);

			directionAngleTextBox = AddTextBox();
			directionAngleTextBox.SetPositionTL( sclX+9, 22);
			directionAngleTextBox.sclX = 2;
			directionAngleTextBox.format = TextBox.FormatTypes.DECIMAL;
			directionAngleTextBox.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.directionAngleTextBoxLoseFocus);
			wedgeGUI.Add(directionAngleTextBox);

			spreadAngle = AddTextDisplay();
			spreadAngle.text = "Angle of Spread:";
			spreadAngle.SetPositionTL(sclX-5, 25);
			wedgeGUI.Add(spreadAngle);

			spreadAngleTextBox = AddTextBox();
			spreadAngleTextBox.SetPositionTL( sclX+9, 25);
			spreadAngleTextBox.sclX = 2;
			spreadAngleTextBox.format = TextBox.FormatTypes.DECIMAL;
			spreadAngleTextBox.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.spreadAngleTextBoxLoseFocus);
			wedgeGUI.Add(spreadAngleTextBox);
			wedgeGUI.visible = false;



			#endregion

			#endregion

			#region initialAccelerationGUI

			initialAccelerationGUI = new WindowArray();
			xAccelerationRangeGUI = new WindowArray();
			yAccelerationRangeGUI = new WindowArray();
			zAccelerationRangeGUI = new WindowArray();


			xAccelerationText = AddTextDisplay();
			xAccelerationText.text = "X Acc.:";
			xAccelerationText.SetPositionTL(sclX-5, 5);
			initialAccelerationGUI.Add(xAccelerationText);

			xAccelerationType = AddComboBox();
			xAccelerationType.SetPositionTL(sclX+3, 5);
			xAccelerationType.sclX = 3.5f;
			xAccelerationType.AddItem("Fixed");
			xAccelerationType.AddItem("Range");
			xAccelerationType.text = "Fixed";
			xAccelerationType.onItemClick += new FrbGuiMessage(PropertyWindowMessages.updateAccelerationRangeGUI);
			xAccelerationType.onItemClick += new FrbGuiMessage(PropertyWindowMessages.xAccelerationTypeSelectItem);
			initialAccelerationGUI.Add(xAccelerationType);

			xMinAccelerationValue = AddTextBox();
			xMinAccelerationValue.sclX = 2;
			xMinAccelerationValue.SetPositionTL(sclX+9, 5);
			xMinAccelerationValue.format = TextBox.FormatTypes.DECIMAL;
			xMinAccelerationValue.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.xMinAccelerationValueLoseFocus);
			initialAccelerationGUI.Add(xMinAccelerationValue);

			xAccelerationTo = AddTextDisplay();
			xAccelerationTo.text = "to";
			xAccelerationTo.SetPositionTL(sclX+11.5f, 5);
			xAccelerationRangeGUI.Add(xAccelerationTo);

			xMaxAccelerationValue = AddTextBox();
			xMaxAccelerationValue.sclX = 2;
			xMaxAccelerationValue.SetPositionTL(sclX+15.5f, 5);
			xMaxAccelerationValue.format = TextBox.FormatTypes.DECIMAL;
			xMaxAccelerationValue.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.xMaxAccelerationValueLoseFocus);
			xAccelerationRangeGUI.Add(xMaxAccelerationValue);

			xAccelerationRangeGUI.visible = false;

			yAccelerationType = AddComboBox();
			yAccelerationType.SetPositionTL(sclX+3, 8);
			yAccelerationType.sclX = 3.5f;
			yAccelerationType.AddItem("Fixed");
			yAccelerationType.AddItem("Range");
			yAccelerationType.text = "Fixed";
			yAccelerationType.onItemClick += new FrbGuiMessage(PropertyWindowMessages.updateAccelerationRangeGUI);
			yAccelerationType.onItemClick += new FrbGuiMessage(PropertyWindowMessages.yAccelerationTypeSelectItem);
			initialAccelerationGUI.Add(yAccelerationType);

			yMinAccelerationValue = AddTextBox();
			yMinAccelerationValue.sclX = 2;
			yMinAccelerationValue.SetPositionTL(sclX+9, 8);
			yMinAccelerationValue.format = TextBox.FormatTypes.DECIMAL;
			yMinAccelerationValue.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.yMinAccelerationValueLoseFocus);
			initialAccelerationGUI.Add(yMinAccelerationValue);

			yAccelerationTo = AddTextDisplay();
			yAccelerationTo.text = "to";
			yAccelerationTo.SetPositionTL(sclX+11.5f, 8);
			yAccelerationRangeGUI.Add(yAccelerationTo);

			yMaxAccelerationValue = AddTextBox();
			yMaxAccelerationValue.sclX = 2;
			yMaxAccelerationValue.SetPositionTL(sclX+15.5f, 8);
			yMaxAccelerationValue.format = TextBox.FormatTypes.DECIMAL;
			yMaxAccelerationValue.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.yMaxAccelerationValueLoseFocus);
			yAccelerationRangeGUI.Add(yMaxAccelerationValue);

			yAccelerationRangeGUI.visible = false;


			yAccelerationText = AddTextDisplay();
			yAccelerationText.text = "Y Acc.:";
			yAccelerationText.SetPositionTL(sclX-5, 8);
			initialAccelerationGUI.Add(yAccelerationText);

			zAccelerationType = AddComboBox();
			zAccelerationType.SetPositionTL(sclX+3, 11);
			zAccelerationType.sclX = 3.5f;
			zAccelerationType.AddItem("Fixed");
			zAccelerationType.AddItem("Range");
			zAccelerationType.text = "Fixed";
			zAccelerationType.onItemClick += new FrbGuiMessage(PropertyWindowMessages.updateAccelerationRangeGUI);
			zAccelerationType.onItemClick += new FrbGuiMessage(PropertyWindowMessages.zAccelerationTypeSelectItem);
			initialAccelerationGUI.Add(zAccelerationType);

			zMinAccelerationValue = AddTextBox();
			zMinAccelerationValue.sclX = 2;
			zMinAccelerationValue.SetPositionTL(sclX+9, 11);
			zMinAccelerationValue.format = TextBox.FormatTypes.DECIMAL;
			zMinAccelerationValue.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.zMinAccelerationValueLoseFocus);
			initialAccelerationGUI.Add(zMinAccelerationValue);

			zAccelerationTo = AddTextDisplay();
			zAccelerationTo.text = "to";
			zAccelerationTo.SetPositionTL(sclX+11.5f, 11);
			zAccelerationRangeGUI.Add(zAccelerationTo);

			zMaxAccelerationValue = AddTextBox();
			zMaxAccelerationValue.sclX = 2;
			zMaxAccelerationValue.SetPositionTL(sclX+15.5f, 11);
			zMaxAccelerationValue.format = TextBox.FormatTypes.DECIMAL;
			zMaxAccelerationValue.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.zMaxAccelerationValueLoseFocus);
			zAccelerationRangeGUI.Add(zMaxAccelerationValue);

				
			zAccelerationText = AddTextDisplay();
			zAccelerationText.text = "Z Acc.:";
			zAccelerationText.SetPositionTL(sclX-5, 11);
			initialAccelerationGUI.Add(zAccelerationText);

			zAccelerationRangeGUI.visible = false;
			initialAccelerationGUI.visible = false;

			propertiesEditingListBox.AddWindowArray("Acceleration", initialAccelerationGUI);


			#endregion

			#region emissionTimingGUI
			emissionTimingGUI = new WindowArray();

			emissionEvent = AddTextDisplay();
			emissionEvent.text = "Emission Event:";
			emissionEvent.SetPositionTL(sclX-5, 6);
			emissionTimingGUI.Add(emissionEvent);

			emissionEventComboBox = AddComboBox();
			emissionEventComboBox.sclX = 5;
			emissionEventComboBox.SetPositionTL(sclX+10, 6);
			emissionEventComboBox.AddItem("Call only");
			emissionEventComboBox.AddItem("Timed");
			emissionEventComboBox.text = "Call only";
			emissionEventComboBox.onItemClick += new FrbGuiMessage(PropertyWindowMessages.updateTimingGUI);
			emissionEventComboBox.onItemClick += new FrbGuiMessage(PropertyWindowMessages.emissionEventComboBoxItemSelect);
			emissionTimingGUI.Add(emissionEventComboBox);

			timingGUI = new WindowArray();

			onceEvery = AddTextDisplay();
			onceEvery.SetPositionTL(sclX-5, 10);
			onceEvery.text = "Once every:";
			timingGUI.Add(onceEvery);

			secondFrequencyTextBox = AddTextBox();
			secondFrequencyTextBox.SetPositionTL(sclX+6, 10);
			secondFrequencyTextBox.sclX = 3.5f;
			secondFrequencyTextBox.format = TextBox.FormatTypes.DECIMAL;
			secondFrequencyTextBox.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.secondFrequencyTextBoxLoseFocus);
			timingGUI.Add(secondFrequencyTextBox);

			millisecondsDisplay = AddTextDisplay();
			millisecondsDisplay.text = "ms.";
			millisecondsDisplay.SetPositionTL(sclX+10, 10);
			timingGUI.Add(millisecondsDisplay);

			numberPerEmissionDisplay = AddTextDisplay();
			numberPerEmissionDisplay.text = "Number of particles per emission:";
			numberPerEmissionDisplay.SetPositionTL(sclX-5, 13);
			emissionTimingGUI.Add(numberPerEmissionDisplay);

			numberPerEmissionTextBox = AddTextBox();
			numberPerEmissionTextBox.sclX = 1.7f;
			numberPerEmissionTextBox.SetPositionTL(sclX+17, 13);
			numberPerEmissionTextBox.format = TextBox.FormatTypes.DECIMAL;
			numberPerEmissionTextBox.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.numberPerEmissionTextBoxLoseFocus);
			emissionTimingGUI.Add(numberPerEmissionTextBox);

			emissionTimingGUI.visible = false;
			timingGUI.visible = false;


			propertiesEditingListBox.AddWindowArray("Emission Timing", emissionTimingGUI);

			#endregion
	
			#region instruction GUI
			instructionGUI = new WindowArray();

			instructionListBox = this.AddListBox();
			instructionListBox.SetPositionTL(27f, 11);
			instructionListBox.sclX = 12f;
			instructionListBox.sclY = 10;
			instructionListBox.onHighlight += new FrbGuiMessage(PropertyWindowMessages.ListBoxSelectInstruction);
			instructionGUI.Add(instructionListBox);
			
			runningY = 22;

			addInstructionButton = this.AddButton();
			addInstructionButton.text = "Add Instruction";
			addInstructionButton.sclX = 6f;
			addInstructionButton.SetPositionTL(21f, runningY);
			addInstructionButton.onClick += new FrbGuiMessage(PropertyWindowMessages.AddInstructionButtonClick);
			instructionGUI.Add(addInstructionButton);

			deleteInstructionButton = this.AddButton();
			deleteInstructionButton.text = "Delete Instruction";
			deleteInstructionButton.sclX = 6f;
			deleteInstructionButton.SetPositionTL(33, runningY);
			instructionGUI.Add(deleteInstructionButton);

			runningY += 3;

			typeTextDisplay = this.AddTextDisplay();
			typeTextDisplay.SetPositionTL(15, runningY);
			typeTextDisplay.text = "Type:";
			instructionGUI.Add(typeTextDisplay);

			typeComboBox = this.AddComboBox();
			typeComboBox.SetPositionTL(28, runningY);
			typeComboBox.sclX = 9.5f;
			typeComboBox.text = "<Select Instruction Type>";
			typeComboBox.onItemClick += new FrbGuiMessage(PropertyWindowMessages.ChangeInstructionType);

			#region add the types in the combo box

			typeComboBox.AddItem("<Select Instruction Type>");

			typeComboBox.AddItem("Emit");

			typeComboBox.AddItem("Fade");
			typeComboBox.AddItem("FadeRate");

			typeComboBox.AddItem("X");
			typeComboBox.AddItem("XVelocity");
			typeComboBox.AddItem("XAcceleration");
	
			typeComboBox.AddItem("Y");
			typeComboBox.AddItem("YVelocity");
			typeComboBox.AddItem("YAcceleration");

			typeComboBox.AddItem("Z");
			typeComboBox.AddItem("ZVelocity");
			typeComboBox.AddItem("ZAcceleration");

			#endregion

			instructionGUI.Add(typeComboBox);

			runningY += 2.5f;

			value1TextDisplay = this.AddTextDisplay();
			value1TextDisplay.visible = false;
			value1TextDisplay.SetPositionTL(15, runningY);
			instructionGUI.Add(value1TextDisplay);
			
			value1Window = null;
			
			runningY += 2.5f;

			value2TextDisplay = this.AddTextDisplay();
			value2TextDisplay.visible = false;
			value2TextDisplay.SetPositionTL(15, runningY);
			instructionGUI.Add(value2TextDisplay);

			value2Window = null;

			runningY += 2.5f;

			value3TextDisplay = this.AddTextDisplay();
			value3TextDisplay.visible = false;
			value3TextDisplay.SetPositionTL(15, runningY);
			instructionGUI.Add(value3TextDisplay);

			value3Window = null;

			runningY += 2.5f;

			instructionTimeTextDisplay = this.AddTextDisplay();
			instructionTimeTextDisplay.text = "Delay (ms):";
			instructionTimeTextDisplay.SetPositionTL(15, runningY);
			instructionGUI.Add(instructionTimeTextDisplay);

			instructionTimeTextBox = this.AddTextBox();
			instructionTimeTextBox.format = TextBox.FormatTypes.INTEGER;
			instructionTimeTextBox.sclX = 5;
			instructionTimeTextBox.SetPositionTL(30, runningY);
			instructionTimeTextBox.onLosingFocus += new FrbGuiMessage(PropertyWindowMessages.SetTimeToExecute);
			instructionGUI.Add(instructionTimeTextBox);

			runningY += 2.5f;

			cycleTimeTextDisplay = this.AddTextDisplay();
			cycleTimeTextDisplay.text = "Cycle Time (ms):";
			cycleTimeTextDisplay.SetPositionTL(15, runningY);
			instructionGUI.Add(cycleTimeTextDisplay);

			cycleTimeTextBox = this.AddTextBox();
			cycleTimeTextBox.format = TextBox.FormatTypes.INTEGER;
			cycleTimeTextBox.sclX = 5;
			cycleTimeTextBox.SetPositionTL(30, runningY);
			instructionGUI.Add(cycleTimeTextBox);

			instructionGUI.visible = false;
			propertiesEditingListBox.AddWindowArray("Instructions", instructionGUI);


			#endregion

		}
示例#18
0
 internal TabbedPanel(GuiManager guiManager, Widget parent)
     : base(guiManager, parent)
 {
     _tabs = new List<TabbedPanelTab>(4);
 }
        private void SetUpGui()
        {
            guiManager = new GuiManager(gui, new Vector2(level.WidthInPixels, 0), arial, infoFont);
            float left = level.WidthInPixels + 20;
            float middle = level.WidthInPixels + (gui.Width / 2) - (spikeButton.Width / 2);
            float right = level.WidthInPixels + gui.Width - 20 - spikeButton.Width;
            float bottom = level.HeightInPixels - 20 - waveButton.Height;
            float onebottom = level.HeightInPixels - 360 - waveButton.Height;

            float y = 150;

            guiManager.AddButton(arrowButton, arrowButtonPressed, new Vector2(left, y), "arrow");
            guiManager.AddButton(spikeButton, spikeButtonPressed, new Vector2(middle, y), "spike");
            guiManager.AddButton(bombButton, bombButtonPressed, new Vector2(right, y), "bomb");
            guiManager.AddButton(waveButton, waveButtonPressed, new Vector2(left, bottom), "wave");
            guiManager.AddButton(oneandOneButton, oneandOneButtonPressed, new Vector2(left, onebottom), "oneandone");
            guiManager.AddButton(ofLoveButton, ofLoveButtonPressed, new Vector2(middle, onebottom), "oflove");
            guiManager.AddButton(nuclearButton, nuclearButton, new Vector2(right, onebottom), "nuclear");

            foreach (Button button in guiManager.ButtonList)
            {
                button.OnLeftMouseClick += new Button.FiredEvent(ButtonPressed);

                if (button.Name != "wave")
                {
                    guiManager.AddWindow(window, new Vector2(left, 202), button.Name);
                }
            }
        }
示例#20
0
 public virtual void InitializeGUI()
 {
     guiManager = new GuiManager(this);
 }
示例#21
0
 private MatImage(GuiManager guiManager, Widget parent) : base(guiManager, parent)
 {
 }
示例#22
0
 public BedrockFormManager(NetworkProvider networkProvider, GuiManager guiManager, InputManager input)
 {
     NetworkProvider = networkProvider;
     GuiManager      = guiManager;
     InputManager    = input;
 }
 /// <summary>
 /// Change the visual style of the controls, depending on the settings.
 /// </summary>
 private void ChangeVisualStyle()
 {
     _logController.AddLog(new ApplicationLog("Changing RamStatisticsWindow theme style"));
     GuiManager.ChangeStyle(this);
     _logController.AddLog(new ApplicationLog("Done changing RamStatisticsWindow theme style"));
 }
示例#24
0
        private void ShowSelectedItemInNewWindow(Window callingWindow)
        {
            string messageToShow = ((ListBox)callingWindow).GetFirstHighlightedItem().Text;

            GuiManager.ShowMessageBox(messageToShow, "");
        }
示例#25
0
 /// <summary>
 /// GuiManager must start first
 /// </summary>
 private static void LoadMagicGoodMemoList()
 {
     GuiManager.Load(StorageBase.MagicListFilePath,
                     StorageBase.GoodsListFilePath,
                     StorageBase.MemoListIniFilePath);
 }
示例#26
0
        public void spriteGridOkClick(Window callingWindow)
        {
            if (SelectedObject.GridSpacing <= 0f)
            {
                GuiManager.ShowMessageBox("GridSpacing must be greater than 0.", "SpriteGrid error");
            }
            else if ((SelectedObject.Plane == SpriteGrid.Plane.XZ &&
                      (10000f < (SelectedObject.XRightBound - SelectedObject.XLeftBound) * (SelectedObject.ZFarBound - SelectedObject.ZCloseBound))) && (callingWindow.GetType() != typeof(OkCancelWindow)))
            {
                OkCancelWindow tempWindow = GuiManager.ShowOkCancelWindow("The grid you are creating is large and may result in sluggish performance or freezing of the SE.  What would you like to do?", "Large Grid");
                tempWindow.ScaleX     = 15f;
                tempWindow.OkText     = "Create anyway";
                tempWindow.CancelText = "Cancel conversion";
                tempWindow.OkClick   += new GuiMessage(this.spriteGridOkClick);
            }
            else if (mCreatingNewSpriteGrid)
            {
                SpriteGrid tempGrid = null;
                if (SelectedObject.Plane == SpriteGrid.Plane.XY)
                {
                    tempGrid = new SpriteGrid(this.camera, SpriteGrid.Plane.XY, mBlueprintSprite, null);
                }
                else
                {
                    tempGrid = new SpriteGrid(this.camera, SpriteGrid.Plane.XZ, mBlueprintSprite, null);
                }

                if (string.IsNullOrEmpty(mBlueprintSprite.Name))
                {
                    tempGrid.Name =
                        FileManager.RemovePath(mBlueprintSprite.Texture.Name);
                }
                else
                {
                    tempGrid.Name = mBlueprintSprite.Name;
                }

                tempGrid.XLeftBound   = SelectedObject.XLeftBound;
                tempGrid.XRightBound  = SelectedObject.XRightBound;
                tempGrid.YTopBound    = SelectedObject.YTopBound;
                tempGrid.YBottomBound = SelectedObject.YBottomBound;
                tempGrid.ZCloseBound  = SelectedObject.ZCloseBound;
                tempGrid.ZFarBound    = SelectedObject.ZFarBound;
                tempGrid.GridSpacing  = SelectedObject.GridSpacing;

                this.sesgMan.PopulateAndAddGridToEngine(tempGrid, mBlueprintSprite);

                StringFunctions.MakeNameUnique <SpriteGrid>(tempGrid, GameData.Scene.SpriteGrids);

                //tempGrid.InitializeTextureGrid();
                tempGrid.RefreshPaint();
                this.Visible = false;
                SpriteEditorSettings.EditingSpriteGrids  = true;
                GuiData.ToolsWindow.attachSprite.Enabled = false;
            }
            else
            {
                GameData.Cursor.ClickSprite(null);
                SESpriteGridManager.CurrentSpriteGrid.XLeftBound   = SelectedObject.XLeftBound;
                SESpriteGridManager.CurrentSpriteGrid.XRightBound  = SelectedObject.XRightBound;
                SESpriteGridManager.CurrentSpriteGrid.YTopBound    = SelectedObject.YTopBound;
                SESpriteGridManager.CurrentSpriteGrid.YBottomBound = SelectedObject.YBottomBound;
                SESpriteGridManager.CurrentSpriteGrid.ZCloseBound  = SelectedObject.ZCloseBound;
                SESpriteGridManager.CurrentSpriteGrid.ZFarBound    = SelectedObject.ZFarBound;
                if (SESpriteGridManager.CurrentSpriteGrid.GridSpacing != SelectedObject.GridSpacing)
                {
                    SESpriteGridManager.CurrentSpriteGrid.GridSpacing = SelectedObject.GridSpacing;
                    SESpriteGridManager.CurrentSpriteGrid.ResetTextures();
                    SESpriteGridManager.CurrentSpriteGrid.PopulateGrid(this.camera.X, this.camera.Y, 0f);
                }
                SESpriteGridManager.CurrentSpriteGrid.Manage();
                SESpriteGridManager.CurrentSpriteGrid.RefreshPaint();
                this.Visible = false;
            }
        }
        /// <summary>
        /// Handles the loaded.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param>
        private void HandleLoaded(object sender, RoutedEventArgs e)
        {
            ToolManager manager = CoreSystem.Managers.Find(m => m.Name.Contains("ToolManager")) as ToolManager;
            _guiManager = CoreSystem.Managers.Find(m => m.Name.Contains("GuiManager")) as GuiManager;
            _projectManager = CoreSystem.Managers.Find(m => m.Name.Contains("ProjectManager")) as ProjectManager;

            if (manager == null) {
                Trace.WriteLine("Could not find ToolManager instance in CoreSystem!", LogCategory.Error);
                return;
            }

            if (_guiManager == null) {
                Trace.WriteLine("Could not find NodeSelectionManager instance in CoreSystem!", LogCategory.Error);
                return;
            }

            foreach (Node node in manager.Plugins) {
                if (node is Tool) {
                    Tool tool = node as Tool;
                    this.ListViewAll.Items.Add(node);

                    bool contains = false;

                    foreach (KeyValuePair<string, ListBox> pair in _listBoxes) {
                        if (pair.Key == tool.Category) {
                            pair.Value.Items.Add(tool);
                            contains = true;
                            break;
                        }
                    }

                    if (!contains) {
                        TabItem item = null;
                        string tabName = "Tool" + tool.Category.Replace(' ', '_');
                        foreach (TabItem it in this.ToolTabs.Items) {
                            if (it.Name == tabName) {
                                item = it;
                                break;
                            }
                        }

                        if (item == null) {
                            item = new TabItem();
                            item.Name = tabName;
                            item.Header = tool.Category;
                            this.ToolTabs.Items.Add(item);
                        }
                        ListBox box = new ListBox();
                        item.Content = box;
                        _listBoxes.Add(new KeyValuePair<string, ListBox>(tool.Category, box));
                        box.Items.Add(tool);
                    }

                } else if (node is Operation)
                    this.ListViewAllOperations.Items.Add(node);
            }
        }
示例#28
0
 partial void CustomRemoveFromManagers()
 {
     // Always remove it - if it's not a part of it, no big deal, FRB can handle that
     //if (IsComponentOrInstanceOfComponent())
     GuiManager.RemoveWindow(this);
 }
示例#29
0
文件: TextList.cs 项目: HaKDMoDz/Psy
 internal TextList(GuiManager guiManager, Widget parent = null)
     : base(guiManager, parent)
 {
     Items = new FixedLengthList<TextListRow>();
 }
示例#30
0
 private void Update()
 {
     if (this.m_screenWidth != Screen.width || this.m_screenHeight != Screen.height)
     {
         this.m_screenWidth  = Screen.width;
         this.m_screenHeight = Screen.height;
         this.Layout();
     }
     this.ScaleEpisodes();
     GuiManager.Pointer pointer = GuiManager.GetPointer();
     if (pointer.down)
     {
         this.m_initialInputPos = pointer.position;
         this.m_lastInputPos    = pointer.position;
         this.m_interacting     = true;
     }
     if (pointer.dragging && this.m_interacting && this.m_movableEpisodes)
     {
         Vector3 vector  = this.m_hudCamera.ScreenToWorldPoint(this.m_lastInputPos);
         Vector3 vector2 = this.m_hudCamera.ScreenToWorldPoint(pointer.position);
         this.m_lastInputPos = pointer.position;
         this.m_deltaX       = vector2.x - vector.x;
         if (Mathf.Abs(this.m_deltaX) > 0f)
         {
             this.MoveEpisodes(this.m_deltaX, true);
         }
         Vector3 vector3 = this.m_hudCamera.ScreenToWorldPoint(this.m_initialInputPos);
         if (Mathf.Abs(vector2.x - vector3.x) > 1f)
         {
             Singleton <GuiManager> .Instance.ResetFocus();
         }
     }
     if (pointer.up && this.m_interacting)
     {
         this.m_interacting  = false;
         this.m_moveToCenter = true;
     }
     if (!this.m_interacting && this.m_movableEpisodes && this.m_momentumSlide > 0)
     {
         float num  = Mathf.Abs(this.m_centerEpisode.transform.localPosition.x);
         float num2 = Mathf.Sign(this.m_centerEpisode.transform.localPosition.x);
         if (Mathf.Abs(this.m_deltaX) > 0.1f)
         {
             this.MoveEpisodes(this.m_deltaX, true);
             this.m_deltaX      -= this.m_deltaX / (float)this.m_momentumSlide;
             this.m_moveToCenter = true;
             if (this.m_deltaX < 0.15f && (double)num < 0.2)
             {
                 this.m_deltaX = 0f;
             }
         }
         else if (this.m_centerEpisode != null && this.m_moveToCenter)
         {
             if ((double)num > 0.2)
             {
                 this.MoveEpisodes(-num2 * Time.deltaTime * this.CenteringSpeed, false);
             }
             else
             {
                 this.m_moveToCenter = false;
             }
         }
     }
 }
示例#31
0
    void Start()
    {
        gui = new GuiManager();
        movements = new List<MovementManager>();
        timeCounters = new List<TimeCounter>();

        GameStorage<NetworkEntityPlaying> networkEntityPlayingStorage = GameStorageKeys.NetworkEntityPlaying;
        if (networkEntityPlayingStorage.Exists()) {
            network = networkEntityPlayingStorage.Get();
            networkEntityPlayingStorage.Delete();
            network.LocalMapLoaded();
        }

        input = new InputManager(NextStationSelector, network);

        GuiPlayersPointsElement playersPoints = new GuiPlayersPointsElement();
        gui.AddElement(playersPoints);

        LocalTrainSetuper localTrainSetuper = TrainSetuperFactory.On(this.gameObject).Local();
        localTrainSetuper.Setup();
        Train train = localTrainSetuper.Get();
        movements.Add(getMovementFor(train, isLocalTrain: true, networkPlayer: null, playersPoints: playersPoints, network: network));

        NetworkTrainSetuper networkTrainSetuper = TrainSetuperFactory.On(this.gameObject).Network();
        networkTrainSetuper.Setup();
        NetworkTrainPlayer[] networkPlayers = networkTrainSetuper.Get();
        foreach (NetworkTrainPlayer networkPlayer in networkPlayers) {
            movements.Add(getMovementFor(networkPlayer.Train, isLocalTrain: false, networkPlayer: networkPlayer, playersPoints: playersPoints, network: network));
        }
    }
 void Awake()
 {
     instance = this;
     DontDestroyOnLoad(this);
 }
示例#33
0
 public override void ManualStart(List<Bullet> p_bullet, GameObject p_panel, GuiManager p_gui, GameObject p_aim, AudioSource p_musicSource, AudioClip p_musicLevel)
 {
     base.ManualStart(p_bullet, p_panel, p_gui, p_aim, p_musicSource, p_musicLevel);
     TPSCameraController.camLimitsRotationMax = new Vector2(5, 5);
     TPSCameraController.camLimitsRotationMin = new Vector2(359, 355);
 }
示例#34
0
文件: Slider.cs 项目: HaKDMoDz/Psy
 internal Slider(GuiManager guiManager, Widget parent)
     : base(guiManager, parent)
 {
     _ninePatchHandle = NinePatchHandle.Create("button");
 }
示例#35
0
        public void Render(GuiManager guiManager)
        {
            _graphicsContext.FillMode = FillMode.Solid;
            RenderMode = RenderMode.Normal;
            Begin();
            guiManager.Desktop.HandleRender(this);
            RenderDragBehaviour(guiManager);
            RenderTooltip(guiManager);

            End();
        }
示例#36
0
        private void RenderTooltip(GuiManager guiManager)
        {
            if (guiManager.TooltipWindow == null)
                return;

            // Don't render the tooltip if we're dragging
            var dragWidget = guiManager.DragWidget;
            if (dragWidget != null)
                return;

            var oldOffset = _offset;
            _offset = GetTooltipPosition(guiManager);
            guiManager.TooltipWindow.HandleRender(this);
            _offset = oldOffset;
        }
示例#37
0
        private void RenderDragBehaviour(GuiManager guiManager)
        {
            RenderMode = RenderMode.Dragging;

            var dragWidget = guiManager.DragWidget;
            if (dragWidget == null)
                return;

            var oldOffset = _offset;
            _offset = guiManager.LastMousePosition - dragWidget.Position - (dragWidget.Size / 2);
            dragWidget.HandleRender(this);
            _offset = oldOffset;
        }
示例#38
0
        protected override void LoadContent()
        {
            Stopwatch loadingStopwatch = Stopwatch.StartNew();
            var       options          = Services.GetService <IOptionsProvider>();

            options.Load();

            //	DebugFont = (WrappedSpriteFont) Content.Load<SpriteFont>("Alex.Resources.DebugFont.xnb");

            //	ResourceManager.EntityEffect = Content.Load<Effect>("Alex.Resources.Entityshader.xnb").Clone();
#if DIRECTX
            ResourceManager.BlockEffect    = Content.Load <Effect>("Alex.Resources.Blockshader_dx.xnb").Clone();
            ResourceManager.LightingEffect = Content.Load <Effect>("Alex.Resources.Lightmap_dx.xnb").Clone();
#else
            ResourceManager.BlockEffect    = Content.Load <Effect>("Alex.Resources.Blockshader.xnb").Clone();
            ResourceManager.LightingEffect = Content.Load <Effect>("Alex.Resources.Lightmap.xnb").Clone();
#endif
            //	ResourceManager.BlockEffect.GraphicsDevice = GraphicsDevice;

            _spriteBatch = new SpriteBatch(GraphicsDevice);
            InputManager = new InputManager(this);

            GuiRenderer = new GuiRenderer();
            //GuiRenderer.Init(GraphicsDevice);

            GuiManager = new GuiManager(this, Services, InputManager, GuiRenderer, options);
            GuiManager.Init(GraphicsDevice, Services);

            options.AlexOptions.VideoOptions.FancyGraphics.Bind(
                (value, newValue) =>
            {
                Block.FancyGraphics = newValue;
            });

            Block.FancyGraphics = options.AlexOptions.VideoOptions.FancyGraphics.Value;

            options.AlexOptions.VideoOptions.UseVsync.Bind((value, newValue) => { SetVSync(newValue); });

            if (options.AlexOptions.VideoOptions.UseVsync.Value)
            {
                SetVSync(true);
            }

            options.AlexOptions.VideoOptions.Fullscreen.Bind((value, newValue) => { SetFullscreen(newValue); });

            if (options.AlexOptions.VideoOptions.Fullscreen.Value)
            {
                SetFullscreen(true);
            }

            options.AlexOptions.VideoOptions.LimitFramerate.Bind(
                (value, newValue) =>
            {
                SetFrameRateLimiter(newValue, options.AlexOptions.VideoOptions.MaxFramerate.Value);
            });

            options.AlexOptions.VideoOptions.MaxFramerate.Bind(
                (value, newValue) =>
            {
                SetFrameRateLimiter(options.AlexOptions.VideoOptions.LimitFramerate.Value, newValue);
            });

            if (options.AlexOptions.VideoOptions.LimitFramerate.Value)
            {
                SetFrameRateLimiter(true, options.AlexOptions.VideoOptions.MaxFramerate.Value);
            }

            options.AlexOptions.VideoOptions.Antialiasing.Bind(
                (value, newValue) => { SetAntiAliasing(newValue > 0, newValue); });

            options.AlexOptions.MiscelaneousOptions.Language.Bind(
                (value, newValue) => { GuiRenderer.SetLanguage(newValue); });

            if (!GuiRenderer.SetLanguage(options.AlexOptions.MiscelaneousOptions.Language))
            {
                GuiRenderer.SetLanguage(CultureInfo.InstalledUICulture.Name);
            }

            options.AlexOptions.VideoOptions.SmoothLighting.Bind(
                (value, newValue) => { ResourcePackBlockModel.SmoothLighting = newValue; });

            ResourcePackBlockModel.SmoothLighting = options.AlexOptions.VideoOptions.SmoothLighting.Value;

            SetAntiAliasing(
                options.AlexOptions.VideoOptions.Antialiasing > 0, options.AlexOptions.VideoOptions.Antialiasing.Value);

            GuiDebugHelper = new GuiDebugHelper(GuiManager);

            OnCharacterInput += GuiManager.FocusManager.OnTextInput;

            GameStateManager = new GameStateManager(GraphicsDevice, _spriteBatch, GuiManager);

            var splash = new SplashScreen();
            GameStateManager.AddState("splash", splash);
            GameStateManager.SetActiveState("splash");

            WindowSize = this.Window.ClientBounds.Size;

            //	Log.Info($"Initializing Alex...");
            ThreadPool.QueueUserWorkItem(
                (o) =>
            {
                try
                {
                    InitializeGame(splash);
                }
                catch (Exception ex)
                {
                    Log.Error(ex, $"Could not initialize! {ex}");
                }
                finally
                {
                    loadingStopwatch.Stop();
                    Log.Info($"Startup time: {loadingStopwatch.Elapsed}");
                }
            });
        }
示例#39
0
    public virtual void ManualStart(List<Bullet> p_bullet, GameObject p_panel, GuiManager p_gui, GameObject p_aim, AudioSource p_musicSource, AudioClip p_musicLevel)
    {
        _rigidbody = GetComponent<Rigidbody>();
        _audioSource = GetComponent<AudioSource>();
        _anim = GetComponent<Animator>();
        _flightController = GetComponent<Flight>();
        _collisionManager = GetComponent<AircraftCollisionManager>();

        _flightController.ManualStart();
        TPSCameraController.ManualStart(_rigidbody);
        FPSCameraController.ManualStart(_rigidbody);
        _currentCameraController = TPSCameraController;

        soundController.musicSound = p_musicSource;
        _bullets = p_bullet;
        _instPanel = p_panel;
        _guiManager = p_gui;
        _aimHUD = p_aim;
        _guiManager.energySlider.maxValue = energy;
        _guiManager.energySlider.value = energy;
        _guiManager.heatSlider.maxValue = normalWeaponHeatTime;
        _guiManager.heatSlider.value = _normalWeaponHeatCount;
        _guiManager.armorSlider.maxValue = armorEnergy;
        _guiManager.armorSlider.value = armorEnergy;

        _instPanel.SetActive(false);

        _initialEmissionStartSpeed = fireEmission[0].startSpeed;
        _emissionLightNormalIntensity = lightEmission[0].intensity;

        _animIDBarrelLeft = Animator.StringToHash("BarrelRollLeft");
        _animIDBarrelRight = Animator.StringToHash("BarrelRollRight");
        _animIDShake = Animator.StringToHash("ShakeThird");

        if (currentType != type.AIRCRAFT_3)
        {
            _animIDAcc = Animator.StringToHash("Accelerate");
            _animIDBoost = Animator.StringToHash("Boost");
        }
        if (currentType == type.AIRCRAFT_1)
            _anim.SetBool(_animIDAcc, true);
        _collisionManager.ManualStart();
        _collisionManager.onHitGround += delegate (Vector3 p_point)
        {
            DecreaseEnergy(5f);
            _flightController.ApplyImpactForce(p_point);
                _anim.SetTrigger(_animIDShake);
                Invoke("CancelAnim", 0.5f);
        };
        _collisionManager.onHitStaticObject += delegate (Vector3 p_point)
        {
            DecreaseEnergy(5f);
            _flightController.ApplyImpactForce(p_point);
            _anim.SetTrigger(_animIDShake);
            Invoke("CancelAnim", 0.5f);
        };
        _collisionManager.onHitEnemy += delegate (Vector3 p_point, float p_damage)
        {
                DecreaseEnergy(p_damage);
                //_flightController.ApplyImpactForceMonster(p_point);
                _anim.SetTrigger(_animIDShake);
                Invoke("CancelAnim", 0.8f);
        };
        _collisionManager.onHitEnemyLittle += delegate (Vector3 p_point, float p_damage)
        {
            if (!_inBarrelRoll)
            {
                DecreaseEnergy(p_damage);
                _anim.SetTrigger(_animIDShake);
                Invoke("CancelAnim", 0.5f);
            }
        };

        soundController.PlaySound(SoundController.source.MUSIC, p_musicLevel);
        soundController.PlaySound(SoundController.source.ENGINE, engineSound);

        // Change camera
        soundController.InsideCockpit(false);
        this.enabled = true;
    }
示例#40
0
        public static void AttemptEmitterAttachment(string scnFileName)
        {
            if (EditorData.lastLoadedFile != null)
            {
                for (int i = EditorData.lastLoadedFile.emitters.Count - 1; i > -1; i--)
                {
                    if (EditorData.lastLoadedFile.emitters[i].ParentSpriteName != null)
                    {
                        Sprite tempParentSprite = EditorData.Scene.Sprites.FindWithNameContaining(
                            EditorData.lastLoadedFile.emitters[i].ParentSpriteName);

                        if (tempParentSprite != null)
                        {
                            EditorData.Emitters.FindWithNameContaining(EditorData.lastLoadedFile.emitters[i].Name).AttachTo(tempParentSprite, false);
                            EditorData.lastLoadedFile.emitters.RemoveAt(i);
                        }
                    }
                    else
                    {
                        EditorData.lastLoadedFile.emitters.RemoveAt(i);
                    }
                }
                if (EditorData.lastLoadedFile.emitters.Count == 0)
                {
                    EditorData.lastLoadedFile = null;
                }


                List <string> particlesAttached = new List <string>();
                List <string> spritesAttachedTo = new List <string>();

                foreach (Emitter e in EditorData.Emitters)
                {
                    if (e.Parent != null)
                    {
                        particlesAttached.Add(e.Name);
                        spritesAttachedTo.Add(e.Parent.Name);
                    }
                }

                string message;

                if (particlesAttached.Count == 0)
                {
                    message = "No particles were attached to the loaded scene.\n";
                }
                else
                {
                    message = "The following particles were attached to parent Sprites: \n\n";
                    for (int i = 0; i < particlesAttached.Count; i++)
                    {
                        message += particlesAttached[i] + " attached to " + spritesAttachedTo[i] + "\n";
                    }
                }

                if (EditorData.lastLoadedFile == null)
                {
                    message += "\nAll attachments made successfully!";
                }
                else
                {
                    message += "\nThe following Emitters could not find the appropriate parent Sprites: \n\n";
                    foreach (EmitterSave es in EditorData.lastLoadedFile.emitters)
                    {
                        message += es.Name + " could not find " + es.ParentSpriteName + "\n";
                    }
                }

                if (scnFileName != "")
                {
                    GuiManager.ShowMessageBox(message, FlatRedBall.IO.FileManager.MakeRelative(scnFileName) + " loaded");
                }
                else
                {
                    GuiManager.ShowMessageBox(message, "");
                }
            }
        }
示例#41
0
 // Use this for initialization
 void Start()
 {
     guiManager = GetComponent<GuiManager> ();
     player.FuelChanged += OnFuelChanged;
     player.HealthChanged += OnHealthChanged;
 }
示例#42
0
        private void MenuLoaded(object sender, RoutedEventArgs e)
        {
            try {
                PluginManager pluginManager = CoreSystem.Managers.Find(m => m.Name.Contains("PluginManager")) as PluginManager;
                _guiManager = CoreSystem.Managers.Find(m => m.Name.Contains("GuiManager")) as GuiManager;

                if(_guiManager == null) {
                    _guiManager = new GuiManager();
                    _guiManager.Initialize();
                    CoreSystem.Managers.Add(_guiManager);
                }

                this.DataContext = _guiManager;

                foreach (LibraryInformation libraryInformation in pluginManager.LibraryInformations) {
                    bool contains = false;
                    foreach (MenuItem item in this.HelpMenuItem.Items) {
                        if (item is LibraryInformationMenuItem) {
                            if (((LibraryInformationMenuItem)item).Information == libraryInformation) {
                                contains = true;
                                break;
                            }
                        }
                    }
                    if (contains) continue;

                    LibraryInformationMenuItem childItem = new LibraryInformationMenuItem(libraryInformation);
                    childItem.Click += MenuItem_Click;
                    this.HelpMenuItem.Items.Add(childItem);
                }
            } catch (Exception ex) {
                Trace.WriteLine(ex.Message, ex.StackTrace, LogCategory.Error);
            }
        }
示例#43
0
 // Use this for initialization
 void Awake()
 {
     instance = this;
 }
示例#44
0
 //---------------------------------------------------------
 public void StopAnim(Animation animation)
 {
     GuiManager.GetPlatform(this).StopAnim(animation);
 }
示例#45
0
 void Awake()
 {
     if (instance == null)
     {
         //If I am the first instance, make me the Singleton
         instance = this;
         DontDestroyOnLoad(this);
         Init();
     } else
     {
         //If a Singleton already exists and you find
         //another reference in scene, destroy it!
         if (this != instance)
             Destroy(this.gameObject);
     }
 }
示例#46
0
        //public void parseGameSettingsData()
        //{

        //    // Commented temporarly by EG
        //    try
        //    {
        //        if (gameSettings.data != "")
        //        {
        //            // parse the nData into variables
        //            string[] parts = gameSettings.data.Split(',');
        //            if (parts.Length != 17)
        //            {
        //                throw new Exception("Invalid number of parameters in settings.data string("
        //                    + parts.Length.ToString() + ", should be 17)");
        //            }
        //            maxCardDisplayMode = int.Parse(parts[0]);
        //            bPPatternIndex = int.Parse(parts[1]);
        //            bPPatternCount = int.Parse(parts[2]);
        //            bPPercent = double.Parse(parts[3]);
        //            bPSeed = decimal.Parse(parts[4]);
        //            levelInfo[0].POSetNum = int.Parse(parts[5]);
        //            levelInfo[1].POSetNum = int.Parse(parts[6]);
        //            levelInfo[2].POSetNum = int.Parse(parts[7]);
        //            levelInfo[3].POSetNum = int.Parse(parts[8]);
        //            levelInfo[0].costMulti = int.Parse(parts[9]);
        //            levelInfo[1].costMulti = int.Parse(parts[10]);
        //            levelInfo[2].costMulti = int.Parse(parts[11]);
        //            levelInfo[3].costMulti = int.Parse(parts[12]);
        //            levelInfo[0].prizeMulti = int.Parse(parts[13]);
        //            levelInfo[1].prizeMulti = int.Parse(parts[14]);
        //            levelInfo[2].prizeMulti = int.Parse(parts[15]);
        //            levelInfo[3].prizeMulti = int.Parse(parts[16]);
        //        }
        //        else
        //        {
        //            string tmpErr = "This Game has not been configured by the POS, can not continue!";
        //            logError(tmpErr);
        //            MessageBox.Show(tmpErr);
        //            Application.Exit();
        //        }
        //    }
        //    catch (Exception ex)
        //    {
        //        string tmpErr = "Invalid Data String in GameSettings, " + ex.Message;
        //        logError(tmpErr);
        //        MessageBox.Show(tmpErr);
        //        Application.Exit();
        //    }
        //}

        /// <summary>
        /// constructor
        /// </summary>
        /// <param name="standAlone">run in standalone mode.. no db connection required</param>
        public Bingo(string[] args)
        {
            singleton = this;
            // hide the cursor
            //Cursor.Hide();
            // new generic gameSettings data
            this.FormClosing += new FormClosingEventHandler(Bingo_FormClosing);

            Screen Srn = Screen.PrimaryScreen;

            tempWidth  = Srn.Bounds.Width;
            tempHeight = Srn.Bounds.Height;
            StartScreen stScr = new StartScreen();

            System.Console.WriteLine("OSVersion: {0}", Environment.OSVersion.ToString());


            isXP = (Environment.OSVersion.Version.Major == 5 && Environment.OSVersion.Version.Minor <= 1);
            if (isXP)
            {
                FixWidth = 1366;
            }
            stScr.Show();

            //try to change resolution...
            bool success = false;
            int  i       = 0;

            do
            {
                if (i >= resArray.Length)
                {
                    MessageBox.Show("None of resolutions worked for this hardware...");
                    Application.Exit();
                    return;
                }
                Resolution.CResolution ChangeRes = new Resolution.CResolution(resArray[i].X, resArray[i].Y, ref success);

                i++;
            }while (!success);


            moneySymbol = String.Format("{0:C}", 1.00f);
            moneySymbol = moneySymbol.Substring(0, moneySymbol.IndexOf("1"));
            terminalID  = GameCore.Utility.Functions.GetMachineID();

            string tmpStartupPath = Application.StartupPath;

            FileSearch.SetStartingSearchDirectory(tmpStartupPath + "\\Media\\");

            string tmpErr = "";
            //PARSE COMMAND LINE ARGS
            int    commandLinePIN    = 0;
            string webServiceAddress = "";

            //if (args.Length >= 3)
            //{
            //    if (args[1].Contains("http"))
            //    {
            //        webServiceAddress = args[1].ToString();
            //    }
            //    else
            //    {
            //        tmpErr = "Invalid command line WEB Service Address: " + args[1].Trim() + ", terminating Program!";
            //        Logger.Log(tmpErr);
            //        Bingo.singleton.CloseApplication(tmpErr);
            //        return;
            //    }
            //    // get the installed Game ID from the command line
            //    try
            //    {
            //        commandLinePIN = int.Parse(args[0].Trim());
            //    }
            //    catch
            //    {
            //        tmpErr = "Invalid command line PIN: " + args[0].Trim() + ", terminating Program!";
            //        Logger.Log(tmpErr);
            //        commandLinePIN = 0;
            //        Bingo.singleton.CloseApplication(tmpErr);
            //        return;
            //    }
            //}
            //else
            //{
            //    tmpErr = "Invalid command line Params, terminating Program!";
            //    Logger.Log(tmpErr);
            //    Bingo.singleton.CloseApplication(tmpErr);
            //    return;
            //}
            //===============================
            //global::BreakTheBankTabs1063.Properties.Settings.Default.MagicTouchTabs1034_WEBService_Service = webServiceAddress;
            //// ******* CONNECT TO THE DATABASE... ***********************
            //// CONNECT TO DATABASE SERVICE
            //if (service == null)
            //{
            //    int tries = 0;

            //    while (tries < 5)
            //    {
            //        service = new WEBService.Service();
            //        if (service != null)
            //        {
            //            service.Timeout = 10000;
            //            break;
            //        }
            //        Logger.Log("Attempt to connect to WEB Service #" + tries.ToString() + " failed!");
            //        tries++;
            //    }
            //    if (service == null)
            //    {
            //        Logger.Log("ALL Attempts to connect to WEB Service failed, Closing Application!");
            //        Bingo.singleton.CloseApplication("Error Connecting to WEB Service");
            //    }
            //}
            //try
            //{
            //    // sync with server date and time
            //    setLocalTime.SYSTEMTIME tmpTime = new setLocalTime.SYSTEMTIME();
            //    tmpTime.FromDateTime(service.getServerDateTime());
            //    setLocalTime.SetLocalTime(ref tmpTime);
            //}
            //catch (Exception ex)
            //{
            //    tmpErr = "Exception connecting to WEB Service calling 'service.getServerDateTime()' "
            //           + "Possibly Launcher passed incorrect WEB Service Address, CANNOT CONTINUE!\n\r" + ex.Message;
            //    Logger.Log(tmpErr);
            //    Bingo.singleton.CloseApplication(tmpErr);
            //    return;
            //}
            // get the EGM status
            curEGMData = new WEBService.EGMTerminals();
            // get serial number from command line
            //serialNum = args[2];
            //curEGMData.serialNum = serialNum;
            //if (curEGMData.terminalID == "0")
            //{
            //    // could not get just created EGMTerminals record
            //    tmpErr = service.lastError();
            //    if (tmpErr == "")
            //    {
            //        tmpErr = "Could not get EGMTerminals record for this Unit (TerminalID = " + terminalID.ToString() + "), terminating Program!";
            //    }
            //    logError(tmpErr);
            //    Bingo.singleton.CloseApplication(tmpErr);
            //    return;
            //}
            // now get the system settings
            settings = new WEBService.Settings();
            settings.verifyWinAmt = 1000;

            //gameSettings = service.getGameSettings("");



            //parseGameSettingsData();
            // now get command line PIN data
            //if (commandLinePIN == settings.demoPIN)
            //{
            //    usingDemoPIN = true;
            //    curPIN.PIN = settings.demoPIN;
            //    curPIN.balance = settings.demoAmt;
            //    curPIN.playing = true;
            //    curPIN.playingAt = curEGMData.terminalID;
            //    curPIN.transactionID = 0;
            //    curPIN.netSeconds = (int)Math.Round((settings.demoAmt * 100) / settings.penniesPerMinute);
            //    curPIN.winBalance = 0M;
            //}
            //else
            {
                curPIN         = new WEBService.PINs();
                curPIN.balance = 200;

                //////////////////////////////////////////////////////////////////////
                //                curPIN.netSeconds = 0;
                //              curPIN.winBalance = 0M;
                ////////////////////////////////////////////////////////////////////
                //if (curPIN.PIN == 0)
                //{
                //    // command line PIN not found
                //    tmpErr = service.lastError();
                //    if (tmpErr == "")
                //    {
                //        tmpErr = "Could not get PINs record for PIN " + commandLinePIN.ToString() + ", can not continue!";
                //    }
                //    logError(tmpErr);
                //    Bingo.singleton.CloseApplication(tmpErr);
                //    return;
                //}
            }
            guiManager = new GuiManager();
            //            frmWinVerification = new WinVerification();
            //            Logger.Log("Finished 'Bingo(string[] args)'");
        }