Compare commits

..

1 Commits

@ -1602,7 +1602,8 @@ public:
{ {
CSPhraseManager *pPM= CSPhraseManager::getInstance(); CSPhraseManager *pPM= CSPhraseManager::getInstance();
sint val= (sint32)value.getInteger(); sint val= (sint32)value.getInteger();
clamp(val, 0, MEM_SET_TYPES::NumMemories-1); // first half of memorized stanza sets
clamp(val, 0, MEM_SET_TYPES::NumMemories / 2 - 1);
pPM->selectMemoryLineDB(val); pPM->selectMemoryLineDB(val);
} }
} }
@ -1626,8 +1627,11 @@ public:
else else
{ {
CSPhraseManager *pPM= CSPhraseManager::getInstance(); CSPhraseManager *pPM= CSPhraseManager::getInstance();
sint val= (sint32)value.getInteger(); // second half of memorized stanza sets
clamp(val, 0, MEM_SET_TYPES::NumMemories-1); sint minValue = MEM_SET_TYPES::NumMemories / 2;
sint maxValue = MEM_SET_TYPES::NumMemories - 1;
sint val = (sint32)value.getInteger() + minValue;
clamp(val, minValue, maxValue);
pPM->selectMemoryLineDBalt(val); pPM->selectMemoryLineDBalt(val);
} }
} }

@ -403,15 +403,6 @@ public:
float getTgtY() const { return _Target.y; } float getTgtY() const { return _Target.y; }
float getTgtZ() const { return _Target.z; } float getTgtZ() const { return _Target.z; }
float getRotZ() const { return _Rot.z; }
void setRotZ(float f) { _Rot.z = f; }
float getRotY() const { return _Rot.y; }
void setRotY(float f) { _Rot.y = f; }
float getDist() const { return _Dist; }
void setDist(float f) { _Dist = f; }
REFLECT_EXPORT_START(CInterface3DCamera, CInterfaceElement) REFLECT_EXPORT_START(CInterface3DCamera, CInterfaceElement)
REFLECT_FLOAT ("posx", getPosX, setPosX); REFLECT_FLOAT ("posx", getPosX, setPosX);
REFLECT_FLOAT ("posy", getPosY, setPosY); REFLECT_FLOAT ("posy", getPosY, setPosY);
@ -419,13 +410,19 @@ public:
REFLECT_FLOAT ("tgtx", getTgtX, setTgtX); REFLECT_FLOAT ("tgtx", getTgtX, setTgtX);
REFLECT_FLOAT ("tgty", getTgtY, setTgtY); REFLECT_FLOAT ("tgty", getTgtY, setTgtY);
REFLECT_FLOAT ("tgtz", getTgtZ, setTgtZ); REFLECT_FLOAT ("tgtz", getTgtZ, setTgtZ);
REFLECT_FLOAT ("rotz", getRotZ, setRotZ);
REFLECT_FLOAT ("roty", getRotY, setRotY);
REFLECT_FLOAT ("dist", getDist, setDist);
REFLECT_FLOAT ("fov", getFOV, setFOV); REFLECT_FLOAT ("fov", getFOV, setFOV);
REFLECT_FLOAT ("roll", getRoll, setRoll); REFLECT_FLOAT ("roll", getRoll, setRoll);
REFLECT_EXPORT_END REFLECT_EXPORT_END
float getRotZ() const { return _Rot.z; }
void setRotZ(float f) { _Rot.z = f; }
float getRotY() const { return _Rot.y; }
void setRotY(float f) { _Rot.y = f; }
float getDist() const { return _Dist; }
void setDist(float f) { _Dist = f; }
void reset(); // Reset user interaction void reset(); // Reset user interaction
protected: protected:

@ -27,7 +27,7 @@ namespace MEM_SET_TYPES
// New System. Only 10 memories are allowed // New System. Only 10 memories are allowed
enum enum
{ {
NumMemories= 10, NumMemories= 20,
}; };
// Deprecated // Deprecated

Loading…
Cancel
Save