mirror of
https://gitlab.com/luk3yx/minetest-flow.git
synced 2025-06-16 23:28:01 +02:00
Update documentation (again)
This commit is contained in:
parent
1ff48c0258
commit
d14f7fe796
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -1,4 +1,3 @@
|
||||
.* export-ignore
|
||||
doc export-ignore
|
||||
*.py export-ignore
|
||||
mkdocs.yml export-ignore
|
||||
|
@ -169,7 +169,7 @@ if __name__ == '__main__':
|
||||
elements = fetch_elements()
|
||||
print('Done.')
|
||||
|
||||
with open('doc/elements.md', 'w') as f:
|
||||
with open('elements.md', 'w') as f:
|
||||
f.write('# Auto-generated elements list\n\n')
|
||||
f.write('This is probably broken.')
|
||||
for element_name, variants in elements.items():
|
@ -17,4 +17,4 @@ gui.VBox{
|
||||
## Alternatives
|
||||
|
||||
If you don't want hidden elements to take up any space, see the documentation
|
||||
for [gui.Nil](layout-elements.md#guinil).
|
||||
for [`gui.Nil`](layout-elements.md#guinil).
|
||||
|
@ -1,4 +1,4 @@
|
||||
## Padding, spacing, and backgrounds
|
||||
# Padding, spacing, and backgrounds
|
||||
|
||||
All elements can have a `padding` value, which will add the specified amount of
|
||||
padding around the element. The "root" element of the form (the one returned by
|
||||
|
@ -9,3 +9,7 @@ gui.Image{
|
||||
tooltip = "Air",
|
||||
}
|
||||
```
|
||||
|
||||
There is also a [`gui.Tooltip`](elements.md#guitooltip) element which lets you
|
||||
change the background colour of the tooltip. As with `gui.Style`, it is
|
||||
invisible and won't affect padding.
|
||||
|
Loading…
Reference in New Issue
Block a user