Commit 26fe4f43 authored by fallenstardust's avatar fallenstardust

改为点击效果文字时消除黑块和消息

parent 05faa6b8
...@@ -1080,16 +1080,6 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) { ...@@ -1080,16 +1080,6 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
break; break;
} }
case irr::EMIE_LMOUSE_LEFT_UP: { case irr::EMIE_LMOUSE_LEFT_UP: {
s32 x = event.MouseInput.X;
s32 y = event.MouseInput.Y;
irr::core::position2di pos(x, y);
if (x < (200 * mainGame->xScale) && y < (270 * mainGame->yScale)) {
mainGame->gMutex.lock();
mainGame->textFont->setTransparency(true);
mainGame->ClearChatMsg();
mainGame->gMutex.unlock();
break;
}//touch the pic of detail to refresh textfonts
is_starting_dragging = false; is_starting_dragging = false;
if(!is_draging) if(!is_draging)
break; break;
......
...@@ -1974,10 +1974,10 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) { ...@@ -1974,10 +1974,10 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
break; break;
} }
case irr::EET_MOUSE_INPUT_EVENT: { case irr::EET_MOUSE_INPUT_EVENT: {
switch(event.MouseInput.Event) {
case irr::EMIE_LMOUSE_PRESSED_DOWN: {
IGUIElement* root = mainGame->env->getRootGUIElement(); IGUIElement* root = mainGame->env->getRootGUIElement();
position2di mousepos = position2di(event.MouseInput.X, event.MouseInput.Y); position2di mousepos = position2di(event.MouseInput.X, event.MouseInput.Y);
switch(event.MouseInput.Event) {
case irr::EMIE_LMOUSE_PRESSED_DOWN: {
if(root->getElementFromPoint(mousepos) == mainGame->stText) { if(root->getElementFromPoint(mousepos) == mainGame->stText) {
if(!mainGame->scrCardText->isVisible()) { if(!mainGame->scrCardText->isVisible()) {
break; break;
...@@ -2008,6 +2008,13 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) { ...@@ -2008,6 +2008,13 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
break; break;
} }
case irr::EMIE_LMOUSE_LEFT_UP: { case irr::EMIE_LMOUSE_LEFT_UP: {
if (root->getElementFromPoint(mousepos) == mainGame->stText) {
mainGame->gMutex.lock();
mainGame->textFont->setTransparency(true);
mainGame->ClearChatMsg();
mainGame->gMutex.unlock();
break;
}//touch the pic of detail to refresh textfonts
is_dragging_cardtext = false; is_dragging_cardtext = false;
is_dragging_tabHelper = false; is_dragging_tabHelper = false;
is_dragging_tabSystem = false; is_dragging_tabSystem = false;
......
...@@ -51,10 +51,11 @@ ...@@ -51,10 +51,11 @@
</pre> </pre>
<h3 style="color:#ff0000">注意</h3> <h3 style="color:#ff0000">注意</h3>
<pre> <pre>
①:文字出现黑块可以点击左侧卡图去除; ①:卸载本软件将删除包含卡组在内的重要文件,卸载前请慎重;
②:背景音乐播放流畅性视手机性能强度而定 ②:文字出现黑块可以点击左侧效果文字去除;
③:背景音乐播放流畅性视手机性能强度而定
如果使用过程中感觉卡顿,掉帧,或者不习惯,是可以辅助功能里关闭的; 如果使用过程中感觉卡顿,掉帧,或者不习惯,是可以辅助功能里关闭的;
:出现点击不准,不灵敏的情况 :出现点击不准,不灵敏的情况
·选择功能菜单>设置>开启沉浸式画面 ·选择功能菜单>设置>开启沉浸式画面
目前手头缺少多种机型,适配坑深难以一步到位 目前手头缺少多种机型,适配坑深难以一步到位
还请海涵。 还请海涵。
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment