Beispiel #1
0
 public void RunUI()
 {
     try
     {
         _cdInterface.Draw(Main.spriteBatch);
         _toolBarInterface.Draw(Main.spriteBatch, Main._drawInterfaceGameTime);
     }
     catch (Exception ex)
     {
         Main.NewText(ex);
     }
 }
Beispiel #2
0
        public override void ModifyInterfaceLayers(List <GameInterfaceLayer> layers)
        {
            int MouseTextIndex = layers.FindIndex(layer => layer.Name.Equals("Vanilla: Mouse Text"));

            if (MouseTextIndex != -1)
            {
                layers.Insert(MouseTextIndex, new LegacyGameInterfaceLayer(
                                  "MusicBox: MusicPlayerUI",
                                  delegate
                {
                    InterfaceManager.Draw(Main.spriteBatch);
                    return(true);
                },
                                  InterfaceScaleType.UI)
                              );
            }
        }