Jump to content

[SOLVED] How does the function Gui::setSkin?


photo

Recommended Posts

Posted

Hi.

Who has tried to use the Gui::setSkin(string path) to change the look of the interface? Please tell me how to use it.

 

Thanks in advance.

Posted

The directory must contain all Gui related textures and fonts.

Please use "data/samples/objects/interfaces/skin" as an example.

Posted

Thank you.

I did the same, but there is no result. Here is my implementation:

gui = engine.getGui();
gui.setSkin( "samples/objects/interfaces/skin" );
	
window = new WidgetWindow( gui, "Demo" );
gui.addChild( window, GUI_ALIGN_CENTER | GUI_ALIGN_OVERLAP );

WidgetButton btn = new WidgetButton( gui, "buttonTest" );
window.addChild( btn );
Posted

Confirmed. This is a bug in the current SDK. It will be fixed in the next SDK update.

×
×
  • Create New...