public override void Draw(GraphicsDevice device) { PostProcessor postprocessor = PostProcessor.GetInstance(device); postprocessor.Blur(postprocessor.result_rt, postprocessor.result_rt, 0.5f + 8 * background); float x, y; x = (device.PresentationParameters.BackBufferWidth - logo.width) / 2f; y = (device.PresentationParameters.BackBufferHeight - logo.height) / 2f; SpriteRenderer spriterenderer = SpriteRenderer.GetInstance(device); spriterenderer.Begin(null); spriterenderer.Add(logo, new Color(1f, 1f, 1f, alpha), x, y, logo.width, logo.height, 0); spriterenderer.End(); }
public override void Draw(GraphicsDevice device) { PostProcessor postprocessor = PostProcessor.GetInstance(device); postprocessor.Blur(postprocessor.result_rt, postprocessor.result_rt, 0.5f + 8 * fade_value); SpriteRenderer spriterenderer = SpriteRenderer.GetInstance(device); spriterenderer.Begin(null); spriterenderer.AddString(font_title, title.ToUpper(), GetX(), GetY(), 0, title_scale, title_kerring, 0, 0, 0, new Color(1f, 1f, 1f, fade_value)); for (int i = 0; i < options.Length; i++) { spriterenderer.AddString(font_option, options[i].name.ToUpper(), GetOptionPositionX(i), GetOptionPositionY(i), 0, option_scale /*+ (options[i].value - default_intensity) * option_scale * 0.1f*/, option_kerring, 0, 0, 0, new Color(options[i].value, options[i].value, options[i].value, fade_value)); } spriterenderer.AddString(font_description, options[curr_option].desc.ToUpper(), GetX(), GetY() + (font_title.height * title_scale * 3) + options.Length * (font_option.height + font_option.height * 0.5f) * option_scale, 0, desc_scale, desc_kerring, 0, 0, 0, new Color(1f, 1f, 1f, fade_value / 2)); //spriterenderer.AddString(Resources.arial10px_font, string.Format("transition:{0:0.000} switch:{1:0.000} scroll:{2:0.000}", fade_value, time_1, time_2), x, y-12); spriterenderer.End(); }