dithered skybox

This commit is contained in:
minjaesong
2017-07-16 05:03:04 +09:00
parent 9f56ca2e99
commit 942971f456
11 changed files with 295 additions and 84 deletions

View File

@@ -15,7 +15,7 @@ import net.torvald.terrarum.gamecontroller.KeyToggler
* Created by minjaesong on 15-12-31.
*/
class UIHandler(var UI: UICanvas,
var toggleKey: Int? = null, var toggleButton: Int? = null,
var toggleKeyLiteral: Int? = null, var toggleButtonLiteral: Int? = null,
// UI positions itself? (you must g.flush() yourself after the g.translate(Int, Int))
var customPositioning: Boolean = false, // mainly used by vital meter
var doNotWarnConstant: Boolean = false
@@ -62,6 +62,10 @@ class UIHandler(var UI: UICanvas,
}
private val toggleKey: Int?; get() = toggleKeyLiteral // to support in-screen keybind changing
private val toggleButton: Int?; get() = toggleButtonLiteral // to support in-screen keybind changing
fun update(delta: Float) {
// open/close UI by key pressed
if (toggleKey != null) {