Skip to content

Commit ae28bf9

Browse files
committed
Add "Bottom Left" render direction
1 parent b37f5ef commit ae28bf9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/kotlin/com/lambda/client/module/modules/client/Notifications.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ object Notifications : Module(
4040
private val errorTimeout by setting("Error Timeout", 7000, 1000..10000, 100, { page == Page.TIMEOUT })
4141

4242
enum class RenderLocation(val renderDirection: Int) {
43-
BOTTOM_RIGHT(-1), TOP_RIGHT(1), TOP_LEFT(1)
43+
BOTTOM_RIGHT(-1), BOTTOM_LEFT(-1), TOP_RIGHT(1), TOP_LEFT(1)
4444
}
4545

4646
enum class NotificationMode {
@@ -71,6 +71,7 @@ object Notifications : Module(
7171
GlStateManager.pushMatrix()
7272
when (renderLocation) {
7373
RenderLocation.BOTTOM_RIGHT -> GL11.glTranslatef((scaledResolution.scaledWidth_double - horizontalPadding - 90).toFloat(), (scaledResolution.scaledHeight_double - verticalPadding - notificationHeight).toFloat(), 0f)
74+
RenderLocation.BOTTOM_LEFT -> GL11.glTranslatef(horizontalPadding, (scaledResolution.scaledHeight_double - verticalPadding - notificationHeight).toFloat(), 0f)
7475
RenderLocation.TOP_RIGHT -> GL11.glTranslatef((scaledResolution.scaledWidth_double - horizontalPadding - 90).toFloat(), verticalPadding, 0f)
7576
RenderLocation.TOP_LEFT -> GL11.glTranslatef(horizontalPadding, verticalPadding, 0f)
7677
}

0 commit comments

Comments
 (0)