Exemple #1
0
void LLFloaterAO::onCheckBoxCommit(LLUICtrl* ctrl, void* userdata)
{
	LLSpinCtrl* checkbox = (LLSpinCtrl*) ctrl;
	if(checkbox)
	{
		gSavedPerAccountSettings.setBOOL(checkbox->getName(), checkbox->getValue().asBoolean());
	}
}
Exemple #2
0
void LLFloaterAO::onSpinnerCommit(LLUICtrl* ctrl, void* userdata)
{
	LLSpinCtrl* spin = (LLSpinCtrl*) ctrl;
	if(spin)
	{
		if (spin->getName() == "standtime")
		{
			gSavedPerAccountSettings.setF32("PhoenixAOStandInterval", spin->get());
			if (mAOStandTimer) mAOStandTimer->reset();
		}
	}
}