コード例 #1
0
		idSWFScriptVar Call( idSWFScriptObject* thisObject, const idSWFParmList& parms )
		{
		
			if( screen == NULL )
			{
				return idSWFScriptVar();
			}
			
			if( parms.Num() != 1 )
			{
				return idSWFScriptVar();
			}
			
			bool pdaDownload = parms[0].ToBool();
			if( pdaDownload )
			{
				screen->ToggleNewPDA( true );
			}
			else
			{
				screen->ToggleNewVideo( true );
			}
			
			return idSWFScriptVar();
		}
コード例 #2
0
					idSWFScriptVar Call( idSWFScriptObject* thisObject, const idSWFParmList& parms )
					{
						if( !player || !text )
						{
							return idSWFScriptVar();
						}
						
						idStr val = text->text;
						val.Replace( "\'", "" );
						val.Replace( "\"", "" );
						idStr command;
						if( player->isChatting == 2 )
						{
							command = va( "sayTeam %s\n", val.c_str() );
						}
						else
						{
							command = va( "say %s\n", val.c_str() );
						}
						
						cmdSystem->BufferCommandText( CMD_EXEC_NOW, command.c_str() );
						
						player->isChatting = 0;
						return idSWFScriptVar();
					}
コード例 #3
0
static idSWFScriptVar FormatColumn( const columnDef_t * columnDef, int64 score ) {
	switch( columnDef->displayType ) {
	case STATS_COLUMN_DISPLAY_TIME_MILLISECONDS:	return idSWFScriptVar( FormatTime( score ) );
	case STATS_COLUMN_DISPLAY_CASH:					return idSWFScriptVar( FormatCash( score ) );
	default:										return idSWFScriptVar( FormatNumber( score ) );
	}
}
コード例 #4
0
ファイル: MenuScreen_HUD.cpp プロジェクト: M-Code/DOOM-3-BFG
					idSWFScriptVar Call( idSWFScriptObject * thisObject, const idSWFParmList & parms ) {
						if ( !player ) {
							return idSWFScriptVar();
						}

						player->isChatting = 0;
						return idSWFScriptVar();
					}
コード例 #5
0
		idSWFScriptVar Call( idSWFScriptObject* thisObject, const idSWFParmList& parms )
		{
		
			if( widget == NULL )
			{
				return idSWFScriptVar();
			}
			
			widget->Update();
			return idSWFScriptVar();
		}
コード例 #6
0
		idSWFScriptVar Call( idSWFScriptObject * thisObject, const idSWFParmList & parms ) {
			idPlayer * player = gameLocal.GetLocalPlayer();
			if ( player != NULL ) {
				player->TogglePDA();
			}
			return idSWFScriptVar();
		}
コード例 #7
0
						idSWFScriptVar Call( idSWFScriptObject * thisObject, const idSWFParmList & parms ) {
							common->Dialog().ClearDialog( GDM_DELETE_AUTOSAVE );
							if ( accept ) {
								menuData->SetNextScreen( SHELL_AREA_NEW_GAME, MENU_TRANSITION_SIMPLE );
							}
							return idSWFScriptVar();
						}
コード例 #8
0
ファイル: MenuHandler.cpp プロジェクト: 469486139/DOOM-3-BFG
		idSWFScriptVar Call( idSWFScriptObject * thisObject, const idSWFParmList & parms ) {
			if ( handler != NULL ) {
				handler->TriggerMenu();
			}

			return idSWFScriptVar();
		}
コード例 #9
0
				idSWFScriptVar Call( idSWFScriptObject* thisObject, const idSWFParmList& parms )
				{
					common->Dialog().ClearDialog( GDM_LEAVE_LOBBY_RET_MAIN );
					session->Cancel();
					
					return idSWFScriptVar();
				}
コード例 #10
0
/*
========================
idMenuScreen_Shell_Stereoscopics::idMenuDataSource_StereoSettings::IsDataChanged
========================
*/
idSWFScriptVar idMenuScreen_Shell_Stereoscopics::idMenuDataSource_StereoSettings::GetField( const int fieldIndex ) const
{
	if( fieldIndex == STEREO_FIELD_ENABLE )
	{
		return idSWFScriptVar( stereoRender_enable_text[fields[fieldIndex].ToInteger()] );
	}
	return fields[ fieldIndex ];
}
コード例 #11
0
ファイル: MenuHandler.cpp プロジェクト: 469486139/DOOM-3-BFG
		idSWFScriptVar Call( idSWFScriptObject * thisObject, const idSWFParmList & parms ) {
			if ( handler != NULL ) {
				int screen = parms[0].ToInteger();
				handler->UpdateMenuDisplay( screen );
			}

			return idSWFScriptVar();
		}
コード例 #12
0
ファイル: SWF_ScriptVar.cpp プロジェクト: Erdk/RBDOOM-3-BFG
/*
========================
idSWFScriptVar::GetNestedVar
========================
*/
idSWFScriptVar idSWFScriptVar::GetNestedVar( const char* arg1, const char* arg2, const char* arg3, const char* arg4, const char* arg5, const char* arg6 )
{
	if( !IsObject() )
	{
		return idSWFScriptVar();
	}
	
	return GetObject()->GetNestedVar( arg1, arg2, arg3, arg4, arg5, arg6 );
}
コード例 #13
0
		idSWFScriptVar Call( idSWFScriptObject* thisObject, const idSWFParmList& parms )
		{
			common->Dialog().ClearDialog( msg );
			if( accept )
			{
				screen->DeleteGame( index );
			}
			return idSWFScriptVar();
		}
