Formspec: Fix priorities for version < 3 (#9121)
authorSmallJoker <SmallJoker@users.noreply.github.com>
Wed, 20 Nov 2019 18:39:10 +0000 (19:39 +0100)
committerGitHub <noreply@github.com>
Wed, 20 Nov 2019 18:39:10 +0000 (19:39 +0100)
commitb50a166bb05c4ebe1bf757190f4045d57a0d5f20
treeed6190d1fd837f26bb25bb5c246e2c8e3f4303f9
parent60bff1e6cbf56e9a248bc4b0928dfc716cf04131
Formspec: Fix priorities for version < 3 (#9121)

* Formspec: Fix priorities for version < 3

1) Introduce 'priority' to 'FieldSpec'
2) Sort elements based on 'priority'
3) Assign 'name' to the Item Image Button's image to show tooltips again
src/gui/guiFormSpecMenu.cpp
src/gui/guiFormSpecMenu.h