stuff
This commit is contained in:
42
prototypes/examples/buttons.lua
Normal file
42
prototypes/examples/buttons.lua
Normal file
@@ -0,0 +1,42 @@
|
||||
local _ = {
|
||||
text = "click me"
|
||||
}
|
||||
_ = {
|
||||
padding = 3,
|
||||
text = "button",
|
||||
background = {
|
||||
0,
|
||||
255,
|
||||
255,
|
||||
255
|
||||
},
|
||||
color = {
|
||||
255,
|
||||
255,
|
||||
255,
|
||||
255
|
||||
}
|
||||
}
|
||||
_ = {
|
||||
padding = 8,
|
||||
text = "+",
|
||||
background = {
|
||||
0,
|
||||
255,
|
||||
255,
|
||||
255
|
||||
},
|
||||
color = {
|
||||
255,
|
||||
255,
|
||||
255,
|
||||
255
|
||||
},
|
||||
round = true,
|
||||
round = 5
|
||||
}
|
||||
return {
|
||||
background = some_image,
|
||||
clicked = function(btn, x, y) end,
|
||||
hovered = function(x, y) end
|
||||
}
|
Reference in New Issue
Block a user