mirror of
https://github.com/raysan5/raygui.git
synced 2026-02-01 03:39:18 -05:00
Some tweaks and removed tabs
This commit is contained in:
@ -735,7 +735,10 @@ RAYGUIDEF bool GuiWindowBox(Rectangle bounds, const char *text)
|
|||||||
Fade(GetColor(GuiGetStyle(DEFAULT, BACKGROUND_COLOR)), guiAlpha));
|
Fade(GetColor(GuiGetStyle(DEFAULT, BACKGROUND_COLOR)), guiAlpha));
|
||||||
|
|
||||||
// Draw window header as status bar
|
// Draw window header as status bar
|
||||||
|
int defaultPadding = GuiGetStyle(DEFAULT, GROUP_PADDING);
|
||||||
|
GuiSetStyle(DEFAULT, INNER_PADDING, 8);
|
||||||
GuiStatusBar(statusBar, text);
|
GuiStatusBar(statusBar, text);
|
||||||
|
GuiSetStyle(DEFAULT, INNER_PADDING, defaultPadding);
|
||||||
|
|
||||||
// Draw window close button
|
// Draw window close button
|
||||||
int buttonBorder = GuiGetStyle(BUTTON, BORDER_WIDTH);
|
int buttonBorder = GuiGetStyle(BUTTON, BORDER_WIDTH);
|
||||||
@ -1607,7 +1610,7 @@ RAYGUIDEF bool GuiTextBoxMulti(Rectangle bounds, char *text, int textSize, bool
|
|||||||
|
|
||||||
bool textHasChange = false;
|
bool textHasChange = false;
|
||||||
int currentLine = 0;
|
int currentLine = 0;
|
||||||
const char *numChars = "";
|
//const char *numChars = NULL;
|
||||||
|
|
||||||
// Security check because font is used directly in this control
|
// Security check because font is used directly in this control
|
||||||
if (guiFont.texture.id == 0) guiFont = GetFontDefault();
|
if (guiFont.texture.id == 0) guiFont = GetFontDefault();
|
||||||
@ -1628,7 +1631,7 @@ RAYGUIDEF bool GuiTextBoxMulti(Rectangle bounds, char *text, int textSize, bool
|
|||||||
int maxWidth = (bounds.width - (GuiGetStyle(TEXTBOX, INNER_PADDING)*2));
|
int maxWidth = (bounds.width - (GuiGetStyle(TEXTBOX, INNER_PADDING)*2));
|
||||||
int maxHeight = (bounds.height - (GuiGetStyle(TEXTBOX, INNER_PADDING)*2));
|
int maxHeight = (bounds.height - (GuiGetStyle(TEXTBOX, INNER_PADDING)*2));
|
||||||
|
|
||||||
numChars = TextFormat("%i/%i", keyCount, textSize - 1);
|
//numChars = TextFormat("%i/%i", keyCount, textSize - 1);
|
||||||
|
|
||||||
// Only allow keys in range [32..125]
|
// Only allow keys in range [32..125]
|
||||||
if (keyCount < (textSize - 1))
|
if (keyCount < (textSize - 1))
|
||||||
|
|||||||
Reference in New Issue
Block a user