Exemplo n.º 1
0
void WLFloaterWindLightSend::onSaveParcelPreset(void* userData)
{
    int ParcelType = 1;
    SendSettings(false, ParcelType, false, LLWLParamManager::instance()->mCurParams,
                 LLWaterParamManager::instance()->mCurParams,
                 WLFloaterWindLightSend::instance()->childGetValue("Fade"),
                 WLFloaterWindLightSend::instance()->childGetValue("min_altitude"),
                 WLFloaterWindLightSend::instance()->childGetValue("max_altitude"),
                 LLWaterParamManager::instance()->getNormalMapID());
}
Exemplo n.º 2
0
void WLFloaterWindLightSend::onSaveRegionPreset(void* userData)
{
    int RegionType = 0;
    SendSettings(false, RegionType,
                 WLFloaterWindLightSend::instance()->childGetValue("override_parcel"),
                 LLWLParamManager::instance()->mCurParams,
                 LLWaterParamManager::instance()->mCurParams,
                 WLFloaterWindLightSend::instance()->childGetValue("Fade"),
                 WLFloaterWindLightSend::instance()->childGetValue("min_altitude"),
                 WLFloaterWindLightSend::instance()->childGetValue("max_altitude"),
                 LLWaterParamManager::instance()->getNormalMapID());
}
Exemplo n.º 3
0
void
AutomountSettingsPanel::MessageReceived(BMessage *message)
{
	switch (message->what) {
		case kDone:
		case B_QUIT_REQUESTED:
			Window()->Quit();
			break;

		case kAutomountSettingsChanged:
			SendSettings(true);
			break;

		case kBootMountSettingsChanged:
			SendSettings(false);
			break;

		default:
			_inherited::MessageReceived(message);
			break;
	}
}
Exemplo n.º 4
0
void CGameContext::OnClientConnected(int ClientID, bool Dummy)
{
	m_apPlayers[ClientID] = new(ClientID) CPlayer(this, ClientID, Dummy);
	
	if(Dummy)
		return;

	// send active vote
	if(m_VoteCloseTime)
		SendVoteSet(VOTE_UNKNOWN, ClientID);

	// send motd
	SendMotd(ClientID);

	// send settings
	SendSettings(ClientID);
}
Exemplo n.º 5
0
void DogfightClass::RestartGame (void)
{
	MonoPrint ("Restarting Game\n");
	// Reset game && mission evaluator after everyone has returned to the UI and viewed their scores
	flags &= ~DF_GAME_OVER;
	localFlags &= ~DF_VIEWED_SCORES;
	TheCampaign.MissionEvaluator->PreDogfightEval();
	ApplySettings();
	if (gMainHandler)
	{
		CheckFlyButton();
	}

	// Have the master resend the settings just to make sure everyone is in sync.
	if (FalconLocalGame && FalconLocalGame->IsLocal())
	{
		SendSettings(NULL);
	}
}
Exemplo n.º 6
0
bool CControlAPI::InfoCGI(CWebserverRequest *request)
{
	request->SendPlainHeader("text/plain");          // Standard httpd header senden
	if (request->ParameterList.size() == 0)
	{	//paramlos
		request->SocketWrite("Neutrino NG\n");
		return true;
	}
	else
	{
		if (request->ParameterList["1"] == "streaminfo")	// streaminfo ausgeben
		{
			SendStreamInfo(request);
			return true;
		}
		else if (request->ParameterList["1"] == "settings")	// settings ausgeben
		{
			SendSettings(request);
			return true;
		}
		else if (request->ParameterList["1"] == "version")	// version file ausgeben
		{
			request->SendFile("/",".version");
			return true;
		}
		else if (request->ParameterList["1"] == "httpdversion")	// httpd version ausgeben
		{
			request->SocketWrite("2");
			return true;
		}
		else
		{
			request->SendError();
			return false;
		}
	}
}
Exemplo n.º 7
0
bool CControlAPI::SettingsCGI(CWebserverRequest *request)		// sendet die settings
{
	request->SendPlainHeader("text/plain");
	SendSettings(request);
	return true;
}