mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-10-22 20:35:24 +00:00
打印node名字
This commit is contained in:
@@ -12,6 +12,7 @@ export enum DocumentEvent {
|
||||
EngineVersion = "engineVersion",
|
||||
GoogleAnalytics = "googleAnalytics",
|
||||
LoadInjectCss = "load-inject-css",
|
||||
InspectorClear = "inspector_clear",
|
||||
GameInspectorBegan = "GameInspectorBegan",
|
||||
GameInspectorEnd = "GameInspectorEnd",
|
||||
}
|
||||
|
@@ -155,6 +155,11 @@ export default defineComponent({
|
||||
ga(GA_EventName.PickTop);
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "",
|
||||
type: ccui.menu.MenuType.Separator,
|
||||
callback() {},
|
||||
},
|
||||
{
|
||||
name: "Filter Enabled",
|
||||
selected: inspectTarget.enabled,
|
||||
|
@@ -99,6 +99,23 @@ export class Inspector extends InjectEvent {
|
||||
logFunction(value);
|
||||
break;
|
||||
}
|
||||
case Msg.RequestLogCustom: {
|
||||
const logFunction = console.log;
|
||||
logFunction(pluginEvent.data);
|
||||
}
|
||||
case Msg.ReqWriteClipboard: {
|
||||
document.body.focus();
|
||||
navigator.clipboard
|
||||
.writeText(pluginEvent.data)
|
||||
|
||||
.then(() => {
|
||||
console.log("ok");
|
||||
})
|
||||
.catch((e) => {
|
||||
console.log("fail", e);
|
||||
});
|
||||
break;
|
||||
}
|
||||
case Msg.RequestVisible: {
|
||||
const uuid: string = pluginEvent.data;
|
||||
const node = this.inspectorGameMemoryStorage[uuid];
|
||||
|
Reference in New Issue
Block a user