Esempio n. 1
0
        public LoginModel()
            : base()
        {
            UltimaServices.Register <LoginModel>(this);

            Client = new LoginClient();
        }
Esempio n. 2
0
 public AControl(AControl owner, int page)
 {
     m_owner         = owner;
     m_page          = page;
     Visible         = true;
     m_UserInterface = UltimaServices.GetService <UserInterfaceService>();
 }
        public HueTestState()
            : base()
        {
            OverHue = -1;

            m_UserInterface = UltimaServices.GetService <UserInterfaceService>();
        }
        public ColorPicker(AControl owner, int page)
            : base(owner, page)
        {
            HandlesMouseInput = true;

            m_UserInterface = UltimaServices.GetService <UserInterfaceService>();
        }
 public LoginState()
     : base()
 {
     m_UserInterface = UltimaServices.GetService <UserInterfaceService>();
     m_Login         = UltimaServices.GetService <LoginModel>();
     m_Input         = UltimaServices.GetService <InputManager>();
 }
Esempio n. 6
0
        public TopMenu(Serial serial)
            : base(serial, 0)
        {
            // maximized view
            AddControl(new ResizePic(this, 1, 0, 0, 9200, 610, 27));
            AddControl(new Button(this, 1, 5, 3, 5540, 5542, 0, 2, 0));
            ((Button)LastControl).GumpOverID = 5541;
            // buttons are 2443 small, 2445 big
            // 30, 93, 201, 309, 417, 480, 543
            // map, paperdollB, inventoryB, journalB, chat, help, < ? >
            AddControl(new Button(this, 1, 30, 3, 2443, 2443, ButtonTypes.Activate, 0, (int)Buttons.Map));
            ((Button)LastControl).Caption = "<basefont color=#000000>Map";
            AddControl(new Button(this, 1, 93, 3, 2445, 2445, ButtonTypes.Activate, 0, (int)Buttons.Paperdoll));
            ((Button)LastControl).Caption = "<basefont color=#000000>Paperdoll";
            AddControl(new Button(this, 1, 201, 3, 2445, 2445, ButtonTypes.Activate, 0, (int)Buttons.Inventory));
            ((Button)LastControl).Caption = "<basefont color=#000000>Inventory";
            AddControl(new Button(this, 1, 309, 3, 2445, 2445, ButtonTypes.Activate, 0, (int)Buttons.Journal));
            ((Button)LastControl).Caption = "<basefont color=#000000>Journal";
            AddControl(new Button(this, 1, 417, 3, 2443, 2443, ButtonTypes.Activate, 0, (int)Buttons.Chat));
            ((Button)LastControl).Caption = "<basefont color=#000000>Chat";
            AddControl(new Button(this, 1, 480, 3, 2443, 2443, ButtonTypes.Activate, 0, (int)Buttons.Help));
            ((Button)LastControl).Caption = "<basefont color=#000000>Help";
            AddControl(new Button(this, 1, 543, 3, 2443, 2443, ButtonTypes.Activate, 0, (int)Buttons.Question));
            ((Button)LastControl).Caption = "<basefont color=#000000>Debug";
            // minimized view
            AddControl(new ResizePic(this, 2, 0, 0, 9200, 30, 27));
            AddControl(new Button(this, 2, 5, 3, 5537, 5539, 0, 1, 0));
            ((Button)LastControl).GumpOverID = 5538;

            m_UserInterface = UltimaServices.GetService <UserInterfaceService>();
            m_World         = UltimaServices.GetService <WorldModel>();
        }
Esempio n. 7
0
        public WorldInteraction(WorldModel world)
        {
            m_Network       = UltimaServices.GetService <INetworkClient>();
            m_UserInterface = UltimaServices.GetService <UserInterfaceService>();

            World = world;
        }
Esempio n. 8
0
        public PaperDollInteractable(AControl owner, int page, int x, int y)
            : base(0, 0)
        {
            m_owner  = owner;
            Position = new Point(x, y);

            m_World = UltimaServices.GetService <WorldModel>();
        }
