Пример #1
0
 public GQuestionMenuEntry(int x, int y, int xWidth, AnswerEntry a) : base(x, y)
 {
     this.m_yBase  = y;
     this.m_Answer = a;
     this.m_Radio  = new GRadioButton(210, 0xd3, false, 0, 0);
     this.m_Label  = new GWrappedLabel(a.Text, Engine.GetFont(1), Hues.Load(0x455), this.m_Radio.Width + 4, 5, (xWidth - this.m_Radio.Width) - 4);
     this.m_Width  = xWidth;
     this.m_Height = this.m_Radio.Height;
     if ((this.m_Label.Y + this.m_Label.Height) > this.m_Height)
     {
         this.m_Height = this.m_Label.Y + this.m_Label.Height;
     }
     base.m_Children.Add(this.m_Radio);
     base.m_Children.Add(this.m_Label);
 }
Пример #2
0
 public GQuestionMenuEntry(int x, int y, int xWidth, AnswerEntry a)
     : base(x, y)
 {
     this.m_yBase = y;
     this.m_Answer = a;
     this.m_Radio = new GRadioButton(210, 0xd3, false, 0, 0);
     this.m_Label = new GWrappedLabel(a.Text, Engine.GetFont(1), Hues.Load(0x455), this.m_Radio.Width + 4, 5, (xWidth - this.m_Radio.Width) - 4);
     this.m_Width = xWidth;
     this.m_Height = this.m_Radio.Height;
     if ((this.m_Label.Y + this.m_Label.Height) > this.m_Height)
     {
         this.m_Height = this.m_Label.Y + this.m_Label.Height;
     }
     base.m_Children.Add(this.m_Radio);
     base.m_Children.Add(this.m_Label);
 }