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

@ -303,7 +303,10 @@ void GuiButtonBaseCtrl::onMouseEnter(const GuiEvent& event)
SFX->playOnce(mProfile->getSoundButtonOverProfile());
mHighlighted = true;
messageSiblings(mRadioGroup);
if (mButtonType != ButtonTypeRadio)
messageSiblings(mRadioGroup);
onHighlighted_callback(mHighlighted);
}
}
@ -320,7 +323,9 @@ void GuiButtonBaseCtrl::onMouseLeave(const GuiEvent&)
mDepressed = false;
mHighlighted = false;
onHighlighted_callback(mHighlighted);
messageSiblings(mRadioGroup);
if (mButtonType != ButtonTypeRadio)
messageSiblings(mRadioGroup);
}
//-----------------------------------------------------------------------------