Skip to content

Commit

Permalink
We don't implement the layer stuff for now. Should be fine as is.
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Oct 16, 2016
1 parent d200a14 commit 1843def
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Expand Up @@ -71,7 +71,7 @@ public void build(BookData book, ArrayList<BookElement> list, boolean rightSide)
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);
Expand All @@ -85,11 +85,11 @@ public void build(BookData book, ArrayList<BookElement> list, boolean rightSide)

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));
}
}
}
Expand Down
Expand Up @@ -331,8 +331,8 @@ else if(button.id==103)
}
*/

public boolean isAnimating() {
return canTick;
public void changeActiveLayer(int direction) {

}

@Override
Expand Down

0 comments on commit 1843def

Please sign in to comment.