Exemplo n.º 1
0
 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");
     }
 }
Exemplo n.º 2
0
        private GuiTextComponent CreateTextComponent(TextComponent textComponent, Panel parent)
        {
            var textConfig = PopulateTextConfig(textComponent, parent);

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