341 lines
16 KiB
C
341 lines
16 KiB
C
|
//////////////////////////////////////////////////////////////////////////////////
|
||
|
// //
|
||
|
// StyleAsCode exporter v1.2 - Style data exported as a values array //
|
||
|
// //
|
||
|
// USAGE: On init call: GuiLoadStyleCyber(); //
|
||
|
// //
|
||
|
// more info and bugs-report: github.com/raysan5/raygui //
|
||
|
// feedback and support: ray[at]raylibtech.com //
|
||
|
// //
|
||
|
// Copyright (c) 2020-2023 raylib technologies (@raylibtech) //
|
||
|
// //
|
||
|
//////////////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
#define CYBER_STYLE_PROPS_COUNT 16
|
||
|
|
||
|
// Custom style name: cyber
|
||
|
static const GuiStyleProp cyberStyleProps[CYBER_STYLE_PROPS_COUNT] = {
|
||
|
{ 0, 0, 0x2f7486ff }, // DEFAULT_BORDER_COLOR_NORMAL
|
||
|
{ 0, 1, 0x024658ff }, // DEFAULT_BASE_COLOR_NORMAL
|
||
|
{ 0, 2, 0x51bfd3ff }, // DEFAULT_TEXT_COLOR_NORMAL
|
||
|
{ 0, 3, 0x82cde0ff }, // DEFAULT_BORDER_COLOR_FOCUSED
|
||
|
{ 0, 4, 0x3299b4ff }, // DEFAULT_BASE_COLOR_FOCUSED
|
||
|
{ 0, 5, 0xb6e1eaff }, // DEFAULT_TEXT_COLOR_FOCUSED
|
||
|
{ 0, 6, 0xeb7630ff }, // DEFAULT_BORDER_COLOR_PRESSED
|
||
|
{ 0, 7, 0xffbc51ff }, // DEFAULT_BASE_COLOR_PRESSED
|
||
|
{ 0, 8, 0xd86f36ff }, // DEFAULT_TEXT_COLOR_PRESSED
|
||
|
{ 0, 9, 0x134b5aff }, // DEFAULT_BORDER_COLOR_DISABLED
|
||
|
{ 0, 10, 0x02313dff }, // DEFAULT_BASE_COLOR_DISABLED
|
||
|
{ 0, 11, 0x17505fff }, // DEFAULT_TEXT_COLOR_DISABLED
|
||
|
{ 0, 16, 0x0000000e }, // DEFAULT_TEXT_SIZE
|
||
|
{ 0, 17, 0x00000000 }, // DEFAULT_TEXT_SPACING
|
||
|
{ 0, 18, 0x81c0d0ff }, // DEFAULT_LINE_COLOR
|
||
|
{ 0, 19, 0x00222bff }, // DEFAULT_BACKGROUND_COLOR
|
||
|
};
|
||
|
|
||
|
// WARNING: This style uses a custom font: (size: 14, spacing: 0)
|
||
|
|
||
|
#define CYBER_COMPRESSED_DATA_SIZE 1104
|
||
|
|
||
|
// Font image pixels data compressed (DEFLATE)
|
||
|
// NOTE: Original pixel data simplified to GRAYSCALE
|
||
|
static unsigned char cyberFontData[CYBER_COMPRESSED_DATA_SIZE] = { 0xed,
|
||
|
0xdd, 0xe1, 0x6e, 0x9b, 0x30, 0x14, 0x05, 0x60, 0xb4, 0xf7, 0x7f, 0xe3, 0x8d, 0x9d, 0x49, 0x95, 0xb6, 0xa9, 0x9b, 0x02,
|
||
|
0xf6, 0xb5, 0x4d, 0x48, 0xfa, 0xed, 0xfb, 0xd7, 0x94, 0x05, 0x7c, 0xb1, 0x81, 0xfa, 0xc4, 0xc9, 0x06, 0x00, 0xb0, 0x58,
|
||
|
0x2e, 0x7e, 0xb7, 0x34, 0xff, 0x74, 0xde, 0x11, 0xfd, 0xfe, 0xf7, 0xdc, 0x63, 0x5f, 0x77, 0x74, 0x8f, 0x8e, 0x24, 0x27,
|
||
|
0xc7, 0x99, 0x87, 0x2d, 0xf3, 0xef, 0x56, 0x39, 0xd8, 0xbe, 0x6f, 0x4f, 0xfb, 0xce, 0xc3, 0x1c, 0xee, 0xfd, 0xda, 0xf3,
|
||
|
0x39, 0x87, 0x6d, 0xb6, 0x77, 0x6c, 0x75, 0xdc, 0xce, 0xab, 0xea, 0xff, 0xf9, 0xdf, 0xa3, 0xff, 0x29, 0x0d, 0xad, 0x56,
|
||
|
0x3d, 0xbb, 0xc6, 0xeb, 0xbf, 0x75, 0x9d, 0x5f, 0xeb, 0xc7, 0xc5, 0x34, 0x54, 0xba, 0xbf, 0x1f, 0xad, 0x1a, 0xaf, 0xf7,
|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e, 0xec, 0x7d, 0xce, 0x80, 0xfa, 0xea, 0x9d, 0xf5, 0xfe, 0x3f, 0x73,
|
||
|
0x3d, 0x67, 0xf5, 0x5f, 0x93, 0xbf, 0x68, 0x5f, 0xbd, 0xb1, 0xb2, 0x4a, 0xed, 0xcc, 0x75, 0xdb, 0x9d, 0x01, 0xef, 0x96,
|
||
|
0xef, 0xd2, 0xff, 0xbf, 0xea, 0xa7, 0x0b, 0xd5, 0x1f, 0xf5, 0x67, 0xfc, 0xf9, 0x1f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
|
||
|
0x0f, 0xbf, 0x00 };
|
||
|
|
||
|
// Font characters rectangles data
|
||
|
static const Rectangle cyberFontRecs[95] = {
|
||
|
{ 4, 4, 4 , 14 },
|
||
|
{ 16, 4, 1 , 8 },
|
||
|
{ 25, 4, 4 , 3 },
|
||
|
{ 37, 4, 8 , 8 },
|
||
|
{ 53, 4, 8 , 9 },
|
||
|
{ 69, 4, 8 , 8 },
|
||
|
{ 85, 4, 8 , 8 },
|
||
|
{ 101, 4, 1 , 3 },
|
||
|
{ 110, 4, 4 , 9 },
|
||
|
{ 122, 4, 4 , 9 },
|
||
|
{ 134, 4, 5 , 6 },
|
||
|
{ 147, 4, 5 , 6 },
|
||
|
{ 160, 4, 2 , 2 },
|
||
|
{ 170, 4, 4 , 1 },
|
||
|
{ 182, 4, 1 , 1 },
|
||
|
{ 191, 4, 8 , 8 },
|
||
|
{ 207, 4, 8 , 8 },
|
||
|
{ 223, 4, 2 , 8 },
|
||
|
{ 233, 4, 8 , 8 },
|
||
|
{ 4, 26, 8 , 8 },
|
||
|
{ 20, 26, 8 , 8 },
|
||
|
{ 36, 26, 8 , 8 },
|
||
|
{ 52, 26, 8 , 8 },
|
||
|
{ 68, 26, 7 , 8 },
|
||
|
{ 83, 26, 8 , 8 },
|
||
|
{ 99, 26, 8 , 8 },
|
||
|
{ 115, 26, 1 , 4 },
|
||
|
{ 124, 26, 2 , 5 },
|
||
|
{ 134, 26, 4 , 8 },
|
||
|
{ 146, 26, 5 , 3 },
|
||
|
{ 159, 26, 4 , 8 },
|
||
|
{ 171, 26, 7 , 8 },
|
||
|
{ 186, 26, 8 , 8 },
|
||
|
{ 202, 26, 8 , 8 },
|
||
|
{ 218, 26, 8 , 8 },
|
||
|
{ 234, 26, 8 , 8 },
|
||
|
{ 4, 48, 8 , 8 },
|
||
|
{ 20, 48, 7 , 8 },
|
||
|
{ 35, 48, 7 , 8 },
|
||
|
{ 50, 48, 8 , 8 },
|
||
|
{ 66, 48, 8 , 8 },
|
||
|
{ 82, 48, 5 , 8 },
|
||
|
{ 95, 48, 7 , 8 },
|
||
|
{ 110, 48, 8 , 8 },
|
||
|
{ 126, 48, 7 , 8 },
|
||
|
{ 141, 48, 8 , 8 },
|
||
|
{ 157, 48, 8 , 8 },
|
||
|
{ 173, 48, 8 , 8 },
|
||
|
{ 189, 48, 8 , 8 },
|
||
|
{ 205, 48, 8 , 9 },
|
||
|
{ 221, 48, 8 , 8 },
|
||
|
{ 237, 48, 8 , 8 },
|
||
|
{ 4, 70, 8 , 8 },
|
||
|
{ 20, 70, 8 , 8 },
|
||
|
{ 36, 70, 8 , 8 },
|
||
|
{ 52, 70, 9 , 8 },
|
||
|
{ 69, 70, 8 , 8 },
|
||
|
{ 85, 70, 8 , 8 },
|
||
|
{ 101, 70, 8 , 8 },
|
||
|
{ 117, 70, 4 , 9 },
|
||
|
{ 129, 70, 8 , 8 },
|
||
|
{ 145, 70, 4 , 9 },
|
||
|
{ 157, 70, 4 , 3 },
|
||
|
{ 169, 70, 7 , 1 },
|
||
|
{ 184, 70, 2 , 3 },
|
||
|
{ 194, 70, 7 , 5 },
|
||
|
{ 209, 70, 7 , 8 },
|
||
|
{ 224, 70, 7 , 5 },
|
||
|
{ 239, 70, 7 , 8 },
|
||
|
{ 4, 92, 7 , 5 },
|
||
|
{ 19, 92, 4 , 8 },
|
||
|
{ 31, 92, 7 , 7 },
|
||
|
{ 46, 92, 7 , 8 },
|
||
|
{ 61, 92, 1 , 8 },
|
||
|
{ 70, 92, 3 , 10 },
|
||
|
{ 81, 92, 7 , 8 },
|
||
|
{ 96, 92, 4 , 8 },
|
||
|
{ 108, 92, 9 , 5 },
|
||
|
{ 125, 92, 7 , 5 },
|
||
|
{ 140, 92, 7 , 5 },
|
||
|
{ 155, 92, 7 , 7 },
|
||
|
{ 170, 92, 7 , 7 },
|
||
|
{ 185, 92, 5 , 5 },
|
||
|
{ 198, 92, 7 , 5 },
|
||
|
{ 213, 92, 5 , 8 },
|
||
|
{ 226, 92, 7 , 5 },
|
||
|
{ 4, 114, 7 , 5 },
|
||
|
{ 19, 114, 9 , 5 },
|
||
|
{ 36, 114, 7 , 5 },
|
||
|
{ 51, 114, 7 , 7 },
|
||
|
{ 66, 114, 7 , 5 },
|
||
|
{ 81, 114, 4 , 9 },
|
||
|
{ 93, 114, 1 , 9 },
|
||
|
{ 102, 114, 4 , 9 },
|
||
|
{ 114, 114, 8 , 2 },
|
||
|
};
|
||
|
|
||
|
// Font characters info data
|
||
|
// NOTE: No chars.image data provided
|
||
|
static const GlyphInfo cyberFontChars[95] = {
|
||
|
{ 32, 0, 11, 4, { 0 }},
|
||
|
{ 33, 0, 3, 2, { 0 }},
|
||
|
{ 34, 0, 3, 4, { 0 }},
|
||
|
{ 35, 0, 3, 8, { 0 }},
|
||
|
{ 36, 0, 3, 8, { 0 }},
|
||
|
{ 37, 0, 3, 8, { 0 }},
|
||
|
{ 38, 0, 3, 8, { 0 }},
|
||
|
{ 39, 0, 3, 2, { 0 }},
|
||
|
{ 40, 0, 3, 4, { 0 }},
|
||
|
{ 41, 0, 3, 4, { 0 }},
|
||
|
{ 42, 0, 4, 6, { 0 }},
|
||
|
{ 43, 0, 4, 6, { 0 }},
|
||
|
{ 44, 0, 10, 3, { 0 }},
|
||
|
{ 45, 0, 7, 5, { 0 }},
|
||
|
{ 46, 0, 10, 2, { 0 }},
|
||
|
{ 47, 0, 3, 8, { 0 }},
|
||
|
{ 48, 0, 3, 8, { 0 }},
|
||
|
{ 49, 0, 3, 3, { 0 }},
|
||
|
{ 50, 0, 3, 8, { 0 }},
|
||
|
{ 51, 0, 3, 8, { 0 }},
|
||
|
{ 52, 0, 3, 8, { 0 }},
|
||
|
{ 53, 0, 3, 8, { 0 }},
|
||
|
{ 54, 0, 3, 8, { 0 }},
|
||
|
{ 55, 0, 3, 7, { 0 }},
|
||
|
{ 56, 0, 3, 8, { 0 }},
|
||
|
{ 57, 0, 3, 8, { 0 }},
|
||
|
{ 58, 0, 6, 2, { 0 }},
|
||
|
{ 59, 0, 6, 3, { 0 }},
|
||
|
{ 60, 0, 3, 5, { 0 }},
|
||
|
{ 61, 0, 6, 6, { 0 }},
|
||
|
{ 62, 0, 3, 5, { 0 }},
|
||
|
{ 63, 0, 3, 7, { 0 }},
|
||
|
{ 64, 0, 3, 8, { 0 }},
|
||
|
{ 65, 0, 3, 8, { 0 }},
|
||
|
{ 66, 0, 3, 8, { 0 }},
|
||
|
{ 67, 0, 3, 8, { 0 }},
|
||
|
{ 68, 0, 3, 8, { 0 }},
|
||
|
{ 69, 0, 3, 7, { 0 }},
|
||
|
{ 70, 0, 3, 7, { 0 }},
|
||
|
{ 71, 0, 3, 8, { 0 }},
|
||
|
{ 72, 0, 3, 8, { 0 }},
|
||
|
{ 73, 0, 3, 6, { 0 }},
|
||
|
{ 74, 0, 3, 7, { 0 }},
|
||
|
{ 75, 0, 3, 8, { 0 }},
|
||
|
{ 76, 0, 3, 7, { 0 }},
|
||
|
{ 77, 0, 3, 9, { 0 }},
|
||
|
{ 78, 0, 3, 8, { 0 }},
|
||
|
{ 79, 0, 3, 8, { 0 }},
|
||
|
{ 80, 0, 3, 8, { 0 }},
|
||
|
{ 81, 0, 3, 8, { 0 }},
|
||
|
{ 82, 0, 3, 8, { 0 }},
|
||
|
{ 83, 0, 3, 8, { 0 }},
|
||
|
{ 84, 0, 3, 8, { 0 }},
|
||
|
{ 85, 0, 3, 8, { 0 }},
|
||
|
{ 86, 0, 3, 8, { 0 }},
|
||
|
{ 87, 0, 3, 10, { 0 }},
|
||
|
{ 88, 0, 3, 8, { 0 }},
|
||
|
{ 89, 0, 3, 8, { 0 }},
|
||
|
{ 90, 0, 3, 8, { 0 }},
|
||
|
{ 91, 0, 3, 4, { 0 }},
|
||
|
{ 92, 0, 3, 8, { 0 }},
|
||
|
{ 93, 0, 3, 4, { 0 }},
|
||
|
{ 94, 0, 3, 4, { 0 }},
|
||
|
{ 95, 0, 11, 7, { 0 }},
|
||
|
{ 96, 0, 3, 3, { 0 }},
|
||
|
{ 97, 0, 6, 7, { 0 }},
|
||
|
{ 98, 0, 3, 7, { 0 }},
|
||
|
{ 99, 0, 6, 7, { 0 }},
|
||
|
{ 100, 0, 3, 7, { 0 }},
|
||
|
{ 101, 0, 6, 7, { 0 }},
|
||
|
{ 102, 0, 3, 5, { 0 }},
|
||
|
{ 103, 0, 6, 7, { 0 }},
|
||
|
{ 104, 0, 3, 7, { 0 }},
|
||
|
{ 105, 0, 3, 2, { 0 }},
|
||
|
{ 106, -2, 3, 2, { 0 }},
|
||
|
{ 107, 0, 3, 7, { 0 }},
|
||
|
{ 108, 0, 3, 4, { 0 }},
|
||
|
{ 109, 0, 6, 10, { 0 }},
|
||
|
{ 110, 0, 6, 7, { 0 }},
|
||
|
{ 111, 0, 6, 7, { 0 }},
|
||
|
{ 112, 0, 6, 7, { 0 }},
|
||
|
{ 113, 0, 6, 7, { 0 }},
|
||
|
{ 114, 0, 6, 6, { 0 }},
|
||
|
{ 115, 0, 6, 7, { 0 }},
|
||
|
{ 116, 0, 3, 6, { 0 }},
|
||
|
{ 117, 0, 6, 7, { 0 }},
|
||
|
{ 118, 0, 6, 7, { 0 }},
|
||
|
{ 119, 0, 6, 10, { 0 }},
|
||
|
{ 120, 0, 6, 7, { 0 }},
|
||
|
{ 121, 0, 6, 7, { 0 }},
|
||
|
{ 122, 0, 6, 7, { 0 }},
|
||
|
{ 123, 0, 3, 5, { 0 }},
|
||
|
{ 124, 0, 3, 2, { 0 }},
|
||
|
{ 125, 0, 3, 5, { 0 }},
|
||
|
{ 126, 0, 6, 8, { 0 }},
|
||
|
};
|
||
|
|
||
|
// Style loading function: cyber
|
||
|
static void GuiLoadStyleCyber(void)
|
||
|
{
|
||
|
// Load style properties provided
|
||
|
// NOTE: Default properties are propagated
|
||
|
for (int i = 0; i < CYBER_STYLE_PROPS_COUNT; i++)
|
||
|
{
|
||
|
GuiSetStyle(cyberStyleProps[i].controlId, cyberStyleProps[i].propertyId, cyberStyleProps[i].propertyValue);
|
||
|
}
|
||
|
|
||
|
// Custom font loading
|
||
|
// NOTE: Compressed font image data (DEFLATE), it requires DecompressData() function
|
||
|
int cyberFontDataSize = 0;
|
||
|
unsigned char *data = DecompressData(cyberFontData, CYBER_COMPRESSED_DATA_SIZE, &cyberFontDataSize);
|
||
|
Image imFont = { data, 256, 256, 1, 2 };
|
||
|
|
||
|
Font font = { 0 };
|
||
|
font.baseSize = 14;
|
||
|
font.glyphCount = 95;
|
||
|
|
||
|
// Load texture from image
|
||
|
font.texture = LoadTextureFromImage(imFont);
|
||
|
UnloadImage(imFont); // Uncompressed data can be unloaded from memory
|
||
|
|
||
|
// Copy char recs data from global fontRecs
|
||
|
// NOTE: Required to avoid issues if trying to free font
|
||
|
font.recs = (Rectangle *)malloc(font.glyphCount*sizeof(Rectangle));
|
||
|
memcpy(font.recs, cyberFontRecs, font.glyphCount*sizeof(Rectangle));
|
||
|
|
||
|
// Copy font char info data from global fontChars
|
||
|
// NOTE: Required to avoid issues if trying to free font
|
||
|
font.glyphs = (GlyphInfo *)malloc(font.glyphCount*sizeof(GlyphInfo));
|
||
|
memcpy(font.glyphs, cyberFontChars, font.glyphCount*sizeof(GlyphInfo));
|
||
|
|
||
|
GuiSetFont(font);
|
||
|
|
||
|
// Setup a white rectangle on the font to be used on shapes drawing,
|
||
|
// this way we make sure all gui can be drawn on a single pass because no texture change is required
|
||
|
// NOTE: Setting up this rectangle is a manual process (for the moment)
|
||
|
Rectangle whiteChar = { 89, 9, 2, 2 };
|
||
|
SetShapesTexture(font.texture, whiteChar);
|
||
|
}
|