Moved base glyph code to unicode

This commit is contained in:
Willem Cazander 2022-03-19 12:40:15 +01:00
parent 39c1838c57
commit 3dae31e007
7 changed files with 19 additions and 32 deletions

View file

@ -9,7 +9,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.glyph.BaseGlyphSet;
import love.distributedrebirth.unicode4d.BaseGlyphSet;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
public class DemoGlyphSetDeskApp extends AbstractDeskApp {

View file

@ -18,7 +18,7 @@ import love.distributedrebirth.numberxd.base2t.part.BãßBȍőnPartAlt2ʸᴰ;
import love.distributedrebirth.numberxd.base2t.part.BãßBȍőnPartAlt3ʸᴰ;
import love.distributedrebirth.numberxd.base2t.part.BãßBȍőnPartAlt4ʸᴰ;
import love.distributedrebirth.numberxd.base2t.part.BãßBȍőnPartʸᴰ;
import love.distributedrebirth.numberxd.glyph.BaseGlyphSet;
import love.distributedrebirth.unicode4d.BaseGlyphSet;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
public class DemoNumberPartDeskApp extends AbstractDeskApp implements DeskAppRenderer {
@ -124,35 +124,35 @@ public class DemoNumberPartDeskApp extends AbstractDeskApp implements DeskAppRen
ImGui.text(part.BȍőnDialTone());
if (showBase10.get()) {
ImGui.tableNextColumn();
ImGui.text(part.BȍőnPrintGlyphSetNumber10(BaseGlyphSet.TONE_SCRIPT));
ImGui.text(BaseGlyphSet.TONE_SCRIPT.BȍőnPrintNumber10(part.BȍőnRangTelNul(), part.BãßInstances().length - 1));
ImGui.tableNextColumn();
ImGui.text(part.BȍőnPrintGlyphSetNumber10(BaseGlyphSet.KOREAN));
ImGui.text(BaseGlyphSet.KOREAN.BȍőnPrintNumber10(part.BȍőnRangTelNul(), part.BãßInstances().length - 1));
ImGui.tableNextColumn();
ImGui.text(part.BȍőnPrintGlyphSetNumber10(BaseGlyphSet.BENGALI));
ImGui.text(BaseGlyphSet.BENGALI.BȍőnPrintNumber10(part.BȍőnRangTelNul(), part.BãßInstances().length - 1));
ImGui.tableNextColumn();
ImGui.text(part.BȍőnPrintGlyphSetNumber10(BaseGlyphSet.ARABIC));
ImGui.text(BaseGlyphSet.ARABIC.BȍőnPrintNumber10(part.BȍőnRangTelNul(), part.BãßInstances().length - 1));
}
if (showBase16.get()) {
ImGui.tableNextColumn();
ImGui.text(part.BȍőnPrintGlyphSetNumber16(BaseGlyphSet.TONE_SCRIPT));
ImGui.text(BaseGlyphSet.TONE_SCRIPT.BȍőnPrintNumber16(part.BȍőnRangTelNul(), part.BãßInstances().length - 1));
ImGui.tableNextColumn();
ImGui.text(part.BȍőnPrintGlyphSetNumber16(BaseGlyphSet.KOREAN));
ImGui.text(BaseGlyphSet.KOREAN.BȍőnPrintNumber16(part.BȍőnRangTelNul(), part.BãßInstances().length - 1));
ImGui.tableNextColumn();
ImGui.text(part.BȍőnPrintGlyphSetNumber16(BaseGlyphSet.RUNIC));
ImGui.text(BaseGlyphSet.RUNIC.BȍőnPrintNumber16(part.BȍőnRangTelNul(), part.BãßInstances().length - 1));
ImGui.tableNextColumn();
ImGui.text(part.BȍőnPrintGlyphSetNumber16(BaseGlyphSet.LATIN_BASIC));
ImGui.text(BaseGlyphSet.LATIN_BASIC.BȍőnPrintNumber16(part.BȍőnRangTelNul(), part.BãßInstances().length - 1));
}
if (showBase27.get()) {
ImGui.tableNextColumn();
ImGui.text(part.BȍőnPrintGlyphSetNumber27(BaseGlyphSet.TONE_SCRIPT));
ImGui.text(BaseGlyphSet.TONE_SCRIPT.BȍőnPrintNumber27(part.BȍőnRangTelNul(), part.BãßInstances().length - 1));
ImGui.tableNextColumn();
ImGui.text(part.BȍőnPrintGlyphSetNumber27(BaseGlyphSet.KOREAN));
ImGui.text(BaseGlyphSet.KOREAN.BȍőnPrintNumber27(part.BȍőnRangTelNul(), part.BãßInstances().length - 1));
ImGui.tableNextColumn();
ImGui.text(part.BȍőnPrintGlyphSetNumber27(BaseGlyphSet.LATIN_BASIC));
ImGui.text(BaseGlyphSet.LATIN_BASIC.BȍőnPrintNumber27(part.BȍőnRangTelNul(), part.BãßInstances().length - 1));
ImGui.tableNextColumn();
ImGui.text(part.BȍőnPrintGlyphSetNumber27(BaseGlyphSet.GREEK));
ImGui.text(BaseGlyphSet.GREEK.BȍőnPrintNumber27(part.BȍőnRangTelNul(), part.BãßInstances().length - 1));
ImGui.tableNextColumn();
ImGui.text(part.BȍőnPrintGlyphSetNumber27(BaseGlyphSet.MALAYALAM));
ImGui.text(BaseGlyphSet.MALAYALAM.BȍőnPrintNumber27(part.BȍőnRangTelNul(), part.BãßInstances().length - 1));
}
ImGui.tableNextColumn();
ImGui.text(part.BȍőnChinaKey());

View file

@ -6,7 +6,6 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ;
import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinStoreʸᴰ;
import love.distributedrebirth.bassboonyd.DefaultEnumSetʸᴰ;
import love.distributedrebirth.numberxd.glyph.BaseGlyphSet;
import love.distributedrebirth.bassboonyd.BãßBȍőnInitMethodʸᴰ;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
@ -51,16 +50,4 @@ public interface BãßBȍőnPartʸᴰ<T extends BãßBȍőnPartʸᴰ<T>> extends
}
return (T) mapChina.get(chinaKey);
}
default String BȍőnPrintGlyphSetNumber10(BaseGlyphSet glyphSet) {
return glyphSet.BȍőnPrintNumber10(BȍőnRangTelNul(), BãßInstances().length - 1);
}
default String BȍőnPrintGlyphSetNumber16(BaseGlyphSet glyphSet) {
return glyphSet.BȍőnPrintNumber16(BȍőnRangTelNul(), BãßInstances().length - 1);
}
default String BȍőnPrintGlyphSetNumber27(BaseGlyphSet glyphSet) {
return glyphSet.BȍőnPrintNumber27(BȍőnRangTelNul(), BãßInstances().length - 1);
}
}

View file

@ -1,4 +1,4 @@
package love.distributedrebirth.numberxd.glyph;
package love.distributedrebirth.unicode4d;
import java.text.DecimalFormat;

View file

@ -1,4 +1,4 @@
package love.distributedrebirth.numberxd.glyph;
package love.distributedrebirth.unicode4d;
import java.util.ArrayList;
import java.util.List;

View file

@ -1,4 +1,4 @@
package love.distributedrebirth.numberxd.glyph;
package love.distributedrebirth.unicode4d;
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinStoreKeyʸᴰ;

View file

@ -33,7 +33,7 @@ import love.distributedrebirth.gdxapp4d.vrgem4.service.VrGem4DeskAppService;
import love.distributedrebirth.numberxd.base2t.Base2PartsFactory;
import love.distributedrebirth.numberxd.base2t.Base2Terminator;
import love.distributedrebirth.numberxd.base2t.part.warp.TOSWarpCore;
import love.distributedrebirth.numberxd.glyph.BaseGlyphSet;
import love.distributedrebirth.unicode4d.BaseGlyphSet;
import love.distributedrebirth.warpme.ship.WaterShipOcean;
public class GDXAppVrGem4Activator implements BundleActivator {