상속: FSO.Client.UI.Framework.UIContainer
예제 #1
0
        public UIChatBalloon(UIChatPanel owner)
        {
            Owner = owner;
            var gfx = Content.Content.Get().UIGraphics;
            //TODO: switch entire ui onto real content system

            BPointerBottom = GetTexture(0x1AF0856DDBAC);
            BPointerSide = GetTexture(0x1B00856DDBAC);
            BTiles = GetTexture(0x1B10856DDBAC);

            if (!ProcessedBGFX)
            {
                ProcessedBGFX = true;
                AlphaCopy(BPointerBottom);
                AlphaCopy(BPointerSide);
                AlphaCopy(BTiles);
            }

            BodyTextStyle = TextStyle.DefaultLabel.Clone();
            BodyTextStyle.Size = 10;
            BodyTextStyle.Color = new Color(240, 240, 48);

            ShadowStyle = BodyTextStyle.Clone();
            ShadowStyle.Color = Color.Black;
        }
예제 #2
0
        public UIChatBalloon(UIChatPanel owner)
        {
            Owner = owner;
            var gfx = Content.Content.Get().UIGraphics;

            //TODO: switch entire ui onto real content system

            BPointerBottom = GetTexture(0x1AF0856DDBAC);
            BPointerSide   = GetTexture(0x1B00856DDBAC);
            BTiles         = GetTexture(0x1B10856DDBAC);

            if (!ProcessedBGFX)
            {
                ProcessedBGFX = true;
                AlphaCopy(BPointerBottom);
                AlphaCopy(BPointerSide);
                AlphaCopy(BTiles);
            }

            BodyTextStyle       = TextStyle.DefaultLabel.Clone();
            BodyTextStyle.Size  = 12;
            BodyTextStyle.Color = new Color(240, 240, 48);

            ShadowStyle       = BodyTextStyle.Clone();
            ShadowStyle.Color = Color.Black;

            /*
             * if (!GameFacade.Linux && GlobalSettings.Default.EnableTTS)
             * {
             *  TTSContext = (ITTSContext.Provider == null) ? null : ITTSContext.Provider();
             * }*/
        }
예제 #3
0
        private bool LastRectCutNotable = false; //set if the last rect cut made a noticable change to the cuts array. If true refresh regardless of new cut effect.

        /// <summary>
        /// Creates a new UILotControl instance.
        /// </summary>
        /// <param name="vm">A SimAntics VM instance.</param>
        /// <param name="World">A World instance.</param>
        public UILotControl(FSO.SimAntics.VM vm, LotView.World World)
        {
            this.vm    = vm;
            this.World = World;

            ActiveEntity = vm.Entities.FirstOrDefault(x => x is VMAvatar);
            MouseEvt     = this.ListenForMouse(new Microsoft.Xna.Framework.Rectangle(0, 0,
                                                                                     GlobalSettings.Default.GraphicsWidth, GlobalSettings.Default.GraphicsHeight), OnMouse);

            Queue = new UIInteractionQueue(ActiveEntity, vm);
            this.Add(Queue);

            ObjectHolder = new UIObjectHolder(vm, World, this);
            Touch        = new UILotControlTouchHelper(this);
            Add(Touch);
            SetupQuery();

            ChatPanel = new UIChatPanel(vm, this);
            this.Add(ChatPanel);

            RMBCursor = GetTexture(0x24B00000001); //exploreanchor.bmp

            vm.OnChatEvent  += Vm_OnChatEvent;
            vm.OnDialog     += vm_OnDialog;
            vm.OnBreakpoint += Vm_OnBreakpoint;

            Cheats = new UICheatHandler(this);
            this.Add(Cheats);
            AvatarDS = new UIAvatarDataServiceUpdater(this);
            EODs     = new UIEODController(this);
        }
예제 #4
0
        /// <summary>
        /// Creates a new UILotControl instance.
        /// </summary>
        /// <param name="vm">A SimAntics VM instance.</param>
        /// <param name="World">A World instance.</param>
        public UILotControl(FSO.SimAntics.VM vm, LotView.World World)
        {
            this.vm    = vm;
            this.World = World;

            ActiveEntity = vm.Entities.FirstOrDefault(x => x is VMAvatar);
            MouseEvt     = this.ListenForMouse(new Microsoft.Xna.Framework.Rectangle(0, 0,
                                                                                     GlobalSettings.Default.GraphicsWidth, GlobalSettings.Default.GraphicsHeight), OnMouse);

            Queue = new UIInteractionQueue(ActiveEntity, vm);
            this.Add(Queue);

            ObjectHolder = new UIObjectHolder(vm, World, this);
            QueryPanel   = new UIQueryPanel(World);
            QueryPanel.OnSellBackClicked += ObjectHolder.SellBack;
            QueryPanel.X = 177;
            QueryPanel.Y = GlobalSettings.Default.GraphicsHeight - 228;
            this.Add(QueryPanel);

            ChatPanel = new UIChatPanel(vm, this);
            this.Add(ChatPanel);

            vm.OnChatEvent  += Vm_OnChatEvent;
            vm.OnDialog     += vm_OnDialog;
            vm.OnBreakpoint += Vm_OnBreakpoint;

            Cheats = new UICheatHandler(this);
            EODs   = new UIEODController(this);
        }
