Fixed missing comments for SHEditorUI

This commit is contained in:
Kah Wei 2022-11-22 18:17:24 +08:00
parent 1bd19b90a8
commit 9964d5dfce
2 changed files with 7 additions and 10 deletions

View File

@ -353,7 +353,7 @@ namespace SHADE
return changed;
}
bool SHEditorUI::InputAssetField(const std::string& label, AssetID& value, AssetType type, bool* isHovered, bool alwaysNull)
bool SHEditorUI::InputAssetField(const std::string& label, AssetID& value, AssetType type, bool* isHovered)
{
// Label
if (!label.empty())

View File

@ -299,7 +299,7 @@ namespace SHADE
/// <returns>True if the value was changed.</returns>
static bool InputTextField(const std::string& label, std::string& value, bool* isHovered = nullptr);
/// <summary>
/// Creates a drag field widget for int input.
/// Creates a drag field widget for GameObject input.
/// </summary>
/// <param name="label">Label used to identify this widget.</param>
/// <param name="value">Reference to the variable to store the result.</param>
@ -311,15 +311,12 @@ namespace SHADE
/// <returns>True if the value was changed.</returns>
static bool InputGameObjectField(const std::string& label, uint32_t& value, bool* isHovered = nullptr, bool alwaysNull = false);
/// <summary>
///
/// Creates a drag field widget for Asset input.
/// </summary>
/// <param name="label"></param>
/// <param name="value"></param>
/// <param name="type"></param>
/// <param name="isHovered"></param>
/// <param name="alwaysNull"></param>
/// <returns></returns>
static bool InputAssetField(const std::string& label, AssetID& value, AssetType type, bool* isHovered = nullptr, bool alwaysNull = false);
/// <param name="label">Label used to identify this widget.</param>
/// <param name="value">Reference to the variable to store the result.</param>
/// <param name="isHovered>If set, stores the hover state of this widget.</param>
static bool InputAssetField(const std::string& label, AssetID& value, AssetType type, bool* isHovered = nullptr);
/// <summary>
/// Creates a combo box for enumeration input.
/// </summary>