mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Remove Irrlicht GUI gradients (#16015)
Co-authored-by: rollerozxa <rollerozxa@voxelmanip.se> Co-authored-by: grorp <grorp@posteo.de>
This commit is contained in:
parent
1f9a3b5875
commit
9b2ee1dd5d
6 changed files with 57 additions and 264 deletions
|
@ -52,7 +52,7 @@ CGUIEnvironment::CGUIEnvironment(io::IFileSystem *fs, video::IVideoDriver *drive
|
|||
|
||||
loadBuiltInFont();
|
||||
|
||||
IGUISkin *skin = createSkin(gui::EGST_WINDOWS_METALLIC);
|
||||
IGUISkin *skin = createSkin();
|
||||
setSkin(skin);
|
||||
skin->drop();
|
||||
|
||||
|
@ -584,13 +584,13 @@ void CGUIEnvironment::setSkin(IGUISkin *skin)
|
|||
CurrentSkin->grab();
|
||||
}
|
||||
|
||||
//! Creates a new GUI Skin based on a template.
|
||||
//! Creates a new GUI Skin.
|
||||
/** \return Returns a pointer to the created skin.
|
||||
If you no longer need the skin, you should call IGUISkin::drop().
|
||||
See IReferenceCounted::drop() for more information. */
|
||||
IGUISkin *CGUIEnvironment::createSkin(EGUI_SKIN_TYPE type)
|
||||
IGUISkin *CGUIEnvironment::createSkin()
|
||||
{
|
||||
IGUISkin *skin = new CGUISkin(type, Driver);
|
||||
IGUISkin *skin = new CGUISkin(Driver);
|
||||
|
||||
IGUIFont *builtinfont = getBuiltInFont();
|
||||
IGUIFontBitmap *bitfont = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue