mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Created middle mouse button icon instead of read ellipse
This commit is contained in:
parent
ef7986db5c
commit
bc634c357b
1
Branding/SVGs/MiddleMouseButton.svg
Normal file
1
Branding/SVGs/MiddleMouseButton.svg
Normal file
@ -0,0 +1 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg width="100%" height="100%" viewBox="0 0 1000 1000" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;"><rect id="Artboard1" x="0" y="0" width="1000" height="1000" style="fill:none;"/><g id="Artboard11" serif:id="Artboard1"><circle cx="500" cy="500" r="425" style="fill:#fff;fill-opacity:0;stroke:#fff;stroke-width:40px;"/><path d="M468.763,410.75l-58.013,0l89.25,-267.75l89.25,267.75l-58.013,0l0,178.5l58.013,0l-89.25,267.75l-89.25,-267.75l58.013,0l0,-178.5Z" style="fill:#fff;fill-opacity:0;stroke:#fff;stroke-width:40px;"/></g></svg>
|
After Width: | Height: | Size: 899 B |
@ -1,6 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Windows;
|
||||
using System.Windows.Media.Imaging;
|
||||
|
||||
@ -18,5 +16,7 @@ namespace Wabbajack
|
||||
UIUtils.BitmapImageFromStream(Application.GetResourceStream(new Uri("pack://application:,,,/Resources/MO2Button.png")).Stream));
|
||||
public static Lazy<BitmapImage> VortexButton { get; } = new Lazy<BitmapImage>(() =>
|
||||
UIUtils.BitmapImageFromStream(Application.GetResourceStream(new Uri("pack://application:,,,/Resources/VortexButton.png")).Stream));
|
||||
public static Lazy<BitmapImage> MiddleMouseButton { get; } = new Lazy<BitmapImage>(() =>
|
||||
UIUtils.BitmapImageFromStream(Application.GetResourceStream(new Uri("pack://application:,,,/Resources/middle_mouse_button.png")).Stream));
|
||||
}
|
||||
}
|
||||
|
BIN
Wabbajack/Resources/middle_mouse_button.png
Normal file
BIN
Wabbajack/Resources/middle_mouse_button.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
@ -9,6 +9,7 @@ using System.Windows.Media;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using ReactiveUI;
|
||||
using Wabbajack.Common;
|
||||
using Wabbajack.Lib;
|
||||
|
||||
namespace Wabbajack
|
||||
@ -120,7 +121,9 @@ namespace Wabbajack
|
||||
private void AddScrollSign(double x, double y)
|
||||
{
|
||||
const double size = 50.0;
|
||||
var icon = new Ellipse { Stroke = Brushes.Red, StrokeThickness = 2.0, Width = 20, Height = 20 };
|
||||
var img = ResourceLinks.MiddleMouseButton.Value;
|
||||
var icon = new Image {Source = img, Width = size, Height = size};
|
||||
//var icon = new Ellipse { Stroke = Brushes.Red, StrokeThickness = 2.0, Width = 20, Height = 20 };
|
||||
|
||||
TopLayer.Children.Add(icon);
|
||||
Canvas.SetLeft(icon, x - size / 2);
|
||||
|
@ -41,6 +41,7 @@
|
||||
<None Remove="Readme.md" />
|
||||
<None Remove="Resources\GameGridIcons\Fallout4.png" />
|
||||
<None Remove="Resources\GameGridIcons\SkyrimSpecialEdition.png" />
|
||||
<None Remove="Resources\Icons\middle_mouse_button.png" />
|
||||
<None Remove="Resources\MO2Button.png" />
|
||||
<None Remove="Resources\VortexButton.png" />
|
||||
<None Remove="Resources\Wabba_Ded.png" />
|
||||
@ -81,6 +82,7 @@
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\GameGridIcons\Fallout4.png" />
|
||||
<Resource Include="Resources\GameGridIcons\SkyrimSpecialEdition.png" />
|
||||
<Resource Include="Resources\middle_mouse_button.png" />
|
||||
<Resource Include="Resources\MO2Button.png" />
|
||||
<Resource Include="Resources\VortexButton.png" />
|
||||
<Resource Include="Resources\Wabba_Ded.png" />
|
||||
|
Loading…
Reference in New Issue
Block a user