still working on the <a> tag to work

This commit is contained in:
minjaesong
2024-05-17 23:59:11 +09:00
parent 297846f9ef
commit 02d1a4f5f7
3 changed files with 30 additions and 29 deletions

View File

@@ -112,16 +112,24 @@ class BTeXTest : ApplicationAdapter() {
viewer = BTeXDocViewer(document)
}
else {
batch.inUse {
batch.draw(bg, 0f, 0f)
viewer.render(batch, 640f, drawY.toFloat())
if (document.isFinalised || document.fromArchive) {
batch.inUse {
batch.draw(bg, 0f, 0f)
viewer.render(batch, 640f, drawY.toFloat())
batch.color = Color.WHITE
val pageText = "${viewer.currentPageStr()}/${viewer.pageCount}"
Toolkit.drawTextCentered(
batch, TinyAlphNum, pageText,
1280, 0, drawY + document.pageDimensionHeight + 12
)
batch.color = Color.WHITE
val pageText = "${viewer.currentPageStr()}/${viewer.pageCount}"
Toolkit.drawTextCentered(
batch, TinyAlphNum, pageText,
1280, 0, drawY + document.pageDimensionHeight + 12
)
}
}
else {
batch.inUse {
batch.color = Color.WHITE
Toolkit.drawTextCentered(batch, TinyAlphNum, "Rendering...", 1280, 0, 354)
}
}
// control
@@ -135,6 +143,12 @@ class BTeXTest : ApplicationAdapter() {
viewer.gotoLastPage()
}
}
else {
batch.inUse {
batch.color = Color.WHITE
Toolkit.drawTextCentered(batch, TinyAlphNum, "Typesetting...", 1280, 0, 354)
}
}
}