Skip to content

Commit

Permalink
New mods: HigherZoom, testing out patch v10
Browse files Browse the repository at this point in the history
  • Loading branch information
Nefaro committed Feb 13, 2022
1 parent 97932bf commit 7ad405f
Show file tree
Hide file tree
Showing 5 changed files with 141 additions and 1 deletion.
31 changes: 31 additions & 0 deletions Gnoll Mods/HigherZoom/HigherZoom.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31825.309
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HigherZoom", "HigherZoom\HigherZoom.csproj", "{72F36516-EADD-4CEA-8285-25C46FB29DB1}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{72F36516-EADD-4CEA-8285-25C46FB29DB1}.Debug|Any CPU.ActiveCfg = Release|x86
{72F36516-EADD-4CEA-8285-25C46FB29DB1}.Debug|Any CPU.Build.0 = Release|x86
{72F36516-EADD-4CEA-8285-25C46FB29DB1}.Debug|x86.ActiveCfg = Debug|x86
{72F36516-EADD-4CEA-8285-25C46FB29DB1}.Debug|x86.Build.0 = Debug|x86
{72F36516-EADD-4CEA-8285-25C46FB29DB1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{72F36516-EADD-4CEA-8285-25C46FB29DB1}.Release|Any CPU.Build.0 = Release|Any CPU
{72F36516-EADD-4CEA-8285-25C46FB29DB1}.Release|x86.ActiveCfg = Release|x86
{72F36516-EADD-4CEA-8285-25C46FB29DB1}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {0B11751C-1FDB-46B2-91A9-94C73D913FEE}
EndGlobalSection
EndGlobal
70 changes: 70 additions & 0 deletions Gnoll Mods/HigherZoom/HigherZoom/HigherZoom.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<?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>{72F36516-EADD-4CEA-8285-25C46FB29DB1}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>GnollMods.HigherZoom</RootNamespace>
<AssemblyName>HigherZoom</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>x86</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>
</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<StartupObject />
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>
</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<ItemGroup>
<Compile Include="ModMain.cs" />
</ItemGroup>
<ItemGroup>
<Reference Include="GnollModLoader">
<HintPath>..\..\..\GnollModLoader\GnollModLoader\bin\x86\Release\GnollModLoader.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="GnomoriaSDK-patched">
<HintPath>..\..\..\sdk\GnomoriaSDK-patched.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
37 changes: 37 additions & 0 deletions Gnoll Mods/HigherZoom/HigherZoom/ModMain.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Game;
using GnollModLoader;

namespace GnollMods.HigherZoom
{
public class ModMain : IGnollMod
{
public string Name { get { return "HigherZoom"; } }

public string Description { get { return "Provides 2 more levels for zooming out."; } }

public string BuiltWithLoaderVersion { get { return "G1.10"; } }

public int RequireMinPatchVersion { get { return 10; } }

public void OnLoad(HookManager hookManager)
{
hookManager.BeforeInGameHudInit += HookManager_BeforeInGameHudInit;
}
private void HookManager_BeforeInGameHudInit()
{
GnomanEmpire.Instance.Camera.float_1 = new float[]
{
0.25f,
0.5f,
1f,
2f,
4f
};
GnomanEmpire.Instance.Camera.int_0 = 3;
}
}
}
1 change: 1 addition & 0 deletions Gnoll Mods/HigherZoom/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This mod allows 2 more levels of zooming out. Not really great for playing, but great for having an overview or taking a screenshot.
3 changes: 2 additions & 1 deletion Gnoll Mods/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ Currently those mods are:
- MarketStallSellFilters - Player can now filter own inventory by value and name
- SeasonalChange - Switches the environment graphics according to current season
- TrackedItemsSizeLimitMod - Removes the limit on how many items can be tracked in the main HUD
- VeinMiner - Enhances mining in a way tha gnomes digg out the mineral/gem veins by themselves
- VeinMiner - Enhances mining in a way that gnomes digg out the mineral/gem veins by themselves
- HigherZoom - Allows 2 more levels of zooming out

0 comments on commit 7ad405f

Please sign in to comment.