Implementing Neighborhood design. + Adding Assets

This commit is contained in:
Greg
2022-02-19 23:13:47 -07:00
parent f29118dd4f
commit 77bec51ff1
88 changed files with 733 additions and 277 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 206 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 266 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 195 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 534 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 842 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 270 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 534 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 334 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 534 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 157 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 223 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 286 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

+6 -6
View File
@@ -11,7 +11,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Playstation", "Playstation"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Misc", "Misc", "{DBCE3AAD-373D-4EB6-8964-2A4BE1E9F575}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OrbisNeighborHood", "OrbisNeighborHood\OrbisNeighborHood.csproj", "{0969B39B-D5AA-4DFB-B0C4-B881AB3A0CF8}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OrbisNeighborHood", "Windows\OrbisNeighborHood\OrbisNeighborHood.csproj", "{81B068F7-776C-429F-BB7B-5563F75F1A39}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -19,17 +19,17 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{0969B39B-D5AA-4DFB-B0C4-B881AB3A0CF8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0969B39B-D5AA-4DFB-B0C4-B881AB3A0CF8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0969B39B-D5AA-4DFB-B0C4-B881AB3A0CF8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0969B39B-D5AA-4DFB-B0C4-B881AB3A0CF8}.Release|Any CPU.Build.0 = Release|Any CPU
{81B068F7-776C-429F-BB7B-5563F75F1A39}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{81B068F7-776C-429F-BB7B-5563F75F1A39}.Debug|Any CPU.Build.0 = Debug|Any CPU
{81B068F7-776C-429F-BB7B-5563F75F1A39}.Release|Any CPU.ActiveCfg = Release|Any CPU
{81B068F7-776C-429F-BB7B-5563F75F1A39}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{72E29C1E-8723-4885-A5ED-BD3A929D81B6} = {8F0E1457-FB1E-47A4-9DA8-74A6B757CAA4}
{0969B39B-D5AA-4DFB-B0C4-B881AB3A0CF8} = {8F0E1457-FB1E-47A4-9DA8-74A6B757CAA4}
{81B068F7-776C-429F-BB7B-5563F75F1A39} = {8F0E1457-FB1E-47A4-9DA8-74A6B757CAA4}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {4B6EE1D0-5ADF-44A2-B6EE-E5C8E110EE47}
-9
View File
@@ -1,9 +0,0 @@
<Application x:Class="OrbisNeighborHood.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:OrbisNeighborHood"
StartupUri="MainWindow.xaml">
<Application.Resources>
</Application.Resources>
</Application>
-12
View File
@@ -1,12 +0,0 @@
<Window x:Class="OrbisNeighborHood.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:OrbisNeighborHood"
mc:Ignorable="d"
Title="NeighborHood" Height="450" Width="800">
<Grid>
</Grid>
</Window>
@@ -1,10 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWPF>true</UseWPF>
</PropertyGroup>
</Project>
+34
View File
@@ -0,0 +1,34 @@
<Application x:Class="OrbisNeighborHood.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:OrbisNeighborHood"
StartupUri="NeighborHood.xaml"
xmlns:skins="clr-namespace:SimpleUI.Skins;assembly=SimpleUI"
xmlns:viewModel="clr-namespace:OrbisNeighborHood.MVVM.ViewModel"
xmlns:view="clr-namespace:OrbisNeighborHood.MVVM.View">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<!-- SimpleUI -->
<skins:SkinResourceDictionary/>
<ResourceDictionary Source="/SimpleUI;component/Skins/MyTheme.xaml"/>
<!-- Custom Themes -->
<ResourceDictionary Source="Theme/MenuButtonTheme.xaml"/>
</ResourceDictionary.MergedDictionaries>
<!-- View Models -->
<DataTemplate DataType="{x:Type viewModel:DashboardViewModel}">
<view:DashboardView/>
</DataTemplate>
<DataTemplate DataType="{x:Type viewModel:TargetViewModel}">
<view:TargetView/>
</DataTemplate>
<DataTemplate DataType="{x:Type viewModel:SettingsViewModel}">
<view:SettingsView/>
</DataTemplate>
</ResourceDictionary>
</Application.Resources>
</Application>
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace OrbisNeighborHood.Core
{
class ObservableObject : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
protected void OnPropertyChanged([CallerMemberName] string name = null)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name));
}
}
}
@@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
namespace OrbisNeighborHood.Core
{
class RelayCommand : ICommand
{
private Action<object> _execute;
private Func<object, bool> _canExecute;
public event EventHandler CanExecuteChanged
{
add { CommandManager.RequerySuggested += value; }
remove { CommandManager.RequerySuggested -= value; }
}
public RelayCommand(Action<object> execute, Func<object, bool> canExecute = null)
{
_execute = execute;
_canExecute = canExecute;
}
public bool CanExecute(object paramater)
{
return _canExecute == null || _canExecute(paramater);
}
public void Execute(object paramater)
{
_execute(paramater);
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 534 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 534 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 334 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 534 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 KiB

@@ -0,0 +1,183 @@
<UserControl x:Class="OrbisNeighborHood.MVVM.View.DashboardView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:OrbisNeighborHood.MVVM.View"
mc:Ignorable="d"
Background="Transparent"
d:DesignHeight="585" d:DesignWidth="700">
<StackPanel>
<TextBlock Text="Dashboard (OSM's Console)"
Foreground="{DynamicResource Text}"
FontSize="28"
HorizontalAlignment="Left"
Margin="30,10,0,10"/>
<!-- First Row -->
<StackPanel Orientation="Horizontal" Height="175">
<Border Width="305"
Height="160"
VerticalAlignment="Center"
Margin="30,0,30,0"
CornerRadius="10"
Background="{DynamicResource ControlDarkBackground}">
</Border>
<Border Width="305"
Height="160"
VerticalAlignment="Center"
Margin="0,0,30,0"
CornerRadius="10"
Background="{DynamicResource ControlDarkBackground}">
</Border>
</StackPanel>
<!-- Second Row -->
<StackPanel Orientation="Horizontal" Height="175">
<Border Width="305"
Height="160"
VerticalAlignment="Center"
Margin="30,0,30,0"
CornerRadius="10"
Background="{DynamicResource ControlDarkBackground}">
</Border>
<Border Width="305"
Height="160"
VerticalAlignment="Center"
Margin="0,0,30,0"
CornerRadius="10"
Background="{DynamicResource ControlDarkBackground}">
</Border>
</StackPanel>
<!-- App Selection -->
<StackPanel Margin="0,0,0,0">
<TextBlock Text="Orbis Suite Apps"
Foreground="{DynamicResource Text}"
FontSize="20"
HorizontalAlignment="Left"
Margin="30,10,0,10"/>
<!-- Orbis Suite Apps -->
<Grid Margin="30 0 30 0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="0" />
</Grid.ColumnDefinitions>
<!-- Peek n' Poke -->
<Border Grid.Column="1"
Width="116"
Height="116"
CornerRadius="10"
Background="{DynamicResource ControlDarkBackground}">
<StackPanel>
<Image Margin="30 20 30 0" Source="/OrbisNeighborHood;component/Images/Icons/OrbisPeeknPoke.ico"/>
<TextBlock Text="Peek n' Poke"
FontSize="13"
Margin="0 10 0 0"
Foreground="{DynamicResource Text}"
HorizontalAlignment="Center"/>
</StackPanel>
</Border>
<!-- Module Manager -->
<Border Grid.Column="3"
Width="116"
Height="116"
CornerRadius="10"
Background="{DynamicResource ControlDarkBackground}">
<StackPanel>
<Image Margin="30 20 30 0" Source="/OrbisNeighborHood;component/Images/Icons/OrbisModuleManager.ico"/>
<TextBlock Text="Module Manager"
FontSize="13"
Margin="0 10 0 0"
Foreground="{DynamicResource Text}"
HorizontalAlignment="Center"/>
</StackPanel>
</Border>
<!-- Debugger -->
<Border Grid.Column="5"
Width="116"
Height="116"
CornerRadius="10"
Background="{DynamicResource ControlDarkBackground}">
<StackPanel>
<Image Margin="30 20 30 0" Source="/OrbisNeighborHood;component/Images/Icons/OrbisDebugger.ico"/>
<TextBlock Text="Debugger"
FontSize="13"
Margin="0 10 0 0"
Foreground="{DynamicResource Text}"
HorizontalAlignment="Center"/>
</StackPanel>
</Border>
<!-- Console Output -->
<Border Grid.Column="7"
Width="116"
Height="116"
CornerRadius="10"
Background="{DynamicResource ControlDarkBackground}">
<StackPanel>
<Image Margin="30 20 30 0" Source="/OrbisNeighborHood;component/Images/Icons/OrbisConsoleOutput.ico"/>
<TextBlock Text="Console Output"
FontSize="13"
Margin="0 10 0 0"
Foreground="{DynamicResource Text}"
HorizontalAlignment="Center"/>
</StackPanel>
</Border>
<!-- Taskbar App -->
<Border Grid.Column="9"
Width="116"
Height="116"
CornerRadius="10"
Background="{DynamicResource ControlDarkBackground}">
<StackPanel>
<Image Margin="30 20 30 0" Source="/OrbisNeighborHood;component/Images/Icons/OrbisTaskbarApp.ico"/>
<TextBlock Text="Taskbar App"
FontSize="13"
Margin="0 10 0 0"
Foreground="{DynamicResource Text}"
HorizontalAlignment="Center"/>
</StackPanel>
</Border>
</Grid>
</StackPanel>
</StackPanel>
</UserControl>
@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace OrbisNeighborHood.MVVM.View
{
/// <summary>
/// Interaction logic for DashboardView.xaml
/// </summary>
public partial class DashboardView : UserControl
{
public DashboardView()
{
InitializeComponent();
}
}
}
@@ -0,0 +1,12 @@
<UserControl x:Class="OrbisNeighborHood.MVVM.View.SettingsView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:OrbisNeighborHood.MVVM.View"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Grid>
</Grid>
</UserControl>
@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace OrbisNeighborHood.MVVM.View
{
/// <summary>
/// Interaction logic for SettingsView.xaml
/// </summary>
public partial class SettingsView : UserControl
{
public SettingsView()
{
InitializeComponent();
}
}
}
@@ -0,0 +1,12 @@
<UserControl x:Class="OrbisNeighborHood.MVVM.View.TargetView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:OrbisNeighborHood.MVVM.View"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Grid>
</Grid>
</UserControl>
@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace OrbisNeighborHood.MVVM.View
{
/// <summary>
/// Interaction logic for TargetView.xaml
/// </summary>
public partial class TargetView : UserControl
{
public TargetView()
{
InitializeComponent();
}
}
}
@@ -0,0 +1,7 @@
namespace OrbisNeighborHood.MVVM.ViewModel
{
public class DashboardViewModel
{
}
}
@@ -0,0 +1,62 @@
using OrbisNeighborHood.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OrbisNeighborHood.MVVM.ViewModel
{
class MainViewModel : ObservableObject
{
// Commands
public RelayCommand DashboardViewCommand { get; set; }
public RelayCommand TargetViewCommand { get; set; }
public RelayCommand SettingsViewCommand { get; set; }
// View Models
public DashboardViewModel DashboardHomeVM { get; set; }
public TargetViewModel TargetVM { get; set; }
public SettingsViewModel SettingsVM { get; set; }
private object _currentView;
public object CurrentView
{
get { return _currentView; }
set
{
_currentView = value;
OnPropertyChanged();
}
}
public MainViewModel()
{
DashboardHomeVM = new DashboardViewModel();
TargetVM = new TargetViewModel();
SettingsVM = new SettingsViewModel();
CurrentView = DashboardHomeVM;
DashboardViewCommand = new RelayCommand(o =>
{
CurrentView = DashboardHomeVM;
});
TargetViewCommand = new RelayCommand(o =>
{
CurrentView = TargetVM;
});
SettingsViewCommand = new RelayCommand(o =>
{
CurrentView = SettingsVM;
});
}
}
}
@@ -0,0 +1,6 @@
namespace OrbisNeighborHood.MVVM.ViewModel
{
public class SettingsViewModel
{
}
}
@@ -0,0 +1,6 @@
namespace OrbisNeighborHood.MVVM.ViewModel
{
public class TargetViewModel
{
}
}
+173
View File
@@ -0,0 +1,173 @@
<simpleControls:SimpleWindow x:Class="OrbisNeighborHood.NeighborHood"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:OrbisNeighborHood"
xmlns:simpleControls="clr-namespace:SimpleUI.Controls;assembly=SimpleUI"
xmlns:viewModel="clr-namespace:OrbisNeighborHood.MVVM.ViewModel"
mc:Ignorable="d"
Title="NeighborHood" Height="620" Width="940"
MinHeight="620" MinWidth="940"
MaxHeight="620" MaxWidth="940">
<Window.DataContext>
<viewModel:MainViewModel/>
</Window.DataContext>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="240"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="70"/>
<RowDefinition/>
</Grid.RowDefinitions>
<!-- Menu BG -->
<Rectangle Grid.Column="0"
Grid.RowSpan="3"
Fill="{DynamicResource ControlDarkBackground}"/>
<!-- Current Target -->
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="70"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="70"/>
</Grid.RowDefinitions>
<!-- Current Title Image -->
<Border Grid.Column="0" Grid.Row="1"
BorderThickness="1"
BorderBrush="#333333"
Margin="8">
<Image Source="https://image.api.playstation.com/gs2-sec/appkgo/prod/CUSA08519_00/12/i_3da1cf7c41dc7652f9b639e1680d96436773658668c7dc3930c441291095713b/i/icon0.png"/>
</Border>
<StackPanel Grid.Column="1" Grid.Row="1"
Orientation="Vertical"
VerticalAlignment="Center">
<!-- Target Name -->
<StackPanel Grid.ColumnSpan="2" Grid.Row="0"
Orientation="Horizontal">
<!-- Target State -->
<Ellipse Grid.ColumnSpan="2" Grid.Row="0"
Fill="Green"
Width="12"
Height="12"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Margin="5 0 5 0"
ToolTip="Online &amp; API Available"/>
<!-- Current Target Name -->
<TextBlock Grid.ColumnSpan="2" Grid.Row="0"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Margin="0 0 0 0"
Text="★OSM's Console"
FontSize="13"
Foreground="{DynamicResource Text}"/>
</StackPanel>
<TextBlock HorizontalAlignment="Left"
Margin="5 0 0 0"
Text="Red Dead Redemption 2"
Foreground="{DynamicResource Text}"
FontSize="10"/>
<TextBlock HorizontalAlignment="Left"
Margin="5 0 0 0"
Text="CUSA08519_00"
Foreground="{DynamicResource Text}"
FontSize="10"/>
</StackPanel>
</Grid>
<!-- Menu Controls -->
<StackPanel Grid.Column="0" Grid.Row="2"
Orientation="Vertical">
<RadioButton Content="Dashboard"
Height="50"
Foreground="{DynamicResource Text}"
FontSize="14"
Style="{StaticResource MenuButtonTheme}"
IsChecked="True"
Command="{Binding DashboardViewCommand}"/>
<RadioButton Content="Targets"
Height="50"
Foreground="{DynamicResource Text}"
FontSize="14"
Style="{StaticResource MenuButtonTheme}"
Command="{Binding TargetViewCommand}"/>
<RadioButton Content="Settings"
Height="50"
Foreground="{DynamicResource Text}"
FontSize="14"
Style="{StaticResource MenuButtonTheme}"
Command="{Binding SettingsViewCommand}"/>
</StackPanel>
<!-- Seperation Bar -->
<StackPanel Grid.Column="0" Grid.Row="2"
Orientation="Vertical"
VerticalAlignment="Bottom"
Height="40">
<Rectangle VerticalAlignment="Top"
HorizontalAlignment="Stretch"
Height="1"
Fill="#333333"
Margin="0 0 0 1"/>
<Rectangle VerticalAlignment="Top"
HorizontalAlignment="Stretch"
Height="1"
Fill="#515151"/>
</StackPanel>
<!-- Target Buttons -->
<Grid Grid.Row="2" Grid.Column="0"
VerticalAlignment="Bottom"
Margin="0 0 0 5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<simpleControls:SimpleButton Grid.Column="1"
Height="26"
Width="75"
Content="Add Target"/>
<simpleControls:SimpleButton Grid.Column="3"
Height="26"
Width="110"
Content="Set Default Target"/>
</Grid>
<ContentControl Grid.RowSpan="2"
Grid.Column="2"
Margin="0"
Content="{Binding CurrentView}"/>
</Grid>
</simpleControls:SimpleWindow>
@@ -1,4 +1,5 @@
using System;
using SimpleUI.Controls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@@ -18,9 +19,9 @@ namespace OrbisNeighborHood
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
public partial class NeighborHood : SimpleWindow
{
public MainWindow()
public NeighborHood()
{
InitializeComponent();
}
@@ -0,0 +1,50 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWPF>true</UseWPF>
</PropertyGroup>
<ItemGroup>
<None Remove="Images\Icons\OrbisConsoleOutput.ico" />
<None Remove="Images\Icons\OrbisDebugger.ico" />
<None Remove="Images\Icons\OrbisModuleManager.ico" />
<None Remove="Images\Icons\OrbisNeighborhood.ico" />
<None Remove="Images\Icons\OrbisPeeknPoke.ico" />
<None Remove="Images\Icons\OrbisTargetSettings.ico" />
<None Remove="Images\Icons\OrbisTaskbarApp.ico" />
</ItemGroup>
<ItemGroup>
<Reference Include="SimpleUI">
<HintPath>..\..\SimpleUI\SimpleUI\bin\Debug\net6.0-windows\SimpleUI.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Resource Include="Images\Icons\OrbisConsoleOutput.ico">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Resource>
<Resource Include="Images\Icons\OrbisDebugger.ico">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Resource>
<Resource Include="Images\Icons\OrbisModuleManager.ico">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Resource>
<Resource Include="Images\Icons\OrbisNeighborhood.ico">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Resource>
<Resource Include="Images\Icons\OrbisPeeknPoke.ico">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Resource>
<Resource Include="Images\Icons\OrbisTargetSettings.ico">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Resource>
<Resource Include="Images\Icons\OrbisTaskbarApp.ico">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Resource>
</ItemGroup>
</Project>
@@ -0,0 +1,37 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Style BasedOn="{StaticResource {x:Type ToggleButton}}"
TargetType="{x:Type RadioButton}"
x:Key="MenuButtonTheme">
<Style.Setters>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="RadioButton">
<Border VerticalAlignment="Stretch"
HorizontalAlignment="Stretch"
Background="{TemplateBinding Background}">
<TextBlock Text="{TemplateBinding Property=Content}"
VerticalAlignment="Center"
Margin="50,0,0,0"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
</Style.Setters>
<Style.Triggers>
<Trigger Property="IsChecked" Value="True">
<Setter Property="Background" Value="#B04B4B"/>
</Trigger>
</Style.Triggers>
</Style>
</ResourceDictionary>
-6
View File
@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
</startup>
</configuration>
-37
View File
@@ -1,37 +0,0 @@
namespace OrbisSuiteService
{
partial class OrbisSuiteService
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
components = new System.ComponentModel.Container();
this.ServiceName = "Service1";
}
#endregion
}
}
@@ -1,40 +0,0 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace OrbisSuiteService
{
public partial class OrbisSuiteService : ServiceBase
{
bool RunService = true;
public OrbisSuiteService()
{
InitializeComponent();
}
public void DebugStart()
{
OnStart(null);
while (RunService) { Thread.Sleep(10); }
}
protected override void OnStart(string[] args)
{
RunService = true;
}
protected override void OnStop()
{
RunService = false;
}
}
}
@@ -1,62 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{E6B39796-39D5-4992-AC03-47DB2B0F6E99}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>OrbisSuiteService</RootNamespace>
<AssemblyName>OrbisSuiteService</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.ServiceProcess" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="OrbisSuiteService.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="OrbisSuiteService.Designer.cs">
<DependentUpon>OrbisSuiteService.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Service\ClientInstance.cs" />
<Compile Include="Service\Dispatcher.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
-31
View File
@@ -1,31 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading.Tasks;
namespace OrbisSuiteService
{
internal static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
static void Main()
{
#if DEBUG
OrbisSuiteService Service = new OrbisSuiteService();
Service.DebugStart();
#else
ServiceBase[] ServicesToRun;
ServicesToRun = new ServiceBase[]
{
new OrbisSuiteService()
};
ServiceBase.Run(ServicesToRun);
#endif
}
}
}
@@ -1,36 +0,0 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("OrbisSuiteService")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("OrbisSuiteService")]
[assembly: AssemblyCopyright("Copyright © 2022")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("e6b39796-39d5-4992-ac03-47db2b0f6e99")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
@@ -1,12 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OrbisSuiteService.Service
{
internal class ClientInstance
{
}
}
@@ -1,13 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OrbisSuiteService.Service
{
internal class Dispatcher
{
}
}