Fixed Typos and padding

This commit is contained in:
W2.Wizard
2021-01-17 10:18:30 +01:00
parent 0e768694b5
commit 8fd0af3f39
19 changed files with 24 additions and 24 deletions

View File

@@ -262,9 +262,9 @@ namespace FlaxEditor.Content.Import
public int BaseLOD { get; set; } = 0; public int BaseLOD { get; set; } = 0;
/// <summary> /// <summary>
/// The amount of LODs to include in the model (all reaming ones starting from Base LOD will be generated). /// The amount of LODs to include in the model (all remaining ones starting from Base LOD will be generated).
/// </summary> /// </summary>
[EditorOrder(1120), DefaultValue(4), Limit(1, Model.MaxLODs), EditorDisplay("Level Of Detail", "LOD Count"), Tooltip("The amount of LODs to include in the model (all reaming ones starting from Base LOD will be generated).")] [EditorOrder(1120), DefaultValue(4), Limit(1, Model.MaxLODs), EditorDisplay("Level Of Detail", "LOD Count"), Tooltip("The amount of LODs to include in the model (all remaining ones starting from Base LOD will be generated).")]
public int LODCount { get; set; } = 4; public int LODCount { get; set; } = 4;
/// <summary> /// <summary>

View File

@@ -64,7 +64,7 @@ namespace FlaxEditor.GUI.Docking
for (int i = 0; i < childPanels.Length; i++) for (int i = 0; i < childPanels.Length; i++)
childPanels[i].Dispose(); childPanels[i].Dispose();
// Delete reaming controls (except tabs proxy) // Delete remaining controls (except tabs proxy)
if (TabsProxy != null) if (TabsProxy != null)
TabsProxy.Parent = null; TabsProxy.Parent = null;
DisposeChildren(); DisposeChildren();

View File

@@ -74,7 +74,7 @@ namespace FlaxEditor.History
_reverseActions.PushBack(reverse[i]); _reverseActions.PushBack(reverse[i]);
} }
// Cleanup reaming actions // Cleanup remaining actions
for (int i = _historyActionsLimit; i < history.Length; i++) for (int i = _historyActionsLimit; i < history.Length; i++)
{ {
history[i].Dispose(); history[i].Dispose();

View File

@@ -567,7 +567,7 @@ bool ScriptsBuilderService::Init()
LOG(Warning, "Missing EditorTarget property in opened project, using deducted target name {0}", Editor::Project->EditorTarget); LOG(Warning, "Missing EditorTarget property in opened project, using deducted target name {0}", Editor::Project->EditorTarget);
} }
// Remove any reaming files from previous Editor run hot-reloads // Remove any remaining files from previous Editor run hot-reloads
const Char *target, *platform, *architecture, *configuration; const Char *target, *platform, *architecture, *configuration;
ScriptsBuilder::GetBinariesConfiguration(target, platform, architecture, configuration); ScriptsBuilder::GetBinariesConfiguration(target, platform, architecture, configuration);
if (target) if (target)

View File

@@ -115,7 +115,7 @@ namespace FlaxEditor.Windows
{ {
var thirdPartyPanel = new Panel(ScrollBars.Vertical) var thirdPartyPanel = new Panel(ScrollBars.Vertical)
{ {
Bounds = new Rectangle(0, topParentControl.Bottom + 4, Width, Height - topParentControl.Bottom - 24), Bounds = new Rectangle(4, topParentControl.Bottom + 4, Width - 8, Height - topParentControl.Bottom - 24),
Parent = this Parent = this
}; };
var thirdPartyEntries = new[] var thirdPartyEntries = new[]

View File

@@ -490,7 +490,7 @@ namespace FlaxEditor.Windows.Assets
} }
if (_player.IsStopped || _player.Time >= _options.EndTime) if (_player.IsStopped || _player.Time >= _options.EndTime)
{ {
// End rendering but perform reaming copies of the staging textures so all data is captured (from GPU to CPU) // End rendering but perform remaining copies of the staging textures so all data is captured (from GPU to CPU)
_state = States.Staging; _state = States.Staging;
break; break;
} }

View File

