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

LButton为什么安卓端没有按下效果 #26

Open
androids7 opened this issue Jun 7, 2019 · 4 comments
Open

LButton为什么安卓端没有按下效果 #26

androids7 opened this issue Jun 7, 2019 · 4 comments

Comments

@androids7
Copy link

我新建了一个LTexture数组,里面放两个图片,一个正常状态,一个按下状态,为什么给LButton后,在屏幕上点击,没有变化???

@androids7
Copy link
Author

解决了,给三个Texture,最后一个按下效果

@cping
Copy link
Owner

cping commented Jun 7, 2019

上次回复我提到过的。

LTexture[]数组的四张图默认顺序是,第一张图按钮默认图,第二张图鼠标悬浮图(鼠标滑过),第三张图按钮按下,第四张图按钮禁用图。因为触屏没有鼠标悬停事件,暂时没有悬停效果,也就是第二张图在触屏环境默认无效(Window10触屏环境下默认是长按算鼠标悬停,不过它那是出提示信息用的,也不是按钮图切换用,暂时无没想好按钮上怎么处理悬停事件)。

@cping
Copy link
Owner

cping commented Jun 7, 2019

主要是我怕用长按触发悬停事件,和按下时的图片切换有冲突,时间不好把握,短的话,会造成悬停和按下两种图有闪烁感,长的话用户来不及触发,以为没效果就不按了。这需要实际优化下再决定最后怎么处理。

@androids7
Copy link
Author

别改来改去了好吗,就这样了

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