From f0d0a43c3a868396bfd89dad0dc2c6ea0042d5e4 Mon Sep 17 00:00:00 2001 From: Willem Cazander Date: Tue, 8 Feb 2022 21:21:33 +0100 Subject: [PATCH] Fixed ImGui minimize action --- .../imxmi/lang/ImFrameˣᴹᴵ.java | 5 +- .../gdxapp/music/MusicPlayerRenderer.java | 101 ++++---- .../gdxapp/screen/BasicConsoleRenderer.java | 17 +- .../gdxapp/screen/HebrewWalletRenderer.java | 69 +++--- .../gdxapp/screen/ScreenUnicode4D.java | 35 +-- .../screen/SystemBaseGlyphRenderer.java | 145 ++++++------ .../gdxapp/screen/SystemBasePartRenderer.java | 216 +++++++++--------- 7 files changed, 294 insertions(+), 294 deletions(-) diff --git a/lib-imxmi/src/main/love/distributedrebirth/imxmi/lang/ImFrameˣᴹᴵ.java b/lib-imxmi/src/main/love/distributedrebirth/imxmi/lang/ImFrameˣᴹᴵ.java index d044d724..516aa35e 100644 --- a/lib-imxmi/src/main/love/distributedrebirth/imxmi/lang/ImFrameˣᴹᴵ.java +++ b/lib-imxmi/src/main/love/distributedrebirth/imxmi/lang/ImFrameˣᴹᴵ.java @@ -36,12 +36,13 @@ public class ImFrameˣᴹᴵ extends AbstractImComponentSetˣᴹᴵ { public void renderBegin() { ImGui.setNextWindowPos(nextWindowPosX, nextWindowPosY, nextWindowPosCond); ImGui.setNextWindowSize(nextWindowSizeWidth, nextWindowSizeHeight, nextWindowSizeCond); - ImGui.begin(title, frameOpen); } @Override public void renderComponent() { - renderComponents(); + if (ImGui.begin(title, frameOpen)) { + renderComponents(); + } } @Override diff --git a/main-gdxapp/src/main/love/distributedrebirth/gdxapp/music/MusicPlayerRenderer.java b/main-gdxapp/src/main/love/distributedrebirth/gdxapp/music/MusicPlayerRenderer.java index f6ccd55d..382ae213 100644 --- a/main-gdxapp/src/main/love/distributedrebirth/gdxapp/music/MusicPlayerRenderer.java +++ b/main-gdxapp/src/main/love/distributedrebirth/gdxapp/music/MusicPlayerRenderer.java @@ -37,61 +37,60 @@ public class MusicPlayerRenderer extends ImGuiRendererMain { public void render(ImBoolean widgetOpen) { ImGui.setNextWindowPos(100, 100, ImGuiCond.FirstUseEver); ImGui.setNextWindowSize(320, 240, ImGuiCond.FirstUseEver); - ImGui.begin("Music Player", widgetOpen); - - ImGui.text("Current Song:"); - MusicSong currentSong = main.music.getCurrentSong(); - if (currentSong != null) { + if (ImGui.begin("Music Player", widgetOpen)) { + ImGui.text("Current Song:"); + MusicSong currentSong = main.music.getCurrentSong(); + if (currentSong != null) { + ImGui.sameLine(); + ImGui.text(currentSong.getName()); + } + ImGui.separator(); + if (currentSong != null) { + if (ImGui.button("Play")) { + main.music.play(currentSong); + } + } else { + ImGui.text("Play"); + } ImGui.sameLine(); - ImGui.text(currentSong.getName()); - } - ImGui.separator(); - if (currentSong != null) { - if (ImGui.button("Play")) { - main.music.play(currentSong); + if (ImGui.button("<")) { + main.music.prev(); } - } else { - ImGui.text("Play"); - } - ImGui.sameLine(); - if (ImGui.button("<")) { - main.music.prev(); - } - ImGui.sameLine(); - if (ImGui.button(">")) { - main.music.next(); - } - ImGui.sameLine(); - if (ImGui.button("Stop")) { - main.music.stop(); - } - ImGui.sameLine(); - if (ImGui.button("Add")) { - main.fileChooser.chooseFile(fileChooserConfig, NativeFileChooserCallbackAdapter.onFileChosen(v -> main.music.addBackgroundMusic(v))); - } - int flags = ImGuiTableFlags.ScrollX | ImGuiTableFlags.RowBg | ImGuiTableFlags.BordersOuter | ImGuiTableFlags.BordersV; - ImGui.beginTable("playlist", 3, flags); - ImGui.tableSetupColumn("#", ImGuiTableColumnFlags.NoHide); - ImGui.tableSetupColumn("Play"); - ImGui.tableSetupColumn("Name"); - ImGui.tableHeadersRow(); - int i=1; - for (MusicSong song:main.music.getBackgroundSongs()) { - ImGui.pushID(i); - ImGui.tableNextRow(); - ImGui.tableNextColumn(); - ImGui.selectable(""+i, song.isPlaying(), ImGuiSelectableFlags.None); - ImGui.tableNextColumn(); - if (ImGui.smallButton(">")) { - main.music.play(song); + ImGui.sameLine(); + if (ImGui.button(">")) { + main.music.next(); } - ImGui.tableNextColumn(); - ImGui.selectable(song.getName(), song.isPlaying(), ImGuiSelectableFlags.None); - ImGui.popID(); - i++; + ImGui.sameLine(); + if (ImGui.button("Stop")) { + main.music.stop(); + } + ImGui.sameLine(); + if (ImGui.button("Add")) { + main.fileChooser.chooseFile(fileChooserConfig, NativeFileChooserCallbackAdapter.onFileChosen(v -> main.music.addBackgroundMusic(v))); + } + int flags = ImGuiTableFlags.ScrollX | ImGuiTableFlags.RowBg | ImGuiTableFlags.BordersOuter | ImGuiTableFlags.BordersV; + ImGui.beginTable("playlist", 3, flags); + ImGui.tableSetupColumn("#", ImGuiTableColumnFlags.NoHide); + ImGui.tableSetupColumn("Play"); + ImGui.tableSetupColumn("Name"); + ImGui.tableHeadersRow(); + int i=1; + for (MusicSong song:main.music.getBackgroundSongs()) { + ImGui.pushID(i); + ImGui.tableNextRow(); + ImGui.tableNextColumn(); + ImGui.selectable(""+i, song.isPlaying(), ImGuiSelectableFlags.None); + ImGui.tableNextColumn(); + if (ImGui.smallButton(">")) { + main.music.play(song); + } + ImGui.tableNextColumn(); + ImGui.selectable(song.getName(), song.isPlaying(), ImGuiSelectableFlags.None); + ImGui.popID(); + i++; + } + ImGui.endTable(); } - ImGui.endTable(); - ImGui.end(); } diff --git a/main-gdxapp/src/main/love/distributedrebirth/gdxapp/screen/BasicConsoleRenderer.java b/main-gdxapp/src/main/love/distributedrebirth/gdxapp/screen/BasicConsoleRenderer.java index 1a6a810f..c840d66c 100644 --- a/main-gdxapp/src/main/love/distributedrebirth/gdxapp/screen/BasicConsoleRenderer.java +++ b/main-gdxapp/src/main/love/distributedrebirth/gdxapp/screen/BasicConsoleRenderer.java @@ -18,14 +18,15 @@ public class BasicConsoleRenderer extends ImGuiRendererMain { public void render(ImBoolean widgetOpen) { ImGui.setNextWindowPos(300, 300, ImGuiCond.FirstUseEver); ImGui.setNextWindowSize(320, 240, ImGuiCond.FirstUseEver); - ImGui.begin("The BASIC Shahada of DUNE", widgetOpen); - ImGui.text("10 PRINT \"THERE IS NO GOD BUT @Ω仙⁴\""); - ImGui.text("20 PRINT \"THERE IS NO RULE BUT CONSENT\""); - ImGui.text("30 PRINT \"THERE IS NO FAILURE BUT DEATH\""); - ImGui.text("40 PRINT \"TERRY A. DAVIS WAS THE PROPHET OF @Ω仙9⁴\""); - ImGui.text("50 PRINT \"TERRY A. DAVIS WAS THE FIRST TRUE MENTAT\""); - ImGui.text("60 PRINT \"TERRY A. DAVIS WAS THE BEST CODER ALIVE\""); - ImGui.text("RUN"); + if (ImGui.begin("The BASIC Shahada of DUNE", widgetOpen)) { + ImGui.text("10 PRINT \"THERE IS NO GOD BUT @Ω仙⁴\""); + ImGui.text("20 PRINT \"THERE IS NO RULE BUT CONSENT\""); + ImGui.text("30 PRINT \"THERE IS NO FAILURE BUT DEATH\""); + ImGui.text("40 PRINT \"TERRY A. DAVIS WAS THE PROPHET OF @Ω仙9⁴\""); + ImGui.text("50 PRINT \"TERRY A. DAVIS WAS THE FIRST TRUE MENTAT\""); + ImGui.text("60 PRINT \"TERRY A. DAVIS WAS THE BEST CODER ALIVE\""); + ImGui.text("RUN"); + } ImGui.end(); } } diff --git a/main-gdxapp/src/main/love/distributedrebirth/gdxapp/screen/HebrewWalletRenderer.java b/main-gdxapp/src/main/love/distributedrebirth/gdxapp/screen/HebrewWalletRenderer.java index 72842357..244560f8 100644 --- a/main-gdxapp/src/main/love/distributedrebirth/gdxapp/screen/HebrewWalletRenderer.java +++ b/main-gdxapp/src/main/love/distributedrebirth/gdxapp/screen/HebrewWalletRenderer.java @@ -20,42 +20,41 @@ public class HebrewWalletRenderer extends ImGuiRendererMain { public void render(ImBoolean widgetOpen) { ImGui.setNextWindowPos(200, 200, ImGuiCond.FirstUseEver); ImGui.setNextWindowSize(640, 480, ImGuiCond.FirstUseEver); - ImGui.begin("Hebrew Wallet", widgetOpen); - - ImGui.text("Current amount:"); - ImGui.sameLine(); - ImGui.text("0000"); - ImGui.separator(); - if (ImGui.button("Pay")) { + if (ImGui.begin("Hebrew Wallet", widgetOpen)) { + ImGui.text("Current amount:"); + ImGui.sameLine(); + ImGui.text("0000"); + ImGui.separator(); + if (ImGui.button("Pay")) { + } + int flags = ImGuiTableFlags.ScrollX | ImGuiTableFlags.RowBg | ImGuiTableFlags.BordersOuter | ImGuiTableFlags.BordersV; + ImGui.beginTable("wallet", 4, flags); + ImGui.tableSetupColumn("In/Out"); + ImGui.tableSetupColumn("AmountRaw"); + ImGui.tableSetupColumn("AmountFix"); + ImGui.tableSetupColumn("Decimal"); + ImGui.tableHeadersRow(); + + String[] walletData = { + "ה","מ","מָ","ח","חֱ","חֱ‎מָא", + "א","בד","ב","ד","ץףן", + "הזפץ","מספר","צצצצ","ץאאא","דואר" + }; + for (String data:walletData) { + Gê̄ldGetậl geld = new Gê̄ldGetậl(data); + Gê̄ldGetậl geld2 = geld.toClone(); // unit test + ImGui.tableNextRow(); + ImGui.tableNextColumn(); + ImGui.text(data.length()==2||data.length()==3?"OUT":"IN"); + ImGui.tableNextColumn(); + ImGui.text(data); + ImGui.tableNextColumn(); + ImGui.text(geld2.toHebrewString(true)); // true=reverse for ImGui + ImGui.tableNextColumn(); + ImGui.text(Double.toString(geld.getTotalDecimalValue())); + } + ImGui.endTable(); } - int flags = ImGuiTableFlags.ScrollX | ImGuiTableFlags.RowBg | ImGuiTableFlags.BordersOuter | ImGuiTableFlags.BordersV; - ImGui.beginTable("wallet", 4, flags); - ImGui.tableSetupColumn("In/Out"); - ImGui.tableSetupColumn("AmountRaw"); - ImGui.tableSetupColumn("AmountFix"); - ImGui.tableSetupColumn("Decimal"); - ImGui.tableHeadersRow(); - - String[] walletData = { - "ה","מ","מָ","ח","חֱ","חֱ‎מָא", - "א","בד","ב","ד","ץףן", - "הזפץ","מספר","צצצצ","ץאאא","דואר" - }; - for (String data:walletData) { - Gê̄ldGetậl geld = new Gê̄ldGetậl(data); - Gê̄ldGetậl geld2 = geld.toClone(); // unit test - ImGui.tableNextRow(); - ImGui.tableNextColumn(); - ImGui.text(data.length()==2||data.length()==3?"OUT":"IN"); - ImGui.tableNextColumn(); - ImGui.text(data); - ImGui.tableNextColumn(); - ImGui.text(geld2.toHebrewString(true)); // true=reverse for ImGui - ImGui.tableNextColumn(); - ImGui.text(Double.toString(geld.getTotalDecimalValue())); - } - ImGui.endTable(); - ImGui.end(); } } diff --git a/main-gdxapp/src/main/love/distributedrebirth/gdxapp/screen/ScreenUnicode4D.java b/main-gdxapp/src/main/love/distributedrebirth/gdxapp/screen/ScreenUnicode4D.java index 340473cf..5ea86176 100644 --- a/main-gdxapp/src/main/love/distributedrebirth/gdxapp/screen/ScreenUnicode4D.java +++ b/main-gdxapp/src/main/love/distributedrebirth/gdxapp/screen/ScreenUnicode4D.java @@ -24,23 +24,24 @@ public class ScreenUnicode4D extends GDXAppMainAdapter { ImGui.setNextWindowPos(400, 200, ImGuiCond.FirstUseEver); ImGui.setNextWindowSize(320, 240, ImGuiCond.FirstUseEver); - ImGui.begin("Unicode4D test"); - ImGui.text("There is unicode and unicode4D"); - ImVec2 size = new ImVec2(144f, 48f); - ImGui.invisibleButton("canvas", size.x, size.y); - ImVec2 p0 = ImGui.getItemRectMin(); - ImVec2 p1 = ImGui.getItemRectMax(); // p1 = p0 + size - ImDrawList drawList = ImGui.getWindowDrawList(); - drawList.pushClipRect(p0.x, p0.y, p1.x, p1.y); - // draw unicode4D - drawList.addQuad(p0.x, p0.y, p0.x+size.x, p0.y, p1.x, p1.y, p0.x, p0.y+size.y, - ImColor.intToColor(127, 127, 255, 255), 5f); - - drawList.addLine(p0.x+10, p0.y+40, p0.x+20, p0.y+10, ImColor.intToColor(255, 127, 63, 255)); - drawList.addLine(p0.x+30, p0.y+40, p0.x+20, p0.y+10, ImColor.intToColor(255, 127, 63, 255)); - drawList.addLine(p0.x+13, p0.y+30, p0.x+27, p0.y+30, ImColor.intToColor(255, 127, 63, 255)); - - drawList.popClipRect(); + if (ImGui.begin("Unicode4D test")) { + ImGui.text("There is unicode and unicode4D"); + ImVec2 size = new ImVec2(144f, 48f); + ImGui.invisibleButton("canvas", size.x, size.y); + ImVec2 p0 = ImGui.getItemRectMin(); + ImVec2 p1 = ImGui.getItemRectMax(); // p1 = p0 + size + ImDrawList drawList = ImGui.getWindowDrawList(); + drawList.pushClipRect(p0.x, p0.y, p1.x, p1.y); + // draw unicode4D + drawList.addQuad(p0.x, p0.y, p0.x+size.x, p0.y, p1.x, p1.y, p0.x, p0.y+size.y, + ImColor.intToColor(127, 127, 255, 255), 5f); + + drawList.addLine(p0.x+10, p0.y+40, p0.x+20, p0.y+10, ImColor.intToColor(255, 127, 63, 255)); + drawList.addLine(p0.x+30, p0.y+40, p0.x+20, p0.y+10, ImColor.intToColor(255, 127, 63, 255)); + drawList.addLine(p0.x+13, p0.y+30, p0.x+27, p0.y+30, ImColor.intToColor(255, 127, 63, 255)); + + drawList.popClipRect(); + } ImGui.end(); //System.out.println("p0.x="+p0.x+" p0.y="+p0.y); diff --git a/main-gdxapp/src/main/love/distributedrebirth/gdxapp/screen/SystemBaseGlyphRenderer.java b/main-gdxapp/src/main/love/distributedrebirth/gdxapp/screen/SystemBaseGlyphRenderer.java index cc92bfa5..4a6467a9 100644 --- a/main-gdxapp/src/main/love/distributedrebirth/gdxapp/screen/SystemBaseGlyphRenderer.java +++ b/main-gdxapp/src/main/love/distributedrebirth/gdxapp/screen/SystemBaseGlyphRenderer.java @@ -27,84 +27,83 @@ public class SystemBaseGlyphRenderer extends ImGuiRendererMain { public void render(ImBoolean widgetOpen) { ImGui.setNextWindowPos(200, 200, ImGuiCond.FirstUseEver); ImGui.setNextWindowSize(640, 480, ImGuiCond.FirstUseEver); - ImGui.begin("Base glyph", widgetOpen); - - List bases = new ArrayList<>(); - for (BaseGlyphSet glyphSet:BaseGlyphSet.values()) { - bases.add(glyphSet); - } - String[] items = new String[bases.size()]; - for (int i=0;i bases = new ArrayList<>(); + for (BaseGlyphSet glyphSet:BaseGlyphSet.values()) { + bases.add(glyphSet); + } + String[] items = new String[bases.size()]; + for (int i=0;i bases = new ArrayList<>(); - for (int base:BasePartFactory.INSTANCE.BãßBases()) { - bases.add(Integer.toString(base)); - } - String[] items = new String[bases.size()]; - items = bases.toArray(items); - String selectedItem = items[selectedBasePart.get()]; - Integer baseNumber = Integer.valueOf(selectedItem); - BãßBȍőnPartʸᴰ[] baseParts = BasePartFactory.INSTANCE.BãßBuildPartsByBase(baseNumber); - - ImGui.combo("Base", selectedBasePart, items); - - ImGui.text("Name:"); - ImGui.sameLine(); - ImGui.text(baseParts[0].BãßClassNaam()); - - ImGui.text("Purpose:"); - ImGui.sameLine(); - ImGui.text(baseParts[0].BãßClassPurpose()); - - int flags = ImGuiTableFlags.ScrollX | ImGuiTableFlags.RowBg | ImGuiTableFlags.BordersOuter | ImGuiTableFlags.BordersV; - ImGui.beginTable("base-part", 21, flags); - ImGui.tableSetupColumn("BȍőnNaam"); - ImGui.tableSetupColumn("TelNul"); - ImGui.tableSetupColumn("TelEen"); - ImGui.tableSetupColumn("Tone"); - ImGui.tableSetupColumn("10Tone"); - ImGui.tableSetupColumn("10Kor"); - ImGui.tableSetupColumn("10DTMF"); - ImGui.tableSetupColumn("16Tone"); - ImGui.tableSetupColumn("16Kor"); - ImGui.tableSetupColumn("16LatB"); - ImGui.tableSetupColumn("36Tone"); - ImGui.tableSetupColumn("36Kor"); - ImGui.tableSetupColumn("36LatB"); - ImGui.tableSetupColumn("36Gre"); - ImGui.tableSetupColumn("36Heb"); - ImGui.tableSetupColumn("prcK"); - ImGui.tableSetupColumn("prcV"); - ImGui.tableSetupColumn("Alt1"); - ImGui.tableSetupColumn("Alt2"); - ImGui.tableSetupColumn("Alt3"); - ImGui.tableSetupColumn("Alt4"); - ImGui.tableHeadersRow(); - - for (BãßBȍőnPartʸᴰ part:baseParts) { - ImGui.tableNextRow(); - ImGui.tableNextColumn(); - ImGui.text(part.BȍőnNaam()); - ImGui.tableNextColumn(); - ImGui.text(Integer.toString(part.BȍőnRangTelNul())); - ImGui.tableNextColumn(); - ImGui.text(Integer.toString(part.BȍőnRangTelEen())); - ImGui.tableNextColumn(); - ImGui.text(part.BȍőnDialTone()); - ImGui.tableNextColumn(); - ImGui.text(part.BȍőnPrintGlyphSetNumber10(BaseGlyphSet.TONE_LETTER)); - ImGui.tableNextColumn(); - ImGui.text(part.BȍőnPrintGlyphSetNumber10(BaseGlyphSet.KOREAN)); - ImGui.tableNextColumn(); - ImGui.text(part.BȍőnPrintGlyphSetNumber10(BaseGlyphSet.LATIN_DTMF)); - ImGui.tableNextColumn(); - ImGui.text(part.BȍőnPrintGlyphSetNumber16(BaseGlyphSet.TONE_LETTER)); - ImGui.tableNextColumn(); - ImGui.text(part.BȍőnPrintGlyphSetNumber16(BaseGlyphSet.KOREAN)); - ImGui.tableNextColumn(); - ImGui.text(part.BȍőnPrintGlyphSetNumber10(BaseGlyphSet.LATIN_BASIC)); - ImGui.tableNextColumn(); - ImGui.text(part.BȍőnPrintGlyphSetNumber36(BaseGlyphSet.TONE_LETTER)); - ImGui.tableNextColumn(); - ImGui.text(part.BȍőnPrintGlyphSetNumber36(BaseGlyphSet.KOREAN)); - ImGui.tableNextColumn(); - ImGui.text(part.BȍőnPrintGlyphSetNumber36(BaseGlyphSet.LATIN_BASIC)); - ImGui.tableNextColumn(); - ImGui.text(part.BȍőnPrintGlyphSetNumber36(BaseGlyphSet.GREEK)); - ImGui.tableNextColumn(); - ImGui.text(part.BȍőnPrintGlyphSetNumber36(BaseGlyphSet.HEBREW)); - ImGui.tableNextColumn(); - ImGui.text(part.BȍőnChinaKey()); - ImGui.tableNextColumn(); - ImGui.text(part.BȍőnChinaValue()); + List bases = new ArrayList<>(); + for (int base:BasePartFactory.INSTANCE.BãßBases()) { + bases.add(Integer.toString(base)); + } + String[] items = new String[bases.size()]; + items = bases.toArray(items); + String selectedItem = items[selectedBasePart.get()]; + Integer baseNumber = Integer.valueOf(selectedItem); + BãßBȍőnPartʸᴰ[] baseParts = BasePartFactory.INSTANCE.BãßBuildPartsByBase(baseNumber); - ImGui.tableNextColumn(); - if (part instanceof BãßBȍőnPartAlt1ʸᴰ) { - ImGui.text(BãßBȍőnPartAlt1ʸᴰ.class.cast(part).BȍőnAlt1Value()); - } else { - ImGui.text(""); - } - ImGui.tableNextColumn(); - if (part instanceof BãßBȍőnPartAlt2ʸᴰ) { - ImGui.text(BãßBȍőnPartAlt2ʸᴰ.class.cast(part).BȍőnAlt2Value()); - } else { - ImGui.text(""); - } - ImGui.tableNextColumn(); - if (part instanceof BãßBȍőnPartAlt3ʸᴰ) { - ImGui.text(BãßBȍőnPartAlt3ʸᴰ.class.cast(part).BȍőnAlt3Value()); - } else { - ImGui.text(""); - } - ImGui.tableNextColumn(); - if (part instanceof BãßBȍőnPartAlt4ʸᴰ) { - ImGui.text(BãßBȍőnPartAlt4ʸᴰ.class.cast(part).BȍőnAlt4Value()); - } else { - ImGui.text(""); + ImGui.combo("Base", selectedBasePart, items); + + ImGui.text("Name:"); + ImGui.sameLine(); + ImGui.text(baseParts[0].BãßClassNaam()); + + ImGui.text("Purpose:"); + ImGui.sameLine(); + ImGui.text(baseParts[0].BãßClassPurpose()); + + int flags = ImGuiTableFlags.ScrollX | ImGuiTableFlags.RowBg | ImGuiTableFlags.BordersOuter | ImGuiTableFlags.BordersV; + ImGui.beginTable("base-part", 21, flags); + ImGui.tableSetupColumn("BȍőnNaam"); + ImGui.tableSetupColumn("TelNul"); + ImGui.tableSetupColumn("TelEen"); + ImGui.tableSetupColumn("Tone"); + ImGui.tableSetupColumn("10Tone"); + ImGui.tableSetupColumn("10Kor"); + ImGui.tableSetupColumn("10DTMF"); + ImGui.tableSetupColumn("16Tone"); + ImGui.tableSetupColumn("16Kor"); + ImGui.tableSetupColumn("16LatB"); + ImGui.tableSetupColumn("36Tone"); + ImGui.tableSetupColumn("36Kor"); + ImGui.tableSetupColumn("36LatB"); + ImGui.tableSetupColumn("36Gre"); + ImGui.tableSetupColumn("36Heb"); + ImGui.tableSetupColumn("prcK"); + ImGui.tableSetupColumn("prcV"); + ImGui.tableSetupColumn("Alt1"); + ImGui.tableSetupColumn("Alt2"); + ImGui.tableSetupColumn("Alt3"); + ImGui.tableSetupColumn("Alt4"); + ImGui.tableHeadersRow(); + + for (BãßBȍőnPartʸᴰ part:baseParts) { + ImGui.tableNextRow(); + ImGui.tableNextColumn(); + ImGui.text(part.BȍőnNaam()); + ImGui.tableNextColumn(); + ImGui.text(Integer.toString(part.BȍőnRangTelNul())); + ImGui.tableNextColumn(); + ImGui.text(Integer.toString(part.BȍőnRangTelEen())); + ImGui.tableNextColumn(); + ImGui.text(part.BȍőnDialTone()); + ImGui.tableNextColumn(); + ImGui.text(part.BȍőnPrintGlyphSetNumber10(BaseGlyphSet.TONE_LETTER)); + ImGui.tableNextColumn(); + ImGui.text(part.BȍőnPrintGlyphSetNumber10(BaseGlyphSet.KOREAN)); + ImGui.tableNextColumn(); + ImGui.text(part.BȍőnPrintGlyphSetNumber10(BaseGlyphSet.LATIN_DTMF)); + ImGui.tableNextColumn(); + ImGui.text(part.BȍőnPrintGlyphSetNumber16(BaseGlyphSet.TONE_LETTER)); + ImGui.tableNextColumn(); + ImGui.text(part.BȍőnPrintGlyphSetNumber16(BaseGlyphSet.KOREAN)); + ImGui.tableNextColumn(); + ImGui.text(part.BȍőnPrintGlyphSetNumber10(BaseGlyphSet.LATIN_BASIC)); + ImGui.tableNextColumn(); + ImGui.text(part.BȍőnPrintGlyphSetNumber36(BaseGlyphSet.TONE_LETTER)); + ImGui.tableNextColumn(); + ImGui.text(part.BȍőnPrintGlyphSetNumber36(BaseGlyphSet.KOREAN)); + ImGui.tableNextColumn(); + ImGui.text(part.BȍőnPrintGlyphSetNumber36(BaseGlyphSet.LATIN_BASIC)); + ImGui.tableNextColumn(); + ImGui.text(part.BȍőnPrintGlyphSetNumber36(BaseGlyphSet.GREEK)); + ImGui.tableNextColumn(); + ImGui.text(part.BȍőnPrintGlyphSetNumber36(BaseGlyphSet.HEBREW)); + ImGui.tableNextColumn(); + ImGui.text(part.BȍőnChinaKey()); + ImGui.tableNextColumn(); + ImGui.text(part.BȍőnChinaValue()); + + ImGui.tableNextColumn(); + if (part instanceof BãßBȍőnPartAlt1ʸᴰ) { + ImGui.text(BãßBȍőnPartAlt1ʸᴰ.class.cast(part).BȍőnAlt1Value()); + } else { + ImGui.text(""); + } + ImGui.tableNextColumn(); + if (part instanceof BãßBȍőnPartAlt2ʸᴰ) { + ImGui.text(BãßBȍőnPartAlt2ʸᴰ.class.cast(part).BȍőnAlt2Value()); + } else { + ImGui.text(""); + } + ImGui.tableNextColumn(); + if (part instanceof BãßBȍőnPartAlt3ʸᴰ) { + ImGui.text(BãßBȍőnPartAlt3ʸᴰ.class.cast(part).BȍőnAlt3Value()); + } else { + ImGui.text(""); + } + ImGui.tableNextColumn(); + if (part instanceof BãßBȍőnPartAlt4ʸᴰ) { + ImGui.text(BãßBȍőnPartAlt4ʸᴰ.class.cast(part).BȍőnAlt4Value()); + } else { + ImGui.text(""); + } } + + ImGui.endTable(); } - - ImGui.endTable(); - ImGui.end(); } }