MinieExamples/src/main/java/jme3utilities/minie/test/common/AbstractDemo.java
/**
     * Generate full and minimal versions of the hotkey help. Attach the minimal
     * one to the GUI scene.
     *
     * @param bounds the desired screen coordinates (not null, unaffected)
     */
Generate full and minimal versions of the hotkey help. Attach the minimal
one to the GUI scene.

@param bounds the desired screen coordinates (not null, unaffected)
Generate full and minimal versions of the hotkey help . Attach the minimal one to the GUI scene . @param bounds the desired screen coordinates ( not null unaffected )
public void attachHelpNode(Rectangle bounds) {
        Validate.nonNull(bounds, "bounds");
        InputMode inputMode = getDefaultInputMode();
        float extraSpace = 20f;
        helpNode = HelpUtils.buildNode(inputMode, bounds, guiFont, extraSpace);
        helpNode.move(0f, 0f, 1f); 
        InputMode dummyMode = new InputMode("dummy") {
            @Override
            protected void defaultBindings() {
            }
            @Override
            public void onAction(String s, boolean b, float f) {
            }
        };
        dummyMode.bind(AbstractDemo.asToggleHelp, KeyInput.KEY_H);
        float width = 100f; 
        float height = bounds.height;
        float x = bounds.x + bounds.width - width;
        float y = bounds.y;
        Rectangle dummyBounds = new Rectangle(x, y, width, height);
        minHelpNode = HelpUtils.buildNode(dummyMode, dummyBounds, guiFont, 0f);
        guiNode.attachChild(minHelpNode);
    }
public void attachHelpNode ( Rectangle bounds ) { Validate . nonNull ( bounds , "bounds" ) ; InputMode inputMode = getDefaultInputMode ( ) ; float extraSpace = 20f ; helpNode = HelpUtils . buildNode ( inputMode , bounds , guiFont , extraSpace ) ; helpNode . move ( 0f , 0f , 1f ) ; InputMode dummyMode = new InputMode ( "dummy" ) { @ Override protected void defaultBindings ( ) { } @ Override public void onAction ( String s , boolean b , float f ) { } } ; dummyMode . bind ( AbstractDemo . asToggleHelp , KeyInput . KEY_H ) ; float width = 100f ; float height = bounds . height ; float x = bounds . x + bounds . width - width ; float y = bounds . y ; Rectangle dummyBounds = new Rectangle ( x , y , width , height ) ; minHelpNode = HelpUtils . buildNode ( dummyMode , dummyBounds , guiFont , 0f ) ; guiNode . attachChild ( minHelpNode ) ; }
Generate full and minimal versions of the hotkey help.
Generate full and minimal versions of the hotkey help .
// move (slightly) to the front
 // in pixels
