public void InitializerButton(string text, TGCVector2 scale, TGCVector2 position)
 {
     Scale    = scale;
     Position = position;
     MarkedButton.SetImage("marked.png");
     MarkedButton.SetInitialScallingAndPosition(scale, position);
     UnmarkedButton.SetImage("unmarked.png");
     UnmarkedButton.SetInitialScallingAndPosition(scale, position);
     Size     = MarkedButton.Size;
     SizeText = new TGCVector2(335 * scale.X * 0.6f, 66 * scale.Y * 0.5f);
     ButtonText.SetTextAndPosition(text, position: Position + SizeText);
 }
        public void Render()
        {
            if (Invisible)
            {
                return;
            }

            if (IsMarked)
            {
                MarkedButton.Render();
            }
            else
            {
                UnmarkedButton.Render();
            }

            ButtonText.Render();
        }
 public void Dispose()
 {
     ButtonText.Dispose();
     MarkedButton.Dispose();
     UnmarkedButton.Dispose();
 }