00001 package org.hfbk.vis.visnode; 00002 00003 import org.hfbk.util.UIUtils; 00004 import org.hfbk.vis.VisClient; 00005 import org.lwjgl.util.vector.Vector3f; 00006 00007 public class Screenshooter extends VisNode { 00008 00009 boolean hudState; 00010 00011 public Screenshooter() { 00012 super(null, new Vector3f()); 00013 } 00014 00015 void renderSelf() { 00016 VisClient client=getRoot().client; 00017 00018 if (client.hudEnabled){ 00019 hudState=true; 00020 client.hudEnabled=false; 00021 }else{ 00022 UIUtils.screenshot(client.panel.getParent()); 00023 client.hudEnabled=hudState; 00024 parent.remove(this); 00025 } 00026 } 00027 }