aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/party/playerpreview/FeatureViewPlayerStatsOnJoin.java3
-rw-r--r--mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/party/playerpreview/widget/WidgetProfileViewer.java6
-rw-r--r--mod/src/main/resources/assets/dungeonsguide/gui/features/profileViewer/pv.gui4
3 files changed, 3 insertions, 10 deletions
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<Widget> actualPV = new BindableAttribute<>(Widget.class, null);
@Bind(variableName = "visible")
public final BindableAttribute<String> visiblePage = new BindableAttribute<>(String.class, "fetching");
-
- @Bind(variableName = "scale")
- public final BindableAttribute<Double> 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 <https://www.gnu.org/licenses/>.
-->
-<scaler bind:scale="scale">
<size width="220" height="220">
<border>
<line slot="left" dir="VERTICAL" thickness="1.0" color="#FF23272A"/>
@@ -66,5 +65,4 @@
</clip>
</bgcolor>
</border>
- </size>
-</scaler> \ No newline at end of file
+ </size> \ No newline at end of file