bassbone
This commit is contained in:
parent
4f122133ce
commit
779e280b87
312 changed files with 1756 additions and 1621 deletions
|
|
@ -1,11 +1,14 @@
|
|||
package love.distributedrebirth.gdxapp4d.app.notepad;
|
||||
|
||||
import org.osgi.framework.Bundle;
|
||||
import org.osgi.framework.BundleContext;
|
||||
import org.osgi.framework.FrameworkUtil;
|
||||
import org.osgi.service.component.annotations.Activate;
|
||||
import org.osgi.service.component.annotations.Component;
|
||||
import org.osgi.service.component.annotations.Deactivate;
|
||||
import org.osgi.service.component.annotations.Reference;
|
||||
|
||||
import love.distributedrebirth.bassboonyd.clazz.BãßBȍőnAuthor注;
|
||||
import love.distributedrebirth.bassboon.clazz.BãßBȍőnAuthor注;
|
||||
import love.distributedrebirth.gdxapp4d.tos4.service.SystemGdxLog;
|
||||
import love.distributedrebirth.gdxapp4d.vrgem4.service.VrGem4DeskAppService;
|
||||
import love.distributedrebirth.gdxapp4d.vrgem4.service.VrGem4Unicode4DService;
|
||||
|
|
@ -28,7 +31,9 @@ public class NotepadComponent {
|
|||
private final DeskAppLauncher launcher;
|
||||
|
||||
public NotepadComponent() {
|
||||
launcher = new DeskAppLauncher(DeskAppMenuSection.EDITORS, "Notepad", () -> new NotepadDeskApp(unicode4DService));
|
||||
Bundle bundle = FrameworkUtil.getBundle(NotepadComponent.class);
|
||||
BundleContext context = bundle.getBundleContext();
|
||||
launcher = new DeskAppLauncher(DeskAppMenuSection.EDITORS, "Notepad", () -> new NotepadDeskApp(context, unicode4DService));
|
||||
}
|
||||
|
||||
@Activate
|
||||
|
|
|
|||
|
|
@ -2,12 +2,19 @@ package love.distributedrebirth.gdxapp4d.app.notepad;
|
|||
|
||||
import java.util.Random;
|
||||
|
||||
import org.osgi.framework.BundleContext;
|
||||
import org.osgi.framework.ServiceReference;
|
||||
|
||||
import imgui.ImDrawList;
|
||||
import imgui.ImGui;
|
||||
import imgui.ImVec2;
|
||||
import imgui.type.ImInt;
|
||||
import love.distributedrebirth.bassboonyd.Bãß;
|
||||
import love.distributedrebirth.bassboonyd.clazz.BãßBȍőnAuthor注;
|
||||
import love.distributedrebirth.bassboon.Bãß;
|
||||
import love.distributedrebirth.bassboon.DefaultBãßBȍőnʸᴰ;
|
||||
import love.distributedrebirth.bassboon.clazz.BãßBȍőnAuthor注;
|
||||
import love.distributedrebirth.bassboon.clazz.pirate.BãßBȍőnꝐŕḯṿª₮ḕ;
|
||||
import love.distributedrebirth.bassboon.death.spider.BãßBȍőnSpiderEgg注;
|
||||
import love.distributedrebirth.bassboon.death.spider.BãßBȍőnSpiderWire注;
|
||||
import love.distributedrebirth.gdxapp4d.vrgem4.service.VrGem4Unicode4DService;
|
||||
import love.distributedrebirth.gdxapp4d.vrgem4.service.deskapp.AbstractDeskApp;
|
||||
import love.distributedrebirth.gdxapp4d.vrgem4.service.deskapp.DeskAppContourSection;
|
||||
|
|
@ -17,9 +24,9 @@ import love.distributedrebirth.unicode4d.draw.DrawCharacter;
|
|||
import love.distributedrebirth.unicode4d.draw.ImCharacter;
|
||||
|
||||
@BãßBȍőnAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
||||
public class NotepadDeskApp extends AbstractDeskApp implements DeskAppRenderer {
|
||||
public class NotepadDeskApp extends AbstractDeskApp implements DeskAppRenderer, DefaultBãßBȍőnʸᴰ<NotepadDeskApp> {
|
||||
|
||||
private final VrGem4Unicode4DService unicode4DService;
|
||||
//private final VrGem4Unicode4DService unicode4DService;
|
||||
private final int gridWidth = 120;
|
||||
private final int gridHeight = 40;
|
||||
private final String gridChars;
|
||||
|
|
@ -36,8 +43,36 @@ public class NotepadDeskApp extends AbstractDeskApp implements DeskAppRenderer {
|
|||
UnicodePlane.TAI_XUAN_JING_SYMBOLS
|
||||
};
|
||||
|
||||
public NotepadDeskApp(VrGem4Unicode4DService unicode4DService) {
|
||||
this.unicode4DService = unicode4DService;
|
||||
public static final class Ꝑŕḯṿª₮ḕ implements BãßBȍőnꝐŕḯṿª₮ḕ<DefaultBãßBȍőnʸᴰ<?>> {
|
||||
private static final String GHOST_BUNDLE = "bundle";
|
||||
|
||||
@Override
|
||||
public void init(DefaultBãßBȍőnʸᴰ<?> boon) {
|
||||
|
||||
}
|
||||
|
||||
@BãßBȍőnSpiderEgg注()
|
||||
public VrGem4Unicode4DService locateVrGem4Unicode4DService(DefaultBãßBȍőnʸᴰ<NotepadDeskApp> boon) {
|
||||
Class<?> eggType = VrGem4Unicode4DService.class;
|
||||
|
||||
BundleContext context = boon.toBBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).GHOST_OBJ(GHOST_BUNDLE, BundleContext.class);
|
||||
ServiceReference<?> serviceRef = context.getServiceReference(eggType);
|
||||
Object service = context.getService(serviceRef);
|
||||
|
||||
return (VrGem4Unicode4DService)service;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@BãßBȍőnSpiderWire注()
|
||||
private VrGem4Unicode4DService unicode4DService;
|
||||
|
||||
public NotepadDeskApp(BundleContext context, VrGem4Unicode4DService unicode4DService3) {
|
||||
|
||||
toBBC().UNHOLY_SPELL(Ꝑŕḯṿª₮ḕ.class).PUT_GHOST(Ꝑŕḯṿª₮ḕ.GHOST_BUNDLE, context); // tmp test
|
||||
Bãß.石棺ʸᴰ.魎ᴵⁿᶦᵗ(this);
|
||||
//this.unicode4DService = unicode4DService;
|
||||
|
||||
this.gridBuffer = new int[gridHeight][gridWidth];
|
||||
this.gridRank = new int[gridWidth];
|
||||
this.random = new Random();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue