void UIActionFrame::initWithDictionary(cs::CSJsonDictionary *dic) { setFrameId(DICTOOL->getIntValue_json(dic, "frameid")); setStartTime(DICTOOL->getFloatValue_json(dic, "starttime")); setPosition(ccp(DICTOOL->getFloatValue_json(dic, "positionx"), DICTOOL->getFloatValue_json(dic, "positiony"))); setScaleX(DICTOOL->getFloatValue_json(dic, "scalex")); setScaleY(DICTOOL->getFloatValue_json(dic, "scaley")); setRotation(DICTOOL->getFloatValue_json(dic, "rotation")); setOpacity(DICTOOL->getIntValue_json(dic, "opacity")); setColor(ccc3(DICTOOL->getIntValue_json(dic, "colorr"), DICTOOL->getIntValue_json(dic, "colorg"), DICTOOL->getIntValue_json(dic, "colorb"))); }
TXRequest::TXRequest(QObject *parent) : DigiMeshPacket(parent) { unsigned zero = 0x00; unsigned oxff = 0xFF; unsigned oxfe = 0xFE; destAddr16.append(oxff); destAddr16.append(oxfe); destAddr64.append(zero); destAddr64.append(zero); destAddr64.append(zero); destAddr64.append(zero); destAddr64.append(zero); destAddr64.append(zero); destAddr64.append(oxff); destAddr64.append(oxff); broadcastRadius = 1; transmitOptions = 0x00; setFrameType(0x10); setFrameId(0x01); }