public static void Register()
    {
        style = Settings.GetChoice("style");
        OnScreenInterface.Register(new OSIBossHPBar(), OnScreenInterface.LAYER_INTERFACE_SCREEN);

        if (style == "circular_bottomleft")
        {
            dss1 = new DepthStencilState {
                StencilEnable     = true,
                StencilFunction   = CompareFunction.Equal,
                StencilPass       = StencilOperation.Increment,
                ReferenceStencil  = 0,
                DepthBufferEnable = false,
            };
            bs1 = new BlendState();
            bs1.ColorWriteChannels = ColorWriteChannels.None;

            dss2 = new DepthStencilState {
                StencilEnable     = true,
                StencilFunction   = CompareFunction.NotEqual,
                StencilPass       = StencilOperation.Keep,
                ReferenceStencil  = 0,
                DepthBufferEnable = false,
            };

            rt = new RenderTarget2D(
                Config.mainInstance.graphics.GraphicsDevice,
                1920,
                96,
                false, Config.mainInstance.graphics.GraphicsDevice.DisplayMode.Format, DepthFormat.Depth24Stencil8
                );
            sb = new SpriteBatch(Config.mainInstance.graphics.GraphicsDevice);
        }
    }
Exemple #2
0
 public static void Register()
 {
     OnScreenInterface.Register(new OSIBossHPBar(), OnScreenInterface.LAYER_INTERFACE_SCREEN);
 }
Exemple #3
0
 public static void Register()
 {
     OnScreenInterface.Register(new OSIEffects(), OnScreenInterface.LAYER_TILE);
 }
Exemple #4
0
 public static void Register()
 {
     OnScreenInterface.Register(new OSICrafting(), OnScreenInterface.LAYER_INTERFACE_SCREEN);
 }
 public static void Register()
 {
     OnScreenInterface.Register(new OSIHPBars(), OnScreenInterface.LAYER_INTERFACE_WORLD);
 }
 public static void Register()
 {
     OnScreenInterface.Register(new OSIAchievements(), OnScreenInterface.LAYER_INTERFACE_SCREEN);
 }