-
-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recap on the latest raygui changes #29
Comments
Hi @raysan5, here are my thoughts on this
|
Hi @Demizdor! Actually,
Also, current implementation could be extended to support icons as codepoints (requiring a font including those icons) and also allowing users to create they own |
Hey, thanks for writing such a detailed response, i appreciate it. Seems you thought very hard about all of this. Good job! |
Added SOL notes on the main description. |
In the past weeks raylib has changed a lot, just open this issue to recap all library changes and open possible discussion points on library improvements.
rIcons
, a custom set of simple pixelart icons: Now all text placed in any raygui control can be prefixed with a custom icon just defining its id number (#027#
). This improves a lot raylib visuals for tools development.TEXT_ALIGNMENT
. Text alignment also considersrIcons
.state
was the same, the only change was control color, so, drawing has been simplified by directly choosing drawing color in function ofstate
. More than 400 code lines have been removed.GuiScrollBar()
and implemented it inGuiScrollPanel()
andGuiListView()
. Thanks to @Demizdor for his work on this improvement.During this big changes process, some issues have been detected and some questions arise:
GuiImageButton()
, do we really need this function? It could seem to be useful but it adds additional dependencies to textures drawing... actually, I never used it. Now with therIcons
addition maybe it could be removed.SOL: Keep it for the moment.
GuiCheckBox()
, how text alignment support should be applied to this specific control? Now text is just drawn after the control.SOL: Use text alignment to place text to left or right of the control.
GuiSlider()
,GuiSliderBar()
,GuiProgressBar()
, On this controls, text is not part of the control bounds, it's just appended before or after the control; how text alignment should work? Also, what about the infamousshowValue
parameter? I don't like it, it neither gives margin for value formating... Those functions could require some redesign.SOL: Functions redesignedm
showValue
removed, added two text parameter to functions for custom left and right control text.GuiTextBox()
,GuiTextBoxMulti()
, those ones need some improvements, as stated in issue GuiTextBoxMulti() missing features #24. Probably they can use directly the new text-rectangle-drawing functionality available on raylib.SOL:
GuiTextBoxMulti()
now usesDrawTextRec()
.GuiValueBox()
,GuiSpinner()
, maybe those functions could use directlyGuiTextBox()
or some base function common to all text-drawing-in-rectangle functions.SOL: They already use
GuiTextBox()
.GuiListViewEx()
, it depends onGuiListElement()
and it's ugly... maybe it should be redesigned... Seem quite difficult to accomodate all control possibilities.SOL:
GuiListElement()
has been removed,GuiListViewEx()
andGuiComboBox()
have been redesigned from scratch.Those are just some points, I'll update this list as required...
Also, if someone is working/testing/playing with
raygui
, feedback is very welcomed.The text was updated successfully, but these errors were encountered: