mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-20 12:09:44 +00:00
We don't implement the layer stuff for now. Should be fine as is.
This commit is contained in:
1 parent
d200a1405c
commit
1843def19d
2 files changed
+7
-7
No files matched your search
@@ -71,7 +71,7 @@ public class ContentStructure extends PageContent {
|
||||
if(size != null && size.length == 3 && structure != null && structure.length > 0) {
|
||||
boolean showButtons = size[1] > 1;
|
||||
if(showButtons) {
|
||||
structureSizeX -= GuiArrow.ArrowType.REFRESH.w;
|
||||
//structureSizeX -= GuiArrow.ArrowType.REFRESH.w;
|
||||
}
|
||||
ElementStructure elementStructure = new ElementStructure(offset, y, structureSizeX, structureSizeY, size, structure);
|
||||
list.add(elementStructure);
|
||||
@@ -85,11 +85,11 @@ public class ContentStructure extends PageContent {
|
||||
|
||||
int dx = (GuiArrow.ArrowType.REFRESH.w - GuiArrow.ArrowType.UP.w) / 2;
|
||||
|
||||
list.add(new ElementArrow(ElementStructure.BUTTON_ID_LAYER_UP, elementStructure, structureSizeX + offset + dx, midY, GuiArrow.ArrowType.UP, col, colHover));
|
||||
midY += GuiArrow.ArrowType.UP.h + 2;
|
||||
list.add(new ElementArrow(ElementStructure.BUTTON_ID_LAYER_DOWN, elementStructure, structureSizeX + offset + dx, midY, GuiArrow.ArrowType.DOWN, col, colHover));
|
||||
//list.add(new ElementArrow(ElementStructure.BUTTON_ID_LAYER_UP, elementStructure, structureSizeX + offset + dx, midY, GuiArrow.ArrowType.UP, col, colHover));
|
||||
//midY += GuiArrow.ArrowType.UP.h + 2;
|
||||
//list.add(new ElementArrow(ElementStructure.BUTTON_ID_LAYER_DOWN, elementStructure, structureSizeX + offset + dx, midY, GuiArrow.ArrowType.DOWN, col, colHover));
|
||||
|
||||
list.add(new ElementAnimationToggle(ElementStructure.BUTTON_ID_ANIMATE, elementStructure, structureSizeX + offset, 0, GuiArrow.ArrowType.REFRESH, col, colHover, colToggled));
|
||||
list.add(new ElementAnimationToggle(ElementStructure.BUTTON_ID_ANIMATE, elementStructure, GuiBook.PAGE_WIDTH - GuiArrow.ArrowType.REFRESH.w, 0, GuiArrow.ArrowType.REFRESH, col, colHover, colToggled));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -331,8 +331,8 @@ public class ElementStructure extends SizedBookElement implements IButtonClickHa
|
||||
}
|
||||
*/
|
||||
|
||||
public boolean isAnimating() {
|
||||
return canTick;
|
||||
public void changeActiveLayer(int direction) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user