Allow a custom root node to be created.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4071 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -384,12 +384,22 @@ public class JmeApp
|
|||||||
_iface = new Node("Interface");
|
_iface = new Node("Interface");
|
||||||
_root.attachChild(_iface);
|
_root.attachChild(_iface);
|
||||||
|
|
||||||
_rnode = new PolledRootNode(_timer, _input);
|
// create our root node
|
||||||
|
_rnode = createRootNode();
|
||||||
_iface.attachChild(_rnode);
|
_iface.attachChild(_rnode);
|
||||||
|
|
||||||
// we don't hide the cursor
|
// we don't hide the cursor
|
||||||
MouseInput.get().setCursorVisible(true);
|
MouseInput.get().setCursorVisible(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Allows a customized root node to be created.
|
||||||
|
*/
|
||||||
|
protected BRootNode createRootNode ()
|
||||||
|
{
|
||||||
|
return new PolledRootNode(_timer, _input);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called when initialization fails to give the application a chance
|
* Called when initialization fails to give the application a chance
|
||||||
* to report the failure to the user.
|
* to report the failure to the user.
|
||||||
|
|||||||
Reference in New Issue
Block a user