mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-05-31 05:14:02 +00:00
This commit is contained in:
parent
9bde8998e5
commit
6638c80619
@ -355,6 +355,7 @@ export default defineComponent({
|
||||
|
||||
menus.push({
|
||||
name: "update hierarchy",
|
||||
icon: "tree",
|
||||
enabled: true,
|
||||
callback: (item) => {
|
||||
ga.fireEventWithParam(GA_EventName.MouseMenu, item.name);
|
||||
@ -364,6 +365,7 @@ export default defineComponent({
|
||||
menus.push({ type: ccui.menu.MenuType.Separator });
|
||||
menus.push({
|
||||
name: "fresh auto",
|
||||
icon: "refresh_one",
|
||||
callback: (item) => {
|
||||
ga.fireEventWithParam(GA_EventName.MouseMenu, item.name);
|
||||
timer.create(true);
|
||||
@ -371,6 +373,7 @@ export default defineComponent({
|
||||
});
|
||||
menus.push({
|
||||
name: "fresh manual",
|
||||
icon: "refresh_one",
|
||||
callback: (item) => {
|
||||
ga.fireEventWithParam(GA_EventName.MouseMenu, item.name);
|
||||
timer.clean();
|
||||
@ -379,6 +382,7 @@ export default defineComponent({
|
||||
menus.push({ type: ccui.menu.MenuType.Separator });
|
||||
menus.push({
|
||||
name: "fps show",
|
||||
icon: "fps",
|
||||
callback: (item) => {
|
||||
ga.fireEventWithParam(GA_EventName.MouseMenu, item.name);
|
||||
bridge.send(Msg.VisibleFPS, true);
|
||||
@ -387,6 +391,7 @@ export default defineComponent({
|
||||
|
||||
menus.push({
|
||||
name: "fps hide",
|
||||
icon: "fps",
|
||||
callback: (item) => {
|
||||
ga.fireEventWithParam(GA_EventName.MouseMenu, item.name);
|
||||
bridge.send(Msg.VisibleFPS, false);
|
||||
@ -446,6 +451,7 @@ export default defineComponent({
|
||||
menus.push({ type: ccui.menu.MenuType.Separator });
|
||||
menus.push({
|
||||
name: "copy name",
|
||||
icon: "print",
|
||||
enabled: true,
|
||||
callback(item) {
|
||||
ga.fireEventWithParam(GA_EventName.MouseMenu, item.name);
|
||||
@ -469,6 +475,7 @@ export default defineComponent({
|
||||
menus.push({
|
||||
name: "visible",
|
||||
shortKey: "space",
|
||||
icon: "view_on",
|
||||
enabled: true,
|
||||
callback: (item) => {
|
||||
ga.fireEventWithParam(GA_EventName.MouseMenu, item.name);
|
||||
@ -477,6 +484,7 @@ export default defineComponent({
|
||||
});
|
||||
menus.push({
|
||||
name: "destroy",
|
||||
icon: "trash",
|
||||
enabled: true,
|
||||
callback: (item) => {
|
||||
ga.fireEventWithParam(GA_EventName.MouseMenu, item.name);
|
||||
@ -515,12 +523,14 @@ export default defineComponent({
|
||||
}
|
||||
menus.push({
|
||||
name: "break on",
|
||||
icon: "circle",
|
||||
enabled: true,
|
||||
items: breakMenus,
|
||||
});
|
||||
}
|
||||
menus.push({
|
||||
name: "break clean",
|
||||
icon: "break_off",
|
||||
enabled: true,
|
||||
callback: (item) => {
|
||||
ga.fireEventWithParam(GA_EventName.MouseMenu, item.name);
|
||||
|
@ -120,6 +120,7 @@ export default defineComponent({
|
||||
const menus: IUiMenuItem[] = [];
|
||||
menus.push({
|
||||
name: "update node info",
|
||||
icon: "node",
|
||||
callback: (item) => {
|
||||
updateNodeInfo();
|
||||
ga.fireEventWithParam(GA_EventName.MouseMenu, item.name);
|
||||
@ -128,6 +129,7 @@ export default defineComponent({
|
||||
menus.push({ type: ccui.menu.MenuType.Separator });
|
||||
menus.push({
|
||||
name: "fresh auto",
|
||||
icon: "refresh_one",
|
||||
callback: (item) => {
|
||||
timer.create(true);
|
||||
ga.fireEventWithParam(GA_EventName.MouseMenu, item.name);
|
||||
@ -135,6 +137,7 @@ export default defineComponent({
|
||||
});
|
||||
menus.push({
|
||||
name: "fresh manual",
|
||||
icon: "refresh_one",
|
||||
callback: (item) => {
|
||||
timer.clean();
|
||||
ga.fireEventWithParam(GA_EventName.MouseMenu, item.name);
|
||||
@ -143,6 +146,7 @@ export default defineComponent({
|
||||
menus.push({ type: ccui.menu.MenuType.Separator });
|
||||
menus.push({
|
||||
name: simpleProperties ? "show more properties" : "show simple properties",
|
||||
icon: simpleProperties ? "many" : "one",
|
||||
callback: (item) => {
|
||||
simpleProperties = !simpleProperties;
|
||||
ga.fireEventWithParam(GA_EventName.MouseMenu, item.name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user