1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Sort and group theme properties in docs, improve formatting for theme and enums

This commit is contained in:
Yuri Sizov
2021-12-01 21:02:20 +03:00
parent e223a9c129
commit 397e56964d
33 changed files with 672 additions and 631 deletions

View File

@@ -135,7 +135,11 @@ public:
String description;
String default_value;
bool operator<(const ThemeItemDoc &p_theme_item) const {
return name < p_theme_item.name;
// First sort by the data type, then by name.
if (data_type == p_theme_item.data_type) {
return name < p_theme_item.name;
}
return data_type < p_theme_item.data_type;
}
};