mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-28 07:55:59 +00:00
Minor subset improvements.
Use latest CCC in build
This commit is contained in:
1 parent
e34189ae9c
commit
60a668aeaa
2 files changed
+12
-5
No files matched your search
@@ -1,5 +1,5 @@
|
||||
mc_version=1.7.10
|
||||
forge_version=10.13.0.1151
|
||||
ccl_version=1.1.1.88
|
||||
ccc_version=1.0.1.6
|
||||
ccc_version=1.0.1.+
|
||||
mod_version=1.0.2
|
||||
@@ -55,8 +55,13 @@ public class SubsetWidget extends Button implements ItemFilterProvider, ItemsLoa
|
||||
SubsetWidget.showOnly(tag);
|
||||
else
|
||||
SubsetWidget.setHidden(tag, button == 1);
|
||||
} else
|
||||
SubsetWidget.setHidden(state.items.get(slot-sorted.size()), button == 1);
|
||||
} else {
|
||||
ItemStack item = state.items.get(slot-sorted.size());
|
||||
if(NEIClientUtils.controlKey())
|
||||
NEIClientUtils.cheatItem(item, button, -1);
|
||||
else
|
||||
SubsetWidget.setHidden(state.items.get(slot-sorted.size()), button == 1);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -280,8 +285,10 @@ public class SubsetWidget extends Button implements ItemFilterProvider, ItemsLoa
|
||||
if(slot.contentHeight() > height)
|
||||
width+=slot.scrollbarDim().width;
|
||||
|
||||
if(pwidth >= 0 ? x+width+pwidth > area.x2() : x-width < area.x1())
|
||||
pwidth*=-1;
|
||||
boolean fitLeft = x-width >= area.x1();
|
||||
boolean fitRight = x+width+pwidth <= area.x2();
|
||||
if(pwidth >= 0 ? !fitRight && fitLeft : !fitLeft)
|
||||
pwidth*=-1;//swap
|
||||
x += pwidth >= 0 ? pwidth : -width;
|
||||
|
||||
slot.setSize(x, y, width, height);
|
||||
|
||||
Reference in new issue
Block a user