Best Python code snippet using lemoncheesecake
InfoManageTableType.ts
Source:InfoManageTableType.ts
1export default {2 //å°åç¾å®³éæ£ç¹3 geologicalDisasterPoint:[4 {5 prop:'name',6 label:'ç¾å®³ç¹å称',7 width:'200',8 align:'',9 },10 {11 prop:'manager',12 label:'è´è´£äºº',13 width:'100',14 align:'center',15 },16 {17 prop:'cellphone',18 label:'èç³»çµè¯',19 width:'140',20 align:'center',21 },22 {23 prop:'type',24 label:'ç¾å®³ç¹ç±»å',25 width:'130',26 align:'center',27 },28 {29 prop:'scale',30 label:'è§æ¨¡',31 width:'80',32 align:'center',33 },34 {35 prop:'stability',36 label:'稳å®æ§',37 width:'80',38 align:'center',39 },40 {41 prop:'risk',42 label:'é£é©å¤§å°',43 width:'80',44 align:'center',45 },46 {47 prop:'factor',48 label:'产çå ç´ ',49 width:'80',50 align:'',51 },52 {53 prop:'people',54 label:'å害人æ°',55 width:'80',56 align:'center',57 },58 {59 prop:'gdp',60 label:'ç»æµæ失(ä¸å
)',61 width:'80',62 align:'center',63 },64 {65 prop:'measure',66 label:'éåæªæ½',67 width:'280',68 align:'',69 },70 {71 prop:'level',72 label:'ç¾å®³ç级',73 width:'80',74 align:'center',75 },76 {77 prop:'address',78 label:'ç¾å®³å°å',79 width:'130',80 align:'',81 },82 {83 prop:'detail',84 label:'详ç»',85 width:'140',86 align:'',87 },88 ],89 //å°è´¨ç¾å®³é¢è¦ç¶æ90 geologicalDisasterState:[91 {92 prop:'name',93 label:'ç¾å®³ç¹å称',94 width:'250',95 align:'center',96 },97 {98 prop:'type',99 label:'ç¾å®³ç¹ç±»å',100 width:'100',101 align:'center',102 },103 {104 prop:'lon',105 label:'ç»åº¦',106 width:'80',107 align:'center',108 },109 {110 prop:'lat',111 label:'纬度',112 width:'80',113 align:'center',114 },115 {116 prop:'ddatetime',117 label:'é¢è¦æ¶é´',118 width:'120',119 align:'center',120 },121 {122 prop:'level',123 label:'é¢è¦ç级',124 width:'80',125 align:'center',126 },127 {128 prop:'cause',129 label:'é¢è¦ç±»å',130 width:'140',131 align:'center',132 },133 {134 prop:'address',135 label:'ç¾å®³å°å',136 width:'',137 align:'left',138 },139 ],140 //å°è´¨ç¾å®³é¢è¦æ¥å141 geologicalDisasterReport: [142 {143 prop:'dataTime',144 label:'çææ¶é´',145 width:'150',146 align:'center',147 },148 {149 prop:'fileName',150 label:'æ¥åå称',151 width:'',152 align:'center',153 },154 ],155 //山洪é¢è¦ç¶æ156 mountainTorrentsState:[157 {158 prop:'name',159 label:'ç«ç¹',160 width:'200',161 align:'center'162 },163 {164 prop:'type',165 label:'ç±»å',166 width:'80',167 align:'center'168 },169 {170 prop:'lon',171 label:'ç»åº¦',172 width:'70',173 align:'center'174 },175 {176 prop:'lat',177 label:'纬度',178 width:'70',179 align:'center'180 },181 {182 prop:'ddatetime',183 label:'æ¶é´',184 width:'140',185 align:'center'186 },187 {188 prop:'waterlevel',189 label:'å½åæ°´ä½(ç±³)',190 width:'100',191 align:'center'192 },193 {194 prop:'alertlevel',195 label:'è¦ææ°´ä½(ç±³)',196 width:'100',197 align:'center'198 },199 {200 prop:'cause',201 label:'é¢è¦åå ',202 width:'',203 align:''204 },205 ],206 //山洪é¢è¦æ¥å207 mountainTorrentsReport:[208 {209 prop:'dataTime',210 label:'çææ¶é´',211 width:'200',212 align:'center'213 },214 {215 prop:'fileName',216 label:'æ¥åå称',217 width:'',218 align:'center'219 },220 ],221 //山洪水åº222 reservoir:[223 {224 prop:'VF01015_CN',225 label:'æ°´åºå称',226 width:'',227 align:'center'228 },229 {230 prop:'V06001',231 label:'ç»åº¦',232 width:'',233 align:'center'234 },235 {236 prop:'V05001',237 label:'纬度',238 width:'',239 align:'center'240 },241 {242 prop:'V_COUNTY',243 label:'åå¸',244 width:'',245 align:'center'246 },247 {248 prop:'V_ADDRESS',249 label:'æ°´åºå°å',250 width:'',251 align:'center'252 },253 {254 prop:'DDATETIME',255 label:'é¢è¦æ¶é´',256 width:'',257 align:'center'258 },259 {260 prop:'RZ',261 label:'å½åæ°´ä½(ç±³)',262 width:'',263 align:'center'264 },265 {266 prop:'alertlevel',267 label:'è¦ææ°´ä½(ç±³)',268 width:'',269 align:'center'270 },271 {272 prop:'Differ',273 label:'æ°´ä½æ¶¨å¹
(ç±³)',274 width:'',275 align:'center'276 }277 ],278 //山洪河æµ279 river:[280 {281 prop:'RIVER',282 label:'æ²³æµå称',283 width:'',284 align:'center'285 },286 {287 prop:'V06001',288 label:'ç»åº¦',289 width:'',290 align:'center'291 },292 {293 prop:'V05001',294 label:'纬度',295 width:'',296 align:'center'297 },298 {299 prop:'DDATETIME',300 label:'é¢è¦æ¶é´',301 width:'',302 align:'center'303 },304 {305 prop:'WATERLEV',306 label:'å½åæ°´ä½(ç±³)',307 width:'',308 align:'center'309 },310 {311 prop:'alertlevel(ç±³)',312 label:'è¦ææ°´ä½',313 width:'',314 align:'center'315 },316 {317 prop:'Differ(ç±³)',318 label:'æ°´ä½æ¶¨å¹
',319 width:'',320 align:'center'321 }322 ],323 //å
æ¶ç¹324 waterloggingPoint: [325 {326 prop: 'name',327 label: 'å
æ¶ç¹',328 width: '150',329 align:'center'330 },331 {332 prop: 'lat',333 label: '纬度',334 width: '120',335 align:'center',336 },337 {338 prop: 'lon',339 label: 'ç»åº¦',340 width: '120',341 align:'center'342 },343 {344 prop: 'manager',345 label: 'è´è´£äºº',346 width: '80',347 align:'center'348 },349 {350 prop: 'cellphone',351 label: 'èç³»æ¹å¼',352 width: '120',353 align:'center'354 },355 {356 prop: 'address',357 label: 'å°å',358 width: '250',359 align:''360 },361 {362 prop: 'detail',363 label: '详ç»',364 width: '',365 align:''366 },367 ],368 //å
æ¶é¢è¦ç¶æ369 warningState: [370 {371 prop: 'name',372 label: 'å
æ¶ç¹',373 width: '200',374 align:'center'375 },376 {377 prop:'lon',378 label:'ç»åº¦',379 width:'100',380 align:'center'381 },382 {383 prop:'lat',384 label:'纬度',385 width:'100',386 align:'center'387 },388 {389 prop: 'ddatetime',390 label: 'æ´æ°æ¶é´',391 width: '',392 align:'center'393 },394 ],395 //å
æ¶é¢è¦æ¥å396 warningReport: [397 {398 prop:'dataTime',399 label:'çææ¶é´',400 width:'200',401 align:'center'402 },403 {404 prop:'fileName',405 label:'æ¥åå称',406 width:'',407 align:'center'408 },409 ],410 //å°é£åº411 typhoonInfo:[412 {413 prop:'tsid',414 label:'å°é£ID',415 width:'100',416 align:'center'417 },418 {419 prop:'name',420 label:'å°é£å称',421 width:'80',422 align:'center'423 },424 {425 prop:'level',426 label:'å°é£ç级',427 width:'80',428 align:'center'429 },430 {431 prop:'landings',432 label:'ç»å½å°ç¹',433 width:'80',434 align:'center'435 },436 {437 prop:'landingsLevel',438 label:'ç»å½å¹¿ä¸ç强度',439 width:'120',440 align:'center'441 },442 {443 prop:'distance',444 label:'è·ç«ç¹(G2971)è·ç¦»(å
¬é)',445 width:'200',446 align:'center'447 },448 {449 prop:'landingsMonth',450 label:'ç»éæ份',451 width:'80',452 align:'center'453 },454 {455 prop:'maxWind',456 label:'èªå¨ç«æ大é£å(m/s)',457 width:'',458 align:'center'459 },460 {461 prop:'maxRain',462 label:'èªå¨ç«æ大æ¥é¨é(mm)',463 width:'',464 align:'center'465 },466 ],467 //å¼ç管ç468 duty:[469 {470 prop:'dutydate',471 label:'å¼çæ¥æ',472 width:'',473 align:''474 },//å¼çæ¥æ475 {476 prop:'leader',477 label:'å¼çé¢å¯¼',478 width:'',479 align:''480 },//å¼çé¢å¯¼481 {482 prop:'cheif',483 label:'é¦å¸å²',484 width:'',485 align:''486 },//é¦å¸å²487 {488 prop:'captain_day',489 label:'ç½å¤©é¢ç',490 width:'',491 align:''492 },//ç½å¤©é¢ç493 {494 prop:'short_impending',495 label:'ç临',496 width:'',497 align:''498 },//ç临499 {500 prop:'audit',501 label:'å®¡æ ¸',502 width:'',503 align:''504 },//å®¡æ ¸505 {506 prop:'captain_night',507 label:'å¤é´é¢ç',508 width:'',509 align:''510 },//å¤é´é¢ç511 {512 prop:'emergency_day',513 label:'åºæ¥ç½ç',514 width:'',515 align:''516 },//åºæ¥ç½ç517 {518 prop:'cheif_service',519 label:'æå¡é¦å¸',520 width:'',521 align:''522 },//æå¡é¦å¸523 {524 prop:'onbusiness',525 label:'åºå·®',526 width:'',527 align:''528 },//åºå·®529 {530 prop:'vacation',531 label:'ä¼å',532 width:'',533 align:''534 },//ä¼å535 {536 prop:'vice_day',537 label:'ç½å¤©å¯ç',538 width:'',539 align:''540 },//ç½å¤©å¯ç541 {542 prop:'vice_night',543 label:'å¤é´å¯ç',544 width:'',545 align:''546 },//å¤é´å¯ç547 {548 prop:'office',549 label:'åå
¬ç',550 width:'',551 align:''552 },//åå
¬ç553 {554 prop:'consultation',555 label:'ä¼å',556 width:'',557 align:''558 },//ä¼å559 {560 prop:'remark',561 label:'å¤æ³¨',562 width:'',563 align:''564 }//å¤æ³¨565 ],566 //ç¨æ·ç®¡ç567 users:[568 {569 prop:'account',570 label:'è´¦å·',571 align:'center',572 width:''573 },574 {575 prop:'name',576 label:'ç¨æ·å',577 align:'center',578 width:''579 },580 {581 prop:'nick',582 label:'å§å',583 align:'center',584 width:''585 },586 {587 prop:'phone',588 label:'ææºå·ç ',589 align:'center',590 width:''591 },592 {593 prop:'department',594 label:'é¨é¨',595 align:'center',596 width:''597 },598 {599 prop:'office',600 label:'ç§å®¤',601 align:'center',602 width:''603 },604 ],605 //åå¸ç³»ç»é¢è¦å½å
¥606 waringEntry:[607 {608 prop:'units',609 label:'åä½',610 width:'80',611 align:'center',612 },613 {614 prop:'time',615 label:'å½å
¥æ¶é´',616 width:'150',617 align:'center',618 },619 {620 prop:'typeWarn',621 label:'äºä»¶ç±»å',622 width:'120',623 align:'center',624 },625 {626 prop:'forecaster',627 label:'é¢æ¥å',628 width:'80',629 align:'center',630 },631 {632 prop:'signer',633 label:'ç¾å人',634 width:'80',635 align:'center',636 },637 {638 prop:'affirmNumber',639 label:'确认çµè¯',640 width:'120',641 align:'center',642 },643 {644 prop:'smsGroup',645 label:'ç信群',646 width:'100',647 align:'center',648 },649 /* // {650 // prop:'fax',651 // label:'ä¼ ç',652 // width:'',653 // align:'center',654 // },655 {656 prop:'web',657 label:'å¾®å',658 width:'',659 align:'center',660 },661 {662 prop:'wechat',663 label:'微信',664 width:'',665 align:'center',666 },667 {668 prop:'pNote',669 label:'ççª',670 width:'',671 align:'center',672 },673 {674 prop:'nNote',675 label:'æ¬å°çä¿¡',676 width:'',677 align:'center',678 },679 {680 prop:'website',681 label:'ç½ç«',682 width:'',683 align:'center',684 },685 {686 prop:'ftp',687 label:'FTP',688 width:'',689 align:'center',690 },691 {692 prop:'faxes',693 label:'ä¼ ç',694 width:'',695 align:'center',696 },*/697 {698 prop:'noteMessage',699 label:'é¢è¦æ¶æ¯',700 width:'200',701 align:'',702 },703 {704 prop:'noteMessage',705 label:'å¤æ³¨æ¶æ¯',706 width:'200',707 align:'',708 },709 // {710 // prop:'defense',711 // label:'å½é²',712 // width:'',713 // align:'center',714 // },715 ],716 //å¦æ ¡717 school:[718 {719 prop:'name',720 label:'å¦æ ¡å称',721 width:'250',722 align:'center',723 },724 {725 prop:'lat',726 label:'纬度',727 width:'120',728 align:'center',729 },730 {731 prop:'lon',732 label:'纬度',733 width:'120',734 align:'center',735 },736 {737 prop:'people',738 label:'å¦æ ¡äººæ°',739 width:'120',740 align:'center',741 },742 {743 prop:'manager',744 label:'è´è´£äºº',745 width:'120',746 align:'center',747 },748 {749 prop:'cellphone',750 label:'ææºå·',751 width:'120',752 align:'center',753 },754 {755 prop:'phone',756 label:'çµè¯å·ç ',757 width:'120',758 align:'center',759 },760 {761 prop:'address',762 label:'å°å',763 width:'',764 align:'center',765 }766 ],767 //å»é¢768 hospital:[769 {770 prop:'name',771 label:'å»é¢/è¯æå',772 width:'200',773 align:'center',774 },775 {776 prop:'lat',777 label:'纬度',778 width:'100',779 align:'center',780 },781 {782 prop:'lon',783 label:'ç»åº¦',784 width:'100',785 align:'center',786 },787 {788 prop:'ambulance',789 label:'ææ¤è½¦æ°é',790 width:'100',791 align:'center',792 },793 {794 prop:'beds',795 label:'åºä½',796 width:'60',797 align:'center',798 },799 {800 prop:'doctor',801 label:'å»ç人æ°',802 width:'80',803 align:'center',804 },805 {806 prop:'nurse',807 label:'æ¤å£«äººæ°',808 width:'80',809 align:'center',810 },811 {812 prop:'manager',813 label:'è´è´£äºº',814 width:'120',815 align:'center',816 },817 {818 prop:'phone',819 label:'çµè¯å·ç ',820 width:'100',821 align:'center',822 },823 {824 prop:'cellphone',825 label:'ææºå·',826 width:'120',827 align:'center',828 },829 {830 prop:'fax',831 label:'ä¼ çå·',832 width:'100',833 align:'',834 },835 {836 prop:'address',837 label:'å°å',838 width:'200',839 align:'center',840 },841 ],842 //å±ååä¼ä¸843 chemical:[844 {845 prop:'name',846 label:'å±ååä¼ä¸',847 width:'300',848 align:'center',849 },850 {851 prop:'lat',852 label:'纬度',853 width:'',854 align:'center',855 },856 {857 prop:'lon',858 label:'ç»åº¦',859 width:'',860 align:'center',861 },862 {863 prop:'type',864 label:'ç±»å',865 width:'120',866 align:'center',867 },868 {869 prop:'manager',870 label:'è´è´£äºº',871 width:'',872 align:'center',873 },874 {875 prop:'cellphone',876 label:'è´è´£äººçµè¯',877 width:'120',878 align:'center',879 },880 {881 prop:'reporter',882 label:'å¡«æ¥äºº',883 width:'',884 align:'center',885 },886 {887 prop:'reporterphone',888 label:'å¡«æ¥äººçµè¯',889 width:'120',890 align:'center',891 },892 {893 prop:'address',894 label:'å°å',895 width:'350',896 align:'center',897 },898 ],899 //é¿é¾æ900 shelter:[901 {902 prop:'name',903 label:'é¿é¾æ',904 width:'250',905 align:'center',906 },907 {908 prop:'lat',909 label:'纬度',910 width:'100',911 align:'center',912 },913 {914 prop:'lon',915 label:'ç»åº¦',916 width:'100',917 align:'center',918 },919 {920 prop:'manager',921 label:'è´è´£äºº',922 width:'80',923 align:'center',924 },925 {926 prop:'managerphone',927 label:'è´è´£äººçµè¯',928 width:'120',929 align:'center',930 },931 {932 prop:'managercellphone',933 label:'è´è´£äººææºå·ç ',934 width:'120',935 align:'center',936 },937 {938 prop:'contact',939 label:'è系人',940 width:'80',941 align:'center',942 },943 {944 prop:'contactphone',945 label:'è系人çµè¯',946 width:'120',947 align:'center',948 },949 {950 prop:'contactcellphone',951 label:'è系人ææºå·ç ',952 width:'120',953 align:'center',954 },955 {956 prop:'area',957 label:'å å°é¢ç§¯(å¹³æ¹ç±³)',958 width:'130',959 align:'center',960 },961 {962 prop:'people',963 label:'容纳人æ°',964 width:'80',965 align:'center',966 },967 {968 prop:'address',969 label:'å°å',970 width:'400',971 align:'center',972 },973 ],974 //人å£ç»æµ975 economy:[976 {977 prop:'name',978 label:'å°å',979 width:'140',980 align:'center',981 },982 {983 prop:'lat',984 label:'纬度',985 width:'100',986 align:'center',987 },988 {989 prop:'lon',990 label:'ç»åº¦',991 width:'100',992 align:'center',993 },994 {995 prop:'people',996 label:'æ»äººå£',997 width:'80',998 align:'center',999 },1000 {1001 prop:'gdp',1002 label:'gdpææ°',1003 width:'80',1004 align:'center',1005 },1006 {1007 prop:'area',1008 label:'å å°é¢ç§¯(å
¬é¡·)',1009 width:'120',1010 align:'center',1011 },1012 {1013 prop:'plough',1014 label:'èå°é¢ç§¯(å
¬é¡·)',1015 width:'120',1016 align:'center',1017 },1018 {1019 prop:'agriculture',1020 label:'åä¸äº§å¼(ä¸å
)',1021 width:'120',1022 align:'center',1023 },1024 {1025 prop:'aquaculture',1026 label:'水产å
»æ®é¢ç§¯(å
¬é¡·)',1027 width:'150',1028 align:'center',1029 },1030 {1031 prop:'industrial',1032 label:'å·¥ä¸ç¨çµ(åç¦/å°æ¶)',1033 width:'150',1034 align:'center',1035 },1036 {1037 prop:'irrigationarea',1038 label:'çæºé¢ç§¯(å
¬é¡·)',1039 width:'130',1040 align:'center',1041 },1042 {1043 prop:'fruit',1044 label:'ææç§æ¤é¢ç§¯(å
¬é¡·)',1045 width:'150',1046 align:'center',1047 },1048 ],1049 //ä¸å®¶åº1050 experts:[],1051 //å°åç¾å®³1052 geohazard:[],1053//ææ´éä¼1054 rescueteam:[1055 {1056 prop:'name',1057 label:'éä¼å称',1058 width:'250',1059 align:'center',1060 },1061 {1062 prop:'department',1063 label:'æå±é¨é¨',1064 width:'250',1065 align:'center',1066 },1067 {1068 prop:'teamtype',1069 label:'éä¼ç±»å',1070 width:'250',1071 align:'center',1072 },1073 {1074 prop:'lat',1075 label:'纬度',1076 width:'250',1077 align:'center',1078 },1079 {1080 prop:'lon',1081 label:'ç»åº¦',1082 width:'250',1083 align:'center',1084 },1085 {1086 prop:'people',1087 label:'éä¼äººæ°',1088 width:'100',1089 align:'center',1090 },1091 {1092 prop:'manager',1093 label:'è´è´£äºº',1094 width:'250',1095 align:'center',1096 },1097 {1098 prop:'managercellphone',1099 label:'è´è´£äººææºå·',1100 width:'250',1101 align:'center',1102 },1103 {1104 prop:'managerphone',1105 label:'è´è´£äººçµè¯',1106 width:'150',1107 align:'center'1108 },1109 {1110 prop:'teamcontact',1111 label:'è系人',1112 width:'250',1113 align:'center',1114 },1115 {1116 prop:'contactcellphone',1117 label:'è系人ææºå·',1118 width:'250',1119 align:'center',1120 },1121 {1122 prop:'contactphone',1123 label:'è系人çµè¯',1124 width:'250',1125 align:'center',1126 },1127 {1128 prop:'address',1129 label:'å°å',1130 width:'250',1131 align:'center',1132 },1133 ],1134//ææ´ç©èµ1135 material:[1136 {1137 prop:'name',1138 label:'å称',1139 width:'250',1140 align:'center',1141 },1142 {1143 prop:'lat',1144 label:'纬度',1145 width:'250',1146 align:'center',1147 },1148 {1149 prop:'lon',1150 label:'ç»åº¦',1151 width:'250',1152 align:'center',1153 },1154 {1155 prop:'amount',1156 label:'æ»é¢',1157 width:'250',1158 align:'center',1159 },1160 {1161 prop:'contact',1162 label:'è系人',1163 width:'250',1164 align:'center',1165 },1166 {1167 prop:'contactcellphone',1168 label:'è系人ææºå·',1169 width:'250',1170 align:'center',1171 },1172 {1173 prop:'contactphone',1174 label:'è系人çµè¯',1175 width:'250',1176 align:'center',1177 },1178 {1179 prop:'department',1180 label:'æå±é¨é¨',1181 width:'250',1182 align:'center',1183 },1184 {1185 prop:'departmentphone',1186 label:'é¨é¨çµè¯',1187 width:'250',1188 align:'center',1189 },1190 {1191 prop:'purpose',1192 label:'ç¨é',1193 width:'250',1194 align:'center',1195 },1196 {1197 prop:'reporttime',1198 label:'ä¸æ¥æ¶é´',1199 width:'250',1200 align:'center',1201 },1202 {1203 prop:'unit',1204 label:'åä½',1205 width:'250',1206 align:'center',1207 },1208 {1209 prop:'address',1210 label:'å°å',1211 width:'250',1212 align:'center',1213 },1214 ],1215//é讯å½1216 mail:[1217 {1218 prop:'name',1219 label:'å§å',1220 width:'',1221 align:'center',1222 },1223 {1224 prop:'title',1225 label:'èä½',1226 width:'',1227 align:'center',1228 },1229 {1230 prop:'department',1231 label:'é¨é¨',1232 width:'',1233 align:'center',1234 },1235 {1236 prop:'cellphone',1237 label:'ææºå·ç ',1238 width:'',1239 align:'center',1240 },1241 {1242 prop:'phone',1243 label:'çµè¯',1244 width:'',1245 align:'center',1246 }1247 ],1248//é¢æ¡å½å
¥1249 PlansEntry:[1250 {1251 prop:'e_name',1252 label:'é¢æ¡ç±»å',1253 width:'150',1254 align:'center',1255 },1256 {1257 prop:'level',1258 label:'é¢æ¡ç级',1259 width:'',1260 align:'center',1261 },1262 {1263 prop:'department',1264 label:'é¨é¨',1265 width:'',1266 align:'center',1267 },1268 {1269 prop:'measure',1270 label:'åä½é¢æ¡',1271 width:'',1272 align:'center',1273 },1274 {1275 prop:'detail',1276 label:'çä¿¡',1277 width:'',1278 align:'center',1279 },1280 ],1281//åå²é¢æ¡1282 HistoryPlan:[1283 {1284 prop:'emergencyname',1285 label:'äºä»¶å称',1286 width:'150',1287 align:'center',1288 },1289 {1290 prop:'emergencytype',1291 label:'äºä»¶ç±»å',1292 width:'150',1293 align:'center',1294 },1295 {1296 prop:'responsegrade',1297 label:'ååºç级',1298 width:'150',1299 align:'center',1300 },1301 {1302 prop:'unit',1303 label:'æååä½',1304 width:'150',1305 align:'center',1306 },1307 {1308 prop:'memo',1309 label:'å·¥ä½å¤å¿',1310 width:'',1311 align:'center',1312 },1313 ],1314//ç»ç»æºæé¨é¨è´è´£äºº1315 InstiFrame:[1316 {1317 prop:'name',1318 label:'å§å',1319 width:'',1320 align:'center',1321 },1322 {1323 prop:'department',1324 label:'é¨é¨',1325 width:'',1326 align:'center',1327 },1328 {1329 prop:'position',1330 label:'èä½',1331 width:'',1332 align:'center',1333 },1334 {1335 prop:'phone',1336 label:'çµè¯',1337 width:'',1338 align:'center',1339 },1340 {1341 prop:'cellphone',1342 label:'ææºå·',1343 width:'',1344 align:'center',1345 },1346 ],1347//ä¸å®¶åºä¿¡æ¯1348 expertDatabase:[1349 {1350 prop:'name',1351 label:'å§å',1352 width:'',1353 align:'center',1354 },1355 {1356 prop:'department',1357 label:'æå±é¨é¨',1358 width:'',1359 align:'center',1360 } ,1361 {1362 prop:'address',1363 label:'å±
ä½å°',1364 width:'',1365 align:'center',1366 },1367 {1368 prop:'phone',1369 label:'çµè¯',1370 width:'',1371 align:'center',1372 },1373 {1374 prop:'cellphone',1375 label:'ææºå·',1376 width:'',1377 align:'center',1378 }1379 ],1380//é¢æ¡æ¨¡æ¿çäºä»¶ç±»å1381 PTAlertInfo:[1382 {1383 prop:'e_name',1384 label:'é¢æ¡å称',1385 width:'',1386 align:'center',1387 },1388 {1389 prop:'starttip',1390 label:'å¯å¨æ示',1391 width:'',1392 align:'center',1393 },1394 {1395 prop:'downtip',1396 label:'é级æ示',1397 width:'',1398 align:'center',1399 },1400 {1401 prop:'uptip',1402 label:'å级æ示',1403 width:'',1404 align:'center',1405 },1406 {1407 prop:'finishtip',1408 label:'ç»ææ示',1409 width:'',1410 align:'center',1411 },1412 {1413 prop:'description',1414 label:'æè¿°',1415 width:'',1416 align:'center',1417 },1418 ],1419//é¢æ¡æ¨¡æ¿çå·¥ä½å¤å¿1420 PTWorkingMemo: [1421 {1422 prop:'name',1423 label:'å¤å¿å
容',1424 width:'',1425 align:'center',1426 }1427 ],1428 //ç¾æ
å®¡æ ¸1429 disasterAudit:[1430 {1431 prop:'disaster',1432 label:'ç¾æ
ç±»å',1433 width:'150',1434 align:'center',1435 },1436 {1437 prop:'remarks',1438 label:'ç¾æ
å
容',1439 width:'250',1440 align:'center',1441 },1442 {1443 prop:'starttime',1444 label:'ç¾æ
åçæ¶é´',1445 width:'150',1446 align:'center',1447 },1448 {1449 prop:'economyLoss',1450 label:'ç»æµæ失(ä¸å
)',1451 width:'120',1452 align:'center',1453 },1454 {1455 prop:'injuryPerson',1456 label:'æ»äº¡äººæ°(人)',1457 width:'120',1458 align:'center',1459 },1460 {1461 prop:'releaseUnit',1462 label:'ä¸æ¥åä½',1463 width:'120',1464 align:'center',1465 },1466 {1467 prop:'reportMan',1468 label:'ä¸æ¥äºº',1469 width:'80',1470 align:'center',1471 },1472 ],1473 //åå²ç¾æ
1474 disasterHistory:[1475 {1476 prop:'disaster',1477 label:'ç¾æ
ç±»å',1478 width:'150',1479 align:'center',1480 },1481 {1482 prop:'remarks',1483 label:'ç¾æ
å
容',1484 width:'250',1485 align:'center',1486 },1487 {1488 prop:'starttime',1489 label:'ç¾æ
åçæ¶é´',1490 width:'150',1491 align:'center',1492 },1493 {1494 prop:'economyLoss',1495 label:'ç»æµæ失(ä¸å
)',1496 width:'120',1497 align:'center',1498 },1499 {1500 prop:'injuryPerson',1501 label:'æ»äº¡äººæ°(人)',1502 width:'120',1503 align:'center',1504 },1505 {1506 prop:'releaseUnit',1507 label:'ä¸æ¥åä½',1508 width:'120',1509 align:'center',1510 },1511 {1512 prop:'reportMan',1513 label:'ä¸æ¥äºº',1514 width:'80',1515 align:'center',1516 },1517 ],1518 //åå¸ç³»ç»æ¨¡æ¿ç®¡ç1519 templateManage:[1520 {1521 prop:'id',1522 label:'ç¼å·',1523 width:'50',1524 align:'center',1525 },1526 {1527 prop:'forecaster',1528 label:'é¢æ¥å',1529 width:'100',1530 align:'center',1531 },1532 {1533 prop:'signer',1534 label:'ç¾å人',1535 width:'100',1536 align:'center',1537 },1538 {1539 prop:'affirmNumber',1540 label:'确认æ°é',1541 width:'100',1542 align:'center',1543 },1544 {1545 prop:'fax',1546 label:'ä¼ çå·',1547 width:'150',1548 align:'center',1549 },1550 {1551 prop:'units',1552 label:'åå¸åä½',1553 width:'150',1554 align:'center',1555 },1556 {1557 prop:'warnType',1558 label:'é¢è¦ç±»å',1559 width:'100',1560 align:'center',1561 },1562 ]...
properties_data_modifier.py
Source:properties_data_modifier.py
...39 def ARMATURE(self, layout, ob, md):40 split = layout.split()41 col = split.column()42 col.label(text="Object:")43 col.prop(md, "object", text="")44 col.prop(md, "use_deform_preserve_volume")45 col = split.column()46 col.label(text="Bind To:")47 col.prop(md, "use_vertex_groups", text="Vertex Groups")48 col.prop(md, "use_bone_envelopes", text="Bone Envelopes")49 layout.separator()50 row = layout.row()51 row.prop_search(md, "vertex_group", ob, "vertex_groups", text="")52 sub = row.row()53 sub.active = bool(md.vertex_group)54 sub.prop(md, "invert_vertex_group")55 layout.prop(md, "use_multi_modifier")56 def ARRAY(self, layout, ob, md):57 layout.prop(md, "fit_type")58 if md.fit_type == 'FIXED_COUNT':59 layout.prop(md, "count")60 elif md.fit_type == 'FIT_LENGTH':61 layout.prop(md, "fit_length")62 elif md.fit_type == 'FIT_CURVE':63 layout.prop(md, "curve")64 layout.separator()65 split = layout.split()66 col = split.column()67 col.prop(md, "use_constant_offset")68 sub = col.column()69 sub.active = md.use_constant_offset70 sub.prop(md, "constant_offset_displace", text="")71 col.separator()72 col.prop(md, "use_merge_vertices", text="Merge")73 sub = col.column()74 sub.active = md.use_merge_vertices75 sub.prop(md, "use_merge_vertices_cap", text="First Last")76 sub.prop(md, "merge_threshold", text="Distance")77 col = split.column()78 col.prop(md, "use_relative_offset")79 sub = col.column()80 sub.active = md.use_relative_offset81 sub.prop(md, "relative_offset_displace", text="")82 col.separator()83 col.prop(md, "use_object_offset")84 sub = col.column()85 sub.active = md.use_object_offset86 sub.prop(md, "offset_object", text="")87 layout.separator()88 layout.prop(md, "start_cap")89 layout.prop(md, "end_cap")90 def BEVEL(self, layout, ob, md):91 split = layout.split()92 split.prop(md, "width")93 split.prop(md, "use_only_vertices")94 layout.label(text="Limit Method:")95 layout.row().prop(md, "limit_method", expand=True)96 if md.limit_method == 'ANGLE':97 layout.prop(md, "angle_limit")98 elif md.limit_method == 'WEIGHT':99 layout.row().prop(md, "edge_weight_method", expand=True)100 def BOOLEAN(self, layout, ob, md):101 split = layout.split()102 col = split.column()103 col.label(text="Operation:")104 col.prop(md, "operation", text="")105 col = split.column()106 col.label(text="Object:")107 col.prop(md, "object", text="")108 def BUILD(self, layout, ob, md):109 split = layout.split()110 col = split.column()111 col.prop(md, "frame_start")112 col.prop(md, "frame_duration")113 col = split.column()114 col.prop(md, "use_random_order")115 sub = col.column()116 sub.active = md.use_random_order117 sub.prop(md, "seed")118 def CAST(self, layout, ob, md):119 split = layout.split(percentage=0.25)120 split.label(text="Cast Type:")121 split.prop(md, "cast_type", text="")122 split = layout.split(percentage=0.25)123 col = split.column()124 col.prop(md, "use_x")125 col.prop(md, "use_y")126 col.prop(md, "use_z")127 col = split.column()128 col.prop(md, "factor")129 col.prop(md, "radius")130 col.prop(md, "size")131 col.prop(md, "use_radius_as_size")132 split = layout.split()133 col = split.column()134 col.label(text="Vertex Group:")135 col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")136 col = split.column()137 col.label(text="Control Object:")138 col.prop(md, "object", text="")139 if md.object:140 col.prop(md, "use_transform")141 def CLOTH(self, layout, ob, md):142 layout.label(text="Settings can be found inside the Physics context")143 def COLLISION(self, layout, ob, md):144 layout.label(text="Settings can be found inside the Physics context")145 def CURVE(self, layout, ob, md):146 split = layout.split()147 col = split.column()148 col.label(text="Object:")149 col.prop(md, "object", text="")150 col = split.column()151 col.label(text="Vertex Group:")152 col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")153 layout.label(text="Deformation Axis:")154 layout.row().prop(md, "deform_axis", expand=True)155 def DECIMATE(self, layout, ob, md):156 layout.prop(md, "ratio")157 layout.label(text="Face Count: %s" % str(md.face_count))158 def DISPLACE(self, layout, ob, md):159 split = layout.split()160 col = split.column()161 col.label(text="Texture:")162 col.template_ID(md, "texture", new="texture.new")163 col.label(text="Vertex Group:")164 col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")165 col = split.column()166 col.label(text="Direction:")167 col.prop(md, "direction", text="")168 col.label(text="Texture Coordinates:")169 col.prop(md, "texture_coords", text="")170 if md.texture_coords == 'OBJECT':171 layout.prop(md, "texture_coords_object", text="Object")172 elif md.texture_coords == 'UV' and ob.type == 'MESH':173 layout.prop_search(md, "uv_layer", ob.data, "uv_textures")174 layout.separator()175 row = layout.row()176 row.prop(md, "mid_level")177 row.prop(md, "strength")178 def EDGE_SPLIT(self, layout, ob, md):179 split = layout.split()180 col = split.column()181 col.prop(md, "use_edge_angle", text="Edge Angle")182 sub = col.column()183 sub.active = md.use_edge_angle184 sub.prop(md, "split_angle")185 split.prop(md, "use_edge_sharp", text="Sharp Edges")186 def EXPLODE(self, layout, ob, md):187 split = layout.split()188 col = split.column()189 col.label(text="Vertex group:")190 col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")191 sub = col.column()192 sub.active = bool(md.vertex_group)193 sub.prop(md, "protect")194 col.label(text="Particle UV")195 col.prop_search(md, "particle_uv", ob.data, "uv_textures", text="")196 col = split.column()197 col.prop(md, "use_edge_cut")198 col.prop(md, "show_unborn")199 col.prop(md, "show_alive")200 col.prop(md, "show_dead")201 col.prop(md, "use_size")202 layout.operator("object.explode_refresh", text="Refresh")203 def FLUID_SIMULATION(self, layout, ob, md):204 layout.label(text="Settings can be found inside the Physics context")205 def HOOK(self, layout, ob, md):206 split = layout.split()207 col = split.column()208 col.label(text="Object:")209 col.prop(md, "object", text="")210 if md.object and md.object.type == 'ARMATURE':211 col.label(text="Bone:")212 col.prop_search(md, "subtarget", md.object.data, "bones", text="")213 col = split.column()214 col.label(text="Vertex Group:")215 col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")216 layout.separator()217 split = layout.split()218 col = split.column()219 col.prop(md, "falloff")220 col.prop(md, "force", slider=True)221 col = split.column()222 col.operator("object.hook_reset", text="Reset")223 col.operator("object.hook_recenter", text="Recenter")224 if ob.mode == 'EDIT':225 layout.separator()226 row = layout.row()227 row.operator("object.hook_select", text="Select")228 row.operator("object.hook_assign", text="Assign")229 def LATTICE(self, layout, ob, md):230 split = layout.split()231 col = split.column()232 col.label(text="Object:")233 col.prop(md, "object", text="")234 col = split.column()235 col.label(text="Vertex Group:")236 col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")237 def MASK(self, layout, ob, md):238 split = layout.split()239 col = split.column()240 col.label(text="Mode:")241 col.prop(md, "mode", text="")242 col = split.column()243 if md.mode == 'ARMATURE':244 col.label(text="Armature:")245 col.prop(md, "armature", text="")246 elif md.mode == 'VERTEX_GROUP':247 col.label(text="Vertex Group:")248 col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")249 sub = col.column()250 sub.active = bool(md.vertex_group)251 sub.prop(md, "invert_vertex_group")252 def MESH_DEFORM(self, layout, ob, md):253 split = layout.split()254 col = split.column()255 sub = col.column()256 sub.label(text="Object:")257 sub.prop(md, "object", text="")258 sub.active = not md.is_bound259 col = split.column()260 col.label(text="Vertex Group:")261 col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")262 sub = col.column()263 sub.active = bool(md.vertex_group)264 sub.prop(md, "invert_vertex_group")265 layout.separator()266 if md.is_bound:267 layout.operator("object.meshdeform_bind", text="Unbind")268 else:269 layout.operator("object.meshdeform_bind", text="Bind")270 row = layout.row()271 row.prop(md, "precision")272 row.prop(md, "use_dynamic_bind")273 def MIRROR(self, layout, ob, md):274 split = layout.split(percentage=0.25)275 col = split.column()276 col.label(text="Axis:")277 col.prop(md, "use_x")278 col.prop(md, "use_y")279 col.prop(md, "use_z")280 col = split.column()281 col.label(text="Options:")282 col.prop(md, "use_mirror_merge", text="Merge")283 col.prop(md, "use_clip", text="Clipping")284 col.prop(md, "use_mirror_vertex_groups", text="Vertex Groups")285 col = split.column()286 col.label(text="Textures:")287 col.prop(md, "use_mirror_u", text="U")288 col.prop(md, "use_mirror_v", text="V")289 col = layout.column()290 if md.use_mirror_merge == True:291 col.prop(md, "merge_threshold")292 col.label(text="Mirror Object:")293 col.prop(md, "mirror_object", text="")294 def MULTIRES(self, layout, ob, md):295 layout.row().prop(md, "subdivision_type", expand=True)296 split = layout.split()297 col = split.column()298 col.prop(md, "levels", text="Preview")299 col.prop(md, "sculpt_levels", text="Sculpt")300 col.prop(md, "render_levels", text="Render")301 col = split.column()302 col.enabled = ob.mode != 'EDIT'303 col.operator("object.multires_subdivide", text="Subdivide")304 col.operator("object.multires_higher_levels_delete", text="Delete Higher")305 col.operator("object.multires_reshape", text="Reshape")306 col.operator("object.multires_base_apply", text="Apply Base")307 col.prop(md, "use_subsurf_uv")308 col.prop(md, "show_only_control_edges")309 layout.separator()310 col = layout.column()311 row = col.row()312 if md.is_external:313 row.operator("object.multires_external_pack", text="Pack External")314 row.label()315 row = col.row()316 row.prop(md, "filepath", text="")317 else:318 row.operator("object.multires_external_save", text="Save External...")319 row.label()320 def PARTICLE_INSTANCE(self, layout, ob, md):321 layout.prop(md, "object")322 layout.prop(md, "particle_system_index", text="Particle System")323 split = layout.split()324 col = split.column()325 col.label(text="Create From:")326 col.prop(md, "use_normal")327 col.prop(md, "use_children")328 col.prop(md, "use_size")329 col = split.column()330 col.label(text="Show Particles When:")331 col.prop(md, "show_alive")332 col.prop(md, "show_unborn")333 col.prop(md, "show_dead")334 layout.separator()335 layout.prop(md, "use_path", text="Create Along Paths")336 split = layout.split()337 split.active = md.use_path338 col = split.column()339 col.row().prop(md, "axis", expand=True)340 col.prop(md, "use_preserve_shape")341 col = split.column()342 col.prop(md, "position", slider=True)343 col.prop(md, "random_position", text="Random", slider=True)344 def PARTICLE_SYSTEM(self, layout, ob, md):345 layout.label(text="Settings can be found inside the Particle context")346 def SCREW(self, layout, ob, md):347 split = layout.split()348 col = split.column()349 col.prop(md, "axis")350 col.prop(md, "object", text="AxisOb")351 col.prop(md, "angle")352 col.prop(md, "steps")353 col.prop(md, "render_steps")354 col = split.column()355 row = col.row()356 row.active = (md.object is None or md.use_object_screw_offset == False)357 row.prop(md, "screw_offset")358 row = col.row()359 row.active = (md.object is not None)360 row.prop(md, "use_object_screw_offset")361 col.prop(md, "use_normal_calculate")362 col.prop(md, "use_normal_flip")363 col.prop(md, "iterations")364 def SHRINKWRAP(self, layout, ob, md):365 split = layout.split()366 col = split.column()367 col.label(text="Target:")368 col.prop(md, "target", text="")369 col = split.column()370 col.label(text="Vertex Group:")371 col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")372 split = layout.split()373 col = split.column()374 col.prop(md, "offset")375 col.prop(md, "subsurf_levels")376 col = split.column()377 col.label(text="Mode:")378 col.prop(md, "wrap_method", text="")379 if md.wrap_method == 'PROJECT':380 split = layout.split(percentage=0.25)381 col = split.column()382 col.label(text="Axis:")383 col.prop(md, "use_project_x")384 col.prop(md, "use_project_y")385 col.prop(md, "use_project_z")386 col = split.column()387 col.label(text="Direction:")388 col.prop(md, "use_negative_direction")389 col.prop(md, "use_positive_direction")390 col = split.column()391 col.label(text="Cull Faces:")392 col.prop(md, "cull_face", expand=True)393 layout.label(text="Auxiliary Target:")394 layout.prop(md, "auxiliary_target", text="")395 elif md.wrap_method == 'NEAREST_SURFACEPOINT':396 layout.prop(md, "use_keep_above_surface")397 def SIMPLE_DEFORM(self, layout, ob, md):398 split = layout.split()399 col = split.column()400 col.label(text="Mode:")401 col.prop(md, "deform_method", text="")402 col = split.column()403 col.label(text="Vertex Group:")404 col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")405 split = layout.split()406 col = split.column()407 col.label(text="Origin:")408 col.prop(md, "origin", text="")409 sub = col.column()410 sub.active = (md.origin is not None)411 sub.prop(md, "use_relative")412 col = split.column()413 col.label(text="Deform:")414 col.prop(md, "factor")415 col.prop(md, "limits", slider=True)416 if md.deform_method in {'TAPER', 'STRETCH'}:417 col.prop(md, "lock_x")418 col.prop(md, "lock_y")419 def SMOKE(self, layout, ob, md):420 layout.label(text="Settings can be found inside the Physics context")421 def SMOOTH(self, layout, ob, md):422 split = layout.split(percentage=0.25)423 col = split.column()424 col.label(text="Axis:")425 col.prop(md, "use_x")426 col.prop(md, "use_y")427 col.prop(md, "use_z")428 col = split.column()429 col.prop(md, "factor")430 col.prop(md, "iterations")431 col.label(text="Vertex Group:")432 col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")433 def SOFT_BODY(self, layout, ob, md):434 layout.label(text="See Soft Body panel.")435 436 def RTPS(self, layout, ob, md):437 layout.row().prop(md, "system", expand=True)438 #layout.prop(md, "system")439 if md.system == "SIMPLE":440 layout.label(text="Maximum number of particles:")441 layout.prop(md, "max_num")442 if md.system == "SPH":443 split = layout.split()444 col = split.column()445 #col.label(text="Maximum number of particles:")446 col.prop(md, "max_num")447 col.prop(md, "dt")448 col.prop(md, "sub_intervals")449 col.prop(md, "collision")450 col.prop(md, "gravity")451 col.prop(md, "gas_constant")452 col.prop(md, "viscosity")453 col.prop(md, "velocity_limit")454 col.prop(md, "xsph_factor")455 col.prop(md, "boundary_stiffness")456 col.prop(md, "boundary_dampening")457 col = split.column()458 col.label(text="Rendering options")459 #col.prop(md, "glsl")460 col.prop(md, "blending")461 #layout.prop(md, "radius")462 col.prop(md, "render_type")463 if md.render_type == "SPRITE":464 col.prop(md, "render_radius_scale")465 if md.render_type == "SSF":466 col.prop(md, "render_radius_scale")467 col.prop(md, "render_blur_scale")468 #row = split.row()469 #col = row.col()470 #split2 = col.split()471 #row = split2.row()472 #col = row.col()473 474 elif md.system == "BOIDS":475 split = layout.split(percentage=0.5)476 col = split.column()477 478 col.label(text="Simulation Parameters")479 col.prop(md, "max_num")480 col.prop(md, "dt")481 col.prop(md, "dim")482 483 col.label(text="Flock Parameters")484 col.prop(md, "maxspeed", text="MaxSpeed")485 col.prop(md, "separationdist", text="SeparationDist")486 col.prop(md, "searchradius", text="SearchRadius")487 col.prop(md, "angular_velocity", text="AngularVel")488 489 col = split.column()490 491 col.label(text="Render Type")492 col.prop(md, "render_type", text="")493 if md.render_type == "SSF" or md.render_type == "SPRITE" or md.render_type == "SPHERE":494 col.prop(md, "render_radius_scale")495 col.prop(md, "render_blur_scale")496 #col.prop(md, "glsl")497 #col.prop(md, "blending")498 col.label(text="Weights of the Rules")499 col.prop(md, "w_sep", text="Separation", slider=True)500 col.prop(md, "w_align", text="Alignment", slider=True)501 col.prop(md, "w_coh", text="Cohesion", slider=True)502 def SOLIDIFY(self, layout, ob, md):503 split = layout.split()504 col = split.column()505 col.prop(md, "thickness")506 col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")507 col.label(text="Crease:")508 col.prop(md, "edge_crease_inner", text="Inner")509 col.prop(md, "edge_crease_outer", text="Outer")510 col.prop(md, "edge_crease_rim", text="Rim")511 col.label(text="Material Index Offset:")512 col = split.column()513 col.prop(md, "offset")514 sub = col.column()515 sub.active = bool(md.vertex_group)516 sub.prop(md, "invert_vertex_group", text="Invert")517 sub.prop(md, "thickness_vertex_group", text="Factor")518 col.prop(md, "use_even_offset")519 col.prop(md, "use_quality_normals")520 col.prop(md, "use_rim")521 sub = col.column()522 row = sub.split(align=True, percentage=0.4)523 row.prop(md, "material_offset", text="")524 row = row.row()525 row.active = md.use_rim526 row.prop(md, "material_offset_rim", text="Rim")527 def SUBSURF(self, layout, ob, md):528 layout.row().prop(md, "subdivision_type", expand=True)529 split = layout.split()530 col = split.column()531 col.label(text="Subdivisions:")532 col.prop(md, "levels", text="View")533 col.prop(md, "render_levels", text="Render")534 col = split.column()535 col.label(text="Options:")536 col.prop(md, "use_subsurf_uv")537 col.prop(md, "show_only_control_edges")538 def SURFACE(self, layout, ob, md):539 layout.label(text="Settings can be found inside the Physics context")540 def UV_PROJECT(self, layout, ob, md):541 if ob.type == 'MESH':542 split = layout.split()543 col = split.column()544 col.label(text="Image:")545 col.prop(md, "image", text="")546 col = split.column()547 col.label(text="UV Layer:")548 col.prop_search(md, "uv_layer", ob.data, "uv_textures", text="")549 split = layout.split()550 col = split.column()551 col.prop(md, "use_image_override")552 col.prop(md, "projector_count", text="Projectors")553 for proj in md.projectors:554 col.prop(proj, "object", text="")555 col = split.column()556 sub = col.column(align=True)557 sub.prop(md, "aspect_x", text="Aspect X")558 sub.prop(md, "aspect_y", text="Aspect Y")559 sub = col.column(align=True)560 sub.prop(md, "scale_x", text="Scale X")561 sub.prop(md, "scale_y", text="Scale Y")562 def WARP(self, layout, ob, md):563 use_falloff = (md.falloff_type != 'NONE')564 split = layout.split()565 col = split.column()566 col.label(text="From:")567 col.prop(md, "object_from", text="")568 col.prop(md, "use_volume_preserve")569 col = split.column()570 col.label(text="To:")571 col.prop(md, "object_to", text="")572 col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")573 col = layout.column()574 row = col.row(align=True)575 row.prop(md, "strength")576 if use_falloff:577 row.prop(md, "falloff_radius")578 col.prop(md, "falloff_type")579 if use_falloff:580 if md.falloff_type == 'CURVE':581 col.template_curve_mapping(md, "falloff_curve")582 # 2 new columns583 split = layout.split()584 col = split.column()585 col.label(text="Texture:")586 col.prop(md, "texture", text="")587 col = split.column()588 col.label(text="Texture Coordinates:")589 col.prop(md, "texture_coords", text="")590 if md.texture_coords == 'OBJECT':591 layout.prop(md, "texture_coords_object", text="Object")592 elif md.texture_coords == 'UV' and ob.type == 'MESH':593 layout.prop_search(md, "uv_layer", ob.data, "uv_textures")594 def WAVE(self, layout, ob, md):595 split = layout.split()596 col = split.column()597 col.label(text="Motion:")598 col.prop(md, "use_x")599 col.prop(md, "use_y")600 col.prop(md, "use_cyclic")601 col = split.column()602 col.prop(md, "use_normal")603 sub = col.column()604 sub.active = md.use_normal605 sub.prop(md, "use_normal_x", text="X")606 sub.prop(md, "use_normal_y", text="Y")607 sub.prop(md, "use_normal_z", text="Z")608 split = layout.split()609 col = split.column()610 col.label(text="Time:")611 sub = col.column(align=True)612 sub.prop(md, "time_offset", text="Offset")613 sub.prop(md, "lifetime", text="Life")614 col.prop(md, "damping_time", text="Damping")615 col = split.column()616 col.label(text="Position:")617 sub = col.column(align=True)618 sub.prop(md, "start_position_x", text="X")619 sub.prop(md, "start_position_y", text="Y")620 col.prop(md, "falloff_radius", text="Falloff")621 layout.separator()622 layout.prop(md, "start_position_object")623 layout.prop_search(md, "vertex_group", ob, "vertex_groups")624 split = layout.split(percentage=0.33)625 col = split.column()626 col.label(text="Texture")627 col = split.column()628 col.template_ID(md, "texture", new="texture.new")629 layout.prop(md, "texture_coords")630 if md.texture_coords == 'MAP_UV' and ob.type == 'MESH':631 layout.prop_search(md, "uv_layer", ob.data, "uv_textures")632 elif md.texture_coords == 'OBJECT':633 layout.prop(md, "texture_coords_object")634 layout.separator()635 split = layout.split()636 col = split.column()637 col.prop(md, "speed", slider=True)638 col.prop(md, "height", slider=True)639 col = split.column()640 col.prop(md, "width", slider=True)641 col.prop(md, "narrowness", slider=True)642if __name__ == "__main__": # only for live edit....
styleProps.js
Source:styleProps.js
1import PropTypes from "prop-types";2const styleProps = {3 /** The description for myProp */4 gridTemplateColumns: PropTypes.oneOfType([5 PropTypes.number,6 PropTypes.string,7 PropTypes.object8 ]),9 gridGap: PropTypes.oneOfType([10 PropTypes.number,11 PropTypes.string,12 PropTypes.object13 ]),14 pointerEvents: PropTypes.oneOfType([15 PropTypes.number,16 PropTypes.string,17 PropTypes.object18 ]),19 alignContent: PropTypes.oneOfType([20 PropTypes.number,21 PropTypes.string,22 PropTypes.object23 ]),24 alignItems: PropTypes.oneOfType([25 PropTypes.number,26 PropTypes.string,27 PropTypes.object28 ]),29 alignSelf: PropTypes.oneOfType([30 PropTypes.number,31 PropTypes.string,32 PropTypes.object33 ]),34 animation: PropTypes.oneOfType([35 PropTypes.number,36 PropTypes.string,37 PropTypes.object38 ]),39 animationDelay: PropTypes.oneOfType([40 PropTypes.number,41 PropTypes.string,42 PropTypes.object43 ]),44 animationDirection: PropTypes.oneOfType([45 PropTypes.number,46 PropTypes.string,47 PropTypes.object48 ]),49 animationDuration: PropTypes.oneOfType([50 PropTypes.number,51 PropTypes.string,52 PropTypes.object53 ]),54 animationFillMode: PropTypes.oneOfType([55 PropTypes.number,56 PropTypes.string,57 PropTypes.object58 ]),59 animationIterationCount: PropTypes.oneOfType([60 PropTypes.number,61 PropTypes.string,62 PropTypes.object63 ]),64 animationName: PropTypes.oneOfType([65 PropTypes.number,66 PropTypes.string,67 PropTypes.object68 ]),69 animationTimingFunction: PropTypes.oneOfType([70 PropTypes.number,71 PropTypes.string,72 PropTypes.object73 ]),74 animationPlayState: PropTypes.oneOfType([75 PropTypes.number,76 PropTypes.string,77 PropTypes.object78 ]),79 background: PropTypes.oneOfType([80 PropTypes.number,81 PropTypes.string,82 PropTypes.object83 ]),84 backgroundAttachment: PropTypes.oneOfType([85 PropTypes.number,86 PropTypes.string,87 PropTypes.object88 ]),89 backgroundColor: PropTypes.oneOfType([90 PropTypes.number,91 PropTypes.string,92 PropTypes.object93 ]),94 backgroundImage: PropTypes.oneOfType([95 PropTypes.number,96 PropTypes.string,97 PropTypes.object98 ]),99 backgroundPosition: PropTypes.oneOfType([100 PropTypes.number,101 PropTypes.string,102 PropTypes.object103 ]),104 backgroundRepeat: PropTypes.oneOfType([105 PropTypes.number,106 PropTypes.string,107 PropTypes.object108 ]),109 backgroundClip: PropTypes.oneOfType([110 PropTypes.number,111 PropTypes.string,112 PropTypes.object113 ]),114 clipPath: PropTypes.oneOfType([115 PropTypes.number,116 PropTypes.string,117 PropTypes.object118 ]),119 backgroundSize: PropTypes.oneOfType([120 PropTypes.number,121 PropTypes.string,122 PropTypes.object123 ]),124 backfaceVisibility: PropTypes.oneOfType([125 PropTypes.number,126 PropTypes.string,127 PropTypes.object128 ]),129 border: PropTypes.oneOfType([130 PropTypes.number,131 PropTypes.string,132 PropTypes.object133 ]),134 borderBottom: PropTypes.oneOfType([135 PropTypes.number,136 PropTypes.string,137 PropTypes.object138 ]),139 borderBottomColor: PropTypes.oneOfType([140 PropTypes.number,141 PropTypes.string,142 PropTypes.object143 ]),144 borderBottomLeftRadius: PropTypes.oneOfType([145 PropTypes.number,146 PropTypes.string,147 PropTypes.object148 ]),149 borderBottomRightRadius: PropTypes.oneOfType([150 PropTypes.number,151 PropTypes.string,152 PropTypes.object153 ]),154 borderBottomStyle: PropTypes.oneOfType([155 PropTypes.number,156 PropTypes.string,157 PropTypes.object158 ]),159 borderBottomWidth: PropTypes.oneOfType([160 PropTypes.number,161 PropTypes.string,162 PropTypes.object163 ]),164 borderCollapse: PropTypes.oneOfType([165 PropTypes.number,166 PropTypes.string,167 PropTypes.object168 ]),169 borderColor: PropTypes.oneOfType([170 PropTypes.number,171 PropTypes.string,172 PropTypes.object173 ]),174 borderImage: PropTypes.oneOfType([175 PropTypes.number,176 PropTypes.string,177 PropTypes.object178 ]),179 borderImageOutset: PropTypes.oneOfType([180 PropTypes.number,181 PropTypes.string,182 PropTypes.object183 ]),184 borderImageRepeat: PropTypes.oneOfType([185 PropTypes.number,186 PropTypes.string,187 PropTypes.object188 ]),189 borderImageSlice: PropTypes.oneOfType([190 PropTypes.number,191 PropTypes.string,192 PropTypes.object193 ]),194 borderImageSource: PropTypes.oneOfType([195 PropTypes.number,196 PropTypes.string,197 PropTypes.object198 ]),199 borderImageWidth: PropTypes.oneOfType([200 PropTypes.number,201 PropTypes.string,202 PropTypes.object203 ]),204 borderLeft: PropTypes.oneOfType([205 PropTypes.number,206 PropTypes.string,207 PropTypes.object208 ]),209 borderLeftColor: PropTypes.oneOfType([210 PropTypes.number,211 PropTypes.string,212 PropTypes.object213 ]),214 borderLeftStyle: PropTypes.oneOfType([215 PropTypes.number,216 PropTypes.string,217 PropTypes.object218 ]),219 borderLeftWidth: PropTypes.oneOfType([220 PropTypes.number,221 PropTypes.string,222 PropTypes.object223 ]),224 borderRadius: PropTypes.oneOfType([225 PropTypes.number,226 PropTypes.string,227 PropTypes.object228 ]),229 borderRight: PropTypes.oneOfType([230 PropTypes.number,231 PropTypes.string,232 PropTypes.object233 ]),234 borderRightColor: PropTypes.oneOfType([235 PropTypes.number,236 PropTypes.string,237 PropTypes.object238 ]),239 borderRightStyle: PropTypes.oneOfType([240 PropTypes.number,241 PropTypes.string,242 PropTypes.object243 ]),244 borderRightWidth: PropTypes.oneOfType([245 PropTypes.number,246 PropTypes.string,247 PropTypes.object248 ]),249 borderSpacing: PropTypes.oneOfType([250 PropTypes.number,251 PropTypes.string,252 PropTypes.object253 ]),254 borderStyle: PropTypes.oneOfType([255 PropTypes.number,256 PropTypes.string,257 PropTypes.object258 ]),259 borderTop: PropTypes.oneOfType([260 PropTypes.number,261 PropTypes.string,262 PropTypes.object263 ]),264 borderTopColor: PropTypes.oneOfType([265 PropTypes.number,266 PropTypes.string,267 PropTypes.object268 ]),269 borderTopLeftRadius: PropTypes.oneOfType([270 PropTypes.number,271 PropTypes.string,272 PropTypes.object273 ]),274 borderTopRightRadius: PropTypes.oneOfType([275 PropTypes.number,276 PropTypes.string,277 PropTypes.object278 ]),279 borderTopStyle: PropTypes.oneOfType([280 PropTypes.number,281 PropTypes.string,282 PropTypes.object283 ]),284 borderTopWidth: PropTypes.oneOfType([285 PropTypes.number,286 PropTypes.string,287 PropTypes.object288 ]),289 borderWidth: PropTypes.oneOfType([290 PropTypes.number,291 PropTypes.string,292 PropTypes.object293 ]),294 bottom: PropTypes.oneOfType([295 PropTypes.number,296 PropTypes.string,297 PropTypes.object298 ]),299 boxDecorationBreak: PropTypes.oneOfType([300 PropTypes.number,301 PropTypes.string,302 PropTypes.object303 ]),304 boxShadow: PropTypes.oneOfType([305 PropTypes.number,306 PropTypes.string,307 PropTypes.object308 ]),309 boxSizing: PropTypes.oneOfType([310 PropTypes.number,311 PropTypes.string,312 PropTypes.object313 ]),314 captionSide: PropTypes.oneOfType([315 PropTypes.number,316 PropTypes.string,317 PropTypes.object318 ]),319 clear: PropTypes.oneOfType([320 PropTypes.number,321 PropTypes.string,322 PropTypes.object323 ]),324 clip: PropTypes.oneOfType([325 PropTypes.number,326 PropTypes.string,327 PropTypes.object328 ]),329 color: PropTypes.oneOfType([330 PropTypes.number,331 PropTypes.string,332 PropTypes.object333 ]),334 columnCount: PropTypes.oneOfType([335 PropTypes.number,336 PropTypes.string,337 PropTypes.object338 ]),339 columnFill: PropTypes.oneOfType([340 PropTypes.number,341 PropTypes.string,342 PropTypes.object343 ]),344 columnGap: PropTypes.oneOfType([345 PropTypes.number,346 PropTypes.string,347 PropTypes.object348 ]),349 columnRule: PropTypes.oneOfType([350 PropTypes.number,351 PropTypes.string,352 PropTypes.object353 ]),354 columnRuleColor: PropTypes.oneOfType([355 PropTypes.number,356 PropTypes.string,357 PropTypes.object358 ]),359 columnRuleStyle: PropTypes.oneOfType([360 PropTypes.number,361 PropTypes.string,362 PropTypes.object363 ]),364 columnRuleWidth: PropTypes.oneOfType([365 PropTypes.number,366 PropTypes.string,367 PropTypes.object368 ]),369 columns: PropTypes.oneOfType([370 PropTypes.number,371 PropTypes.string,372 PropTypes.object373 ]),374 columnSpan: PropTypes.oneOfType([375 PropTypes.number,376 PropTypes.string,377 PropTypes.object378 ]),379 columnWidth: PropTypes.oneOfType([380 PropTypes.number,381 PropTypes.string,382 PropTypes.object383 ]),384 content: PropTypes.oneOfType([385 PropTypes.number,386 PropTypes.string,387 PropTypes.object388 ]),389 counterIncrement: PropTypes.oneOfType([390 PropTypes.number,391 PropTypes.string,392 PropTypes.object393 ]),394 counterReset: PropTypes.oneOfType([395 PropTypes.number,396 PropTypes.string,397 PropTypes.object398 ]),399 cursor: PropTypes.oneOfType([400 PropTypes.number,401 PropTypes.string,402 PropTypes.object403 ]),404 direction: PropTypes.oneOfType([405 PropTypes.number,406 PropTypes.string,407 PropTypes.object408 ]),409 display: PropTypes.oneOfType([410 PropTypes.number,411 PropTypes.string,412 PropTypes.object413 ]),414 emptyCells: PropTypes.oneOfType([415 PropTypes.number,416 PropTypes.string,417 PropTypes.object418 ]),419 backdropFilter: PropTypes.oneOfType([420 PropTypes.number,421 PropTypes.string,422 PropTypes.object423 ]),424 filter: PropTypes.oneOfType([425 PropTypes.number,426 PropTypes.string,427 PropTypes.object428 ]),429 flex: PropTypes.oneOfType([430 PropTypes.number,431 PropTypes.string,432 PropTypes.object433 ]),434 flexBasis: PropTypes.oneOfType([435 PropTypes.number,436 PropTypes.string,437 PropTypes.object438 ]),439 flexDirection: PropTypes.oneOfType([440 PropTypes.number,441 PropTypes.string,442 PropTypes.object443 ]),444 flexFlow: PropTypes.oneOfType([445 PropTypes.number,446 PropTypes.string,447 PropTypes.object448 ]),449 flexGrow: PropTypes.oneOfType([450 PropTypes.number,451 PropTypes.string,452 PropTypes.object453 ]),454 flexShrink: PropTypes.oneOfType([455 PropTypes.number,456 PropTypes.string,457 PropTypes.object458 ]),459 flexWrap: PropTypes.oneOfType([460 PropTypes.number,461 PropTypes.string,462 PropTypes.object463 ]),464 cssFloat: PropTypes.oneOfType([465 PropTypes.number,466 PropTypes.string,467 PropTypes.object468 ]),469 font: PropTypes.oneOfType([470 PropTypes.number,471 PropTypes.string,472 PropTypes.object473 ]),474 fontFamily: PropTypes.oneOfType([475 PropTypes.number,476 PropTypes.string,477 PropTypes.object478 ]),479 fontSize: PropTypes.oneOfType([480 PropTypes.number,481 PropTypes.string,482 PropTypes.object483 ]),484 fontStyle: PropTypes.oneOfType([485 PropTypes.number,486 PropTypes.string,487 PropTypes.object488 ]),489 fontVariant: PropTypes.oneOfType([490 PropTypes.number,491 PropTypes.string,492 PropTypes.object493 ]),494 fontWeight: PropTypes.oneOfType([495 PropTypes.number,496 PropTypes.string,497 PropTypes.object498 ]),499 fontSizeAdjust: PropTypes.oneOfType([500 PropTypes.number,501 PropTypes.string,502 PropTypes.object503 ]),504 fontStretch: PropTypes.oneOfType([505 PropTypes.number,506 PropTypes.string,507 PropTypes.object508 ]),509 hangingPunctuation: PropTypes.oneOfType([510 PropTypes.number,511 PropTypes.string,512 PropTypes.object513 ]),514 height: PropTypes.oneOfType([515 PropTypes.number,516 PropTypes.string,517 PropTypes.object518 ]),519 hyphens: PropTypes.oneOfType([520 PropTypes.number,521 PropTypes.string,522 PropTypes.object523 ]),524 imageOrientation: PropTypes.oneOfType([525 PropTypes.number,526 PropTypes.string,527 PropTypes.object528 ]),529 isolation: PropTypes.oneOfType([530 PropTypes.number,531 PropTypes.string,532 PropTypes.object533 ]),534 justifyContent: PropTypes.oneOfType([535 PropTypes.number,536 PropTypes.string,537 PropTypes.object538 ]),539 left: PropTypes.oneOfType([540 PropTypes.number,541 PropTypes.string,542 PropTypes.object543 ]),544 letterSpacing: PropTypes.oneOfType([545 PropTypes.number,546 PropTypes.string,547 PropTypes.object548 ]),549 lineHeight: PropTypes.oneOfType([550 PropTypes.number,551 PropTypes.string,552 PropTypes.object553 ]),554 listStyle: PropTypes.oneOfType([555 PropTypes.number,556 PropTypes.string,557 PropTypes.object558 ]),559 listStyleImage: PropTypes.oneOfType([560 PropTypes.number,561 PropTypes.string,562 PropTypes.object563 ]),564 listStylePosition: PropTypes.oneOfType([565 PropTypes.number,566 PropTypes.string,567 PropTypes.object568 ]),569 listStyleType: PropTypes.oneOfType([570 PropTypes.number,571 PropTypes.string,572 PropTypes.object573 ]),574 margin: PropTypes.oneOfType([575 PropTypes.number,576 PropTypes.string,577 PropTypes.object578 ]),579 marginBottom: PropTypes.oneOfType([580 PropTypes.number,581 PropTypes.string,582 PropTypes.object583 ]),584 marginLeft: PropTypes.oneOfType([585 PropTypes.number,586 PropTypes.string,587 PropTypes.object588 ]),589 marginRight: PropTypes.oneOfType([590 PropTypes.number,591 PropTypes.string,592 PropTypes.object593 ]),594 marginTop: PropTypes.oneOfType([595 PropTypes.number,596 PropTypes.string,597 PropTypes.object598 ]),599 maxHeight: PropTypes.oneOfType([600 PropTypes.number,601 PropTypes.string,602 PropTypes.object603 ]),604 maxWidth: PropTypes.oneOfType([605 PropTypes.number,606 PropTypes.string,607 PropTypes.object608 ]),609 minHeight: PropTypes.oneOfType([610 PropTypes.number,611 PropTypes.string,612 PropTypes.object613 ]),614 minWidth: PropTypes.oneOfType([615 PropTypes.number,616 PropTypes.string,617 PropTypes.object618 ]),619 navDown: PropTypes.oneOfType([620 PropTypes.number,621 PropTypes.string,622 PropTypes.object623 ]),624 navIndex: PropTypes.oneOfType([625 PropTypes.number,626 PropTypes.string,627 PropTypes.object628 ]),629 navLeft: PropTypes.oneOfType([630 PropTypes.number,631 PropTypes.string,632 PropTypes.object633 ]),634 navRight: PropTypes.oneOfType([635 PropTypes.number,636 PropTypes.string,637 PropTypes.object638 ]),639 navUp: PropTypes.oneOfType([640 PropTypes.number,641 PropTypes.string,642 PropTypes.object643 ]),644 objectFit: PropTypes.oneOfType([645 PropTypes.number,646 PropTypes.string,647 PropTypes.object648 ]),649 objectPosition: PropTypes.oneOfType([650 PropTypes.number,651 PropTypes.string,652 PropTypes.object653 ]),654 opacity: PropTypes.oneOfType([655 PropTypes.number,656 PropTypes.string,657 PropTypes.object658 ]),659 order: PropTypes.oneOfType([660 PropTypes.number,661 PropTypes.string,662 PropTypes.object663 ]),664 orphans: PropTypes.oneOfType([665 PropTypes.number,666 PropTypes.string,667 PropTypes.object668 ]),669 outline: PropTypes.oneOfType([670 PropTypes.number,671 PropTypes.string,672 PropTypes.object673 ]),674 outlineColor: PropTypes.oneOfType([675 PropTypes.number,676 PropTypes.string,677 PropTypes.object678 ]),679 outlineOffset: PropTypes.oneOfType([680 PropTypes.number,681 PropTypes.string,682 PropTypes.object683 ]),684 outlineStyle: PropTypes.oneOfType([685 PropTypes.number,686 PropTypes.string,687 PropTypes.object688 ]),689 outlineWidth: PropTypes.oneOfType([690 PropTypes.number,691 PropTypes.string,692 PropTypes.object693 ]),694 overflow: PropTypes.oneOfType([695 PropTypes.number,696 PropTypes.string,697 PropTypes.object698 ]),699 overflowX: PropTypes.oneOfType([700 PropTypes.number,701 PropTypes.string,702 PropTypes.object703 ]),704 overflowY: PropTypes.oneOfType([705 PropTypes.number,706 PropTypes.string,707 PropTypes.object708 ]),709 padding: PropTypes.oneOfType([710 PropTypes.number,711 PropTypes.string,712 PropTypes.object713 ]),714 paddingBottom: PropTypes.oneOfType([715 PropTypes.number,716 PropTypes.string,717 PropTypes.object718 ]),719 paddingLeft: PropTypes.oneOfType([720 PropTypes.number,721 PropTypes.string,722 PropTypes.object723 ]),724 paddingRight: PropTypes.oneOfType([725 PropTypes.number,726 PropTypes.string,727 PropTypes.object728 ]),729 paddingTop: PropTypes.oneOfType([730 PropTypes.number,731 PropTypes.string,732 PropTypes.object733 ]),734 pageBreakAfter: PropTypes.oneOfType([735 PropTypes.number,736 PropTypes.string,737 PropTypes.object738 ]),739 pageBreakBefore: PropTypes.oneOfType([740 PropTypes.number,741 PropTypes.string,742 PropTypes.object743 ]),744 pageBreakInside: PropTypes.oneOfType([745 PropTypes.number,746 PropTypes.string,747 PropTypes.object748 ]),749 perspective: PropTypes.oneOfType([750 PropTypes.number,751 PropTypes.string,752 PropTypes.object753 ]),754 perspectiveOrigin: PropTypes.oneOfType([755 PropTypes.number,756 PropTypes.string,757 PropTypes.object758 ]),759 position: PropTypes.oneOfType([760 PropTypes.number,761 PropTypes.string,762 PropTypes.object763 ]),764 quotes: PropTypes.oneOfType([765 PropTypes.number,766 PropTypes.string,767 PropTypes.object768 ]),769 resize: PropTypes.oneOfType([770 PropTypes.number,771 PropTypes.string,772 PropTypes.object773 ]),774 right: PropTypes.oneOfType([775 PropTypes.number,776 PropTypes.string,777 PropTypes.object778 ]),779 tableLayout: PropTypes.oneOfType([780 PropTypes.number,781 PropTypes.string,782 PropTypes.object783 ]),784 tabSize: PropTypes.oneOfType([785 PropTypes.number,786 PropTypes.string,787 PropTypes.object788 ]),789 textAlign: PropTypes.oneOfType([790 PropTypes.number,791 PropTypes.string,792 PropTypes.object793 ]),794 textAlignLast: PropTypes.oneOfType([795 PropTypes.number,796 PropTypes.string,797 PropTypes.object798 ]),799 textDecoration: PropTypes.oneOfType([800 PropTypes.number,801 PropTypes.string,802 PropTypes.object803 ]),804 textDecorationColor: PropTypes.oneOfType([805 PropTypes.number,806 PropTypes.string,807 PropTypes.object808 ]),809 textDecorationLine: PropTypes.oneOfType([810 PropTypes.number,811 PropTypes.string,812 PropTypes.object813 ]),814 textDecorationStyle: PropTypes.oneOfType([815 PropTypes.number,816 PropTypes.string,817 PropTypes.object818 ]),819 textIndent: PropTypes.oneOfType([820 PropTypes.number,821 PropTypes.string,822 PropTypes.object823 ]),824 textJustify: PropTypes.oneOfType([825 PropTypes.number,826 PropTypes.string,827 PropTypes.object828 ]),829 textOverflow: PropTypes.oneOfType([830 PropTypes.number,831 PropTypes.string,832 PropTypes.object833 ]),834 textShadow: PropTypes.oneOfType([835 PropTypes.number,836 PropTypes.string,837 PropTypes.object838 ]),839 textTransform: PropTypes.oneOfType([840 PropTypes.number,841 PropTypes.string,842 PropTypes.object843 ]),844 top: PropTypes.oneOfType([845 PropTypes.number,846 PropTypes.string,847 PropTypes.object848 ]),849 transform: PropTypes.oneOfType([850 PropTypes.number,851 PropTypes.string,852 PropTypes.object853 ]),854 transformOrigin: PropTypes.oneOfType([855 PropTypes.number,856 PropTypes.string,857 PropTypes.object858 ]),859 transformStyle: PropTypes.oneOfType([860 PropTypes.number,861 PropTypes.string,862 PropTypes.object863 ]),864 transition: PropTypes.oneOfType([865 PropTypes.number,866 PropTypes.string,867 PropTypes.object868 ]),869 transitionProperty: PropTypes.oneOfType([870 PropTypes.number,871 PropTypes.string,872 PropTypes.object873 ]),874 transitionDuration: PropTypes.oneOfType([875 PropTypes.number,876 PropTypes.string,877 PropTypes.object878 ]),879 transitionTimingFunction: PropTypes.oneOfType([880 PropTypes.number,881 PropTypes.string,882 PropTypes.object883 ]),884 transitionDelay: PropTypes.oneOfType([885 PropTypes.number,886 PropTypes.string,887 PropTypes.object888 ]),889 unicodeBidi: PropTypes.oneOfType([890 PropTypes.number,891 PropTypes.string,892 PropTypes.object893 ]),894 userSelect: PropTypes.oneOfType([895 PropTypes.number,896 PropTypes.string,897 PropTypes.object898 ]),899 verticalAlign: PropTypes.oneOfType([900 PropTypes.number,901 PropTypes.string,902 PropTypes.object903 ]),904 visibility: PropTypes.oneOfType([905 PropTypes.number,906 PropTypes.string,907 PropTypes.object908 ]),909 whiteSpace: PropTypes.oneOfType([910 PropTypes.number,911 PropTypes.string,912 PropTypes.object913 ]),914 width: PropTypes.oneOfType([915 PropTypes.number,916 PropTypes.string,917 PropTypes.object918 ]),919 wordBreak: PropTypes.oneOfType([920 PropTypes.number,921 PropTypes.string,922 PropTypes.object923 ]),924 wordSpacing: PropTypes.oneOfType([925 PropTypes.number,926 PropTypes.string,927 PropTypes.object928 ]),929 wordWrap: PropTypes.oneOfType([930 PropTypes.number,931 PropTypes.string,932 PropTypes.object933 ]),934 widows: PropTypes.oneOfType([935 PropTypes.number,936 PropTypes.string,937 PropTypes.object938 ]),939 zIndex: PropTypes.oneOfType([940 PropTypes.number,941 PropTypes.string,942 PropTypes.object943 ])944};...
BattleProps.py
Source:BattleProps.py
1from panda3d.core import *2from direct.actor import Actor3from direct.directnotify import DirectNotifyGlobal4from otp.otpbase import OTPGlobals5import BattleParticles6import random7Props = ((5, 'partyBall', 'partyBall'),8 (5,9 'feather',10 'feather-mod',11 'feather-chan'),12 (5, 'lips', 'lips'),13 (5, 'lipstick', 'lipstick'),14 (5, 'hat', 'hat'),15 (5, 'cane', 'cane'),16 (5,17 'cubes',18 'cubes-mod',19 'cubes-chan'),20 (5, 'ladder', 'ladder2'),21 (4,22 'fishing-pole',23 'fishing-pole-mod',24 'fishing-pole-chan'),25 (5,26 '1dollar',27 '1dollar-bill-mod',28 '1dollar-bill-chan'),29 (5, 'big-magnet', 'magnet'),30 (5,31 'hypno-goggles',32 'hypnotize-mod',33 'hypnotize-chan'),34 (5, 'slideshow', 'av_screen'),35 (5,36 'banana',37 'banana-peel-mod',38 'banana-peel-chan'),39 (5,40 'rake',41 'rake-mod',42 'rake-chan'),43 (5,44 'marbles',45 'marbles-mod',46 'marbles-chan'),47 (5,48 'tnt',49 'tnt-mod',50 'tnt-chan'),51 (5, 'trapdoor', 'trapdoor'),52 (5, 'quicksand', 'quicksand'),53 (5, 'traintrack', 'traintrack2'),54 (5, 'train', 'train'),55 (5, 'megaphone', 'megaphone'),56 (5, 'aoogah', 'aoogah'),57 (5, 'bikehorn', 'bikehorn'),58 (5, 'bugle', 'bugle'),59 (5, 'elephant', 'elephant'),60 (5, 'fog_horn', 'fog_horn'),61 (5, 'whistle', 'whistle'),62 (5, 'singing', 'singing'),63 (3.5, 'creampie', 'tart'),64 (5, 'fruitpie-slice', 'fruit-pie-slice'),65 (5, 'creampie-slice', 'cream-pie-slice'),66 (5,67 'birthday-cake',68 'birthday-cake-mod',69 'birthday-cake-chan'),70 (5, 'wedding-cake', 'wedding_cake'),71 (3.5, 'squirting-flower', 'squirting-flower'),72 (5,73 'glass',74 'glass-mod',75 'glass-chan'),76 (4, 'water-gun', 'water-gun'),77 (3.5, 'bottle', 'bottle'),78 (5,79 'firehose',80 'firehose-mod',81 'firehose-chan'),82 (5, 'hydrant', 'battle_hydrant'),83 (4,84 'stormcloud',85 'stormcloud-mod',86 'stormcloud-chan'),87 (5, 'geyser', 'geyser'),88 (3.5, 'button', 'button'),89 (5,90 'flowerpot',91 'flowerpot-mod',92 'flowerpot-chan'),93 (5,94 'sandbag',95 'sandbag-mod',96 'sandbag-chan'),97 (4,98 'anvil',99 'anvil-mod',100 'anvil-chan'),101 (5,102 'weight',103 'weight-mod',104 'weight-chan'),105 (5,106 'safe',107 'safe-mod',108 'safe-chan'),109 (5,110 'piano',111 'piano-mod',112 'piano-chan'),113 (5,114 'rake-react',115 'rake-step-mod',116 'rake-step-chan'),117 (5, 'pad', 'pad'),118 (4,119 'propeller',120 'propeller-mod',121 'propeller-chan'),122 (5,123 'calculator',124 'calculator-mod',125 'calculator-chan'),126 (5, 'rollodex', 'roll-o-dex'),127 (5, 'rubber-stamp', 'rubber-stamp'),128 (5,129 'rubber-stamp-pad',130 'rubber-stamp-pad-mod',131 'rubber-stamp-pad-chan'),132 (5,133 'smile',134 'smile-mod',135 'smile-chan'),136 (5, 'golf-club', 'golf-club'),137 (5, 'golf-ball', 'golf-ball'),138 (5, 'redtape', 'redtape'),139 (5, 'redtape-tube', 'redtape-tube'),140 (5, 'bounced-check', 'bounced-check'),141 (5,142 'calculator',143 'calculator-mod',144 'calculator-chan'),145 (3.5,146 'clip-on-tie',147 'clip-on-tie-mod',148 'clip-on-tie-chan'),149 (5, 'pen', 'pen'),150 (5, 'pencil', 'pencil'),151 (3.5, 'phone', 'phone'),152 (3.5, 'receiver', 'receiver'),153 (5, 'sharpener', 'sharpener'),154 (3.5, 'shredder', 'shredder'),155 (3.5,156 'shredder-paper',157 'shredder-paper-mod',158 'shredder-paper-chan'),159 (5, 'watercooler', 'watercooler'),160 (5, 'dagger', 'dagger'),161 (5, 'card', 'card'),162 (5, 'baseball', 'baseball'),163 (5, 'bird', 'bird'),164 (5, 'can', 'can'),165 (5, 'cigar', 'cigar'),166 (5, 'evil-eye', 'evil-eye'),167 (5, 'gavel', 'gavel'),168 (5, 'half-windsor', 'half-windsor'),169 (5, 'lawbook', 'lawbook'),170 (5, 'newspaper', 'newspaper'),171 (5, 'pink-slip', 'pink-slip'),172 (5,173 'teeth',174 'teeth-mod',175 'teeth-chan'),176 (5, 'power-tie', 'power-tie'),177 (3.5, 'spray', 'spray'),178 (3.5, 'splash', 'splash'),179 (3.5,180 'splat',181 'splat-mod',182 'splat-chan'),183 (3.5,184 'stun',185 'stun-mod',186 'stun-chan'),187 (3.5, 'glow', 'glow'),188 (3.5,189 'suit_explosion',190 'suit_explosion-mod',191 'suit_explosion-chan'),192 (3.5, 'suit_explosion_dust', 'dust_cloud'),193 (4, 'ripples', 'ripples'),194 (4, 'wake', 'wake'),195 (4,196 'splashdown',197 'SZ_splashdown-mod',198 'SZ_splashdown-chan'))199CreampieColor = VBase4(250.0 / 255.0, 241.0 / 255.0, 24.0 / 255.0, 1.0)200FruitpieColor = VBase4(55.0 / 255.0, 40.0 / 255.0, 148.0 / 255.0, 1.0)201BirthdayCakeColor = VBase4(253.0 / 255.0, 119.0 / 255.0, 220.0 / 255.0, 1.0)202Splats = {'tart': (0.3, FruitpieColor),203 'fruitpie-slice': (0.5, FruitpieColor),204 'creampie-slice': (0.5, CreampieColor),205 'fruitpie': (0.7, FruitpieColor),206 'creampie': (0.7, CreampieColor),207 'birthday-cake': (0.9, BirthdayCakeColor)}208Variants = ('tart',209 'fruitpie',210 'splat-tart',211 'dust',212 'kapow',213 'double-windsor',214 'splat-fruitpie-slice',215 'splat-creampie-slice',216 'splat-fruitpie',217 'splat-creampie',218 'splat-birthday-cake',219 'splash-from-splat',220 'clip-on-tie',221 'lips',222 'small-magnet',223 '5dollar',224 '10dollar',225 'suit_explosion',226 'quicksand',227 'trapdoor',228 'geyser',229 'ship',230 'trolley',231 'traintrack')232class PropPool:233 notify = DirectNotifyGlobal.directNotify.newCategory('PropPool')234 def __init__(self):235 self.props = {}236 self.propCache = []237 self.propStrings = {}238 self.propTypes = {}239 self.gagsByTrack = []240 self.maxPoolSize = base.config.GetInt('prop-pool-size', 8)241 for p in Props:242 phase = p[0]243 propName = p[1]244 modelName = p[2]245 if len(p) == 4:246 animName = p[3]247 propPath = self.getPath(phase, modelName)248 animPath = self.getPath(phase, animName)249 self.propTypes[propName] = 'actor'250 self.propStrings[propName] = (propPath, animPath)251 else:252 propPath = self.getPath(phase, modelName)253 self.propTypes[propName] = 'model'254 self.propStrings[propName] = (propPath,)255 propName = 'tart'256 self.propStrings[propName] = (self.getPath(3.5, 'tart'),)257 self.propTypes[propName] = 'model'258 propName = 'fruitpie'259 self.propStrings[propName] = (self.getPath(3.5, 'tart'),)260 self.propTypes[propName] = 'model'261 propName = 'double-windsor'262 self.propStrings[propName] = (self.getPath(5, 'half-windsor'),)263 self.propTypes[propName] = 'model'264 splatAnimFileName = self.getPath(3.5, 'splat-chan')265 for splat in Splats.keys():266 propName = 'splat-' + splat267 self.propStrings[propName] = (self.getPath(3.5, 'splat-mod'), splatAnimFileName)268 self.propTypes[propName] = 'actor'269 propName = 'splash-from-splat'270 self.propStrings[propName] = (self.getPath(3.5, 'splat-mod'), splatAnimFileName)271 self.propTypes[propName] = 'actor'272 propName = 'small-magnet'273 self.propStrings[propName] = (self.getPath(5, 'magnet'),)274 self.propTypes[propName] = 'model'275 propName = '5dollar'276 self.propStrings[propName] = (self.getPath(5, '1dollar-bill-mod'), self.getPath(5, '1dollar-bill-chan'))277 self.propTypes[propName] = 'actor'278 propName = '10dollar'279 self.propStrings[propName] = (self.getPath(5, '1dollar-bill-mod'), self.getPath(5, '1dollar-bill-chan'))280 self.propTypes[propName] = 'actor'281 propName = 'dust'282 self.propStrings[propName] = (self.getPath(5, 'dust-mod'), self.getPath(5, 'dust-chan'))283 self.propTypes[propName] = 'actor'284 propName = 'kapow'285 self.propStrings[propName] = (self.getPath(5, 'kapow-mod'), self.getPath(5, 'kapow-chan'))286 self.propTypes[propName] = 'actor'287 propName = 'ship'288 self.propStrings[propName] = ('phase_5/models/props/ship.bam',)289 self.propTypes[propName] = 'model'290 propName = 'trolley'291 self.propStrings[propName] = ('phase_4/models/modules/trolley_station_TT',)292 self.propTypes[propName] = 'model'293 def getPath(self, phase, model):294 return 'phase_%s/models/props/%s' % (phase, model)295 def makeVariant(self, name):296 if name == 'tart':297 self.props[name].setScale(0.5)298 elif name == 'fruitpie':299 self.props[name].setScale(0.75)300 elif name == 'double-windsor':301 self.props[name].setScale(1.5)302 elif name[:6] == 'splat-':303 prop = self.props[name]304 scale = prop.getScale() * Splats[name[6:]][0]305 prop.setScale(scale)306 prop.setColor(Splats[name[6:]][1])307 elif name == 'splash-from-splat':308 self.props[name].setColor(0.75, 0.75, 1.0, 1.0)309 elif name == 'clip-on-tie':310 tie = self.props[name]311 tie.getChild(0).setHpr(23.86, -16.03, 9.18)312 elif name == 'small-magnet':313 self.props[name].setScale(0.5)314 elif name == 'shredder-paper':315 paper = self.props[name]316 paper.setPosHpr(2.22, -0.95, 1.16, -48.61, 26.57, -111.51)317 paper.flattenMedium()318 elif name == 'lips':319 lips = self.props[name]320 lips.setPos(0, 0, -3.04)321 lips.flattenMedium()322 elif name == '5dollar':323 tex = loader.loadTexture('phase_5/maps/dollar_5.jpg')324 tex.setMinfilter(Texture.FTLinearMipmapLinear)325 tex.setMagfilter(Texture.FTLinear)326 self.props[name].setTexture(tex, 1)327 elif name == '10dollar':328 tex = loader.loadTexture('phase_5/maps/dollar_10.jpg')329 tex.setMinfilter(Texture.FTLinearMipmapLinear)330 tex.setMagfilter(Texture.FTLinear)331 self.props[name].setTexture(tex, 1)332 elif name == 'dust':333 bin = 110334 for cloudNum in xrange(1, 12):335 cloudName = '**/cloud' + str(cloudNum)336 cloud = self.props[name].find(cloudName)337 cloud.setBin('fixed', bin)338 bin -= 10339 elif name == 'kapow':340 l = self.props[name].find('**/letters')341 l.setBin('fixed', 20)342 e = self.props[name].find('**/explosion')343 e.setBin('fixed', 10)344 elif name == 'suit_explosion':345 joints = ['**/joint_scale_POW', '**/joint_scale_BLAM', '**/joint_scale_BOOM']346 joint = random.choice(joints)347 self.props[name].find(joint).hide()348 joints.remove(joint)349 joint = random.choice(joints)350 self.props[name].find(joint).hide()351 elif name == 'quicksand' or name == 'trapdoor':352 p = self.props[name]353 p.setBin('shadow', -5)354 p.setDepthWrite(0)355 p.getChild(0).setPos(0, 0, OTPGlobals.FloorOffset)356 elif name == 'traintrack' or name == 'traintrack2':357 prop = self.props[name]358 prop.find('**/tunnel3').hide()359 prop.find('**/tunnel2').hide()360 prop.find('**/tracksA').setPos(0, 0, OTPGlobals.FloorOffset)361 elif name == 'geyser':362 p = self.props[name]363 s = SequenceNode('geyser')364 p.findAllMatches('**/Splash*').reparentTo(NodePath(s))365 s.loop(0)366 s.setFrameRate(12)367 p.attachNewNode(s)368 elif name == 'ship':369 self.props[name] = self.props[name].find('**/ship_gag')370 elif name == 'trolley':371 self.props[name] = self.props[name].find('**/trolley_car')372 def unloadProps(self):373 for p in self.props.values():374 if type(p) != type(()):375 self.__delProp(p)376 self.props = {}377 self.propCache = []378 def getProp(self, name):379 return self.__getPropCopy(name)380 def __getPropCopy(self, name):381 if self.propTypes[name] == 'actor':382 if name not in self.props:383 prop = Actor.Actor()384 prop.loadModel(self.propStrings[name][0])385 animDict = {}386 animDict[name] = self.propStrings[name][1]387 prop.loadAnims(animDict)388 prop.setName(name)389 self.storeProp(name, prop)390 if name in Variants:391 self.makeVariant(name)392 return Actor.Actor(other=self.props[name])393 else:394 if name not in self.props:395 prop = loader.loadModel(self.propStrings[name][0])396 prop.setName(name)397 self.storeProp(name, prop)398 if name in Variants:399 self.makeVariant(name)400 return self.props[name].copyTo(hidden)401 def storeProp(self, name, prop):402 self.props[name] = prop403 self.propCache.append(prop)404 if len(self.props) > self.maxPoolSize:405 oldest = self.propCache.pop(0)406 del self.props[oldest.getName()]407 self.__delProp(oldest)408 self.notify.debug('props = %s' % self.props)409 self.notify.debug('propCache = %s' % self.propCache)410 def getPropType(self, name):411 return self.propTypes[name]412 def __delProp(self, prop):413 if prop == None:414 self.notify.warning('tried to delete null prop!')415 return416 if isinstance(prop, Actor.Actor):417 prop.cleanup()418 else:419 prop.removeNode()420 return421 def getGagsByTrack(self):422 self.gagsByTrack = [423 [self.getProp('feather'), self.getProp('megaphone'), self.getProp('lipstick'), self.getProp('cane'), BattleParticles.createParticleEffect(file='pixieSpray'), self.getProp('cubes'), self.getProp('ladder')],424 [self.getProp('banana'), self.getProp('rake'), self.getProp('marbles'), self.getProp('quicksand'), self.getProp('trapdoor'), self.getProp('tnt'), self.getProp('train')],425 [self.getProp('1dollar'), self.getProp('small-magnet'), self.getProp('5dollar'), self.getProp('big-magnet'), self.getProp('10dollar'), self.getProp('hypno-goggles'), self.getProp('slideshow')],426 [self.getProp('bikehorn'), self.getProp('whistle'), self.getProp('bugle'), self.getProp('aoogah'), self.getProp('elephant'), self.getProp('fog_horn'), self.getProp('singing')],427 [self.getProp('tart'), self.getProp('fruitpie-slice'), self.getProp('creampie-slice'), self.getProp('fruitpie'), self.getProp('creampie'), self.getProp('birthday-cake'), self.getProp('wedding-cake')],428 [self.getProp('squirting-flower'), self.getProp('glass'), self.getProp('water-gun'), self.getProp('bottle'), self.getProp('hydrant'), self.getProp('stormcloud'), self.getProp('geyser')],429 [self.getProp('flowerpot'), self.getProp('sandbag'), self.getProp('anvil'), self.getProp('weight'), self.getProp('safe'), self.getProp('piano'), self.getProp('ship')]]430 return self.gagsByTrack...
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!