Created DefaultBãßBȍőn interface

This commit is contained in:
Willem Cazander 2022-10-14 01:35:53 +02:00
parent 3acc28dbbf
commit 2e29efb5fe
78 changed files with 963 additions and 606 deletions

View file

@ -17,8 +17,7 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
import love.distributedrebirth.gdxapp4d.vrgem4.service.deskapp.AbstractDeskApp;
import love.distributedrebirth.gdxapp4d.vrgem4.service.deskapp.DeskAppContourSection;
import love.distributedrebirth.gdxapp4d.vrgem4.service.deskapp.DeskAppRenderer;
import love.distributedrebirth.numberxd.base2t.part.T10PartDecimal;
import love.distributedrebirth.numberxd.base2t.part.T16PartHex;
import love.distributedrebirth.numberxd.unicode.BaseGlyphSet;
import net.forwardfire.unitxc.UnitXCManager;
import net.forwardfire.unitxc.model.UnitXCGroup;
import net.forwardfire.unitxc.model.UnitXCType;
@ -38,6 +37,7 @@ public class DemoUnitConverterDeskApp extends AbstractDeskApp implements DeskApp
private final ImInt unitTypeLimit = new ImInt(5432);
private final List<UnitXCType> convertFromTypes;
private final BigInteger totalUnits;
private final ImInt selectedNumberGlyph = new ImInt();
private String[] convertFromTypeNames;
public DemoUnitConverterDeskApp(UnitXCManager unitManager) {
@ -76,9 +76,21 @@ public class DemoUnitConverterDeskApp extends AbstractDeskApp implements DeskApp
@Override
public void render() {
String amount10 = totalUnits.toString(T10PartDecimal.DEFAULT.BãßĦǿɇṽḝę̃ɬḪễïđ());
String amount16 = totalUnits.toString(T16PartHex.DEFAULT.BãßĦǿɇṽḝę̃ɬḪễïđ());
ImGui.text("Total units loaded: "+amount10+" ("+amount16+")");
List<String> bases = new ArrayList<>();
for (BaseGlyphSet base:BaseGlyphSet.values()) {
bases.add(base.name());
}
String[] items = new String[bases.size()];
items = bases.toArray(items);
ImGui.combo("HexType", selectedNumberGlyph, items);
String selectedItem = items[selectedNumberGlyph.get()];
BaseGlyphSet hexNumber = BaseGlyphSet.valueOf(selectedItem);
//String amount10 = totalUnits.toString(T10PartDecimal.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ());
String amount10 = BaseGlyphSet.LATIN_BASIC.BȍőnPrintNumber10(totalUnits);
String amount16 = hexNumber.BȍőnPrintNumber16(totalUnits);
ImGui.text("Total units loaded: "+amount10+" (0x"+amount16+")");
// TODO: don't do update on render thread
if (ImGui.inputDouble("ConvertValue", convertValue)) {