From 53748cae846fc0002bb3c3dc05161b6e93546995 Mon Sep 17 00:00:00 2001 From: Willem Date: Sun, 16 Oct 2022 22:44:44 +0200 Subject: [PATCH] Removed line and added startup args to jmx --- .../gdxapp4d/app/notepad/NotepadDeskApp.java | 3 +-- .../love/distributedrebirth/gdxapp4d/tos4/GDXAppTos4.java | 7 +++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gdxapp4d-app-notepad/src/main/java/love/distributedrebirth/gdxapp4d/app/notepad/NotepadDeskApp.java b/gdxapp4d-app-notepad/src/main/java/love/distributedrebirth/gdxapp4d/app/notepad/NotepadDeskApp.java index e50202f8..cc949ac4 100644 --- a/gdxapp4d-app-notepad/src/main/java/love/distributedrebirth/gdxapp4d/app/notepad/NotepadDeskApp.java +++ b/gdxapp4d-app-notepad/src/main/java/love/distributedrebirth/gdxapp4d/app/notepad/NotepadDeskApp.java @@ -66,9 +66,8 @@ public class NotepadDeskApp extends AbstractDeskApp implements DeskAppRenderer { 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())); + ImGui.invisibleButton("matrix", ImGui.getWindowWidth(), ImGui.getWindowHeight()-(2*ImGui.getFontSize())); ImVec2 p0 = ImGui.getItemRectMin(); ImVec2 p1 = ImGui.getItemRectMax(); ImDrawList drawList = ImGui.getWindowDrawList(); diff --git a/gdxapp4d-tos4/src/main/java/love/distributedrebirth/gdxapp4d/tos4/GDXAppTos4.java b/gdxapp4d-tos4/src/main/java/love/distributedrebirth/gdxapp4d/tos4/GDXAppTos4.java index 510b262c..f2f4a579 100644 --- a/gdxapp4d-tos4/src/main/java/love/distributedrebirth/gdxapp4d/tos4/GDXAppTos4.java +++ b/gdxapp4d-tos4/src/main/java/love/distributedrebirth/gdxapp4d/tos4/GDXAppTos4.java @@ -3,6 +3,7 @@ package love.distributedrebirth.gdxapp4d.tos4; import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.stream.Collectors; import org.osgi.framework.BundleException; import org.osgi.framework.launch.Framework; @@ -14,11 +15,13 @@ import com.badlogic.gdx.utils.ScreenUtils; import love.distributedrebirth.bassboonyd.BãßBȍőn; import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinStoreKeyʸᴰ; +import love.distributedrebirth.bassboonyd.BãßBȍőnConstantsʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnSpiderWire注; import love.distributedrebirth.bassboonyd.info.BãßBȍőnAuthor注; import love.distributedrebirth.bassboonyd.info.BãßBȍőnName注; import love.distributedrebirth.bassboonyd.info.BãßBȍőnPackage注; import love.distributedrebirth.bassboonyd.jmx.DefaultEnumInstanceᴶᴹˣ; +import love.distributedrebirth.bassboonyd.jmx.AttributeStringᴶᴹˣ; import love.distributedrebirth.bassboonyd.jmx.CounterGuageᴶᴹˣ; import love.distributedrebirth.gdxapp4d.tos4.service.SystemGdxTerminal; import net.spookygames.gdx.nativefilechooser.NativeFileChooser; @@ -38,11 +41,15 @@ public enum GDXAppTos4 implements DefaultEnumInstanceᴶᴹˣ args, int viewWidth, int viewHeight, NativeFileChooser fileChooser) { + startupArgs.setValueString(args.stream().collect(Collectors.joining(BãßBȍőnConstantsʸᴰ.STR_SPACE))); screens = new HashMap<>(); systemActivator = new GDXAppTos4Activator(); systemActivator.BãßInit(args, viewWidth, viewHeight, fileChooser, this);