Commit 3c5bc94d authored by fallenstardust's avatar fallenstardust

换side可清除消息和黑块

parent e52eb3d3
...@@ -590,6 +590,14 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) { ...@@ -590,6 +590,14 @@ 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->textFont->setTransparency(true);
mainGame->ClearChatMsg();
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;
......
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