comparison third_party/raylib/include/raygui.h @ 116:7bd795bac997

[Postdog] Added scrollable area to inputs and history files, buttons to delete and view.
author June Park <parkjune1995@gmail.com>
date Wed, 07 Jan 2026 04:52:17 -0800
parents e2a73e64e8e6
children 249881ceff7b
comparison
equal deleted inserted replaced
115:96db6c3f38d6 116:7bd795bac997
6586 6586
6587 // Draw control 6587 // Draw control
6588 //-------------------------------------------------------------------- 6588 //--------------------------------------------------------------------
6589 if (state == STATE_PRESSED) 6589 if (state == STATE_PRESSED)
6590 { 6590 {
6591 GuiDrawRectangle(bounds, GuiGetStyle(TEXTBOX, BORDER_WIDTH), GetColor(GuiGetStyle(TEXTBOX, BORDER + (state*3))), GetColor(GuiGetStyle(TEXTBOX, BASE_COLOR_PRESSED))); 6591 GuiDrawRectangle(bounds, 0, GetColor(GuiGetStyle(TEXTBOX, BORDER + (state*3))), GetColor(GuiGetStyle(TEXTBOX, BASE_COLOR_PRESSED)));
6592 } 6592 }
6593 else if (state == STATE_DISABLED) 6593 else if (state == STATE_DISABLED)
6594 { 6594 {
6595 GuiDrawRectangle(bounds, GuiGetStyle(TEXTBOX, BORDER_WIDTH), GetColor(GuiGetStyle(TEXTBOX, BORDER + (state*3))), GetColor(GuiGetStyle(TEXTBOX, BASE_COLOR_DISABLED))); 6595 GuiDrawRectangle(bounds, 0, GetColor(GuiGetStyle(TEXTBOX, BORDER + (state*3))), GetColor(GuiGetStyle(TEXTBOX, BASE_COLOR_DISABLED)));
6596 } 6596 }
6597 else GuiDrawRectangle(bounds, GuiGetStyle(TEXTBOX, BORDER_WIDTH), GetColor(GuiGetStyle(TEXTBOX, BORDER + (state*3))), GetColor(GuiGetStyle(TEXTBOX, BASE_COLOR_PRESSED))); 6597 else GuiDrawRectangle(bounds, 0, GetColor(GuiGetStyle(TEXTBOX, BORDER + (state*3))), GetColor(GuiGetStyle(TEXTBOX, BASE_COLOR_PRESSED)));
6598 6598
6599 // Draw text considering index offset if required 6599 // Draw text considering index offset if required
6600 // NOTE: Text index offset depends on cursor position 6600 // NOTE: Text index offset depends on cursor position
6601 // Set vertical alignment to top for multiline 6601 // Set vertical alignment to top for multiline
6602 int prevVerticalAlignment = GuiGetStyle(DEFAULT, TEXT_ALIGNMENT_VERTICAL); 6602 int prevVerticalAlignment = GuiGetStyle(DEFAULT, TEXT_ALIGNMENT_VERTICAL);