Add missing Text Input to the web-app (#3785)

Don't show in changelog
This commit is contained in:
Florian Rival
2022-03-29 13:17:44 +02:00
committed by GitHub
parent cec7960a7d
commit 50326e4d21
2 changed files with 8 additions and 6 deletions

View File

@@ -578,12 +578,6 @@ module.exports = {
const TEXT_MASK_PADDING = 2;
class RenderedTextInputObjectInstance extends RenderedInstance {
_pixiText;
_pixiTextMask;
_pixiGraphics;
_fontResourceName = '';
_finalTextColor = 0x0;
constructor(
project,
layout,
@@ -601,6 +595,8 @@ module.exports = {
pixiResourcesLoader
);
this._fontResourceName = '';
this._finalTextColor = 0x0;
this._pixiGraphics = new PIXI.Graphics();
this._pixiTextMask = new PIXI.Graphics();
this._pixiText = new PIXI.Text(' ', {

View File

@@ -147,6 +147,12 @@ const jsExtensions = [
extensionModule: require('GDJS-for-web-app-only/Runtime/Extensions/Screenshot/JsExtension.js'),
objectsRenderingServiceModules: {},
},
{
name: 'TextInput',
// $FlowExpectedError - this path is ignored for Flow.
extensionModule: require('GDJS-for-web-app-only/Runtime/Extensions/TextInput/JsExtension.js'),
objectsRenderingServiceModules: {},
},
];
type MakeExtensionsLoaderArguments = {|