mirror of
https://github.com/keharriso/love-nuklear.git
synced 2025-09-11 00:27:48 -04:00
Updated Documentation (markdown)
parent
1f9f3ea4f3
commit
c706549796
1 changed files with 55 additions and 1 deletions
|
@ -345,7 +345,7 @@ End the current menu. Always call this at the end of any open menu.
|
||||||
#### nk.label(text)
|
#### nk.label(text)
|
||||||
#### nk.label(text, align/'wrap')
|
#### nk.label(text, align/'wrap')
|
||||||
#### nk.label(text, align/'wrap', color)
|
#### nk.label(text, align/'wrap', color)
|
||||||
Show a text string. Optionally specify an alignment and/or color.
|
Show a text string. Optionally specify an alignment and/or [color](#colors).
|
||||||
|
|
||||||
#### nk.image(img)
|
#### nk.image(img)
|
||||||
Show an image.
|
Show an image.
|
||||||
|
@ -578,5 +578,59 @@ local color_table = {
|
||||||
|
|
||||||
For finer-grained control over styles, including custom image-based skinning, Nuklear provides the following style items:
|
For finer-grained control over styles, including custom image-based skinning, Nuklear provides the following style items:
|
||||||
```
|
```
|
||||||
|
local style = {
|
||||||
|
['font'] = <Font>,
|
||||||
|
['text'] = {
|
||||||
|
['color'] = <color>,
|
||||||
|
|
||||||
|
},
|
||||||
|
['button'] = {
|
||||||
|
|
||||||
|
},
|
||||||
|
['contextual button'] = {
|
||||||
|
|
||||||
|
},
|
||||||
|
['menu button'] = {
|
||||||
|
|
||||||
|
},
|
||||||
|
['option'] = {
|
||||||
|
|
||||||
|
},
|
||||||
|
['checkbox'] = {
|
||||||
|
|
||||||
|
},
|
||||||
|
['selectable'] = {
|
||||||
|
|
||||||
|
},
|
||||||
|
['slider'] = {
|
||||||
|
|
||||||
|
},
|
||||||
|
['progress'] = {
|
||||||
|
|
||||||
|
},
|
||||||
|
['property'] = {
|
||||||
|
|
||||||
|
},
|
||||||
|
['edit'] = {
|
||||||
|
|
||||||
|
},
|
||||||
|
['chart'] = {
|
||||||
|
|
||||||
|
},
|
||||||
|
['scrollh'] = {
|
||||||
|
|
||||||
|
},
|
||||||
|
['scrollv'] = {
|
||||||
|
|
||||||
|
},
|
||||||
|
['tab'] = {
|
||||||
|
|
||||||
|
},
|
||||||
|
['combo'] = {
|
||||||
|
|
||||||
|
},
|
||||||
|
['window'] = {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
```
|
```
|
Loading…
Add table
Add a link
Reference in a new issue