- Fix Sub GUI interactions for Built-In Abilities

- Allow Status Effect Selection from DBC Addon End
This commit is contained in:
Kam committed 2026-02-19 15:39:06 -05:00
1 parent a94219cd0d
commit 024718e7f4
10 files changed
+197 -41

No files matched your search

@@ -37,6 +37,7 @@ public class CustomEffectController implements ICustomEffectHandler {
public static CustomEffectController Instance = new CustomEffectController();
public HashMap<Integer, HashMap<Integer, CustomEffect>> indexMapper = new HashMap<>();
private HashMap<Integer, String> indexLabels = new HashMap<>();
public HashMap<Integer, CustomEffect> customEffectsSync = new HashMap<>();
@@ -59,6 +60,14 @@ public class CustomEffectController implements ICustomEffectHandler {
indexMapper.put(index, (HashMap<Integer, CustomEffect>) effectHashMap);
}
public void registerEffectMapLabel(int index, String label) {
indexLabels.put(index, label);
}
public HashMap<Integer, String> getIndexLabels() {
return indexLabels;
}
public HashMap<Integer, CustomEffect> getCustomEffects() {
return indexMapper.get(0);
}
@@ -354,10 +363,7 @@ public class CustomEffectController implements ICustomEffectHandler {
}
public HashMap<Integer, CustomEffect> getEffectMap(int index) {
if (indexMapper.containsKey(index)) {
return getEffectMap(index);
}
return null;
return indexMapper.get(index);
}
private File getDir() {