コード例 #1
0
ファイル: DFrame.cs プロジェクト: meharryp/dermadesignerb
        public DFrame(int xpos, int ypos) : base(xpos, ypos, 120, 60)
        {
            numOfThisType++;

            if (!this.SetVarName(type + numOfThisType.ToString()))
            {
                while (!this.SetVarName(type + numOfThisType.ToString() + Derma.RandomString(4, false)))
                {
                    continue;
                }
            }
        }
コード例 #2
0
ファイル: DTextEntry.cs プロジェクト: meharryp/dermadesignerb
        public DTextEntry(int x, int y) : base(x, y, 50, 20)
        {
            numOfThisType++;

            if (!this.SetVarName(type + numOfThisType.ToString()))
            {
                while (!this.SetVarName(type + numOfThisType.ToString() + Derma.RandomString(4, false)))
                {
                    continue;
                }
            }
        }
コード例 #3
0
        public SpawnIcon(int x, int y) : base(x, y, 61, 61)
        {
            numOfThisType++;

            if (!this.SetVarName(type + numOfThisType.ToString()))
            {
                while (!this.SetVarName(type + numOfThisType.ToString() + Derma.RandomString(4, false)))
                {
                    continue;
                }
            }
        }
コード例 #4
0
        public DNumSlider(int x, int y) : base(x, y, 154, 40)
        {
            numOfThisType++;

            this.text = "DNumSlider";

            if (!this.SetVarName(type + numOfThisType.ToString()))
            {
                while (!this.SetVarName(type + numOfThisType.ToString() + Derma.RandomString(4, false)))
                {
                    continue;
                }
            }
        }
コード例 #5
0
        public DLabel(int xpos, int ypos) : base(xpos, ypos, 60, 20)
        {
            numOfThisType++;

            if (!this.SetVarName(type + numOfThisType.ToString()))
            {
                while (!this.SetVarName(type + numOfThisType.ToString() + Derma.RandomString(4, false)))
                {
                    continue;
                }
            }

            this.width  = (int)labelSize.Width;
            this.height = (int)labelSize.Height;
        }