Tinting BitmapText characters separately not working after setting anchor
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript
調査の方向性
Start by reproducing the issue with the supplied example and compare the two BitmapText instances in Phaser 2.8.0: only the second sets an anchor before tinting its characters. Trace how BitmapText applies its own tint to child characters when the anchor changes. Done means per character tints remain visible after setting the anchor; the payload names no source files or tests.
索引モデルが issue の本文から書いたものです。
説明
Basically what in the title is. You can tint a BitmapText's characters separately, but if you set anchor (or maybe some other properties too), the tinting is not working on per character. I guess the engine overwrites all the children elements (the characters) tint values with the BitmapText's tint value.
Here is a small example demonstrating the problem:
http://icedevel.com/phaser-bug/character-tinting/index.html
My opinion is that the children elements should retain tint values if the BitmapText's tint value is not modified.
And the code:
var game;
function preload() {
this.game.load.bitmapFont("font", "font_simple.png", "font_simple.fnt");
}
function create() {
var txt1 = this.game.add.bitmapText(50, 50, "font", "012345", 28);
txt1.children[0].tint = 0xFF0000;
txt1.children[1].tint = 0xFFFF00;
txt1.children[2].tint = 0xFF00FF;
txt1.children[3].tint = 0x0000FF;
txt1.children[4].tint = 0x00FFFF;
txt1.children[5].tint = 0xFF0FF0;
var txt2 = this.game.add.bitmapText(50, 250, "font", "012345", 28);
txt2.anchor.setTo(0, 1);
txt2.children[0].tint = 0xFF0000;
txt2.children[1].tint = 0xFFFF00;
txt2.children[2].tint = 0xFF00FF;
txt2.children[3].tint = 0x0000FF;
txt2.children[4].tint = 0x00FFFF;
txt2.children[5].tint = 0xFF0FF0;
}
function update() {
}
window.onload = function(){
var config = {
width: 800,
height: 600,
renderer: Phaser.AUTO,
antialias: true,
state: {
preload: preload,
create: create,
update: update
}
}
game = new Phaser.Game(config);
};
Tested it on Phaser 2.8.0
- 主要言語
- JavaScript
- スター
- 1.4k
- フォーク
- 485
- 平均マージ
- 1日 2時間
- マージ済み PR(30日)
- 9
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
phaserjs/phaser-ce のほかの issue
-
Web audio stops playing in iOS 17 and 18 after refocusing再び着手できるかも @samme が 633 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
phaserjs/phaser-ce#748 · リアクション 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
phaserjs/phaser-ce#740 · コメント 9 件 · リアクション 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
phaserjs/phaser-ce#724 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
phaserjs/phaser-ce#711 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
メンテナーはふだん 1 日以内に返信
phaserjs/phaser-ce の issue をすべて見る
似ている issue
-
enhancement ready
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
DCGM/semant-demo#708 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
agents area: runtime automation chore cli consistency dependencies developer-experience difficulty: easy documentation enhancement good first issue help wanted hygiene json-output priority: P3 starters tests
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
Client codegen: an import repeated in an impl file is emitted twice, and the browser rejects the module対応中かも @MalithaPrabhashana が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
jaseci-labs/jac#10756 ·
メンテナーはふだん 1 日以内に返信