Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a05267a566 | ||
|
|
dd3413dcaa |
No files matched your search
@@ -50,6 +50,10 @@ public class BlockHint extends Block {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IIcon getIcon(int aSide, int aMeta) {
|
public IIcon getIcon(int aSide, int aMeta) {
|
||||||
|
// For numbered hints, top and bottom are blank
|
||||||
|
if (aSide <= 1 && aMeta <= 11) {
|
||||||
|
return hint[13];
|
||||||
|
}
|
||||||
return hint[aMeta];
|
return hint[aMeta];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -298,11 +298,10 @@ public class GuiScreenConfigureChannels extends GuiContainer implements IGuiScre
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (key.textboxKeyTyped(aChar, aKey)) {
|
if (key.textboxKeyTyped(aChar, aKey) || value.textboxKeyTyped(aChar, aKey)) {
|
||||||
updateButtons();
|
updateButtons();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (value.textboxKeyTyped(aChar, aKey)) return;
|
|
||||||
super.keyTyped(aChar, aKey);
|
super.keyTyped(aChar, aKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -313,7 +312,8 @@ public class GuiScreenConfigureChannels extends GuiContainer implements IGuiScre
|
|||||||
boolean existing = !StringUtils.isEmpty(keyText) && ChannelDataAccessor.hasSubChannel(trigger, keyText);
|
boolean existing = !StringUtils.isEmpty(keyText) && ChannelDataAccessor.hasSubChannel(trigger, keyText);
|
||||||
getButtonList().get(ADD_BTN).displayString = existing ? I18n.format(I18N_PREFIX + "set")
|
getButtonList().get(ADD_BTN).displayString = existing ? I18n.format(I18N_PREFIX + "set")
|
||||||
: I18n.format(I18N_PREFIX + "add");
|
: I18n.format(I18N_PREFIX + "add");
|
||||||
getButtonList().get(ADD_BTN).enabled = !StringUtils.isBlank(value.getText())
|
getButtonList().get(ADD_BTN).enabled = !StringUtils.isBlank(key.getText())
|
||||||
|
&& !StringUtils.isBlank(value.getText())
|
||||||
&& Integer.parseInt(value.getText()) > 0;
|
&& Integer.parseInt(value.getText()) > 0;
|
||||||
getButtonList().get(UNSET_BTN).enabled = existing && !StringUtils.isBlank(value.getText());
|
getButtonList().get(UNSET_BTN).enabled = existing && !StringUtils.isBlank(value.getText());
|
||||||
|
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 273 B After Width: | Height: | Size: 176 B |
|
Before Width: | Height: | Size: 279 B After Width: | Height: | Size: 208 B |
|
Before Width: | Height: | Size: 296 B After Width: | Height: | Size: 212 B |
|
Before Width: | Height: | Size: 301 B After Width: | Height: | Size: 234 B |
|
Before Width: | Height: | Size: 282 B After Width: | Height: | Size: 196 B |
|
Before Width: | Height: | Size: 281 B After Width: | Height: | Size: 186 B |
|
Before Width: | Height: | Size: 285 B After Width: | Height: | Size: 186 B |
|
Before Width: | Height: | Size: 289 B After Width: | Height: | Size: 204 B |
|
Before Width: | Height: | Size: 293 B After Width: | Height: | Size: 184 B |
|
Before Width: | Height: | Size: 295 B After Width: | Height: | Size: 198 B |
|
Before Width: | Height: | Size: 296 B After Width: | Height: | Size: 204 B |
|
Before Width: | Height: | Size: 297 B After Width: | Height: | Size: 225 B |
|
Before Width: | Height: | Size: 255 B After Width: | Height: | Size: 133 B |
|
Before Width: | Height: | Size: 301 B After Width: | Height: | Size: 183 B |
|
Before Width: | Height: | Size: 306 B After Width: | Height: | Size: 197 B |
|
Before Width: | Height: | Size: 281 B After Width: | Height: | Size: 164 B |