aboutsummaryrefslogtreecommitdiff
path: root/mod/src
diff options
context:
space:
mode:
authorsyeyoung <cyoung06@naver.com>2023-01-25 16:46:44 +0900
committersyeyoung <cyoung06@naver.com>2023-01-25 16:46:44 +0900
commit5f9f7345b6ef81e8f1b3ac0018497dbcc3f2937f (patch)
tree1aa0bd1b428c19b1eac7cac9937281370b689101 /mod/src
parentd5229dd379372abd83edd1b3db3d1076481248e8 (diff)
downloadSkyblock-Dungeons-Guide-5f9f7345b6ef81e8f1b3ac0018497dbcc3f2937f.tar.gz
Skyblock-Dungeons-Guide-5f9f7345b6ef81e8f1b3ac0018497dbcc3f2937f.tar.bz2
Skyblock-Dungeons-Guide-5f9f7345b6ef81e8f1b3ac0018497dbcc3f2937f.zip
- :)
Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'mod/src')
-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