Various cleanups related to button locking

* Rename uiBut.lockstr to disabled_info
* Remove unreachable code
* Replace duplicated check with assert
* Replace overly ambitious check with assert
* Add comments
This commit is contained in:
Julian Eisel
2016-09-19 02:25:59 +02:00
parent 976e591e93
commit c2d7d4764e
6 changed files with 14 additions and 29 deletions

View File

@@ -271,7 +271,8 @@ struct uiBut {
uiButToolTipFunc tip_func;
void *tip_argN;
const char *lockstr;
/* info on why button is disabled, displayed in tooltip */
const char *disabled_info;
BIFIconID icon;
char dt; /* drawtype: UI_EMBOSS, UI_EMBOSS_NONE ... etc, copied from the block */