mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-25 22:44:38 +00:00
start 1.10.2
This commit is contained in:
1 parent
f969f63b66
commit
6a7c4bf67d
826 files changed
+60550
-63758
No files matched your search
@@ -1,38 +1,34 @@
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
|
||||
package binnie.genetics.gui;
|
||||
|
||||
import java.text.DecimalFormat;
|
||||
import binnie.craftgui.core.geometry.IArea;
|
||||
import binnie.craftgui.core.IWidget;
|
||||
import binnie.craftgui.controls.core.Control;
|
||||
import binnie.craftgui.core.IWidget;
|
||||
import binnie.craftgui.core.geometry.IArea;
|
||||
|
||||
public abstract class ControlAnalystPage extends Control
|
||||
{
|
||||
public ControlAnalystPage(final IWidget parent, final IArea area) {
|
||||
super(parent, area);
|
||||
this.hide();
|
||||
}
|
||||
import java.text.DecimalFormat;
|
||||
|
||||
@Override
|
||||
public void onRenderBackground() {
|
||||
}
|
||||
public abstract class ControlAnalystPage extends Control {
|
||||
public ControlAnalystPage(final IWidget parent, final IArea area) {
|
||||
super(parent, area);
|
||||
this.hide();
|
||||
}
|
||||
|
||||
public abstract String getTitle();
|
||||
@Override
|
||||
public void onRenderBackground() {
|
||||
}
|
||||
|
||||
protected String getTimeString(final float time) {
|
||||
final float seconds = time / 20.0f;
|
||||
final float minutes = seconds / 60.0f;
|
||||
final float hours = minutes / 60.0f;
|
||||
final DecimalFormat df = new DecimalFormat("#.0");
|
||||
if (hours > 1.0f) {
|
||||
return df.format(hours) + " hours";
|
||||
}
|
||||
if (minutes > 1.0f) {
|
||||
return df.format(minutes) + " min.";
|
||||
}
|
||||
return df.format(seconds) + " sec.";
|
||||
}
|
||||
public abstract String getTitle();
|
||||
|
||||
protected String getTimeString(final float time) {
|
||||
final float seconds = time / 20.0f;
|
||||
final float minutes = seconds / 60.0f;
|
||||
final float hours = minutes / 60.0f;
|
||||
final DecimalFormat df = new DecimalFormat("#.0");
|
||||
if (hours > 1.0f) {
|
||||
return df.format(hours) + " hours";
|
||||
}
|
||||
if (minutes > 1.0f) {
|
||||
return df.format(minutes) + " min.";
|
||||
}
|
||||
return df.format(seconds) + " sec.";
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user