|
@@ -1,24 +1,5 @@
|
|
|
package hide.comp;
|
|
|
-
|
|
|
-enum PropType {
|
|
|
- PInt( ?min : Int, ?max : Int );
|
|
|
- PFloat( ?min : Float, ?max : Float );
|
|
|
- PVec( n : Int, ?min : Float, ?max : Float );
|
|
|
- PBool;
|
|
|
- PTexture;
|
|
|
- PChoice( choices : Array<String> );
|
|
|
- PFile( exts : Array<String> );
|
|
|
- PUnsupported( debug : String );
|
|
|
-}
|
|
|
-
|
|
|
-typedef PropDef = {
|
|
|
- name : String,
|
|
|
- t : PropType,
|
|
|
- ?def: Dynamic,
|
|
|
- ?disp: String
|
|
|
-};
|
|
|
-
|
|
|
-#if editor
|
|
|
+import hide.prefab.Props;
|
|
|
|
|
|
class PropsEditor extends Component {
|
|
|
|
|
@@ -475,5 +456,3 @@ class PropsField extends Component {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
-
|
|
|
-#end
|