Example #1
0
        public GameScreen(RenderWindow window)
        {
            Window = window;
            GuiView = new View(Window.GetView());
            GameGuiView = new View(Window.GetView());
            Gui = new EditorBaseWidget(Window, GuiView);
            Gui.Dimension = GuiView.Size;

            PlayerHdl.Instance.Init("");

            MapHandler.Instance.SetGameRoot(Window);
            MapMan.Instance.InitMap(GameData.INIT_MAP);

            Gui.AddWindow(MiscWidget.Instance, true);
            Gui.AddWindow(MapHandler.Instance, true);
            Gui.AddWindow(MapMan.Instance, true);
            Gui.AddWindow(PointCreator.Instance);
            Gui.AddWindow(WarpPointCreator.Instance);
            Gui.AddWindow(MapCreator.Instance);
            Gui.AddWindow(ObjectMan.Instance);
            Gui.AddWindow(ObjectCreator.Instance);
            Gui.AddWindow(TextureMan.Instance);
            Gui.AddWindow(TextureCreator.Instance);
            Gui.AddWindow(TextureRemover.Instance);
            Gui.AddWindow(InformationDialogBox.Instance);
            Gui.AddWindow(ConfirmationDialogBox.Instance);
            Gui.AddWindow(BoundingBoxCreator.Instance);
            Gui.AddWindow(TextureRectDrawer.Instance);
            Gui.AddWindow(TileMan.Instance);
            Gui.AddWindow(TileSetMan.Instance);
            Gui.AddWindow(TileSetCreator.Instance);
            Gui.AddWindow(TileCreator.Instance);
            Gui.AddWindow(EventCreator.Instance);
            Gui.AddWindow(ActionCreator.Instance);

            Gui.AddKeyWindowBind(Keyboard.Key.M, MapMan.Instance);
            Gui.AddKeyWindowBind(Keyboard.Key.G, MiscWidget.Instance);
            Gui.AddKeyWindowBind(Keyboard.Key.O, ObjectMan.Instance);
            Gui.AddKeyWindowBind(Keyboard.Key.T, TextureMan.Instance);
            Gui.AddKeyWindowBind(Keyboard.Key.H, MapHandler.Instance);
            Gui.AddKeyWindowBind(Keyboard.Key.I, TileMan.Instance);
            Gui.AddKeyWindowBind(Keyboard.Key.L, TileSetMan.Instance);

            PlayerHdl.Vlad.ToScript();
        }