Exemplo n.º 1
0
        public IngameUiWidget(World world, WorldRenderer worldRenderer)
        {
            World         = world;
            WorldRenderer = worldRenderer;
            RadarPings    = world.WorldActor.Trait <RadarPings>();

            IgnoreChildMouseOver = true;
            IgnoreMouseOver      = true;

            Palette = WorldRenderer.Palette($"player{World.LocalPlayer.InternalName}");

            AddChild(Status = new StatusWidget(this));
            AddChild(Radar  = new RadarWidget(this));
            AddChild(new SidebarWidget(this));
            AddChild(Tooltip = new TooltipWidget());

            Resize();
            TickOuter();
        }
Exemplo n.º 2
0
        public IngameUiWidget(World world, WorldRenderer worldRenderer)
        {
            this.World         = world;
            this.WorldRenderer = worldRenderer;
            this.RadarPings    = world.WorldActor.TraitOrDefault <RadarPings>();

            this.IgnoreChildMouseOver = true;
            this.IgnoreMouseOver      = true;

            this.Palette = this.WorldRenderer.Palette($"player{this.World.LocalPlayer.InternalName}");

            this.AddChild(new StatusWidget(this));
            this.AddChild(this.Radar = new(this));
            this.AddChild(new SidebarWidget(this));
            this.AddChild(this.Tooltip = new());

            this.Resize();
            this.TickOuter();
        }