Skip to content

Commit

Permalink
WIP: make the add-on list a widget
Browse files Browse the repository at this point in the history
The purpose of this change is ability to create more dialogs which present
a list of add-ons, such as a GUI2 version of the "Install Dependencies"
dialog.

This change is still highly incomplete. First of all, I disabled inline
install buttons and ability to sort the add-on list. In addition, a lot of
functionality that belongs in the add-on list widget is still in the GUI2
add-on manager instead. It is also notable that the widget relies on
several linked groups being defined in the window.

I plan to finish the transition to the add-on list widget, and address the
problems in the previous paragraph, in the future. The linked group issue
is going to require a lot of work in particular: I plan to either make
linked groups grid-specific instead of window-specific (like they are now)
or allow widgets to inject linked groups to the containing window. Either
way, I'm going to change the operation of GUI2 fairly deeply.
  • Loading branch information
jyrkive committed Jan 21, 2017
1 parent a6ba51f commit dc71d9d
Show file tree
Hide file tree
Showing 9 changed files with 878 additions and 546 deletions.
31 changes: 31 additions & 0 deletions data/gui/schema.cfg
Expand Up @@ -593,6 +593,21 @@
name="gui"
min="0"
max="1"
[tag]
name="addon_list_definition"
min="0"
max="-1"
super="generic/widget_definition"
[tag]
name="resolution"
min="0"
max="-1"
super="generic/widget_definition/resolution"
[link]
name="gui/window/resolution/grid"
[/link]
[/tag]
[/tag]
[tag]
name="button_definition"
min="0"
Expand Down Expand Up @@ -1451,6 +1466,22 @@
name="column"
min="0"
max="-1"
[tag]
name="addon_list"
min="0"
max="-1"
super="generic/widget_instance"
[key]
name="install_status_visibility"
type="string"
default="visible"
[/key]
[key]
name="install_buttons_visibility"
type="string"
default="invisible"
[/key]
[/tag]
[tag]
name="button"
min="0"
Expand Down

0 comments on commit dc71d9d

Please sign in to comment.