Updated Documentation (markdown)

Kevin Harrison 2016-11-15 13:42:57 -05:00
parent 725971d88c
commit 64607f8f2d

@ -178,7 +178,7 @@ If the layout is `'dynamic'`, the row height and columns must be specified. If `
If the layout is `'static'`, there must either be `item_width` and `cols` parameters describing the number of fixed-width columns to divide the row into, or there must be a `sizes` table, which is an array of fixed widths for the columns. If the layout is `'static'`, there must either be `item_width` and `cols` parameters describing the number of fixed-width columns to divide the row into, or there must be a `sizes` table, which is an array of fixed widths for the columns.
Examples: Examples:
``` ```lua
-- Create a row which is 30 pixels high and is divided into 3 equally sized columns. -- Create a row which is 30 pixels high and is divided into 3 equally sized columns.
nk.layout_row('dynamic', 30, 3) nk.layout_row('dynamic', 30, 3)
@ -541,7 +541,7 @@ Reset color styles to their default values.
Load a color table for quick color styling. Load a color table for quick color styling.
Below is the default color table. Custom color tables must provide all of the same fields. Below is the default color table. Custom color tables must provide all of the same fields.
``` ```lua
local color_table = { local color_table = {
['text'] = '#afafaf', ['text'] = '#afafaf',
['window'] = '#2d2d2d', ['window'] = '#2d2d2d',
@ -587,7 +587,7 @@ See [LÖVE Font](https://love2d.org/wiki/Font).
Push any number of [style items](#style-items) onto the style stack. Push any number of [style items](#style-items) onto the style stack.
Example (see [skin.lua](https://github.com/keharriso/love-nuklear/blob/master/example/skin.lua)): Example (see [skin.lua](https://github.com/keharriso/love-nuklear/blob/master/example/skin.lua)):
``` ```lua
nk.style_push { nk.style_push {
['text'] = { ['text'] = {
['color'] = '#000000' ['color'] = '#000000'
@ -608,7 +608,7 @@ nk.style_push {
Pop the most recently pushed style. Pop the most recently pushed style.
### Style Items ### Style Items
``` ```lua
local style = { local style = {
['font'] = Font, ['font'] = Font,
['text'] = { ['text'] = {