Unable to load an image up in NiftyGUI

madjack said:
Excellent! Glad it now works. :)


Yes, thank you very much. But I'm afraid, by re-installing back the earlier alpha-4, I don't know how much rollback I'm on to the point that Nifty may perhaps not be quite updated. Because, while most of Nifty works, so far, I just couldn't load up the interesting styles for panel or effects like draggable, black-style panels or scrollbar yet -- they all don't seem to work -- but perhaps I've wrote wrongly in calling them up, maybe there are more codes to write to call them and make them function as they should be, I'm not so sure.

I was wondering, what's the proper way of calling up all these styles?

The order to load stuff in a Nifty XML is something like this:



[xml]

<nifty …">



<useStyles filename="nifty-default-styles.xml" />

<!-- Custom Styles and Controls -->

<useStyles filename="Interface/preview-panel.xml" />

<useStyles filename="Interface/preview-panel-style.xml" />

<useStyles filename="Interface/drag-panel-style.xml" />

<useStyles filename="Interface/gamePanel-style.xml" />

<useControls filename="Interface/gamePanel.xml" />

<!-- End of Custom Styles and Controls -->

<useControls filename="nifty-default-controls.xml" />



<resourceBundle id="dialog" filename="com/madjack/some/path" />



<controlDefinition name="customDefinition" etc="blah">

</controlDefinition>



<!–then the rest of the file with screens/popups/etc–>

<screen id="hud" …>



[/xml]

thank you, madjack :slight_smile: lemme give it a shot at these. if nothing works, I’ll just play with the controlDefinition, control and basic interactive for the time being till I figure out what happens.