예제 #1
0
        public GameScreen()
        {
            escapeWindow         = new EscapeWindow(RootWidget);
            escapeWindow.Visible = false;
            escapeWindow.Closed += () => escapeWindow.Visible = false;
            escapeWindow.Logout += Close;
            escapeWindow.Exit   += App.Exit;

            Container = new Container(Root);
            // HACK: to display character selection screen nicely
            Container.Resize(800, 600);
            Container.Visible = false;

            MapView         = new MapView(Root);
            MapView.Visible = false;

            Calendar         = new Calendar(Root);
            Calendar.Visible = false;

            MenuGrid         = new MenuGrid(Root);
            MenuGrid.Visible = false;

            HudMenu         = new HudMenu(Root);
            HudMenu.Visible = false;

            Belt         = new Belt(Root);
            Belt.Visible = false;

            Chat = new ChatWindow(Root);
            Chat.Resize(300, 200);
            Chat.Visible = false;

            CombatMeter         = new CombatMeter(Root);
            CombatMeter.Visible = false;

            CombatView         = new CombatView(Root);
            CombatView.Visible = false;

            CombatWindow = new CombatWindow(Root);
            CombatWindow.Move(100, 100);
            CombatWindow.Visible = false;

            Aim         = new AimWidget(Root);
            Aim.Visible = false;

            RegisterHotkeys();
        }
예제 #2
0
 protected override void OnInit(Point2D position, object[] args)
 {
     widget         = Session.Screen.Aim;
     widget.Value   = 0;
     widget.Visible = true;
 }