public AControl(AControl owner, int page) { m_owner = owner; m_page = page; Visible = true; m_UserInterface = UltimaServices.GetService <UserInterfaceService>(); }
public WorldInteraction(WorldModel world) { m_Network = UltimaServices.GetService <INetworkClient>(); m_UserInterface = UltimaServices.GetService <UserInterfaceService>(); World = world; }
public HueTestState() : base() { OverHue = -1; m_UserInterface = UltimaServices.GetService <UserInterfaceService>(); }
public LoginState() : base() { m_UserInterface = UltimaServices.GetService <UserInterfaceService>(); m_Login = UltimaServices.GetService <LoginModel>(); m_Input = UltimaServices.GetService <InputManager>(); }
public ColorPicker(AControl owner, int page) : base(owner, page) { HandlesMouseInput = true; m_UserInterface = UltimaServices.GetService <UserInterfaceService>(); }
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>(); }
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>(); }
public Gump(Serial serial, Serial gumpID) : base(null, 0) { Serial = serial; m_GumpID = gumpID; m_UserInterface = UltimaServices.GetService <UserInterfaceService>(); }
public ItemGumpling(AControl owner, Item item) : base(owner, 0) { BuildGumpling(item); HandlesMouseInput = true; _world = UltimaServices.GetService <WorldModel>(); }
protected override void OnInitialize() { m_UserInterface = UltimaServices.GetService <UserInterfaceService>(); m_UserInterface.Cursor = new UI.UltimaCursor(); m_SceneManager = new StateManager(); m_SceneManager.ResetToLoginScreen(); }
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>(); }
public WorldClient(WorldModel world) { World = world; m_RegisteredHandlers = new List <Tuple <int, TypedPacketReceiveHandler> >(); m_Network = UltimaServices.GetService <INetworkClient>(); m_UserInterface = UltimaServices.GetService <UserInterfaceService>(); }
public WorldCursor(WorldModel model) { m_Network = UltimaServices.GetService <INetworkClient>(); m_UserInterface = UltimaServices.GetService <UserInterfaceService>(); m_Input = UltimaServices.GetService <InputManager>(); World = model; InternalRegisterInteraction(); }
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>(); }
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)) //}; }
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; }
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; }
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, "")); }
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>(); }
public virtual void Intitialize() { m_UserInterface = UltimaServices.GetService <UserInterfaceService>(); }
public PaperDollGump(Mobile parent) : base(0, 0) { Parent = parent; m_UserInterface = UltimaServices.GetService <UserInterfaceService>(); m_World = UltimaServices.GetService <WorldModel>(); m_Client = UltimaServices.GetService <INetworkClient>(); IsMovable = true; if (parent == (Mobile)EntityManager.GetPlayerObject()) { AddControl(new GumpPic(this, 0, 0, 0, 0x07d0, 0)); LastControl.MakeDragger(this); LastControl.MakeCloseTarget(this); // HELP AddControl(new Button(this, 0, 185, 44 + 27 * 0, 0x07ef, 0x07f0, ButtonTypes.Activate, 0, (int)Buttons.Help)); ((Button)LastControl).GumpOverID = 0x07f1; // OPTIONS AddControl(new Button(this, 0, 185, 44 + 27 * 1, 0x07d6, 0x07d7, ButtonTypes.Activate, 0, (int)Buttons.Options)); ((Button)LastControl).GumpOverID = 0x07d8; // LOG OUT AddControl(new Button(this, 0, 185, 44 + 27 * 2, 0x07d9, 0x07da, ButtonTypes.Activate, 0, (int)Buttons.LogOut)); ((Button)LastControl).GumpOverID = 0x07db; // QUESTS AddControl(new Button(this, 0, 185, 44 + 27 * 3, 0x57b5, 0x57b7, ButtonTypes.Activate, 0, (int)Buttons.Quests)); ((Button)LastControl).GumpOverID = 0x57b6; // SKILLS AddControl(new Button(this, 0, 185, 44 + 27 * 4, 0x07df, 0x07e0, ButtonTypes.Activate, 0, (int)Buttons.Skills)); ((Button)LastControl).GumpOverID = 0x07e1; // GUILD AddControl(new Button(this, 0, 185, 44 + 27 * 5, 0x57b2, 0x57b4, ButtonTypes.Activate, 0, (int)Buttons.Guild)); ((Button)LastControl).GumpOverID = 0x57b3; // PEACE / WAR AddControl(new Button(this, 0, 185, 44 + 27 * 6, 0x07e5, 0x07e6, ButtonTypes.Activate, 0, (int)Buttons.PeaceWarToggle)); ((Button)LastControl).GumpOverID = 0x07e7; // STATUS AddControl(new Button(this, 0, 185, 44 + 27 * 7, 0x07eb, 0x07ec, ButtonTypes.Activate, 0, (int)Buttons.Status)); ((Button)LastControl).GumpOverID = 0x07ed; // Paperdoll AddControl(new PaperDollInteractable(this, 0, 8, 21) { SourceEntity = Parent }); } else { AddControl(new GumpPic(this, 0, 0, 0, 0x07d1, 0)); LastControl.MakeDragger(this); LastControl.MakeCloseTarget(this); // Paperdoll AddControl(new PaperDollInteractable(this, 0, 8, 21) { SourceEntity = Parent }); } }
public IsometricRenderer() { _input = UltimaServices.GetService <InputManager>(); }
public StateManager() { m_UserInterface = UltimaServices.GetService <UserInterfaceService>(); m_Login = UltimaServices.GetService <LoginModel>(); }