Esempio n. 9
0
        public Gump(Serial serial, Serial gumpID)
            : base(null, 0)
        {
            Serial   = serial;
            m_GumpID = gumpID;

            m_UserInterface = UltimaServices.GetService <UserInterfaceService>();
        }
Esempio n. 10
0
        protected override void OnInitialize()
        {
            m_UserInterface        = UltimaServices.GetService <UserInterfaceService>();
            m_UserInterface.Cursor = new UI.UltimaCursor();

            m_SceneManager = new StateManager();
            m_SceneManager.ResetToLoginScreen();
        }
        public ItemGumpling(AControl owner, Item item)
            : base(owner, 0)
        {
            BuildGumpling(item);
            HandlesMouseInput = true;

            _world = UltimaServices.GetService <WorldModel>();
        }
Esempio n. 12
0
        public TextEntry(AControl owner, int page)
            : base(owner, page)
        {
            HandlesMouseInput    = true;
            HandlesKeyboardFocus = true;

            m_UserInterface = UltimaServices.GetService <UserInterfaceService>();
        }
        public UserInterfaceService()
        {
            m_Network     = UltimaServices.GetService <INetworkClient>();
            m_Input       = UltimaServices.GetService <InputManager>();
            m_SpriteBatch = UltimaServices.GetService <SpriteBatchUI>();

            m_Controls         = new List <AControl>();
            m_DisposedControls = new List <AControl>();
        }
Esempio n. 14
0
        public WorldClient(WorldModel world)
        {
            World = world;

            m_RegisteredHandlers = new List <Tuple <int, TypedPacketReceiveHandler> >();

            m_Network       = UltimaServices.GetService <INetworkClient>();
            m_UserInterface = UltimaServices.GetService <UserInterfaceService>();
        }
Esempio n. 15
0
        public WorldCursor(WorldModel model)
        {
            m_Network       = UltimaServices.GetService <INetworkClient>();
            m_UserInterface = UltimaServices.GetService <UserInterfaceService>();
            m_Input         = UltimaServices.GetService <InputManager>();

            World = model;
            InternalRegisterInteraction();
        }
Esempio n. 16
0
        public WorldInput(WorldModel world)
        {
            World = world;

            m_Network       = UltimaServices.GetService <INetworkClient>();
            m_UserInterface = UltimaServices.GetService <UserInterfaceService>();
            m_Input         = UltimaServices.GetService <InputManager>();

            MousePick = new MousePicking();
        }
        public RenderedText(string text, bool asHTML, int maxWidth = 200)
        {
            Text     = text;
            AsHTML   = asHTML;
            MaxWidth = maxWidth;

            Regions = new Regions();
            Images  = new Images();

            m_SpriteBatch = UltimaServices.GetService <SpriteBatchUI>();
        }
Esempio n. 18
0
        protected override void OnDispose()
        {
            UltimaServices.Unregister <LoginModel>(this);

            Client.Dispose();
            Client = null;

            m_UserInterface.Reset();
            m_SceneManager.CurrentState = null;
            m_SceneManager = null;
        }
Esempio n. 19
0
        public void Initialize()
        {
            _spriteBatch = UltimaServices.GetService <SpriteBatch3D>();

            //_vertexBufferStretched = new [] {
            //    new VertexPositionNormalTextureHue(new Vector3(), new Vector3(),  new Vector3(0, 0, 0)),
            //    new VertexPositionNormalTextureHue(new Vector3(), new Vector3(),  new Vector3(1, 0, 0)),
            //    new VertexPositionNormalTextureHue(new Vector3(), new Vector3(),  new Vector3(0, 1, 0)),
            //    new VertexPositionNormalTextureHue(new Vector3(), new Vector3(),  new Vector3(1, 1, 0))
            //};
        }
