Browse Source

*** empty log message ***

Jason Yeung 20 years ago
parent
commit
6236e6d2a2
3 changed files with 57 additions and 10 deletions
  1. 24 10
      dmodels/src/icons/Sources.pp
  2. 33 0
      dmodels/src/icons/icon_lightbulb.egg
  3. BIN
      dmodels/src/maps/lightbulb.tif

+ 24 - 10
dmodels/src/icons/Sources.pp

@@ -1,10 +1,24 @@
-#define DIR_TYPE models
-#define INSTALL_TO icons
-
-
-#begin install_icons
-  #define SOURCES \
-      folder.gif minusnode.gif openfolder.gif plusnode.gif python.gif \
-      sphere2.gif tk.gif
-#end install_icons
-
+#define DIR_TYPE models
+#define INSTALL_TO icons
+
+#define fltfiles $[wildcard *.flt]
+#begin flt_egg
+  #define SOURCES $[fltfiles]
+#end flt_egg
+
+#define mayafiles $[wildcard *.mb]
+#begin maya_egg
+  #define SOURCES $[mayafiles]
+#end maya_egg
+
+#begin install_icons
+  #define SOURCES \
+      folder.gif minusnode.gif openfolder.gif plusnode.gif python.gif \
+      sphere2.gif tk.gif
+#end install_icons
+
+#begin install_egg
+  #define SOURCES \ 
+    $[fltfiles:%.flt=%.egg] $[mayafiles:%.mb=%.egg] \
+    icon_lightbulb.egg 
+#end install_egg

+ 33 - 0
dmodels/src/icons/icon_lightbulb.egg

@@ -0,0 +1,33 @@
+<Comment> {
+  "egg-texture-cards -o icon_lightbulb.egg ../../src/maps/lightbulb.tif"
+}
+<Texture> lightbulb {
+  "../../src/maps/lightbulb.tif"
+}
+<Group> {
+  <VertexPool> vpool {
+    <Vertex> 0 {
+      -0.5 0.5 0
+      <UV> { 0 1 }
+    }
+    <Vertex> 1 {
+      -0.5 -0.5 0
+      <UV> { 0 0 }
+    }
+    <Vertex> 2 {
+      0.5 -0.5 0
+      <UV> { 1 0 }
+    }
+    <Vertex> 3 {
+      0.5 0.5 0
+      <UV> { 1 1 }
+    }
+  }
+  <Group> lightbulb {
+    <Polygon> {
+      <RGBA> { 1 1 1 1 }
+      <TRef> { lightbulb }
+      <VertexRef> { 0 1 2 3 <Ref> { vpool } }
+    }
+  }
+}

BIN
dmodels/src/maps/lightbulb.tif