Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions self_portrait/SelfPortraitPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public void load_images(bool do_notify = false) {
}
}

public void show_self_portrait(bool isMarriageBust, bool isSwimsuitBust, bool hideName, bool isRefreshBust, bool isHalloweenBust) {
public void show_self_portrait(bool isMarriageBust, bool isSwimsuitBust, bool hideName, bool isRefreshBust, bool isHalloweenBust, bool isWitherballBust) {
try {
if (!Settings.m_enabled.Value || !this.m_is_loaded) {
this.m_image.gameObject.SetActive(false);
Expand Down Expand Up @@ -252,10 +252,10 @@ private static PortraitKey get_force_season_key(PortraitKey key) {
return PortraitKey.Normal;
}

[HarmonyPatch(typeof(DialogueController), "SetDialogueBustVisualsOptimized", new Type[] { typeof(string), typeof(bool), typeof(bool), typeof(bool), typeof(bool), typeof(bool), typeof(bool) })]
[HarmonyPatch(typeof(DialogueController), "SetDialogueBustVisualsOptimized", new Type[] { typeof(string), typeof(bool), typeof(bool), typeof(bool), typeof(bool), typeof(bool), typeof(bool), typeof(bool) })]
class HarmonyPatch_DialogueController_SetDialogueBustVisualsOptimized {

private static bool Prefix(string name, bool small, ref bool isMarriageBust, ref bool isSwimsuitBust, bool hideName, bool isRefreshBust, bool isHalloweenBust) {
private static bool Prefix(string name, bool small, ref bool isMarriageBust, ref bool isSwimsuitBust, bool hideName, bool isRefreshBust, bool isHalloweenBust, bool isWitherballBust) {
try {
if (!Settings.m_enabled.Value) {
return true;
Expand All @@ -273,9 +273,9 @@ private static bool Prefix(string name, bool small, ref bool isMarriageBust, ref
return true;
}

private static void Postfix(string name, bool small, bool isMarriageBust, bool isSwimsuitBust, bool hideName, bool isRefreshBust, bool isHalloweenBust) {
private static void Postfix(string name, bool small, bool isMarriageBust, bool isSwimsuitBust, bool hideName, bool isRefreshBust, bool isHalloweenBust, bool isWitherballBust) {
try {
SelfBustController.Instance.show_self_portrait(isMarriageBust, isSwimsuitBust, hideName, isRefreshBust, isHalloweenBust);
SelfBustController.Instance.show_self_portrait(isMarriageBust, isSwimsuitBust, hideName, isRefreshBust, isHalloweenBust, isWitherballBust);
} catch (Exception e) {
logger.LogError("** HarmonyPatch_DialogueController_SetDialogueBustVisualsOptimized.Postfix ERROR - " + e);
}
Expand Down