-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2ecd04d
commit 49f5691
Showing
5 changed files
with
145 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?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)' == '' ">Release</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProjectGuid>{788BC472-59F7-46F6-B760-65C18BA74389}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>BVRdarkmodui</RootNamespace> | ||
<AssemblyName>DarkMode</AssemblyName> | ||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion> | ||
<FileAlignment>512</FileAlignment> | ||
<Deterministic>true</Deterministic> | ||
<TargetFrameworkProfile /> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DebugSymbols>false</DebugSymbols> | ||
<DebugType>None</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>$(SolutionDir)Output\</OutputPath> | ||
<DefineConstants> | ||
</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
<Prefer32Bit>false</Prefer32Bit> | ||
<DebugSymbols>false</DebugSymbols> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="Il2Cppmscorlib"> | ||
<HintPath>D:\Program Files x86\Epic Games\SteamNotBroken\steamapps\common\BricksVR\MelonLoader\Managed\Il2Cppmscorlib.dll</HintPath> | ||
</Reference> | ||
<Reference Include="MelonLoader"> | ||
<HintPath>D:\Program Files x86\Epic Games\SteamNotBroken\steamapps\common\BricksVR\MelonLoader\MelonLoader.dll</HintPath> | ||
</Reference> | ||
<Reference Include="System" /> | ||
<Reference Include="UnhollowerBaseLib"> | ||
<HintPath>D:\Program Files x86\Epic Games\SteamNotBroken\steamapps\common\BricksVR\MelonLoader\Managed\UnhollowerBaseLib.dll</HintPath> | ||
</Reference> | ||
<Reference Include="Unity.TextMeshPro"> | ||
<HintPath>D:\Program Files x86\Epic Games\SteamNotBroken\steamapps\common\BricksVR\MelonLoader\Managed\Unity.TextMeshPro.dll</HintPath> | ||
</Reference> | ||
<Reference Include="UnityEngine"> | ||
<HintPath>D:\Program Files x86\Epic Games\SteamNotBroken\steamapps\common\BricksVR\MelonLoader\Managed\UnityEngine.dll</HintPath> | ||
</Reference> | ||
<Reference Include="UnityEngine.CoreModule"> | ||
<HintPath>D:\Program Files x86\Epic Games\SteamNotBroken\steamapps\common\BricksVR\MelonLoader\Managed\UnityEngine.CoreModule.dll</HintPath> | ||
</Reference> | ||
<Reference Include="UnityEngine.UI, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL"> | ||
<SpecificVersion>False</SpecificVersion> | ||
<HintPath>D:\Program Files x86\Epic Games\SteamNotBroken\steamapps\common\BricksVR\MelonLoader\Managed\UnityEngine.UI.dll</HintPath> | ||
</Reference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
<Compile Include="Main.cs" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 16 | ||
VisualStudioVersion = 16.0.30128.74 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DarkUI", "DarkUI.csproj", "{788BC472-59F7-46F6-B760-65C18BA74389}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{788BC472-59F7-46F6-B760-65C18BA74389}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{788BC472-59F7-46F6-B760-65C18BA74389}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {DDF15A6C-2A44-4EBE-BD85-F3EE61DCD8BF} | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using MelonLoader; | ||
using UnityEngine; | ||
using TMPro; | ||
using UnityEngine.UI; | ||
namespace DarkMode | ||
{ | ||
public static class BuildInfo | ||
{ | ||
public const string Name = "DarkUI"; // Name of the Mod. (MUST BE SET) | ||
public const string Description = "A DarkUI mod for BricksVR."; // Description for the Mod. (Set as null if none) | ||
public const string Author = "BelugaTheAxolotl#2134"; // Author of the Mod. (MUST BE SET) | ||
public const string Company = null; // Company that made the Mod. (Set as null if none) | ||
public const string Version = "0.1.0"; // Version of the Mod. (MUST BE SET) | ||
public const string DownloadLink = null; // Download Link for the Mod. (Set as null if none) | ||
} | ||
|
||
public class UIset : MelonMod | ||
{ | ||
public override void OnSceneWasInitialized(int buildindex, string sceneName) | ||
{ | ||
GameObject.Find("MenuBoard/Background").GetComponent<Image>().color = new Color(0, 0, 0, 0.75f); | ||
var allOBJ = Resources.FindObjectsOfTypeAll<GameObject>(); | ||
for (var e = 0; e < allOBJ.Length; e++) | ||
{ | ||
if (!allOBJ[e].GetComponent<Button>()) continue; | ||
if (allOBJ[e].GetComponent<Image>() && allOBJ[e].transform.GetChild(0).GetComponent<TextMeshProUGUI>()) | ||
{ | ||
allOBJ[e].GetComponent<Image>().color = new Color(0, 0, 0, 0.75f); | ||
allOBJ[e].transform.GetChild(0).GetComponent<TextMeshProUGUI>().color = new Color(0.5755f, 0.5755f, 0.5755f, 1); | ||
allOBJ[e].transform.GetChild(0).GetComponent<TextMeshProUGUI>().faceColor = new Color32(255, 255, 255, 255); | ||
} | ||
|
||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System.Reflection; | ||
using MelonLoader; | ||
|
||
[assembly: AssemblyTitle(DarkMode.BuildInfo.Description)] | ||
[assembly: AssemblyDescription(DarkMode.BuildInfo.Description)] | ||
[assembly: AssemblyCompany(DarkMode.BuildInfo.Company)] | ||
[assembly: AssemblyProduct(DarkMode.BuildInfo.Name)] | ||
[assembly: AssemblyCopyright("Created by " + DarkMode.BuildInfo.Author)] | ||
[assembly: AssemblyTrademark(DarkMode.BuildInfo.Company)] | ||
[assembly: AssemblyVersion(DarkMode.BuildInfo.Version)] | ||
[assembly: AssemblyFileVersion(DarkMode.BuildInfo.Version)] | ||
[assembly: MelonInfo(typeof(DarkMode.UIset), DarkMode.BuildInfo.Name, DarkMode.BuildInfo.Version, DarkMode.BuildInfo.Author, DarkMode.BuildInfo.DownloadLink)] | ||
[assembly: MelonColor()] | ||
|
||
// Create and Setup a MelonGame Attribute to mark a Melon as Universal or Compatible with specific Games. | ||
// If no MelonGame Attribute is found or any of the Values for any MelonGame Attribute on the Melon is null or empty it will be assumed the Melon is Universal. | ||
// Values for MelonGame Attribute can be found in the Game's app.info file or printed at the top of every log directly beneath the Unity version. | ||
[assembly: MelonGame("BricksVR", "BricksVR")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
### GENERAL INFORMATION: | ||
|
||
- An Example Mod for [MelonLoader](https://github.com/LavaGang/MelonLoader). | ||
|
||
--- | ||
|
||
### LICENSING & CREDITS: | ||
|
||
TestMod is licensed under the Apache License, Version 2.0. See [LICENSE](https://github.com/LavaGang/TestMod/blob/master/LICENSE.md) for the full License. |