Esempio n. 1
0
 public HelpPanel() : base(Game.Settings.GameWidth, Game.Settings.GameHeight)
 {
     SearchField      = new TextBox(Width / 2);
     LibraryDisplayer = new DrawingSurface(Width, Height - 4);
     Theme            = new MenuControlsTheme();
     ThemeColors      = UI.ThemeColors.Menu;
     //LibraryDisplayer.Theme = Theme;
     Documentation = new Dictionary <Enum, string>();
     foreach (var keyBinding in Game.Settings.KeyBindings)
     {
         Documentation.Add(keyBinding.Key, keyBinding.Value.ToString());
         Documentation.Add(keyBinding.Value, keyBinding.Key.ToString());
     }
     LibraryDisplayer.Theme       = new MenuButtonTheme();
     LibraryDisplayer.ThemeColors = ThemeColors;
     IsVisible = false;
     Add(SearchField);
     Add(LibraryDisplayer);//currently causing some exceptions that are hard to debug
 }
Esempio n. 2
0
 public MenuPanel(int width, int height, Coord position = new Coord()) : base(width, height)
 {
     Theme       = new MenuControlsTheme();
     ThemeColors = Engine.UI.ThemeColors.Menu;
     Position    = position;
     Selector    = new BasicEntity(Color.White, Color.Black, 16, default, 0, true, true);