Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
ba300ab
Simple Material Viewer
DeltaDesigns Oct 20, 2023
8d40039
Add "Materials" button to main menu
DeltaDesigns Oct 20, 2023
4f28c03
Support for Cube/3D textures in list, small UI changes
DeltaDesigns Oct 23, 2023
bdca379
Initial work on TFX stuff, some shader cleanup
DeltaDesigns Oct 24, 2023
517f276
Update some TFX op codes with real names
DeltaDesigns Oct 25, 2023
30b351a
Update op codes to newest again
DeltaDesigns Oct 25, 2023
14c16aa
Very WIP interpreter
DeltaDesigns Oct 26, 2023
99f81e5
Use placeholder vector4 for bytecode insertions
DeltaDesigns Oct 27, 2023
597cce0
More TFX, allow material exporting
DeltaDesigns Nov 5, 2023
7683976
More interpreter stuff
DeltaDesigns Nov 14, 2023
fa32428
Take a guess
DeltaDesigns Nov 15, 2023
06b403d
(TFX) Divide, Floor, Ceil and Sign. Reorder/clean up
DeltaDesigns Nov 16, 2023
195a71c
More tfx stuff, vs buffer containers for all versions
DeltaDesigns Dec 1, 2023
16d8f1f
Only show CB0 in material view
DeltaDesigns Dec 6, 2023
041f078
Merge branch 'main' into delta/material-viewer
DeltaDesigns Dec 6, 2023
3deeced
(S2) Try to add evaluated TFX bytecode to vmat
DeltaDesigns Dec 6, 2023
aa75309
(S2) Remove SSR stuff for now, update interpreter
DeltaDesigns Dec 7, 2023
f8ee476
(S2) Fix rare case where a cbuffer value is used as a sample texcoord
DeltaDesigns Dec 8, 2023
bd4f406
Lerp, Lerp Constants
DeltaDesigns Dec 12, 2023
ccdf438
(S2 & TFX) Some fixes for compiling errors
DeltaDesigns Dec 15, 2023
155bb12
(S2) Replace null materials with default black
DeltaDesigns Dec 15, 2023
23df9d0
Merge ambient crash fixes and blender api fix
DeltaDesigns Dec 19, 2023
cab2604
Rename everything Source2 to SBox
DeltaDesigns Dec 19, 2023
c227216
Update README.md
DeltaDesigns Dec 19, 2023
0c3a2d9
Update README.md
DeltaDesigns Dec 19, 2023
b418a25
Rip out Atlas, wont be needed here
DeltaDesigns Dec 19, 2023
16be1b5
Rip out Unreal stuff
DeltaDesigns Dec 19, 2023
cc862db
Merge branch 'S&Charm' of https://github.com/DeltaDesigns/Charm into …
DeltaDesigns Dec 19, 2023
974e82d
S&Box content folder setting
DeltaDesigns Dec 19, 2023
2e93163
Some cleanup
DeltaDesigns Dec 19, 2023
8efd941
Only export individual fbxs, no more one big fbx
DeltaDesigns Dec 19, 2023
e42e781
Update charm.ico
DeltaDesigns Dec 19, 2023
9363235
Save map cubemaps as vtex
DeltaDesigns Dec 20, 2023
8e4fe54
Frame and Depth buffers for shaders?
DeltaDesigns Dec 20, 2023
8e65f41
Fixed terrain not exporting
DeltaDesigns Dec 20, 2023
828d930
Trying to simplify material transparency
DeltaDesigns Dec 21, 2023
521258d
Light range (?), couple fixes
DeltaDesigns Dec 22, 2023
1f60e04
Couple small fixes
DeltaDesigns Dec 23, 2023
8afe94f
Export water map resource
DeltaDesigns Dec 23, 2023
3f2124c
Unnecessary LOD "refactor"
DeltaDesigns Dec 23, 2023
ecf4903
Clean up terrain exports, always export vmat/vmdl/shader
DeltaDesigns Dec 23, 2023
5acb560
oops
DeltaDesigns Dec 24, 2023
e701d19
some cbuffer clean up for shaders
DeltaDesigns Dec 25, 2023
8397695
Update "cb#[#]" replacement method
DeltaDesigns Dec 27, 2023
106094c
Use transparency if shader just uses RT0
DeltaDesigns Dec 28, 2023
407eca1
Can now get Output Signatures from shaders
DeltaDesigns Dec 28, 2023
aa0133b
Very scuffed method to get shader resources
DeltaDesigns Dec 28, 2023
6c8e081
ShaderResources -> Resources
DeltaDesigns Dec 29, 2023
44bcfa9
Get every IO signature, not just non-system
DeltaDesigns Dec 29, 2023
cf115dd
Make Shader Converter use shader resources and IO signatures
DeltaDesigns Dec 29, 2023
4853b78
Havok bindings from Alkahest
DeltaDesigns Dec 30, 2023
4051f8f
Add method for saving Havok mesh
DeltaDesigns Dec 30, 2023
1cc62cf
Export Activity Kill/Turnback barriers to obj
DeltaDesigns Dec 31, 2023
f4ef8b9
Try to load ambient activity with current activity entities
DeltaDesigns Dec 31, 2023
72f1fc8
"clean up" exporter system
DeltaDesigns Jan 2, 2024
c5663a3
Use map datatable entry Loc/Rot for Cubemaps
DeltaDesigns Jan 2, 2024
f0f7ff1
Couple fixes, misc
DeltaDesigns Jan 3, 2024
92bbc34
Mesh Part material checks
DeltaDesigns Jan 4, 2024
ea23667
Couple shader things
DeltaDesigns Jan 4, 2024
b304198
template vmat for api exports
DeltaDesigns Feb 8, 2024
3bf1b7d
Update EntityView.xaml.cs
DeltaDesigns Feb 17, 2024
636b9c5
Update terrain exporting to work with Scene System
DeltaDesigns Mar 8, 2024
3ffe68a
Fix incorrect terrain normals
DeltaDesigns Mar 9, 2024
46292d9
Update S2ShaderConverter.cs
DeltaDesigns Mar 9, 2024
07cabd1
Work on some LOD stuff
DeltaDesigns Mar 14, 2024
4a3d832
Don't allow periods in exports, prevents texture exports
DeltaDesigns Mar 15, 2024
e4c027e
Merge branch 'scene-terrain'
DeltaDesigns Mar 16, 2024
8d65a54
Update README.md
DeltaDesigns Aug 31, 2024
bb150d4
Merge branch 'main' into resolve-conflicts
MontagueM Dec 22, 2024
53c7da3
missed
MontagueM Dec 23, 2024
0409d41
readd
MontagueM Dec 23, 2024
ce019f1
fixups
MontagueM Dec 23, 2024
3e15921
cleanup
MontagueM Dec 23, 2024
1a9ce9e
fix up
MontagueM Dec 23, 2024
8efdc0e
fix
MontagueM Dec 23, 2024
95a08c4
fix
MontagueM Dec 23, 2024
b736376
fix
MontagueM Dec 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ FakesAssemblies/
#ThirdParty/DXDecompiler
# Include libreborb dll and hlsl exe
!Charm/ThirdParty/*.dll
!Charm/ThirdParty/Alkahest/*.dll
!Charm/ThirdParty/*.exe
.vscode/tasks.json
.vscode/launch.json
8 changes: 4 additions & 4 deletions AtlasSharp/AtlasView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ private bool InitStaticMesh(FileHash staticHash)

public struct InputSignature
{
public InputSemantic Semantic;
public DXBCSemantic Semantic;
public int SemanticIndex;
public int DxgiFormat;
public int BufferIndex;
Expand Down Expand Up @@ -301,18 +301,18 @@ public PartMaterial(IMaterial material, List<int> strides)
throw new Exception();
}

Tiger.Schema.InputSignature[] inputSignatures = material.VertexShader.InputSignatures.ToArray();
DXBCIOSignature[] inputSignatures = material.VertexShader.InputSignatures.ToArray();
Helpers.DecorateSignaturesWithBufferIndex(ref inputSignatures, strides); // absorb into the getter probs

foreach (Tiger.Schema.InputSignature signature in inputSignatures)
foreach (DXBCIOSignature signature in inputSignatures)
{
InputSignatures[sigIndex].Semantic = signature.Semantic;
InputSignatures[sigIndex].SemanticIndex = (int)signature.SemanticIndex;
InputSignatures[sigIndex].BufferIndex = signature.BufferIndex;
switch (signature.Mask)
{
case ComponentMask.XYZW:
if (signature.Semantic == InputSemantic.Colour)
if (signature.Semantic == DXBCSemantic.Colour)
{
InputSignatures[sigIndex].DxgiFormat = (int)DXGI_FORMAT.R8G8B8A8_UNORM;
break;
Expand Down
15 changes: 0 additions & 15 deletions Charm.sln
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RevorbStd", "ThirdParty\rev
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CharmDepotDownloader", "CharmDepotDownloader\CharmDepotDownloader.csproj", "{D22CC98B-DE19-460A-B661-3155C55024AE}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AtlasSharp", "AtlasSharp\AtlasSharp.csproj", "{161DFC33-8147-4BD1-B72C-A08D53D831A3}"
ProjectSection(ProjectDependencies) = postProject
{1132E6A9-9AD9-405D-936A-7643392B0202} = {1132E6A9-9AD9-405D-936A-7643392B0202}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Atlas", "Atlas\Atlas.vcxproj", "{1132E6A9-9AD9-405D-936A-7643392B0202}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Expand Down Expand Up @@ -58,14 +51,6 @@ Global
{D22CC98B-DE19-460A-B661-3155C55024AE}.Debug|x64.Build.0 = Debug|Any CPU
{D22CC98B-DE19-460A-B661-3155C55024AE}.Release|x64.ActiveCfg = Release|Any CPU
{D22CC98B-DE19-460A-B661-3155C55024AE}.Release|x64.Build.0 = Release|Any CPU
{161DFC33-8147-4BD1-B72C-A08D53D831A3}.Debug|x64.ActiveCfg = Debug|Any CPU
{161DFC33-8147-4BD1-B72C-A08D53D831A3}.Debug|x64.Build.0 = Debug|Any CPU
{161DFC33-8147-4BD1-B72C-A08D53D831A3}.Release|x64.ActiveCfg = Release|Any CPU
{161DFC33-8147-4BD1-B72C-A08D53D831A3}.Release|x64.Build.0 = Release|Any CPU
{1132E6A9-9AD9-405D-936A-7643392B0202}.Debug|x64.ActiveCfg = Debug|x64
{1132E6A9-9AD9-405D-936A-7643392B0202}.Debug|x64.Build.0 = Debug|x64
{1132E6A9-9AD9-405D-936A-7643392B0202}.Release|x64.ActiveCfg = Release|x64
{1132E6A9-9AD9-405D-936A-7643392B0202}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
225 changes: 114 additions & 111 deletions Charm/ActivityMapEntityView.xaml.cs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Charm/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ private void Application_Startup(object sender, StartupEventArgs e)
// {
// var dynamicParts = entity.Load(ExportDetailLevel.MostDetailed);
// fbxHandler.AddEntityToScene(entity, dynamicParts, ExportDetailLevel.MostDetailed);
// entity.SaveMaterialsFromParts(savePath, dynamicParts, ConfigSubsystem.GetUnrealInteropEnabled() || ConfigSubsystem.GetS2ShaderExportEnabled());
// entity.SaveMaterialsFromParts(savePath, dynamicParts, ConfigSubsystem.GetUnrealInteropEnabled() || ConfigSubsystem.GetSBoxShaderExportEnabled());
// entity.SaveTexturePlates(savePath);
// }
//
Expand Down
22 changes: 12 additions & 10 deletions Charm/Charm.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@
<None Update="ThirdParty\3dmigoto_shader_decomp.exe">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ThirdParty\Alkahest\destiny_havok.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ThirdParty\d3dcompiler_46.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
Expand All @@ -107,16 +110,15 @@
</None>
</ItemGroup>

<ItemGroup>
<Content Include="..\Atlas\Shaders\Lighting.hlsl">
<Link>Shaders\Lighting.hlsl</Link>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>

<ItemGroup>
<Content Include="..\Atlas\Shaders\Lighting.hlsl">
<Link>Shaders\Lighting.hlsl</Link>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="xcopy &quot;$(SolutionDir)x64\$(Configuration)\Atlas.dll&quot; &quot;$(TargetDir)&quot; /y /i&#xA;xcopy &quot;$(SolutionDir)x64\$(Configuration)\Atlas.pdb&quot; &quot;$(TargetDir)&quot; /y /i" />
</Target>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="xcopy &quot;$(SolutionDir)x64\$(Configuration)\Atlas.dll&quot; &quot;$(TargetDir)&quot; /y /i&#xA;xcopy &quot;$(SolutionDir)x64\$(Configuration)\Atlas.pdb&quot; &quot;$(TargetDir)&quot; /y /i" />
</Target>

</Project>
27 changes: 14 additions & 13 deletions Charm/ConfigView.xaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
<UserControl x:Class="Charm.ConfigView"
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:Charm"
mc:Ignorable="d"
d:DesignHeight="1080" d:DesignWidth="1920">
<UserControl
x:Class="Charm.ConfigView"
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:local="clr-namespace:Charm"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
d:DesignHeight="1080"
d:DesignWidth="1920"
mc:Ignorable="d">
<Grid>
<TabControl x:Name="ConfigTabControl">
<TabItem Header="GENERAL" x:Name="ConfigTab">
<local:GeneralConfigView x:Name="ConfigControl"/>
<TabItem x:Name="ConfigTab" Header="GENERAL">
<local:GeneralConfigView x:Name="ConfigControl" />
</TabItem>
<TabItem Header="SOURCE 2" x:Name="Source2Tab">
<local:Source2ConfigView x:Name="Source2Control"/>
<TabItem x:Name="SBoxTab" Header="S&amp;BOX">
<local:SBoxConfigView x:Name="SBoxControl" />
</TabItem>
<TabItem Header="UNREAL ENGINE" x:Name="UnrealTab">
<local:UnrealConfigView x:Name="UnrealControl"/>
</TabItem>

</TabControl>
</Grid>
</UserControl>
39 changes: 36 additions & 3 deletions Charm/DevView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@
using System.Windows.Controls;
using System.Windows.Input;
using ConcurrentCollections;
using Arithmic;
using Tiger;
using Tiger.Exporters;
using Tiger.Schema;
using Tiger.Schema.Audio;
using Tiger.Schema.Entity;
using Tiger.Schema.Investment;
using Tiger.Schema.Shaders;
using Tiger.Schema.Havok;
using Tiger.Schema.Static;

namespace Charm;
Expand Down Expand Up @@ -185,6 +187,37 @@ private void AddWindow(FileHash hash)
}
_mainWindow.SetNewestTabSelected();
}
else if (fileMetadata.Type == 27 && fileMetadata.SubType == 0) // Havok
{
var shapeCollection = DestinyHavok.ReadShapeCollection(FileResourcer.Get().GetFile(hash).GetData());
if (shapeCollection is null)
{
Log.Error("Havok shape collection is null");
TagHashBox.Text = "NULL";
return;
}

Directory.CreateDirectory($"{ConfigSubsystem.Get().GetExportSavePath()}/HavokShapes");
int i = 0;
foreach (var shape in shapeCollection)
{
var vertices = shape.Vertices;
var indices = shape.Indices;

var sb = new StringBuilder();
foreach (var vertex in vertices)
{
sb.AppendLine($"v {vertex.X} {vertex.Y} {vertex.Z}");
}
foreach (var index in indices.Chunk(3))
{
sb.AppendLine($"f {index[0] + 1} {index[1] + 1} {index[2] + 1}");
}

Console.WriteLine($"Writing 'HavokShapes/shape_{hash}_{i}.obj'");
File.WriteAllText($"{ConfigSubsystem.Get().GetExportSavePath()}/HavokShapes/shape_{hash}_{i++}.obj", sb.ToString());
}
}
else if ((fileMetadata.Type == 8 || fileMetadata.Type == 16) && fileMetadata.SubType == 0)
{
switch (reference.Hash32)
Expand Down Expand Up @@ -250,7 +283,7 @@ private void AddWindow(FileHash hash)
foreach (DynamicMeshPart part in parts)
{
if (part.Material == null) continue;
scene.Materials.Add(new ExportMaterial(part.Material));
scene.Materials.Add(new ExportMaterial(part.Material, MaterialType.Opaque));
}
Exporter.Get().Export();

Expand All @@ -262,8 +295,8 @@ private void AddWindow(FileHash hash)
case 0x8080714F:
case 0x80806C81:
Terrain terrain = FileResourcer.Get().GetFile<Terrain>(hash);
ExporterScene terrainScene = Exporter.Get().CreateScene(hash, ExportType.Terrain);
terrain.LoadIntoExporter(terrainScene, ConfigSubsystem.Get().GetExportSavePath(), false);
ExporterScene terrainScene = Exporter.Get().CreateScene(hash, ExportType.Static);
terrain.LoadIntoExporter(terrainScene, ConfigSubsystem.Get().GetExportSavePath());
Exporter.Get().Export();
break;
default:
Expand Down
6 changes: 1 addition & 5 deletions Charm/EntityView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,6 @@ public static void Export(List<Entity> entities, string name, ExportTypeFlag exp
entity.SaveMaterialsFromParts(scene, dynamicParts);
entity.SaveTexturePlates(savePath);
}
if (ConfigSubsystem.Get().GetS2VMDLExportEnabled())
{
Source2Handler.SaveEntityVMDL($"{savePath}", entity);
}
}

if (exportType == ExportTypeFlag.Full)
Expand All @@ -167,7 +163,7 @@ public static void ExportInventoryItem(ApiItem item)
EntitySkeleton overrideSkeleton = null;
if (Strategy.CurrentStrategy >= TigerStrategy.DESTINY2_WITCHQUEEN_6307)
{
Entity playerBase = FileResourcer.Get().GetFile<Entity>(new FileHash(Hash64Map.Get().GetHash32Checked("0000670F342E9595"))); // 64 bit more permanent
Entity playerBase = FileResourcer.Get().GetFile<Entity>(new FileHash(Hash64Map.Get().GetHash32Checked("0000670F342E9595"))); // 64 bit more permanent
overrideSkeleton = new EntitySkeleton(playerBase.Skeleton.Hash);
}
else if (Strategy.CurrentStrategy == TigerStrategy.DESTINY1_RISE_OF_IRON)
Expand Down
9 changes: 0 additions & 9 deletions Charm/GeneralConfigView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ private void PopulateConfigPanel()

GeneralConfigPanel.Children.Add(sp);


// Save path
ConfigSettingControl csp = new ConfigSettingControl();
csp.SettingName = "Export save path";
Expand All @@ -89,14 +88,6 @@ private void PopulateConfigPanel()
csp.ChangeButton.Click += ExportSavePath_OnClick;
GeneralConfigPanel.Children.Add(csp);

// Enable Blender interop //force people to use the addon now >:)
//ConfigSettingControl cbe = new ConfigSettingControl();
//cbe.SettingName = "Generate Blender importing script";
//bool bval2 = _config.GetBlenderInteropEnabled();
//cbe.SettingValue = bval2.ToString();
//cbe.ChangeButton.Click += BlenderInteropEnabled_OnClick;
//GeneralConfigPanel.Children.Add(cbe);

// Enable combined extraction folder for maps
ConfigSettingControl cef = new ConfigSettingControl();
cef.SettingName = "Use single folder extraction for maps";
Expand Down
67 changes: 12 additions & 55 deletions Charm/MainMenuView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,61 +187,18 @@
</Button>
</StackPanel>

<StackPanel Grid.Column="3" Margin="10,0,0,0">
<TextBlock
Padding="0,0,0,50"
HorizontalAlignment="Center"
FontSize="64"
Text="Other" />
<Button
Height="75"
Margin="20,0,20,40"
Padding="20,20,20,20"
HorizontalAlignment="Stretch"
HorizontalContentAlignment="Stretch"
Click="AllStringsViewButton_OnClick"
Style="{StaticResource MaterialDesignPaperDarkButton}">
<TextBlock
Padding="0,10,0,10"
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontFamily="{DynamicResource ResourceKey=Haas Grot Text 55 Roman}"
FontSize="42"
Text="STRINGS" />
</Button>
<Button
Height="75"
Margin="20,0,20,40"
Padding="20,20,20,20"
HorizontalAlignment="Stretch"
HorizontalContentAlignment="Stretch"
Click="AllTexturesViewButton_OnClick"
Style="{StaticResource MaterialDesignPaperDarkButton}">
<TextBlock
Padding="0,10,0,10"
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontFamily="{DynamicResource ResourceKey=Haas Grot Text 55 Roman}"
FontSize="42"
Text="TEXTURES" />
</Button>
<Button
Height="75"
Margin="20,0,20,40"
Padding="20,20,20,20"
HorizontalAlignment="Stretch"
HorizontalContentAlignment="Stretch"
Click="AllMaterialsViewButton_OnClick"
Style="{StaticResource MaterialDesignPaperDarkButton}">
<TextBlock
Padding="0,10,0,10"
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontFamily="{DynamicResource ResourceKey=Haas Grot Text 55 Roman}"
FontSize="42"
Text="MATERIALS" />
</Button>
</StackPanel>
<StackPanel Grid.Column="3" Margin="10,0,0,0">
<TextBlock Text="Other" FontSize="64" HorizontalAlignment="Center" Padding="0,0,0,50"/>
<Button Height="75" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" Click="AllStringsViewButton_OnClick" Margin="20,0,20,40" Padding="20, 20, 20, 20" Style="{StaticResource MaterialDesignPaperDarkButton}">
<TextBlock Text="STRINGS" VerticalAlignment="Center" FontSize="42" FontFamily="{DynamicResource ResourceKey=Neue Haas Grotesk Text Pro 55 Roman}" HorizontalAlignment="Center" Padding="0,10,0,10"/>
</Button>
<Button Height="75" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" Click="AllTexturesViewButton_OnClick" Margin="20,0,20,40" Padding="20, 20, 20, 20" Style="{StaticResource MaterialDesignPaperDarkButton}">
<TextBlock Text="TEXTURES" VerticalAlignment="Center" FontSize="42" FontFamily="{DynamicResource ResourceKey=Neue Haas Grotesk Text Pro 55 Roman}" HorizontalAlignment="Center" Padding="0,10,0,10"/>
</Button>
<Button Height="75" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" Click="AllMaterialsViewButton_OnClick" Margin="20,0,20,40" Padding="20, 20, 20, 20" Style="{StaticResource MaterialDesignPaperDarkButton}">
<TextBlock Text="MATERIALS" VerticalAlignment="Center" FontSize="42" FontFamily="{DynamicResource ResourceKey=Neue Haas Grotesk Text Pro 55 Roman}" HorizontalAlignment="Center" Padding="0,10,0,10"/>
</Button>
</StackPanel>
</StackPanel>
</StackPanel>
</Grid>
Expand Down
4 changes: 3 additions & 1 deletion Charm/MapView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Charm"
xmlns:atlasSharp="clr-namespace:AtlasSharp;assembly=AtlasSharp"
mc:Ignorable="d"
Loaded="OnControlLoaded"
d:DesignHeight="300" d:DesignWidth="300">
Expand All @@ -15,5 +16,6 @@
<RowDefinition Height="100*"/>
</Grid.RowDefinitions>
<local:ModelView x:Name="ModelView"/>
</Grid>
<atlasSharp:AtlasView x:Name="AtlasView"/>
</Grid>
</UserControl>
Loading
Loading