Brought up to date with the new world order.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3548 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -23,8 +23,10 @@ package com.threerings.jme.client;
|
|||||||
|
|
||||||
import com.jme.bui.event.InputDispatcher;
|
import com.jme.bui.event.InputDispatcher;
|
||||||
import com.jme.input.InputHandler;
|
import com.jme.input.InputHandler;
|
||||||
|
import com.jme.renderer.Camera;
|
||||||
import com.jme.renderer.Renderer;
|
import com.jme.renderer.Renderer;
|
||||||
import com.jme.scene.Node;
|
import com.jme.scene.Node;
|
||||||
|
import com.jme.system.DisplaySystem;
|
||||||
|
|
||||||
import com.samskivert.util.Config;
|
import com.samskivert.util.Config;
|
||||||
import com.threerings.util.MessageManager;
|
import com.threerings.util.MessageManager;
|
||||||
@@ -181,13 +183,25 @@ public class JabberClient
|
|||||||
return _app.getContext().getRenderer();
|
return _app.getContext().getRenderer();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Node getRoot () {
|
public DisplaySystem getDisplay () {
|
||||||
return _app.getContext().getRoot();
|
return _app.getContext().getDisplay();
|
||||||
}
|
}
|
||||||
|
|
||||||
// public InputHandler getInputHandler () {
|
public Camera getCamera () {
|
||||||
// return _app.getContext().getInputHandler();
|
return _app.getContext().getCamera();
|
||||||
// }
|
}
|
||||||
|
|
||||||
|
public Node getGeometry () {
|
||||||
|
return _app.getContext().getGeometry();
|
||||||
|
}
|
||||||
|
|
||||||
|
public Node getInterface () {
|
||||||
|
return _app.getContext().getInterface();
|
||||||
|
}
|
||||||
|
|
||||||
|
public InputHandler getInputHandler () {
|
||||||
|
return _app.getContext().getInputHandler();
|
||||||
|
}
|
||||||
|
|
||||||
// public InputHandler getBufferedInputHandler () {
|
// public InputHandler getBufferedInputHandler () {
|
||||||
// return _app.getContext().getBufferedInputHandler();
|
// return _app.getContext().getBufferedInputHandler();
|
||||||
|
|||||||
@@ -28,11 +28,11 @@ public class JabberView extends BWindow
|
|||||||
_ctx = ctx;
|
_ctx = ctx;
|
||||||
_jctx = (JmeContext)ctx;
|
_jctx = (JmeContext)ctx;
|
||||||
_chat = new ChatView(_jctx, _ctx.getChatDirector());
|
_chat = new ChatView(_jctx, _ctx.getChatDirector());
|
||||||
addChild(_chat, BorderLayout.CENTER);
|
add(_chat, BorderLayout.CENTER);
|
||||||
|
|
||||||
setBounds(0, 40, 640, 240);
|
setBounds(0, 40, 640, 240);
|
||||||
layout();
|
layout();
|
||||||
_jctx.getRoot().attachChild(this);
|
_jctx.getInterface().attachChild(getNode());
|
||||||
_jctx.getInputDispatcher().addWindow(this);
|
_jctx.getInputDispatcher().addWindow(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user