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

@@ -230,9 +230,9 @@ void CSimulator::beginEditingText(class CText *txt) {
void CSimulator::destroyObject(CShape *s) {
sim->destroyObject(s);
}
class CShape *CSimulator::getShapeUnderCursor() {
class CShape *CSimulator::getShapeUnderCursor(bool bIncludeDeepText) {
Coord p = GetMousePos();
return sim->findShapeByBoundsPoint(p);
return sim->findShapeByBoundsPoint(p,bIncludeDeepText);
}
bool CSimulator::createSimulation(bool bDemo) {
projectPath = "";