Improve sorting options in the asset library
The reverse sorting options are now integrated in the list of sorting options, making the "Reverse" button unnecessary. This pattern tends to be easier to discover by users. The "Downloads" sorting option was also removed as it's not implemented in the backend.
This commit is contained in:
parent
5323d24fad
commit
a4a0295154
2 changed files with 18 additions and 21 deletions
|
|
@ -190,7 +190,6 @@ class EditorAssetLibrary : public PanelContainer {
|
|||
OptionButton *categories;
|
||||
OptionButton *repository;
|
||||
OptionButton *sort;
|
||||
ToolButton *reverse;
|
||||
Button *search;
|
||||
HBoxContainer *error_hb;
|
||||
TextureRect *error_tr;
|
||||
|
|
@ -216,10 +215,12 @@ class EditorAssetLibrary : public PanelContainer {
|
|||
};
|
||||
|
||||
enum SortOrder {
|
||||
SORT_DOWNLOADS,
|
||||
SORT_NAME,
|
||||
SORT_COST,
|
||||
SORT_UPDATED,
|
||||
SORT_UPDATED_REVERSE,
|
||||
SORT_NAME,
|
||||
SORT_NAME_REVERSE,
|
||||
SORT_COST,
|
||||
SORT_COST_REVERSE,
|
||||
SORT_MAX
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue