Skip to content

Commit

Permalink
Add document of ImageInputLabel
Browse files Browse the repository at this point in the history
  • Loading branch information
rexrainbow committed Sep 28, 2023
1 parent faa8a5e commit 9d47195
Show file tree
Hide file tree
Showing 407 changed files with 16,459 additions and 410 deletions.
3 changes: 2 additions & 1 deletion dist/rexgameobjectshellplugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -38247,7 +38247,7 @@

var GetValue$1t = Phaser.Utils.Objects.GetValue;
var GetClickTarget = function GetClickTarget(parent, config) {
var clickTarget = GetValue$1t(config, 'clickTarget', 'icon');
var clickTarget = GetValue$1t(config, 'clickTarget', this);
if (typeof clickTarget === 'string') {
clickTarget = parent.getElement(clickTarget);
}
Expand Down Expand Up @@ -38569,6 +38569,7 @@
return canvas.loadFromFilePromise(selectedFile).then(function () {
imageBox.scaleImage();
parent.emit('select', selectedFile, parent);
return Promise.resolve(selectedFile);
});
};

Expand Down
2 changes: 1 addition & 1 deletion dist/rexgameobjectshellplugin.min.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion dist/rexuiplugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -40995,7 +40995,7 @@

var GetValue$1C = Phaser.Utils.Objects.GetValue;
var GetClickTarget = function GetClickTarget(parent, config) {
var clickTarget = GetValue$1C(config, 'clickTarget', 'icon');
var clickTarget = GetValue$1C(config, 'clickTarget', this);
if (typeof clickTarget === 'string') {
clickTarget = parent.getElement(clickTarget);
}
Expand Down Expand Up @@ -41029,6 +41029,7 @@
return canvas.loadFromFilePromise(selectedFile).then(function () {
imageBox.scaleImage();
parent.emit('select', selectedFile, parent);
return Promise.resolve(selectedFile);
});
};

Expand Down
2 changes: 1 addition & 1 deletion dist/rexuiplugin.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/docs/filechooser.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ fileChooser.loadFilePromise(file, loaderType, key, cahceType)
### Open file chooser

!!! failure
This method can't run at ipad.
This method won't work at ios.
!!! note
Open a file chooser dialog **under any touch event**. i.e. User can't open file chooser dialog directly.
Expand Down
1 change: 1 addition & 0 deletions docs/docs/plugin-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@
1. [UI/Grid sizer](ui-gridsizer.md): Layout children game objects in grids.
1. [UI/Gird table](ui-gridtable.md): A container with a grid table, slider, and scroller.
1. [UI/Holy grail](ui-holygrail.md): Layout elements in [Holy grail](https://en.wikipedia.org/wiki/Holy_grail_(web_design)) style.
1. [UI/Image input label](ui-imageinputlabel.md): A container with a canvas icon, text, and background. Click icon to popup a (image) file chooser dialog, display selected image on canvas.
1. [UI/Knob](ui-knob.md): A knob button based on circular progress.
1. [UI/Label](ui-label.md): A game object container with an icon, text, and background.
1. [UI/Menu](ui-menu.md): A container with buttons and sub-menu.
Expand Down
Loading

0 comments on commit 9d47195

Please sign in to comment.