Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ATXLtheAxolotl authored Dec 10, 2021
1 parent 2ecd04d commit 49f5691
Show file tree
Hide file tree
Showing 5 changed files with 145 additions and 0 deletions.
60 changes: 60 additions & 0 deletions DarkUI.csproj
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>
22 changes: 22 additions & 0 deletions DarkUI.sln
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
36 changes: 36 additions & 0 deletions Main.cs
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);
}

}
}
}
}
18 changes: 18 additions & 0 deletions Properties/AssemblyInfo.cs
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")]
9 changes: 9 additions & 0 deletions README.md
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.

0 comments on commit 49f5691

Please sign in to comment.