sim: BL0942 object with controller (sends BL0942 packets); not finished yet; also fix Text edit cursor

This commit is contained in:
openshwprojects
2022-12-07 01:10:23 +01:00
parent d7911fd4c9
commit 1ad2e00a7c
16 changed files with 229 additions and 10 deletions

View File

@ -30,7 +30,7 @@ void Tool_Text::onMouseDown(const Coord &pos, int button) {
currentTarget = 0;
return;
}
CShape *candid = sim->getShapeUnderCursor();
CShape *candid = sim->getShapeUnderCursor(true);
if (candid != 0) {
CText *txt = dynamic_cast<CText*>(candid);
if (txt != 0) {
@ -44,6 +44,7 @@ void Tool_Text::onMouseDown(const Coord &pos, int button) {
}
}
void Tool_Text::drawTool() {
sim->getCursorMgr()->setCursor(SDL_SYSTEM_CURSOR_ARROW);
}