added the world type to the screen
parent
db5f068272
commit
0794ab3531
|
@ -0,0 +1,11 @@
|
|||
package amidst.gui.main.viewer.widget;
|
||||
|
||||
import amidst.documentation.NotThreadSafe;
|
||||
import amidst.mojangapi.world.WorldSeed;
|
||||
|
||||
@NotThreadSafe
|
||||
public class SeedWidget extends ImmutableTextWidget {
|
||||
public SeedWidget(CornerAnchorPoint anchor, WorldSeed worldSeed) {
|
||||
super(anchor, worldSeed.getLabel());
|
||||
}
|
||||
}
|
|
@ -17,7 +17,7 @@ public class SelectedIconWidget extends IconTextWidget {
|
|||
WorldIconSelection worldIconSelection) {
|
||||
super(anchor);
|
||||
this.worldIconSelection = worldIconSelection;
|
||||
increaseYMargin(40);
|
||||
increaseYMargin(80);
|
||||
}
|
||||
|
||||
@CalledOnlyBy(AmidstThread.EDT)
|
||||
|
|
|
@ -57,9 +57,10 @@ public class WidgetBuilder {
|
|||
return Arrays.asList(
|
||||
new FpsWidget( CornerAnchorPoint.BOTTOM_LEFT, new FramerateTimer(2), settings.showFPS),
|
||||
new ScaleWidget( CornerAnchorPoint.BOTTOM_CENTER, zoom, settings.showScale),
|
||||
new ImmutableTextWidget( CornerAnchorPoint.TOP_LEFT, world.getWorldSeed().getLabel()),
|
||||
new DebugWidget( CornerAnchorPoint.BOTTOM_RIGHT, graph, fragmentManager, settings.showDebug, accelerationCounter),
|
||||
new SeedWidget( CornerAnchorPoint.TOP_LEFT, world.getWorldSeed()),
|
||||
new WorldTypeWidget( CornerAnchorPoint.TOP_LEFT, world.getWorldType()),
|
||||
new SelectedIconWidget( CornerAnchorPoint.TOP_LEFT, worldIconSelection),
|
||||
new DebugWidget( CornerAnchorPoint.BOTTOM_RIGHT, graph, fragmentManager, settings.showDebug, accelerationCounter),
|
||||
new CursorInformationWidget(CornerAnchorPoint.TOP_RIGHT, graph, translator, settings.dimension),
|
||||
new BiomeToggleWidget( CornerAnchorPoint.BOTTOM_RIGHT, biomeSelection, layerReloader),
|
||||
new BiomeWidget( CornerAnchorPoint.NONE, biomeSelection, layerReloader, settings.biomeColorProfileSelection)
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
package amidst.gui.main.viewer.widget;
|
||||
|
||||
import amidst.documentation.NotThreadSafe;
|
||||
import amidst.mojangapi.world.WorldType;
|
||||
|
||||
@NotThreadSafe
|
||||
public class WorldTypeWidget extends ImmutableTextWidget {
|
||||
public WorldTypeWidget(CornerAnchorPoint anchor, WorldType worldType) {
|
||||
super(anchor, "World Type: " + worldType.getName());
|
||||
increaseYMargin(40);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue