glava-config widget generation (incomplete)

This commit is contained in:
Jarcode
2019-09-07 02:32:21 -07:00
parent 4bfbc859f8
commit 90d275f2cd
8 changed files with 901 additions and 84 deletions

40
glava-config/mappings.lua Normal file
View File

@@ -0,0 +1,40 @@
return {
["rc.glsl"] = {
name = "Global Options",
{
"request:mod",
field_type = "string",
field_attrs = {
entries = glava.module_list
},
description = "Visualizer module"
},
{
"request:fakeident",
field_type = "ident",
description = "Some identifier"
},
{
"request:fakefloat",
field_type = "float",
description = "Some Float"
},
{
"request:setbg",
field_type = "color",
field_attrs = { alpha = true },
description = "Window background color"
},
"advanced",
{
"request:setversion",
field_type = { "int", "int" },
field_attrs = {
frame_label = "Version",
{ label = "Major:", lower = 0, upper = 10, width = 2 },
{ label = "Minor:", lower = 0, upper = 10, width = 2 }
},
description = "OpenGL context version request"
}
}
}