Skip to content

Commit 10cbcb6

Browse files
committed
copyright
1 parent de0424a commit 10cbcb6

File tree

4 files changed

+58
-4
lines changed

4 files changed

+58
-4
lines changed

common/src/main/kotlin/com/lambda/graphics/renderer/gui/font/FontRenderer.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,12 @@ import com.lambda.graphics.buffer.VertexPipeline
2121
import com.lambda.graphics.buffer.vertex.attributes.VertexAttrib
2222
import com.lambda.graphics.buffer.vertex.attributes.VertexMode
2323
import com.lambda.graphics.renderer.gui.font.glyph.GlyphInfo
24+
import com.lambda.graphics.renderer.gui.rect.FilledRectRenderer
2425
import com.lambda.graphics.shader.Shader
26+
import com.lambda.gui.api.component.core.DockingRect
2527
import com.lambda.module.modules.client.LambdaMoji
2628
import com.lambda.module.modules.client.RenderSettings
29+
import com.lambda.util.Mouse
2730
import com.lambda.util.math.Vec2d
2831
import com.lambda.util.math.a
2932
import com.lambda.util.math.setAlpha

common/src/main/kotlin/com/lambda/graphics/renderer/gui/rect/FilledRectRenderer.kt

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
1+
/*
2+
* Copyright 2024 Lambda
3+
*
4+
* This program is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* This program is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU General Public License
15+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16+
*/
17+
118
package com.lambda.graphics.renderer.gui.rect
219

3-
import com.lambda.graphics.buffer.vao.vertex.VertexAttrib
20+
import com.lambda.graphics.buffer.vertex.attributes.VertexAttrib
421
import com.lambda.graphics.shader.Shader
522
import com.lambda.util.math.MathUtils.toInt
623
import com.lambda.util.math.Rect
@@ -58,7 +75,7 @@ class FilledRectRenderer : AbstractRectRenderer(
5875
rightBottom: Color = Color.WHITE,
5976
leftBottom: Color = Color.WHITE,
6077
shade: Boolean = false,
61-
) = vao.use {
78+
) = pipeline.use {
6279
val pos1 = rect.leftTop
6380
val pos2 = rect.rightBottom
6481

common/src/main/kotlin/com/lambda/newgui/ScreenLayout.kt

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/*
2+
* Copyright 2024 Lambda
3+
*
4+
* This program is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* This program is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU General Public License
15+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16+
*/
17+
118
package com.lambda.newgui
219

320
import com.lambda.graphics.RenderMain
@@ -19,4 +36,4 @@ class ScreenLayout : Layout(owner = null, useBatching = false, batchChildren = t
1936
fun gui(name: String, block: ScreenLayout.() -> Unit) =
2037
LambdaScreen(name, ScreenLayout().apply(block))
2138
}
22-
}
39+
}

common/src/main/kotlin/com/lambda/newgui/component/window/WindowContent.kt

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/*
2+
* Copyright 2024 Lambda
3+
*
4+
* This program is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* This program is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU General Public License
15+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16+
*/
17+
118
package com.lambda.newgui.component.window
219

320
import com.lambda.graphics.animation.Animation.Companion.exp
@@ -98,4 +115,4 @@ class WindowContent(
98115
fun Window.windowContent(scrollable: Boolean) =
99116
WindowContent(this, scrollable).apply(children::add)
100117
}
101-
}
118+
}

0 commit comments

Comments
 (0)