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

角色面板图为png透明图时,不能正常透出背景而是黑色背景,用ww角色伤害时却能够正常显示透出背景 #25

Open
ZZZLE opened this issue Feb 18, 2025 · 5 comments

Comments

@ZZZLE
Copy link

ZZZLE commented Feb 18, 2025

如题,不知道是作者故意的还是不小心的(

@tyql688
Copy link
Owner

tyql688 commented Feb 18, 2025

嗯? 发图看看

@ZZZLE
Copy link
Author

ZZZLE commented Feb 18, 2025

嗯? 发图看看
很明显角色面板的透明部分为纯黑色,右边角色伤害的透明部分是深蓝色哦
Image

@tyql688
Copy link
Owner

tyql688 commented Feb 18, 2025

嗯? 发图看看
很明显角色面板的透明部分为纯黑色,右边角色伤害的透明部分是深蓝色哦
Image

emmm, 代码是一样的,(我倒是没看出来差别)。可能跟尺寸大小有关,盲猜哈-

@ZZZLE
Copy link
Author

ZZZLE commented Feb 18, 2025

嗯? 发图看看
很明显角色面板的透明部分为纯黑色,右边角色伤害的透明部分是深蓝色哦
Image

emmm, 代码是一样的,(我倒是没看出来差别)。可能跟尺寸大小有关,盲猜哈-

可以用各种截图工具,鼠标放上去就能显示色值,可能背景图片颜色比较深,第一眼看不出
具体造成的原因我也不清楚,最简单的方法是换一张纯透明的角色面板图,是很容易复现的

@tyql688
Copy link
Owner

tyql688 commented Feb 18, 2025

Image

知道问题了,由于计算伤害时,列表是动态的,所以重新贴了一次图

代码是不断堆积的,改动起来有点多(按道理应该先算数据再拼图的),暂时先不改了(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants