Added item icon dumping

Changed world overrides to activate on option change, rather than requiring the W button to be clicked
This commit is contained in:
Chicken-Bones committed 2014-12-14 14:32:30 +10:00
1 parent edb6225c43
commit ec56527b74
17 files changed
+367 -81

No files matched your search

@@ -22,7 +22,8 @@ public class OptionTextField extends Option
@Override
public void onTextChange(String oldText) {
if(focused() && isValidValue(text()))
getTag().setValue(text());
if(!defaulting() || !text().equals(getTag().getValue()))//don't override global if text hasn't changed
getTag().setValue(text());
}
@Override
@@ -32,11 +33,8 @@ public class OptionTextField extends Option
@Override
public void setFocus(boolean focus) {
if (focus && defaulting())
return;
if (!focus && !isValidValue(text()))
setText(getTag().getValue());
setText(renderTag().getValue());
focused = focus;
}