Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rjw
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nnasidahbs
rjw
Commits
893ba086
Commit
893ba086
authored
5 years ago
by
Ed86
Browse files
Options
Downloads
Patches
Plain Diff
base surgery patch for one day parts morphing with floating menu... hopefully
parent
4688bf22
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
RimJobWorld.Main.csproj
+1
-0
1 addition, 0 deletions
RimJobWorld.Main.csproj
Source/Harmony/patch_surgery.cs
+59
-0
59 additions, 0 deletions
Source/Harmony/patch_surgery.cs
with
60 additions
and
0 deletions
RimJobWorld.Main.csproj
+
1
−
0
View file @
893ba086
...
...
@@ -72,6 +72,7 @@
<Compile Include="Source\Harmony\Patch_PawnGenerator_GenerateNewPawnInternal.cs" />
<Compile Include="Source\Harmony\patch_races.cs" />
<Compile Include="Source\Harmony\patch_selector.cs" />
<Compile Include="Source\Harmony\patch_surgery.cs" />
<Compile Include="Source\Harmony\patch_ui_hero.cs" />
<Compile Include="Source\Harmony\patch_ui_rjw_buttons.cs" />
<Compile Include="Source\Harmony\SocialCardUtilityPatch.cs" />
...
...
This diff is collapsed.
Click to expand it.
Source/Harmony/patch_surgery.cs
0 → 100644
+
59
−
0
View file @
893ba086
using
System
;
using
System.Reflection
;
using
Harmony
;
using
RimWorld
;
using
Verse
;
using
Verse.AI
;
using
System.Linq
;
using
System.Collections.Generic
;
using
System.Diagnostics
;
using
System.Text
;
using
UnityEngine
;
namespace
rjw
{
/// <summary>
/// Patch:
/// recipes
/// </summary>
//erm.. idk ?
//[HarmonyPatch(typeof(HealthCardUtility), "GetTooltip")]
//internal static class PATCH_HealthCardUtility_GetTooltip
//{
// [HarmonyPostfix]
// private static void Postfix(Pawn pawn)
// {
// Log.Message("[RJW]GetTooltip");
// //Log.Message("[RJW]PATCH_HealthCardUtility_recipes list: " + floatMenuOption);
// //foreach (FloatMenuOption recipe in recipeOptionsMaker)
// // {
// // Log.Message("[RJW]PATCH_HealthCardUtility_recipes: " + recipe);
// // }
// return;
// }
//}
//TODO: make toggle/floatmenu for slime/demon parts switching/renaming
//[HarmonyPatch(typeof(HealthCardUtility), "EntryClicked")]
//internal static class PATCH_HealthCardUtility_EntryClicked
//{
// [HarmonyPostfix]
// private static void Postfix(ref IEnumerable<Hediff> diffs, ref Pawn pawn)
// {
// BodyPartRecord part = diffs.First<Hediff>().Part;
// Hediff hed = diffs.First<Hediff>();
// Log.Message("[RJW]EntryClicked: " + part.Label);
// Log.Message("[RJW]EntryClicked: " + hed.Label);
// //Log.Message("[RJW]PATCH_HealthCardUtility_recipes list: " + floatMenuOption);
// //foreach (FloatMenuOption recipe in recipeOptionsMaker)
// // {
// // Log.Message("[RJW]PATCH_HealthCardUtility_recipes: " + recipe);
// // }
// return;
// }
//}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment