Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复progressBar组件设置百分比进度过小,导致渲染不更新的bug。 #59

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions demo/bin/libs/fairygui/fairygui.js
Original file line number Diff line number Diff line change
Expand Up @@ -14231,9 +14231,9 @@
}
}
loadFont(item) {
item = item.getBranch();
var font = new fgui.BitmapFont();
item.bitmapFont = font;
item = item.getBranch();
var buffer = item.rawData;
buffer.seek(0, 0);
font.ttf = buffer.readBool();
Expand Down Expand Up @@ -15106,13 +15106,11 @@
if (w == 0 || h == 0)
return;
var points = fgui.fillImage(w, h, this._fillMethod, this._fillOrigin, this._fillClockwise, this._fillAmount);
if (points == null) {
if (points == null || this._fillAmount < 0.01) { //太小的laya也不会渲染
//不知道为什么,不这样操作一下空白的遮罩不能生效
this.mask = null;
this.mask = this._mask;
return;
}
g.drawPoly(0, 0, points, "#FFFFFF");
}
}
fgui.Image = Image;
Expand Down
6 changes: 2 additions & 4 deletions source/bin/fairygui.js
Original file line number Diff line number Diff line change
Expand Up @@ -14231,9 +14231,9 @@
}
}
loadFont(item) {
item = item.getBranch();
var font = new fgui.BitmapFont();
item.bitmapFont = font;
item = item.getBranch();
var buffer = item.rawData;
buffer.seek(0, 0);
font.ttf = buffer.readBool();
Expand Down Expand Up @@ -15106,13 +15106,11 @@
if (w == 0 || h == 0)
return;
var points = fgui.fillImage(w, h, this._fillMethod, this._fillOrigin, this._fillClockwise, this._fillAmount);
if (points == null) {
if (points == null || this._fillAmount < 0.01) { //太小的laya也不会渲染
//不知道为什么,不这样操作一下空白的遮罩不能生效
this.mask = null;
this.mask = this._mask;
return;
}
g.drawPoly(0, 0, points, "#FFFFFF");
}
}
fgui.Image = Image;
Expand Down
Loading