private void AddButtonToPanel(GuiButton guiButton, Panel panel)
 {
     if (guiButton != null)
     {
         panel.AddUiObject(guiButton);
     }
     else
     {
         SendDebugMessage("The button was null");
         Debug.WriteLine("The button was null");
     }
 }
        private GuiTextComponent CreateTextComponent(TextComponent textComponent, Panel parent)
        {
            var textConfig = PopulateTextConfig(textComponent, parent);

            return(new GuiTextComponent(textConfig, textConfig.FontType));
        }