death to unicode

This commit is contained in:
Willem Cazander 2022-10-16 15:55:25 +02:00
parent 023710722c
commit 555a59080b
4 changed files with 147 additions and 111 deletions

View file

@ -6,6 +6,7 @@ import imgui.ImDrawList;
import imgui.ImGui;
import imgui.ImVec2;
import imgui.type.ImInt;
import love.distributedrebirth.bassboonyd.BãßBȍőnConstantsʸᴰ;
import love.distributedrebirth.bassboonyd.info.BãßBȍőnAuthor注;
import love.distributedrebirth.gdxapp4d.vrgem4.service.VrGem4Unicode4DService;
import love.distributedrebirth.gdxapp4d.vrgem4.service.deskapp.AbstractDeskApp;
@ -62,8 +63,12 @@ public class NotepadDeskApp extends AbstractDeskApp implements DeskAppRenderer {
@Override
public void render() {
ImGui.sliderInt("RunSpeed", runSpeed.getData(), 0, 60);
ImGui.invisibleButton("matrix", ImGui.getWindowWidth(), ImGui.getWindowHeight()-(2*ImGui.getFontSize()));
ImGui.sliderInt(BãßBȍőnConstantsʸᴰ.STR_SPACE, runSpeed.getData(), 0, 60); // empty ID not allowed in ImGui, but whitespace is an ID :)
ImGui.sameLine();
ImCharacter.render("speedId", "RunSpeed", 'ﷲ', v -> unicode4DService.getCharacterForUnicode(v));
ImGui.text(BãßBȍőnConstantsʸᴰ.STR_SPACE);
ImGui.invisibleButton("matrix", ImGui.getWindowWidth(), ImGui.getWindowHeight()-(3*ImGui.getFontSize()));
ImVec2 p0 = ImGui.getItemRectMin();
ImVec2 p1 = ImGui.getItemRectMax();
ImDrawList drawList = ImGui.getWindowDrawList();