@flashist/fconsole 0.0.39 → 0.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +20 -2
- package/index.js +20 -2
- package/index.js.map +1 -1
- package/package.json +3 -2
- package/src/console/FC.d.ts +29 -0
- package/src/console/FC.js +125 -0
- package/src/console/FC.js.map +1 -0
- package/src/console/config/DefaultFConsoneConfigVO.d.ts +128 -0
- package/src/console/config/DefaultFConsoneConfigVO.js +113 -0
- package/src/console/config/DefaultFConsoneConfigVO.js.map +1 -0
- package/src/console/config/IFConsoleConfigVO.d.ts +87 -0
- package/src/console/config/IFConsoleConfigVO.js +2 -0
- package/src/console/config/IFConsoleConfigVO.js.map +1 -0
- package/src/console/config/IFConsoleCustomBtnConfigVO.d.ts +4 -0
- package/src/console/config/IFConsoleCustomBtnConfigVO.js +2 -0
- package/src/console/config/IFConsoleCustomBtnConfigVO.js.map +1 -0
- package/src/console/tools/GlobalVarTools.d.ts +4 -0
- package/src/console/tools/GlobalVarTools.js +15 -0
- package/src/console/tools/GlobalVarTools.js.map +1 -0
- package/src/console/view/BaseConsoleButton.d.ts +18 -0
- package/src/console/view/BaseConsoleButton.js +63 -0
- package/src/console/view/BaseConsoleButton.js.map +1 -0
- package/src/console/view/BaseConsoleView.d.ts +42 -0
- package/src/console/view/BaseConsoleView.js +170 -0
- package/src/console/view/BaseConsoleView.js.map +1 -0
- package/src/console/view/ConsoleContentContainer.d.ts +8 -0
- package/src/console/view/ConsoleContentContainer.js +9 -0
- package/src/console/view/ConsoleContentContainer.js.map +1 -0
- package/src/console/view/ConsoleView.d.ts +9 -0
- package/src/console/view/ConsoleView.js +43 -0
- package/src/console/view/ConsoleView.js.map +1 -0
- package/src/console/view/ConsoleViewEvent.d.ts +3 -0
- package/src/console/view/ConsoleViewEvent.js +6 -0
- package/src/console/view/ConsoleViewEvent.js.map +1 -0
- package/src/console/view/capture/CaptureKeyButton.d.ts +16 -0
- package/src/console/view/capture/CaptureKeyButton.js +73 -0
- package/src/console/view/capture/CaptureKeyButton.js.map +1 -0
- package/src/console/view/capture/CaptureKeyButtonEvent.d.ts +3 -0
- package/src/console/view/capture/CaptureKeyButtonEvent.js +4 -0
- package/src/console/view/capture/CaptureKeyButtonEvent.js.map +1 -0
- package/src/console/view/displaylist/DisplayListItemView.d.ts +18 -0
- package/src/console/view/displaylist/DisplayListItemView.js +75 -0
- package/src/console/view/displaylist/DisplayListItemView.js.map +1 -0
- package/src/console/view/displaylist/DisplayListView.d.ts +61 -0
- package/src/console/view/displaylist/DisplayListView.js +554 -0
- package/src/console/view/displaylist/DisplayListView.js.map +1 -0
- package/src/console/view/fps/FpsMeterView.d.ts +13 -0
- package/src/console/view/fps/FpsMeterView.js +65 -0
- package/src/console/view/fps/FpsMeterView.js.map +1 -0
- package/src/console/view/pause/PauseKeyButton.d.ts +20 -0
- package/src/console/view/pause/PauseKeyButton.js +99 -0
- package/src/console/view/pause/PauseKeyButton.js.map +1 -0
- package/src/console/view/tooltip/ConsoleTooltip.d.ts +11 -0
- package/src/console/view/tooltip/ConsoleTooltip.js +73 -0
- package/src/console/view/tooltip/ConsoleTooltip.js.map +1 -0
- package/src/tooltip/BaseTooltip.d.ts +9 -0
- package/src/tooltip/BaseTooltip.js +13 -0
- package/src/tooltip/BaseTooltip.js.map +1 -0
- package/src/tooltip/ITooltipData.d.ts +4 -0
- package/src/tooltip/ITooltipData.js +2 -0
- package/src/tooltip/ITooltipData.js.map +1 -0
- package/src/tooltip/TooltipManager.d.ts +37 -0
- package/src/tooltip/TooltipManager.js +105 -0
- package/src/tooltip/TooltipManager.js.map +1 -0
package/index.d.ts
CHANGED
|
@@ -1,2 +1,20 @@
|
|
|
1
|
-
export * from './console';
|
|
2
|
-
export * from './tooltip';
|
|
1
|
+
export * from './src/console/FC';
|
|
2
|
+
export * from './src/tooltip/BaseTooltip';
|
|
3
|
+
export * from './src/tooltip/ITooltipData';
|
|
4
|
+
export * from './src/tooltip/TooltipManager';
|
|
5
|
+
export * from './src/console/config/DefaultFConsoneConfigVO';
|
|
6
|
+
export * from './src/console/config/IFConsoleConfigVO';
|
|
7
|
+
export * from './src/console/config/IFConsoleCustomBtnConfigVO';
|
|
8
|
+
export * from './src/console/tools/GlobalVarTools';
|
|
9
|
+
export * from './src/console/view/BaseConsoleButton';
|
|
10
|
+
export * from './src/console/view/BaseConsoleView';
|
|
11
|
+
export * from './src/console/view/ConsoleContentContainer';
|
|
12
|
+
export * from './src/console/view/ConsoleView';
|
|
13
|
+
export * from './src/console/view/ConsoleViewEvent';
|
|
14
|
+
export * from './src/console/view/capture/CaptureKeyButton';
|
|
15
|
+
export * from './src/console/view/capture/CaptureKeyButtonEvent';
|
|
16
|
+
export * from './src/console/view/displaylist/DisplayListItemView';
|
|
17
|
+
export * from './src/console/view/displaylist/DisplayListView';
|
|
18
|
+
export * from './src/console/view/fps/FpsMeterView';
|
|
19
|
+
export * from './src/console/view/pause/PauseKeyButton';
|
|
20
|
+
export * from './src/console/view/tooltip/ConsoleTooltip';
|
package/index.js
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
-
export * from './console';
|
|
2
|
-
export * from './tooltip';
|
|
1
|
+
export * from './src/console/FC';
|
|
2
|
+
export * from './src/tooltip/BaseTooltip';
|
|
3
|
+
export * from './src/tooltip/ITooltipData';
|
|
4
|
+
export * from './src/tooltip/TooltipManager';
|
|
5
|
+
export * from './src/console/config/DefaultFConsoneConfigVO';
|
|
6
|
+
export * from './src/console/config/IFConsoleConfigVO';
|
|
7
|
+
export * from './src/console/config/IFConsoleCustomBtnConfigVO';
|
|
8
|
+
export * from './src/console/tools/GlobalVarTools';
|
|
9
|
+
export * from './src/console/view/BaseConsoleButton';
|
|
10
|
+
export * from './src/console/view/BaseConsoleView';
|
|
11
|
+
export * from './src/console/view/ConsoleContentContainer';
|
|
12
|
+
export * from './src/console/view/ConsoleView';
|
|
13
|
+
export * from './src/console/view/ConsoleViewEvent';
|
|
14
|
+
export * from './src/console/view/capture/CaptureKeyButton';
|
|
15
|
+
export * from './src/console/view/capture/CaptureKeyButtonEvent';
|
|
16
|
+
export * from './src/console/view/displaylist/DisplayListItemView';
|
|
17
|
+
export * from './src/console/view/displaylist/DisplayListView';
|
|
18
|
+
export * from './src/console/view/fps/FpsMeterView';
|
|
19
|
+
export * from './src/console/view/pause/PauseKeyButton';
|
|
20
|
+
export * from './src/console/view/tooltip/ConsoleTooltip';
|
|
3
21
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8CAA8C,CAAC;AAC7D,cAAc,wCAAwC,CAAC;AACvD,cAAc,iDAAiD,CAAC;AAChE,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;AACnD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,kDAAkD,CAAC;AACjE,cAAc,oDAAoD,CAAC;AACnE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,qCAAqC,CAAC;AACpD,cAAc,yCAAyC,CAAC;AACxD,cAAc,2CAA2C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flashist/fconsole",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.40",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
6
|
"repository": {
|
|
@@ -27,10 +27,11 @@
|
|
|
27
27
|
"typings": "index.d.ts",
|
|
28
28
|
"scripts": {},
|
|
29
29
|
"dependencies": {
|
|
30
|
+
"@flashist/fcore": "0.x",
|
|
30
31
|
"@flashist/flibs": "0.x"
|
|
31
32
|
},
|
|
32
33
|
"devDependencies": {
|
|
33
|
-
"@flashist/fbuildscripts": "
|
|
34
|
+
"@flashist/fbuildscripts": "0.x",
|
|
34
35
|
"pixi.js": "^8.8.1",
|
|
35
36
|
"typescript": "^5.8.2"
|
|
36
37
|
},
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DisplayObjectContainer } from "@flashist/flibs";
|
|
2
|
+
import { ConsoleView } from "./view/ConsoleView";
|
|
3
|
+
import { BaseConsoleView } from "./view/BaseConsoleView";
|
|
4
|
+
import { TooltipManager } from "../tooltip/TooltipManager";
|
|
5
|
+
import { DisplayListView } from "./view/displaylist/DisplayListView";
|
|
6
|
+
import { IFConsoleConfigVO } from "./config/IFConsoleConfigVO";
|
|
7
|
+
export declare class FC {
|
|
8
|
+
private static eventListenerHelper;
|
|
9
|
+
private static _root;
|
|
10
|
+
private static contentCont;
|
|
11
|
+
private static viewsCont;
|
|
12
|
+
private static tooltipsCont;
|
|
13
|
+
private static passwordInputIndex;
|
|
14
|
+
static config: IFConsoleConfigVO;
|
|
15
|
+
static tooltipManager: TooltipManager;
|
|
16
|
+
static view: ConsoleView;
|
|
17
|
+
static displayListView: DisplayListView;
|
|
18
|
+
static startInit(root?: DisplayObjectContainer, configChanges?: Partial<IFConsoleConfigVO>): void;
|
|
19
|
+
private static onTicker;
|
|
20
|
+
private static onPasswordInput;
|
|
21
|
+
static get visible(): boolean;
|
|
22
|
+
static set visible(value: boolean);
|
|
23
|
+
static showView(view: BaseConsoleView, moveToMouse?: boolean): void;
|
|
24
|
+
static hideView(view: BaseConsoleView): void;
|
|
25
|
+
static toggleView(view: BaseConsoleView, moveToMouse?: boolean): void;
|
|
26
|
+
static moveViewToTopLayer(view: BaseConsoleView): void;
|
|
27
|
+
static get root(): DisplayObjectContainer;
|
|
28
|
+
static set root(value: DisplayObjectContainer);
|
|
29
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { EventListenerHelper, Logger, ObjectTools } from "@flashist/fcore";
|
|
2
|
+
import { InputManager, InputManagerEvent, FApp, Point, DisplayTools, FContainer } from "@flashist/flibs";
|
|
3
|
+
import { ConsoleView } from "./view/ConsoleView";
|
|
4
|
+
import { TooltipManager } from "../tooltip/TooltipManager";
|
|
5
|
+
import { ConsoleTooltip } from "./view/tooltip/ConsoleTooltip";
|
|
6
|
+
import { ConsoleContentContainer } from "./view/ConsoleContentContainer";
|
|
7
|
+
import { DisplayListView } from "./view/displaylist/DisplayListView";
|
|
8
|
+
import { DefaultFConsoneConfigVO } from "./config/DefaultFConsoneConfigVO";
|
|
9
|
+
export class FC {
|
|
10
|
+
static startInit(root, configChanges) {
|
|
11
|
+
Logger.log("FConsole Class (FC): ", FC);
|
|
12
|
+
const config = new DefaultFConsoneConfigVO();
|
|
13
|
+
if (configChanges) {
|
|
14
|
+
ObjectTools.copyProps(config, configChanges);
|
|
15
|
+
}
|
|
16
|
+
FC.config = config;
|
|
17
|
+
FC.eventListenerHelper = new EventListenerHelper(FC);
|
|
18
|
+
// FC.contentCont = new FContainer();
|
|
19
|
+
FC.contentCont = new ConsoleContentContainer();
|
|
20
|
+
// FC.viewsCont = new FContainer();
|
|
21
|
+
FC.viewsCont = new FContainer();
|
|
22
|
+
FC.contentCont.addChild(FC.viewsCont);
|
|
23
|
+
// FC.tooltipsCont = new FContainer();
|
|
24
|
+
FC.tooltipsCont = new FContainer();
|
|
25
|
+
FC.contentCont.addChild(FC.tooltipsCont);
|
|
26
|
+
let tempTooltip = new ConsoleTooltip();
|
|
27
|
+
FC.tooltipManager = new TooltipManager(tempTooltip);
|
|
28
|
+
FC.tooltipManager.tooltipCont = FC.tooltipsCont;
|
|
29
|
+
FC.tooltipManager.mouseShift = new Point(10, 15);
|
|
30
|
+
// View
|
|
31
|
+
FC.view = new ConsoleView();
|
|
32
|
+
FC.hideView(FC.view);
|
|
33
|
+
//
|
|
34
|
+
FC.displayListView = new DisplayListView();
|
|
35
|
+
// Events
|
|
36
|
+
FC.eventListenerHelper.addEventListener(InputManager.instance, InputManagerEvent.KEY_DOWN, (data) => {
|
|
37
|
+
let pressedKey = data.nativeKeyboardEvent.key;
|
|
38
|
+
if (pressedKey && pressedKey.toUpperCase() === FC.config.password.charAt(FC.passwordInputIndex).toUpperCase()) {
|
|
39
|
+
FC.passwordInputIndex++;
|
|
40
|
+
if (FC.passwordInputIndex >= FC.config.password.length) {
|
|
41
|
+
FC.onPasswordInput();
|
|
42
|
+
FC.passwordInputIndex = 0;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
FC.passwordInputIndex = 0;
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
FApp.instance.ticker.add(FC.onTicker);
|
|
50
|
+
FC.root = root;
|
|
51
|
+
FC.visible = FC.config.console.defaultVisible;
|
|
52
|
+
}
|
|
53
|
+
static onTicker() {
|
|
54
|
+
if (!FC.visible) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
if (FC.config.console.aboveAll) {
|
|
58
|
+
DisplayTools.moveObjectToTopLayer(FC.contentCont);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
static onPasswordInput() {
|
|
62
|
+
FC.visible = !FC.visible;
|
|
63
|
+
}
|
|
64
|
+
static get visible() {
|
|
65
|
+
return FC.view.visible;
|
|
66
|
+
}
|
|
67
|
+
static set visible(value) {
|
|
68
|
+
if (value) {
|
|
69
|
+
FC.showView(FC.view, false);
|
|
70
|
+
DisplayTools.moveObjectToTopLayer(FC.viewsCont);
|
|
71
|
+
DisplayTools.moveObjectToTopLayer(FC.tooltipsCont);
|
|
72
|
+
if (FC.config.displayListSettings.defaultVisible) {
|
|
73
|
+
FC.showView(FC.displayListView);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
FC.hideView(FC.view);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
static showView(view, moveToMouse = true) {
|
|
81
|
+
FC.viewsCont.addChild(view.view);
|
|
82
|
+
view.visible = true;
|
|
83
|
+
FC.moveViewToTopLayer(view);
|
|
84
|
+
if (moveToMouse) {
|
|
85
|
+
const globalPos = FApp.instance.getGlobalInteractionPosition();
|
|
86
|
+
let localPos = view.view.parent.toLocal(new Point(globalPos.x + 1, globalPos.y + 1));
|
|
87
|
+
view.view.x = localPos.x;
|
|
88
|
+
view.view.y = localPos.y;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
static hideView(view) {
|
|
92
|
+
if (view.view.parent) {
|
|
93
|
+
view.view.parent.removeChild(view.view);
|
|
94
|
+
}
|
|
95
|
+
view.visible = false;
|
|
96
|
+
}
|
|
97
|
+
static toggleView(view, moveToMouse = true) {
|
|
98
|
+
if (view.visible) {
|
|
99
|
+
FC.hideView(view);
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
FC.showView(view, moveToMouse);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
static moveViewToTopLayer(view) {
|
|
106
|
+
DisplayTools.moveObjectToTopLayer(view.view);
|
|
107
|
+
}
|
|
108
|
+
static get root() {
|
|
109
|
+
return FC._root;
|
|
110
|
+
}
|
|
111
|
+
static set root(value) {
|
|
112
|
+
// Remove from the previous main container, if there was one
|
|
113
|
+
if (FC.root) {
|
|
114
|
+
FC.root.removeChild(FC.contentCont);
|
|
115
|
+
}
|
|
116
|
+
FC._root = value;
|
|
117
|
+
// Add to the new main container, if there is one
|
|
118
|
+
if (FC.root) {
|
|
119
|
+
FC.root.addChild(FC.contentCont);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
// private static password: string = "";
|
|
124
|
+
FC.passwordInputIndex = 0;
|
|
125
|
+
//# sourceMappingURL=FC.js.map
|
|
@@ -0,0 +1 @@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IAAI,CAAC,CAAC;IACjD,CAAC;IAGD,MAAM,KAAK,IAAI;QACX,OAAO,EAAE,CAAC,KAAK,CAAC;IACpB,CAAC;IAED,MAAM,KAAK,IAAI,CAAC,KAA6B;QACzC,4DAA4D;QAC5D,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC;YACV,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;QACxC,CAAC;QAED,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC;QAEjB,iDAAiD;QACjD,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC;YACV,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;QACrC,CAAC;IACL,CAAC;;AA3JD,wCAAwC;AACzB,qBAAkB,GAAW,CAAC,CAAC"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { IFConsoleConfigVO } from "./IFConsoleConfigVO";
|
|
2
|
+
export declare class DefaultFConsoneConfigVO implements IFConsoleConfigVO {
|
|
3
|
+
password: string;
|
|
4
|
+
localization: {
|
|
5
|
+
closeBtnTooltipTitle: string;
|
|
6
|
+
onStatus: string;
|
|
7
|
+
offStatus: string;
|
|
8
|
+
closeBtnLabel: string;
|
|
9
|
+
displayListBtnLabel: string;
|
|
10
|
+
displayListBtnTooltipTitle: string;
|
|
11
|
+
displayListBtnTooltipText: string;
|
|
12
|
+
captureClickBtnLabel: string;
|
|
13
|
+
captureClickBtnTooltip: string;
|
|
14
|
+
captureKeyBtnTooltipTitle: string;
|
|
15
|
+
captureKeyBtnTooltipText: string;
|
|
16
|
+
captureKeyBtnNormalLabel: string;
|
|
17
|
+
captureKeyBtnPressedLabel: string;
|
|
18
|
+
captureKeyBtnNoKeyHelpText: string;
|
|
19
|
+
pauseUpdateKeyBtnTooltipTitle: string;
|
|
20
|
+
pauseUpdateKeyBtnNormalLabel: string;
|
|
21
|
+
pauseUpdateKeyBtnPressedLabel: string;
|
|
22
|
+
pauseUpdateKeyBtnNoKeyHelpText: string;
|
|
23
|
+
displayListItemTooltipTitle: string;
|
|
24
|
+
displayListTitle: string;
|
|
25
|
+
displayListStructureLogTitle: string;
|
|
26
|
+
additionalInfoBtnNormalLabel: string;
|
|
27
|
+
additionalInfoBtnPressedLabel: string;
|
|
28
|
+
additionalInfoBtnTooltipTitle: string;
|
|
29
|
+
additionalInfoBtnTooltipText: string;
|
|
30
|
+
visualControlsBtnNormalLabel: string;
|
|
31
|
+
visualControlsBtnPressedLabel: string;
|
|
32
|
+
visualControlsBtnTooltipTitle: string;
|
|
33
|
+
visualControlsBtnTooltipText: string;
|
|
34
|
+
ignorelInfoBtnNormalLabel: string;
|
|
35
|
+
ignoreInfoBtnPressedLabel: string;
|
|
36
|
+
ignoreInfoBtnTooltipTitle: string;
|
|
37
|
+
ignoreInfoBtnTooltipText: string;
|
|
38
|
+
moveHelperBtnNormalLabel: string;
|
|
39
|
+
moveHelperBtnPressedLabel: string;
|
|
40
|
+
moveHelperTooltipTitle: string;
|
|
41
|
+
moveHelperTooltipText: string;
|
|
42
|
+
movableObjectText: string;
|
|
43
|
+
fpsText: string;
|
|
44
|
+
};
|
|
45
|
+
console: {
|
|
46
|
+
aboveAll: boolean;
|
|
47
|
+
defaultVisible: boolean;
|
|
48
|
+
};
|
|
49
|
+
btnSettings: {
|
|
50
|
+
labelSize: number;
|
|
51
|
+
labelColor: number;
|
|
52
|
+
smallSize: number;
|
|
53
|
+
};
|
|
54
|
+
viewSettings: {
|
|
55
|
+
bgColor: number;
|
|
56
|
+
bgAlpha: number;
|
|
57
|
+
bgToContentShift: {
|
|
58
|
+
x: number;
|
|
59
|
+
y: number;
|
|
60
|
+
};
|
|
61
|
+
borderWidth: number;
|
|
62
|
+
borderColor: number;
|
|
63
|
+
borderAlpha: number;
|
|
64
|
+
titleLabelColor: number;
|
|
65
|
+
titleLabelSize: number;
|
|
66
|
+
};
|
|
67
|
+
displayListSettings: {
|
|
68
|
+
defaultVisible: boolean;
|
|
69
|
+
defaultCaptureKeyCode: string;
|
|
70
|
+
defaultCaptureKey: string;
|
|
71
|
+
defaultPauseKeyCode: string;
|
|
72
|
+
defaultPauseKey: string;
|
|
73
|
+
defaultIgnoreConsoleEnabled: boolean;
|
|
74
|
+
defaultAdditionalInfoEnabled: boolean;
|
|
75
|
+
defaultVisualControlsEnabled: boolean;
|
|
76
|
+
defaultMoveHelperEnabled: boolean;
|
|
77
|
+
hierarchyLabelColor: number;
|
|
78
|
+
hierarchyLabelColorOver: number;
|
|
79
|
+
hierarchyLabelSize: number;
|
|
80
|
+
nameParamName: string;
|
|
81
|
+
additionalInfoParams: {
|
|
82
|
+
x: {
|
|
83
|
+
toFixed: number;
|
|
84
|
+
};
|
|
85
|
+
y: {
|
|
86
|
+
toFixed: number;
|
|
87
|
+
};
|
|
88
|
+
width: {
|
|
89
|
+
visualName: string;
|
|
90
|
+
toFixed: number;
|
|
91
|
+
};
|
|
92
|
+
height: {
|
|
93
|
+
visualName: string;
|
|
94
|
+
toFixed: number;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
globalVarPoolId: string;
|
|
98
|
+
globalVarNamePattern: string;
|
|
99
|
+
};
|
|
100
|
+
tooltipSettings: {
|
|
101
|
+
bgColor: number;
|
|
102
|
+
bgAlpha: number;
|
|
103
|
+
bgToContentShift: {
|
|
104
|
+
x: number;
|
|
105
|
+
y: number;
|
|
106
|
+
};
|
|
107
|
+
borderWidth: number;
|
|
108
|
+
borderColor: number;
|
|
109
|
+
borderAlpha: number;
|
|
110
|
+
titleLabelColor: number;
|
|
111
|
+
titleLabelSize: number;
|
|
112
|
+
textLabelColor: number;
|
|
113
|
+
textLabelSize: number;
|
|
114
|
+
};
|
|
115
|
+
fpsSettings: {
|
|
116
|
+
labelSize: number;
|
|
117
|
+
labelColor: number;
|
|
118
|
+
borderColor: number;
|
|
119
|
+
borderWidth: number;
|
|
120
|
+
borderHeight: number;
|
|
121
|
+
fieldToBorderPadding: number;
|
|
122
|
+
cumulativeFpsCount: number;
|
|
123
|
+
};
|
|
124
|
+
customBtns: {
|
|
125
|
+
label: string;
|
|
126
|
+
tooltip: string;
|
|
127
|
+
}[];
|
|
128
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { KeyCodes } from "@flashist/flibs";
|
|
2
|
+
export class DefaultFConsoneConfigVO {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.password = "`";
|
|
5
|
+
this.localization = {
|
|
6
|
+
closeBtnTooltipTitle: "Close",
|
|
7
|
+
onStatus: "on",
|
|
8
|
+
offStatus: "off",
|
|
9
|
+
closeBtnLabel: "X",
|
|
10
|
+
displayListBtnLabel: "DL",
|
|
11
|
+
displayListBtnTooltipTitle: "Display List Inspector",
|
|
12
|
+
displayListBtnTooltipText: "Map the display list\nunder your mouse",
|
|
13
|
+
captureClickBtnLabel: "Capture",
|
|
14
|
+
captureClickBtnTooltip: "Click to show the display list data in the dev console",
|
|
15
|
+
captureKeyBtnTooltipTitle: "Assign a key to copy display data into dev console",
|
|
16
|
+
captureKeyBtnTooltipText: "Press an assinged key\nto add display list hierarchy\nto the browser console",
|
|
17
|
+
captureKeyBtnNormalLabel: "Capture key: {key}",
|
|
18
|
+
captureKeyBtnPressedLabel: "Press a key",
|
|
19
|
+
captureKeyBtnNoKeyHelpText: "(click to add)",
|
|
20
|
+
pauseUpdateKeyBtnTooltipTitle: "Assign a key to pause display list data update",
|
|
21
|
+
pauseUpdateKeyBtnNormalLabel: "Pause key: {key} ({status})",
|
|
22
|
+
pauseUpdateKeyBtnPressedLabel: "Press a key",
|
|
23
|
+
pauseUpdateKeyBtnNoKeyHelpText: "(click to add)",
|
|
24
|
+
displayListItemTooltipTitle: "Click to show the display item data in the dev console",
|
|
25
|
+
displayListTitle: "Display List Inspector",
|
|
26
|
+
displayListStructureLogTitle: "Display List Structure:",
|
|
27
|
+
additionalInfoBtnNormalLabel: "Additional Info: off",
|
|
28
|
+
additionalInfoBtnPressedLabel: "Additional Info: on",
|
|
29
|
+
additionalInfoBtnTooltipTitle: "Additional visual objects info",
|
|
30
|
+
additionalInfoBtnTooltipText: "Position, width, height, etc. (configurable)",
|
|
31
|
+
visualControlsBtnNormalLabel: "Visual Controls: off",
|
|
32
|
+
visualControlsBtnPressedLabel: "Visual Controls: on",
|
|
33
|
+
visualControlsBtnTooltipTitle: "Visual Controls",
|
|
34
|
+
visualControlsBtnTooltipText: "Click on object to switch visibility of objects",
|
|
35
|
+
ignorelInfoBtnNormalLabel: "Ignore Console: off",
|
|
36
|
+
ignoreInfoBtnPressedLabel: "Ignore Console: on",
|
|
37
|
+
ignoreInfoBtnTooltipTitle: "Ignore console classes",
|
|
38
|
+
ignoreInfoBtnTooltipText: "Console-related classes\nwon't be shown in the inspector",
|
|
39
|
+
moveHelperBtnNormalLabel: "Move Helper: off",
|
|
40
|
+
moveHelperBtnPressedLabel: "Move Helper: on",
|
|
41
|
+
moveHelperTooltipTitle: "Move Helper",
|
|
42
|
+
moveHelperTooltipText: "Enable Move Helper and press CTRL\nfor choosing an object to move\nwith arrow keys (← ↑ → ↓)",
|
|
43
|
+
movableObjectText: "[MOVABLE]",
|
|
44
|
+
fpsText: "FPS: {0}"
|
|
45
|
+
};
|
|
46
|
+
this.console = {
|
|
47
|
+
aboveAll: true,
|
|
48
|
+
defaultVisible: false
|
|
49
|
+
};
|
|
50
|
+
this.btnSettings = {
|
|
51
|
+
labelSize: 14,
|
|
52
|
+
labelColor: 0xFF9900,
|
|
53
|
+
smallSize: 12
|
|
54
|
+
};
|
|
55
|
+
this.viewSettings = {
|
|
56
|
+
bgColor: 0x000000,
|
|
57
|
+
bgAlpha: 0.75,
|
|
58
|
+
bgToContentShift: { x: 10, y: 10 },
|
|
59
|
+
borderWidth: 1,
|
|
60
|
+
borderColor: 0x660000,
|
|
61
|
+
borderAlpha: 0.75,
|
|
62
|
+
titleLabelColor: 0xFFFFFF,
|
|
63
|
+
titleLabelSize: 14
|
|
64
|
+
};
|
|
65
|
+
this.displayListSettings = {
|
|
66
|
+
defaultVisible: false,
|
|
67
|
+
defaultCaptureKeyCode: KeyCodes.C,
|
|
68
|
+
defaultCaptureKey: "c",
|
|
69
|
+
defaultPauseKeyCode: KeyCodes.P,
|
|
70
|
+
defaultPauseKey: "p",
|
|
71
|
+
defaultIgnoreConsoleEnabled: true,
|
|
72
|
+
defaultAdditionalInfoEnabled: false,
|
|
73
|
+
defaultVisualControlsEnabled: false,
|
|
74
|
+
defaultMoveHelperEnabled: false,
|
|
75
|
+
hierarchyLabelColor: 0xCCCCCC,
|
|
76
|
+
hierarchyLabelColorOver: 0xFF9900,
|
|
77
|
+
hierarchyLabelSize: 14,
|
|
78
|
+
nameParamName: "name",
|
|
79
|
+
additionalInfoParams: {
|
|
80
|
+
"x": { toFixed: 2 },
|
|
81
|
+
"y": { toFixed: 2 },
|
|
82
|
+
"width": { visualName: "w", toFixed: 2 },
|
|
83
|
+
"height": { visualName: "h", toFixed: 2 }
|
|
84
|
+
},
|
|
85
|
+
globalVarPoolId: "fconsole_globalVarPool",
|
|
86
|
+
globalVarNamePattern: "fconsoleTemp{0}"
|
|
87
|
+
};
|
|
88
|
+
this.tooltipSettings = {
|
|
89
|
+
bgColor: 0x000000,
|
|
90
|
+
bgAlpha: 0.75,
|
|
91
|
+
bgToContentShift: { x: 10, y: 10 },
|
|
92
|
+
borderWidth: 1,
|
|
93
|
+
borderColor: 0x660000,
|
|
94
|
+
borderAlpha: 0.75,
|
|
95
|
+
titleLabelColor: 0xFF9900,
|
|
96
|
+
titleLabelSize: 14,
|
|
97
|
+
textLabelColor: 0xCCCCCC,
|
|
98
|
+
textLabelSize: 12
|
|
99
|
+
};
|
|
100
|
+
this.fpsSettings = {
|
|
101
|
+
labelSize: 12,
|
|
102
|
+
labelColor: 0xFF9900,
|
|
103
|
+
borderColor: 0xFF9900,
|
|
104
|
+
borderWidth: 50,
|
|
105
|
+
borderHeight: 16,
|
|
106
|
+
fieldToBorderPadding: 2,
|
|
107
|
+
// Amount of separate fps values, which would be saved, to measure an average fps value
|
|
108
|
+
cumulativeFpsCount: 60
|
|
109
|
+
};
|
|
110
|
+
this.customBtns = [];
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=DefaultFConsoneConfigVO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultFConsoneConfigVO.js","sourceRoot":"","sources":["../../../../src/console/config/DefaultFConsoneConfigVO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAG3C,MAAM,OAAO,uBAAuB;IAApC;QAEW,aAAQ,GAAW,GAAG,CAAC;QAEvB,iBAAY,GAAG;YAClB,oBAAoB,EAAE,OAAO;YAE7B,QAAQ,EAAE,IAAI;YACd,SAAS,EAAE,KAAK;YAEhB,aAAa,EAAE,GAAG;YAElB,mBAAmB,EAAE,IAAI;YACzB,0BAA0B,EAAE,wBAAwB;YACpD,yBAAyB,EAAE,wCAAwC;YAEnE,oBAAoB,EAAE,SAAS;YAC/B,sBAAsB,EAAE,wDAAwD;YAEhF,yBAAyB,EAAE,oDAAoD;YAC/E,wBAAwB,EAAE,8EAA8E;YACxG,wBAAwB,EAAE,oBAAoB;YAC9C,yBAAyB,EAAE,aAAa;YACxC,0BAA0B,EAAE,gBAAgB;YAE5C,6BAA6B,EAAE,gDAAgD;YAC/E,4BAA4B,EAAE,6BAA6B;YAC3D,6BAA6B,EAAE,aAAa;YAC5C,8BAA8B,EAAE,gBAAgB;YAEhD,2BAA2B,EAAE,wDAAwD;YAErF,gBAAgB,EAAE,wBAAwB;YAC1C,4BAA4B,EAAE,yBAAyB;YAEvD,4BAA4B,EAAE,sBAAsB;YACpD,6BAA6B,EAAE,qBAAqB;YACpD,6BAA6B,EAAE,gCAAgC;YAC/D,4BAA4B,EAAE,8CAA8C;YAE5E,4BAA4B,EAAE,sBAAsB;YACpD,6BAA6B,EAAE,qBAAqB;YACpD,6BAA6B,E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AE,OAAO,EAAE,CAAC,EAAE;gBACnB,GAAG,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE;gBACnB,OAAO,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE;gBACxC,QAAQ,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE;aAC5C;YAED,eAAe,EAAE,wBAAwB;YACzC,oBAAoB,EAAE,iBAAiB;SAC1C,CAAC;QAEK,oBAAe,GAAG;YACrB,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,IAAI;YACb,gBAAgB,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE;YAElC,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,IAAI;YAEjB,eAAe,EAAE,QAAQ;YACzB,cAAc,EAAE,EAAE;YAElB,cAAc,EAAE,QAAQ;YACxB,aAAa,EAAE,EAAE;SACpB,CAAC;QAEK,gBAAW,GAAG;YACjB,SAAS,EAAE,EAAE;YACb,UAAU,EAAE,QAAQ;YACpB,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,EAAE;YACf,YAAY,EAAE,EAAE;YAChB,oBAAoB,EAAE,CAAC;YACvB,uFAAuF;YACvF,kBAAkB,EAAE,EAAE;SACzB,CAAC;QAEK,eAAU,GAAyC,EAAE,CAAC;IACjE,CAAC;CAAA"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { IFConsoleCustomBtnConfigVO } from "./IFConsoleCustomBtnConfigVO";
|
|
2
|
+
export interface IFConsoleConfigVO {
|
|
3
|
+
password: string;
|
|
4
|
+
localization: {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
};
|
|
7
|
+
console: {
|
|
8
|
+
aboveAll: boolean;
|
|
9
|
+
defaultVisible: boolean;
|
|
10
|
+
};
|
|
11
|
+
btnSettings: {
|
|
12
|
+
labelSize: number;
|
|
13
|
+
labelColor: number;
|
|
14
|
+
smallSize: number;
|
|
15
|
+
};
|
|
16
|
+
viewSettings: {
|
|
17
|
+
bgColor: number;
|
|
18
|
+
bgAlpha: number;
|
|
19
|
+
bgToContentShift: {
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
};
|
|
23
|
+
borderWidth: number;
|
|
24
|
+
borderColor: number;
|
|
25
|
+
borderAlpha: number;
|
|
26
|
+
titleLabelColor: number;
|
|
27
|
+
titleLabelSize: number;
|
|
28
|
+
};
|
|
29
|
+
displayListSettings: {
|
|
30
|
+
defaultVisible: boolean;
|
|
31
|
+
defaultCaptureKeyCode: string;
|
|
32
|
+
defaultCaptureKey: string;
|
|
33
|
+
defaultPauseKeyCode: string;
|
|
34
|
+
defaultPauseKey: string;
|
|
35
|
+
defaultIgnoreConsoleEnabled: boolean;
|
|
36
|
+
defaultAdditionalInfoEnabled: boolean;
|
|
37
|
+
defaultVisualControlsEnabled: boolean;
|
|
38
|
+
defaultMoveHelperEnabled: boolean;
|
|
39
|
+
hierarchyLabelColor: number;
|
|
40
|
+
hierarchyLabelColorOver: number;
|
|
41
|
+
hierarchyLabelSize: number;
|
|
42
|
+
nameParamName: string;
|
|
43
|
+
additionalInfoParams: {
|
|
44
|
+
x: {
|
|
45
|
+
toFixed: number;
|
|
46
|
+
};
|
|
47
|
+
y: {
|
|
48
|
+
toFixed: number;
|
|
49
|
+
};
|
|
50
|
+
width: {
|
|
51
|
+
visualName: string;
|
|
52
|
+
toFixed: number;
|
|
53
|
+
};
|
|
54
|
+
height: {
|
|
55
|
+
visualName: string;
|
|
56
|
+
toFixed: number;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
globalVarPoolId: string;
|
|
60
|
+
globalVarNamePattern: string;
|
|
61
|
+
};
|
|
62
|
+
tooltipSettings: {
|
|
63
|
+
bgColor: number;
|
|
64
|
+
bgAlpha: number;
|
|
65
|
+
bgToContentShift: {
|
|
66
|
+
x: number;
|
|
67
|
+
y: number;
|
|
68
|
+
};
|
|
69
|
+
borderWidth: number;
|
|
70
|
+
borderColor: number;
|
|
71
|
+
borderAlpha: number;
|
|
72
|
+
titleLabelColor: number;
|
|
73
|
+
titleLabelSize: number;
|
|
74
|
+
textLabelColor: number;
|
|
75
|
+
textLabelSize: number;
|
|
76
|
+
};
|
|
77
|
+
fpsSettings: {
|
|
78
|
+
labelSize: number;
|
|
79
|
+
labelColor: number;
|
|
80
|
+
borderColor: number;
|
|
81
|
+
borderWidth: number;
|
|
82
|
+
borderHeight: number;
|
|
83
|
+
fieldToBorderPadding: number;
|
|
84
|
+
cumulativeFpsCount: number;
|
|
85
|
+
};
|
|
86
|
+
customBtns: IFConsoleCustomBtnConfigVO[];
|
|
87
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFConsoleConfigVO.js","sourceRoot":"","sources":["../../../../src/console/config/IFConsoleConfigVO.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFConsoleCustomBtnConfigVO.js","sourceRoot":"","sources":["../../../../src/console/config/IFConsoleCustomBtnConfigVO.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { UniqueTools, StringTools } from "@flashist/fcore";
|
|
2
|
+
import { FC } from "../FC";
|
|
3
|
+
export class GlobalVarTools {
|
|
4
|
+
static getNextGlobalVarName() {
|
|
5
|
+
const tempUniqueId = UniqueTools.getUniqueIdForPool(FC.config.displayListSettings.globalVarPoolId);
|
|
6
|
+
const result = StringTools.substituteList(FC.config.displayListSettings.globalVarNamePattern, tempUniqueId);
|
|
7
|
+
return result;
|
|
8
|
+
}
|
|
9
|
+
static storeObjectAsGlobalVar(object) {
|
|
10
|
+
const tempId = GlobalVarTools.getNextGlobalVarName();
|
|
11
|
+
console.log(tempId);
|
|
12
|
+
window[tempId] = object;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=GlobalVarTools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GlobalVarTools.js","sourceRoot":"","sources":["../../../../src/console/tools/GlobalVarTools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAE,WAAW,EAAC,MAAM,iBAAiB,CAAC;AAEzD,OAAO,EAAC,EAAE,EAAC,MAAM,OAAO,CAAC;AAEzB,MAAM,OAAO,cAAc;IACvB,MAAM,CAAC,oBAAoB;QACvB,MAAM,YAAY,GAAW,WAAW,CAAC,kBAAkB,CAAC,EAAE,CAAC,MAAM,CAAC,mBAAmB,CAAC,eAAe,CAAC,CAAC;QAC3G,MAAM,MAAM,GAAW,WAAW,CAAC,cAAc,CAAC,EAAE,CAAC,MAAM,CAAC,mBAAmB,CAAC,oBAAoB,EAAE,YAAY,CAAC,CAAC;QACpH,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,MAAM,CAAC,sBAAsB,CAAC,MAAW;QACrC,MAAM,MAAM,GAAW,cAAc,CAAC,oBAAoB,EAAE,CAAC;QAE7D,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QACpB,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;IAC5B,CAAC;CACJ"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseObject } from "@flashist/fcore";
|
|
2
|
+
import { DisplayObjectContainer, FLabel } from "@flashist/flibs";
|
|
3
|
+
import { ITooltipData } from "../../tooltip/ITooltipData";
|
|
4
|
+
export declare class BaseConsoleButton extends BaseObject {
|
|
5
|
+
view: DisplayObjectContainer;
|
|
6
|
+
field: FLabel;
|
|
7
|
+
private _text;
|
|
8
|
+
tooltipData: ITooltipData;
|
|
9
|
+
protected construction(): void;
|
|
10
|
+
protected addListeners(): void;
|
|
11
|
+
private onOver;
|
|
12
|
+
private onOut;
|
|
13
|
+
protected onClick(): void;
|
|
14
|
+
protected commitData(): void;
|
|
15
|
+
protected arrange(): void;
|
|
16
|
+
get text(): string;
|
|
17
|
+
set text(value: string);
|
|
18
|
+
}
|