public override FrameworkElement CreateLogIcon()
        {
            var arrow_source = IconUtils.GetImageSource("icon_arrow");

            var color = IconUtils.GetTeamColor(NewTeam);

            var new_team_icon = IconUtils.CreateTeamIcon(NewTeam);

            new_team_icon.HorizontalAlignment = System.Windows.HorizontalAlignment.Right;
            new_team_icon.Margin = new System.Windows.Thickness(2);
            new_team_icon.Width  = 26;

            var old_team_icon = IconUtils.CreateTeamIcon(OldTeam);

            old_team_icon.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
            old_team_icon.Margin = new System.Windows.Thickness(2);
            old_team_icon.Width  = 26;

            var arrow_image = new Image
            {
                Source              = arrow_source,
                Stretch             = Stretch.Uniform,
                HorizontalAlignment = System.Windows.HorizontalAlignment.Center,
                Margin              = new System.Windows.Thickness(2),
                Width = 26,
            };

            var grid = IconUtils.CreateBaseLogIcon(color);

            grid.Children.Add(old_team_icon);
            grid.Children.Add(arrow_image);
            grid.Children.Add(new_team_icon);

            return(grid);
        }
Beispiel #2
0
        public override FrameworkElement CreateLogIcon()
        {
            var player_source = IconUtils.GetImageSource(Player.Class.ToLowerInvariant());
            var spawn_source  = IconUtils.GetImageSource("icon_respawn");

            var color = IconUtils.GetTeamColor(Player.Team);

            var spawn_image = new Image
            {
                Source              = spawn_source,
                Stretch             = Stretch.Uniform,
                HorizontalAlignment = System.Windows.HorizontalAlignment.Center,
                Margin              = new System.Windows.Thickness(2),
                Width = 26,
            };

            var player_image = new Image
            {
                Source              = player_source,
                Stretch             = Stretch.Uniform,
                HorizontalAlignment = System.Windows.HorizontalAlignment.Left,
                Margin              = new System.Windows.Thickness(2),
                Width = 26,
            };

            var grid = IconUtils.CreateBaseLogIcon(color);

            grid.Children.Add(player_image);
            grid.Children.Add(spawn_image);

            return(grid);
        }
        public override FrameworkElement CreateLogIcon()
        {
            var current_source = IconUtils.GetImageSource(CurrentClass.ToLowerInvariant());
            var old_source     = IconUtils.GetImageSource(OldClass.ToLowerInvariant());
            var arrow_source   = IconUtils.GetImageSource("icon_arrow");

            var color = IconUtils.GetTeamColor(Player.Team);

            var old_image = new Image
            {
                Source              = old_source,
                Stretch             = Stretch.Uniform,
                HorizontalAlignment = HorizontalAlignment.Left,
                Margin              = new Thickness(2),
                Width = 26,
            };

            var arrow_image = new Image
            {
                Source              = arrow_source,
                Stretch             = Stretch.Uniform,
                HorizontalAlignment = HorizontalAlignment.Center,
                Margin              = new Thickness(2),
                Width = 26,
            };

            var current_image = new Image
            {
                Source              = current_source,
                Stretch             = Stretch.Uniform,
                HorizontalAlignment = HorizontalAlignment.Right,
                Margin              = new Thickness(2),
                Width = 26,
            };

            var grid = IconUtils.CreateBaseLogIcon(color);

            grid.Children.Add(current_image);
            grid.Children.Add(arrow_image);
            grid.Children.Add(old_image);

            return(grid);
        }
Beispiel #4
0
        public override System.Windows.FrameworkElement CreateMapIcon()
        {
            var sword_source = IconUtils.GetImageSource("icon_sword");

            return(IconUtils.CreateMapIcon(Player, sword_source));
        }
        public override FrameworkElement CreateMapIcon()
        {
            var death_source = IconUtils.GetImageSource("icon_death");

            return(IconUtils.CreateMapIcon(Player, death_source));
        }
        public override FrameworkElement CreateMapIcon()
        {
            var shield_source = IconUtils.GetImageSource("icon_shield");

            return(IconUtils.CreateMapIcon(Player, shield_source));
        }
Beispiel #7
0
        public override FrameworkElement CreateMapIcon()
        {
            var teleport_source = IconUtils.GetImageSource("icon_teleport");

            return(IconUtils.CreateMapIcon(Player, teleport_source));
        }
        public override FrameworkElement CreateMapIcon()
        {
            var current_source = IconUtils.GetImageSource(CurrentClass.ToLowerInvariant());

            return(IconUtils.CreateMapIcon(Player, current_source));
        }