REVIEWED: GuiLabel() to support custom GuiSetState()

This commit is contained in:
Ray
2022-02-19 18:29:44 +01:00
parent 690214dd0a
commit cdb9fc9bff

View File

@ -1602,7 +1602,7 @@ void GuiLabel(Rectangle bounds, const char *text)
// Draw control
//--------------------------------------------------------------------
GuiDrawText(text, GetTextBounds(LABEL, bounds), GuiGetStyle(LABEL, TEXT_ALIGNMENT), Fade(GetColor(GuiGetStyle(LABEL, (state == GUI_STATE_DISABLED)? TEXT_COLOR_DISABLED : TEXT_COLOR_NORMAL)), guiAlpha));
GuiDrawText(text, GetTextBounds(LABEL, bounds), GuiGetStyle(LABEL, TEXT_ALIGNMENT), Fade(GetColor(GuiGetStyle(LABEL, TEXT + (state*3))), guiAlpha));
//--------------------------------------------------------------------
}