mirror of
https://github.com/raysan5/raygui.git
synced 2025-12-25 10:22:33 -05:00
Updated rfxgen layout, Added style loading function to rguistyler
- Changed rfxgen controls name - Added function to load styles from palettes.png files
This commit is contained in:
@ -440,7 +440,11 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
currentSelectedControl = -1;
|
||||
droppedFiles = GetDroppedFiles(&dropsCount);
|
||||
GuiLoadStyle(droppedFiles[0]);
|
||||
if (IsFileExtension(droppedFiles[0], ".png"))
|
||||
{
|
||||
GuiLoadStyleImage(droppedFiles[0]);
|
||||
}
|
||||
else if (IsFileExtension(droppedFiles[0], ".rgs")) GuiLoadStyle(droppedFiles[0]);
|
||||
for (int i = 0; i < 12; i++) colorBoxValue[i] = GetColor(style[DEFAULT_BORDER_COLOR_NORMAL + i]);
|
||||
ClearDroppedFiles();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user