Added C# Assets System and Serialization of Script Enabled State #247
|
@ -353,7 +353,7 @@ namespace SHADE
|
||||||
return changed;
|
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
|
// Label
|
||||||
if (!label.empty())
|
if (!label.empty())
|
||||||
|
|
|
@ -299,7 +299,7 @@ namespace SHADE
|
||||||
/// <returns>True if the value was changed.</returns>
|
/// <returns>True if the value was changed.</returns>
|
||||||
static bool InputTextField(const std::string& label, std::string& value, bool* isHovered = nullptr);
|
static bool InputTextField(const std::string& label, std::string& value, bool* isHovered = nullptr);
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Creates a drag field widget for int input.
|
/// Creates a drag field widget for GameObject input.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="label">Label used to identify this widget.</param>
|
/// <param name="label">Label used to identify this widget.</param>
|
||||||
/// <param name="value">Reference to the variable to store the result.</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>
|
/// <returns>True if the value was changed.</returns>
|
||||||
static bool InputGameObjectField(const std::string& label, uint32_t& value, bool* isHovered = nullptr, bool alwaysNull = false);
|
static bool InputGameObjectField(const std::string& label, uint32_t& value, bool* isHovered = nullptr, bool alwaysNull = false);
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
/// Creates a drag field widget for Asset input.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="label"></param>
|
/// <param name="label">Label used to identify this widget.</param>
|
||||||
/// <param name="value"></param>
|
/// <param name="value">Reference to the variable to store the result.</param>
|
||||||
/// <param name="type"></param>
|
/// <param name="isHovered>If set, stores the hover state of this widget.</param>
|
||||||
/// <param name="isHovered"></param>
|
static bool InputAssetField(const std::string& label, AssetID& value, AssetType type, bool* isHovered = nullptr);
|
||||||
/// <param name="alwaysNull"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
static bool InputAssetField(const std::string& label, AssetID& value, AssetType type, bool* isHovered = nullptr, bool alwaysNull = false);
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Creates a combo box for enumeration input.
|
/// Creates a combo box for enumeration input.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue