1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-15 18:57:08 +00:00

Introduce skin styles (currently discards colors)

This commit is contained in:
SmallJoker 2025-06-05 20:35:27 +02:00
parent bc981a2e29
commit bd0d9a7f95
9 changed files with 149 additions and 18 deletions

View file

@ -28,6 +28,8 @@
#endif
#include "os.h"
irr::gui::IGUISkin *impl_create_irr_guiskin(irr::video::IVideoDriver *driver);
namespace irr
{
namespace gui
@ -590,7 +592,7 @@ If you no longer need the skin, you should call IGUISkin::drop().
See IReferenceCounted::drop() for more information. */
IGUISkin *CGUIEnvironment::createSkin()
{
IGUISkin *skin = new CGUISkin(Driver);
IGUISkin *skin = impl_create_irr_guiskin(Driver);
IGUIFont *builtinfont = getBuiltInFont();
IGUIFontBitmap *bitfont = 0;

View file

@ -291,7 +291,7 @@ namespace gui
//! gets the colors
virtual void getColors(video::SColor* colors); // ::PATCH:
private:
protected:
float Scale = 1.0f;
video::SColor Colors[EGDC_COUNT];