diff --git a/README.md b/README.md index f0c848f..fba7c6c 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ WindowBox | GroupBox | Line | Panel #### Basic controls ``` Label | Button | LabelButton | ImageButton | Toggle | ToggleGroup | CheckBox -ComboBox | DropdownBox | TextBox | TextBoxMulti | ValueBox | Spinner | Slider +ComboBox | DropdownBox | TextBox | TextBoxMulti | ValueBox | Spinner | Slider SliderBar | ProgressBar | StatusBar | ScrollBar | ScrollPanel | DummyRec | Grid ``` #### Advance controls @@ -37,19 +37,19 @@ Some additional styles are also provided for convenience, just check [styles dir ![raygui additional styles](images/raygui_style_table_multi.png) -Custom styles can also be created very easily using [rGuiStyler](https://raylibtech.itch.io/rguistyler) tool. +Custom styles can also be created very easily using [rGuiStyler](https://raylibtech.itch.io/rguistyler) tool. Styles can be loaded at runtime using raygui `GuiLoadStyle()` function. Simple and easy-to-use. ![rGuiStyler v3.1](images/rguistyler_v300.png) *rGuiStyler v3.1 - raygui styles editor, useful to create custom styles* - + ## raygui icons -`raygui` supports custom icons provided as an external array of data. To support icons just define `RAYGUI_SUPPORT_ICONS` before including `raygui`. +`raygui` supports custom icons provided as an external array of data. To support icons just define `RAYGUI_SUPPORT_ICONS` before including `raygui`. -A set of custom handcrafted icons is provided in [`ricons`](src/ricons.h). This set of icons can be created and customized using [rGuiIcons](https://raylibtech.itch.io/rguiicons) tool. +A set of custom handcrafted icons is provided in [`ricons`](src/ricons.h). This set of icons can be created and customized using [rGuiIcons](https://raylibtech.itch.io/rguiicons) tool. diff --git a/examples/property_list/property_list.c b/examples/property_list/property_list.c index 48a5b0d..ddb5506 100644 --- a/examples/property_list/property_list.c +++ b/examples/property_list/property_list.c @@ -81,8 +81,8 @@ int main() DrawText(TextFormat("FOCUS:%i | SCROLL:%i | FPS:%i", focus, scroll, GetFPS()), prop[8].value.v2.x, prop[8].value.v2.y, 20, prop[11].value.vcolor); } - EndDrawing(); - //---------------------------------------------------------------------------------- + EndDrawing(); + //---------------------------------------------------------------------------------- } GuiDMSaveProperties("test.props", prop, SIZEOF(prop)); // Save properties to `test.props` file at exit diff --git a/examples/scroll_panel/gui_scroll_panel.c b/examples/scroll_panel/gui_scroll_panel.c index 7d492d0..96c2baf 100644 --- a/examples/scroll_panel/gui_scroll_panel.c +++ b/examples/scroll_panel/gui_scroll_panel.c @@ -13,7 +13,7 @@ * gcc -o $(NAME_PART).exe $(FILE_NAME) -I../../src -lraylib -lopengl32 -lgdi32 -std=c99 * * COMPILATION (Linux - gcc): -* gcc -o $(NAME_PART) $(FILE_NAME) -I../../src -lraylib -std=c99 +* gcc -o $(NAME_PART) $(FILE_NAME) -I../../src -lraylib -std=c99 * * LICENSE: zlib/libpng * diff --git a/examples/text_box_selection/textbox_extended_demo.c b/examples/text_box_selection/textbox_extended_demo.c index 1bd06ae..f742ce8 100644 --- a/examples/text_box_selection/textbox_extended_demo.c +++ b/examples/text_box_selection/textbox_extended_demo.c @@ -13,7 +13,7 @@ * gcc -o $(NAME_PART).exe $(FILE_NAME) -I../../src -lraylib -lopengl32 -lgdi32 -std=c99 * * COMPILATION (Linux - gcc): -* gcc -o $(NAME_PART) $(FILE_NAME) -I../../src -lraylib -std=c99 +* gcc -o $(NAME_PART) $(FILE_NAME) -I../../src -lraylib -std=c99 * * LICENSE: zlib/libpng * @@ -87,9 +87,9 @@ int main(int argc, char **argv) InitWindow(screenWidth, screenHeight, "raygui - gui textboxBounds extended demo"); // Generate a checked checked used by the color buttons - Image img = GenImageChecked(26, 26, 5, 5, RAYWHITE, DARKGRAY); - checked = LoadTextureFromImage(img); - UnloadImage(img); + Image img = GenImageChecked(26, 26, 5, 5, RAYWHITE, DARKGRAY); + checked = LoadTextureFromImage(img); + UnloadImage(img); Font font = { 0 }; int fontSize = GuiGetStyle(DEFAULT, TEXT_SIZE); @@ -185,8 +185,8 @@ int main(int argc, char **argv) // Draw //---------------------------------------------------------------------------------- - BeginDrawing(); - + BeginDrawing(); + ClearBackground(RAYWHITE); // Draw textboxes extended @@ -288,7 +288,7 @@ int main(int argc, char **argv) */ //--------------------------------------------------------------------------------------- - EndDrawing(); + EndDrawing(); //---------------------------------------------------------------------------------- } diff --git a/examples/text_editor/text_editor.c b/examples/text_editor/text_editor.c index 3bb10c1..6bde712 100644 --- a/examples/text_editor/text_editor.c +++ b/examples/text_editor/text_editor.c @@ -94,8 +94,8 @@ int main(int argc, char **argv) // Draw //---------------------------------------------------------------------------------- - BeginDrawing(); - + BeginDrawing(); + ClearBackground(RAYWHITE); // Draw textboxes extended @@ -104,7 +104,7 @@ int main(int argc, char **argv) if (GuiTextEditor((Rectangle){ 420, 20, 360, 410 }, text02, strlen(text02), textEditor02EditMode)) textEditor02EditMode = !textEditor02EditMode; //--------------------------------------------------------------------------------------- - EndDrawing(); + EndDrawing(); //---------------------------------------------------------------------------------- } diff --git a/src/ricons.h b/src/ricons.h index 6befa36..121cf54 100644 --- a/src/ricons.h +++ b/src/ricons.h @@ -22,7 +22,7 @@ // Icons data is defined by bit array (every bit represents one pixel) // Those arrays are stored as unsigned int data arrays, so every array // element defines 32 pixels (bits) of information -// Number of elemens depend on RICON_SIZE (by default 16x16 pixels) +// Number of elemens depend on RICON_SIZE (by default 16x16 pixels) #define RICON_DATA_ELEMENTS (RICON_SIZE*RICON_SIZE/32) //----------------------------------------------------------------------------------