UI hot-reloads if child widgets or stylesheet gets updated
This commit is contained in:
@@ -84,6 +84,11 @@ FileType File::GetFileType() const
|
||||
return FileType::UI;
|
||||
}
|
||||
|
||||
if (ext == ".css")
|
||||
{
|
||||
return FileType::CSS;
|
||||
}
|
||||
|
||||
return FileType::Unkown;
|
||||
}
|
||||
|
||||
@@ -140,6 +145,16 @@ std::string File::GetFileTypeAsString() const
|
||||
return "C# Script";
|
||||
}
|
||||
|
||||
if (ext == ".html")
|
||||
{
|
||||
return "UI Layout";
|
||||
}
|
||||
|
||||
if (ext == ".css")
|
||||
{
|
||||
return "StyleSheet";
|
||||
}
|
||||
|
||||
return "File";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user