diff options
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/Features.java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/Features.java | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/Features.java b/src/main/java/at/hannibal2/skyhanni/config/Features.java index 5b44c1b12..7da53c5a2 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/Features.java +++ b/src/main/java/at/hannibal2/skyhanni/config/Features.java @@ -18,10 +18,13 @@ import at.hannibal2.skyhanni.config.features.rift.RiftConfig; import at.hannibal2.skyhanni.config.features.skillprogress.SkillProgressConfig; import at.hannibal2.skyhanni.config.features.slayer.SlayerConfig; import at.hannibal2.skyhanni.config.storage.Storage; +import at.hannibal2.skyhanni.utils.LorenzUtils; import com.google.gson.annotations.Expose; import io.github.moulberry.moulconfig.Config; import io.github.moulberry.moulconfig.Social; import io.github.moulberry.moulconfig.annotations.Category; +import io.github.moulberry.moulconfig.gui.HorizontalAlign; +import io.github.moulberry.moulconfig.processor.ProcessedCategory; import net.minecraft.util.ResourceLocation; import java.util.Arrays; @@ -39,6 +42,13 @@ public class Features extends Config { } @Override + public HorizontalAlign alignCategory(ProcessedCategory category, boolean isSelected) { + if (LorenzUtils.INSTANCE.isAprilFoolsDay()) + return HorizontalAlign.RIGHT; + return super.alignCategory(category, isSelected); + } + + @Override public List<Social> getSocials() { return Arrays.asList( Social.forLink("Discord", DISCORD, "https://discord.com/invite/skyhanni-997079228510117908"), @@ -54,7 +64,11 @@ public class Features extends Config { @Override public String getTitle() { - return "SkyHanni " + SkyHanniMod.getVersion() + " by §channibal2§r, config by §5Moulberry §rand §5nea89"; + String modName = "SkyHanni"; + if (LorenzUtils.INSTANCE.isAprilFoolsDay()) + modName = new StringBuilder().append("اسکای هانی").reverse().toString(); // Minecraft does not render RTL strings very nicely, so we reverse the string here. Not authentic, but close enough. + + return modName + " " + SkyHanniMod.getVersion() + " by §channibal2§r, config by §5Moulberry §rand §5nea89"; } /* |