Пример #1
0
        private void updateStatus()
        {
            Color curcolor;

            curcolor = System.Drawing.Color.FromArgb(100, 255, 255, 255);

            CStaticText tempControl = (CStaticText)controls[0];

            tempControl.ChangeCaption("Bio: " + OuterSpace.thisPlanet.BioDensity.ToString());
            tempControl.ChangeColor(curcolor, false);
            tempControl = (CStaticText)controls[1];
            tempControl.ChangeCaption("Min: " + OuterSpace.thisPlanet.MinDensity.ToString());
            tempControl.ChangeColor(curcolor, false);
        }
Пример #2
0
        private void updateStatus()
        {
            CStaticText tempControl = (CStaticText)controls[2];

            Color curcolor = Color.LimeGreen;

            tempControl.ChangeColor(curcolor, false);
            tempControl.ChangeCaption(OuterSpace.thisPlanet.GetCompounds(0, 0));
            tempControl = (CStaticText)controls[3];
            tempControl.ChangeColor(curcolor, false);
            tempControl.ChangeCaption(OuterSpace.thisPlanet.GetCompounds(0, 1));
            tempControl = (CStaticText)controls[4];
            tempControl.ChangeColor(curcolor, false);
            tempControl.ChangeCaption(OuterSpace.thisPlanet.GetCompounds(0, 2));
            tempControl = (CStaticText)controls[6];
            tempControl.ChangeColor(curcolor, false);
            tempControl.ChangeCaption(OuterSpace.thisPlanet.GetCompounds(1, 0));
            tempControl = (CStaticText)controls[7];
            tempControl.ChangeColor(curcolor, false);
            tempControl.ChangeCaption(OuterSpace.thisPlanet.GetCompounds(1, 1));
            tempControl = (CStaticText)controls[8];
            tempControl.ChangeColor(curcolor, false);
            tempControl.ChangeCaption(OuterSpace.thisPlanet.GetCompounds(1, 2));
            tempControl = (CStaticText)controls[10];
            tempControl.ChangeColor(curcolor, false);
            tempControl.ChangeCaption(OuterSpace.thisPlanet.GetCompounds(2, 0));
            tempControl = (CStaticText)controls[11];
            tempControl.ChangeColor(curcolor, false);
            tempControl.ChangeCaption(OuterSpace.thisPlanet.GetCompounds(2, 1));
            tempControl = (CStaticText)controls[12];
            tempControl.ChangeColor(curcolor, false);
            tempControl.ChangeCaption(OuterSpace.thisPlanet.GetCompounds(2, 2));
            tempControl = (CStaticText)controls[14];
            tempControl.ChangeColor(curcolor, false);
            tempControl.ChangeCaption(OuterSpace.thisPlanet.ClimateRange);
            tempControl = (CStaticText)controls[16];
            tempControl.ChangeColor(curcolor, false);
            tempControl.ChangeCaption(OuterSpace.thisPlanet.Mass.ToString());
            tempControl = (CStaticText)controls[18];
            tempControl.ChangeColor(curcolor, false);
            tempControl.ChangeCaption(OuterSpace.thisPlanet.GetWeather());
            tempControl = (CStaticText)controls[19];
            tempControl.ChangeColor(curcolor, false);
            tempControl.ChangeCaption(OuterSpace.thisPlanet.GetGravity());
        }
Пример #3
0
        private void GameMessage()
        {
            int   i        = 0;
            Color curcolor = Color.BlueViolet;

            while (i < 6 & OuterSpace.msgbox.storedMsgs[i] != null)
            {
                if (OuterSpace.msgbox.noNewMessages || i > 0)
                {
                    curcolor = System.Drawing.Color.FromArgb(100, 255, 255, 255);
                }

                CStaticText tempControl = (CStaticText)controls[i];
                tempControl.ChangeCaption(OuterSpace.msgbox.storedMsgs[i]);
                tempControl.ChangeColor(curcolor, false);
                i = i + 1;
            }
        }
Пример #4
0
        private void updateStatus()
        {
            int   screenX;
            int   screenY;
            int   screenH;
            Color curcolor = Color.FromArgb(100, 255, 255, 255);

            if (!OuterSpace.theGameState.IsGameInState(OuterSpace.GameStates.Landed))
            {
                screenX = (int)OuterSpace.XCor;
                screenY = (int)OuterSpace.YCor;
                screenH = (int)OuterSpace.playership.theta;
            }
            else
            {
                screenX = (int)OuterSpace.TV.X;
                screenY = (int)OuterSpace.TV.Y;
                screenH = (int)OuterSpace.TV.theta;
            }

            CStaticText tempControl = (CStaticText)controls[0];

            tempControl.ChangeCaption("X: " + Convert.ToString(screenX));
            tempControl.ChangeColor(curcolor, false);
            tempControl = (CStaticText)controls[1];
            tempControl.ChangeCaption("Y: " + Convert.ToString(screenY));
            tempControl.ChangeColor(curcolor, false);
            tempControl = (CStaticText)controls[2];
            tempControl.ChangeCaption("H: " + Convert.ToString(screenH));
            tempControl.ChangeColor(curcolor, false);
            tempControl = (CStaticText)controls[5];
            tempControl.ChangeCaption("STARDATE:");
            tempControl.ChangeColor(curcolor, false);
            tempControl = (CStaticText)controls[6];
            curcolor    = Color.LimeGreen;
            tempControl.ChangeCaption(Convert.ToString(OuterSpace.theGameClock.Clock.ToString("MM-dd-yyyy")));
            tempControl.ChangeColor(curcolor, false);

            if (OuterSpace.playership.displaystatus)
            {
                curcolor    = Color.BlueViolet;
                tempControl = (CStaticText)controls[3];
                tempControl.ChangeCaption("SHEILDS");
                tempControl.ChangeColor(curcolor, false);
                tempControl = (CStaticText)controls[4];
                tempControl.ChangeCaption("ARMOR");
                tempControl.ChangeColor(curcolor, false);
                tempControl = (CStaticText)controls[7];
                tempControl.ChangeCaption("WEAPONS");
                tempControl.ChangeColor(curcolor, false);
                tempControl = (CStaticText)controls[8];
                tempControl.ChangeCaption("CARGO");
                tempControl.ChangeColor(curcolor, false);
            }
            else
            {
                tempControl = (CStaticText)controls[3];
                tempControl.ChangeCaption("");
                tempControl.ChangeColor(curcolor, false);
                tempControl = (CStaticText)controls[4];
                tempControl.ChangeCaption("");
                tempControl.ChangeColor(curcolor, false);
                tempControl = (CStaticText)controls[7];
                tempControl.ChangeCaption("");
                tempControl.ChangeColor(curcolor, false);
                tempControl = (CStaticText)controls[8];
                tempControl.ChangeCaption("");
                tempControl.ChangeColor(curcolor, false);
            }
        }