various fixes

added fix for font cache (stb required size to be read switch back to libpng knocks the stream off)

Added extra control over the rendering of guibtimaps
If guibitmaps are a child of buttons the profile colors now affect how to the button is rendered.
This commit is contained in:
marauder2k7 2026-02-17 00:13:10 +00:00
parent 2c0558840a
commit 6f0c31468f
5 changed files with 143 additions and 33 deletions

View file

@ -35,6 +35,15 @@ public:
typedef GuiControl Parent;
enum BitmapMode
{
BitmapMode_Stretch,
BitmapMode_Tile,
BitmapMode_Fit,
BitmapMode_Fill,
BitmapMode_Center
};
protected:
/// Name of the bitmap file. If this is 'texhandle' the bitmap is not loaded
@ -47,6 +56,8 @@ protected:
/// If true, bitmap tiles inside control. Otherwise stretches.
bool mWrap;
BitmapMode mDrawMode;
GFXTextureFilterType mFilterType;
public:
GFXTexHandle mBitmap;
@ -74,4 +85,7 @@ public:
"The bitmap can either be tiled or stretched inside the control.");
};
typedef GuiBitmapCtrl::BitmapMode BitmapDrawMode;
DefineEnumType(BitmapDrawMode);
#endif