-
Notifications
You must be signed in to change notification settings - Fork 6
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
Showing
26 changed files
with
2,584 additions
and
67 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
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
using Harmony; | ||
using HarmonyLib; | ||
using RimWorld; | ||
using System; | ||
using System.Collections.Generic; | ||
|
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,10 @@ | ||
using Verse; | ||
|
||
namespace ProjectJedi | ||
{ | ||
[StaticConstructorOnStartup] | ||
public static class ModInfo | ||
{ | ||
public static float forceXPDelayFactor = 1; | ||
} | ||
} |
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,46 @@ | ||
using UnityEngine; | ||
using Verse; | ||
|
||
namespace ProjectJedi | ||
{ | ||
public class ModMain : Mod | ||
{ | ||
Settings settings; | ||
|
||
public ModMain(ModContentPack content) : base(content) | ||
{ | ||
this.settings = GetSettings<Settings>(); | ||
ModInfo.forceXPDelayFactor = this.settings.forceXPDelayFactor; | ||
} | ||
|
||
public override string SettingsCategory() => "Star Wars - The Force"; | ||
|
||
public override void DoSettingsWindowContents(Rect inRect) | ||
{ | ||
var label = "PJ_SettingsForceXPDelay_Num".Translate(this.settings.forceXPDelayFactor); | ||
this.settings.forceXPDelayFactor = Widgets.HorizontalSlider(inRect.TopHalf().TopHalf().TopHalf(), this.settings.forceXPDelayFactor, 0.1f, 10f, false, label, null, null, 0.1f); | ||
|
||
this.WriteSettings(); | ||
|
||
} | ||
|
||
public override void WriteSettings() | ||
{ | ||
base.WriteSettings(); | ||
ModInfo.forceXPDelayFactor = this.settings.forceXPDelayFactor; | ||
} | ||
|
||
} | ||
|
||
public class Settings : ModSettings | ||
{ | ||
public float forceXPDelayFactor = 1; | ||
public string forceXPDelayStringBuffer; | ||
|
||
public override void ExposeData() | ||
{ | ||
base.ExposeData(); | ||
Scribe_Values.Look(ref this.forceXPDelayFactor, "forceXPDelayFactor", 0); | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
using Harmony; | ||
using HarmonyLib; | ||
using RimWorld; | ||
using System; | ||
using System.Collections.Generic; | ||
|
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
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
Binary file modified
BIN
+479 Bytes
(110%)
Source/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache
Binary file not shown.
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 |
---|---|---|
@@ -1 +1 @@ | ||
0629ab30de7cae7d3713cd6f177fd9963cfd9585 | ||
84a40590f64070b2b210d5794651a6b887c44675 |
Binary file modified
BIN
+248 KB
(400%)
Source/obj/Release/ProjectJedi.csprojAssemblyReference.cache
Binary file not shown.
Binary file not shown.