--HG-- branch : dfighter-tools
@ -55,9 +55,7 @@ namespace NLGUI
static void forceLink();
protected:
sint64 getVal();
sint64 getVal() { if (_Modulo == 0) return (_Number.getSInt64() / _Divisor);
else return (_Number.getSInt64() / _Divisor)%_Modulo; }
@ -47,6 +47,15 @@ namespace NLGUI
_VolatileValue = NULL;
}
/// Tells if this property has a value
bool hasValue() const
{
if( _VolatileValue != NULL )
return true;
else
return false;
NLMISC::CCDBNodeLeaf* getNodePtr() const
return _VolatileValue;
@ -249,5 +249,16 @@ namespace NLGUI
sint64 CDBViewNumber::getVal()
if( !_Number.hasValue() )
return 0;
if( _Modulo == 0 )
return _Number.getSInt64() / _Divisor;
return ( _Number.getSInt64() / _Divisor ) % _Modulo;