Skip to content

Commit

Permalink
fix!: renamed project to ItemBoxTracker
Browse files Browse the repository at this point in the history
  • Loading branch information
DevilPepper committed Feb 1, 2021
1 parent 5525903 commit 62278af
Show file tree
Hide file tree
Showing 23 changed files with 33 additions and 33 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-release-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [ master ]

env:
Project_Name: MHWItemBoxTracker
Project_Name: ItemBoxTracker

defaults:
run:
Expand Down Expand Up @@ -136,20 +136,20 @@ jobs:

- name: Zip it
run: |
mkdir -p Modules/ItemBoxTracker
mkdir -p Modules/${Project_Name}
RELEASE_DIR="${Project_Name}/bin/Release"
mv ${RELEASE_DIR}/${Project_Name}.dll \
${RELEASE_DIR}/config.schema.json \
${RELEASE_DIR}/module.json \
${RELEASE_DIR}/settings.json \
Modules/ItemBoxTracker
zip ItemBoxTracker.zip -r Modules
Modules/${Project_Name}
zip ${Project_Name}.zip -r Modules
- name: Create release with binaries
run: |
gh release create v$GIT_TAG -t "Release v$GIT_TAG" --notes-file ${Project_Name}/bin/Release/notes.md \
ItemBoxTracker.zip \
Modules/ItemBoxTracker/*
${Project_Name}.zip \
Modules/${Project_Name}/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_TAG: ${{ needs.build.outputs.git_tag }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [ master ]

env:
Project_Name: MHWItemBoxTracker
Project_Name: ItemBoxTracker
configuration: Debug

defaults:
Expand Down
2 changes: 1 addition & 1 deletion MHWItemBoxTracker.sln → ItemBoxTracker.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30717.126
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MHWItemBoxTracker", "MHWItemBoxTracker\MHWItemBoxTracker.csproj", "{9F7E4AEB-D719-48DB-A2D7-502C192AAC46}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ItemBoxTracker", "ItemBoxTracker\ItemBoxTracker.csproj", "{9F7E4AEB-D719-48DB-A2D7-502C192AAC46}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using HunterPie.GUI;
using MHWItemBoxTracker.Config;

namespace MHWItemBoxTracker.helper
namespace MHWItemBoxTracker.Controller
{
class ItemBoxTracker
{
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{9F7E4AEB-D719-48DB-A2D7-502C192AAC46}</ProjectGuid>
<OutputType>library</OutputType>
<RootNamespace>MHWItemBoxTracker</RootNamespace>
<AssemblyName>MHWItemBoxTracker</AssemblyName>
<RootNamespace>ItemBoxTracker</RootNamespace>
<AssemblyName>ItemBoxTracker</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
Expand Down Expand Up @@ -89,7 +89,7 @@
<Compile Include="GUI\ItemBoxTracker.xaml.cs">
<DependentUpon>ItemBoxTracker.xaml</DependentUpon>
</Compile>
<Compile Include="helper\ItemBoxTracker.cs" />
<Compile Include="Controller\ItemBoxTracker.cs" />
<Compile Include="Main.cs" />
<Compile Include="Properties\AssemblyInfo.cs">
<SubType>Code</SubType>
Expand Down
6 changes: 3 additions & 3 deletions MHWItemBoxTracker/Main.cs → ItemBoxTracker/Main.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using HunterPie.Core;
using HunterPie.Plugins;
using MHWItemBoxTracker.helper;
using MHWItemBoxTracker;
using MHWItemBoxTracker.Utils;

namespace MHWItemBoxTracker
Expand All @@ -10,7 +10,7 @@ public class Main : IPlugin
public string Name { get; set; }
public string Description { get; set; }
public Game Context { get; set; }
private ItemBoxTracker tracker { get; set; }
private Controller.ItemBoxTracker tracker { get; set; }

public void Initialize(Game context)
{
Expand All @@ -20,7 +20,7 @@ public void Initialize(Game context)
Description = module.Description;
Context = context;

tracker = new ItemBoxTracker(context.Player);
tracker = new Controller.ItemBoxTracker(context.Player);
hookEvents();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
// 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("MHWItemBoxTracker")]
[assembly: AssemblyTitle("ItemBoxTracker")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("MHWItemBoxTracker")]
[assembly: AssemblyProduct("ItemBoxTracker")]
[assembly: AssemblyCopyright("Copyright © 2020")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ Reducing cognitive overhead by allowing the player to stop looking at the box af

### Setup

1. Download [module.json](https://github.com/SupaStuff/MHWItemBoxTracker/releases/latest/download/module.json) to _`<HunterPie>/Modules/ItemBoxTracker`_
- Alternatively you can extract [ItemBoxTracker.zip](https://github.com/SupaStuff/MHWItemBoxTracker/releases/latest/download/ItemBoxTracker.zip) to the HunterPie directory
1. Download [module.json](https://github.com/Stuff-Mods/MHWItemBoxTracker/releases/latest/download/module.json) to _`<HunterPie>/Modules/ItemBoxTracker`_
- Alternatively you can extract [ItemBoxTracker.zip](https://github.com/Stuff-Mods/MHWItemBoxTracker/releases/latest/download/ItemBoxTracker.zip) to the HunterPie directory
2. Let Hunter Pie do its thing
3. To config the tracker, you can go [here](https://json-editor.github.io/json-editor/) or [here](https://rjsf-team.github.io/react-jsonschema-form/) and copy and paste the contents of [config.schema.json](https://github.com/SupaStuff/MHWItemBoxTracker/releases/latest/download/config.schema.json) into the schema box. Then you can copy the output to _Modules/MHWItemBoxTracker/settings.json_
3. To config the tracker, you can go [here](https://json-editor.github.io/json-editor/) or [here](https://rjsf-team.github.io/react-jsonschema-form/) and copy and paste the contents of [config.schema.json](https://github.com/Stuff-Mods/MHWItemBoxTracker/releases/latest/download/config.schema.json) into the schema box. Then you can copy the output to _Modules/ItemBoxTracker/settings.json_
- They both have a bug where Overlay.Position are invalid if you leave them empty, so at least make both coordinates 0 or something.

## Build
Expand All @@ -36,6 +36,6 @@ nuget sources add -name FKnS -source https://nuget.pkg.github.com/ForksKnivesAnd
Then to build it:

```bash
msbuild MHWItemBoxTracker.sln -m /t:Restore
msbuild MHWItemBoxTracker.sln -m /p:Configuration=Release
msbuild -m /t:Restore
msbuild -m /p:Configuration=Release
```
4 changes: 2 additions & 2 deletions scripts/gen-json-schema.csx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#r "MHWItemBoxTracker.dll"
#r "ItemBoxTracker.dll"

using System.IO;

using MHWItemBoxTracker.Config;
using MHWItemBoxTracker.Utils;

var schema = JsonSchema.Generate<ItemBoxTrackerConfig>();
File.WriteAllText("MHWItemBoxTracker/bin/Release/config.schema.json", schema);
File.WriteAllText("ItemBoxTracker/bin/Release/config.schema.json", schema);
8 changes: 4 additions & 4 deletions scripts/gen-module-json.csx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#r "MHWItemBoxTracker.dll"
#r "ItemBoxTracker.dll"

using System.Collections.Generic;
using System.IO;
Expand All @@ -8,14 +8,14 @@ using HunterPie.Plugins;
using MHWItemBoxTracker.Config;
using Newtonsoft.Json;

var releaseDirectory = "MHWItemBoxTracker/bin/Release";
var releaseDirectory = "ItemBoxTracker/bin/Release";
var files = new List<string>() {
"MHWItemBoxTracker.dll",
"ItemBoxTracker.dll",
"config.schema.json",
};

var info = new PluginInformation();
info.Name = "MHWItemBoxTracker";
info.Name = "ItemBoxTracker";
info.EntryPoint = "Main.cs";
info.Description = "A HunterPie plugin to track items the player is farming";
info.Author = "Stuff";
Expand Down
4 changes: 2 additions & 2 deletions scripts/gen-settings-json.csx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#r "MHWItemBoxTracker.dll"
#r "ItemBoxTracker.dll"

using System.IO;

using MHWItemBoxTracker.Config;
using Newtonsoft.Json;

// TODO: D.R.Y.
var releaseDirectory = "MHWItemBoxTracker/bin/Release";
var releaseDirectory = "ItemBoxTracker/bin/Release";

var settings = new ItemBoxTrackerConfig();
var json = JsonConvert.SerializeObject(settings, Newtonsoft.Json.Formatting.Indented);
Expand Down

0 comments on commit 62278af

Please sign in to comment.