예제 #5
0
        public int ClosestDir = 3; //left, up, right, down, N/A

        public UIChatBalloon(UIChatPanel owner)
        {
            Owner = owner;
            var gfx = Content.Content.Get().UIGraphics;

            //TODO: switch entire ui onto real content system

            BPointerBottom = gfx.Get(0x1AF0856DDBAC);
            BPointerSide   = gfx.Get(0x1B00856DDBAC);
            BTiles         = gfx.Get(0x1B10856DDBAC);

            if (!ProcessedBGFX)
            {
                ProcessedBGFX = true;
                AlphaCopy(BPointerBottom);
                AlphaCopy(BPointerSide);
                AlphaCopy(BTiles);
            }

            BodyTextStyle       = TextStyle.DefaultLabel.Clone();
            BodyTextStyle.Size  = 10;
            BodyTextStyle.Color = new Color(240, 240, 48);

            ShadowStyle       = BodyTextStyle.Clone();
            ShadowStyle.Color = Color.Black;
        }
예제 #6
0
        /// <summary>
        /// Creates a new UILotControl instance.
        /// </summary>
        /// <param name="vm">A SimAntics VM instance.</param>
        /// <param name="World">A World instance.</param>
        public UILotControl(FSO.SimAntics.VM vm, LotView.World World)
        {
            this.vm = vm;
            this.World = World;

            ActiveEntity = vm.Entities.FirstOrDefault(x => x is VMAvatar);
            MouseEvt = this.ListenForMouse(new Microsoft.Xna.Framework.Rectangle(0, 0,
                GlobalSettings.Default.GraphicsWidth, GlobalSettings.Default.GraphicsHeight), OnMouse);

            Queue = new UIInteractionQueue(ActiveEntity, vm);
            this.Add(Queue);

            ObjectHolder = new UIObjectHolder(vm, World, this);
            QueryPanel = new UIQueryPanel(World);
            QueryPanel.OnSellBackClicked += ObjectHolder.SellBack;
            QueryPanel.X = 0;
            QueryPanel.Y = -114;
            //this.Add(QueryPanel);

            ChatPanel = new UIChatPanel(vm, this);
            this.Add(ChatPanel);

            RMBCursor = GetTexture(0x24B00000001); //exploreanchor.bmp

            vm.OnChatEvent += Vm_OnChatEvent;
            vm.OnDialog += vm_OnDialog;
            vm.OnBreakpoint += Vm_OnBreakpoint;

            Cheats = new UICheatHandler(this);
            EODs = new UIEODController(this);
        }
예제 #7
0
        /// <summary>
        /// Creates a new UILotControl instance.
        /// </summary>
        /// <param name="vm">A SimAntics VM instance.</param>
        /// <param name="World">A World instance.</param>
        public UILotControl(FSO.SimAntics.VM vm, LotView.World World)
        {
            this.vm = vm;
            this.World = World;

            ActiveEntity = vm.Entities.FirstOrDefault(x => x is VMAvatar);
            MouseEvt = this.ListenForMouse(new Microsoft.Xna.Framework.Rectangle(0, 0,
                GlobalSettings.Default.GraphicsWidth, GlobalSettings.Default.GraphicsHeight), OnMouse);
            testimg = new UIImage();
            testimg.X = 20;
            testimg.Y = 20;
            this.Add(testimg);

            Queue = new UIInteractionQueue(ActiveEntity, vm);
            this.Add(Queue);

            ObjectHolder = new UIObjectHolder(vm, World, this);
            QueryPanel = new UIQueryPanel(World);
            QueryPanel.OnSellBackClicked += ObjectHolder.SellBack;
            QueryPanel.X = 177;
            QueryPanel.Y = GlobalSettings.Default.GraphicsHeight - 228;
            this.Add(QueryPanel);

            ChatPanel = new UIChatPanel(vm, this);
            this.Add(ChatPanel);

            vm.OnDialog += vm_OnDialog;
        }