コード例 #14
0
		idSWFScriptVar Call( idSWFScriptObject * thisObject, const idSWFParmList & parms ) {
			common->Dialog().ClearDialog( msg );
			if ( accept == 1 ) {
				common->Quit();
			} else if ( accept == -1 ) {
				session->MoveToPressStart();
			}
			return idSWFScriptVar();
		}
コード例 #15
0
			idSWFScriptVar Call( idSWFScriptObject* thisObject, const idSWFParmList& parms )
			{
				common->Dialog().ClearDialog( msg );
				if( accept && name != NULL )
				{
				
					cmdSystem->AppendCommandText( va( "loadgame %s\n", name ) );
				}
				return idSWFScriptVar();
			}
コード例 #16
0
 idSWFScriptVar Call( idSWFScriptObject * thisObject, const idSWFParmList & parms ) {
     common->Dialog().ClearDialog( msg );
     if ( restart ) {
         idStr cmdLine = Sys_GetCmdLine();
         if ( cmdLine.Find( "com_skipIntroVideos" ) < 0 ) {
             cmdLine.Append( " +set com_skipIntroVideos 1" );
         }
         Sys_ReLaunch( (void*)cmdLine.c_str(), cmdLine.Length() );
     }
     return idSWFScriptVar();
 }
コード例 #17
0
/*
========================
idSWFSpriteInstance::~idSWFSpriteInstance
========================
*/
idSWFSpriteInstance::~idSWFSpriteInstance() {
	if ( parent != NULL ) {
		parent->scriptObject->Set( name, idSWFScriptVar() );
	}
	FreeDisplayList();
	displayList.Clear();
	scriptObject->SetSprite( NULL );
	scriptObject->Clear();
	scriptObject->Release();
	actionScript->Release();
}
コード例 #18
0
		idSWFScriptVar Call( idSWFScriptObject* thisObject, const idSWFParmList& parms )
		{
			common->Dialog().ClearDialog( msg );
			if( accept && screen != NULL )
			{
				if( index < screen->GetSortedSaves().Num() )
				{
					session->DeleteSaveGameSync( screen->GetSortedSaves()[ index ].slotName );
				}
			}
			return idSWFScriptVar();
		}
コード例 #19
0
			idSWFScriptVar Call( idSWFScriptObject* thisObject, const idSWFParmList& parms )
			{
				common->Dialog().ClearDialog( msg );
				if( restart )
				{
					// DG: Sys_ReLaunch() doesn't need any options anymore
					//     (the old way would have been unnecessarily painful on POSIX systems)
					Sys_ReLaunch();
					// DG end
				}
				return idSWFScriptVar();
			}
コード例 #20
0
						idSWFScriptVar Call( idSWFScriptObject * thisObject, const idSWFParmList & parms ) {
							common->Dialog().ClearDialog( msg );
							if ( accept ) {
								cvarSystem->SetModifiedFlags( CVAR_ARCHIVE );
								if ( menuHandler != NULL ) {
									menuHandler->SetNextScreen( SHELL_AREA_SYSTEM_OPTIONS, MENU_TRANSITION_SIMPLE );
								}
							} else {
								r_fullscreen.SetInteger( optionData.fullscreen );
								r_vidMode.SetInteger( optionData.vidmode );
								cvarSystem->ClearModifiedFlags( CVAR_ARCHIVE );
								cmdSystem->BufferCommandText( CMD_EXEC_APPEND, "vid_restart\n" );
							}
							return idSWFScriptVar();
						}
コード例 #21
0
			idSWFScriptVar Call( idSWFScriptObject* thisObject, const idSWFParmList& parms )
			{
				common->Dialog().ClearDialog( msg );
				if( accept && screen != NULL )
				{
					// Replace the save
					if( index < screen->GetSortedSaves().Num() )
					{
						idStr name = screen->GetSortedSaves()[ index ].slotName;
						cmdSystem->AppendCommandText( va( "savegame %s\n", name.c_str() ) );
						
						// Throw up the saving message...
						common->Dialog().ShowSaveIndicator( true );
					}
				}
				return idSWFScriptVar();
			}
コード例 #22
0
		idSWFScriptVar Call( idSWFScriptObject* thisObject, const idSWFParmList& parms )
		{
			common->Dialog().ClearDialog( msg );
			if( accept )
			{
				idLocalUser* user = session->GetSignInManager().GetMasterLocalUser();
				if( user != NULL )
				{
					idPlayerProfile* profile = user->GetProfile();
					if( profile != NULL )
					{
						profile->RestoreDefault();
						if( menu != NULL )
						{
							menu->UpdateBindingDisplay();
							menu->Update();
						}
					}
				}
			}
			return idSWFScriptVar();
		}
コード例 #23
0
				idSWFScriptVar Call( idSWFScriptObject* thisObject, const idSWFParmList& parms )
				{
					common->Dialog().ClearDialog( GDM_LEAVE_LOBBY_RET_NEW_PARTY );
					return idSWFScriptVar();
				}
コード例 #24
0
				idSWFScriptVar Call( idSWFScriptObject * thisObject, const idSWFParmList & parms ) {
					common->Dialog().ClearDialog( GDM_CORRUPT_CONTINUE );
					return idSWFScriptVar();
				}
コード例 #25
0
							idSWFScriptVar Call( idSWFScriptObject * thisObject, const idSWFParmList & parms ) {
								common->Dialog().ClearDialog( GDM_PLAY_ONLINE_NO_PROFILE );
								return idSWFScriptVar();
							}