Work on a seeecret project
This commit is contained in:
parent
97b90eaf63
commit
6e4de4f6e9
58 changed files with 3504 additions and 42 deletions
|
@ -0,0 +1,23 @@
|
|||
package WayofTime.alchemicalWizardry.client.book.pages;
|
||||
|
||||
import org.w3c.dom.Element;
|
||||
import org.w3c.dom.NodeList;
|
||||
|
||||
public class TextPage extends BookPage
|
||||
{
|
||||
String text;
|
||||
|
||||
@Override
|
||||
public void readPageFromXML (Element element)
|
||||
{
|
||||
NodeList nodes = element.getElementsByTagName("text");
|
||||
if (nodes != null)
|
||||
text = nodes.item(0).getTextContent();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void renderContentLayer (int localWidth, int localHeight)
|
||||
{
|
||||
manual.fonts.drawSplitString(text, localWidth, localHeight, 178, 0);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue