场景对象增删改查调研:命令系统入口 + 新建对象的真实落点
- Commands.java:Editor -> pE(命令系统) -> void D(String) 按名字执行命令 - Launcher:新增 -Dspine.runCommand="<命令名>" 便于验证 - SceneReader:Tree/选中项探针(actor 树按 SnapshotArray 结构遍历) - 混淆名对照表.md:补命令系统一节、可执行命令名单、skeleton/root 删除边界、 以及 New X 最终落到静态 KP.B(target, 类型名) 的结论与待办
This commit is contained in:
1 parent
8f7b72271f
commit
a0080428f9
4 files changed
+394
-7
No files matched your search
@@ -125,8 +125,29 @@ public final class Launcher {
|
||||
}
|
||||
// 皮肤是一点点填的:图标有了不代表按钮样式也有了,所以失败就隔一会儿重试,
|
||||
// 但要尽快成功——框架"建面板"那一步之前必须把 Actor 填好。
|
||||
final ClassLoader commandLoader = viewLoader;
|
||||
for (int i = 0; i < 200; i++) {
|
||||
if (ViewInstaller.installForLoader(viewLoader)) return;
|
||||
if (ViewInstaller.installForLoader(viewLoader)) {
|
||||
// 验证用:-Dspine.runCommand="New Bone" 会在界面稳定后执行这条编辑器命令
|
||||
// (名字取自 hotkeys.txt / 菜单项,链路见 Commands)。
|
||||
final String command = System.getProperty("spine.runCommand");
|
||||
if (command != null) {
|
||||
Thread runner = new Thread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
Thread.sleep(6000);
|
||||
} catch (InterruptedException ignored) {
|
||||
return;
|
||||
}
|
||||
Commands.run(commandLoader, command);
|
||||
}
|
||||
}, "spineview-command");
|
||||
runner.setDaemon(true);
|
||||
runner.start();
|
||||
}
|
||||
return;
|
||||
}
|
||||
try {
|
||||
Thread.sleep(50);
|
||||
} catch (InterruptedException ignored) {
|
||||
|
||||
Reference in new issue
Block a user