Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions HMCL/src/main/java/org/jackhuang/hmcl/ui/SVG.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ public enum SVG {
WARNING("M1 21 12 2 23 21H1ZM4.45 19H19.55L12 6 4.45 19ZM12 18Q12.425 18 12.7125 17.7125T13 17Q13 16.575 12.7125 16.2875T12 16Q11.575 16 11.2875 16.2875T11 17Q11 17.425 11.2875 17.7125T12 18ZM11 15H13V10H11V15ZM12 12.5Z"),
WB_SUNNY("M11 4V1H13V4H11ZM11 23V20H13V23H11ZM20 13V11H23V13H20ZM1 13V11H4V13H1ZM18.7 6.7 17.3 5.3 19.05 3.5 20.5 4.95 18.7 6.7ZM4.95 20.5 3.5 19.05 5.3 17.3 6.7 18.7 4.95 20.5ZM19.05 20.5 17.3 18.7 18.7 17.3 20.5 19.05 19.05 20.5ZM5.3 6.7 3.5 4.95 4.95 3.5 6.7 5.3 5.3 6.7ZM12 18Q9.5 18 7.75 16.25T6 12Q6 9.5 7.75 7.75T12 6Q14.5 6 16.25 7.75T18 12Q18 14.5 16.25 16.25T12 18ZM12 16Q13.675 16 14.8375 14.8375T16 12Q16 10.325 14.8375 9.1625T12 8Q10.325 8 9.1625 9.1625T8 12Q8 13.675 9.1625 14.8375T12 16ZM12 12Z"),
WB_SUNNY_FILL("M11 4V1h2V4H11Zm0 19V20h2v3H11Zm9-10V11h3v2H20ZM1 13V11H4v2H1ZM18.7 6.7 17.3 5.3l1.75-1.8L20.5 4.95 18.7 6.7ZM4.95 20.5 3.5 19.05 5.3 17.3l1.4 1.4-1.75 1.8Zm14.1 0-1.75-1.8 1.4-1.4 1.8 1.75-1.45 1.45ZM5.3 6.7 3.5 4.95 4.95 3.5 6.7 5.3 5.3 6.7ZM12 18q-2.5 0-4.25-1.75T6 12 7.75 7.75 12 6t4.25 1.75T18 12t-1.75 4.25T12 18Z"),
WV_CHUNK("M16.213 11.093h-6.827V4.267H1.707v14.507h14.507V11.093z m-7.68-5.973v5.973H2.56V5.12h5.973z m-5.973 6.827h5.973v5.973H2.56v-5.973z m12.8 5.973h-5.973v-5.973h5.973v5.973z m3.413-16.213h-7.68v7.68h7.68V1.707z m-0.853 6.827h-5.973V2.56h5.973v5.973z m-2.56-2.56h-0.853V5.12h0.853v0.853z")
;

public static final double DEFAULT_SIZE = 24;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ public void showPopupMenu(World world, boolean supportQuickPlay, JFXPopup.PopupH
if (ChunkBaseApp.isSupported(world)) {
popupMenu.getContent().addAll(
new MenuSeparator(),
new IconedMenuItem(SVG.WV_CHUNK, i18n("world.view"), () -> Controllers.navigate(new WorldViewPage(world, page.getWidth(), page.getHeight())), popup),
new IconedMenuItem(SVG.EXPLORE, i18n("world.chunkbase.seed_map"), () -> ChunkBaseApp.openSeedMap(world), popup),
new IconedMenuItem(SVG.VISIBILITY, i18n("world.chunkbase.stronghold"), () -> ChunkBaseApp.openStrongholdFinder(world), popup),
new IconedMenuItem(SVG.FORT, i18n("world.chunkbase.nether_fortress"), () -> ChunkBaseApp.openNetherFortressFinder(world), popup)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ private AdvancedListBox getToolBar() {
JFXPopup chunkBasePopup = new JFXPopup(chunkBasePopupMenu);

chunkBasePopupMenu.getContent().addAll(
new IconedMenuItem(SVG.WV_CHUNK, i18n("world.view"), () -> Controllers.navigate(new WorldViewPage(getSkinnable().world, getSkinnable().getWidth(), getSkinnable().getHeight())), chunkBasePopup),
new IconedMenuItem(SVG.EXPLORE, i18n("world.chunkbase.seed_map"), () -> ChunkBaseApp.openSeedMap(getSkinnable().world), chunkBasePopup),
new IconedMenuItem(SVG.VISIBILITY, i18n("world.chunkbase.stronghold"), () -> ChunkBaseApp.openStrongholdFinder(getSkinnable().world), chunkBasePopup),
new IconedMenuItem(SVG.FORT, i18n("world.chunkbase.nether_fortress"), () -> ChunkBaseApp.openNetherFortressFinder(getSkinnable().world), chunkBasePopup)
Expand Down
623 changes: 623 additions & 0 deletions HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/WorldViewPage.java

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion HMCL/src/main/resources/assets/lang/I18N.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1668,4 +1668,6 @@ wiki.version.game.snapshot=https://minecraft.wiki/w/Java_Edition_%s
wizard.prev=< Prev
wizard.failed=Failed
wizard.finish=Finish
wizard.next=Next >
wizard.next=Next >
world.view=World View
world.view.title=World View: %s
2 changes: 2 additions & 0 deletions HMCL/src/main/resources/assets/lang/I18N_ar.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1555,3 +1555,5 @@ wizard.prev=< السابق
wizard.failed=فشل
wizard.finish=إنهاء
wizard.next=التالي >
world.view=World View
world.view.title=World View: %s
2 changes: 2 additions & 0 deletions HMCL/src/main/resources/assets/lang/I18N_es.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1482,3 +1482,5 @@ wizard.prev=< Previo
wizard.failed=Falló
wizard.finish=Finalizar
wizard.next=Siguiente >
world.view=World View
world.view.title=World View: %s
2 changes: 2 additions & 0 deletions HMCL/src/main/resources/assets/lang/I18N_ja.properties
Original file line number Diff line number Diff line change
Expand Up @@ -961,3 +961,5 @@ wizard.prev=< 前へ
wizard.failed=失敗
wizard.finish=終了
wizard.next=次へ >
world.view=World View
world.view.title=World View: %s
2 changes: 2 additions & 0 deletions HMCL/src/main/resources/assets/lang/I18N_ru.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1465,3 +1465,5 @@ wizard.prev=< Пред.
wizard.failed=Не удалось
wizard.finish=Завершено
wizard.next=След. >
world.view=World View
world.view.title=World View: %s
2 changes: 2 additions & 0 deletions HMCL/src/main/resources/assets/lang/I18N_uk.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1412,3 +1412,5 @@ wizard.prev=< Попередній
wizard.failed=Не вдалося
wizard.finish=Завершити
wizard.next=Наступний >
world.view=World View
world.view.title=World View: %s
2 changes: 2 additions & 0 deletions HMCL/src/main/resources/assets/lang/I18N_zh.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1445,3 +1445,5 @@ wizard.prev=< 上一步
wizard.failed=失敗
wizard.finish=完成
wizard.next=下一步 >
world.view=World View
world.view.title=World View: %s
2 changes: 2 additions & 0 deletions HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1450,3 +1450,5 @@ wizard.prev=< 上一步
wizard.failed=失败
wizard.finish=完成
wizard.next=下一步 >
world.view=World View
world.view.title=World View: %s
Loading