From 5f9f7345b6ef81e8f1b3ac0018497dbcc3f2937f Mon Sep 17 00:00:00 2001 From: syeyoung Date: Wed, 25 Jan 2023 16:46:44 +0900 Subject: - :) Signed-off-by: syeyoung --- .../impl/party/playerpreview/FeatureViewPlayerStatsOnJoin.java | 3 +-- .../impl/party/playerpreview/widget/WidgetProfileViewer.java | 6 +----- .../assets/dungeonsguide/gui/features/profileViewer/pv.gui | 4 +--- 3 files changed, 3 insertions(+), 10 deletions(-) (limited to 'mod/src/main') diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/party/playerpreview/FeatureViewPlayerStatsOnJoin.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/party/playerpreview/FeatureViewPlayerStatsOnJoin.java index 706b5c28..f4ca5437 100644 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/party/playerpreview/FeatureViewPlayerStatsOnJoin.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/party/playerpreview/FeatureViewPlayerStatsOnJoin.java @@ -140,8 +140,7 @@ public class FeatureViewPlayerStatsOnJoin extends SimpleFeature { double width = 220 * scaledResolution.getScaleFactor(); double height = 220 * scaledResolution.getScaleFactor(); widget = new OverlayWidget( - new WidgetProfileViewer(gameProfile, FeatureRegistry.PARTYKICKER_APIKEY.getAPIKey(), - scaledResolution.getScaleFactor(), () -> { + new WidgetProfileViewer(gameProfile, FeatureRegistry.PARTYKICKER_APIKEY.getAPIKey(), () -> { if (widget != null) { OverlayManager.getInstance().removeOverlay(widget); widget = null; diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/party/playerpreview/widget/WidgetProfileViewer.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/party/playerpreview/widget/WidgetProfileViewer.java index a5109610..018d77f1 100644 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/party/playerpreview/widget/WidgetProfileViewer.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/party/playerpreview/widget/WidgetProfileViewer.java @@ -39,13 +39,10 @@ public class WidgetProfileViewer extends AnnotatedWidget { public final BindableAttribute actualPV = new BindableAttribute<>(Widget.class, null); @Bind(variableName = "visible") public final BindableAttribute visiblePage = new BindableAttribute<>(String.class, "fetching"); - - @Bind(variableName = "scale") - public final BindableAttribute scale = new BindableAttribute<>(Double.class, 1.0); private GameProfile gameProfile; private String apiKey; private Runnable close; - public WidgetProfileViewer(GameProfile gameProfile, String apiKey, double scale, Runnable close) { + public WidgetProfileViewer(GameProfile gameProfile, String apiKey, Runnable close) { super(new ResourceLocation("dungeonsguide:gui/features/profileViewer/pv.gui")); if (apiKey.isEmpty()) { visiblePage.setValue("apiKeyInvalid"); @@ -53,7 +50,6 @@ public class WidgetProfileViewer extends AnnotatedWidget { } this.gameProfile = gameProfile; this.apiKey = apiKey; - this.scale.setValue(scale); this.close = close; refresh(); } diff --git a/mod/src/main/resources/assets/dungeonsguide/gui/features/profileViewer/pv.gui b/mod/src/main/resources/assets/dungeonsguide/gui/features/profileViewer/pv.gui index ee18aa31..96d4db9c 100644 --- a/mod/src/main/resources/assets/dungeonsguide/gui/features/profileViewer/pv.gui +++ b/mod/src/main/resources/assets/dungeonsguide/gui/features/profileViewer/pv.gui @@ -16,7 +16,6 @@ ~ along with this program. If not, see . --> - @@ -66,5 +65,4 @@ - - \ No newline at end of file + \ No newline at end of file -- cgit