diff options
author | syeyoung <cyong06@naver.com> | 2021-01-17 13:33:29 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-01-17 13:33:29 +0900 |
commit | 734c776dd35c9c195a540e6c106b3fc0a12dfb5e (patch) | |
tree | fc7ac21587e0a68f941806bc60c93eaa603ce85a /src | |
parent | 2f31ee747d693ed444334c84b4e2b112ef142531 (diff) | |
download | Skyblock-Dungeons-Guide-734c776dd35c9c195a540e6c106b3fc0a12dfb5e.tar.gz Skyblock-Dungeons-Guide-734c776dd35c9c195a540e6c106b3fc0a12dfb5e.tar.bz2 Skyblock-Dungeons-Guide-734c776dd35c9c195a540e6c106b3fc0a12dfb5e.zip |
map text scale
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureDungeonMap.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureDungeonMap.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureDungeonMap.java index 4210749c..47a1c32d 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureDungeonMap.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureDungeonMap.java @@ -62,6 +62,7 @@ public class FeatureDungeonMap extends GuiFeature implements DungeonEndListener, parameters.put("showotherplayers", new FeatureParameter<Boolean>("showotherplayers", "Show other players", "Option to show other players in map", true, "boolean")); parameters.put("showtotalsecrets", new FeatureParameter<Boolean>("showtotalsecrets", "Show Total secrets in the room", "Option to overlay total secrets in the specific room", true, "boolean")); parameters.put("playerheadscale", new FeatureParameter<Float>("playerheadscale", "Player head scale", "Scale factor of player heads, defaults to 1", 1.0f, "float")); + parameters.put("textScale", new FeatureParameter<Float>("textScale", "Text scale", "Scale factor of texts on map, defaults to 1", 1.0f, "float")); parameters.put("border_color", new FeatureParameter<AColor>("border_color", "Color of the border", "Same as name", new AColor(255,255,255,255), "acolor")); parameters.put("background_color", new FeatureParameter<AColor>("background_color", "Color of the background", "Same as name", new AColor(0x22000000, true), "acolor")); parameters.put("chromaborder", new FeatureParameter<Boolean>("chromaborder", "Chroma border", "Rainbow!!! (Overrides border color option)", false, "boolean")); @@ -226,6 +227,8 @@ public class FeatureDungeonMap extends GuiFeature implements DungeonEndListener, } GlStateManager.scale(1 / scale, 1 / scale, 0); GlStateManager.scale(1 / postScale, 1 / postScale, 0); + float s = this.<Float>getParameter("textScale").getValue(); + GlStateManager.scale(s,s,0); String str = ""; str += dungeonRoom.getTotalSecrets() == -1 ? "?" : String.valueOf(dungeonRoom.getTotalSecrets()); str += " "; |