• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Main repository of MikuMikuStudio


Commit MetaInfo

修订版1acf1517171761d1091b962158697a4c73990ba7 (tree)
时间2013-06-30 04:34:05
作者normen667 <normen667@75d0...>
Commiternormen667

Log Message

SDK:
- add icon to AppState nodes

git-svn-id: http://jmonkeyengine.googlecode.com/svn/trunk@10690 75d07b2b-3a1a-0410-a2c5-0572b91ccdca

更改概述

差异

--- a/sdk/jme3-core/src/com/jme3/gde/core/appstates/AppStateNode.java
+++ b/sdk/jme3-core/src/com/jme3/gde/core/appstates/AppStateNode.java
@@ -33,10 +33,12 @@ package com.jme3.gde.core.appstates;
3333
3434 import com.jme3.app.state.AppState;
3535 import com.jme3.app.state.AppStateManager;
36+import com.jme3.gde.core.icons.IconList;
3637 import com.jme3.gde.core.properties.SceneExplorerProperty;
3738 import com.jme3.gde.core.properties.ScenePropertyChangeListener;
3839 import com.jme3.gde.core.scene.SceneSyncListener;
3940 import com.jme3.gde.core.util.PropertyUtils;
41+import java.awt.Image;
4042 import java.beans.PropertyDescriptor;
4143 import java.io.IOException;
4244 import java.lang.reflect.Field;
@@ -71,16 +73,16 @@ public class AppStateNode extends AbstractNode implements ScenePropertyChangeLis
7173 // setIconBaseWithExtension(ICON_ENABLED);
7274 }
7375
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+ }
8486 //
8587 // public void toggleIcon(boolean enabled) {
8688 // if (enabled) {