LoneRobot
05-08-2008, 10:00 AM
this one is not a problem particularly but this bit of custom attributes help always leaves me going "errrrrrrrr" and i wondered if anyone can explain it a bit better.
The initialRollupState argument is an integer whose 32 bits are used to initialize the rollouts' rollup state in both the create and the modify panel. The semantics are different, however for these two cases. Whenever the rollouts are created in the create tab, their state will be that specified by this value. In the modify tab, the first time an object of this type is modified the state will be that of this value, but after that it will remain what it was last set to. The bits of this value indicate the corresponding rollout is rolled up (closed). The zero bit corresponds to the first rollout, the first bit is the second rollout, etc. The default value of 0x7fffffff is used so the command panel can detect this value is not being overridden, and just leave the rollouts as is. For example, a value of 0x07 would result in the first 3 rollouts being rolled up, and the remaining rollouts open. (2^2+2^1+2^0 = 4+2+1 = 7)
:shrug:
The initialRollupState argument is an integer whose 32 bits are used to initialize the rollouts' rollup state in both the create and the modify panel. The semantics are different, however for these two cases. Whenever the rollouts are created in the create tab, their state will be that specified by this value. In the modify tab, the first time an object of this type is modified the state will be that of this value, but after that it will remain what it was last set to. The bits of this value indicate the corresponding rollout is rolled up (closed). The zero bit corresponds to the first rollout, the first bit is the second rollout, etc. The default value of 0x7fffffff is used so the command panel can detect this value is not being overridden, and just leave the rollouts as is. For example, a value of 0x07 would result in the first 3 rollouts being rolled up, and the remaining rollouts open. (2^2+2^1+2^0 = 4+2+1 = 7)
:shrug:
