@flashist/fconsole 0.0.47 → 0.0.81
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/package.json +4 -4
- package/console/config/index.d.ts +0 -3
- package/console/config/index.js +0 -4
- package/console/config/index.js.map +0 -1
- package/console/index.d.ts +0 -4
- package/console/index.js +0 -5
- package/console/index.js.map +0 -1
- package/console/tools/index.d.ts +0 -1
- package/console/tools/index.js +0 -2
- package/console/tools/index.js.map +0 -1
- package/console/view/capture/index.d.ts +0 -2
- package/console/view/capture/index.js +0 -3
- package/console/view/capture/index.js.map +0 -1
- package/console/view/displaylist/index.d.ts +0 -2
- package/console/view/displaylist/index.js +0 -3
- package/console/view/displaylist/index.js.map +0 -1
- package/console/view/fps/index.d.ts +0 -1
- package/console/view/fps/index.js +0 -2
- package/console/view/fps/index.js.map +0 -1
- package/console/view/index.d.ts +0 -10
- package/console/view/index.js +0 -11
- package/console/view/index.js.map +0 -1
- package/console/view/pause/index.d.ts +0 -1
- package/console/view/pause/index.js +0 -2
- package/console/view/pause/index.js.map +0 -1
- package/console/view/tooltip/index.d.ts +0 -1
- package/console/view/tooltip/index.js +0 -2
- package/console/view/tooltip/index.js.map +0 -1
- package/src/console/FC.d.ts +0 -29
- package/src/console/FC.js +0 -125
- package/src/console/FC.js.map +0 -1
- package/src/console/config/DefaultFConsoneConfigVO.d.ts +0 -128
- package/src/console/config/DefaultFConsoneConfigVO.js +0 -113
- package/src/console/config/DefaultFConsoneConfigVO.js.map +0 -1
- package/src/console/config/IFConsoleConfigVO.d.ts +0 -87
- package/src/console/config/IFConsoleConfigVO.js +0 -2
- package/src/console/config/IFConsoleConfigVO.js.map +0 -1
- package/src/console/config/IFConsoleCustomBtnConfigVO.d.ts +0 -4
- package/src/console/config/IFConsoleCustomBtnConfigVO.js +0 -2
- package/src/console/config/IFConsoleCustomBtnConfigVO.js.map +0 -1
- package/src/console/tools/GlobalVarTools.d.ts +0 -4
- package/src/console/tools/GlobalVarTools.js +0 -15
- package/src/console/tools/GlobalVarTools.js.map +0 -1
- package/src/console/view/BaseConsoleButton.d.ts +0 -18
- package/src/console/view/BaseConsoleButton.js +0 -63
- package/src/console/view/BaseConsoleButton.js.map +0 -1
- package/src/console/view/BaseConsoleView.d.ts +0 -42
- package/src/console/view/BaseConsoleView.js +0 -170
- package/src/console/view/BaseConsoleView.js.map +0 -1
- package/src/console/view/ConsoleContentContainer.d.ts +0 -8
- package/src/console/view/ConsoleContentContainer.js +0 -9
- package/src/console/view/ConsoleContentContainer.js.map +0 -1
- package/src/console/view/ConsoleView.d.ts +0 -9
- package/src/console/view/ConsoleView.js +0 -43
- package/src/console/view/ConsoleView.js.map +0 -1
- package/src/console/view/ConsoleViewEvent.d.ts +0 -3
- package/src/console/view/ConsoleViewEvent.js +0 -6
- package/src/console/view/ConsoleViewEvent.js.map +0 -1
- package/src/console/view/capture/CaptureKeyButton.d.ts +0 -16
- package/src/console/view/capture/CaptureKeyButton.js +0 -73
- package/src/console/view/capture/CaptureKeyButton.js.map +0 -1
- package/src/console/view/capture/CaptureKeyButtonEvent.d.ts +0 -3
- package/src/console/view/capture/CaptureKeyButtonEvent.js +0 -4
- package/src/console/view/capture/CaptureKeyButtonEvent.js.map +0 -1
- package/src/console/view/displaylist/DisplayListItemView.d.ts +0 -18
- package/src/console/view/displaylist/DisplayListItemView.js +0 -75
- package/src/console/view/displaylist/DisplayListItemView.js.map +0 -1
- package/src/console/view/displaylist/DisplayListView.d.ts +0 -61
- package/src/console/view/displaylist/DisplayListView.js +0 -554
- package/src/console/view/displaylist/DisplayListView.js.map +0 -1
- package/src/console/view/fps/FpsMeterView.d.ts +0 -13
- package/src/console/view/fps/FpsMeterView.js +0 -65
- package/src/console/view/fps/FpsMeterView.js.map +0 -1
- package/src/console/view/pause/PauseKeyButton.d.ts +0 -20
- package/src/console/view/pause/PauseKeyButton.js +0 -99
- package/src/console/view/pause/PauseKeyButton.js.map +0 -1
- package/src/console/view/tooltip/ConsoleTooltip.d.ts +0 -11
- package/src/console/view/tooltip/ConsoleTooltip.js +0 -73
- package/src/console/view/tooltip/ConsoleTooltip.js.map +0 -1
- package/src/tooltip/BaseTooltip.d.ts +0 -9
- package/src/tooltip/BaseTooltip.js +0 -13
- package/src/tooltip/BaseTooltip.js.map +0 -1
- package/src/tooltip/ITooltipData.d.ts +0 -4
- package/src/tooltip/ITooltipData.js +0 -2
- package/src/tooltip/ITooltipData.js.map +0 -1
- package/src/tooltip/TooltipManager.d.ts +0 -37
- package/src/tooltip/TooltipManager.js +0 -105
- package/src/tooltip/TooltipManager.js.map +0 -1
- package/tooltip/index.d.ts +0 -3
- package/tooltip/index.js +0 -4
- package/tooltip/index.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IFConsoleConfigVO.js","sourceRoot":"","sources":["../../../../src/console/config/IFConsoleConfigVO.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IFConsoleCustomBtnConfigVO.js","sourceRoot":"","sources":["../../../../src/console/config/IFConsoleCustomBtnConfigVO.ts"],"names":[],"mappings":""}
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { BaseObject } from "@flashist/fcore";
|
|
2
|
-
import { FLabel, InteractiveEvent, FContainer } from "@flashist/flibs";
|
|
3
|
-
import { FC } from "../FC";
|
|
4
|
-
export class BaseConsoleButton extends BaseObject {
|
|
5
|
-
construction() {
|
|
6
|
-
super.construction();
|
|
7
|
-
this._text = "";
|
|
8
|
-
this.view = new FContainer();
|
|
9
|
-
this.view.interactive = true;
|
|
10
|
-
this.view.cursor = 'pointer';
|
|
11
|
-
this.field = new FLabel({
|
|
12
|
-
autosize: true,
|
|
13
|
-
// color: FC.config.btnSettings.labelColor,
|
|
14
|
-
// size: FC.config.btnSettings.labelSize,
|
|
15
|
-
nativeTextStyle: {
|
|
16
|
-
fill: FC.config.btnSettings.labelColor,
|
|
17
|
-
fontSize: FC.config.btnSettings.labelSize
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
this.view.addChild(this.field);
|
|
21
|
-
this.commitData();
|
|
22
|
-
this.onOut();
|
|
23
|
-
}
|
|
24
|
-
addListeners() {
|
|
25
|
-
super.addListeners();
|
|
26
|
-
this.eventListenerHelper.addEventListener(this.view, InteractiveEvent.OVER, this.onOver);
|
|
27
|
-
this.eventListenerHelper.addEventListener(this.view, InteractiveEvent.OUT, this.onOut);
|
|
28
|
-
this.eventListenerHelper.addEventListener(this.view, InteractiveEvent.TAP, this.onClick);
|
|
29
|
-
this.eventListenerHelper.addEventListener(this.view, InteractiveEvent.UP_OUTSIDE, this.onOut);
|
|
30
|
-
}
|
|
31
|
-
onOver() {
|
|
32
|
-
this.view.alpha = 1;
|
|
33
|
-
if (this.tooltipData) {
|
|
34
|
-
FC.tooltipManager.show(this.tooltipData);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
onOut() {
|
|
38
|
-
this.view.alpha = 0.75;
|
|
39
|
-
FC.tooltipManager.hide();
|
|
40
|
-
}
|
|
41
|
-
onClick() {
|
|
42
|
-
this.onOut();
|
|
43
|
-
}
|
|
44
|
-
commitData() {
|
|
45
|
-
super.commitData();
|
|
46
|
-
this.field.text = this.text;
|
|
47
|
-
this.arrange();
|
|
48
|
-
}
|
|
49
|
-
arrange() {
|
|
50
|
-
super.arrange();
|
|
51
|
-
}
|
|
52
|
-
get text() {
|
|
53
|
-
return this._text;
|
|
54
|
-
}
|
|
55
|
-
set text(value) {
|
|
56
|
-
if (value == this.text) {
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
this._text = value;
|
|
60
|
-
this.commitData();
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
//# sourceMappingURL=BaseConsoleButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseConsoleButton.js","sourceRoot":"","sources":["../../../../src/console/view/BaseConsoleButton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAEH,MAAM,EACN,gBAAgB,EAChB,UAAU,EACb,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAG3B,MAAM,OAAO,iBAAkB,SAAQ,UAAU;IASnC,YAAY;QAClB,KAAK,CAAC,YAAY,EAAE,CAAC;QAErB,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;QAEhB,IAAI,CAAC,IAAI,GAAG,IAAI,UAAU,EAAE,CAAC;QAC7B,IAAI,CAAC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;QAC7B,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;QAE7B,IAAI,CAAC,KAAK,GAAG,IAAI,MAAM,CAAC;YACpB,QAAQ,EAAE,IAAI;YACd,2CAA2C;YAC3C,yCAAyC;YACzC,eAAe,EAAE;gBACb,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,UAAU;gBACtC,QAAQ,EAAE,EAAE,CA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AAK,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QAE5B,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAES,OAAO;QACb,KAAK,CAAC,OAAO,EAAE,CAAC;IAEpB,CAAC;IAGD,IAAI,IAAI;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAED,IAAI,IAAI,CAAC,KAAa;QAClB,IAAI,KAAK,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,OAAO;QACX,CAAC;QAED,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QAEnB,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CACJ"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { BaseObject } from "@flashist/fcore";
|
|
2
|
-
import { DisplayObjectContainer, FLabel, FContainer } from "@flashist/flibs";
|
|
3
|
-
import { BaseConsoleButton } from "./BaseConsoleButton";
|
|
4
|
-
import { CaptureKeyButton } from "./capture/CaptureKeyButton";
|
|
5
|
-
import { ITooltipData } from "../../tooltip/ITooltipData";
|
|
6
|
-
export declare class BaseConsoleView extends BaseObject {
|
|
7
|
-
view: DisplayObjectContainer;
|
|
8
|
-
private bgGraphics;
|
|
9
|
-
protected contentCont: FContainer;
|
|
10
|
-
protected titleCont: FContainer;
|
|
11
|
-
protected insideContentCont: FContainer;
|
|
12
|
-
private _visible;
|
|
13
|
-
private dragHelper;
|
|
14
|
-
private viewDragStartX;
|
|
15
|
-
private viewDragStartY;
|
|
16
|
-
private topLevelElements;
|
|
17
|
-
private topLevelCont;
|
|
18
|
-
protected titleLabel: FLabel;
|
|
19
|
-
private _titleVisible;
|
|
20
|
-
protected captureClickBtn: BaseConsoleButton;
|
|
21
|
-
protected captureKeyBtn: CaptureKeyButton;
|
|
22
|
-
private _captureVisible;
|
|
23
|
-
lastBgWidth: number;
|
|
24
|
-
lastBgHeight: number;
|
|
25
|
-
protected titleBtns: BaseConsoleButton[];
|
|
26
|
-
protected construction(): void;
|
|
27
|
-
protected addListeners(): void;
|
|
28
|
-
private onDragStart;
|
|
29
|
-
private onDragUpdate;
|
|
30
|
-
protected onClose(): void;
|
|
31
|
-
protected onCapture(): void;
|
|
32
|
-
get visible(): boolean;
|
|
33
|
-
set visible(value: boolean);
|
|
34
|
-
protected commitData(): void;
|
|
35
|
-
protected arrange(): void;
|
|
36
|
-
protected createTitleBtn(label: string, tooltipData?: ITooltipData, data?: any): BaseConsoleButton;
|
|
37
|
-
protected addTitleElement(element: DisplayObjectContainer): void;
|
|
38
|
-
get titleVisible(): boolean;
|
|
39
|
-
set titleVisible(value: boolean);
|
|
40
|
-
get captureVisible(): boolean;
|
|
41
|
-
set captureVisible(value: boolean);
|
|
42
|
-
}
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
import { BaseObject } from "@flashist/fcore";
|
|
2
|
-
import { InteractiveEvent, Graphics, FLabel, DragHelper, DragHelperEvent, FContainer } from "@flashist/flibs";
|
|
3
|
-
import { FC } from "../FC";
|
|
4
|
-
import { BaseConsoleButton } from "./BaseConsoleButton";
|
|
5
|
-
import { CaptureKeyButton } from "./capture/CaptureKeyButton";
|
|
6
|
-
import { CaptureKeyButtonEvent } from "./capture/CaptureKeyButtonEvent";
|
|
7
|
-
export class BaseConsoleView extends BaseObject {
|
|
8
|
-
constructor() {
|
|
9
|
-
super(...arguments);
|
|
10
|
-
// private captureKey:string;
|
|
11
|
-
this.lastBgWidth = 0;
|
|
12
|
-
this.lastBgHeight = 0;
|
|
13
|
-
}
|
|
14
|
-
construction() {
|
|
15
|
-
super.construction();
|
|
16
|
-
// this.captureKey = "";
|
|
17
|
-
this._titleVisible = true;
|
|
18
|
-
this._captureVisible = false;
|
|
19
|
-
this.topLevelElements = [];
|
|
20
|
-
this.titleBtns = [];
|
|
21
|
-
this.view = new FContainer();
|
|
22
|
-
this.bgGraphics = new Graphics();
|
|
23
|
-
this.view.addChild(this.bgGraphics);
|
|
24
|
-
//
|
|
25
|
-
this.bgGraphics.interactive = true;
|
|
26
|
-
this.dragHelper = new DragHelper();
|
|
27
|
-
this.dragHelper.view = this.bgGraphics;
|
|
28
|
-
this.contentCont = new FContainer();
|
|
29
|
-
this.view.addChild(this.contentCont);
|
|
30
|
-
this.titleCont = new FContainer();
|
|
31
|
-
this.contentCont.addChild(this.titleCont);
|
|
32
|
-
this.titleLabel = new FLabel({
|
|
33
|
-
autosize: true,
|
|
34
|
-
nativeTextStyle: {
|
|
35
|
-
fill: FC.config.viewSettings.titleLabelColor,
|
|
36
|
-
fontSize: FC.config.viewSettings.titleLabelSize
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
this.titleCont.addChild(this.titleLabel);
|
|
40
|
-
this.titleLabel.text = "Test Title";
|
|
41
|
-
this.topLevelCont = new FContainer();
|
|
42
|
-
this.titleCont.addChild(this.topLevelCont);
|
|
43
|
-
this.captureClickBtn = new BaseConsoleButton();
|
|
44
|
-
this.titleCont.addChild(this.captureClickBtn.view);
|
|
45
|
-
this.captureClickBtn.view.y = this.titleLabel.y + this.titleLabel.height + 10;
|
|
46
|
-
//
|
|
47
|
-
this.captureClickBtn.tooltipData = { title: FC.config.localization.captureClickBtnTooltip };
|
|
48
|
-
this.captureClickBtn.text = FC.config.localization.captureClickBtnLabel;
|
|
49
|
-
this.captureKeyBtn = new CaptureKeyButton();
|
|
50
|
-
this.titleCont.addChild(this.captureKeyBtn.view);
|
|
51
|
-
this.captureKeyBtn.view.y = this.captureClickBtn.view.y + this.captureClickBtn.view.height;
|
|
52
|
-
//
|
|
53
|
-
this.captureKeyBtn.tooltipData = { title: FC.config.localization.captureKeyBtnTooltipTitle };
|
|
54
|
-
this.insideContentCont = new FContainer();
|
|
55
|
-
this.contentCont.addChild(this.insideContentCont);
|
|
56
|
-
}
|
|
57
|
-
addListeners() {
|
|
58
|
-
super.addListeners();
|
|
59
|
-
this.eventListenerHelper.addEventListener(this.dragHelper, DragHelperEvent.DRAG_START, this.onDragStart);
|
|
60
|
-
this.eventListenerHelper.addEventListener(this.dragHelper, DragHelperEvent.DRAG_UPDATE, this.onDragUpdate);
|
|
61
|
-
this.eventListenerHelper.addEventListener(this.captureKeyBtn, CaptureKeyButtonEvent.CAPTURE_KEY_PRESS, this.onCapture);
|
|
62
|
-
this.eventListenerHelper.addEventListener(this.captureClickBtn.view, InteractiveEvent.TAP, this.onCapture);
|
|
63
|
-
}
|
|
64
|
-
onDragStart() {
|
|
65
|
-
this.viewDragStartX = this.view.x;
|
|
66
|
-
this.viewDragStartY = this.view.y;
|
|
67
|
-
FC.moveViewToTopLayer(this);
|
|
68
|
-
}
|
|
69
|
-
onDragUpdate() {
|
|
70
|
-
this.view.x = this.viewDragStartX + this.dragHelper.changeDragGlobalX;
|
|
71
|
-
this.view.y = this.viewDragStartY + this.dragHelper.changeDragGlobalY;
|
|
72
|
-
}
|
|
73
|
-
onClose() {
|
|
74
|
-
FC.hideView(this);
|
|
75
|
-
}
|
|
76
|
-
onCapture() {
|
|
77
|
-
// Should be overridden in subclusses
|
|
78
|
-
}
|
|
79
|
-
get visible() {
|
|
80
|
-
return this._visible;
|
|
81
|
-
}
|
|
82
|
-
set visible(value) {
|
|
83
|
-
if (value == this.visible) {
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
this._visible = value;
|
|
87
|
-
this.commitData();
|
|
88
|
-
}
|
|
89
|
-
commitData() {
|
|
90
|
-
super.commitData();
|
|
91
|
-
this.view.visible = this.visible;
|
|
92
|
-
this.titleLabel.visible = this.titleVisible;
|
|
93
|
-
this.captureClickBtn.view.visible = this.captureVisible;
|
|
94
|
-
this.captureKeyBtn.view.visible = this.captureVisible;
|
|
95
|
-
this.arrange();
|
|
96
|
-
}
|
|
97
|
-
arrange() {
|
|
98
|
-
// Reset previously set changes
|
|
99
|
-
let tempBtn;
|
|
100
|
-
let prevBtn;
|
|
101
|
-
let btnsCount = this.topLevelElements.length;
|
|
102
|
-
for (let btnIndex = 0; btnIndex < btnsCount; btnIndex++) {
|
|
103
|
-
tempBtn = this.topLevelElements[btnIndex];
|
|
104
|
-
if (prevBtn) {
|
|
105
|
-
tempBtn.x = prevBtn.x + prevBtn.width + 5;
|
|
106
|
-
}
|
|
107
|
-
prevBtn = tempBtn;
|
|
108
|
-
}
|
|
109
|
-
if (this.titleVisible) {
|
|
110
|
-
this.topLevelCont.x = this.titleLabel.x + this.titleLabel.width + 10;
|
|
111
|
-
}
|
|
112
|
-
else {
|
|
113
|
-
this.topLevelCont.x = this.titleLabel.x;
|
|
114
|
-
}
|
|
115
|
-
if (this.insideContentCont.visible) {
|
|
116
|
-
this.insideContentCont.y = this.titleCont.y + this.titleCont.height;
|
|
117
|
-
}
|
|
118
|
-
else {
|
|
119
|
-
this.insideContentCont.y = 0;
|
|
120
|
-
}
|
|
121
|
-
let tempWidth = this.contentCont.width + FC.config.viewSettings.bgToContentShift.x;
|
|
122
|
-
let tempHeight = this.contentCont.height + FC.config.viewSettings.bgToContentShift.y;
|
|
123
|
-
if (tempWidth != this.lastBgWidth || tempHeight != this.lastBgHeight) {
|
|
124
|
-
this.lastBgWidth = tempWidth;
|
|
125
|
-
this.lastBgHeight = tempHeight;
|
|
126
|
-
this.bgGraphics.clear();
|
|
127
|
-
//
|
|
128
|
-
this.bgGraphics.rect(0, 0, tempWidth, tempHeight);
|
|
129
|
-
this.bgGraphics.setStrokeStyle({ width: FC.config.viewSettings.borderWidth, color: FC.config.viewSettings.borderColor, alpha: FC.config.viewSettings.borderAlpha });
|
|
130
|
-
this.bgGraphics.fill({ color: FC.config.viewSettings.bgColor, alpha: FC.config.viewSettings.bgAlpha });
|
|
131
|
-
this.bgGraphics.endFill();
|
|
132
|
-
}
|
|
133
|
-
this.contentCont.x = this.bgGraphics.x + ((this.bgGraphics.width - this.contentCont.width) >> 1);
|
|
134
|
-
this.contentCont.y = this.bgGraphics.y + ((this.bgGraphics.height - this.contentCont.height) >> 1);
|
|
135
|
-
}
|
|
136
|
-
createTitleBtn(label, tooltipData, data) {
|
|
137
|
-
let tempBtn = new BaseConsoleButton();
|
|
138
|
-
tempBtn.text = label;
|
|
139
|
-
tempBtn.tooltipData = tooltipData;
|
|
140
|
-
tempBtn.data = data;
|
|
141
|
-
this.titleBtns.push(tempBtn);
|
|
142
|
-
this.addTitleElement(tempBtn.view);
|
|
143
|
-
return tempBtn;
|
|
144
|
-
}
|
|
145
|
-
addTitleElement(element) {
|
|
146
|
-
this.topLevelCont.addChild(element);
|
|
147
|
-
this.topLevelElements.push(element);
|
|
148
|
-
}
|
|
149
|
-
get titleVisible() {
|
|
150
|
-
return this._titleVisible;
|
|
151
|
-
}
|
|
152
|
-
set titleVisible(value) {
|
|
153
|
-
if (value == this.titleVisible) {
|
|
154
|
-
return;
|
|
155
|
-
}
|
|
156
|
-
this._titleVisible = value;
|
|
157
|
-
this.commitData();
|
|
158
|
-
}
|
|
159
|
-
get captureVisible() {
|
|
160
|
-
return this._captureVisible;
|
|
161
|
-
}
|
|
162
|
-
set captureVisible(value) {
|
|
163
|
-
if (value == this.captureVisible) {
|
|
164
|
-
return;
|
|
165
|
-
}
|
|
166
|
-
this._captureVisible = value;
|
|
167
|
-
this.commitData();
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
//# sourceMappingURL=BaseConsoleView.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseConsoleView.js","sourceRoot":"","sources":["../../../../src/console/view/BaseConsoleView.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAA0B,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAEtI,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO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;IACxC,CAAC;IAED,IAAI,YAAY;QACZ,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;IAED,IAAI,YAAY,CAAC,KAAc;QAC3B,IAAI,KAAK,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;YAC7B,OAAO;QACX,CAAC;QAED,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAE3B,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;IAED,IAAI,cAAc;QACd,OAAO,IAAI,CAAC,eAAe,CAAC;IAChC,CAAC;IACD,IAAI,cAAc,CAAC,KAAc;QAC7B,IAAI,KAAK,IAAI,IAAI,CAAC,cAAc,EAAE,CAAC;YAC/B,OAAO;QACX,CAAC;QAED,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QAE7B,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CACJ"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { FContainer } from "@flashist/flibs";
|
|
2
|
-
/**
|
|
3
|
-
* The only purpose of the class is to show in the console its name,
|
|
4
|
-
* so it would be obvious, that everything "inside of it" is part
|
|
5
|
-
* of the console itself.
|
|
6
|
-
*/
|
|
7
|
-
export declare class ConsoleContentContainer extends FContainer {
|
|
8
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FContainer } from "@flashist/flibs";
|
|
2
|
-
/**
|
|
3
|
-
* The only purpose of the class is to show in the console its name,
|
|
4
|
-
* so it would be obvious, that everything "inside of it" is part
|
|
5
|
-
* of the console itself.
|
|
6
|
-
*/
|
|
7
|
-
export class ConsoleContentContainer extends FContainer {
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=ConsoleContentContainer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConsoleContentContainer.js","sourceRoot":"","sources":["../../../../src/console/view/ConsoleContentContainer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAE3C;;;;GAIG;AACH,MAAM,OAAO,uBAAwB,SAAQ,UAAU;CAEtD"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseConsoleView } from "./BaseConsoleView";
|
|
2
|
-
export declare class ConsoleView extends BaseConsoleView {
|
|
3
|
-
private displayListBtn;
|
|
4
|
-
private closeBtn;
|
|
5
|
-
private fpsMeter;
|
|
6
|
-
protected construction(): void;
|
|
7
|
-
protected addListeners(): void;
|
|
8
|
-
private onDisplayListClick;
|
|
9
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { BaseConsoleView } from "./BaseConsoleView";
|
|
2
|
-
import { FC } from "../FC";
|
|
3
|
-
import { InteractiveEvent } from "@flashist/flibs";
|
|
4
|
-
import { FpsMeterView } from "./fps/FpsMeterView";
|
|
5
|
-
import { ConsoleViewEvent } from "./ConsoleViewEvent";
|
|
6
|
-
export class ConsoleView extends BaseConsoleView {
|
|
7
|
-
construction() {
|
|
8
|
-
super.construction();
|
|
9
|
-
this.titleVisible = false;
|
|
10
|
-
this.displayListBtn = this.createTitleBtn(FC.config.localization.displayListBtnLabel, {
|
|
11
|
-
title: FC.config.localization.displayListBtnTooltipTitle,
|
|
12
|
-
text: FC.config.localization.displayListBtnTooltipText
|
|
13
|
-
});
|
|
14
|
-
this.addTitleElement(new FpsMeterView());
|
|
15
|
-
if (FC.config.customBtns) {
|
|
16
|
-
for (let singleCustomBtnConfig of FC.config.customBtns) {
|
|
17
|
-
this.createTitleBtn(singleCustomBtnConfig.label, { title: singleCustomBtnConfig.tooltip }, singleCustomBtnConfig);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
this.closeBtn = this.createTitleBtn(FC.config.localization.closeBtnLabel, { title: FC.config.localization.closeBtnTooltipTitle });
|
|
21
|
-
}
|
|
22
|
-
addListeners() {
|
|
23
|
-
super.addListeners();
|
|
24
|
-
this.eventListenerHelper.addEventListener(this.displayListBtn.view, InteractiveEvent.TAP, this.onDisplayListClick);
|
|
25
|
-
this.eventListenerHelper.addEventListener(this.closeBtn.view, InteractiveEvent.TAP, this.onClose);
|
|
26
|
-
const addSingleBtnHandler = (singleBtn) => {
|
|
27
|
-
this.eventListenerHelper.addEventListener(singleBtn.view, InteractiveEvent.TAP, () => {
|
|
28
|
-
const btnData = singleBtn.data;
|
|
29
|
-
if (btnData) {
|
|
30
|
-
this.dispatchEvent(ConsoleViewEvent.CUSTOM_BTN_CLICK, btnData);
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
for (let singleTitleBtn of this.titleBtns) {
|
|
35
|
-
// using separate function, to make sure correct data about buttons are passed into event handlers
|
|
36
|
-
addSingleBtnHandler(singleTitleBtn);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
onDisplayListClick() {
|
|
40
|
-
FC.toggleView(FC.displayListView);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=ConsoleView.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConsoleView.js","sourceRoot":"","sources":["../../../../src/console/view/ConsoleView.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAE3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,OAAO,WAAY,SAAQ,eAAe;IAMlC,YAAY;QAClB,KAAK,CAAC,YAAY,EAAE,CAAC;QAErB,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAE1B,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CACrC,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,mBAAmB,EAC1C;YACI,KAAK,EA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AAC;oBACV,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;gBACnE,CAAC;YACL,CAAC,CACJ,CAAC;QACN,CAAC,CAAC;QACF,KAAK,IAAI,cAAc,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;YACxC,kGAAkG;YAClG,mBAAmB,CAAC,cAAc,CAAC,CAAC;QACxC,CAAC;IACL,CAAC;IAGO,kBAAkB;QACtB,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC;IACtC,CAAC;CACJ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConsoleViewEvent.js","sourceRoot":"","sources":["../../../../src/console/view/ConsoleViewEvent.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,gBAEX;AAFD,WAAY,gBAAgB;IACxB,0EAAsD,CAAA;AAC1D,CAAC,EAFW,gBAAgB,KAAhB,gBAAgB,QAE3B;AAAA,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { BaseConsoleButton } from "../BaseConsoleButton";
|
|
2
|
-
import { InputManagerEventData } from "@flashist/flibs";
|
|
3
|
-
export declare class CaptureKeyButton extends BaseConsoleButton {
|
|
4
|
-
private _captureKeyCode;
|
|
5
|
-
captureKey: string;
|
|
6
|
-
private _isClicked;
|
|
7
|
-
protected addListeners(): void;
|
|
8
|
-
protected onClick(): void;
|
|
9
|
-
protected onKeyUp(data: InputManagerEventData): void;
|
|
10
|
-
protected commitData(): void;
|
|
11
|
-
protected arrange(): void;
|
|
12
|
-
get isClicked(): boolean;
|
|
13
|
-
set isClicked(value: boolean);
|
|
14
|
-
get captureKeyCode(): string;
|
|
15
|
-
set captureKeyCode(value: string);
|
|
16
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { BaseConsoleButton } from "../BaseConsoleButton";
|
|
2
|
-
import { InputManager, InputManagerEvent } from "@flashist/flibs";
|
|
3
|
-
import { StringTools } from "@flashist/fcore";
|
|
4
|
-
import { CaptureKeyButtonEvent } from "./CaptureKeyButtonEvent";
|
|
5
|
-
import { FC } from "../../FC";
|
|
6
|
-
export class CaptureKeyButton extends BaseConsoleButton {
|
|
7
|
-
addListeners() {
|
|
8
|
-
super.addListeners();
|
|
9
|
-
this.eventListenerHelper.addEventListener(InputManager.instance, InputManagerEvent.KEY_UP, this.onKeyUp);
|
|
10
|
-
}
|
|
11
|
-
onClick() {
|
|
12
|
-
super.onClick();
|
|
13
|
-
this.isClicked = !this.isClicked;
|
|
14
|
-
if (!this.isClicked) {
|
|
15
|
-
this.captureKeyCode = null;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
onKeyUp(data) {
|
|
19
|
-
if (this.view.visible) {
|
|
20
|
-
if (this.isClicked) {
|
|
21
|
-
this.isClicked = false;
|
|
22
|
-
this.captureKey = data.nativeKeyboardEvent.key;
|
|
23
|
-
this.captureKeyCode = data.nativeKeyboardEvent.code;
|
|
24
|
-
this.commitData();
|
|
25
|
-
}
|
|
26
|
-
else if (this.captureKeyCode) {
|
|
27
|
-
if (this.captureKeyCode === data.nativeKeyboardEvent.code) {
|
|
28
|
-
this.dispatchEvent(CaptureKeyButtonEvent.CAPTURE_KEY_PRESS);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
commitData() {
|
|
34
|
-
super.commitData();
|
|
35
|
-
if (this.isClicked) {
|
|
36
|
-
this.text = FC.config.localization.captureKeyBtnPressedLabel;
|
|
37
|
-
}
|
|
38
|
-
else if (this.captureKeyCode) {
|
|
39
|
-
this.text = StringTools.substitute(FC.config.localization.captureKeyBtnNormalLabel, {
|
|
40
|
-
key: this.captureKey
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
else {
|
|
44
|
-
this.text = StringTools.substituteList(FC.config.localization.captureKeyBtnNormalLabel, {
|
|
45
|
-
key: FC.config.localization.captureKeyBtnNoKeyHelpText
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
arrange() {
|
|
50
|
-
super.arrange();
|
|
51
|
-
}
|
|
52
|
-
get isClicked() {
|
|
53
|
-
return this._isClicked;
|
|
54
|
-
}
|
|
55
|
-
set isClicked(value) {
|
|
56
|
-
if (value == this.isClicked) {
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
this._isClicked = value;
|
|
60
|
-
this.commitData();
|
|
61
|
-
}
|
|
62
|
-
get captureKeyCode() {
|
|
63
|
-
return this._captureKeyCode;
|
|
64
|
-
}
|
|
65
|
-
set captureKeyCode(value) {
|
|
66
|
-
if (value === this._captureKeyCode) {
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
this._captureKeyCode = value;
|
|
70
|
-
this.commitData();
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
//# sourceMappingURL=CaptureKeyButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CaptureKeyButton.js","sourceRoot":"","sources":["../../../../../src/console/view/capture/CaptureKeyButton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAyB,MAAM,iBAAiB,CAAC;AACzF,OAAO,EAAiB,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAE9B,MAAM,OAAO,gBAAiB,SAAQ,iBAAiB;IAQzC,YAAY;QAClB,KAAK,CAAC,YAAY,EAAE,CAAC;QAErB,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CACrC,YAAY,CAAC,QAAQ,EACrB,iBAAiB,CAAC,MAAM,EACxB,IAAI,CAAC,OAAO,CACf,CAAC;IACN,CAAC;IAGS,OAAO;QACb,KAAK,CAAC,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WAAW,CAAC,cAAc,CAClC,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,wBAAwB,EAC/C;gBACI,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,0BAA0B;aACzD,CACJ,CAAC;QACN,CAAC;IACL,CAAC;IAES,OAAO;QACb,KAAK,CAAC,OAAO,EAAE,CAAC;IAEpB,CAAC;IAGD,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAED,IAAI,SAAS,CAAC,KAAc;QACxB,IAAI,KAAK,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;YAC1B,OAAO;QACX,CAAC;QAED,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAExB,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;IAED,IAAW,cAAc;QACrB,OAAO,IAAI,CAAC,eAAe,CAAC;IAChC,CAAC;IACD,IAAW,cAAc,CAAC,KAAa;QACnC,IAAI,KAAK,KAAK,IAAI,CAAC,eAAe,EAAE,CAAC;YACjC,OAAO;QACX,CAAC;QAED,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QAE7B,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CAEJ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CaptureKeyButtonEvent.js","sourceRoot":"","sources":["../../../../../src/console/view/capture/CaptureKeyButtonEvent.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,qBAAqB;;AAChB,uCAAiB,GAAU,mBAAmB,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { IFDisplayObjectUnderPointVO, FContainer, DisplayObjectContainer, FLabel } from "@flashist/flibs";
|
|
2
|
-
export declare class DisplayListItemView extends FContainer<IFDisplayObjectUnderPointVO> {
|
|
3
|
-
contentCont: DisplayObjectContainer;
|
|
4
|
-
field: FLabel;
|
|
5
|
-
private _text;
|
|
6
|
-
private tooltipData;
|
|
7
|
-
isVisualControlsEnabled: boolean;
|
|
8
|
-
constructor();
|
|
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
|
-
}
|