|
@@ -2783,6 +2783,31 @@ return {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ {
|
|
|
+ name = "HorizontalAlign",
|
|
|
+ summary = "Different ways to horizontally align text.",
|
|
|
+ description = "Different ways to horizontally align text when using `lovr.graphics.print`.",
|
|
|
+ key = "HorizontalAlign",
|
|
|
+ module = "graphics",
|
|
|
+ values = {
|
|
|
+ {
|
|
|
+ name = "left",
|
|
|
+ description = "Left aligned lines of text."
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name = "center",
|
|
|
+ description = "Centered aligned lines of text."
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name = "right",
|
|
|
+ description = "Right aligned lines of text."
|
|
|
+ }
|
|
|
+ },
|
|
|
+ related = {
|
|
|
+ "VerticalAlign",
|
|
|
+ "lovr.graphics.print"
|
|
|
+ }
|
|
|
+ },
|
|
|
{
|
|
|
name = "MatrixType",
|
|
|
summary = "Types of matrix on the transform stack.",
|
|
@@ -2886,6 +2911,31 @@ return {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ {
|
|
|
+ name = "VerticalAlign",
|
|
|
+ summary = "Different ways to vertically align text.",
|
|
|
+ description = "Different ways to vertically align text when using `lovr.graphics.print`.",
|
|
|
+ key = "VerticalAlign",
|
|
|
+ module = "graphics",
|
|
|
+ values = {
|
|
|
+ {
|
|
|
+ name = "top",
|
|
|
+ description = "Align the top of the text to the origin."
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name = "middle",
|
|
|
+ description = "Vertically center the text."
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name = "bottom",
|
|
|
+ description = "Align the bottom of the text to the origin."
|
|
|
+ }
|
|
|
+ },
|
|
|
+ related = {
|
|
|
+ "HorizontalAlign",
|
|
|
+ "lovr.graphics.print"
|
|
|
+ }
|
|
|
+ },
|
|
|
{
|
|
|
name = "WrapMode",
|
|
|
summary = "How to wrap Textures.",
|