From 9964d5dfce3c17199bf2cf62df0c85499ebcff3b Mon Sep 17 00:00:00 2001 From: Kah Wei Date: Tue, 22 Nov 2022 18:17:24 +0800 Subject: [PATCH] Fixed missing comments for SHEditorUI --- SHADE_Engine/src/Editor/SHEditorUI.cpp | 2 +- SHADE_Engine/src/Editor/SHEditorUI.h | 15 ++++++--------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/SHADE_Engine/src/Editor/SHEditorUI.cpp b/SHADE_Engine/src/Editor/SHEditorUI.cpp index caa6e5a2..b9783020 100644 --- a/SHADE_Engine/src/Editor/SHEditorUI.cpp +++ b/SHADE_Engine/src/Editor/SHEditorUI.cpp @@ -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()) diff --git a/SHADE_Engine/src/Editor/SHEditorUI.h b/SHADE_Engine/src/Editor/SHEditorUI.h index ce26b39e..cd87f46b 100644 --- a/SHADE_Engine/src/Editor/SHEditorUI.h +++ b/SHADE_Engine/src/Editor/SHEditorUI.h @@ -299,7 +299,7 @@ namespace SHADE /// True if the value was changed. static bool InputTextField(const std::string& label, std::string& value, bool* isHovered = nullptr); /// - /// Creates a drag field widget for int input. + /// Creates a drag field widget for GameObject input. /// /// Label used to identify this widget. /// Reference to the variable to store the result. @@ -311,15 +311,12 @@ namespace SHADE /// True if the value was changed. static bool InputGameObjectField(const std::string& label, uint32_t& value, bool* isHovered = nullptr, bool alwaysNull = false); /// - /// + /// Creates a drag field widget for Asset input. /// - /// - /// - /// - /// - /// - /// - static bool InputAssetField(const std::string& label, AssetID& value, AssetType type, bool* isHovered = nullptr, bool alwaysNull = false); + /// Label used to identify this widget. + /// Reference to the variable to store the result. + ///