Updated Documentation (markdown)

Kevin Harrison 2016-11-14 21:23:33 -05:00
parent 1f9f3ea4f3
commit c706549796

@ -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'] = {
}
}
``` ```