private void change_window()
        {
            var window = WINDOWS[WindowIndex];

            if (window.Item2 == null)
            {
                Window = new Tactile.Graphics.Windows.WindowPanel(Global.Content.Load <Texture2D>(
                                                                      window.Item1), window.Item3);
            }
            else
            {
                Window = new Tactile.Graphics.Windows.WindowPanel(Global.Content.Load <Texture2D>(
                                                                      window.Item1), window.Item3,
                                                                  window.Item2[0], window.Item2[1], window.Item2[2],
                                                                  window.Item2[3], window.Item2[4], window.Item2[5]);
            }
            Window.loc = new Vector2(8, 8);
        }
Beispiel #2
0
        protected override void setup_images(int width, int height)
        {
            int window_width = Constants.WorldMap.WORLDMAP_TEXT_BOX_WIDTH;

            var window = new Tactile.Graphics.Windows.WindowPanel(
                Global.Content.Load <Texture2D>(@"Graphics/Windowskins/Worldmap_Text_Box"),
                new Vector2(0, 0), 16, 16, 16, 16, 16, 16);

            window.width        = window_width;
            window.height       = window.texture.Height;
            Text_Background     = window;
            Text_Background.loc = this.loc + new Vector2(-4, 0);

            base.setup_images(width, height);
            Window_Img.window_visible = false;
            add_backlog('\n');
            reset_text_color();
            // Doesn't actually do anything, but the world map text is at the bottom middle
            Speaker = CG_VOICEOVER_SPEAKER;
        }