Skip to content

Commit a38b1a9

Browse files
authored
Initial commit
0 parents  commit a38b1a9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+21244
-0
lines changed

ABStudio.sln

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.32901.82
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ABStudio", "ABStudio\ABStudio.csproj", "{30ADF767-664C-47C5-89C6-60CDC84051B9}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{30ADF767-664C-47C5-89C6-60CDC84051B9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{30ADF767-664C-47C5-89C6-60CDC84051B9}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{30ADF767-664C-47C5-89C6-60CDC84051B9}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{30ADF767-664C-47C5-89C6-60CDC84051B9}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {EEFF4524-997D-4861-96A6-75253F9EE431}
24+
EndGlobalSection
25+
EndGlobal

ABStudio/ABStudio.csproj

Lines changed: 182 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,182 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{30ADF767-664C-47C5-89C6-60CDC84051B9}</ProjectGuid>
8+
<OutputType>WinExe</OutputType>
9+
<RootNamespace>ABStudio</RootNamespace>
10+
<AssemblyName>ABStudio</AssemblyName>
11+
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
12+
<FileAlignment>512</FileAlignment>
13+
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
14+
<Deterministic>true</Deterministic>
15+
</PropertyGroup>
16+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17+
<PlatformTarget>AnyCPU</PlatformTarget>
18+
<DebugSymbols>true</DebugSymbols>
19+
<DebugType>full</DebugType>
20+
<Optimize>false</Optimize>
21+
<OutputPath>bin\Debug\</OutputPath>
22+
<DefineConstants>DEBUG;TRACE</DefineConstants>
23+
<ErrorReport>prompt</ErrorReport>
24+
<WarningLevel>4</WarningLevel>
25+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
26+
</PropertyGroup>
27+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
28+
<PlatformTarget>AnyCPU</PlatformTarget>
29+
<DebugType>pdbonly</DebugType>
30+
<Optimize>true</Optimize>
31+
<OutputPath>bin\Release\</OutputPath>
32+
<DefineConstants>TRACE</DefineConstants>
33+
<ErrorReport>prompt</ErrorReport>
34+
<WarningLevel>4</WarningLevel>
35+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
36+
</PropertyGroup>
37+
<PropertyGroup>
38+
<ApplicationIcon>icon.ico</ApplicationIcon>
39+
</PropertyGroup>
40+
<ItemGroup>
41+
<Reference Include="Aspose.Zip, Version=23.5.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56, processorArchitecture=MSIL">
42+
<HintPath>..\packages\Aspose.Zip.23.5.0\lib\net40\Aspose.Zip.dll</HintPath>
43+
</Reference>
44+
<Reference Include="CppSharp.Runtime, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
45+
<HintPath>..\packages\CppSharp.Runtime.1.0.45.22293\lib\netstandard2.0\CppSharp.Runtime.dll</HintPath>
46+
</Reference>
47+
<Reference Include="Microsoft.VisualBasic" />
48+
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
49+
<HintPath>..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
50+
</Reference>
51+
<Reference Include="PresentationFramework" />
52+
<Reference Include="System" />
53+
<Reference Include="System.Core" />
54+
<Reference Include="System.Design" />
55+
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
56+
<HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.4.5.0\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
57+
</Reference>
58+
<Reference Include="System.Text.Encoding.CodePages, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
59+
<HintPath>..\packages\System.Text.Encoding.CodePages.4.5.0\lib\net461\System.Text.Encoding.CodePages.dll</HintPath>
60+
</Reference>
61+
<Reference Include="System.Xml.Linq" />
62+
<Reference Include="System.Data.DataSetExtensions" />
63+
<Reference Include="Microsoft.CSharp" />
64+
<Reference Include="System.Data" />
65+
<Reference Include="System.Deployment" />
66+
<Reference Include="System.Drawing" />
67+
<Reference Include="System.Net.Http" />
68+
<Reference Include="System.Windows.Forms" />
69+
<Reference Include="System.Xml" />
70+
</ItemGroup>
71+
<ItemGroup>
72+
<Compile Include="Controls\CustomPanel.cs">
73+
<SubType>Component</SubType>
74+
</Compile>
75+
<Compile Include="Controls\PictureBoxDB.cs">
76+
<SubType>Component</SubType>
77+
</Compile>
78+
<Compile Include="Controls\SizableRect.cs" />
79+
<Compile Include="FileFormats\DAT\Sections\MainSection.cs" />
80+
<Compile Include="FileFormats\DAT\Sections\Section.cs" />
81+
<Compile Include="FileFormats\DAT\Sections\SpriteSection.cs" />
82+
<Compile Include="FileFormats\PVR\PVRFile.cs" />
83+
<Compile Include="DataReader.cs" />
84+
<Compile Include="FileFormats\DAT\DATFile.cs" />
85+
<Compile Include="FileFormats\ZSTREAM\ZSTREAMFile.cs" />
86+
<Compile Include="Forms\ComboAskForm.cs">
87+
<SubType>Form</SubType>
88+
</Compile>
89+
<Compile Include="Forms\ComboAskForm.Designer.cs">
90+
<DependentUpon>ComboAskForm.cs</DependentUpon>
91+
</Compile>
92+
<Compile Include="Forms\Main.cs">
93+
<SubType>Form</SubType>
94+
</Compile>
95+
<Compile Include="Forms\Main.Designer.cs">
96+
<DependentUpon>Main.cs</DependentUpon>
97+
</Compile>
98+
<Compile Include="Forms\MCQAskForm.cs">
99+
<SubType>Form</SubType>
100+
</Compile>
101+
<Compile Include="Forms\MCQAskForm.Designer.cs">
102+
<DependentUpon>MCQAskForm.cs</DependentUpon>
103+
</Compile>
104+
<Compile Include="Forms\NumUpDownAskForm.cs">
105+
<SubType>Form</SubType>
106+
</Compile>
107+
<Compile Include="Forms\NumUpDownAskForm.Designer.cs">
108+
<DependentUpon>NumUpDownAskForm.cs</DependentUpon>
109+
</Compile>
110+
<Compile Include="Forms\SpritesheetEditor.cs">
111+
<SubType>Form</SubType>
112+
</Compile>
113+
<Compile Include="Forms\SpritesheetEditor.Designer.cs">
114+
<DependentUpon>SpritesheetEditor.cs</DependentUpon>
115+
</Compile>
116+
<Compile Include="Libs\7zip\Common\CommandLineParser.cs" />
117+
<Compile Include="Libs\7zip\Common\CRC.cs" />
118+
<Compile Include="Libs\7zip\Common\InBuffer.cs" />
119+
<Compile Include="Libs\7zip\Common\OutBuffer.cs" />
120+
<Compile Include="Libs\7zip\Compress\LZMA\LzmaBase.cs" />
121+
<Compile Include="Libs\7zip\Compress\LZMA\LzmaDecoder.cs" />
122+
<Compile Include="Libs\7zip\Compress\LZMA\LzmaEncoder.cs" />
123+
<Compile Include="Libs\7zip\Compress\LZ\IMatchFinder.cs" />
124+
<Compile Include="Libs\7zip\Compress\LZ\LzBinTree.cs" />
125+
<Compile Include="Libs\7zip\Compress\LZ\LzInWindow.cs" />
126+
<Compile Include="Libs\7zip\Compress\LZ\LzOutWindow.cs" />
127+
<Compile Include="Libs\7zip\Compress\RangeCoder\RangeCoder.cs" />
128+
<Compile Include="Libs\7zip\Compress\RangeCoder\RangeCoderBit.cs" />
129+
<Compile Include="Libs\7zip\Compress\RangeCoder\RangeCoderBitTree.cs" />
130+
<Compile Include="Libs\7zip\ICoder.cs" />
131+
<Compile Include="Libs\StbRectPackSharp\CRuntime.cs" />
132+
<Compile Include="Libs\StbRectPackSharp\Packer.cs" />
133+
<Compile Include="Libs\StbRectPackSharp\StbRectPack.cs" />
134+
<Compile Include="Libs\StbRectPackSharp\StbRectPack.Generated.cs" />
135+
<Compile Include="Misc\Common.cs" />
136+
<Compile Include="Misc\FolderPicker.cs" />
137+
<Compile Include="Program.cs" />
138+
<Compile Include="Properties\AssemblyInfo.cs" />
139+
<Compile Include="FileFormats\PVR\PVRTexLib.cs" />
140+
<EmbeddedResource Include="Forms\ComboAskForm.resx">
141+
<DependentUpon>ComboAskForm.cs</DependentUpon>
142+
</EmbeddedResource>
143+
<EmbeddedResource Include="Forms\Main.resx">
144+
<DependentUpon>Main.cs</DependentUpon>
145+
</EmbeddedResource>
146+
<EmbeddedResource Include="Forms\MCQAskForm.resx">
147+
<DependentUpon>MCQAskForm.cs</DependentUpon>
148+
</EmbeddedResource>
149+
<EmbeddedResource Include="Forms\SpritesheetEditor.resx">
150+
<DependentUpon>SpritesheetEditor.cs</DependentUpon>
151+
</EmbeddedResource>
152+
<EmbeddedResource Include="Properties\Resources.resx">
153+
<Generator>ResXFileCodeGenerator</Generator>
154+
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
155+
<SubType>Designer</SubType>
156+
</EmbeddedResource>
157+
<Compile Include="Properties\Resources.Designer.cs">
158+
<AutoGen>True</AutoGen>
159+
<DependentUpon>Resources.resx</DependentUpon>
160+
</Compile>
161+
<None Include="packages.config" />
162+
<None Include="Properties\Settings.settings">
163+
<Generator>SettingsSingleFileGenerator</Generator>
164+
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
165+
</None>
166+
<Compile Include="Properties\Settings.Designer.cs">
167+
<AutoGen>True</AutoGen>
168+
<DependentUpon>Settings.settings</DependentUpon>
169+
<DesignTimeSharedInput>True</DesignTimeSharedInput>
170+
</Compile>
171+
</ItemGroup>
172+
<ItemGroup>
173+
<None Include="App.config" />
174+
</ItemGroup>
175+
<ItemGroup>
176+
<Content Include="icon.ico" />
177+
<Content Include="PVRTexLib.dll">
178+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
179+
</Content>
180+
</ItemGroup>
181+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
182+
</Project>

ABStudio/App.config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
5+
</startup>
6+
</configuration>

ABStudio/Controls/CustomPanel.cs

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.ComponentModel;
4+
using System.Data;
5+
using System.Drawing;
6+
using System.Linq;
7+
using System.Text;
8+
using System.Threading.Tasks;
9+
using System.Windows.Forms;
10+
using System.Windows.Forms.Design;
11+
using ABStudio.Misc;
12+
13+
namespace ABStudio.Controls
14+
{
15+
public class CustomPanel : Panel
16+
{
17+
public event MouseEventHandler CTRLMouseWheel;
18+
19+
20+
protected override void OnMouseWheel(MouseEventArgs e)
21+
{
22+
if (((Common.GetAsyncKeyState(0xA2) & 0x8000) > 0) || ((Common.GetAsyncKeyState(0xA3) & 0x8000) > 0)) // LCONTROL or RCONTROL held
23+
{
24+
CTRLMouseWheel.Invoke(this, e);
25+
((HandledMouseEventArgs)e).Handled = true;
26+
}
27+
else
28+
{
29+
base.OnMouseWheel(e);
30+
}
31+
}
32+
}
33+
}

0 commit comments

Comments
 (0)