Added calculator and fixed install/remove log

This commit is contained in:
Willem Cazander 2022-03-07 22:22:54 +01:00
parent 1ad97608ee
commit b9f6cedace
11 changed files with 211 additions and 8 deletions

View file

@ -16,6 +16,7 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ;
import love.distributedrebirth.bassboonyd.jmx.DefaultEnumBaseᴶᴹˣ;
import love.distributedrebirth.gdxapp4d.tos4.service.SystemGdxBootArgs;
import love.distributedrebirth.gdxapp4d.tos4.service.SystemGdxFont;
import love.distributedrebirth.gdxapp4d.tos4.service.SystemGdxLog;
import love.distributedrebirth.gdxapp4d.tos4.service.SystemWarpShip;
import love.distributedrebirth.gdxapp4d.tos4.service.SystemGdxTerminal;
import love.distributedrebirth.gdxapp4d.tos4.service.SystemWarpSea;
@ -48,12 +49,16 @@ public class GDXAppVrGem4Activator implements BundleActivator {
} catch (InterruptedException ignored) {
}
ServiceReference<SystemGdxLog> loggerRef = context.getServiceReference(SystemGdxLog.class);
SystemGdxLog logger = context.getService(loggerRef);
ServiceReference<SystemGdxTerminal> termRef = context.getServiceReference(SystemGdxTerminal.class);
SystemGdxTerminal terminal = context.getService(termRef);
ServiceReference<SystemGdxFont> gdxFontRef = context.getServiceReference(SystemGdxFont.class);
SystemGdxFont gdxFont = context.getService(gdxFontRef);
logger.info(this, "Booting");
GDXAppVrGem4BootScreen bootScreen = new GDXAppVrGem4BootScreen(gdxFont.getFont());
Gdx.app.postRunnable(new Runnable() {
@Override
@ -205,6 +210,7 @@ public class GDXAppVrGem4Activator implements BundleActivator {
terminal.disposeScreen(bootScreen);
}
});
logger.info(this, "Boot done");
}
//TODO: add layer or ?? private <T extends BãßBȍőnCoffinStoreʸᴰ<?>,DefaultAuthorInfoʸᴰ> T[] storeInstances() {

View file

@ -23,7 +23,12 @@ public class VrGem4DeskAppServiceImpl implements VrGem4DeskAppService {
}
@Override
public void registrateDeskApp(DeskAppMenuSection section, DeskAppLauncher launcher) {
public void installDeskApp(DeskAppMenuSection section, DeskAppLauncher launcher) {
getMenuSection(section).add(launcher);
}
@Override
public void removeDeskApp(DeskAppMenuSection section, DeskAppLauncher launcher) {
getMenuSection(section).remove(launcher);
}
}

View file

@ -5,5 +5,7 @@ import love.distributedrebirth.gdxapp4d.vrgem4.service.deskapp.DeskAppMenuSectio
public interface VrGem4DeskAppService {
void registrateDeskApp(DeskAppMenuSection section, DeskAppLauncher launcher);
void installDeskApp(DeskAppMenuSection section, DeskAppLauncher launcher);
void removeDeskApp(DeskAppMenuSection section, DeskAppLauncher launcher);
}