Skip to content

Commit

Permalink
Add link of demo
Browse files Browse the repository at this point in the history
  • Loading branch information
rexrainbow committed Oct 8, 2024
1 parent 0b2af6a commit cb88cc3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/docs/ui-sizer.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ It is inspired from [wxSizer](https://docs.wxwidgets.org/3.0/overview_sizer.html
- [Bring child to top](https://codepen.io/rexrainbow/pen/gOqNbRr)
- [Fit-ratio](https://codepen.io/rexrainbow/pen/ZEPwrom)
- [Sort](https://codepen.io/rexrainbow/pen/poBmWMY)
- [Add multiple](https://codepen.io/rexrainbow/pen/MWNjbJj)

## Usage

Expand Down
2 changes: 1 addition & 1 deletion docs/site/search/search_index.json

Large diffs are not rendered by default.

Binary file modified docs/site/sitemap.xml.gz
Binary file not shown.
1 change: 1 addition & 0 deletions docs/site/ui-sizer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10304,6 +10304,7 @@ <h2 id="live-demos">Live demos<a class="headerlink" href="#live-demos" title="Pe
<li><a href="https://codepen.io/rexrainbow/pen/gOqNbRr">Bring child to top</a></li>
<li><a href="https://codepen.io/rexrainbow/pen/ZEPwrom">Fit-ratio</a></li>
<li><a href="https://codepen.io/rexrainbow/pen/poBmWMY">Sort</a></li>
<li><a href="https://codepen.io/rexrainbow/pen/MWNjbJj">Add multiple</a></li>
</ul>
<h2 id="usage">Usage<a class="headerlink" href="#usage" title="Permanent link">&para;</a></h2>
<p><a href="https://github.com/rexrainbow/phaser3-rex-notes/tree/master/examples/ui-sizer">Sample code</a></p>
Expand Down
4 changes: 2 additions & 2 deletions examples/ui-sizer/add-multiple.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ class Demo extends Phaser.Scene {
preload() { }

create() {
var background = this.add.rectangle(0, 0, 0, 0, 0x880000);
var background = this.add.rectangle(0, 0, 0, 0, COLOR_DARK);

var gameObjects = [];
for (var i = 0; i < 5; i++) {
gameObjects.push(this.add.rectangle(0, 0, 50, 50, 0x005555));
gameObjects.push(this.add.rectangle(0, 0, 50, 50, COLOR_LIGHT));
}

this.rexUI.add.sizer({
Expand Down

0 comments on commit cb88cc3

Please sign in to comment.