michael.zhang Posted March 7, 2011 Posted March 7, 2011 The default gui.rc is at: data/core/gui/gui.rc How can I specify a different directory for the gui.rc, along with custom skins. This would allow me to keep the unigine skins in the core/gui folder, but use custom skins in my own application. I could not find the answer in the documentation. Michael Zhang
frustum Posted March 8, 2011 Posted March 8, 2011 There is no way to override default gui skin name. You can change default skin by your own. But there is another option to creating ObjectGui with different gui skin and placing it before the camera.
michael.zhang Posted March 9, 2011 Author Posted March 9, 2011 There is no way to override default gui skin name. You can change default skin by your own. But there is another option to creating ObjectGui with different gui skin and placing it before the camera. Okay, thank you for the response. How does one use an ObjectGui? Are there any samples which use it?
eugene.litvinov Posted April 29, 2011 Posted April 29, 2011 I try to use ObjectGui to create menu with custom skin, I do next: ObjectGui gui = new ObjectGui(24.0f, 24.0f, "source/gui/"); gui.setMaterial("gui_base", "*"); gui.setProperty("surface_base", "*"); WidgetButton button = new WidgetButton(gui, "Label"); gui.addChild(button); In folder source/gui/ I copy files from core/gui/ and modify gui_button.png skin, but in my test added button have default Unigine editor's skin, not my. How it can be done? Do you plan to add ability to override/change default gui skin name via unigine interface? Thanks.
manguste Posted July 22, 2011 Posted July 22, 2011 Take a look at samples > objects > gui_07 sample. There a custom GUI skin is assigned, just like in your case.
Recommended Posts