1
1
/*
2
- * Copyright (c) 2003-2012 jMonkeyEngine
2
+ * Copyright (c) 2003-2022 jMonkeyEngine
3
3
* All rights reserved.
4
4
*
5
5
* Redistribution and use in source and binary forms, with or without
31
31
*/
32
32
package com .jme3 .gde .core .icons ;
33
33
34
+ import javax .swing .Icon ;
34
35
import javax .swing .ImageIcon ;
35
36
import org .openide .util .ImageUtilities ;
36
37
37
38
/**
38
- *
39
+ * Svg icons from game-icons.net. Icon names are fairly (but not completely)
40
+ * consistent with names on the web.
41
+ * Authors: https://game-icons.net/about.html#authors
42
+ *
43
+ *
39
44
* @author normenhansen
40
45
*/
41
46
public class IconList {
42
-
47
+
48
+ public static final String ICONS_PATH = "com/jme3/gde/core/icons/" ;
49
+ public static final String JME_LOGO = ICONS_PATH + "jaime_silhouette.svg" ;
50
+ public static final String CARDBOARD_BOX = ICONS_PATH + "cardboard-box.svg" ;
51
+ public static final String CARDBOARD_BOX_CLOSED = ICONS_PATH + "cardboard-box-closed.svg" ;
52
+ public static final String SOUND = ICONS_PATH + "speaker.svg" ;
53
+ public static final String MATERIAL = ICONS_PATH + "palette.svg" ;
54
+ public static final String FILTER = ICONS_PATH + "ice-iris.svg" ;
55
+ public static final String FONT = ICONS_PATH + "font.svg" ;
56
+ public static final String LIGHT_BULB = ICONS_PATH + "light-bulb.svg" ;
57
+ public static final String LIGHT_BULB_OFF = ICONS_PATH + "light-bulb-off.svg" ;
58
+ public static final String CONFIRMED = ICONS_PATH + "confirmed.svg" ;
59
+ public static final String WARNING = ICONS_PATH + "interdiction.svg" ;
60
+ public static final String ERROR = ICONS_PATH + "hazard-sign.svg" ;
61
+ public static final String PHYSICS_WHEEL = ICONS_PATH + "cog.svg" ;
62
+ public static final String ANIM_CONTROL = ICONS_PATH + "film-spool.svg" ;
63
+ public static final String ANIM = ICONS_PATH + "film-strip.svg" ;
64
+ public static final String SKELETON = ICONS_PATH + "skeleton.svg" ;
65
+ public static final String PLAY = ICONS_PATH + "play.svg" ;
66
+ public static final String PICTURE = ICONS_PATH + "mona-lisa.svg" ;
67
+ public static final String INFO = ICONS_PATH + "info.svg" ;
68
+ public static final String INFO_GREEN = ICONS_PATH + "info_green.svg" ;
69
+ public static final String EMITTER = ICONS_PATH + "bright-fireworks.svg" ;
70
+ public static final String PLAYER = ICONS_PATH + "character.svg" ;
71
+ public static final String GHOST_CONTROL = ICONS_PATH + "invisible.svg" ;
72
+ public static final String QUESTION = ICONS_PATH + "uncertainty.svg" ;
73
+ public static final String NODE = ICONS_PATH + "family-tree.svg" ;
74
+ public static final String IMPORTANT = ICONS_PATH + "files.svg" ;
75
+ public static final String BONE = ICONS_PATH + "bone.svg" ;
76
+ public static final String TRACK = ICONS_PATH + "track.svg" ;
77
+ public static final String MESH = ICONS_PATH + "wireframe-globe.svg" ;
78
+ public static final String GEOMETRY = ICONS_PATH + "cube.svg" ;
79
+ public static final String VEHICLE = ICONS_PATH + "race-car.svg" ;
80
+ public static final String BOX_COLOR = ICONS_PATH + "cube-green.svg" ;
81
+ public static final String WIRE_MESH = ICONS_PATH + "wire-mesh.svg" ;
82
+ public static final String BONE_TRACK = ICONS_PATH + "bone-track.svg" ;
83
+ public static final String AUDIO_TRACK = ICONS_PATH + "audio-track.svg" ;
84
+ public static final String EFFECT_TRACK = ICONS_PATH + "effect-track.svg" ;
85
+ public static final String LINK = ICONS_PATH + "sideswipe.svg" ;
86
+ public static final String EYE = ICONS_PATH + "eye.svg" ;
87
+ public static final String EYE_GREEN = ICONS_PATH + "eye-green.svg" ;
88
+ public static final String EYE_OFF = ICONS_PATH + "sight-disabled.svg" ;
89
+ public static final String MOTION_EVENT = ICONS_PATH + "run.svg" ;
90
+ public static final String TERRAIN = ICONS_PATH + "terrain.svg" ;
91
+ public static final String PBR_SKY = ICONS_PATH + "sun-cloud.svg" ;
92
+ public static final String PBR_ENV = ICONS_PATH + "confirmed_large.svg" ;
93
+ public static final String NORMAL_VIEW = ICONS_PATH + "normal_view.svg" ;
94
+
95
+ // 16x16
96
+
43
97
public static final ImageIcon jmeLogo =
44
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/jme-logo.png" , false );
98
+ ImageUtilities .loadImageIcon (JME_LOGO , false );
45
99
public static final ImageIcon asset =
46
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/assets.gif" , false );
100
+ ImageUtilities .loadImageIcon (CARDBOARD_BOX , false );
47
101
public static final ImageIcon model =
48
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/model.gif" , false );
102
+ ImageUtilities .loadImageIcon (CARDBOARD_BOX_CLOSED , false );
49
103
public static final ImageIcon sound =
50
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/sound.gif" , false );
104
+ ImageUtilities .loadImageIcon (SOUND , false );
51
105
public static final ImageIcon material =
52
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/material.gif" , false );
106
+ ImageUtilities .loadImageIcon (MATERIAL , false );
53
107
public static final ImageIcon matDef =
54
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/jme-logo.png" , false );
108
+ ImageUtilities .loadImageIcon (JME_LOGO , false );
55
109
public static final ImageIcon font =
56
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/font.gif" , false );
110
+ ImageUtilities .loadImageIcon (FONT , false );
57
111
public static final ImageIcon filter =
58
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/eye.gif" , false );
112
+ ImageUtilities .loadImageIcon (FILTER , false );
59
113
public static final ImageIcon texture =
60
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/image.gif" , false );
114
+ ImageUtilities .loadImageIcon (PICTURE , false );
61
115
public static final ImageIcon orthoMode =
62
116
ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/ortho.png" , false );
63
117
public static final ImageIcon perspMode =
@@ -77,81 +131,88 @@ public class IconList {
77
131
public static final ImageIcon frontView =
78
132
ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/front.png" , false );
79
133
public static final ImageIcon audioTrack =
80
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/audioTrack.png" , false );
134
+ ImageUtilities .loadImageIcon (AUDIO_TRACK , false );
81
135
public static final ImageIcon effectTrack =
82
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/effectTrack.png" , false );
136
+ ImageUtilities .loadImageIcon (EFFECT_TRACK , false );
83
137
public static final ImageIcon boneTrack =
84
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/boneTrack.png" , false );
138
+ ImageUtilities .loadImageIcon (BONE_TRACK , false );
85
139
public static final ImageIcon track =
86
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/track.png" , false );
140
+ ImageUtilities .loadImageIcon (TRACK , false );
87
141
public static final ImageIcon lightOff =
88
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/lightbulb_off.gif" , false );
142
+ ImageUtilities .loadImageIcon (LIGHT_BULB_OFF , false );
89
143
public static final ImageIcon lightOn =
90
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/lightbulb.gif" , false );
144
+ ImageUtilities .loadImageIcon (LIGHT_BULB , false );
91
145
public static final ImageIcon eyeOpen =
92
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/eye.gif" , false );
93
- public static final ImageIcon eyeGreen =
94
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/eyeGreen.gif" , false );
95
- public static final ImageIcon eyeOff =
96
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/eyeOff.gif" , false );
146
+ ImageUtilities .loadImageIcon (EYE , false );
97
147
public static final ImageIcon eyeCrossed =
98
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/crossedEye.gif" , false );
99
- public static final ImageIcon colorBox =
100
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/box_color.gif" , false );
101
- public static final ImageIcon wireBox =
102
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/box_wire.gif" , false );
148
+ ImageUtilities .loadImageIcon (EYE_OFF , false );
103
149
public static final ImageIcon info =
104
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/65.png" , false );
150
+ ImageUtilities .loadImageIcon (INFO , false );
105
151
public static final ImageIcon player =
106
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/player.gif" , false );
152
+ ImageUtilities .loadImageIcon (PLAYER , false );
107
153
public static final ImageIcon important =
108
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/important.gif" , false );
154
+ ImageUtilities .loadImageIcon (IMPORTANT , false );
109
155
public static final ImageIcon animControl =
110
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/animationcontrol.gif" , false );
156
+ ImageUtilities .loadImageIcon (ANIM_CONTROL , false );
111
157
public static final ImageIcon animation =
112
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/anim.png" , false );
158
+ ImageUtilities .loadImageIcon (ANIM , false );
113
159
public static final ImageIcon animationPlay =
114
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/animPlay.png" , false );
160
+ ImageUtilities .loadImageIcon (PLAY , false );
115
161
public static final ImageIcon link =
116
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/linknode.gif" , false );
162
+ ImageUtilities .loadImageIcon (LINK , false );
117
163
public static final ImageIcon bone =
118
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/bone.png" , false );
164
+ ImageUtilities .loadImageIcon (BONE , false );
119
165
public static final ImageIcon wheel =
120
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/physicswheel.gif" , false );
166
+ ImageUtilities .loadImageIcon (PHYSICS_WHEEL , false );
121
167
public static final ImageIcon geometry =
122
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/geometry.gif" , false );
168
+ ImageUtilities .loadImageIcon (GEOMETRY , false );
123
169
public static final ImageIcon ghostControl =
124
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/ghostcontrol.gif" , false );
125
- public static final ImageIcon light =
126
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/light.gif" , false );
170
+ ImageUtilities .loadImageIcon (GHOST_CONTROL , false );
127
171
public static final ImageIcon mesh =
128
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/mesh.gif" , false );
172
+ ImageUtilities .loadImageIcon (MESH , false );
129
173
public static final ImageIcon motionEvent =
130
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/chimpanzee-sad.gif" , false ); // TODO: Find something better
174
+ ImageUtilities .loadImageIcon (MOTION_EVENT , false );
131
175
public static final ImageIcon node =
132
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/node.gif" , false );
176
+ ImageUtilities .loadImageIcon (NODE , false );
133
177
public static final ImageIcon emitter =
134
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/particleemitter.gif" , false );
178
+ ImageUtilities .loadImageIcon (EMITTER , false );
135
179
public static final ImageIcon physicsControl =
136
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/physicscontrol.gif" , false );
180
+ ImageUtilities .loadImageIcon (PHYSICS_WHEEL , false );
137
181
public static final ImageIcon skeletonControl =
138
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/skeletonControl.gif" , false );
182
+ ImageUtilities .loadImageIcon (SKELETON , false );
139
183
public static final ImageIcon terrain =
140
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/terrain.png" , false );
184
+ ImageUtilities .loadImageIcon (TERRAIN , false );
141
185
public static final ImageIcon vehicle =
142
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/vehicle.png" , false );
186
+ ImageUtilities .loadImageIcon (VEHICLE , false );
143
187
public static final ImageIcon chimpConfused =
144
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/chimpanzee-confused.gif" , false );
145
- public static final ImageIcon chimpLobo =
146
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/chimpanzee-lobotized.gif" , false );
147
- public static final ImageIcon chimpMad =
148
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/chimpanzee-mad.gif" , false );
188
+ ImageUtilities .loadImageIcon (QUESTION , false );
189
+ public static final ImageIcon exception =
190
+ ImageUtilities .loadImageIcon (ERROR , false );
149
191
public static final ImageIcon chimpNogood =
150
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/chimpanzee-nogood.gif" , false );
192
+ ImageUtilities .loadImageIcon (ERROR , false );
151
193
public static final ImageIcon chimpSad =
152
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/chimpanzee-sad.gif" , false );
194
+ ImageUtilities .loadImageIcon (WARNING , false );
153
195
public static final ImageIcon chimpSmile =
154
- ImageUtilities .loadImageIcon ("com/jme3/gde/core/icons/chimpanzee-smile.gif" , false );
155
- // public static ImageIcon icon =
156
- // ImageUtilities.loadImageIcon("", false);
196
+ ImageUtilities .loadImageIcon (CONFIRMED , false );
197
+
198
+ // SceneViewer 32x32
199
+
200
+ public static final ImageIcon colorBox =
201
+ ImageUtilities .loadImageIcon (BOX_COLOR , false );
202
+ public static final ImageIcon wireBox =
203
+ ImageUtilities .loadImageIcon (WIRE_MESH , false );
204
+ public static final ImageIcon light =
205
+ ImageUtilities .loadImageIcon (LIGHT_BULB , false );
206
+ public static final ImageIcon eyeOff =
207
+ ImageUtilities .loadImageIcon (EYE_OFF , false );
208
+ public static final ImageIcon eyeGreen =
209
+ ImageUtilities .loadImageIcon (EYE_GREEN , false );
210
+ public static final ImageIcon enablePbrEnvironment =
211
+ ImageUtilities .loadImageIcon (PBR_ENV , false );
212
+ public static final ImageIcon enablePbrSky =
213
+ ImageUtilities .loadImageIcon (PBR_SKY , false );
214
+ public static final ImageIcon sceneInfo =
215
+ ImageUtilities .loadImageIcon (INFO_GREEN , false );
216
+ public static final ImageIcon normalView =
217
+ ImageUtilities .loadImageIcon (NORMAL_VIEW , false );
157
218
}
0 commit comments