mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 02:54:04 +09:00
Binary file not shown.
@@ -3,7 +3,6 @@ package net.torvald.terrarum.modulebasegame.ui
|
|||||||
import com.badlogic.gdx.Gdx
|
import com.badlogic.gdx.Gdx
|
||||||
import com.badlogic.gdx.graphics.Camera
|
import com.badlogic.gdx.graphics.Camera
|
||||||
import com.badlogic.gdx.graphics.Color
|
import com.badlogic.gdx.graphics.Color
|
||||||
import com.badlogic.gdx.graphics.GL20
|
|
||||||
import com.badlogic.gdx.graphics.g2d.SpriteBatch
|
import com.badlogic.gdx.graphics.g2d.SpriteBatch
|
||||||
import com.badlogic.gdx.graphics.glutils.ShapeRenderer
|
import com.badlogic.gdx.graphics.glutils.ShapeRenderer
|
||||||
import net.torvald.terrarum.*
|
import net.torvald.terrarum.*
|
||||||
@@ -256,7 +255,8 @@ class UIInventoryFull(
|
|||||||
|
|
||||||
// background fill
|
// background fill
|
||||||
batch.end()
|
batch.end()
|
||||||
Gdx.gl.glEnable(GL20.GL_BLEND) // ending the batch disables blend
|
gdxSetBlendNormal()
|
||||||
|
|
||||||
|
|
||||||
val gradTopStart = (Terrarum.HEIGHT - internalHeight).div(2).toFloat()
|
val gradTopStart = (Terrarum.HEIGHT - internalHeight).div(2).toFloat()
|
||||||
val gradBottomEnd = Terrarum.HEIGHT - gradTopStart
|
val gradBottomEnd = Terrarum.HEIGHT - gradTopStart
|
||||||
|
|||||||
@@ -569,7 +569,7 @@ object LightmapRenderer {
|
|||||||
private val inNoopMaskp = Point2i(0,0)
|
private val inNoopMaskp = Point2i(0,0)
|
||||||
|
|
||||||
private fun inNoopMask(x: Int, y: Int): Boolean {
|
private fun inNoopMask(x: Int, y: Int): Boolean {
|
||||||
// TODO: digitise your note of the idea of No-op Mask (date unknown)
|
// TODO: digitise your note of the idea of No-op Mask (date unknown, prob before 2017-03-17)
|
||||||
if (x in for_x_start..for_x_end) {
|
if (x in for_x_start..for_x_end) {
|
||||||
// if it's in the top flange
|
// if it's in the top flange
|
||||||
inNoopMaskp.set(x, for_y_start)
|
inNoopMaskp.set(x, for_y_start)
|
||||||
|
|||||||
Reference in New Issue
Block a user