Esempio n. 20
0
        public LoginClient()
        {
            m_Network       = UltimaServices.GetService <INetworkClient>();
            m_Engine        = UltimaServices.GetService <UltimaEngine>();
            m_UserInterface = UltimaServices.GetService <UserInterfaceService>();

            Status = LoginClientStatus.Unconnected;

            m_RegisteredHandlers = new List <Tuple <int, TypedPacketReceiveHandler> >();

            Initialize();
        }
        public override void Intitialize()
        {
            base.Intitialize();

            m_UserInterface = UltimaServices.GetService <UserInterfaceService>();
            m_Login         = UltimaServices.GetService <LoginModel>();

            m_SelectServerGump = (SelectServerGump)m_UserInterface.AddControl(new SelectServerGump(), 0, 0);
            m_SelectServerGump.OnBackToLoginScreen += OnBackToLoginScreen;
            m_SelectServerGump.OnSelectLastServer  += OnSelectLastServer;
            m_SelectServerGump.OnSelectServer      += OnSelectServer;
        }
Esempio n. 22
0
        public ChatWindow()
            : base(0, 0)
        {
            m_TextEntries    = new List <ChatLineTimed>();
            m_MessageHistory = new List <string>();
            Width            = 400;
            Enabled          = true;

            m_Input         = UltimaServices.GetService <InputManager>();
            m_UserInterface = UltimaServices.GetService <UserInterfaceService>();
            m_World         = UltimaServices.GetService <WorldModel>();
        }
        public override void Intitialize()
        {
            base.Intitialize();

            m_UserInterface = UltimaServices.GetService <UserInterfaceService>();
            m_Login         = UltimaServices.GetService <LoginModel>();

            m_Gump = (LoggingInGump)m_UserInterface.AddControl(new LoggingInGump(), 0, 0);
            m_Gump.OnCancelLogin += OnCancelLogin;

            m_Login.Client.Disconnect();
        }
        public override void Intitialize()
        {
            base.Intitialize();

            m_UserInterface = UltimaServices.GetService <UserInterfaceService>();
            m_Login         = UltimaServices.GetService <LoginModel>();

            m_CharListGump = (CharacterListGump)m_UserInterface.AddControl(new CharacterListGump(), 0, 0);
            m_CharListGump.OnBackToSelectServer += OnBackToSelectServer;
            m_CharListGump.OnLoginWithCharacter += OnLoginWithCharacter;
            m_CharListGump.OnDeleteCharacter    += OnDeleteCharacter;
            m_CharListGump.OnNewCharacter       += OnNewCharacter;
        }
Esempio n. 25
0
        public SkillsGump()
            : base(0, 0)
        {
            m_World = UltimaServices.GetService <WorldModel>();

            AddControl(m_scroll  = new ExpandableScroll(this, 0, 0, 0, 200));
            m_scroll.TitleGumpID = 0x834;
            m_scroll.MakeDragger(this);
            m_scroll.MakeCloseTarget(this);
            IsMovable = true;

            AddControl(m_list = new HtmlGump(this, 0, 10, 20, 180, 100, 0, 1, ""));
        }
Esempio n. 26
0
        protected override void OnDispose()
        {
            UltimaServices.Unregister <WorldModel>(this);

            EntityManager.Reset();
            Entities = null;

            Effects = null;

            Input.Dispose();
            Input = null;

            Interaction = null;

            Client.Dispose();
            Client = null;
        }
Esempio n. 27
0
        public WorldModel()
            : base()
        {
            UltimaServices.Register <WorldModel>(this);

            m_Engine        = UltimaServices.GetService <UltimaEngine>();
            m_Network       = UltimaServices.GetService <INetworkClient>();
            m_UserInterface = UltimaServices.GetService <UserInterfaceService>();

            Entities = new EntityManager(this);
            EntityManager.Reset(true);

            Effects     = new EffectsManager(this);
            Input       = new WorldInput(this);
            Interaction = new WorldInteraction(this);
            Client      = new WorldClient(this);
        }
 public CreateCharacterState()
     : base()
 {
     m_UserInterface = UltimaServices.GetService <UserInterfaceService>();
     m_Login         = UltimaServices.GetService <LoginModel>();
 }
Esempio n. 29
0
 public virtual void Intitialize()
 {
     m_UserInterface = UltimaServices.GetService <UserInterfaceService>();
 }
Esempio n. 30
0
 public IsometricRenderer()
 {
     _input = UltimaServices.GetService <InputManager>();
 }