Added configurable limits to skin overlays and dialog images.

This commit is contained in:
Luis C.M committed 2022-06-14 23:27:15 -05:00
1 parent 7cfc4ccca4
commit 40a210ce8f
5 files changed
+29 -1

No files matched your search

+14
View File
@@ -103,6 +103,12 @@ public class CustomNpcs {
@ConfigProp(info = "Number of chunk loading npcs that can be active at the same time")
public static int ChuckLoaders = 20;
@ConfigProp(info = "The maximum number of images any dialog can hold.")
public static int DialogImageLimit = 10;
@ConfigProp(info = "The maximum number of images any dialog can hold.")
public static int SkinOverlayLimit = 10;
public static File Dir;
@ConfigProp(info = "Set to false if you want to disable guns")
@@ -174,6 +180,14 @@ public class CustomNpcs {
if(NpcSizeLimit < 1)
NpcSizeLimit = 1;
if (DialogImageLimit < 0) {
DialogImageLimit = 0;
}
if (SkinOverlayLimit < 0) {
SkinOverlayLimit = 0;
}
if (TrackingInfoAlignment < 0)
TrackingInfoAlignment = 0;
if (TrackingInfoAlignment > 8)