(boolean b0)
| 100 | } |
| 101 | |
| 102 | @Override |
| 103 | public void setEnabled(boolean b0) { |
| 104 | if (isEnabled() == b0) { return; } |
| 105 | super.setEnabled(b0); |
| 106 | |
| 107 | if (b0) { |
| 108 | resetImg(); |
| 109 | } |
| 110 | else { |
| 111 | imgL = FSkinImage.BTN_DISABLED_LEFT; |
| 112 | imgM = FSkinImage.BTN_DISABLED_CENTER; |
| 113 | imgR = FSkinImage.BTN_DISABLED_RIGHT; |
| 114 | if (Forge.isMobileAdventureMode) { |
| 115 | imgL = FSkinImage.ADV_BTN_DISABLED_LEFT; |
| 116 | imgM = FSkinImage.ADV_BTN_DISABLED_CENTER; |
| 117 | imgR = FSkinImage.ADV_BTN_DISABLED_RIGHT; |
| 118 | } else if (hdbuttonskin()) { |
| 119 | imgL = FSkinImage.HDBTN_DISABLED_LEFT; |
| 120 | imgM = FSkinImage.HDBTN_DISABLED_CENTER; |
| 121 | imgR = FSkinImage.HDBTN_DISABLED_RIGHT; |
| 122 | } else { |
| 123 | imgL = FSkinImage.BTN_DISABLED_LEFT; |
| 124 | imgM = FSkinImage.BTN_DISABLED_CENTER; |
| 125 | imgR = FSkinImage.BTN_DISABLED_RIGHT; |
| 126 | } |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | /** |
| 131 | * Button toggle state, for a "permanently pressed" functionality, e.g. as a tab. |
no test coverage detected