Main repository of MikuMikuStudio
Revision | 1acf1517171761d1091b962158697a4c73990ba7 (tree) |
---|---|
Time | 2013-06-30 04:34:05 |
Author | normen667 <normen667@75d0...> |
Commiter | normen667 |
SDK:
- add icon to AppState nodes
git-svn-id: http://jmonkeyengine.googlecode.com/svn/trunk@10690 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
@@ -33,10 +33,12 @@ package com.jme3.gde.core.appstates; | ||
33 | 33 | |
34 | 34 | import com.jme3.app.state.AppState; |
35 | 35 | import com.jme3.app.state.AppStateManager; |
36 | +import com.jme3.gde.core.icons.IconList; | |
36 | 37 | import com.jme3.gde.core.properties.SceneExplorerProperty; |
37 | 38 | import com.jme3.gde.core.properties.ScenePropertyChangeListener; |
38 | 39 | import com.jme3.gde.core.scene.SceneSyncListener; |
39 | 40 | import com.jme3.gde.core.util.PropertyUtils; |
41 | +import java.awt.Image; | |
40 | 42 | import java.beans.PropertyDescriptor; |
41 | 43 | import java.io.IOException; |
42 | 44 | import java.lang.reflect.Field; |
@@ -71,16 +73,16 @@ public class AppStateNode extends AbstractNode implements ScenePropertyChangeLis | ||
71 | 73 | // setIconBaseWithExtension(ICON_ENABLED); |
72 | 74 | } |
73 | 75 | |
74 | -// @Override | |
75 | -// public Image getIcon(int type) { | |
76 | -// return icon; | |
77 | -// | |
78 | -// } | |
79 | -// | |
80 | -// @Override | |
81 | -// public Image getOpenedIcon(int type) { | |
82 | -// return icon; | |
83 | -// } | |
76 | + @Override | |
77 | + public Image getIcon(int type) { | |
78 | + return IconList.wheel.getImage(); | |
79 | + | |
80 | + } | |
81 | + | |
82 | + @Override | |
83 | + public Image getOpenedIcon(int type) { | |
84 | + return IconList.wheel.getImage(); | |
85 | + } | |
84 | 86 | // |
85 | 87 | // public void toggleIcon(boolean enabled) { |
86 | 88 | // if (enabled) { |