@@ -222,7 +222,7 @@ namespace FlaxEditor.Windows
private void PlayingStateOnSceneDuplicating() private void PlayingStateOnSceneDuplicating()
{ {
// Remove reaming GUI controls so loaded scene can add own GUI // Remove remaining GUI controls so loaded scene can add own GUI
//_guiRoot.DisposeChildren(); //_guiRoot.DisposeChildren();
// Show GUI // Show GUI
@@ -231,7 +231,7 @@ namespace FlaxEditor.Windows
private void PlayingStateOnSceneRestored() private void PlayingStateOnSceneRestored()
{ {
// Remove reaming GUI controls so loaded scene can add own GUI // Remove remaining GUI controls so loaded scene can add own GUI
//_guiRoot.DisposeChildren(); //_guiRoot.DisposeChildren();
// Hide GUI // Hide GUI

View File

@@ -208,7 +208,7 @@ void ContentLoadingManagerService::Dispose()
MainThread = nullptr; MainThread = nullptr;
ThisThread = nullptr; ThisThread = nullptr;
// Cancel all reaming tasks (no chance to execute them) // Cancel all remaining tasks (no chance to execute them)
Tasks.CancelAll(); Tasks.CancelAll();
} }

View File

@@ -51,18 +51,18 @@ bool Log::Logger::Init()
{ {
// Check if there are any files to delete // Check if there are any files to delete
const int32 maxLogFiles = 20; const int32 maxLogFiles = 20;
int32 reaming = oldLogs.Count() - maxLogFiles + 1; int32 remaining = oldLogs.Count() - maxLogFiles + 1;
if (reaming > 0) if (remaining > 0)
{ {
Sorting::QuickSort(oldLogs.Get(), oldLogs.Count()); Sorting::QuickSort(oldLogs.Get(), oldLogs.Count());
// Delete the oldest logs // Delete the oldest logs
int32 i = 0; int32 i = 0;
while (reaming > 0) while (remaining > 0)
{ {
FileSystem::DeleteFile(oldLogs[i++]); FileSystem::DeleteFile(oldLogs[i++]);
filesDeleted++; filesDeleted++;
reaming--; remaining--;
} }
} }
} }

View File

@@ -193,7 +193,7 @@ void ObjectsRemovalServiceService::Dispose()
// Collect new objects // Collect new objects
ObjectsRemovalService::Flush(); ObjectsRemovalService::Flush();
// Delete all reaming objects // Delete all remaining objects
{ {
ScopeLock lock(PoolLocker); ScopeLock lock(PoolLocker);
for (auto i = Pool.Begin(); i.IsNotEnd(); ++i) for (auto i = Pool.Begin(); i.IsNotEnd(); ++i)

View File

@@ -463,7 +463,7 @@ void Engine::OnExit()
LOG_FLUSH(); LOG_FLUSH();
// Kill all reaming threads // Kill all remaining threads
ThreadRegistry::KillEmAll(); ThreadRegistry::KillEmAll();
// Cleanup // Cleanup

View File

@@ -216,7 +216,7 @@ uint64 GPUContextDX12::Execute(bool waitForCompletion)
ASSERT(_currentAllocator != nullptr); ASSERT(_currentAllocator != nullptr);
auto queue = _device->GetCommandQueue(); auto queue = _device->GetCommandQueue();
// Flush reaming and buffered commands // Flush remaining and buffered commands
FlushState(); FlushState();
_currentState = nullptr; _currentState = nullptr;

View File

@@ -8,7 +8,7 @@
#include "Engine/Platform/Win32/IncludeWindowsHeaders.h" #include "Engine/Platform/Win32/IncludeWindowsHeaders.h"
#include "Engine/Platform/Windows/ComPtr.h" #include "Engine/Platform/Windows/ComPtr.h"
// Helper define to dispose the COM object with reaming references counter checking // Helper define to dispose the COM object with remaining references counter checking
#define DX_SAFE_RELEASE_CHECK(x, refs) if(x) { auto res = (x)->Release(); (x) = nullptr; CHECK(res == refs); } #define DX_SAFE_RELEASE_CHECK(x, refs) if(x) { auto res = (x)->Release(); (x) = nullptr; CHECK(res == refs); }
#endif #endif

View File

@@ -44,7 +44,7 @@ void CmdBufferVulkan::End()
ASSERT(IsOutsideRenderPass()); ASSERT(IsOutsideRenderPass());
#if GPU_ALLOW_PROFILE_EVENTS #if GPU_ALLOW_PROFILE_EVENTS
// End reaming events // End remaining events
while (_eventsBegin--) while (_eventsBegin--)
vkCmdEndDebugUtilsLabelEXT(GetHandle()); vkCmdEndDebugUtilsLabelEXT(GetHandle());
#endif #endif

View File

@@ -1155,7 +1155,7 @@ void GPUContextVulkan::FlushState()
void GPUContextVulkan::Flush() void GPUContextVulkan::Flush()
{ {
// Flush reaming and buffered commands // Flush remaining and buffered commands
FlushState(); FlushState();
_currentState = nullptr; _currentState = nullptr;

View File

@@ -1172,7 +1172,7 @@ void ParticleManagerService::Update()
// Update bounds after first system update // Update bounds after first system update
updateBounds = true; updateBounds = true;
} }
// TODO: if using fixed timestep quantize the dt and accumulate reaming part for the next update? // TODO: if using fixed timestep quantize the dt and accumulate remaining part for the next update?
if (dt <= 1.0f / 240.0f) if (dt <= 1.0f / 240.0f)
continue; continue;
dt *= effect->SimulationSpeed; dt *= effect->SimulationSpeed;

View File

@@ -77,7 +77,7 @@ void WindowsManagerService::Update()
void WindowsManagerService::Dispose() void WindowsManagerService::Dispose()
{ {
// Close reaming windows // Close remaining windows
WindowsManager::WindowsLocker.Lock(); WindowsManager::WindowsLocker.Lock();
auto windows = WindowsManager::Windows; auto windows = WindowsManager::Windows;
for (auto& win : windows) for (auto& win : windows)

View File

@@ -55,7 +55,7 @@ void FontAsset::unload(bool isReloading)
// Ensure to cleanup child font objects // Ensure to cleanup child font objects
if (_fonts.HasItems()) if (_fonts.HasItems())
{ {
LOG(Warning, "Font asset {0} is unloading but has {1} reaming font objects created", ToString(), _fonts.Count()); LOG(Warning, "Font asset {0} is unloading but has {1} remaining font objects created", ToString(), _fonts.Count());
for (auto font : _fonts) for (auto font : _fonts)
{ {
font->_asset = nullptr; font->_asset = nullptr;

View File

@@ -25,7 +25,7 @@ struct RectPack
SizeType Width; SizeType Width;
SizeType Height; SizeType Height;
// The reaming space amount inside this slot (updated on every insertion, initial it equal to width*height). // The remaining space amount inside this slot (updated on every insertion, initial it equal to width*height).
SizeType SpaceLeft; SizeType SpaceLeft;
// True, if slot has been allocated, otherwise it's free. // True, if slot has been allocated, otherwise it's free.