Added vrsys5 and fixed loading order bug
This commit is contained in:
parent
c47d626eef
commit
a3186867c1
12 changed files with 210 additions and 42 deletions
|
|
@ -1,7 +1,9 @@
|
|||
package love.distributedrebirth.gdxapp4d.vrgem4;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Hashtable;
|
||||
import java.util.List;
|
||||
|
||||
import org.osgi.framework.BundleActivator;
|
||||
import org.osgi.framework.BundleContext;
|
||||
|
|
@ -12,13 +14,11 @@ import com.badlogic.gdx.Gdx;
|
|||
import imgui.type.ImBoolean;
|
||||
import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ;
|
||||
import love.distributedrebirth.bassboonyd.jmx.DefaultEnumBaseᴶᴹˣ;
|
||||
import love.distributedrebirth.gdxapp4d.tos4.GDXAppTos4Activator.SystemWarpBaseImpl;
|
||||
import love.distributedrebirth.gdxapp4d.tos4.service.SystemGdxBootFactory;
|
||||
import love.distributedrebirth.gdxapp4d.tos4.service.SystemGdxBootArgs;
|
||||
import love.distributedrebirth.gdxapp4d.tos4.service.SystemGdxFont;
|
||||
import love.distributedrebirth.gdxapp4d.tos4.service.SystemWarpShip;
|
||||
import love.distributedrebirth.gdxapp4d.tos4.service.SystemGdxTerminal;
|
||||
import love.distributedrebirth.gdxapp4d.tos4.service.SystemWarpBase;
|
||||
import love.distributedrebirth.gdxapp4d.tos4.service.SystemWarpSea;
|
||||
import love.distributedrebirth.gdxapp4d.vrgem4.screen.ScreenCredits;
|
||||
import love.distributedrebirth.gdxapp4d.vrgem4.screen.ScreenDesktop1;
|
||||
|
|
@ -170,10 +170,11 @@ public class GDXAppVrGem4Activator implements BundleActivator {
|
|||
ServiceReference<SystemWarpShip> systemWarpShipRef = context.getServiceReference(SystemWarpShip.class);
|
||||
SystemWarpShip systemWarpShip = context.getService(systemWarpShipRef);
|
||||
|
||||
List<SystemWarpSea> registratedSeas = new ArrayList<>();
|
||||
int result = 0;
|
||||
try {
|
||||
for (WaterShipOcean ocean:systemWarpShip.getWarpShip().theShip().getShipOceans()) {
|
||||
result = systemWarpShip.loadWaterOcean(context, ocean.getSea(), v -> bootScreen.bootLine(v));
|
||||
result = systemWarpShip.loadWaterOcean(context, ocean.getSea(), v -> bootScreen.bootLine(v), registratedSeas);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
|
|
@ -187,9 +188,7 @@ public class GDXAppVrGem4Activator implements BundleActivator {
|
|||
bootScreen.bootLine("vrGEM4: chains resolved.");
|
||||
|
||||
try {
|
||||
ServiceReference<?>[] refs = context.getServiceReferences( SystemWarpSea.class.getName(), "(warp.sea.name=*)" );
|
||||
for (int i=0;i<refs.length;i++) {
|
||||
SystemWarpSea service = (SystemWarpSea) context.getService( refs[i] );
|
||||
for (SystemWarpSea service: registratedSeas) {
|
||||
String key = service.getWarpKey();
|
||||
File waterHome = service.getWarpHome();
|
||||
for (WaterSeaMagic magic:service.getWarpSea().theWater().getSeaMagics()) {
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@ import love.distributedrebirth.gdxapp4d.vrgem4.service.deskapp.DeskApp;
|
|||
import love.distributedrebirth.gdxapp4d.vrgem4.service.deskapp.DeskAppContourSection;
|
||||
import love.distributedrebirth.gdxapp4d.vrgem4.service.deskapp.DeskAppLauncher;
|
||||
import love.distributedrebirth.gdxapp4d.vrgem4.service.deskapp.DeskAppRenderer;
|
||||
import love.distributedrebirth.gdxapp4d.vrgem4.view.apps.BasicConsoleApp;
|
||||
import love.distributedrebirth.gdxapp4d.vrgem4.view.apps.SystemBaseGlyphApp;
|
||||
import love.distributedrebirth.gdxapp4d.vrgem4.view.apps.SystemBasePartApp;
|
||||
import love.distributedrebirth.gdxapp4d.vrgem4.view.apps.SystemBaseUnicodePlaneApp;
|
||||
|
|
@ -42,7 +41,6 @@ public class DeskTopScreenMenu {
|
|||
this.bootArgs = bootArgs;
|
||||
this.deskAppService = deskAppService;
|
||||
apps = new ArrayList<>();
|
||||
apps.add(new DeskAppLauncher("Basic Console", () -> new BasicConsoleApp()));
|
||||
apps.add(new DeskAppLauncher("Sys Glyph Set", () -> new SystemBaseGlyphApp()));
|
||||
apps.add(new DeskAppLauncher("Sys Number Parts", () -> new SystemBasePartApp()));
|
||||
apps.add(new DeskAppLauncher("Sys Unicode", () -> new SystemBaseUnicodePlaneApp()));
|
||||
|
|
|
|||
|
|
@ -1,25 +0,0 @@
|
|||
package love.distributedrebirth.gdxapp4d.vrgem4.view.apps;
|
||||
|
||||
import imgui.ImGui;
|
||||
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
||||
import love.distributedrebirth.gdxapp4d.vrgem4.service.deskapp.AbstractDeskApp;
|
||||
import love.distributedrebirth.gdxapp4d.vrgem4.service.deskapp.DeskAppContourSection;
|
||||
|
||||
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
||||
public class BasicConsoleApp extends AbstractDeskApp {
|
||||
|
||||
@Override
|
||||
public void create() {
|
||||
getContours().setTitle("Basic Conssole");
|
||||
getContours().registrateContour(DeskAppContourSection.MAIN, () -> {
|
||||
ImGui.text("10 PRINT \"The BASIC Shahada of DUNE;\"");
|
||||
ImGui.text("20 PRINT \"- THERE IS NO GOD BUT @Ω仙⁴\"");
|
||||
ImGui.text("30 PRINT \"- THERE IS NO RULE BUT CONSENT\"");
|
||||
ImGui.text("40 PRINT \"- THERE IS NO FAILURE BUT DEATH\"");
|
||||
ImGui.text("50 PRINT \"- TERRY A. DAVIS WAS THE PROPHET OF @Ω仙9⁴\"");
|
||||
ImGui.text("60 PRINT \"- TERRY A. DAVIS WAS THE FIRST TRUE MENTAT\"");
|
||||
ImGui.text("70 PRINT \"- TERRY A. DAVIS WAS THE BEST CODER ALIVE\"");
|
||||
ImGui.text("RUN");
|
||||
});
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue