We don't implement the layer stuff for now. Should be fine as is.

This commit is contained in:
Bernhard Bonigl committed 2016-10-16 17:04:57 +02:00
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