mirror of
https://github.com/HarukaKinen/Sinmai-Internal-Damage.git
synced 2025-02-20 04:01:05 +01:00
Menu
This commit is contained in:
parent
a7b96ce7da
commit
e450ccdc57
@ -1,9 +1,9 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio Version 16
|
# Visual Studio Version 17
|
||||||
VisualStudioVersion = 16.0.32126.315
|
VisualStudioVersion = 17.0.32014.148
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sinmai_Internal_Damage", "Sinmai-Internal-Damage\Sinmai_Internal_Damage.csproj", "{D460417A-34FA-4041-A68E-1D462A9DB1BB}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sinmai-Internal-Damage-Csharp", "Sinmai-Internal-Damage\Sinmai-Internal-Damage-Csharp.csproj", "{13940F58-B62C-4E16-AFF4-28D32536DBB5}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
@ -11,15 +11,15 @@ Global
|
|||||||
Release|Any CPU = Release|Any CPU
|
Release|Any CPU = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{D460417A-34FA-4041-A68E-1D462A9DB1BB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{13940F58-B62C-4E16-AFF4-28D32536DBB5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{D460417A-34FA-4041-A68E-1D462A9DB1BB}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{13940F58-B62C-4E16-AFF4-28D32536DBB5}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{D460417A-34FA-4041-A68E-1D462A9DB1BB}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{13940F58-B62C-4E16-AFF4-28D32536DBB5}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{D460417A-34FA-4041-A68E-1D462A9DB1BB}.Release|Any CPU.Build.0 = Release|Any CPU
|
{13940F58-B62C-4E16-AFF4-28D32536DBB5}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
SolutionGuid = {94F483E7-8C21-4CE2-81AC-509DD96A089B}
|
SolutionGuid = {A852DA35-192F-46A4-95F6-494CEF98EB36}
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
EndGlobal
|
EndGlobal
|
31
Sinmai-Internal-Damage/Loader.cs
Normal file
31
Sinmai-Internal-Damage/Loader.cs
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* SharpMonoInjectInfo:
|
||||||
|
* Assembly To Inject: Sinmai.dll
|
||||||
|
* Namespace: Sinmai
|
||||||
|
* Class name: Loader
|
||||||
|
* Method name: Init
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Sinmai
|
||||||
|
{
|
||||||
|
public class Loader
|
||||||
|
{
|
||||||
|
public static GameObject Load;
|
||||||
|
|
||||||
|
public static void Init()
|
||||||
|
{
|
||||||
|
Load = new GameObject();
|
||||||
|
|
||||||
|
Load.AddComponent<UI.Menu>();
|
||||||
|
|
||||||
|
Object.DontDestroyOnLoad(Load);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void Unload()
|
||||||
|
{
|
||||||
|
Object.Destroy(Load);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1,30 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
using System.Reflection;
|
|
||||||
using UnityEngine;
|
|
||||||
using Microsoft.Win32;
|
|
||||||
|
|
||||||
namespace Sinmai_Internal_Damage
|
|
||||||
{
|
|
||||||
public class Main
|
|
||||||
{
|
|
||||||
public static GameObject _objects;
|
|
||||||
|
|
||||||
[DllImport("kernel32.dll")]
|
|
||||||
private static extern bool AllocConsole();
|
|
||||||
|
|
||||||
public void Init()
|
|
||||||
{
|
|
||||||
AllocConsole();
|
|
||||||
_objects = new GameObject();
|
|
||||||
_objects.AddComponent<Sinmai_GUI>();
|
|
||||||
UnityEngine.Object.DontDestroyOnLoad(_objects);
|
|
||||||
Console.Log("INJECT=-----------------------------------------");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -2,35 +2,35 @@
|
|||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using System.Runtime.InteropServices;
|
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("Sinmai-Internal-Damage")]
|
[assembly: AssemblyTitle("Menu")]
|
||||||
[assembly: AssemblyDescription("")]
|
[assembly: AssemblyDescription("")]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyConfiguration("")]
|
||||||
[assembly: AssemblyCompany("")]
|
[assembly: AssemblyCompany("")]
|
||||||
[assembly: AssemblyProduct("Sinmai-Internal-Damage")]
|
[assembly: AssemblyProduct("Menu")]
|
||||||
[assembly: AssemblyCopyright("Copyright © 2022")]
|
[assembly: AssemblyCopyright("Copyright © 2018")]
|
||||||
[assembly: AssemblyTrademark("")]
|
[assembly: AssemblyTrademark("")]
|
||||||
[assembly: AssemblyCulture("")]
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
// 将 ComVisible 设置为 false 会使此程序集中的类型
|
// Setting ComVisible to false makes the types in this assembly not visible
|
||||||
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
|
// to COM components. If you need to access a type in this assembly from
|
||||||
//请将此类型的 ComVisible 特性设置为 true。
|
// COM, set the ComVisible attribute to true on that type.
|
||||||
[assembly: ComVisible(false)]
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||||
[assembly: Guid("d460417a-34fa-4041-a68e-1d462a9db1bb")]
|
[assembly: Guid("13940f58-b62c-4e16-aff4-28d32536dbb5")]
|
||||||
|
|
||||||
// 程序集的版本信息由下列四个值组成:
|
// 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.*")]
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||||
|
90
Sinmai-Internal-Damage/Sinmai-Internal-Damage-Csharp.csproj
Normal file
90
Sinmai-Internal-Damage/Sinmai-Internal-Damage-Csharp.csproj
Normal file
@ -0,0 +1,90 @@
|
|||||||
|
<?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>{13940F58-B62C-4E16-AFF4-28D32536DBB5}</ProjectGuid>
|
||||||
|
<OutputType>Library</OutputType>
|
||||||
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
|
<RootNamespace>Sinmai</RootNamespace>
|
||||||
|
<AssemblyName>Sinmai</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<Deterministic>true</Deterministic>
|
||||||
|
<TargetFrameworkProfile />
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<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' ">
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="Assembly-CSharp, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>..\..\..\SteamLibrary\steamapps\common\Green Hell\GH_Data\Managed\Assembly-CSharp.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Assembly-CSharp-firstpass, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>..\..\..\SteamLibrary\steamapps\common\Green Hell\GH_Data\Managed\Assembly-CSharp-firstpass.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<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.Xml" />
|
||||||
|
<Reference Include="UnityEngine, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>..\..\..\SteamLibrary\steamapps\common\Green Hell\GH_Data\Managed\UnityEngine.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>..\..\..\SteamLibrary\steamapps\common\Green Hell\GH_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="UnityEngine.IMGUIModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>..\..\..\SteamLibrary\steamapps\common\Green Hell\GH_Data\Managed\UnityEngine.IMGUIModule.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="UnityEngine.InputLegacyModule">
|
||||||
|
<HintPath>..\..\..\SteamLibrary\steamapps\common\Green Hell\GH_Data\Managed\UnityEngine.InputLegacyModule.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="UnityEngine.InputModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>..\..\..\SteamLibrary\steamapps\common\Green Hell\GH_Data\Managed\UnityEngine.InputModule.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="UnityEngine.UI, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>..\..\..\SteamLibrary\steamapps\common\Green Hell\GH_Data\Managed\UnityEngine.UI.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="UnityEngine.UIModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>..\..\..\SteamLibrary\steamapps\common\Green Hell\GH_Data\Managed\UnityEngine.UIModule.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="Loader.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
<Compile Include="UI\Menu.cs" />
|
||||||
|
<Compile Include="Utils\Render.cs" />
|
||||||
|
<Compile Include="UI\Settings.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Folder Include="Features\" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
</Project>
|
@ -1,62 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace Sinmai_Internal_Damage
|
|
||||||
{
|
|
||||||
public class Sinmai_GUI : MonoBehaviour
|
|
||||||
{
|
|
||||||
private Rect window;
|
|
||||||
bool menu_toggle;
|
|
||||||
|
|
||||||
public void Start()
|
|
||||||
{
|
|
||||||
// Rect(X, Y, W, H);
|
|
||||||
window = new Rect(10f,10f, 300f, 200f);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Update()
|
|
||||||
{
|
|
||||||
if(Input.GetKeyDown(KeyCode.Delete))
|
|
||||||
{
|
|
||||||
menu_toggle = !menu_toggle;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static Color Color
|
|
||||||
{
|
|
||||||
get { return GUI.color; }
|
|
||||||
set { GUI.color = value; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void DrawBox(Vector2 position, Vector2 size, bool centered = true)
|
|
||||||
{
|
|
||||||
var upperLeft = centered ? position - size / 2f : position;
|
|
||||||
GUI.DrawTexture(new Rect(position, size), Texture2D.whiteTexture, ScaleMode.StretchToFill);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void DrawBox(Vector2 position, Vector2 size, Color color, bool centered = true)
|
|
||||||
{
|
|
||||||
Color = color;
|
|
||||||
DrawBox(position, size, centered);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void OnGUI()
|
|
||||||
{
|
|
||||||
DrawBox(new Vector2(Screen.width / 2f, Screen.height/ 2f), new Vector2(40, 40), Color.green);
|
|
||||||
Console.Log("OnGui Called");
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Page1(int id)
|
|
||||||
{
|
|
||||||
// This button named by mlc.yaw
|
|
||||||
GUILayout.Button("nigger", new GUILayoutOption[0]);
|
|
||||||
|
|
||||||
GUILayout.Space(10f);
|
|
||||||
GUI.DragWindow();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,273 +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>{D460417A-34FA-4041-A68E-1D462A9DB1BB}</ProjectGuid>
|
|
||||||
<OutputType>Library</OutputType>
|
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
|
||||||
<RootNamespace>Sinmai_Internal_Damage</RootNamespace>
|
|
||||||
<AssemblyName>Sinmai-Internal-Damage</AssemblyName>
|
|
||||||
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
|
|
||||||
<FileAlignment>512</FileAlignment>
|
|
||||||
<Deterministic>true</Deterministic>
|
|
||||||
<TargetFrameworkProfile />
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
|
||||||
<DebugType>full</DebugType>
|
|
||||||
<Optimize>false</Optimize>
|
|
||||||
<OutputPath>bin\Debug\</OutputPath>
|
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
|
||||||
<DebugType>pdbonly</DebugType>
|
|
||||||
<Optimize>true</Optimize>
|
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
</PropertyGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Reference Include="AMDaemon.NET">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\AMDaemon.NET.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Assembly-CSharp, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
|
||||||
<SpecificVersion>False</SpecificVersion>
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\Assembly-CSharp.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Assembly-CSharp-firstpass, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
|
||||||
<SpecificVersion>False</SpecificVersion>
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\Assembly-CSharp-firstpass.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Mono.Posix">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\Mono.Posix.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Mono.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
|
|
||||||
<SpecificVersion>False</SpecificVersion>
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\Mono.Security.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System" />
|
|
||||||
<Reference Include="System.Configuration" />
|
|
||||||
<Reference Include="System.Core" />
|
|
||||||
<Reference Include="System.Xml.Linq" />
|
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
|
||||||
<Reference Include="System.Data" />
|
|
||||||
<Reference Include="System.Net.Http" />
|
|
||||||
<Reference Include="System.Xml" />
|
|
||||||
<Reference Include="Unity.Analytics.DataPrivacy">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\Unity.Analytics.DataPrivacy.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Unity.TextMeshPro">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\Unity.TextMeshPro.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
|
||||||
<SpecificVersion>False</SpecificVersion>
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.AccessibilityModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.AccessibilityModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.AIModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.AIModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.AnimationModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.AnimationModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.ARModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.ARModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.AssetBundleModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.AssetBundleModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.AudioModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.AudioModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.BaselibModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.BaselibModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.ClothModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.ClothModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.ClusterInputModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.ClusterInputModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.ClusterRendererModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.ClusterRendererModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.CoreModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.CrashReportingModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.CrashReportingModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.DirectorModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.DirectorModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.FileSystemHttpModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.FileSystemHttpModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.GameCenterModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.GameCenterModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.GridModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.GridModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.HotReloadModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.HotReloadModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.ImageConversionModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.ImageConversionModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.IMGUIModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.IMGUIModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.InputModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.InputModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.JSONSerializeModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.JSONSerializeModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.LocalizationModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.LocalizationModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.Networking, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
|
||||||
<SpecificVersion>False</SpecificVersion>
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.Networking.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.ParticleSystemModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.ParticleSystemModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.PerformanceReportingModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.PerformanceReportingModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.Physics2DModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.Physics2DModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.PhysicsModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.PhysicsModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.ProfilerModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.ProfilerModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.ScreenCaptureModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.ScreenCaptureModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.SharedInternalsModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.SharedInternalsModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.SpatialTracking">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.SpatialTracking.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.SpriteMaskModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.SpriteMaskModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.SpriteShapeModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.SpriteShapeModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.StreamingModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.StreamingModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.StyleSheetsModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.StyleSheetsModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.SubstanceModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.SubstanceModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.TerrainModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.TerrainModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.TerrainPhysicsModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.TerrainPhysicsModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.TextCoreModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.TextCoreModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.TextRenderingModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.TextRenderingModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.TilemapModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.TilemapModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.Timeline">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.Timeline.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.TimelineModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.TimelineModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.TLSModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.TLSModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.UI, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
|
||||||
<SpecificVersion>False</SpecificVersion>
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.UI.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.UIElementsModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.UIElementsModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.UIModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.UIModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.UmbraModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.UmbraModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.UNETModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.UNETModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.UnityAnalyticsModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.UnityAnalyticsModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.UnityConnectModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.UnityConnectModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.UnityTestProtocolModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.UnityTestProtocolModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.UnityWebRequestAssetBundleModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.UnityWebRequestAssetBundleModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.UnityWebRequestAudioModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.UnityWebRequestAudioModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.UnityWebRequestModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.UnityWebRequestModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.UnityWebRequestTextureModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.UnityWebRequestTextureModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.UnityWebRequestWWWModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.UnityWebRequestWWWModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.VehiclesModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.VehiclesModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.VFXModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.VFXModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.VideoModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.VideoModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.VRModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.VRModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.WindModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.WindModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="UnityEngine.XRModule">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\UnityEngine.XRModule.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="zxing.unity">
|
|
||||||
<HintPath>..\..\..\GameLibray\maimai_Splash\Package\Sinmai_Data\Managed\zxing.unity.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Compile Include="Main.cs" />
|
|
||||||
<Compile Include="Sinmai_GUI.cs" />
|
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
|
||||||
</Project>
|
|
@ -1,6 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<PropertyGroup>
|
|
||||||
<ProjectView>ShowAllFiles</ProjectView>
|
|
||||||
</PropertyGroup>
|
|
||||||
</Project>
|
|
53
Sinmai-Internal-Damage/UI/Menu.cs
Normal file
53
Sinmai-Internal-Damage/UI/Menu.cs
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
using Sinmai.Helper;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace Sinmai.UI
|
||||||
|
{
|
||||||
|
public class Menu : MonoBehaviour
|
||||||
|
{
|
||||||
|
private Rect Window;
|
||||||
|
|
||||||
|
private bool MenuToggle = true;
|
||||||
|
|
||||||
|
|
||||||
|
private void Start()
|
||||||
|
{
|
||||||
|
Window = new Rect(20f, 60f, 250f, 350f);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Update()
|
||||||
|
{
|
||||||
|
if (Input.GetKeyDown(KeyCode.Insert)) //check Unity.Input when menu open unlock ur cursor
|
||||||
|
MenuToggle = !MenuToggle;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnGUI()
|
||||||
|
{
|
||||||
|
//Draw ur epic hek here
|
||||||
|
if (MenuToggle)
|
||||||
|
Window = GUILayout.Window(0, Window, new GUI.WindowFunction(RenderMenu), "unity internal gui", new GUILayoutOption[0]);
|
||||||
|
Render.DrawCross(new Vector2(Screen.width /2, Screen.height /2), new Vector2(20, 20), 1f, new Color(0,255,0));
|
||||||
|
Render.DrawString(new Vector2(200, 200), "Sinmai-Internal-Damage-Csharp", false);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void RenderMenu(int id)
|
||||||
|
{
|
||||||
|
switch (id)
|
||||||
|
{
|
||||||
|
case 0:
|
||||||
|
Settings.CheckBox = GUILayout.Toggle(Settings.CheckBox, "hi checkbox", new GUILayoutOption[0]);
|
||||||
|
GUILayout.Label("hi label", new GUILayoutOption[0]);
|
||||||
|
GUILayout.Button("hi button", new GUILayoutOption[0]);
|
||||||
|
|
||||||
|
if (GUILayout.Button("Unload", new GUILayoutOption[0]))
|
||||||
|
Loader.Unload();
|
||||||
|
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
GUI.DragWindow();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
7
Sinmai-Internal-Damage/UI/Settings.cs
Normal file
7
Sinmai-Internal-Damage/UI/Settings.cs
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
namespace Sinmai.Helper
|
||||||
|
{
|
||||||
|
class Settings
|
||||||
|
{
|
||||||
|
public static bool CheckBox = false;
|
||||||
|
}
|
||||||
|
}
|
117
Sinmai-Internal-Damage/Utils/Render.cs
Normal file
117
Sinmai-Internal-Damage/Utils/Render.cs
Normal file
@ -0,0 +1,117 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace Sinmai
|
||||||
|
{
|
||||||
|
public static class Render
|
||||||
|
{
|
||||||
|
|
||||||
|
public static GUIStyle StringStyle { get; set; } = new GUIStyle(GUI.skin.label);
|
||||||
|
private class RingArray
|
||||||
|
{
|
||||||
|
public Vector2[] Positions { get; private set; }
|
||||||
|
|
||||||
|
public RingArray(int numSegments)
|
||||||
|
{
|
||||||
|
Positions = new Vector2[numSegments];
|
||||||
|
var stepSize = 360f / numSegments;
|
||||||
|
for (int i = 0; i < numSegments; i++)
|
||||||
|
{
|
||||||
|
var rad = Mathf.Deg2Rad * stepSize * i;
|
||||||
|
Positions[i] = new Vector2(Mathf.Sin(rad), Mathf.Cos(rad));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static Dictionary<int, RingArray> ringDict = new Dictionary<int, RingArray>();
|
||||||
|
|
||||||
|
public static Color Color {
|
||||||
|
get { return GUI.color; }
|
||||||
|
set { GUI.color = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void DrawLine(Vector2 from, Vector2 to, float thickness, Color color)
|
||||||
|
{
|
||||||
|
Color = color;
|
||||||
|
DrawLine(from, to, thickness);
|
||||||
|
}
|
||||||
|
public static void DrawLine(Vector2 from, Vector2 to, float thickness)
|
||||||
|
{
|
||||||
|
var delta = (to - from).normalized;
|
||||||
|
var angle = Mathf.Atan2(delta.y, delta.x) * Mathf.Rad2Deg;
|
||||||
|
GUIUtility.RotateAroundPivot(angle, from);
|
||||||
|
DrawBox(from, Vector2.right * (from - to).magnitude, thickness, false);
|
||||||
|
GUIUtility.RotateAroundPivot(-angle, from);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void DrawBox(Vector2 position, Vector2 size, float thickness, Color color, bool centered = true)
|
||||||
|
{
|
||||||
|
Color = color;
|
||||||
|
DrawBox(position, size, thickness, centered);
|
||||||
|
}
|
||||||
|
public static void DrawBox(Vector2 position, Vector2 size, float thickness, bool centered = true)
|
||||||
|
{
|
||||||
|
var upperLeft = centered ? position - size / 2f : position;
|
||||||
|
GUI.DrawTexture(new Rect(position.x, position.y, size.x, thickness), Texture2D.whiteTexture);
|
||||||
|
GUI.DrawTexture(new Rect(position.x, position.y, thickness, size.y), Texture2D.whiteTexture);
|
||||||
|
GUI.DrawTexture(new Rect(position.x + size.x, position.y, thickness, size.y), Texture2D.whiteTexture);
|
||||||
|
GUI.DrawTexture(new Rect(position.x, position.y + size.y, size.x + thickness, thickness), Texture2D.whiteTexture);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void DrawCross(Vector2 position, Vector2 size, float thickness, Color color)
|
||||||
|
{
|
||||||
|
Color = color;
|
||||||
|
DrawCross(position, size, thickness);
|
||||||
|
}
|
||||||
|
public static void DrawCross(Vector2 position, Vector2 size, float thickness)
|
||||||
|
{
|
||||||
|
GUI.DrawTexture(new Rect(position.x - size.x / 2f, position.y, size.x, thickness), Texture2D.whiteTexture);
|
||||||
|
GUI.DrawTexture(new Rect(position.x, position.y - size.y / 2f, thickness, size.y), Texture2D.whiteTexture);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void DrawDot(Vector2 position, Color color)
|
||||||
|
{
|
||||||
|
Color = color;
|
||||||
|
DrawDot(position);
|
||||||
|
}
|
||||||
|
public static void DrawDot(Vector2 position)
|
||||||
|
{
|
||||||
|
DrawBox(position - Vector2.one, Vector2.one * 2f, 1f);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void DrawString(Vector2 position, string label, Color color, bool centered = true)
|
||||||
|
{
|
||||||
|
Color = color;
|
||||||
|
DrawString(position, label, centered);
|
||||||
|
}
|
||||||
|
public static void DrawString(Vector2 position, string label, bool centered = true)
|
||||||
|
{
|
||||||
|
var content = new GUIContent(label);
|
||||||
|
var size = StringStyle.CalcSize(content);
|
||||||
|
var upperLeft = centered ? position - size / 2f : position;
|
||||||
|
GUI.Label(new Rect(upperLeft, size), content);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void DrawCircle(Vector2 position, float radius, int numSides, bool centered = true, float thickness = 1f)
|
||||||
|
{
|
||||||
|
DrawCircle(position, radius, numSides, Color.white, centered, thickness);
|
||||||
|
}
|
||||||
|
public static void DrawCircle(Vector2 position, float radius, int numSides, Color color, bool centered = true, float thickness = 1f)
|
||||||
|
{
|
||||||
|
RingArray arr;
|
||||||
|
if (ringDict.ContainsKey(numSides))
|
||||||
|
arr = ringDict[numSides];
|
||||||
|
else
|
||||||
|
arr = ringDict[numSides] = new RingArray(numSides);
|
||||||
|
|
||||||
|
|
||||||
|
var center = centered ? position : position + Vector2.one * radius;
|
||||||
|
|
||||||
|
for (int i = 0; i < numSides - 1; i++)
|
||||||
|
DrawLine(center + arr.Positions[i] * radius, center + arr.Positions[i + 1] * radius, thickness, color);
|
||||||
|
|
||||||
|
DrawLine(center + arr.Positions[0] * radius, center + arr.Positions[arr.Positions.Length - 1] * radius, thickness, color);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -1,4 +0,0 @@
|
|||||||
// <autogenerated />
|
|
||||||
using System;
|
|
||||||
using System.Reflection;
|
|
||||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.6", FrameworkDisplayName = ".NET Framework 4.6")]
|
|
@ -1,4 +0,0 @@
|
|||||||
// <autogenerated />
|
|
||||||
using System;
|
|
||||||
using System.Reflection;
|
|
||||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
|
|
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
55a6693ad063d7b62e19ab8c28bdc34ec9d10701
|
|
@ -1,17 +0,0 @@
|
|||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\Sinmai-Internal-Damage.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\Sinmai-Internal-Damage.pdb
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\Assembly-CSharp-firstpass.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\Assembly-CSharp.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\Mono.Security.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.Networking.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.UI.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\obj\Debug\Sinmai-Internal-Damage.csproj.CoreCompileInputs.cache
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\obj\Debug\Sinmai-Internal-Damage.csproj.CopyComplete
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\obj\Debug\Sinmai-Internal-Damage.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\obj\Debug\Sinmai-Internal-Damage.pdb
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\Assembly-UnityScript-firstpass.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\Assembly-UnityScript.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\Boo.Lang.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\GalaxyCSharp.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityScript.Lang.dll
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
59d570d57e27dbca0d6653fa64d10f52434678a8
|
|
@ -1,79 +0,0 @@
|
|||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\Sinmai-Internal-Damage.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\Sinmai-Internal-Damage.pdb
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\Assembly-CSharp-firstpass.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\Assembly-CSharp.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\Mono.Security.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.Networking.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.UI.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\obj\Debug\Sinmai_Internal_Damage.csproj.CoreCompileInputs.cache
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\obj\Debug\Sinmai_Internal_Damage.csproj.CopyComplete
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\obj\Debug\Sinmai-Internal-Damage.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\obj\Debug\Sinmai-Internal-Damage.pdb
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\AMDaemon.NET.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\Mono.Posix.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\Unity.Analytics.DataPrivacy.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\Unity.TextMeshPro.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.AccessibilityModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.AIModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.AnimationModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.ARModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.AssetBundleModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.AudioModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.BaselibModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.ClothModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.ClusterInputModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.ClusterRendererModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.CoreModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.CrashReportingModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.DirectorModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.FileSystemHttpModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.GameCenterModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.GridModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.HotReloadModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.ImageConversionModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.IMGUIModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.InputModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.JSONSerializeModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.LocalizationModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.ParticleSystemModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.PerformanceReportingModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.Physics2DModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.PhysicsModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.ProfilerModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.ScreenCaptureModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.SharedInternalsModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.SpatialTracking.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.SpriteMaskModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.SpriteShapeModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.StreamingModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.StyleSheetsModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.SubstanceModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.TerrainModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.TerrainPhysicsModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.TextCoreModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.TextRenderingModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.TilemapModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.Timeline.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.TimelineModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.TLSModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.UIElementsModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.UIModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.UmbraModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.UNETModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.UnityAnalyticsModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.UnityConnectModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.UnityTestProtocolModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.UnityWebRequestAssetBundleModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.UnityWebRequestAudioModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.UnityWebRequestModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.UnityWebRequestTextureModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.UnityWebRequestWWWModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.VehiclesModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.VFXModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.VideoModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.VRModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.WindModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\UnityEngine.XRModule.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\bin\Debug\zxing.unity.dll
|
|
||||||
D:\Source\Sinmai-Internal-Damage\Sinmai-Internal-Damage\obj\Debug\Sinmai_Internal_Damage.csproj.AssemblyReference.cache
|
|
@ -1,4 +0,0 @@
|
|||||||
// <autogenerated />
|
|
||||||
using System;
|
|
||||||
using System.Reflection;
|
|
||||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.6", FrameworkDisplayName = ".NET Framework 4.6")]
|
|
@ -1,4 +0,0 @@
|
|||||||
// <autogenerated />
|
|
||||||
using System;
|
|
||||||
using System.Reflection;
|
|
||||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
|
|
Loading…
x
Reference in New Issue
Block a user