diff options
| author | Peter0x44 <[email protected]> | 2024-06-20 23:36:20 +0100 |
|---|---|---|
| committer | Peter0x44 <[email protected]> | 2024-06-20 23:37:50 +0100 |
| commit | 640693705326544bc05437c9788e8d3ef8f4f254 (patch) | |
| tree | 351afc8afa97fa7ebcafb974e72a89f3dd88a168 | |
| parent | 88dc4235569c19dd60650f78b9502c6826e23225 (diff) | |
| download | raylib-DrawTexturePro-interactive-demo-640693705326544bc05437c9788e8d3ef8f4f254.tar.gz raylib-DrawTexturePro-interactive-demo-640693705326544bc05437c9788e8d3ef8f4f254.zip | |
Make GUI look the same as it did before
I'm not sure why, but setting the font and spacing in the rgs wasn't
working. Just do it in code.
| -rw-r--r-- | assets/lavanda.rgs | bin | 4541 -> 0 bytes | |||
| -rw-r--r-- | assets/style_lavanda.rgs | bin | 0 -> 4322 bytes | |||
| -rw-r--r-- | main.c | 4 |
3 files changed, 3 insertions, 1 deletions
diff --git a/assets/lavanda.rgs b/assets/lavanda.rgs Binary files differdeleted file mode 100644 index 3aa3e6f..0000000 --- a/assets/lavanda.rgs +++ /dev/null diff --git a/assets/style_lavanda.rgs b/assets/style_lavanda.rgs Binary files differnew file mode 100644 index 0000000..4b18673 --- /dev/null +++ b/assets/style_lavanda.rgs @@ -116,12 +116,14 @@ int main() { InitWindow(screenWidth, screenHeight, "DrawTexturePro Example"); SetTargetFPS(60); - GuiLoadStyle("assets/lavanda.rgs"); + GuiLoadStyle("assets/style_lavanda.rgs"); sampleSprite = LoadTexture("assets/kenney.png"); sourceCodeFont = LoadFontEx("assets/LiberationMono-Regular.ttf", fontSize, 0, 250); GuiSetFont(sourceCodeFont); + GuiSetStyle(DEFAULT, TEXT_SIZE, fontSize); + GuiSetStyle(DEFAULT, TEXT_SPACING, fontSpacing); for(i = 0; i < 21; i += 1) { codePreviewHighlight[i] = BEIGE; |
