mirror of
https://github.com/keharriso/love-nuklear.git
synced 2025-09-10 16:17:47 -04:00
Updated Documentation (markdown)
parent
725971d88c
commit
64607f8f2d
1 changed files with 4 additions and 4 deletions
|
@ -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.
|
||||
|
||||
Examples:
|
||||
```
|
||||
```lua
|
||||
-- Create a row which is 30 pixels high and is divided into 3 equally sized columns.
|
||||
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.
|
||||
|
||||
Below is the default color table. Custom color tables must provide all of the same fields.
|
||||
```
|
||||
```lua
|
||||
local color_table = {
|
||||
['text'] = '#afafaf',
|
||||
['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.
|
||||
|
||||
Example (see [skin.lua](https://github.com/keharriso/love-nuklear/blob/master/example/skin.lua)):
|
||||
```
|
||||
```lua
|
||||
nk.style_push {
|
||||
['text'] = {
|
||||
['color'] = '#000000'
|
||||
|
@ -608,7 +608,7 @@ nk.style_push {
|
|||
Pop the most recently pushed style.
|
||||
|
||||
### Style Items
|
||||
```
|
||||
```lua
|
||||
local style = {
|
||||
['font'] = Font,
|
||||
['text'] = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue