MultipleMaids.Gui.cs 428 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397
  1. using ExIni;
  2. using System;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using System.IO;
  6. using System.Linq;
  7. using System.Text;
  8. using UnityEngine;
  9. using UnityEngine.Rendering;
  10. using Object = UnityEngine.Object;
  11. namespace CM3D2.MultipleMaids.Plugin
  12. {
  13. public partial class MultipleMaids
  14. {
  15. public void OnGUI()
  16. {
  17. for (int index1 = 0; index1 < maidCnt; ++index1)
  18. {
  19. if (isPoseIti[index1])
  20. {
  21. Maid maid = maidArray[index1];
  22. isPoseIti[index1] = false;
  23. maid.transform.position = poseIti[index1];
  24. Vector3 eulerAngles = maid.transform.eulerAngles;
  25. for (int index2 = 0; index2 < 10; ++index2)
  26. {
  27. Transform transform1 = maid.transform;
  28. Vector3 position1 = maid.transform.position;
  29. Vector3 right = Vector3.right;
  30. Quaternion rotation = maid.transform.rotation;
  31. double num1 = -rotation.eulerAngles.x;
  32. transform1.RotateAround(position1, right, (float)num1);
  33. Transform transform2 = maid.transform;
  34. Vector3 position2 = maid.transform.position;
  35. Vector3 forward = Vector3.forward;
  36. rotation = maid.transform.rotation;
  37. double num2 = -rotation.eulerAngles.z;
  38. transform2.RotateAround(position2, forward, (float)num2);
  39. }
  40. Transform transform = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01", true);
  41. transform.position = new Vector3(poseIti[index1].x, transform.position.y, poseIti[index1].z);
  42. maid.transform.eulerAngles = eulerAngles;
  43. }
  44. }
  45. GUIStyle style = new GUIStyle(GUI.skin.box);
  46. style.fontSize = GetPix(11);
  47. style.alignment = TextAnchor.UpperRight;
  48. if (isGuiInit || screenSize != new Vector2(Screen.width, Screen.height))
  49. {
  50. screenSize = new Vector2(Screen.width, Screen.height);
  51. isGuiInit = false;
  52. rectWin2.width = Screen.width * 0.4f;
  53. rectWin2.height = Screen.height * 0.15f;
  54. rectWin2.x = (float)(Screen.width / 2.0 - rectWin2.width / 2.0);
  55. rectWin2.y = sceneLevel != 5
  56. ? Screen.height - rectWin2.height
  57. : Screen.height * 0.94f - rectWin2.height;
  58. rectWin.width = GetPix(kankyoFlg || kankyo2Flg ? 210 : 170);
  59. rectWin.height = Screen.height * 0.9f;
  60. rectWin.x = Screen.width - rectWin.width;
  61. rectWin.y = GetPix(65);
  62. saveManagerRect.width = Screen.width * 0.45f;
  63. saveManagerRect.height = Screen.height * 0.55f;
  64. saveManagerRect.x = (float)(Screen.width * 0.5f - saveManagerRect.width * 0.5f);
  65. saveManagerRect.y = (float)(Screen.height * 0.5f - saveManagerRect.height * 0.5f);
  66. saveModalRect.width = Mathf.Min(Screen.width * 0.35f, 480f);
  67. saveModalRect.height = Mathf.Min(Screen.height * 0.45f, 360f);
  68. saveModalRect.x = (float)(Screen.width * 0.5f - saveModalRect.width * 0.5f);
  69. saveModalRect.y = (float)(Screen.height * 0.5f - saveModalRect.height * 0.5f);
  70. }
  71. if (bGuiMessage)
  72. {
  73. rectWin2.width = Screen.width * 0.4f;
  74. rectWin2.height = Screen.height * 0.15f;
  75. rectWin2.x = Mathf.Clamp(rectWin2.x, -rectWin2.width + GetPix(20), Screen.width - GetPix(20));
  76. rectWin2.y = Mathf.Clamp(rectWin2.y, -rectWin2.height + GetPix(20), Screen.height - GetPix(20));
  77. rectWin2 = GUI.Window(130, rectWin2, MessageWindow, "", style);
  78. }
  79. if (bGui)
  80. {
  81. rectWin.x = Mathf.Clamp(rectWin.x, 0, Screen.width - rectWin.width);
  82. rectWin.y = Mathf.Clamp(rectWin.y, -rectWin.height + GetPix(20), Screen.height - GetPix(20));
  83. rectWin.height = Screen.height * 0.9f;
  84. rectWin.width = GetPix(kankyoFlg || kankyo2Flg ? 210 : 170);
  85. if (sceneLevel == 5 || sceneLevel == 14)
  86. rectWin.height *= 0.85f;
  87. comboBoxControl.height = rectWin.height;
  88. faceCombo.height = rectWin.height;
  89. poseCombo.height = rectWin.height;
  90. poseGroupCombo.height = rectWin.height;
  91. itemCombo.height = rectWin.height;
  92. bgmCombo.height = rectWin.height;
  93. itemCombo2.height = rectWin.height;
  94. bgCombo2.height = rectWin.height;
  95. kankyoCombo.height = rectWin.height;
  96. bgCombo.height = rectWin.height;
  97. slotCombo.height = rectWin.height;
  98. doguCombo.height = rectWin.height;
  99. parCombo.height = rectWin.height;
  100. lightCombo.height = rectWin.height;
  101. if (!sceneFlg && !faceFlg && !poseFlg && !kankyoFlg && !kankyo2Flg && !isF6 && okFlg)
  102. {
  103. if (Input.mouseScrollDelta.y != 0f)
  104. {
  105. if (rectWin.Contains(Event.current.mousePosition))
  106. {
  107. GameMain.Instance.MainCamera.SetControl(false);
  108. Input.ResetInputAxes();
  109. }
  110. }
  111. rectWin = GUI.Window(129, rectWin, MaidCallWindow, "", style);
  112. }
  113. else if (sceneFlg)
  114. {
  115. if (manageSaveFlag || deleteDirectoryFlag)
  116. {
  117. saveModalRect = GUI.ModalWindow(9999, saveModalRect, SaveManagerModal, "", style);
  118. }
  119. saveManagerRect = GUI.Window(131, saveManagerRect, SaveManagerWindow, "", style);
  120. int resizeHandleSize = GetPix(15);
  121. resizeManagerRect.x = saveManagerRect.x + saveManagerRect.width - resizeHandleSize;
  122. resizeManagerRect.y = saveManagerRect.y + saveManagerRect.height - resizeHandleSize;
  123. resizeManagerRect.width = resizeManagerRect.height = resizeHandleSize;
  124. if (!resizeManager && Input.GetMouseButtonDown(0) && resizeManagerRect.Contains(Event.current.mousePosition))
  125. {
  126. resizeManager = true;
  127. }
  128. if (resizeManager)
  129. {
  130. float rectWidth = Event.current.mousePosition.x - saveManagerRect.x;
  131. float rectHeight = Event.current.mousePosition.y - saveManagerRect.y;
  132. saveManagerRect.width = Mathf.Max(GetPix(480), rectWidth);
  133. saveManagerRect.height = Mathf.Max(GetPix(260), rectHeight);
  134. if (Input.GetMouseButtonUp(0))
  135. {
  136. resizeManager = false;
  137. }
  138. }
  139. if (Input.mouseScrollDelta.y != 0f)
  140. {
  141. if (saveManagerRect.Contains(Event.current.mousePosition)
  142. || (manageSaveFlag && saveModalRect.Contains(Event.current.mousePosition)))
  143. {
  144. GameMain.Instance.MainCamera.SetControl(false);
  145. Input.ResetInputAxes();
  146. }
  147. }
  148. }
  149. else if (kankyoFlg)
  150. {
  151. if (bgmCombo.isClickedComboButton || bgCombo.isClickedComboButton || doguCombo.isClickedComboButton
  152. || parCombo.isClickedComboButton)
  153. {
  154. if (Input.mouseScrollDelta.y != 0f)
  155. {
  156. if (rectWin.Contains(Event.current.mousePosition))
  157. {
  158. GameMain.Instance.MainCamera.SetControl(false);
  159. Input.ResetInputAxes();
  160. }
  161. }
  162. }
  163. else if (!yotogiFlg && sceneLevel != 3 && sceneLevel != 5
  164. && rectWin.Contains(Event.current.mousePosition)
  165. && Input.GetMouseButtonDown(0))
  166. {
  167. Input.ResetInputAxes();
  168. }
  169. rectWin = GUI.Window(129, rectWin, BGSelectWindow, "", style);
  170. }
  171. else if (kankyo2Flg)
  172. {
  173. if (Input.mouseScrollDelta.y != 0f)
  174. {
  175. if (rectWin.Contains(Event.current.mousePosition))
  176. {
  177. GameMain.Instance.MainCamera.SetControl(false);
  178. Input.ResetInputAxes();
  179. }
  180. }
  181. if (!yotogiFlg && sceneLevel != 3 && sceneLevel != 5
  182. && rectWin.Contains(Event.current.mousePosition)
  183. && Input.GetMouseButtonDown(0))
  184. {
  185. Input.ResetInputAxes();
  186. }
  187. rectWin = GUI.Window(129, rectWin, BGSelectWindow2, "", style);
  188. }
  189. else if (poseFlg)
  190. {
  191. if (poseGroupCombo.isClickedComboButton || poseCombo.isClickedComboButton || itemCombo.isClickedComboButton)
  192. {
  193. if (Input.mouseScrollDelta.y != 0f)
  194. {
  195. if (rectWin.Contains(Event.current.mousePosition))
  196. {
  197. GameMain.Instance.MainCamera.SetControl(false);
  198. Input.ResetInputAxes();
  199. }
  200. }
  201. }
  202. else if (!yotogiFlg && sceneLevel != 3 && sceneLevel != 5
  203. && rectWin.Contains(Event.current.mousePosition)
  204. && Input.GetMouseButtonDown(0))
  205. {
  206. Input.ResetInputAxes();
  207. }
  208. rectWin = GUI.Window(129, rectWin, PoseWindow, "", style);
  209. }
  210. else
  211. {
  212. if (faceCombo.isClickedComboButton)
  213. {
  214. if (Input.mouseScrollDelta.y != 0f)
  215. {
  216. if (rectWin.Contains(Event.current.mousePosition))
  217. {
  218. GameMain.Instance.MainCamera.SetControl(false);
  219. Input.ResetInputAxes();
  220. }
  221. }
  222. }
  223. else if (!yotogiFlg && sceneLevel != 3 && sceneLevel != 5
  224. && rectWin.Contains(Event.current.mousePosition)
  225. && Input.GetMouseButtonDown(0))
  226. {
  227. Input.ResetInputAxes();
  228. }
  229. rectWin = GUI.Window(129, rectWin, FaceWindow, "", style);
  230. }
  231. GameMain.Instance.MainCamera.SetControl(true);
  232. }
  233. }
  234. private void BGSelectWindow2(int winID)
  235. {
  236. GUIStyle guiStyle1 = "label";
  237. guiStyle1.fontSize = GetPix(12);
  238. guiStyle1.alignment = TextAnchor.UpperLeft;
  239. GUIStyle style1 = "label";
  240. style1.fontSize = GetPix(11);
  241. style1.alignment = TextAnchor.UpperLeft;
  242. GUIStyle style2 = "button";
  243. style2.fontSize = GetPix(20);
  244. GUIStyle buttonStyle = "button";
  245. buttonStyle.fontSize = GetPix(14);
  246. buttonStyle.alignment = TextAnchor.MiddleLeft;
  247. GUIStyle guiStyle2 = "button";
  248. guiStyle2.fontSize = GetPix(12);
  249. guiStyle2.alignment = TextAnchor.MiddleLeft;
  250. GUIStyle style3 = new GUIStyle("toggle")
  251. {
  252. fontSize = GetPix(13)
  253. };
  254. CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
  255. Maid maid = maidArray[selectMaidIndex];
  256. if (!kankyo2InitFlg)
  257. {
  258. listStyle2.normal.textColor = Color.white;
  259. listStyle2.normal.background = MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.5f));
  260. listStyle2.onHover.background = listStyle2.hover.background = new Texture2D(2, 2);
  261. listStyle2.padding.left = listStyle2.padding.right = listStyle2.padding.top = listStyle2.padding.bottom = GetPix(0);
  262. listStyle2.fontSize = GetPix(11);
  263. listStyle3.normal.textColor = Color.white;
  264. listStyle3.normal.background = MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.5f));
  265. listStyle3.onHover.background = listStyle3.hover.background = new Texture2D(2, 2);
  266. listStyle3.padding.left = listStyle3.padding.right = listStyle3.padding.top = GetPix(0);
  267. listStyle3.padding.bottom = GetPix(0);
  268. listStyle3.fontSize = GetPix(14);
  269. bgCombo2.selectedItemIndex = bgIndexB;
  270. bgCombo2List = new GUIContent[bgArray.Length];
  271. for (int index = 0; index < bgArray.Length; ++index)
  272. {
  273. bgCombo2List[index] = bgUiNames.TryGetValue(bgArray[index], out string name)
  274. ? new GUIContent(name)
  275. : new GUIContent(bgArray[index]);
  276. }
  277. slotCombo.selectedItemIndex = 0;
  278. slotComboList = slotArray.Select(s => slotUiNames.TryGetValue(s, out string name) ? name : s).Select(s => new GUIContent(s)).ToArray();
  279. itemCombo2.selectedItemIndex = 0;
  280. itemCombo2List = itemBArray.Select(s => itemComboUiName.TryGetValue(s, out string name) ? name : s)
  281. .Select(s => new GUIContent(s)).ToArray();
  282. kankyoCombo.selectedItemIndex = 0;
  283. kankyoComboList = new GUIContent[kankyoMax];
  284. for (int index = 0; index < kankyoMax; ++index)
  285. {
  286. IniKey iniKey = Preferences["kankyo"]["kankyo" + (index + 1)];
  287. kankyoComboList[index] = new GUIContent(iniKey.Value);
  288. }
  289. kankyo2InitFlg = true;
  290. }
  291. listStyle3.padding.top = GetPix(1);
  292. listStyle3.padding.bottom = GetPix(0);
  293. listStyle3.fontSize = GetPix(13);
  294. if (poseCombo.isClickedComboButton)
  295. {
  296. GUI.enabled = false;
  297. }
  298. if (poseGroupCombo.isClickedComboButton)
  299. {
  300. GUI.enabled = false;
  301. }
  302. if (sceneLevel == 3 || sceneLevel == 5 || isF6)
  303. {
  304. if (!isF6)
  305. {
  306. bool flag = true;
  307. if (faceFlg || poseFlg || sceneFlg || kankyoFlg || kankyo2Flg)
  308. {
  309. flag = false;
  310. }
  311. if (GUI.Toggle(new Rect(GetPix(2),
  312. GetPix(2),
  313. GetPix(39),
  314. GetPix(20)),
  315. flag,
  316. "配置",
  317. style3))
  318. {
  319. faceFlg = false;
  320. poseFlg = false;
  321. sceneFlg = false;
  322. kankyoFlg = false;
  323. kankyo2Flg = false;
  324. bGui = true;
  325. }
  326. }
  327. if (!yotogiFlg && GUI.Toggle(new Rect(GetPix(42),
  328. GetPix(2),
  329. GetPix(39),
  330. GetPix(20)),
  331. poseFlg,
  332. "操作",
  333. style3))
  334. {
  335. poseFlg = true;
  336. faceFlg = false;
  337. sceneFlg = false;
  338. kankyoFlg = false;
  339. kankyo2Flg = false;
  340. }
  341. if (GUI.Toggle(new Rect(GetPix(82), GetPix(2), GetPix(39), GetPix(20)),
  342. faceFlg,
  343. "表情",
  344. style3))
  345. {
  346. faceFlg = true;
  347. poseFlg = false;
  348. sceneFlg = false;
  349. kankyoFlg = false;
  350. kankyo2Flg = false;
  351. if (!faceFlg2)
  352. {
  353. isFaceInit = true;
  354. faceFlg2 = true;
  355. maidArray[selectMaidIndex].boMabataki = false;
  356. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  357. }
  358. isFaceInit = true;
  359. }
  360. if (GUI.Toggle(new Rect(GetPix(122), GetPix(2), GetPix(39), GetPix(20)),
  361. kankyoFlg,
  362. "環境",
  363. style3))
  364. {
  365. poseFlg = false;
  366. faceFlg = false;
  367. sceneFlg = false;
  368. kankyoFlg = true;
  369. kankyo2Flg = false;
  370. }
  371. if (GUI.Toggle(new Rect(GetPix(162), GetPix(2), GetPix(39), GetPix(20)),
  372. kankyo2Flg,
  373. "環2",
  374. style3))
  375. {
  376. poseFlg = false;
  377. faceFlg = false;
  378. sceneFlg = false;
  379. kankyoFlg = false;
  380. kankyo2Flg = true;
  381. }
  382. if (!line1)
  383. {
  384. line1 = MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.3f));
  385. line2 = MakeTex(2, 2, new Color(0.7f, 0.7f, 0.7f, 0.6f));
  386. }
  387. GUI.DrawTexture(new Rect(GetPix(5), GetPix(20), GetPix(200), 2f), line1);
  388. GUI.DrawTexture(new Rect(GetPix(5), GetPix(20), GetPix(200), 1f), line2);
  389. }
  390. if (isDanceStop)
  391. {
  392. isStop[selectMaidIndex] = true;
  393. isDanceStop = false;
  394. }
  395. if (kankyoCombo.isClickedComboButton || slotCombo.isClickedComboButton
  396. || itemCombo2.isClickedComboButton || bgCombo2.isClickedComboButton)
  397. {
  398. GUI.enabled = false;
  399. }
  400. characterMgr.GetStockMaidCount();
  401. float pix = GetPix(45);
  402. Rect position1;
  403. Rect viewRect;
  404. if (sceneLevel != 5)
  405. {
  406. position1 = new Rect(GetPix(7),
  407. GetPix(138),
  408. GetPix(44) * 4 + GetPix(20),
  409. rectWin.height * 0.785f);
  410. viewRect = new Rect(0.0f,
  411. 0.0f,
  412. position1.width * 0.845f,
  413. pix * (float)Math.Ceiling(sortList.Count / 4.0) + GetPix(5));
  414. }
  415. else
  416. {
  417. position1 = new Rect(GetPix(7),
  418. GetPix(138),
  419. GetPix(44) * 4 + GetPix(20),
  420. (float)(rectWin.height * 0.785000026226044 * 0.959999978542328));
  421. viewRect = new Rect(0.0f,
  422. 0.0f,
  423. position1.width * 0.845f,
  424. (float)(pix * Math.Ceiling(sortList.Count / 4.0)
  425. + GetPix(5) * 0.920000016689301));
  426. }
  427. scrollPos = GUI.BeginScrollView(position1, scrollPos, viewRect);
  428. for (int index = 0; index < sortList.Count; ++index)
  429. {
  430. Rect position2 = new Rect(GetPix(index % 4 * 45),
  431. GetPix(index / 4 * 45),
  432. GetPix(44),
  433. GetPix(44));
  434. if (GUI.Button(position2, sortList[index].tex))
  435. {
  436. string menu = sortList[index].menu;
  437. byte[] f_byBuf = null;
  438. using (AFileBase afileBase = GameUty.FileOpen(menu, null))
  439. {
  440. NDebug.Assert(afileBase.IsValid(), "メニューファイルが存在しません。 :" + menu);
  441. if (f_byBuf == null || f_byBuf.Length < afileBase.GetSize())
  442. {
  443. f_byBuf = new byte[afileBase.GetSize()];
  444. }
  445. afileBase.Read(ref f_byBuf, afileBase.GetSize());
  446. }
  447. string[] filename2 = ProcScriptBin(maidArray[0], f_byBuf, menu, false);
  448. GameObject gameObject = ImportCM2.LoadSkinMesh_R(filename2[0], filename2, "", maidArray[0].body0.goSlot[8], 1);
  449. doguBObject.Add(gameObject);
  450. gameObject.name = menu;
  451. Vector3 zero1 = Vector3.zero;
  452. Vector3 zero2 = Vector3.zero;
  453. zero1.z = 0.4f;
  454. gameObject.transform.localPosition = zero1;
  455. gameObject.transform.localRotation = Quaternion.Euler(zero2);
  456. doguCnt = doguBObject.Count - 1;
  457. gDogu[doguCnt] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  458. gDogu[doguCnt].GetComponent<Renderer>().material = m_material;
  459. gDogu[doguCnt].layer = 8;
  460. gDogu[doguCnt].GetComponent<Renderer>().enabled = false;
  461. gDogu[doguCnt].SetActive(false);
  462. gDogu[doguCnt].transform.position = gameObject.transform.position;
  463. mDogu[doguCnt] = gDogu[doguCnt].AddComponent<MouseDrag6>();
  464. mDogu[doguCnt].isScale = false;
  465. mDogu[doguCnt].obj = gDogu[doguCnt];
  466. mDogu[doguCnt].maid = gameObject;
  467. mDogu[doguCnt].angles = gameObject.transform.eulerAngles;
  468. gDogu[doguCnt].transform.localScale = new Vector3(cubeSize, cubeSize, cubeSize);
  469. mDogu[doguCnt].ido = 1;
  470. }
  471. GUI.DrawTexture(position2, sortList[index].tex);
  472. }
  473. GUI.EndScrollView();
  474. GUI.enabled = true;
  475. GUI.Label(new Rect(GetPix(3), GetPix(108), GetPix(100), GetPix(25)),
  476. "服装",
  477. style1);
  478. style1.fontSize = GetPix(9);
  479. GUI.Label(new Rect(GetPix(3), GetPix(119), GetPix(100), GetPix(25)),
  480. "アクセサリ",
  481. style1);
  482. style1.fontSize = GetPix(11);
  483. GUI.Label(new Rect(GetPix(3), GetPix(58), GetPix(100), GetPix(25)),
  484. "アイテム",
  485. style1);
  486. GUI.Label(new Rect(GetPix(3), GetPix(86), GetPix(100), GetPix(24)),
  487. "背景(小)",
  488. style1);
  489. if (kankyoCombo.isClickedComboButton || itemCombo2.isClickedComboButton || bgCombo2.isClickedComboButton)
  490. {
  491. GUI.enabled = false;
  492. }
  493. int num1 =
  494. slotCombo.List(new Rect(GetPix(51),
  495. GetPix(111),
  496. GetPix(100),
  497. GetPix(23)),
  498. slotComboList[slotIndex].text,
  499. slotComboList,
  500. buttonStyle,
  501. "box",
  502. listStyle3);
  503. GUI.enabled = true;
  504. if (kankyoCombo.isClickedComboButton || itemCombo2.isClickedComboButton)
  505. {
  506. GUI.enabled = false;
  507. }
  508. bgIndexB =
  509. bgCombo2.List(new Rect(GetPix(51),
  510. GetPix(83),
  511. GetPix(100),
  512. GetPix(23)),
  513. bgCombo2List[bgIndexB].text,
  514. bgCombo2List,
  515. buttonStyle,
  516. "box",
  517. listStyle3);
  518. if (GUI.Button(new Rect(GetPix(156), GetPix(83), GetPix(38), GetPix(23)),
  519. "追加",
  520. style2))
  521. {
  522. Object original = GameMain.Instance.BgMgr.CreateAssetBundle(bgArray[bgIndexB]);
  523. if (original == null)
  524. {
  525. original = Resources.Load("BG/" + bgArray[bgIndexB]);
  526. }
  527. GameObject gameObject = Instantiate(original) as GameObject;
  528. doguBObject.Add(gameObject);
  529. gameObject.name = "BG_" + bgArray[bgIndexB];
  530. Vector3 zero1 = Vector3.zero;
  531. Vector3 zero2 = Vector3.zero;
  532. zero1.z = 0.4f;
  533. gameObject.transform.localScale = new Vector3(0.1f, 0.1f, 0.1f);
  534. gameObject.transform.localPosition = zero1;
  535. gameObject.transform.localRotation = Quaternion.Euler(zero2);
  536. doguCnt = doguBObject.Count - 1;
  537. gDogu[doguCnt] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  538. gDogu[doguCnt].GetComponent<Renderer>().material = m_material;
  539. gDogu[doguCnt].layer = 8;
  540. gDogu[doguCnt].GetComponent<Renderer>().enabled = false;
  541. gDogu[doguCnt].SetActive(false);
  542. gDogu[doguCnt].transform.position = gameObject.transform.position;
  543. mDogu[doguCnt] = gDogu[doguCnt].AddComponent<MouseDrag6>();
  544. mDogu[doguCnt].isScale = false;
  545. mDogu[doguCnt].obj = gDogu[doguCnt];
  546. mDogu[doguCnt].maid = gameObject;
  547. mDogu[doguCnt].angles = gameObject.transform.eulerAngles;
  548. gDogu[doguCnt].transform.localScale = new Vector3(cubeSize, cubeSize, cubeSize);
  549. mDogu[doguCnt].ido = 1;
  550. }
  551. GUI.enabled = true;
  552. if (kankyoCombo.isClickedComboButton)
  553. {
  554. GUI.enabled = false;
  555. }
  556. itemIndexB =
  557. itemCombo2.List(new Rect(GetPix(51),
  558. GetPix(55),
  559. GetPix(100),
  560. GetPix(23)),
  561. itemCombo2List[itemIndexB].text,
  562. itemCombo2List,
  563. buttonStyle,
  564. "box",
  565. listStyle3);
  566. if (GUI.Button(new Rect(GetPix(156), GetPix(55), GetPix(38), GetPix(23)),
  567. "追加",
  568. style2))
  569. {
  570. string str = itemBArray[itemIndexB].Split(',')[1];
  571. byte[] f_byBuf = null;
  572. using (AFileBase afileBase = GameUty.FileOpen(str, null))
  573. {
  574. NDebug.Assert(afileBase.IsValid(), "メニューファイルが存在しません。 :" + str);
  575. if (f_byBuf == null || f_byBuf.Length < afileBase.GetSize())
  576. {
  577. f_byBuf = new byte[afileBase.GetSize()];
  578. }
  579. afileBase.Read(ref f_byBuf, afileBase.GetSize());
  580. }
  581. string[] filename2 = ProcScriptBin(maidArray[0], f_byBuf, str, false);
  582. GameObject gameObject = ImportCM2.LoadSkinMesh_R(filename2[0], filename2, "", maidArray[0].body0.goSlot[8], 1);
  583. doguBObject.Add(gameObject);
  584. gameObject.name = str;
  585. Vector3 zero1 = Vector3.zero;
  586. Vector3 zero2 = Vector3.zero;
  587. zero1.z = 0.4f;
  588. switch (itemIndexB)
  589. {
  590. case 0:
  591. zero2.z = 90f;
  592. zero1.y = 0.04f;
  593. goto case 19;
  594. case 1:
  595. zero2.z = 90f;
  596. goto case 19;
  597. case 4:
  598. zero2.x = 90f;
  599. goto case 19;
  600. case 19:
  601. case 20:
  602. case 21:
  603. case 22:
  604. case 23:
  605. switch (gameObject.name)
  606. {
  607. case "HandItemL_Etoile_Saucer_I_.menu":
  608. case "HandItemL_Karte_I_.menu":
  609. case "HandItemL_Katuramuki_Daikon_I_.menu":
  610. case "HandItemR_BeerBottle(cap_off)_I_.menu":
  611. case "HandItemR_BeerBottle(cap_on)_I_.menu":
  612. case "HandItemR_BeerGlass_I_.menu":
  613. case "HandItemR_Etoile_Teacup_I_.menu":
  614. case "HandItemR_Jyouro_I_.menu":
  615. case "HandItemR_Ketchup_I_.menu":
  616. case "HandItemR_Kobin_I_.menu":
  617. case "HandItemR_MelonSoda_I_.menu":
  618. case "HandItemR_MilkBottle(cap_off)_I_.menu":
  619. case "HandItemR_MilkBottle(cap_on)_I_.menu":
  620. case "HandItemR_Mugcup_I_.menu":
  621. case "HandItemR_Natumikan_I_.menu":
  622. case "HandItemR_Nei_Heartful_I_.menu":
  623. case "HandItemR_Ochoko_I_.menu":
  624. case "HandItemR_Shaker_I_.menu":
  625. case "HandItemR_SmartPhone_I_.menu":
  626. case "HandItemR_Suika_I_.menu":
  627. case "HandItemR_Tomato_I_.menu":
  628. case "HandItemR_TropicalGlass_I_.menu":
  629. case "HandItemR_cocktail_blue_I_.menu":
  630. case "HandItemR_cocktail_red_I_.menu":
  631. case "HandItemR_cocktail_yellow_I_.menu":
  632. case "HandItemR_smoothie_green_I_.menu":
  633. case "HandItemR_smoothie_red_I_.menu":
  634. zero2.x = 0.0f;
  635. zero2.z = 90f;
  636. break;
  637. case "HandItemL_Karaoke_Mike_I_.menu":
  638. case "HandItemR_Crops_Suika_I_.menu":
  639. case "HandItemR_Curry_I_.menu":
  640. case "HandItemR_DVD1_I_.menu":
  641. case "HandItemR_DVD2_I_.menu":
  642. case "HandItemR_DVD3_I_.menu":
  643. case "HandItemR_DVD4_I_.menu":
  644. case "HandItemR_DVD5_I_.menu":
  645. case "HandItemR_Folk_I_.menu":
  646. case "HandItemR_Hanabi_I_.menu":
  647. case "HandItemR_Kushiyaki_I_.menu":
  648. case "HandItemR_Ninjin_I_.menu":
  649. case "HandItemR_Omurice1_I_.menu":
  650. case "HandItemR_Omurice2_I_.menu":
  651. case "HandItemR_Omurice3_I_.menu":
  652. case "HandItemR_Pasta_I_.menu":
  653. case "HandItemR_Satumaimo_I_.menu":
  654. case "HandItemR_Scoop_I_.menu":
  655. case "HandItemR_Senkouhanabi_I_.menu":
  656. case "HandItemR_Shell_I_.menu":
  657. case "HandItemR_Spoon_Curry_I_.menu":
  658. case "HandItemR_Spoon_Omurice_I_.menu":
  659. case "HandItemR_Tomorokoshi_I_.menu":
  660. case "HandItemR_Tomorokoshi_yaki_I_.menu":
  661. case "HandItemR_Uchiwa_I_.menu":
  662. zero2.z = 90f;
  663. break;
  664. }
  665. gameObject.transform.localPosition = zero1;
  666. gameObject.transform.localRotation = Quaternion.Euler(zero2);
  667. doguCnt = doguBObject.Count - 1;
  668. gDogu[doguCnt] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  669. gDogu[doguCnt].GetComponent<Renderer>().material = m_material;
  670. gDogu[doguCnt].layer = 8;
  671. gDogu[doguCnt].GetComponent<Renderer>().enabled = false;
  672. gDogu[doguCnt].SetActive(false);
  673. gDogu[doguCnt].transform.position = gameObject.transform.position;
  674. mDogu[doguCnt] = gDogu[doguCnt].AddComponent<MouseDrag6>();
  675. mDogu[doguCnt].isScale = false;
  676. mDogu[doguCnt].obj = gDogu[doguCnt];
  677. mDogu[doguCnt].maid = gameObject;
  678. mDogu[doguCnt].angles = gameObject.transform.eulerAngles;
  679. gDogu[doguCnt].transform.localScale = new Vector3(cubeSize, cubeSize, cubeSize);
  680. mDogu[doguCnt].ido = 1;
  681. break;
  682. case 25:
  683. zero2.z = 90f;
  684. goto case 19;
  685. case 26:
  686. zero2.z = 90f;
  687. goto case 19;
  688. case 27:
  689. zero2.z = 90f;
  690. goto case 19;
  691. default:
  692. zero2.x = -90f;
  693. goto case 19;
  694. }
  695. }
  696. GUI.enabled = true;
  697. if (nameFlg)
  698. {
  699. inName2 = GUI.TextField(new Rect(GetPix(5),
  700. GetPix(27),
  701. GetPix(100),
  702. GetPix(20)),
  703. inName2);
  704. if (GUI.Button(new Rect(GetPix(110),
  705. GetPix(27),
  706. GetPix(35),
  707. GetPix(20)),
  708. "更新",
  709. style2))
  710. {
  711. nameFlg = false;
  712. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  713. Preferences["kankyo"]["kankyo" + (kankyoCombo.selectedItemIndex + 1)].Value = inName2;
  714. SaveConfig();
  715. kankyoComboList = new GUIContent[kankyoMax];
  716. for (int index = 0; index < kankyoMax; ++index)
  717. {
  718. IniKey iniKey = Preferences["kankyo"]["kankyo" + (index + 1)];
  719. kankyoComboList[index] = new GUIContent(iniKey.Value);
  720. }
  721. }
  722. }
  723. else
  724. {
  725. if (GUI.Button(new Rect(GetPix(180),
  726. GetPix(27),
  727. GetPix(24),
  728. GetPix(20)),
  729. "名",
  730. style2))
  731. {
  732. nameFlg = true;
  733. inName2 = kankyoComboList[kankyoIndex].text;
  734. }
  735. kankyoIndex =
  736. kankyoCombo.List(new Rect(GetPix(4),
  737. GetPix(27),
  738. GetPix(91),
  739. GetPix(23)),
  740. kankyoComboList[kankyoIndex].text,
  741. kankyoComboList,
  742. buttonStyle,
  743. "box",
  744. listStyle3);
  745. if (GUI.Button(new Rect(GetPix(100),
  746. GetPix(27),
  747. GetPix(35),
  748. GetPix(20)),
  749. "保存",
  750. style2))
  751. {
  752. saveScene = 10000 + kankyoIndex;
  753. saveScene2 = saveScene;
  754. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  755. try
  756. {
  757. thum_byte_to_base64_ = string.Empty;
  758. thum_file_path_ = Path.Combine(Path.GetTempPath(), "cm3d2_" + Guid.NewGuid().ToString() + ".png");
  759. GameMain.Instance.MainCamera.ScreenShot(thum_file_path_, 1, false);
  760. }
  761. catch { }
  762. }
  763. GUI.enabled = false;
  764. IniKey iniKey = Preferences["scene"]["s" + (10000 + kankyoIndex)];
  765. if (iniKey.Value != null && iniKey.Value.ToString() != "")
  766. {
  767. GUI.enabled = true;
  768. }
  769. if (GUI.Button(new Rect(GetPix(140),
  770. GetPix(27),
  771. GetPix(35),
  772. GetPix(20)),
  773. "読込",
  774. style2))
  775. {
  776. loadScene = 10000 + kankyoIndex;
  777. kankyoLoadFlg = true;
  778. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  779. }
  780. }
  781. GUI.enabled = true;
  782. GUI.DragWindow();
  783. if (num1 == slotIndex)
  784. {
  785. return;
  786. }
  787. slotIndex = num1;
  788. sortList.Clear();
  789. scrollPos = new Vector2(0.0f, 0.0f);
  790. if (itemDataList.Count == 0)
  791. {
  792. foreach (string menuFile in GameUty.MenuFiles)
  793. {
  794. string fileName = Path.GetFileName(menuFile);
  795. byte[] f_byBuf = null;
  796. using (AFileBase afileBase = GameUty.FileOpen(fileName, null))
  797. {
  798. NDebug.Assert(afileBase.IsValid(), "メニューファイルが存在しません。 :" + fileName);
  799. if (f_byBuf == null || f_byBuf.Length < afileBase.GetSize())
  800. {
  801. f_byBuf = new byte[afileBase.GetSize()];
  802. }
  803. afileBase.Read(ref f_byBuf, afileBase.GetSize());
  804. }
  805. BinaryReader binaryReader = new BinaryReader(new MemoryStream(f_byBuf), Encoding.UTF8);
  806. if (binaryReader.ReadString() != "CM3D2_MENU")
  807. {
  808. binaryReader.Close();
  809. }
  810. else
  811. {
  812. try
  813. {
  814. binaryReader.ReadInt32();
  815. binaryReader.ReadString();
  816. binaryReader.ReadString();
  817. string str1 = binaryReader.ReadString();
  818. string s = "";
  819. binaryReader.ReadString();
  820. binaryReader.ReadInt32();
  821. string str2 = "";
  822. do
  823. {
  824. int num2;
  825. do
  826. {
  827. num2 = binaryReader.ReadByte();
  828. } while (num2 == 0);
  829. for (int index = 0; index < num2; ++index)
  830. {
  831. string str3 = binaryReader.ReadString();
  832. if (str3 == "icons" || str3 == "icon")
  833. {
  834. str2 = binaryReader.ReadString();
  835. break;
  836. }
  837. if (str3 == "priority")
  838. {
  839. s = binaryReader.ReadString();
  840. break;
  841. }
  842. }
  843. } while (str2 == "");
  844. int.TryParse(s, out int result);
  845. itemDataList.Add(new ItemData() { info = str1, name = str2, menu = fileName, order = result, cd = f_byBuf });
  846. }
  847. catch { }
  848. binaryReader.Close();
  849. }
  850. }
  851. }
  852. foreach (ItemData itemData in itemDataList)
  853. {
  854. if (slotIndex != 0 && itemData.info == slotArray[slotIndex] && itemData.order > 0)
  855. {
  856. sortList.Add(new SortItem() { order = itemData.order, name = itemData.name, menu = itemData.menu, tex = itemData.tex });
  857. }
  858. }
  859. IOrderedEnumerable<SortItem> orderedEnumerable = sortList
  860. .OrderBy(p => p.order)
  861. .ThenBy(p => p.name);
  862. List<SortItem> sortItemList = new List<SortItem>();
  863. string str4 = "";
  864. foreach (SortItem sortItem in orderedEnumerable)
  865. {
  866. try
  867. {
  868. if (!(sortItem.menu == str4))
  869. {
  870. if (sortItem.tex == null)
  871. {
  872. byte[] data = ImportCM.LoadTexture(GameUty.FileSystem, sortItem.name, false).data;
  873. Texture2D texture2D = new Texture2D(50, 50, TextureFormat.RGB565, false);
  874. texture2D.LoadImage(data);
  875. sortItem.tex = texture2D;
  876. }
  877. str4 = sortItem.menu;
  878. sortItemList.Add(sortItem);
  879. }
  880. }
  881. catch { }
  882. }
  883. sortList = sortItemList;
  884. }
  885. private void BGSelectWindow(int winID)
  886. {
  887. GUIStyle guistyle = "label";
  888. guistyle.fontSize = GetPix(12);
  889. guistyle.alignment = TextAnchor.UpperLeft;
  890. GUIStyle guistyle2 = "label";
  891. guistyle2.fontSize = GetPix(11);
  892. guistyle2.alignment = TextAnchor.UpperLeft;
  893. GUIStyle guistyle3 = "button";
  894. guistyle3.fontSize = GetPix(20);
  895. GUIStyle guistyle4 = "button";
  896. guistyle4.fontSize = GetPix(14);
  897. guistyle4.alignment = TextAnchor.MiddleLeft;
  898. GUIStyle guistyle5 = "button";
  899. guistyle5.fontSize = GetPix(12);
  900. guistyle5.alignment = TextAnchor.MiddleLeft;
  901. GUIStyle guistyle6 = new GUIStyle("toggle")
  902. {
  903. fontSize = GetPix(13)
  904. };
  905. CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
  906. Maid maid = maidArray[selectMaidIndex];
  907. if (!kankyoInitFlg)
  908. {
  909. listStyle2.normal.textColor = Color.white;
  910. listStyle2.normal.background = MakeTex(2, 2, new Color(0f, 0f, 0f, 0.5f));
  911. listStyle2.onHover.background = listStyle2.hover.background = new Texture2D(2, 2);
  912. RectOffset padding = listStyle2.padding;
  913. RectOffset padding2 = listStyle2.padding;
  914. RectOffset padding3 = listStyle2.padding;
  915. int num = listStyle2.padding.bottom = GetPix(0);
  916. num = padding3.top = num;
  917. num = padding2.right = num;
  918. padding.left = num;
  919. listStyle2.fontSize = GetPix(11);
  920. listStyle3.normal.textColor = Color.white;
  921. listStyle3.normal.background = MakeTex(2, 2, new Color(0f, 0f, 0f, 0.5f));
  922. listStyle3.onHover.background = listStyle3.hover.background = new Texture2D(2, 2);
  923. RectOffset padding4 = listStyle3.padding;
  924. RectOffset padding5 = listStyle3.padding;
  925. num = listStyle3.padding.top = GetPix(0);
  926. num = padding5.right = num;
  927. padding4.left = num;
  928. listStyle3.padding.bottom = GetPix(0);
  929. listStyle3.fontSize = GetPix(12);
  930. bgmCombo.selectedItemIndex = bgmIndex;
  931. if (sceneLevel == 5)
  932. {
  933. bgmCombo.selectedItemIndex = 2;
  934. }
  935. bgmComboList = bgmArray.Select(s => dancesDict.TryGetValue(s, out string name) ? name : s).Select(s => new GUIContent(s)).ToArray();
  936. bgCombo.selectedItemIndex = bgIndex;
  937. bgComboList = new GUIContent[bgArray.Length];
  938. for (int j = 0; j < bgArray.Length; j++)
  939. {
  940. // Dicts merged during init
  941. if (bgDict.TryGetValue(bgArray[j], out string name))
  942. {
  943. bgComboList[j] = new GUIContent(name);
  944. }
  945. else
  946. {
  947. bgComboList[j] = new GUIContent(bgArray[j]);
  948. }
  949. }
  950. doguCombo.selectedItemIndex = 0;
  951. doguComboList = new GUIContent[doguBArray.Length];
  952. for (int j = 0; j < doguComboList.Length; j++)
  953. {
  954. // Dicts merged during init
  955. if (doguUiNames.TryGetValue(doguBArray[j], out string name))
  956. {
  957. doguComboList[j] = new GUIContent(name);
  958. }
  959. else
  960. {
  961. doguComboList[j] = new GUIContent(doguBArray[j]);
  962. }
  963. }
  964. parCombo.selectedItemIndex = 0;
  965. parComboList = parArray.Select(s => parUiDict.TryGetValue(s, out string name) ? name : s).Select(s => new GUIContent(s)).ToArray();
  966. lightCombo.selectedItemIndex = 0;
  967. lightList = new List<GameObject>
  968. {
  969. GameMain.Instance.MainLight.gameObject
  970. };
  971. lightComboList = new GUIContent[lightList.Count];
  972. for (int i = 0; i < lightList.Count; i++)
  973. {
  974. if (i == 0)
  975. {
  976. lightComboList[i] = new GUIContent("メイン");
  977. }
  978. else
  979. {
  980. lightComboList[i] = new GUIContent("追加" + i);
  981. }
  982. }
  983. kankyoInitFlg = true;
  984. }
  985. listStyle3.padding.top = GetPix(1);
  986. listStyle3.padding.bottom = GetPix(0);
  987. listStyle3.fontSize = GetPix(12);
  988. if (poseCombo.isClickedComboButton)
  989. {
  990. GUI.enabled = false;
  991. }
  992. if (poseGroupCombo.isClickedComboButton)
  993. {
  994. GUI.enabled = false;
  995. }
  996. if (sceneLevel == 3 || sceneLevel == 5 || isF6)
  997. {
  998. if (!isF6)
  999. {
  1000. bool value = true;
  1001. if (faceFlg || poseFlg || sceneFlg || kankyoFlg || kankyo2Flg)
  1002. {
  1003. value = false;
  1004. }
  1005. if (GUI.Toggle(new Rect(GetPix(2),
  1006. GetPix(2),
  1007. GetPix(39),
  1008. GetPix(20)),
  1009. value,
  1010. "配置",
  1011. guistyle6))
  1012. {
  1013. faceFlg = false;
  1014. poseFlg = false;
  1015. sceneFlg = false;
  1016. kankyoFlg = false;
  1017. kankyo2Flg = false;
  1018. bGui = true;
  1019. }
  1020. }
  1021. if (!yotogiFlg)
  1022. {
  1023. if (GUI.Toggle(new Rect(GetPix(42),
  1024. GetPix(2),
  1025. GetPix(39),
  1026. GetPix(20)),
  1027. poseFlg,
  1028. "操作",
  1029. guistyle6))
  1030. {
  1031. poseFlg = true;
  1032. faceFlg = false;
  1033. sceneFlg = false;
  1034. kankyoFlg = false;
  1035. kankyo2Flg = false;
  1036. }
  1037. }
  1038. if (GUI.Toggle(new Rect(GetPix(82), GetPix(2), GetPix(39), GetPix(20)),
  1039. faceFlg,
  1040. "表情",
  1041. guistyle6))
  1042. {
  1043. faceFlg = true;
  1044. poseFlg = false;
  1045. sceneFlg = false;
  1046. kankyoFlg = false;
  1047. kankyo2Flg = false;
  1048. if (!faceFlg2)
  1049. {
  1050. isFaceInit = true;
  1051. faceFlg2 = true;
  1052. maidArray[selectMaidIndex].boMabataki = false;
  1053. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  1054. }
  1055. isFaceInit = true;
  1056. }
  1057. if (GUI.Toggle(new Rect(GetPix(122), GetPix(2), GetPix(39), GetPix(20)),
  1058. kankyoFlg,
  1059. "環境",
  1060. guistyle6))
  1061. {
  1062. poseFlg = false;
  1063. faceFlg = false;
  1064. sceneFlg = false;
  1065. kankyoFlg = true;
  1066. kankyo2Flg = false;
  1067. }
  1068. if (GUI.Toggle(new Rect(GetPix(162), GetPix(2), GetPix(39), GetPix(20)),
  1069. kankyo2Flg,
  1070. "環2",
  1071. guistyle6))
  1072. {
  1073. poseFlg = false;
  1074. faceFlg = false;
  1075. sceneFlg = false;
  1076. kankyoFlg = false;
  1077. kankyo2Flg = true;
  1078. }
  1079. if (!line1)
  1080. {
  1081. line1 = MakeTex(2, 2, new Color(0f, 0f, 0f, 0.3f));
  1082. line2 = MakeTex(2, 2, new Color(0.7f, 0.7f, 0.7f, 0.6f));
  1083. }
  1084. GUI.DrawTexture(new Rect(GetPix(5), GetPix(20), GetPix(200), 2f), line1);
  1085. GUI.DrawTexture(new Rect(GetPix(5), GetPix(20), GetPix(200), 1f), line2);
  1086. }
  1087. if (isDanceStop)
  1088. {
  1089. isStop[selectMaidIndex] = true;
  1090. isDanceStop = false;
  1091. }
  1092. yotogiFlg = false;
  1093. if (sceneLevel == 14)
  1094. {
  1095. if (GameObject.Find("/UI Root/YotogiPlayPanel/CommandViewer/SkillViewer/MaskGroup/SkillGroup/CommandParent/CommandUnit"))
  1096. {
  1097. yotogiFlg = true;
  1098. }
  1099. }
  1100. if (!isF6)
  1101. {
  1102. if (GUI.Button(new Rect(GetPix(157),
  1103. GetPix(32),
  1104. GetPix(46),
  1105. GetPix(35)),
  1106. "シーン\n 管 理",
  1107. guistyle3))
  1108. {
  1109. sceneFlg = true;
  1110. faceFlg = false;
  1111. poseFlg = false;
  1112. kankyoFlg = false;
  1113. kankyo2Flg = false;
  1114. bGui = true;
  1115. if (!saveManagerInitialize) InitializeSaveManager();
  1116. for (int i = 0; i < 10; i++)
  1117. {
  1118. date[i] = "未保存";
  1119. ninzu[i] = "";
  1120. IniKey iniKey = Preferences["scene"]["s" + (page * 10 + i + 1)];
  1121. if (iniKey.Value != null && iniKey.Value.ToString() != "")
  1122. {
  1123. string[] array = iniKey.Value.Split(new char[] { '_' });
  1124. if (array.Length >= 2)
  1125. {
  1126. string[] array2 = array[0].Split(new char[] { ',' });
  1127. date[i] = array2[0];
  1128. ninzu[i] = array2[1] + "人";
  1129. }
  1130. }
  1131. }
  1132. }
  1133. }
  1134. if (doguCombo.isClickedComboButton || parCombo.isClickedComboButton || bgCombo.isClickedComboButton
  1135. || bgmCombo.isClickedComboButton || lightCombo.isClickedComboButton)
  1136. {
  1137. GUI.enabled = false;
  1138. }
  1139. int num2 = -1;
  1140. if (lightIndex[selectLightIndex] == 0)
  1141. {
  1142. isIdx1 = true;
  1143. }
  1144. if (lightIndex[selectLightIndex] == 1)
  1145. {
  1146. isIdx2 = true;
  1147. }
  1148. if (lightIndex[selectLightIndex] == 2)
  1149. {
  1150. isIdx3 = true;
  1151. }
  1152. if (lightIndex[selectLightIndex] == 3)
  1153. {
  1154. isIdx4 = true;
  1155. }
  1156. if (GUI.Toggle(new Rect(GetPix(5), GetPix(215), GetPix(45), GetPix(20)),
  1157. isIdx1,
  1158. "通常",
  1159. guistyle6))
  1160. {
  1161. if (lightIndex[selectLightIndex] != 0)
  1162. {
  1163. isIdx1 = true;
  1164. isIdx2 = false;
  1165. isIdx3 = false;
  1166. isIdx4 = false;
  1167. num2 = 0;
  1168. }
  1169. }
  1170. if (GUI.Toggle(new Rect(GetPix(50), GetPix(215), GetPix(45), GetPix(20)),
  1171. isIdx2,
  1172. "Spot",
  1173. guistyle6))
  1174. {
  1175. if (lightIndex[selectLightIndex] != 1)
  1176. {
  1177. isIdx1 = false;
  1178. isIdx2 = true;
  1179. isIdx3 = false;
  1180. isIdx4 = false;
  1181. num2 = 1;
  1182. }
  1183. }
  1184. if (GUI.Toggle(new Rect(GetPix(99), GetPix(215), GetPix(45), GetPix(20)),
  1185. isIdx3,
  1186. "Point",
  1187. guistyle6))
  1188. {
  1189. if (lightIndex[selectLightIndex] != 2)
  1190. {
  1191. isIdx1 = false;
  1192. isIdx2 = false;
  1193. isIdx3 = true;
  1194. isIdx4 = false;
  1195. num2 = 2;
  1196. }
  1197. }
  1198. if (selectLightIndex == 0)
  1199. {
  1200. if (GUI.Toggle(new Rect(GetPix(150),
  1201. GetPix(215),
  1202. GetPix(45),
  1203. GetPix(20)),
  1204. isIdx4,
  1205. "単色",
  1206. guistyle6))
  1207. {
  1208. if (lightIndex[selectLightIndex] != 3)
  1209. {
  1210. isIdx1 = false;
  1211. isIdx2 = false;
  1212. isIdx3 = false;
  1213. isIdx4 = true;
  1214. num2 = 3;
  1215. }
  1216. }
  1217. }
  1218. else if (GUI.Toggle(new Rect(GetPix(150),
  1219. GetPix(215),
  1220. GetPix(45),
  1221. GetPix(20)),
  1222. isIdx4,
  1223. "無効",
  1224. guistyle6))
  1225. {
  1226. if (lightIndex[selectLightIndex] != 3)
  1227. {
  1228. isIdx1 = false;
  1229. isIdx2 = false;
  1230. isIdx3 = false;
  1231. isIdx4 = true;
  1232. num2 = 3;
  1233. }
  1234. }
  1235. if (num2 >= 0)
  1236. {
  1237. lightIndex[selectLightIndex] = num2;
  1238. if (selectLightIndex == 0)
  1239. {
  1240. GameMain.Instance.MainLight.Reset();
  1241. GameMain.Instance.MainLight.SetIntensity(0.95f);
  1242. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle = 50f;
  1243. GameMain.Instance.MainLight.GetComponent<Light>().range = 10f;
  1244. GameMain.Instance.MainLight.gameObject.transform.position = new Vector3(0f, 2f, 0f);
  1245. if (lightIndex[selectLightIndex] == 0)
  1246. {
  1247. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  1248. bgObject.SetActive(true);
  1249. mainCamera.GetComponent<Camera>().backgroundColor = new Color(0f, 0f, 0f);
  1250. }
  1251. else if (lightIndex[selectLightIndex] == 1)
  1252. {
  1253. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.right * 40f;
  1254. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Spot;
  1255. bgObject.SetActive(true);
  1256. mainCamera.GetComponent<Camera>().backgroundColor = new Color(0f, 0f, 0f);
  1257. }
  1258. else if (lightIndex[selectLightIndex] == 2)
  1259. {
  1260. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Point;
  1261. bgObject.SetActive(true);
  1262. mainCamera.GetComponent<Camera>().backgroundColor = new Color(0f, 0f, 0f);
  1263. }
  1264. else if (lightIndex[selectLightIndex] == 3)
  1265. {
  1266. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  1267. mainCamera.GetComponent<Camera>().backgroundColor = new Color(lightColorR[0], lightColorG[0], lightColorB[0]);
  1268. bgObject.SetActive(false);
  1269. }
  1270. }
  1271. else
  1272. {
  1273. lightList[selectLightIndex].SetActive(true);
  1274. if (lightIndex[selectLightIndex] == 0)
  1275. {
  1276. lightList[selectLightIndex].GetComponent<Light>().type = LightType.Directional;
  1277. }
  1278. else if (lightIndex[selectLightIndex] == 1)
  1279. {
  1280. lightList[selectLightIndex].transform.eulerAngles += Vector3.right * 40f;
  1281. lightList[selectLightIndex].GetComponent<Light>().type = LightType.Spot;
  1282. }
  1283. else if (lightIndex[selectLightIndex] == 2)
  1284. {
  1285. lightList[selectLightIndex].GetComponent<Light>().type = LightType.Point;
  1286. }
  1287. else if (lightIndex[selectLightIndex] == 3)
  1288. {
  1289. lightList[selectLightIndex].GetComponent<Light>().type = LightType.Directional;
  1290. lightList[selectLightIndex].SetActive(false);
  1291. }
  1292. }
  1293. lightColorR[selectLightIndex] = 1f;
  1294. lightColorG[selectLightIndex] = 1f;
  1295. lightColorB[selectLightIndex] = 1f;
  1296. lightX[selectLightIndex] = 40f;
  1297. lightY[selectLightIndex] = 180f;
  1298. lightAkarusa[selectLightIndex] = 0.95f;
  1299. lightKage[selectLightIndex] = 0.098f;
  1300. lightRange[selectLightIndex] = 50f;
  1301. if (lightIndex[selectLightIndex] == 1)
  1302. {
  1303. lightX[selectLightIndex] = 90f;
  1304. }
  1305. }
  1306. GUI.Label(new Rect(GetPix(10), GetPix(138), GetPix(100), GetPix(25)),
  1307. "キューブ表示",
  1308. guistyle2);
  1309. guistyle6.fontSize = GetPix(12);
  1310. isCube2 = GUI.Toggle(new Rect(GetPix(5),
  1311. GetPix(153),
  1312. GetPix(55),
  1313. GetPix(20)),
  1314. isCube2,
  1315. "大道具(",
  1316. guistyle6);
  1317. if (!isF6)
  1318. {
  1319. isCube = GUI.Toggle(new Rect(GetPix(102),
  1320. GetPix(153),
  1321. GetPix(54),
  1322. GetPix(20)),
  1323. isCube,
  1324. "メイド",
  1325. guistyle6);
  1326. }
  1327. bool flag = GUI.Toggle(new Rect(GetPix(160),
  1328. GetPix(153),
  1329. GetPix(44),
  1330. GetPix(20)),
  1331. isCube3,
  1332. "背景",
  1333. guistyle6);
  1334. guistyle6.fontSize = GetPix(13);
  1335. bool flag2 = GUI.Toggle(new Rect(GetPix(61),
  1336. GetPix(153),
  1337. GetPix(38),
  1338. GetPix(20)),
  1339. isCubeS,
  1340. "小)",
  1341. guistyle6);
  1342. if (isCubeS != flag2)
  1343. {
  1344. isCubeS = flag2;
  1345. if (isCubeS)
  1346. {
  1347. cubeSize = 0.05f;
  1348. }
  1349. else
  1350. {
  1351. cubeSize = 0.12f;
  1352. }
  1353. for (int i = 0; i < doguBObject.Count; i++)
  1354. {
  1355. gDogu[i].transform.localScale = new Vector3(cubeSize, cubeSize, cubeSize);
  1356. }
  1357. }
  1358. if (isCube3 != flag)
  1359. {
  1360. isCube3 = flag;
  1361. if (gBg == null)
  1362. {
  1363. gBg = GameObject.CreatePrimitive(PrimitiveType.Cube);
  1364. gBg.GetComponent<Renderer>().material = m_material;
  1365. gBg.layer = 8;
  1366. gBg.GetComponent<Renderer>().enabled = false;
  1367. gBg.SetActive(false);
  1368. gBg.transform.position = bgObject.transform.position;
  1369. mBg = gBg.AddComponent<MouseDrag6>();
  1370. mBg.obj = gBg;
  1371. mBg.maid = bgObject;
  1372. mBg.angles = bg.eulerAngles;
  1373. gBg.transform.localScale = new Vector3(0.12f, 0.12f, 0.12f);
  1374. mBg.ido = 1;
  1375. mBg.isScale = false;
  1376. }
  1377. if (isCube3)
  1378. {
  1379. gBg.SetActive(true);
  1380. }
  1381. else
  1382. {
  1383. gBg.SetActive(false);
  1384. }
  1385. }
  1386. int num3 = 0;
  1387. if (lightIndex[selectLightIndex] == 0 || lightIndex[selectLightIndex] == 1
  1388. || (selectLightIndex == 0 && lightIndex[selectLightIndex] == 3))
  1389. {
  1390. GUI.Label(new Rect(GetPix(10), GetPix(237), GetPix(100), GetPix(25)),
  1391. "向きX",
  1392. guistyle2);
  1393. lightX[selectLightIndex] =
  1394. GUI.HorizontalSlider(new Rect(GetPix(8),
  1395. GetPix(251),
  1396. GetPix(192),
  1397. GetPix(20)),
  1398. lightX[selectLightIndex],
  1399. 220f,
  1400. -140f);
  1401. GUI.Label(new Rect(GetPix(10), GetPix(261), GetPix(100), GetPix(25)),
  1402. "向きY",
  1403. guistyle2);
  1404. lightY[selectLightIndex] =
  1405. GUI.HorizontalSlider(new Rect(GetPix(8),
  1406. GetPix(275),
  1407. GetPix(192),
  1408. GetPix(20)),
  1409. lightY[selectLightIndex],
  1410. 0f,
  1411. 360f);
  1412. }
  1413. else
  1414. {
  1415. num3 = 50;
  1416. }
  1417. if (lightIndex[selectLightIndex] != 3 || selectLightIndex <= 0)
  1418. {
  1419. GUI.Label(new Rect(GetPix(10),
  1420. GetPix(285 - num3),
  1421. GetPix(100),
  1422. GetPix(25)),
  1423. "明るさ",
  1424. guistyle2);
  1425. lightAkarusa[selectLightIndex] =
  1426. GUI.HorizontalSlider(new Rect(GetPix(8),
  1427. GetPix(299 - num3),
  1428. GetPix(192),
  1429. GetPix(20)),
  1430. lightAkarusa[selectLightIndex],
  1431. 0f,
  1432. 1.9f);
  1433. if (lightIndex[selectLightIndex] == 0 || lightIndex[selectLightIndex] == 3)
  1434. {
  1435. if (selectLightIndex == 0)
  1436. {
  1437. GUI.Label(new Rect(GetPix(10),
  1438. GetPix(309 - num3),
  1439. GetPix(100),
  1440. GetPix(25)),
  1441. "影",
  1442. guistyle2);
  1443. lightKage[selectLightIndex] =
  1444. GUI.HorizontalSlider(new Rect(GetPix(8),
  1445. GetPix(323 - num3),
  1446. GetPix(192),
  1447. GetPix(20)),
  1448. lightKage[selectLightIndex],
  1449. 0f,
  1450. 1f);
  1451. }
  1452. else
  1453. {
  1454. num3 = 25;
  1455. }
  1456. }
  1457. else if (lightIndex[selectLightIndex] == 1 || lightIndex[selectLightIndex] == 2)
  1458. {
  1459. GUI.Label(new Rect(GetPix(10),
  1460. GetPix(311 - num3),
  1461. GetPix(100),
  1462. GetPix(25)),
  1463. "範囲",
  1464. guistyle2);
  1465. lightRange[selectLightIndex] =
  1466. GUI.HorizontalSlider(new Rect(GetPix(8),
  1467. GetPix(325 - num3),
  1468. GetPix(192),
  1469. GetPix(20)),
  1470. lightRange[selectLightIndex],
  1471. 0f,
  1472. 150f);
  1473. }
  1474. else
  1475. {
  1476. num3 = 75;
  1477. }
  1478. GUI.Label(new Rect(GetPix(10),
  1479. GetPix(333 - num3),
  1480. GetPix(100),
  1481. GetPix(25)),
  1482. "赤",
  1483. guistyle2);
  1484. lightColorR[selectLightIndex] =
  1485. GUI.HorizontalSlider(new Rect(GetPix(8),
  1486. GetPix(347 - num3),
  1487. GetPix(92),
  1488. GetPix(20)),
  1489. lightColorR[selectLightIndex],
  1490. 0f,
  1491. 1f);
  1492. GUI.Label(new Rect(GetPix(108),
  1493. GetPix(333 - num3),
  1494. GetPix(100),
  1495. GetPix(25)),
  1496. "緑",
  1497. guistyle2);
  1498. lightColorG[selectLightIndex] =
  1499. GUI.HorizontalSlider(new Rect(GetPix(108),
  1500. GetPix(347 - num3),
  1501. GetPix(92),
  1502. GetPix(20)),
  1503. lightColorG[selectLightIndex],
  1504. 0f,
  1505. 1f);
  1506. GUI.Label(new Rect(GetPix(10),
  1507. GetPix(357 - num3),
  1508. GetPix(100),
  1509. GetPix(25)),
  1510. "青",
  1511. guistyle2);
  1512. lightColorB[selectLightIndex] =
  1513. GUI.HorizontalSlider(new Rect(GetPix(8),
  1514. GetPix(371 - num3),
  1515. GetPix(92),
  1516. GetPix(20)),
  1517. lightColorB[selectLightIndex],
  1518. 0f,
  1519. 1f);
  1520. }
  1521. if (GUI.Toggle(new Rect(GetPix(5), GetPix(391), GetPix(67), GetPix(20)),
  1522. isBloomS,
  1523. "ブルーム",
  1524. guistyle6))
  1525. {
  1526. isBloomS = true;
  1527. isDepthS = false;
  1528. isBlurS = false;
  1529. isFogS = false;
  1530. }
  1531. if (isBloomS)
  1532. {
  1533. isBloom = GUI.Toggle(new Rect(GetPix(8),
  1534. GetPix(412),
  1535. GetPix(40),
  1536. GetPix(20)),
  1537. isBloom,
  1538. "有効",
  1539. guistyle6);
  1540. if (!isBloom)
  1541. {
  1542. GUI.enabled = false;
  1543. }
  1544. GUI.Label(new Rect(GetPix(10), GetPix(430), GetPix(100), GetPix(25)),
  1545. "強さ",
  1546. guistyle2);
  1547. bloom1 = GUI.HorizontalSlider(new Rect(GetPix(8),
  1548. GetPix(445),
  1549. GetPix(92),
  1550. GetPix(20)),
  1551. bloom1,
  1552. 0f,
  1553. 5.7f);
  1554. GUI.Label(new Rect(GetPix(110), GetPix(430), GetPix(100), GetPix(25)),
  1555. "広さ",
  1556. guistyle2);
  1557. bloom2 = GUI.HorizontalSlider(new Rect(GetPix(108),
  1558. GetPix(445),
  1559. GetPix(92),
  1560. GetPix(20)),
  1561. bloom2,
  1562. 0f,
  1563. 15f);
  1564. GUI.Label(new Rect(GetPix(10), GetPix(455), GetPix(100), GetPix(25)),
  1565. "赤",
  1566. guistyle2);
  1567. bloom3 = GUI.HorizontalSlider(new Rect(GetPix(8),
  1568. GetPix(470),
  1569. GetPix(92),
  1570. GetPix(20)),
  1571. bloom3,
  1572. 0f,
  1573. 0.5f);
  1574. GUI.Label(new Rect(GetPix(110), GetPix(455), GetPix(100), GetPix(25)),
  1575. "緑",
  1576. guistyle2);
  1577. bloom4 = GUI.HorizontalSlider(new Rect(GetPix(108),
  1578. GetPix(470),
  1579. GetPix(92),
  1580. GetPix(20)),
  1581. bloom4,
  1582. 0f,
  1583. 0.5f);
  1584. GUI.Label(new Rect(GetPix(10), GetPix(480), GetPix(100), GetPix(25)),
  1585. "青",
  1586. guistyle2);
  1587. bloom5 = GUI.HorizontalSlider(new Rect(GetPix(8),
  1588. GetPix(495),
  1589. GetPix(92),
  1590. GetPix(20)),
  1591. bloom5,
  1592. 0f,
  1593. 0.5f);
  1594. isBloomA = GUI.Toggle(new Rect(GetPix(110),
  1595. GetPix(491),
  1596. GetPix(50),
  1597. GetPix(20)),
  1598. isBloomA,
  1599. "HDR",
  1600. guistyle6);
  1601. if (!doguCombo.isClickedComboButton && !parCombo.isClickedComboButton && !bgCombo.isClickedComboButton
  1602. && !bgmCombo.isClickedComboButton)
  1603. {
  1604. GUI.enabled = true;
  1605. }
  1606. }
  1607. if (GUI.Toggle(new Rect(GetPix(73), GetPix(391), GetPix(40), GetPix(20)),
  1608. isDepthS,
  1609. "深度",
  1610. guistyle6))
  1611. {
  1612. isBloomS = false;
  1613. isDepthS = true;
  1614. isBlurS = false;
  1615. isFogS = false;
  1616. }
  1617. if (isDepthS)
  1618. {
  1619. isDepth = GUI.Toggle(new Rect(GetPix(8),
  1620. GetPix(412),
  1621. GetPix(40),
  1622. GetPix(20)),
  1623. isDepth,
  1624. "有効",
  1625. guistyle6);
  1626. if (!isDepth)
  1627. {
  1628. GUI.enabled = false;
  1629. }
  1630. GUI.Label(new Rect(GetPix(10), GetPix(430), GetPix(100), GetPix(25)),
  1631. "焦点距離",
  1632. guistyle2);
  1633. depth1 = GUI.HorizontalSlider(new Rect(GetPix(8),
  1634. GetPix(445),
  1635. GetPix(192),
  1636. GetPix(20)),
  1637. depth1,
  1638. 0f,
  1639. 10f);
  1640. GUI.Label(new Rect(GetPix(10), GetPix(455), GetPix(100), GetPix(25)),
  1641. "焦点領域サイズ",
  1642. guistyle2);
  1643. depth2 = GUI.HorizontalSlider(new Rect(GetPix(8),
  1644. GetPix(470),
  1645. GetPix(92),
  1646. GetPix(20)),
  1647. depth2,
  1648. 0f,
  1649. 2f);
  1650. GUI.Label(new Rect(GetPix(110), GetPix(455), GetPix(100), GetPix(25)),
  1651. "カメラ絞り",
  1652. guistyle2);
  1653. depth3 = GUI.HorizontalSlider(new Rect(GetPix(108),
  1654. GetPix(470),
  1655. GetPix(92),
  1656. GetPix(20)),
  1657. depth3,
  1658. 0f,
  1659. 60f);
  1660. GUI.Label(new Rect(GetPix(10), GetPix(480), GetPix(100), GetPix(25)),
  1661. "ブレ",
  1662. guistyle2);
  1663. depth4 = GUI.HorizontalSlider(new Rect(GetPix(8),
  1664. GetPix(495),
  1665. GetPix(92),
  1666. GetPix(20)),
  1667. depth4,
  1668. 0f,
  1669. 10f);
  1670. isDepthA = GUI.Toggle(new Rect(GetPix(110),
  1671. GetPix(491),
  1672. GetPix(100),
  1673. GetPix(20)),
  1674. isDepthA,
  1675. "深度表示",
  1676. guistyle6);
  1677. if (!doguCombo.isClickedComboButton && !parCombo.isClickedComboButton && !bgCombo.isClickedComboButton
  1678. && !bgmCombo.isClickedComboButton)
  1679. {
  1680. GUI.enabled = true;
  1681. }
  1682. }
  1683. if (GUI.Toggle(new Rect(GetPix(114), GetPix(391), GetPix(40), GetPix(20)),
  1684. isBlurS,
  1685. "光学",
  1686. guistyle6))
  1687. {
  1688. isBloomS = false;
  1689. isDepthS = false;
  1690. isBlurS = true;
  1691. isFogS = false;
  1692. }
  1693. if (isBlurS)
  1694. {
  1695. isBlur = GUI.Toggle(new Rect(GetPix(8),
  1696. GetPix(412),
  1697. GetPix(40),
  1698. GetPix(20)),
  1699. isBlur,
  1700. "有効",
  1701. guistyle6);
  1702. if (!isBlur)
  1703. {
  1704. GUI.enabled = false;
  1705. }
  1706. GUI.Label(new Rect(GetPix(10), GetPix(430), GetPix(100), GetPix(25)),
  1707. "強さ",
  1708. guistyle2);
  1709. blur1 = GUI.HorizontalSlider(new Rect(GetPix(8),
  1710. GetPix(445),
  1711. GetPix(92),
  1712. GetPix(20)),
  1713. blur1,
  1714. -40f,
  1715. 70f);
  1716. GUI.Label(new Rect(GetPix(108), GetPix(430), GetPix(100), GetPix(25)),
  1717. "ブラー",
  1718. guistyle2);
  1719. blur2 = GUI.HorizontalSlider(new Rect(GetPix(108),
  1720. GetPix(445),
  1721. GetPix(92),
  1722. GetPix(20)),
  1723. blur2,
  1724. 0f,
  1725. 5f);
  1726. GUI.Label(new Rect(GetPix(10), GetPix(455), GetPix(100), GetPix(25)),
  1727. "ブレ",
  1728. guistyle2);
  1729. blur3 = GUI.HorizontalSlider(new Rect(GetPix(8),
  1730. GetPix(470),
  1731. GetPix(92),
  1732. GetPix(20)),
  1733. blur3,
  1734. 0f,
  1735. 40f);
  1736. GUI.Label(new Rect(GetPix(108), GetPix(455), GetPix(100), GetPix(25)),
  1737. "色収差",
  1738. guistyle2);
  1739. blur4 = GUI.HorizontalSlider(new Rect(GetPix(108),
  1740. GetPix(470),
  1741. GetPix(92),
  1742. GetPix(20)),
  1743. blur4,
  1744. -30f,
  1745. 30f);
  1746. if (!doguCombo.isClickedComboButton && !parCombo.isClickedComboButton && !bgCombo.isClickedComboButton
  1747. && !bgmCombo.isClickedComboButton)
  1748. {
  1749. GUI.enabled = true;
  1750. }
  1751. }
  1752. if (GUI.Toggle(new Rect(GetPix(155), GetPix(391), GetPix(60), GetPix(20)),
  1753. isFogS,
  1754. "フォグ",
  1755. guistyle6))
  1756. {
  1757. isBloomS = false;
  1758. isDepthS = false;
  1759. isBlurS = false;
  1760. isFogS = true;
  1761. }
  1762. if (isFogS)
  1763. {
  1764. isFog = GUI.Toggle(new Rect(GetPix(8),
  1765. GetPix(412),
  1766. GetPix(40),
  1767. GetPix(20)),
  1768. isFog,
  1769. "有効",
  1770. guistyle6);
  1771. if (!isFog)
  1772. {
  1773. GUI.enabled = false;
  1774. }
  1775. GUI.Label(new Rect(GetPix(110), GetPix(406), GetPix(100), GetPix(24)),
  1776. "発生距離",
  1777. guistyle2);
  1778. fog1 = GUI.HorizontalSlider(new Rect(GetPix(108),
  1779. GetPix(420),
  1780. GetPix(92),
  1781. GetPix(20)),
  1782. fog1,
  1783. 0f,
  1784. 30f);
  1785. GUI.Label(new Rect(GetPix(10), GetPix(430), GetPix(100), GetPix(25)),
  1786. "密度",
  1787. guistyle2);
  1788. fog2 = GUI.HorizontalSlider(new Rect(GetPix(8),
  1789. GetPix(445),
  1790. GetPix(92),
  1791. GetPix(20)),
  1792. fog2,
  1793. 0f,
  1794. 10f);
  1795. GUI.Label(new Rect(GetPix(110), GetPix(430), GetPix(100), GetPix(25)),
  1796. "強度",
  1797. guistyle2);
  1798. fog3 = GUI.HorizontalSlider(new Rect(GetPix(108),
  1799. GetPix(445),
  1800. GetPix(92),
  1801. GetPix(20)),
  1802. fog3,
  1803. -5f,
  1804. 20f);
  1805. GUI.Label(new Rect(GetPix(10), GetPix(455), GetPix(100), GetPix(25)),
  1806. "高さ",
  1807. guistyle2);
  1808. fog4 = GUI.HorizontalSlider(new Rect(GetPix(8),
  1809. GetPix(470),
  1810. GetPix(92),
  1811. GetPix(20)),
  1812. fog4,
  1813. -10f,
  1814. 10f);
  1815. GUI.Label(new Rect(GetPix(110), GetPix(455), GetPix(100), GetPix(25)),
  1816. "赤",
  1817. guistyle2);
  1818. fog5 = GUI.HorizontalSlider(new Rect(GetPix(108),
  1819. GetPix(470),
  1820. GetPix(92),
  1821. GetPix(20)),
  1822. fog5,
  1823. 0f,
  1824. 1f);
  1825. GUI.Label(new Rect(GetPix(10), GetPix(480), GetPix(100), GetPix(25)),
  1826. "緑",
  1827. guistyle2);
  1828. fog6 = GUI.HorizontalSlider(new Rect(GetPix(8),
  1829. GetPix(495),
  1830. GetPix(92),
  1831. GetPix(20)),
  1832. fog6,
  1833. 0f,
  1834. 1f);
  1835. GUI.Label(new Rect(GetPix(110), GetPix(480), GetPix(100), GetPix(25)),
  1836. "青",
  1837. guistyle2);
  1838. fog7 = GUI.HorizontalSlider(new Rect(GetPix(108),
  1839. GetPix(495),
  1840. GetPix(92),
  1841. GetPix(20)),
  1842. fog7,
  1843. 0f,
  1844. 1f);
  1845. if (!doguCombo.isClickedComboButton && !parCombo.isClickedComboButton && !bgCombo.isClickedComboButton
  1846. && !bgmCombo.isClickedComboButton)
  1847. {
  1848. GUI.enabled = true;
  1849. }
  1850. }
  1851. isSepian = GUI.Toggle(new Rect(GetPix(5),
  1852. GetPix(515),
  1853. GetPix(80),
  1854. GetPix(20)),
  1855. isSepian,
  1856. "セピア",
  1857. guistyle6);
  1858. GUI.Label(new Rect(GetPix(108), GetPix(512), GetPix(100), GetPix(25)),
  1859. "ぼかし",
  1860. guistyle2);
  1861. bokashi = GUI.HorizontalSlider(new Rect(GetPix(108),
  1862. GetPix(527),
  1863. GetPix(92),
  1864. GetPix(20)),
  1865. bokashi,
  1866. 0f,
  1867. 18f);
  1868. if (GUI.Toggle(new Rect(GetPix(5), GetPix(545), GetPix(80), GetPix(20)),
  1869. isHairSetting,
  1870. "髪の設定",
  1871. guistyle6))
  1872. {
  1873. isHairSetting = true;
  1874. isSkirtSetting = false;
  1875. }
  1876. if (isHairSetting)
  1877. {
  1878. bool flag3 = GUI.Toggle(new Rect(GetPix(5),
  1879. GetPix(566),
  1880. GetPix(40),
  1881. GetPix(20)),
  1882. isKamiyure,
  1883. "有効",
  1884. guistyle6);
  1885. if (isKamiyure != flag3)
  1886. {
  1887. isKamiyure = flag3;
  1888. if (isKamiyure)
  1889. {
  1890. Preferences["config"]["hair_setting"].Value = "true";
  1891. Preferences["config"]["hair_radius"].Value = kamiyure4.ToString();
  1892. Preferences["config"]["hair_elasticity"].Value = kamiyure3.ToString();
  1893. Preferences["config"]["hair_damping"].Value = kamiyure2.ToString();
  1894. SaveConfig();
  1895. }
  1896. else
  1897. {
  1898. Preferences["config"]["hair_setting"].Value = "false";
  1899. SaveConfig();
  1900. for (int j = 0; j < maidCnt; j++)
  1901. {
  1902. for (int k = 0; k < maidArray[j].body0.goSlot.Count; k++)
  1903. {
  1904. if (k >= 3 && k <= 6)
  1905. {
  1906. if (maidArray[j].body0.goSlot[k].obj != null)
  1907. {
  1908. DynamicBone component = maidArray[j].body0.goSlot[k].obj.GetComponent<DynamicBone>();
  1909. if (component != null)
  1910. {
  1911. component.m_Damping = 0.6f;
  1912. component.m_Elasticity = 1f;
  1913. if (k == 5)
  1914. {
  1915. component.m_Elasticity = 0.05f;
  1916. }
  1917. component.m_Radius = 0.02f;
  1918. component.UpdateParameters();
  1919. }
  1920. }
  1921. }
  1922. }
  1923. }
  1924. }
  1925. }
  1926. if (!isKamiyure)
  1927. {
  1928. GUI.enabled = false;
  1929. }
  1930. GUI.Label(new Rect(GetPix(108), GetPix(565), GetPix(100), GetPix(25)),
  1931. "当たり判定半径",
  1932. guistyle2);
  1933. float num4 = GUI.HorizontalSlider(new Rect(GetPix(108),
  1934. GetPix(579),
  1935. GetPix(92),
  1936. GetPix(20)),
  1937. kamiyure4,
  1938. 0f,
  1939. 0.04f);
  1940. if (kamiyure4 != num4)
  1941. {
  1942. kamiyure4 = num4;
  1943. Preferences["config"]["hair_radius"].Value = kamiyure4.ToString();
  1944. SaveConfig();
  1945. }
  1946. GUI.Label(new Rect(GetPix(108), GetPix(590), GetPix(100), GetPix(25)),
  1947. "減衰率",
  1948. guistyle2);
  1949. float num5 = GUI.HorizontalSlider(new Rect(GetPix(108),
  1950. GetPix(604),
  1951. GetPix(92),
  1952. GetPix(20)),
  1953. kamiyure2,
  1954. 0.2f,
  1955. 1f);
  1956. if (kamiyure2 != num5)
  1957. {
  1958. kamiyure2 = num5;
  1959. Preferences["config"]["hair_damping"].Value = kamiyure2.ToString();
  1960. SaveConfig();
  1961. }
  1962. GUI.Label(new Rect(GetPix(10), GetPix(590), GetPix(100), GetPix(25)),
  1963. "復元率",
  1964. guistyle2);
  1965. float num6 = GUI.HorizontalSlider(new Rect(GetPix(8),
  1966. GetPix(604),
  1967. GetPix(92),
  1968. GetPix(20)),
  1969. kamiyure3,
  1970. 0f,
  1971. 2f);
  1972. if (kamiyure3 != num6)
  1973. {
  1974. kamiyure3 = num6;
  1975. Preferences["config"]["hair_elasticity"].Value = kamiyure3.ToString();
  1976. SaveConfig();
  1977. }
  1978. GUI.enabled = true;
  1979. }
  1980. if (GUI.Toggle(new Rect(GetPix(105), GetPix(545), GetPix(100), GetPix(20)),
  1981. isSkirtSetting,
  1982. "スカート設定",
  1983. guistyle6))
  1984. {
  1985. isHairSetting = false;
  1986. isSkirtSetting = true;
  1987. }
  1988. if (isSkirtSetting)
  1989. {
  1990. bool flag4 = GUI.Toggle(new Rect(GetPix(5),
  1991. GetPix(566),
  1992. GetPix(40),
  1993. GetPix(20)),
  1994. isSkirtyure,
  1995. "有効",
  1996. guistyle6);
  1997. if (isSkirtyure != flag4)
  1998. {
  1999. isSkirtyure = flag4;
  2000. if (isSkirtyure)
  2001. {
  2002. Preferences["config"]["skirt_setting"].Value = "true";
  2003. Preferences["config"]["skirt_radius"].Value = skirtyure4.ToString();
  2004. Preferences["config"]["skirt_elasticity"].Value = skirtyure3.ToString();
  2005. Preferences["config"]["skirt_damping"].Value = skirtyure2.ToString();
  2006. SaveConfig();
  2007. }
  2008. else
  2009. {
  2010. Preferences["config"]["skirt_setting"].Value = "false";
  2011. SaveConfig();
  2012. for (int j = 0; j < maidCnt; j++)
  2013. {
  2014. for (int k = 0; k < maidArray[j].body0.goSlot.Count; k++)
  2015. {
  2016. if (maidArray[j].body0.goSlot[k].obj != null)
  2017. {
  2018. DynamicSkirtBone fieldValue =
  2019. GetFieldValue<BoneHair3, DynamicSkirtBone>(maidArray[j].body0.goSlot[k].bonehair3,
  2020. "m_SkirtBone");
  2021. if (fieldValue != null)
  2022. {
  2023. fieldValue.m_fPanierForce = 0.05f;
  2024. fieldValue.m_fPanierForceDistanceThreshold = 0.1f;
  2025. fieldValue.m_fRegDefaultRadius = 0.1f;
  2026. }
  2027. }
  2028. }
  2029. }
  2030. }
  2031. }
  2032. if (!isSkirtyure)
  2033. {
  2034. GUI.enabled = false;
  2035. }
  2036. GUI.Label(new Rect(GetPix(108), GetPix(565), GetPix(100), GetPix(25)),
  2037. "足側カプセル半径",
  2038. guistyle2);
  2039. float num4 = GUI.HorizontalSlider(new Rect(GetPix(108),
  2040. GetPix(579),
  2041. GetPix(92),
  2042. GetPix(20)),
  2043. skirtyure4,
  2044. 0f,
  2045. 0.2f);
  2046. if (skirtyure4 != num4)
  2047. {
  2048. skirtyure4 = num4;
  2049. Preferences["config"]["skirt_radius"].Value = skirtyure4.ToString();
  2050. SaveConfig();
  2051. }
  2052. GUI.Label(new Rect(GetPix(108), GetPix(590), GetPix(100), GetPix(25)),
  2053. "足との距離パニエ力",
  2054. guistyle2);
  2055. float num5 = GUI.HorizontalSlider(new Rect(GetPix(108),
  2056. GetPix(604),
  2057. GetPix(92),
  2058. GetPix(20)),
  2059. skirtyure2,
  2060. 0f,
  2061. 0.2f);
  2062. if (skirtyure2 != num5)
  2063. {
  2064. skirtyure2 = num5;
  2065. Preferences["config"]["skirt_damping"].Value = skirtyure2.ToString();
  2066. SaveConfig();
  2067. }
  2068. GUI.Label(new Rect(GetPix(10), GetPix(590), GetPix(100), GetPix(25)),
  2069. "パニエ力",
  2070. guistyle2);
  2071. float num6 = GUI.HorizontalSlider(new Rect(GetPix(8),
  2072. GetPix(604),
  2073. GetPix(92),
  2074. GetPix(20)),
  2075. skirtyure3,
  2076. 0f,
  2077. 0.1f);
  2078. if (skirtyure3 != num6)
  2079. {
  2080. skirtyure3 = num6;
  2081. Preferences["config"]["skirt_elasticity"].Value = skirtyure3.ToString();
  2082. SaveConfig();
  2083. }
  2084. GUI.enabled = true;
  2085. }
  2086. GUI.enabled = true;
  2087. GUI.DrawTexture(new Rect(GetPix(5), GetPix(389), GetPix(195), 2f), line1);
  2088. GUI.DrawTexture(new Rect(GetPix(5), GetPix(389), GetPix(195), 1f), line2);
  2089. if (doguCombo.isClickedComboButton || parCombo.isClickedComboButton || bgCombo.isClickedComboButton
  2090. || bgmCombo.isClickedComboButton)
  2091. {
  2092. GUI.enabled = false;
  2093. }
  2094. GUI.DrawTexture(new Rect(GetPix(5), GetPix(176), GetPix(195), 2f), line1);
  2095. GUI.DrawTexture(new Rect(GetPix(5), GetPix(176), GetPix(195), 1f), line2);
  2096. GUI.Label(new Rect(GetPix(8), GetPix(187), GetPix(100), GetPix(25)),
  2097. "照明",
  2098. guistyle2);
  2099. listStyle3.padding.top = GetPix(3);
  2100. listStyle3.padding.bottom = GetPix(2);
  2101. listStyle3.fontSize = GetPix(13);
  2102. int num7 = lightCombo.List(new Rect(GetPix(34),
  2103. GetPix(185),
  2104. GetPix(78),
  2105. GetPix(23)),
  2106. lightComboList[selectLightIndex].text,
  2107. lightComboList,
  2108. guistyle4,
  2109. "box",
  2110. listStyle3);
  2111. if (num7 != selectLightIndex)
  2112. {
  2113. selectLightIndex = num7;
  2114. isIdx1 = false;
  2115. isIdx2 = false;
  2116. isIdx3 = false;
  2117. isIdx4 = false;
  2118. }
  2119. if (GUI.Button(new Rect(GetPix(115), GetPix(185), GetPix(35), GetPix(23)),
  2120. "追加",
  2121. guistyle3))
  2122. {
  2123. GameObject gameObject = new GameObject("Light");
  2124. gameObject.AddComponent<Light>();
  2125. lightList.Add(gameObject);
  2126. lightColorR.Add(1f);
  2127. lightColorG.Add(1f);
  2128. lightColorB.Add(1f);
  2129. lightIndex.Add(0);
  2130. lightX.Add(40f);
  2131. lightY.Add(180f);
  2132. lightAkarusa.Add(0.95f);
  2133. lightKage.Add(0.098f);
  2134. lightRange.Add(50f);
  2135. gameObject.transform.position = GameMain.Instance.MainLight.transform.position;
  2136. selectLightIndex = lightList.Count - 1;
  2137. lightComboList = new GUIContent[lightList.Count];
  2138. for (int i = 0; i < lightList.Count; i++)
  2139. {
  2140. if (i == 0)
  2141. {
  2142. lightComboList[i] = new GUIContent("メイン");
  2143. }
  2144. else
  2145. {
  2146. lightComboList[i] = new GUIContent("追加" + i);
  2147. }
  2148. }
  2149. lightCombo.selectedItemIndex = selectLightIndex;
  2150. gameObject.GetComponent<Light>().intensity = 0.95f;
  2151. gameObject.GetComponent<Light>().spotAngle = 50f;
  2152. gameObject.GetComponent<Light>().range = 10f;
  2153. gameObject.GetComponent<Light>().type = LightType.Directional;
  2154. gameObject.GetComponent<Light>().color = new Color(0.5f, 1f, 0f);
  2155. if (gLight[selectLightIndex] == null)
  2156. {
  2157. gLight[selectLightIndex] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  2158. Material material = new Material(Shader.Find("Transparent/Diffuse"))
  2159. {
  2160. color = new Color(0.5f, 0.5f, 1f, 0.8f)
  2161. };
  2162. gLight[selectLightIndex].GetComponent<Renderer>().material = material;
  2163. gLight[selectLightIndex].layer = 8;
  2164. gLight[selectLightIndex].GetComponent<Renderer>().enabled = false;
  2165. gLight[selectLightIndex].SetActive(false);
  2166. gLight[selectLightIndex].transform.position = gameObject.transform.position;
  2167. mLight[selectLightIndex] = gLight[selectLightIndex].AddComponent<MouseDrag6>();
  2168. mLight[selectLightIndex].obj = gLight[selectLightIndex];
  2169. mLight[selectLightIndex].maid = gameObject.gameObject;
  2170. mLight[selectLightIndex].angles = gameObject.gameObject.transform.eulerAngles;
  2171. gLight[selectLightIndex].transform.localScale = new Vector3(0.12f, 0.12f, 0.12f);
  2172. mLight[selectLightIndex].ido = 1;
  2173. mLight[selectLightIndex].isScale = false;
  2174. }
  2175. }
  2176. if (GUI.Button(new Rect(GetPix(153), GetPix(185), GetPix(23), GetPix(23)),
  2177. "R",
  2178. guistyle3))
  2179. {
  2180. for (int i = 1; i < lightList.Count; i++)
  2181. {
  2182. Destroy(lightList[i]);
  2183. }
  2184. lightIndex = new List<int>
  2185. {
  2186. 0
  2187. };
  2188. lightColorR = new List<float>
  2189. {
  2190. 1f
  2191. };
  2192. lightColorG = new List<float>
  2193. {
  2194. 1f
  2195. };
  2196. lightColorB = new List<float>
  2197. {
  2198. 1f
  2199. };
  2200. lightX = new List<float>
  2201. {
  2202. 40f
  2203. };
  2204. lightY = new List<float>
  2205. {
  2206. 180f
  2207. };
  2208. lightAkarusa = new List<float>
  2209. {
  2210. 0.95f
  2211. };
  2212. lightKage = new List<float>
  2213. {
  2214. 0.098f
  2215. };
  2216. lightRange = new List<float>
  2217. {
  2218. 50f
  2219. };
  2220. lightCombo.selectedItemIndex = 0;
  2221. lightList = new List<GameObject>
  2222. {
  2223. GameMain.Instance.MainLight.gameObject
  2224. };
  2225. lightComboList = new GUIContent[lightList.Count];
  2226. for (int i = 0; i < lightList.Count; i++)
  2227. {
  2228. if (i == 0)
  2229. {
  2230. lightComboList[i] = new GUIContent("メイン");
  2231. }
  2232. else
  2233. {
  2234. lightComboList[i] = new GUIContent("追加" + i);
  2235. }
  2236. }
  2237. selectLightIndex = 0;
  2238. GameMain.Instance.MainLight.Reset();
  2239. GameMain.Instance.MainLight.SetIntensity(0.95f);
  2240. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle = 50f;
  2241. GameMain.Instance.MainLight.GetComponent<Light>().range = 10f;
  2242. GameMain.Instance.MainLight.gameObject.transform.position = new Vector3(0f, 2f, 0f);
  2243. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  2244. bgObject.SetActive(true);
  2245. mainCamera.GetComponent<Camera>().backgroundColor = new Color(0f, 0f, 0f);
  2246. isIdx1 = false;
  2247. isIdx2 = false;
  2248. isIdx3 = false;
  2249. isIdx4 = false;
  2250. }
  2251. GUI.enabled = true;
  2252. if (doguCombo.isClickedComboButton || bgCombo.isClickedComboButton || bgmCombo.isClickedComboButton)
  2253. {
  2254. GUI.enabled = false;
  2255. }
  2256. listStyle3.padding.top = GetPix(0);
  2257. listStyle3.padding.bottom = GetPix(0);
  2258. listStyle3.fontSize = GetPix(12);
  2259. GUI.Label(new Rect(GetPix(8), GetPix(116), GetPix(150), GetPix(25)),
  2260. "大道具2",
  2261. guistyle2);
  2262. parIndex = parCombo.List(new Rect(GetPix(51),
  2263. GetPix(113),
  2264. GetPix(100),
  2265. GetPix(23)),
  2266. parComboList[parIndex].text,
  2267. parComboList,
  2268. guistyle4,
  2269. "box",
  2270. listStyle3);
  2271. if (GUI.Button(new Rect(GetPix(156), GetPix(113), GetPix(38), GetPix(23)),
  2272. "追加",
  2273. guistyle3))
  2274. {
  2275. GameObject gameObject2 = null;
  2276. bool flag5 = false;
  2277. bool flag6 = false;
  2278. if (parArray[parIndex].Contains("#"))
  2279. {
  2280. string[] array3 = parArray[parIndex].Split(new char[] { '#' });
  2281. gameObject2 = GameMain.Instance.BgMgr.CreateAssetBundle(array3[1]);
  2282. if (gameObject2 != null)
  2283. {
  2284. gameObject2 = Instantiate(gameObject2);
  2285. MeshRenderer[] componentsInChildren = gameObject2.GetComponentsInChildren<MeshRenderer>();
  2286. for (int k = 0; k < componentsInChildren.Length; k++)
  2287. {
  2288. if (componentsInChildren[k] != null)
  2289. {
  2290. componentsInChildren[k].shadowCastingMode = ShadowCastingMode.Off;
  2291. }
  2292. }
  2293. }
  2294. flag5 = true;
  2295. if (!parArray[parIndex].Contains("Odogu_"))
  2296. {
  2297. flag6 = true;
  2298. }
  2299. doguBObject.Add(gameObject2);
  2300. }
  2301. else if (!parArray[parIndex].StartsWith("mirror") && parArray[parIndex].IndexOf(":") < 0)
  2302. {
  2303. Object @object = Resources.Load("Prefab/" + parArray[parIndex]);
  2304. gameObject2 = Instantiate(@object) as GameObject;
  2305. doguBObject.Add(gameObject2);
  2306. }
  2307. else if (parArray[parIndex].StartsWith("mirror"))
  2308. {
  2309. Material material2 = new Material(Shader.Find("Mirror"));
  2310. GameObject gameObject3 = GameObject.CreatePrimitive(PrimitiveType.Plane);
  2311. gameObject3.GetComponent<Renderer>().material = material2;
  2312. gameObject3.AddComponent<MirrorReflection2>();
  2313. MirrorReflection2 component2 = gameObject3.GetComponent<MirrorReflection2>();
  2314. component2.m_TextureSize = 2048;
  2315. component2.m_ClipPlaneOffset = 0.07f;
  2316. gameObject3.GetComponent<Renderer>().enabled = true;
  2317. gameObject2 = gameObject3;
  2318. doguBObject.Add(gameObject2);
  2319. }
  2320. else
  2321. {
  2322. string[] array3 = parArray[parIndex].Split(new char[] { ':' });
  2323. Object @object = GameMain.Instance.BgMgr.CreateAssetBundle(array3[0]);
  2324. if (@object == null)
  2325. {
  2326. @object = Resources.Load("BG/" + array3[0]);
  2327. }
  2328. GameObject gameObject4 = Instantiate(@object) as GameObject;
  2329. int num8 = 0;
  2330. int.TryParse(array3[1], out int num9);
  2331. foreach (object obj in gameObject4.transform)
  2332. {
  2333. Transform transform = (Transform)obj;
  2334. if (num9 == num8)
  2335. {
  2336. gameObject2 = transform.gameObject;
  2337. break;
  2338. }
  2339. num8++;
  2340. }
  2341. doguBObject.Add(gameObject2);
  2342. gameObject2.transform.parent = null;
  2343. Destroy(gameObject4);
  2344. gameObject4.SetActive(false);
  2345. }
  2346. gameObject2.name = parArray[parIndex];
  2347. Vector3 zero = Vector3.zero;
  2348. Vector3 zero2 = Vector3.zero;
  2349. switch (parIndex)
  2350. {
  2351. case 0:
  2352. zero.z = -0.6f;
  2353. zero.y = 0.96f;
  2354. zero2.z = 180f;
  2355. zero2.x = -90f;
  2356. gameObject2.transform.localScale = new Vector3(0.2f, 0.4f, 0.2f);
  2357. break;
  2358. case 1:
  2359. zero.z = -0.6f;
  2360. zero.y = 0.96f;
  2361. zero2.z = 180f;
  2362. zero2.x = -90f;
  2363. gameObject2.transform.localScale = new Vector3(0.1f, 0.4f, 0.2f);
  2364. break;
  2365. case 2:
  2366. zero.z = -0.6f;
  2367. zero.y = 0.85f;
  2368. zero2.z = 180f;
  2369. zero2.x = -90f;
  2370. gameObject2.transform.localScale = new Vector3(0.03f, 0.18f, 0.124f);
  2371. break;
  2372. case 3:
  2373. case 4:
  2374. case 5:
  2375. case 6:
  2376. case 7:
  2377. case 8:
  2378. case 9:
  2379. case 10:
  2380. case 11:
  2381. case 12:
  2382. case 13:
  2383. case 14:
  2384. case 15:
  2385. case 16:
  2386. case 17:
  2387. zero.z = 0.5f;
  2388. zero2.x = -90f;
  2389. break;
  2390. }
  2391. if (flag5)
  2392. {
  2393. zero.z = 0.4f;
  2394. if (flag6)
  2395. {
  2396. zero2.x = -90f;
  2397. }
  2398. }
  2399. if (gameObject2.name == "Salon_Entrance:3" || gameObject2.name == "Salon_Entrance:4"
  2400. || gameObject2.name == "Salon_Entrance:1"
  2401. || gameObject2.name == "Salon_Entrance:2"
  2402. || gameObject2.name == "Salon_Entrance:0" || gameObject2.name == "Shitsumu:23"
  2403. || gameObject2.name == "Shitsumu_Night:23")
  2404. {
  2405. zero.z = 0.5f;
  2406. zero2.x = -90f;
  2407. }
  2408. if (gameObject2.name == "Pool:26")
  2409. {
  2410. zero.z = 0.5f;
  2411. zero2.x = -90f;
  2412. zero2.z = 90f;
  2413. zero.y = 0.15f;
  2414. }
  2415. if (gameObject2.name == "Particle/pstarY_act2")
  2416. {
  2417. zero2.y = 90f;
  2418. }
  2419. gameObject2.transform.localPosition = zero;
  2420. gameObject2.transform.localRotation = Quaternion.Euler(zero2);
  2421. doguCnt = doguBObject.Count - 1;
  2422. gDogu[doguCnt] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  2423. gDogu[doguCnt].GetComponent<Renderer>().material = m_material;
  2424. gDogu[doguCnt].layer = 8;
  2425. gDogu[doguCnt].GetComponent<Renderer>().enabled = false;
  2426. gDogu[doguCnt].SetActive(false);
  2427. gDogu[doguCnt].transform.position = gameObject2.transform.position;
  2428. mDogu[doguCnt] = gDogu[doguCnt].AddComponent<MouseDrag6>();
  2429. mDogu[doguCnt].obj = gDogu[doguCnt];
  2430. mDogu[doguCnt].maid = gameObject2;
  2431. mDogu[doguCnt].angles = gameObject2.transform.eulerAngles;
  2432. gDogu[doguCnt].transform.localScale = new Vector3(cubeSize, cubeSize, cubeSize);
  2433. mDogu[doguCnt].ido = 1;
  2434. mDogu[doguCnt].isScale = false;
  2435. if (gameObject2.name == "Particle/pLineY")
  2436. {
  2437. mDogu[doguCnt].count = 180;
  2438. gameObject2.transform.localScale = new Vector3(3f, 3f, 3f);
  2439. }
  2440. if (gameObject2.name == "Particle/pLineP02")
  2441. {
  2442. mDogu[doguCnt].count = 115;
  2443. gameObject2.transform.localScale = new Vector3(3f, 3f, 3f);
  2444. }
  2445. if (gameObject2.name == "Particle/pLine_act2")
  2446. {
  2447. mDogu[doguCnt].count = 90;
  2448. gameObject2.transform.localScale = new Vector3(3f, 3f, 3f);
  2449. }
  2450. if (gameObject2.name == "Particle/pHeart01")
  2451. {
  2452. mDogu[doguCnt].count = 77;
  2453. }
  2454. if (parIndex < 3)
  2455. {
  2456. mDogu[doguCnt].isScale = true;
  2457. mDogu[doguCnt].isScale2 = true;
  2458. mDogu[doguCnt].scale2 = gameObject2.transform.localScale;
  2459. if (parIndex == 0)
  2460. {
  2461. mDogu[doguCnt].scale = new Vector3(gameObject2.transform.localScale.x * 5f,
  2462. gameObject2.transform.localScale.y * 5f,
  2463. gameObject2.transform.localScale.z * 5f);
  2464. }
  2465. if (parIndex == 1)
  2466. {
  2467. mDogu[doguCnt].scale = new Vector3(gameObject2.transform.localScale.x * 10f,
  2468. gameObject2.transform.localScale.y * 10f,
  2469. gameObject2.transform.localScale.z * 10f);
  2470. }
  2471. if (parIndex == 2)
  2472. {
  2473. mDogu[doguCnt].scale = new Vector3(gameObject2.transform.localScale.x * 33f,
  2474. gameObject2.transform.localScale.y * 33f,
  2475. gameObject2.transform.localScale.z * 33f);
  2476. }
  2477. }
  2478. if (gameObject2.GetComponent<Collider>() != null)
  2479. {
  2480. gameObject2.GetComponent<Collider>().enabled = false;
  2481. }
  2482. }
  2483. GUI.enabled = true;
  2484. if (bgCombo.isClickedComboButton || bgmCombo.isClickedComboButton)
  2485. {
  2486. GUI.enabled = false;
  2487. }
  2488. GUI.Label(new Rect(GetPix(8), GetPix(88), GetPix(100), GetPix(25)),
  2489. "大道具1",
  2490. guistyle2);
  2491. doguBIndex =
  2492. doguCombo.List(new Rect(GetPix(51),
  2493. GetPix(85),
  2494. GetPix(100),
  2495. GetPix(23)),
  2496. doguComboList[doguBIndex].text,
  2497. doguComboList,
  2498. guistyle4,
  2499. "box",
  2500. listStyle3);
  2501. if (GUI.Button(new Rect(GetPix(156), GetPix(85), GetPix(38), GetPix(23)),
  2502. "追加",
  2503. guistyle3))
  2504. {
  2505. GameObject gameObject2 = null;
  2506. if (doguDict.TryGetValue(doguBArray[doguBIndex], out PhotoBGObjectData objResult))
  2507. {
  2508. if (!string.IsNullOrEmpty(objResult.create_prefab_name))
  2509. {
  2510. Object tmpObj = Resources.Load("Prefab/" + objResult.create_prefab_name);
  2511. if (tmpObj == null)
  2512. {
  2513. gameObject2 = null;
  2514. }
  2515. else
  2516. {
  2517. gameObject2 = Instantiate(tmpObj) as GameObject;
  2518. }
  2519. }
  2520. else if (!string.IsNullOrEmpty(objResult.create_asset_bundle_name))
  2521. {
  2522. GameObject gameObject3 = GameMain.Instance.BgMgr.CreateAssetBundle(objResult.create_asset_bundle_name);
  2523. if (gameObject3 == null)
  2524. {
  2525. gameObject2 = null;
  2526. }
  2527. else
  2528. {
  2529. gameObject2 = Instantiate(gameObject3);
  2530. }
  2531. }
  2532. else if (!string.IsNullOrEmpty(objResult.direct_file))
  2533. {
  2534. BasePhotoCustomObject basePhotoCustomObject =
  2535. BasePhotoCustomObject.InstantiateFromFile(transform.gameObject, objResult.direct_file);
  2536. gameObject2 = basePhotoCustomObject.gameObject;
  2537. }
  2538. if (gameObject2 != null)
  2539. {
  2540. doguBObject.Add(gameObject2);
  2541. }
  2542. }
  2543. else if (!doguBArray[doguBIndex].StartsWith("mirror"))
  2544. {
  2545. Object @object;
  2546. if (doguBArray[doguBIndex].StartsWith("BG"))
  2547. {
  2548. string text2 = doguBArray[doguBIndex].Replace("BG", "");
  2549. @object = GameMain.Instance.BgMgr.CreateAssetBundle(text2);
  2550. if (@object == null)
  2551. {
  2552. @object = Resources.Load("BG/" + text2);
  2553. }
  2554. }
  2555. else
  2556. {
  2557. @object = Resources.Load("Prefab/" + doguBArray[doguBIndex]);
  2558. }
  2559. gameObject2 = Instantiate(@object) as GameObject;
  2560. doguBObject.Add(gameObject2);
  2561. }
  2562. else
  2563. {
  2564. Material material2 = new Material(Shader.Find("Mirror"));
  2565. GameObject gameObject3 = GameObject.CreatePrimitive(PrimitiveType.Plane);
  2566. gameObject3.transform.localScale = new Vector3(0.3f, 1f, 0.3f);
  2567. gameObject3.GetComponent<Renderer>().material = material2;
  2568. gameObject3.AddComponent<MirrorReflection2>();
  2569. MirrorReflection2 component2 = gameObject3.GetComponent<MirrorReflection2>();
  2570. component2.m_TextureSize = 2048;
  2571. component2.m_ClipPlaneOffset = 0f;
  2572. gameObject3.GetComponent<Renderer>().enabled = true;
  2573. gameObject2 = gameObject3;
  2574. doguBObject.Add(gameObject2);
  2575. }
  2576. gameObject2.name = doguBArray[doguBIndex];
  2577. Vector3 zero = Vector3.zero;
  2578. Vector3 zero2 = Vector3.zero;
  2579. string text = gameObject2.name;
  2580. switch (text)
  2581. {
  2582. case "Odogu_XmasTreeMini_photo_ver":
  2583. zero.z = 0.6f;
  2584. gameObject2.transform.localScale = new Vector3(4.5f, 4.5f, 4.5f);
  2585. foreach (object obj2 in gameObject2.transform)
  2586. {
  2587. Transform transform2 = (Transform)obj2;
  2588. if (transform2.GetComponent<Collider>() != null)
  2589. {
  2590. transform2.GetComponent<Collider>().enabled = false;
  2591. }
  2592. }
  2593. goto IL_A0BF;
  2594. case "Odogu_KadomatsuMini_photo_ver":
  2595. zero.z = 0.6f;
  2596. gameObject2.transform.localScale = new Vector3(3.5f, 3.5f, 3.5f);
  2597. foreach (object obj3 in gameObject2.transform)
  2598. {
  2599. Transform transform2 = (Transform)obj3;
  2600. if (transform2.GetComponent<Collider>() != null)
  2601. {
  2602. transform2.GetComponent<Collider>().enabled = false;
  2603. }
  2604. }
  2605. goto IL_A0BF;
  2606. case "Odogu_ClassRoomDesk":
  2607. zero.z = 0.5f;
  2608. zero2.x = -90f;
  2609. goto IL_A0BF;
  2610. case "Odogu_SimpleTable":
  2611. zero.z = 0.5f;
  2612. zero2.x = -90f;
  2613. goto IL_A0BF;
  2614. case "Odogu_DildoBox":
  2615. zero.z = 0.5f;
  2616. zero2.x = -90f;
  2617. goto IL_A0BF;
  2618. case "PlayAreaOut":
  2619. zero.z = 0.5f;
  2620. zero.y = 0.2f;
  2621. goto IL_A0BF;
  2622. case "Odogu_Dresser_photo_ver":
  2623. GameObject.Find("Prim.00000000").GetComponent<Collider>().enabled = false;
  2624. GameObject.Find("Prim.00000001").GetComponent<Collider>().enabled = false;
  2625. GameObject.Find("Prim.00000002").GetComponent<Collider>().enabled = false;
  2626. GameObject.Find("Prim.00000004").GetComponent<Collider>().enabled = false;
  2627. goto IL_A0BF;
  2628. case "BGodogu_bbqgrill":
  2629. case "BGodogu_bucket":
  2630. case "BGodogu_coolerbox":
  2631. case "BGodogu_game_darts":
  2632. case "BGodogu_game_dartsboard":
  2633. case "BGodogu_nabe_huta":
  2634. case "BGodogu_nabe_water":
  2635. case "BGodogu_natumikan":
  2636. case "BGodogu_rb_chair":
  2637. case "BGodogu_rb_duck":
  2638. case "BGodogu_rb_obon":
  2639. case "BGodogu_rb_tokkuri":
  2640. case "BGodogu_saracorn":
  2641. case "BGodogu_saraimo":
  2642. case "BGodogu_saratomato":
  2643. case "BGodogu_sunanoshiro":
  2644. case "BGodogu_sunanoyama":
  2645. case "BGodogu_tsutsuhanabi":
  2646. case "BGodogu_ukiwa":
  2647. case "BGodogu_vf_crops_corn":
  2648. case "BGodogu_vf_crops_gekkabijin":
  2649. case "BGodogu_vf_crops_gekkabijinflower":
  2650. case "BGodogu_vf_crops_himawari":
  2651. case "BGodogu_vf_crops_natsumikan":
  2652. case "BGodogu_vf_crops_suika":
  2653. case "BGodogu_vf_crops_zakuro":
  2654. case "BGodogu_villa_table":
  2655. case "BGodogu_villa_tvrimocon":
  2656. case "BGodogu_villabr_sideboard":
  2657. case "BGOdogu_Game_Nei_USB":
  2658. case "BGOdogu_Game_Wanage":
  2659. case "BGOdogu_Game_Wa":
  2660. case "BGodogu_pafe":
  2661. case "BGodogu_furaidopoteto":
  2662. case "BGodogu_karaoketable":
  2663. case "BGodogu_omuriceh":
  2664. case "BGodogu_omuricekao1":
  2665. case "BGodogu_omuricekao2":
  2666. case "BGodogu_omuriceoppai":
  2667. case "BGodogu_kakigori":
  2668. case "BGodogu_pretzel_sara":
  2669. case "BGodogu_karaoke_box":
  2670. case "Odogu_StandMike":
  2671. case "Odogu_StandMikeBase":
  2672. case "Odogu_HeroineChair_muku":
  2673. case "Odogu_HeroineChair_mazime":
  2674. case "Odogu_HeroineChair_rindere":
  2675. case "Odogu_HeroineChair_tsumdere":
  2676. case "Odogu_HeroineChair_cooldere":
  2677. case "Odogu_HeroineChair_junshin":
  2678. case "Odogu_TabletPC":
  2679. case "Odogu_Styluspen_black":
  2680. case "Odogu_Styluspen_white":
  2681. case "Odogu_Styluspen_red":
  2682. case "Odogu_Styluspen_blue":
  2683. case "Odogu_Styluspen_yellow":
  2684. case "Odogu_Styluspen_green":
  2685. case "Odogu_Omurice1":
  2686. case "Odogu_Omurice3":
  2687. case "Odogu_OmuriceH":
  2688. case "Odogu_OmuriceKao1":
  2689. case "Odogu_OmuriceKao2":
  2690. case "Odogu_OmuriceOppai":
  2691. case "Odogu_AcquaPazza":
  2692. case "Odogu_Sandwich":
  2693. case "Odogu_vichyssoise":
  2694. case "Odogu_BirthdayCake":
  2695. case "Odogu_Shortcake":
  2696. case "Odogu_MontBlanc":
  2697. case "Odogu_Pafe":
  2698. case "Odogu_Smoothie_Red":
  2699. case "Odogu_Smoothie_Green":
  2700. case "Odogu_Cocktail_Red":
  2701. case "Odogu_Cocktail_Blue":
  2702. case "Odogu_Cocktail_Yellow":
  2703. case "Odogu_Coffiecup":
  2704. case "Odogu_WineBottle(cap_off)":
  2705. case "Odogu_WineBottle(cap_on)":
  2706. case "Odogu_Jyouro":
  2707. case "Odogu_Planter_Red":
  2708. case "Odogu_Planter_Lightblue":
  2709. case "Odogu_MariGold":
  2710. case "Odogu_CasinoChip_10":
  2711. case "Odogu_CasinoChip_100":
  2712. case "Odogu_CasinoChip_1000":
  2713. case "Odogu_CardShooter":
  2714. case "Odogu_CardsDeck":
  2715. case "Odogu_Card_s1":
  2716. case "Odogu_Card_s2":
  2717. case "Odogu_Card_s3":
  2718. case "Odogu_Card_s4":
  2719. case "Odogu_Card_s5":
  2720. case "Odogu_Card_s6":
  2721. case "Odogu_Card_s7":
  2722. case "Odogu_Card_s8":
  2723. case "Odogu_Card_s9":
  2724. case "Odogu_Card_s10":
  2725. case "Odogu_Card_s11":
  2726. case "Odogu_Card_s12":
  2727. case "Odogu_Card_s13":
  2728. case "Odogu_Card_h1":
  2729. case "Odogu_Card_h2":
  2730. case "Odogu_Card_h3":
  2731. case "Odogu_Card_h4":
  2732. case "Odogu_Card_h5":
  2733. case "Odogu_Card_h6":
  2734. case "Odogu_Card_h7":
  2735. case "Odogu_Card_h8":
  2736. case "Odogu_Card_h9":
  2737. case "Odogu_Card_h10":
  2738. case "Odogu_Card_h11":
  2739. case "Odogu_Card_h12":
  2740. case "Odogu_Card_h13":
  2741. case "Odogu_Card_d1":
  2742. case "Odogu_Card_d2":
  2743. case "Odogu_Card_d3":
  2744. case "Odogu_Card_d4":
  2745. case "Odogu_Card_d5":
  2746. case "Odogu_Card_d6":
  2747. case "Odogu_Card_d7":
  2748. case "Odogu_Card_d8":
  2749. case "Odogu_Card_d9":
  2750. case "Odogu_Card_d10":
  2751. case "Odogu_Card_d11":
  2752. case "Odogu_Card_d12":
  2753. case "Odogu_Card_d13":
  2754. case "Odogu_Card_c1":
  2755. case "Odogu_Card_c2":
  2756. case "Odogu_Card_c3":
  2757. case "Odogu_Card_c4":
  2758. case "Odogu_Card_c5":
  2759. case "Odogu_Card_c6":
  2760. case "Odogu_Card_c7":
  2761. case "Odogu_Card_c8":
  2762. case "Odogu_Card_c9":
  2763. case "Odogu_Card_c10":
  2764. case "Odogu_Card_c11":
  2765. case "Odogu_Card_c12":
  2766. case "Odogu_Card_c13":
  2767. case "Odogu_Card_joker":
  2768. zero.z = 0.5f;
  2769. zero2.x = -90f;
  2770. goto IL_A0BF;
  2771. }
  2772. zero.z = 0.5f;
  2773. if (gameObject2.name.StartsWith("Odogu_"))
  2774. {
  2775. foreach (object obj4 in gameObject2.transform)
  2776. {
  2777. Transform transform2 = (Transform)obj4;
  2778. if (transform2.GetComponent<Collider>() != null)
  2779. {
  2780. transform2.GetComponent<Collider>().enabled = false;
  2781. }
  2782. }
  2783. }
  2784. else if (gameObject2.GetComponent<Collider>() != null)
  2785. {
  2786. gameObject2.GetComponent<Collider>().enabled = false;
  2787. }
  2788. IL_A0BF:
  2789. gameObject2.transform.localPosition = zero;
  2790. gameObject2.transform.localRotation = Quaternion.Euler(zero2);
  2791. doguCnt = doguBObject.Count - 1;
  2792. gDogu[doguCnt] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  2793. gDogu[doguCnt].GetComponent<Renderer>().material = m_material;
  2794. gDogu[doguCnt].layer = 8;
  2795. gDogu[doguCnt].GetComponent<Renderer>().enabled = false;
  2796. gDogu[doguCnt].SetActive(false);
  2797. gDogu[doguCnt].transform.position = gameObject2.transform.position;
  2798. mDogu[doguCnt] = gDogu[doguCnt].AddComponent<MouseDrag6>();
  2799. mDogu[doguCnt].isScale = false;
  2800. mDogu[doguCnt].obj = gDogu[doguCnt];
  2801. mDogu[doguCnt].maid = gameObject2;
  2802. mDogu[doguCnt].angles = gameObject2.transform.eulerAngles;
  2803. gDogu[doguCnt].transform.localScale = new Vector3(cubeSize, cubeSize, cubeSize);
  2804. mDogu[doguCnt].ido = 1;
  2805. if (doguBIndex == 6 || doguBIndex == 7)
  2806. {
  2807. mDogu[doguCnt].isScale2 = true;
  2808. mDogu[doguCnt].scale2 = gameObject2.transform.localScale;
  2809. }
  2810. }
  2811. GUI.enabled = true;
  2812. if (bgmCombo.isClickedComboButton)
  2813. {
  2814. GUI.enabled = false;
  2815. }
  2816. listStyle3.padding.top = GetPix(1);
  2817. listStyle3.padding.bottom = GetPix(0);
  2818. listStyle3.fontSize = GetPix(12);
  2819. int num10 = bgCombo.List(new Rect(GetPix(31),
  2820. GetPix(53),
  2821. GetPix(95),
  2822. GetPix(23)),
  2823. bgComboList[bgIndex].text,
  2824. bgComboList,
  2825. guistyle4,
  2826. "box",
  2827. listStyle3);
  2828. if (GUI.Button(new Rect(GetPix(5), GetPix(53), GetPix(23), GetPix(23)),
  2829. "<",
  2830. guistyle3))
  2831. {
  2832. num10--;
  2833. if (num10 <= -1)
  2834. {
  2835. num10 = bgArray.Length - 1;
  2836. }
  2837. }
  2838. if (GUI.Button(new Rect(GetPix(129), GetPix(53), GetPix(23), GetPix(23)),
  2839. ">",
  2840. guistyle3))
  2841. {
  2842. num10++;
  2843. if (num10 == bgArray.Length)
  2844. {
  2845. num10 = 0;
  2846. }
  2847. }
  2848. if (bgIndex != num10)
  2849. {
  2850. bgIndex = num10;
  2851. bg.localScale = new Vector3(1f, 1f, 1f);
  2852. if (bgArray[bgIndex].Length == 36)
  2853. {
  2854. GameMain.Instance.BgMgr.ChangeBgMyRoom(bgArray[bgIndex]);
  2855. }
  2856. else
  2857. {
  2858. GameMain.Instance.BgMgr.ChangeBg(bgArray[bgIndex]);
  2859. }
  2860. bgCombo.selectedItemIndex = bgIndex;
  2861. if (bgArray[bgIndex] == "karaokeroom")
  2862. {
  2863. bg.transform.position = bgObject.transform.position;
  2864. Vector3 zero = Vector3.zero;
  2865. Vector3 zero2 = Vector3.zero;
  2866. zero2.y = 90f;
  2867. zero.z = 4f;
  2868. zero.x = 1f;
  2869. bg.transform.localPosition = zero;
  2870. bg.transform.localRotation = Quaternion.Euler(zero2);
  2871. }
  2872. }
  2873. GUI.enabled = true;
  2874. int num11 = bgmCombo.List(new Rect(GetPix(31),
  2875. GetPix(25),
  2876. GetPix(95),
  2877. GetPix(23)),
  2878. bgmComboList[bgmIndex].text,
  2879. bgmComboList,
  2880. guistyle4,
  2881. "box",
  2882. listStyle3);
  2883. if (GUI.Button(new Rect(GetPix(5), GetPix(25), GetPix(23), GetPix(23)),
  2884. "<",
  2885. guistyle3))
  2886. {
  2887. num11--;
  2888. if (num11 <= -1)
  2889. {
  2890. num11 = bgmArray.Length - 1;
  2891. }
  2892. }
  2893. if (GUI.Button(new Rect(GetPix(129), GetPix(25), GetPix(23), GetPix(23)),
  2894. ">",
  2895. guistyle3))
  2896. {
  2897. num11++;
  2898. if (num11 == bgmArray.Length)
  2899. {
  2900. num11 = 0;
  2901. }
  2902. }
  2903. if (bgmIndex != num11)
  2904. {
  2905. bgmIndex = num11;
  2906. GameMain.Instance.SoundMgr.PlayBGM(bgmArray[bgmIndex] + ".ogg", 0f, true);
  2907. bgmCombo.selectedItemIndex = bgmIndex;
  2908. }
  2909. GUI.DragWindow();
  2910. if (bgmCombo.isClickedComboButton)
  2911. {
  2912. GUI.enabled = false;
  2913. }
  2914. }
  2915. private void PoseWindow(int winID)
  2916. {
  2917. GUIStyle style1 = "label";
  2918. style1.fontSize = GetPix(12);
  2919. style1.alignment = TextAnchor.UpperLeft;
  2920. GUIStyle style2 = "label";
  2921. style2.fontSize = GetPix(11);
  2922. style2.alignment = TextAnchor.UpperLeft;
  2923. GUIStyle style3 = "button";
  2924. style3.fontSize = GetPix(20);
  2925. GUIStyle buttonStyle1 = "button";
  2926. buttonStyle1.fontSize = GetPix(14);
  2927. buttonStyle1.alignment = TextAnchor.MiddleLeft;
  2928. GUIStyle buttonStyle2 = "button";
  2929. buttonStyle2.fontSize = GetPix(12);
  2930. buttonStyle2.alignment = TextAnchor.MiddleLeft;
  2931. GUIStyle style4 = new GUIStyle("toggle")
  2932. {
  2933. fontSize = GetPix(13)
  2934. };
  2935. CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
  2936. Maid maid = maidArray[selectMaidIndex];
  2937. if (!poseInitFlg)
  2938. {
  2939. listStyle2.normal.textColor = Color.white;
  2940. listStyle2.normal.background = MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.5f));
  2941. listStyle2.onHover.background = listStyle2.hover.background = new Texture2D(2, 2);
  2942. listStyle2.padding.left = listStyle2.padding.right = listStyle2.padding.top = listStyle2.padding.bottom = GetPix(0);
  2943. listStyle2.fontSize = GetPix(12);
  2944. listStyle3.normal.textColor = Color.white;
  2945. listStyle3.normal.background = MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.5f));
  2946. listStyle3.onHover.background = listStyle3.hover.background = new Texture2D(2, 2);
  2947. listStyle3.padding.left = listStyle3.padding.right = listStyle3.padding.top = GetPix(1);
  2948. listStyle3.padding.bottom = GetPix(0);
  2949. listStyle3.fontSize = GetPix(12);
  2950. listStyle4.normal.textColor = Color.white;
  2951. listStyle4.normal.background = MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.5f));
  2952. listStyle4.onHover.background = listStyle4.hover.background = new Texture2D(2, 2);
  2953. listStyle4.padding.left = listStyle4.padding.right = listStyle4.padding.top = 3;
  2954. listStyle4.padding.bottom = 3;
  2955. listStyle4.fontSize = GetPix(13);
  2956. poseCombo.selectedItemIndex = 0;
  2957. int group = (int)groupList[0];
  2958. poseComboList = new GUIContent[group];
  2959. for (int index = 0; index < group; ++index)
  2960. {
  2961. poseComboList[index] = new GUIContent((index + 1).ToString() + ":" + poseArray[index]);
  2962. }
  2963. poseGroupCombo.selectedItemIndex = 0;
  2964. poseGroupComboList = new GUIContent[poseGroupArray.Length + 1];
  2965. poseGroupComboList[0] = new GUIContent("1:通常");
  2966. for (int index = 0; index < poseGroupArray.Length; ++index)
  2967. {
  2968. if (poseGroupArray[index] == "maid_dressroom01")
  2969. {
  2970. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":立ち");
  2971. }
  2972. if (poseGroupArray[index] == "tennis_kamae_f")
  2973. {
  2974. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":中腰");
  2975. }
  2976. if (poseGroupArray[index] == "senakanagasi_f")
  2977. {
  2978. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":膝をつく");
  2979. }
  2980. if (poseGroupArray[index] == "work_hansei")
  2981. {
  2982. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":座り");
  2983. }
  2984. if (poseGroupArray[index] == "inu_taiki_f")
  2985. {
  2986. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":四つん這い");
  2987. }
  2988. if (poseGroupArray[index] == "syagami_pose_f")
  2989. {
  2990. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":床座り");
  2991. }
  2992. if (poseGroupArray[index] == "densyasuwari_taiki_f")
  2993. {
  2994. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":椅子座り");
  2995. }
  2996. if (poseGroupArray[index] == "work_kaiwa")
  2997. {
  2998. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":ソファー座り");
  2999. }
  3000. if (poseGroupArray[index] == "dance_cm3d2_001_f1,14.14")
  3001. {
  3002. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":ドキドキ☆Fallin' Love");
  3003. }
  3004. if (poseGroupArray[index] == "dance_cm3d_001_f1,39.25")
  3005. {
  3006. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":entrance to you");
  3007. }
  3008. if (poseGroupArray[index] == "dance_cm3d_002_end_f1,50.71")
  3009. {
  3010. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":scarlet leap");
  3011. }
  3012. if (poseGroupArray[index] == "dance_cm3d2_002_smt_f,7.76,")
  3013. {
  3014. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":stellar my tears");
  3015. }
  3016. if (poseGroupArray[index] == "dance_cm3d_003_sp2_f1,90.15")
  3017. {
  3018. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":rhythmix to you");
  3019. }
  3020. if (poseGroupArray[index] == "dance_cm3d2_003_hs_f1,0.01,")
  3021. {
  3022. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":happy!happy!スキャンダル!!");
  3023. }
  3024. if (poseGroupArray[index] == "dance_cm3d_004_kano_f1,124.93")
  3025. {
  3026. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":Can Know Two Close");
  3027. }
  3028. if (poseGroupArray[index] == "dance_cm3d2_004_sse_f1,0.01")
  3029. {
  3030. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":sweet sweet everyday");
  3031. }
  3032. if (poseGroupArray[index] == "turusi_sex_in_taiki_f")
  3033. {
  3034. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":拘束");
  3035. }
  3036. if (poseGroupArray[index] == "rosyutu_pose01_f")
  3037. {
  3038. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":エロ");
  3039. }
  3040. if (poseGroupArray[index] == "rosyutu_aruki_f_once_,1.37")
  3041. {
  3042. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":歩き");
  3043. }
  3044. if (poseGroupArray[index] == "stand_desk1")
  3045. {
  3046. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":その他");
  3047. }
  3048. if (poseGroupArray[index] == poseArray5[0])
  3049. {
  3050. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":ダンスMC");
  3051. }
  3052. if (poseGroupArray[index] == poseArray6[0])
  3053. {
  3054. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":ダンス");
  3055. }
  3056. if (existPose && strS != "")
  3057. {
  3058. if (index == poseGroupArray.Length - 4)
  3059. {
  3060. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":通常2");
  3061. }
  3062. if (index == poseGroupArray.Length - 3)
  3063. {
  3064. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":エロ2");
  3065. }
  3066. if (index == poseGroupArray.Length - 2)
  3067. {
  3068. poseGroupComboList[index + 1] = new GUIContent("98:撮影モード");
  3069. }
  3070. if (index == poseGroupArray.Length - 1)
  3071. {
  3072. poseGroupComboList[index + 1] = new GUIContent("99:登録ポーズ");
  3073. }
  3074. }
  3075. else if (existPose && strS == "")
  3076. {
  3077. if (index == poseGroupArray.Length - 3)
  3078. {
  3079. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":通常2");
  3080. }
  3081. if (index == poseGroupArray.Length - 2)
  3082. {
  3083. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":エロ2");
  3084. }
  3085. if (index == poseGroupArray.Length - 1)
  3086. {
  3087. poseGroupComboList[index + 1] = new GUIContent("99:登録ポーズ");
  3088. }
  3089. }
  3090. else if (!existPose && strS != "")
  3091. {
  3092. if (index == poseGroupArray.Length - 3)
  3093. {
  3094. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":通常2");
  3095. }
  3096. if (index == poseGroupArray.Length - 2)
  3097. {
  3098. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":エロ2");
  3099. }
  3100. if (index == poseGroupArray.Length - 1)
  3101. {
  3102. poseGroupComboList[index + 1] = new GUIContent("98:撮影モード");
  3103. }
  3104. }
  3105. else
  3106. {
  3107. if (index == poseGroupArray.Length - 2)
  3108. {
  3109. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":通常2");
  3110. }
  3111. if (index == poseGroupArray.Length - 1)
  3112. {
  3113. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":エロ2");
  3114. }
  3115. }
  3116. }
  3117. poseInitFlg = true;
  3118. itemCombo.selectedItemIndex = 0;
  3119. int length = itemArray.Length;
  3120. itemComboList = new GUIContent[length - 1];
  3121. for (int index = 0; index < length; ++index)
  3122. {
  3123. if (index == 0)
  3124. {
  3125. itemComboList[index] = new GUIContent("アイテム無し");
  3126. }
  3127. else
  3128. {
  3129. switch (itemArray[index])
  3130. {
  3131. case "handitem,HandItemR_WineGlass_I_.menu":
  3132. itemComboList[index] = new GUIContent(index.ToString() + ":ワイングラス");
  3133. break;
  3134. case "handitem,HandItemR_WineBottle_I_.menu":
  3135. itemComboList[index] = new GUIContent(index.ToString() + ":ワインボトル");
  3136. break;
  3137. case "handitem,handitemr_racket_I_.menu":
  3138. itemComboList[index] = new GUIContent(index.ToString() + ":ラケット");
  3139. break;
  3140. case "handitem,HandItemR_Hataki_I_.menu":
  3141. itemComboList[index] = new GUIContent(index.ToString() + ":ハタキ");
  3142. break;
  3143. case "handitem,HandItemR_Mop_I_.menu":
  3144. itemComboList[index] = new GUIContent(index.ToString() + ":モップ");
  3145. break;
  3146. case "handitem,HandItemR_Houki_I_.menu":
  3147. itemComboList[index] = new GUIContent(index.ToString() + ":ほうき");
  3148. break;
  3149. case "handitem,HandItemR_Zoukin2_I_.menu":
  3150. itemComboList[index] = new GUIContent(index.ToString() + ":雑巾");
  3151. break;
  3152. case "handitem,HandItemR_Chu-B_Lip_I_.menu":
  3153. itemComboList[index] = new GUIContent(index.ToString() + ":Chu-B Lip");
  3154. break;
  3155. case "handitem,HandItemR_Mimikaki_I_.menu":
  3156. itemComboList[index] = new GUIContent(index.ToString() + ":耳かき");
  3157. break;
  3158. case "handitem,HandItemR_Pen_I_.menu":
  3159. itemComboList[index] = new GUIContent(index.ToString() + ":ペン");
  3160. break;
  3161. case "handitem,HandItemR_Otama_I_.menu":
  3162. itemComboList[index] = new GUIContent(index.ToString() + ":おたま");
  3163. break;
  3164. case "handitem,HandItemR_Houchou_I_.menu":
  3165. itemComboList[index] = new GUIContent(index.ToString() + ":包丁");
  3166. break;
  3167. case "handitem,HandItemR_Book_I_.menu":
  3168. itemComboList[index] = new GUIContent(index.ToString() + ":本");
  3169. break;
  3170. case "handitem,HandItemR_Puff_I_.menu":
  3171. itemComboList[index] = new GUIContent(index.ToString() + ":パフ");
  3172. break;
  3173. case "handitem,HandItemR_Rip_I_.menu":
  3174. itemComboList[index] = new GUIContent(index.ToString() + ":リップ");
  3175. break;
  3176. case "handitem,HandItemD_Shisyuu_Hari_I_.menu":
  3177. itemComboList[index] = new GUIContent(index.ToString() + ":刺繍");
  3178. break;
  3179. case "handitem,HandItemD_Sara_Sponge_I_.menu":
  3180. itemComboList[index] = new GUIContent(index.ToString() + ":皿・スポンジ");
  3181. break;
  3182. case "kousoku_upper,KousokuU_TekaseOne_I_.menu":
  3183. itemComboList[index] = new GUIContent(index.ToString() + ":手枷1");
  3184. break;
  3185. case "kousoku_upper,KousokuU_TekaseTwo_I_.menu":
  3186. itemComboList[index] = new GUIContent(index.ToString() + ":手枷2");
  3187. break;
  3188. case "kousoku_lower,KousokuL_AshikaseUp_I_.menu":
  3189. itemComboList[index] = new GUIContent(index.ToString() + ":足枷");
  3190. break;
  3191. case "handitem,HandItemR_Usuba_Houchou_I_.menu":
  3192. itemComboList[index] = new GUIContent(index.ToString() + "薄刃包丁");
  3193. break;
  3194. case "handitem,HandItemR_Chusyaki_I_.menu":
  3195. itemComboList[index] = new GUIContent(index.ToString() + "注射器");
  3196. break;
  3197. case "handitem,HandItemR_Nei_Heartful_I_.menu":
  3198. itemComboList[index] = new GUIContent(index.ToString() + "ハートフルねい人形");
  3199. break;
  3200. case "handitem,HandItemR_Shaker_I_.menu":
  3201. itemComboList[index] = new GUIContent(index.ToString() + "シェイカー");
  3202. break;
  3203. case "handitem,HandItemR_SmartPhone_I_.menu":
  3204. itemComboList[index] = new GUIContent(index.ToString() + "スマートフォン");
  3205. break;
  3206. case "kousoku_upper,KousokuU_Ushirode_I_.menu":
  3207. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":後ろ手拘束具");
  3208. break;
  3209. case "kousoku_upper,KousokuU_SMRoom_Haritsuke_I_.menu":
  3210. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":磔台・手枷足枷");
  3211. break;
  3212. case "kousoku_upper,KousokuU_SMRoom2_Haritsuke_I_.menu":
  3213. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":磔台・手枷足枷2");
  3214. break;
  3215. case "handitem,HandItemL_Dance_Hataki_I_.menu":
  3216. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":ダンスハタキ");
  3217. break;
  3218. case "handitem,HandItemL_Dance_Mop_I_.menu":
  3219. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":ダンスモップ");
  3220. break;
  3221. case "handitem,HandItemL_Dance_Zoukin_I_.menu":
  3222. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":ダンス雑巾");
  3223. break;
  3224. case "handitem,HandItemL_Kozara_I_.menu":
  3225. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":小皿");
  3226. break;
  3227. case "handitem,HandItemR_Teacup_I_.menu":
  3228. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":ティーカップ");
  3229. break;
  3230. case "handitem,HandItemL_Teasaucer_I_.menu":
  3231. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":ティーソーサー");
  3232. break;
  3233. case "handitem,HandItemR_Wholecake_I_.menu":
  3234. itemComboList[index - 1] = new GUIContent("ホールケーキ");
  3235. break;
  3236. case "handitem,HandItemR_Menu_I_.menu":
  3237. itemComboList[index - 1] = new GUIContent("メニュー表");
  3238. break;
  3239. case "handitem,HandItemR_Vibe_I_.menu":
  3240. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":バイブ");
  3241. break;
  3242. case "handitem,HandItemR_VibePink_I_.menu":
  3243. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":ピンクバイブ");
  3244. break;
  3245. case "handitem,HandItemR_VibeBig_I_.menu":
  3246. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":太バイブ");
  3247. break;
  3248. case "handitem,HandItemR_AnalVibe_I_.menu":
  3249. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":アナルバイブ");
  3250. break;
  3251. case "handitem,HandItemH_SoutouVibe_I_.menu":
  3252. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":前:双頭バイブ");
  3253. break;
  3254. case "accvag,accVag_Vibe_I_.menu":
  3255. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":前:バイブ");
  3256. break;
  3257. case "accvag,accVag_VibeBig_I_.menu":
  3258. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":前:太バイブ");
  3259. break;
  3260. case "accvag,accVag_VibePink_I_.menu":
  3261. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":前:ピンクバイブ");
  3262. break;
  3263. case "accanl,accAnl_AnalVibe_I_.menu":
  3264. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":後:アナルバイブ");
  3265. break;
  3266. case "accanl,accAnl_Photo_NomalVibe_I_.menu":
  3267. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":後:バイブ");
  3268. break;
  3269. case "accanl,accAnl_Photo_VibeBig_I_.menu":
  3270. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":後:太バイブ");
  3271. break;
  3272. case "accanl,accAnl_Photo_VibePink_I_.menu":
  3273. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":後:ピンクバイブ");
  3274. break;
  3275. case "handitem,HandItemL_Etoile_Saucer_I_.menu":
  3276. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + "ティーソーサー");
  3277. break;
  3278. case "handitem,HandItemR_Etoile_Teacup_I_.menu":
  3279. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + "ティーカップ");
  3280. break;
  3281. case "handitem,HandItemL_Katuramuki_Daikon_I_.menu":
  3282. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + "桂むき大根");
  3283. break;
  3284. case "handitem,HandItemL_Karte_I_.menu":
  3285. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + "カルテ");
  3286. break;
  3287. case "handitem,HandItemL_Cracker_I_.menu":
  3288. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + "クラッカー");
  3289. break;
  3290. }
  3291. if (index == 12)
  3292. {
  3293. itemComboList[index] = new GUIContent(index.ToString() + ":手枷・足枷");
  3294. }
  3295. if (index == 13)
  3296. {
  3297. itemComboList[index] = new GUIContent(index.ToString() + ":手枷・足枷(下)");
  3298. }
  3299. if (index == 24)
  3300. {
  3301. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":カップ&ソーサー");
  3302. }
  3303. }
  3304. }
  3305. }
  3306. if (poseCombo.isClickedComboButton)
  3307. {
  3308. GUI.enabled = false;
  3309. }
  3310. if (poseGroupCombo.isClickedComboButton)
  3311. {
  3312. GUI.enabled = false;
  3313. }
  3314. if (sceneLevel == 3 || sceneLevel == 5 || isF6)
  3315. {
  3316. if (!isF6)
  3317. {
  3318. bool flag = true;
  3319. if (faceFlg || poseFlg || sceneFlg || kankyoFlg || kankyo2Flg)
  3320. {
  3321. flag = false;
  3322. }
  3323. if (GUI.Toggle(new Rect(GetPix(2),
  3324. GetPix(2),
  3325. GetPix(39),
  3326. GetPix(20)),
  3327. flag,
  3328. "配置",
  3329. style4))
  3330. {
  3331. faceFlg = false;
  3332. poseFlg = false;
  3333. sceneFlg = false;
  3334. kankyoFlg = false;
  3335. kankyo2Flg = false;
  3336. bGui = true;
  3337. }
  3338. }
  3339. if (!yotogiFlg && GUI.Toggle(new Rect(GetPix(41),
  3340. GetPix(2),
  3341. GetPix(39),
  3342. GetPix(20)),
  3343. poseFlg,
  3344. "操作",
  3345. style4))
  3346. {
  3347. poseFlg = true;
  3348. faceFlg = false;
  3349. sceneFlg = false;
  3350. kankyoFlg = false;
  3351. kankyo2Flg = false;
  3352. }
  3353. if (GUI.Toggle(new Rect(GetPix(80), GetPix(2), GetPix(39), GetPix(20)),
  3354. faceFlg,
  3355. "表情",
  3356. style4))
  3357. {
  3358. faceFlg = true;
  3359. poseFlg = false;
  3360. sceneFlg = false;
  3361. kankyoFlg = false;
  3362. kankyo2Flg = false;
  3363. if (!faceFlg2)
  3364. {
  3365. isFaceInit = true;
  3366. faceFlg2 = true;
  3367. maidArray[selectMaidIndex].boMabataki = false;
  3368. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  3369. }
  3370. isFaceInit = true;
  3371. }
  3372. if (GUI.Toggle(new Rect(GetPix(119), GetPix(2), GetPix(39), GetPix(20)),
  3373. kankyoFlg,
  3374. "環境",
  3375. style4))
  3376. {
  3377. poseFlg = false;
  3378. faceFlg = false;
  3379. sceneFlg = false;
  3380. kankyoFlg = true;
  3381. kankyo2Flg = false;
  3382. }
  3383. if (!line1)
  3384. {
  3385. line1 = MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.3f));
  3386. line2 = MakeTex(2, 2, new Color(0.7f, 0.7f, 0.7f, 0.6f));
  3387. }
  3388. GUI.DrawTexture(new Rect(GetPix(5), GetPix(20), GetPix(160), 2f), line1);
  3389. GUI.DrawTexture(new Rect(GetPix(5), GetPix(20), GetPix(160), 1f), line2);
  3390. style1.fontSize = GetPix(13);
  3391. style1.alignment = TextAnchor.MiddleCenter;
  3392. GUI.Label(new Rect(GetPix(125), GetPix(25), GetPix(40), GetPix(25)),
  3393. string.Concat(selectMaidIndex + 1),
  3394. style1);
  3395. style1.fontSize = GetPix(11);
  3396. style1.alignment = TextAnchor.UpperLeft;
  3397. }
  3398. if (sceneLevel > 0)
  3399. {
  3400. int selectMaidIndex = this.selectMaidIndex;
  3401. if (sceneLevel == 3 || sceneLevel == 5 && (isF7 || maidCnt > 1))
  3402. {
  3403. if (GUI.Button(new Rect(GetPix(5),
  3404. GetPix(53),
  3405. GetPix(23),
  3406. GetPix(32)),
  3407. "<",
  3408. style3))
  3409. {
  3410. --this.selectMaidIndex;
  3411. if (this.selectMaidIndex < 0)
  3412. {
  3413. this.selectMaidIndex = selectList.Count - 1;
  3414. }
  3415. isPoseInit = true;
  3416. poseFlg = true;
  3417. copyIndex = 0;
  3418. poseCombo.selectedItemIndex = poseIndex[this.selectMaidIndex];
  3419. faceCombo.selectedItemIndex = faceIndex[this.selectMaidIndex];
  3420. }
  3421. if (GUI.Button(new Rect(GetPix(135),
  3422. GetPix(53),
  3423. GetPix(23),
  3424. GetPix(32)),
  3425. ">",
  3426. style3))
  3427. {
  3428. ++this.selectMaidIndex;
  3429. if (selectList.Count <= this.selectMaidIndex)
  3430. {
  3431. this.selectMaidIndex = 0;
  3432. }
  3433. isPoseInit = true;
  3434. poseFlg = true;
  3435. copyIndex = 0;
  3436. poseCombo.selectedItemIndex = poseIndex[this.selectMaidIndex];
  3437. faceCombo.selectedItemIndex = faceIndex[this.selectMaidIndex];
  3438. }
  3439. }
  3440. if (maidArray[this.selectMaidIndex].GetThumIcon())
  3441. {
  3442. GUI.DrawTexture(new Rect(GetPix(30),
  3443. GetPix(25),
  3444. GetPix(60),
  3445. GetPix(60)),
  3446. maidArray[this.selectMaidIndex].GetThumIcon());
  3447. }
  3448. GUI.Label(new Rect(GetPix(90), GetPix(50), GetPix(140), GetPix(210)),
  3449. maidArray[this.selectMaidIndex].status.lastName + "\n" + maidArray[this.selectMaidIndex].status.firstName,
  3450. style1);
  3451. }
  3452. if (!isF6)
  3453. {
  3454. if (isDanceStop)
  3455. {
  3456. isStop[selectMaidIndex] = true;
  3457. isDanceStop = false;
  3458. }
  3459. if (sceneLevel == 5 && maidCnt > 1)
  3460. {
  3461. bool flag = false;
  3462. if (selectMaidIndex == isEditNo)
  3463. {
  3464. flag = true;
  3465. }
  3466. isEdit[selectMaidIndex] =
  3467. GUI.Toggle(new Rect(GetPix(5),
  3468. GetPix(25),
  3469. GetPix(50),
  3470. GetPix(16)),
  3471. flag,
  3472. "Edit",
  3473. style4);
  3474. if (isEdit[selectMaidIndex] && selectMaidIndex != isEditNo)
  3475. {
  3476. isEditNo = selectMaidIndex;
  3477. for (int index = 0; index < maidCnt; ++index)
  3478. {
  3479. if (index != isEditNo)
  3480. {
  3481. isEdit[index] = false;
  3482. }
  3483. }
  3484. SceneEdit component = GameObject.Find("__SceneEdit__").GetComponent<SceneEdit>();
  3485. SetFieldValue<SceneEdit, Maid>(component, "m_maid", maidArray[selectMaidIndex]);
  3486. component.PartsTypeCamera(MPN.stkg);
  3487. editSelectMaid = maidArray[selectMaidIndex];
  3488. if (selectList[selectMaidIndex] != null && goSlot[(int)selectList[selectMaidIndex]] != null)
  3489. {
  3490. maidArray[selectMaidIndex].body0.goSlot =
  3491. new List<TBodySkin>(goSlot[(int)selectList[selectMaidIndex]]);
  3492. for (int index = 0; index < bodyHit[(int)selectList[selectMaidIndex]].Count; ++index)
  3493. {
  3494. maidArray[selectMaidIndex].body0.goSlot[index].bonehair.bodyhit =
  3495. bodyHit[(int)selectList[selectMaidIndex]][index];
  3496. }
  3497. }
  3498. }
  3499. }
  3500. GUI.enabled = !poseGroupCombo.isClickedComboButton;
  3501. if (isLock[selectMaidIndex])
  3502. {
  3503. GUI.enabled = false;
  3504. }
  3505. int result;
  3506. Transform transform;
  3507. if (GUI.Button(new Rect(GetPix(5), GetPix(125), GetPix(23), GetPix(23)),
  3508. "<",
  3509. style3))
  3510. {
  3511. --poseIndex[selectMaidIndex];
  3512. if (poseGroupIndex > 0)
  3513. {
  3514. if ((int)groupList[poseGroupIndex - 1] > poseIndex[selectMaidIndex])
  3515. {
  3516. poseIndex[selectMaidIndex] = poseGroupIndex < groupList.Count
  3517. ? (int)groupList[poseGroupIndex] - 1
  3518. : poseArray.Length - 1;
  3519. }
  3520. }
  3521. else if (poseIndex[selectMaidIndex] < 0)
  3522. {
  3523. poseIndex[selectMaidIndex] = (int)groupList[poseGroupIndex] - 1;
  3524. }
  3525. isPoseInit = true;
  3526. poseCombo.selectedItemIndex = poseGroupIndex <= 0
  3527. ? poseIndex[selectMaidIndex]
  3528. : poseIndex[selectMaidIndex] - (int)groupList[poseGroupIndex - 1];
  3529. if (!isLock[selectMaidIndex] && maid && maid.Visible)
  3530. {
  3531. string[] strArray = poseArray[poseIndex[selectMaidIndex]].Split(',');
  3532. isStop[selectMaidIndex] = false;
  3533. poseCount[selectMaidIndex] = 20;
  3534. if (strArray[0].Contains("_momi") || strArray[0].Contains("paizuri_"))
  3535. {
  3536. maid.body0.MuneYureL(0.0f);
  3537. maid.body0.MuneYureR(0.0f);
  3538. }
  3539. else
  3540. {
  3541. maid.body0.MuneYureL(1f);
  3542. maid.body0.MuneYureR(1f);
  3543. }
  3544. if (strArray[0].Contains("MultipleMaidsPose"))
  3545. {
  3546. string path = strArray[0].Split('/')[1];
  3547. byte[] numArray = new byte[0];
  3548. try
  3549. {
  3550. using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
  3551. {
  3552. numArray = new byte[fileStream.Length];
  3553. fileStream.Read(numArray, 0, numArray.Length);
  3554. }
  3555. }
  3556. catch { }
  3557. if (0 < numArray.Length)
  3558. {
  3559. long hashCode = Path.GetFileName(path).GetHashCode();
  3560. maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
  3561. Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
  3562. {
  3563. Maid.AutoTwist.ShoulderL, Maid.AutoTwist.ShoulderR, Maid.AutoTwist.WristL, Maid.AutoTwist.WristR,
  3564. Maid.AutoTwist.ThighL, Maid.AutoTwist.ThighR
  3565. };
  3566. foreach (Maid.AutoTwist f_eType in autoTwistArray)
  3567. {
  3568. maid.SetAutoTwist(f_eType, true);
  3569. }
  3570. }
  3571. }
  3572. else if (strArray[0].StartsWith("p") && int.TryParse(strArray[0].Substring(1), out result))
  3573. {
  3574. loadPose[selectMaidIndex] = strArray[0];
  3575. }
  3576. else if (!strArray[0].StartsWith("dance_"))
  3577. {
  3578. maidArray[selectMaidIndex].CrossFade(strArray[0] + ".anm", false, true, false, 0.0f, 1f);
  3579. }
  3580. else
  3581. {
  3582. if (!maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray[0] + ".anm"))
  3583. {
  3584. maid.body0.LoadAnime(strArray[0] + ".anm", GameUty.FileSystem, strArray[0] + ".anm", false, false);
  3585. }
  3586. maid.body0.m_Bones.GetComponent<Animation>().Play(strArray[0] + ".anm");
  3587. }
  3588. if (strArray.Length > 1)
  3589. {
  3590. maid.body0.m_Bones.GetComponent<Animation>()[strArray[0] + ".anm"].time = float.Parse(strArray[1]);
  3591. isDanceStop = true;
  3592. if (strArray.Length > 2)
  3593. {
  3594. transform = CMT.SearchObjName(maidArray[selectMaidIndex].body0.m_Bones.transform, "Bip01", true);
  3595. isPoseIti[selectMaidIndex] = true;
  3596. poseIti[selectMaidIndex] = maidArray[selectMaidIndex].transform.position;
  3597. maidArray[selectMaidIndex].transform.position = new Vector3(100f, 100f, 100f);
  3598. }
  3599. }
  3600. }
  3601. }
  3602. if (GUI.Button(new Rect(GetPix(135),
  3603. GetPix(125),
  3604. GetPix(23),
  3605. GetPix(23)),
  3606. ">",
  3607. style3))
  3608. {
  3609. ++poseIndex[selectMaidIndex];
  3610. if (poseIndex[selectMaidIndex] > (int)groupList[groupList.Count - 1])
  3611. {
  3612. if (poseIndex[selectMaidIndex] >= poseArray.Length)
  3613. {
  3614. poseIndex[selectMaidIndex] = (int)groupList[poseGroupIndex - 1];
  3615. }
  3616. }
  3617. else if (poseIndex[selectMaidIndex] >= (int)groupList[poseGroupIndex])
  3618. {
  3619. poseIndex[selectMaidIndex] = poseGroupIndex <= 0 ? 0 : (int)groupList[poseGroupIndex - 1];
  3620. }
  3621. isPoseInit = true;
  3622. poseCombo.selectedItemIndex = poseGroupIndex <= 0
  3623. ? poseIndex[selectMaidIndex]
  3624. : poseIndex[selectMaidIndex] - (int)groupList[poseGroupIndex - 1];
  3625. if (!isLock[selectMaidIndex] && maid && maid.Visible)
  3626. {
  3627. string[] strArray = poseArray[poseIndex[selectMaidIndex]].Split(',');
  3628. isStop[selectMaidIndex] = false;
  3629. poseCount[selectMaidIndex] = 20;
  3630. if (strArray[0].Contains("_momi") || strArray[0].Contains("paizuri_"))
  3631. {
  3632. maid.body0.MuneYureL(0.0f);
  3633. maid.body0.MuneYureR(0.0f);
  3634. }
  3635. else
  3636. {
  3637. maid.body0.MuneYureL(1f);
  3638. maid.body0.MuneYureR(1f);
  3639. }
  3640. if (strArray[0].Contains("MultipleMaidsPose"))
  3641. {
  3642. string path = strArray[0].Split('/')[1];
  3643. byte[] numArray = new byte[0];
  3644. try
  3645. {
  3646. using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
  3647. {
  3648. numArray = new byte[fileStream.Length];
  3649. fileStream.Read(numArray, 0, numArray.Length);
  3650. }
  3651. }
  3652. catch { }
  3653. if (0 < numArray.Length)
  3654. {
  3655. long hashCode = Path.GetFileName(path).GetHashCode();
  3656. maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
  3657. Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
  3658. {
  3659. Maid.AutoTwist.ShoulderL, Maid.AutoTwist.ShoulderR, Maid.AutoTwist.WristL, Maid.AutoTwist.WristR,
  3660. Maid.AutoTwist.ThighL, Maid.AutoTwist.ThighR
  3661. };
  3662. foreach (Maid.AutoTwist f_eType in autoTwistArray)
  3663. {
  3664. maid.SetAutoTwist(f_eType, true);
  3665. }
  3666. }
  3667. }
  3668. else if (strArray[0].StartsWith("p") && int.TryParse(strArray[0].Substring(1), out result))
  3669. {
  3670. loadPose[selectMaidIndex] = strArray[0];
  3671. }
  3672. else if (!strArray[0].StartsWith("dance_"))
  3673. {
  3674. maidArray[selectMaidIndex].CrossFade(strArray[0] + ".anm", false, true, false, 0.0f, 1f);
  3675. }
  3676. else
  3677. {
  3678. if (!maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray[0] + ".anm"))
  3679. {
  3680. maid.body0.LoadAnime(strArray[0] + ".anm", GameUty.FileSystem, strArray[0] + ".anm", false, false);
  3681. }
  3682. maid.body0.m_Bones.GetComponent<Animation>().Play(strArray[0] + ".anm");
  3683. }
  3684. if (strArray.Length > 1)
  3685. {
  3686. maid.body0.m_Bones.GetComponent<Animation>()[strArray[0] + ".anm"].time = float.Parse(strArray[1]);
  3687. isDanceStop = true;
  3688. if (strArray.Length > 2)
  3689. {
  3690. transform = CMT.SearchObjName(maidArray[selectMaidIndex].body0.m_Bones.transform, "Bip01", true);
  3691. isPoseIti[selectMaidIndex] = true;
  3692. poseIti[selectMaidIndex] = maidArray[selectMaidIndex].transform.position;
  3693. maidArray[selectMaidIndex].transform.position = new Vector3(100f, 100f, 100f);
  3694. }
  3695. }
  3696. }
  3697. }
  3698. GUI.enabled = true;
  3699. int index1 = -1;
  3700. for (int index2 = 0; index2 < groupList.Count; ++index2)
  3701. {
  3702. if (poseIndex[selectMaidIndex] < (int)groupList[index2])
  3703. {
  3704. index1 = index2;
  3705. break;
  3706. }
  3707. }
  3708. int length1 = (int)groupList[0];
  3709. int num1 = 0;
  3710. if (index1 > 0)
  3711. {
  3712. length1 = (int)groupList[index1] - (int)groupList[index1 - 1];
  3713. num1 = (int)groupList[index1 - 1];
  3714. }
  3715. if (index1 < 0)
  3716. {
  3717. index1 = groupList.Count;
  3718. length1 = poseArray.Length - (int)groupList[index1 - 1];
  3719. num1 = (int)groupList[index1 - 1];
  3720. }
  3721. if (poseGroupCombo.selectedItemIndex != index1)
  3722. {
  3723. poseComboList = new GUIContent[length1];
  3724. int index2 = 0;
  3725. for (int index3 = num1; index3 < num1 + length1; ++index3)
  3726. {
  3727. bool flag = false;
  3728. foreach (IniKey key in Preferences["pose"].Keys)
  3729. {
  3730. if (poseArray[index3] == key.Key)
  3731. {
  3732. IniKey iniKey = Preferences["pose"][key.Key];
  3733. if (iniKey.Value != null && iniKey.Value.ToString() != "" && iniKey.Value.ToString() != "del")
  3734. {
  3735. poseComboList[index2] =
  3736. new GUIContent((index2 + 1).ToString() + ":" + iniKey.Value.Split('_')[0]
  3737. + "                    " + key.Key);
  3738. flag = true;
  3739. }
  3740. }
  3741. }
  3742. if (!flag)
  3743. {
  3744. poseComboList[index2] = new GUIContent((index2 + 1).ToString() + ":" + poseArray[index3]);
  3745. }
  3746. ++index2;
  3747. }
  3748. poseGroupCombo.selectedItemIndex = index1;
  3749. poseGroupIndex = index1;
  3750. poseCombo.selectedItemIndex = 0;
  3751. }
  3752. GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton;
  3753. isLook[selectMaidIndex] =
  3754. GUI.Toggle(new Rect(GetPix(8),
  3755. GetPix(155),
  3756. GetPix(65),
  3757. GetPix(16)),
  3758. isLook[selectMaidIndex],
  3759. "顔の向き",
  3760. style4);
  3761. isPoseEdit = GUI.Toggle(new Rect(GetPix(86),
  3762. GetPix(155),
  3763. GetPix(90),
  3764. GetPix(16)),
  3765. isPoseEdit,
  3766. "ポーズ登録",
  3767. style4);
  3768. if (isPoseEdit)
  3769. {
  3770. inName3 = GUI.TextField(new Rect(GetPix(5),
  3771. GetPix(180),
  3772. GetPix(100),
  3773. GetPix(20)),
  3774. inName3);
  3775. if (GUI.Button(new Rect(GetPix(107),
  3776. GetPix(180),
  3777. GetPix(35),
  3778. GetPix(20)),
  3779. "追加",
  3780. style3))
  3781. {
  3782. isSavePose = true;
  3783. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  3784. existPose = true;
  3785. GUI.FocusControl("");
  3786. }
  3787. if (poseGroupComboList[poseGroupCombo.selectedItemIndex].text != "99:登録ポーズ")
  3788. {
  3789. GUI.enabled = false;
  3790. }
  3791. if (GUI.Button(new Rect(GetPix(144),
  3792. GetPix(180),
  3793. GetPix(24),
  3794. GetPix(20)),
  3795. "削",
  3796. style3))
  3797. {
  3798. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  3799. List<string> stringList1 = new List<string>();
  3800. stringList1.AddRange(poseArray);
  3801. if (poseComboList[poseCombo.selectedItemIndex].text.Contains("MultipleMaidsPose"))
  3802. {
  3803. string pose = poseArray[poseIndex[selectMaidIndex]];
  3804. stringList1.Remove(pose);
  3805. string path = poseArray[poseIndex[selectMaidIndex]].Split('/')[1].Replace("                    ", "");
  3806. if (File.Exists(path))
  3807. {
  3808. File.Delete(path);
  3809. }
  3810. }
  3811. else
  3812. {
  3813. string[] strArray = poseComboList[poseCombo.selectedItemIndex].text.Split('p');
  3814. string str = strArray[strArray.Length - 1];
  3815. IniKey iniKey = Preferences["pose"]["p" + str];
  3816. if (iniKey.Value != "" || iniKey.Value != "del")
  3817. {
  3818. Preferences["pose"]["p" + str].Value = "del";
  3819. SaveConfig();
  3820. }
  3821. stringList1.Remove("p" + str);
  3822. }
  3823. GUI.FocusControl("");
  3824. poseArray = stringList1.ToArray();
  3825. int index2 = -1;
  3826. for (int index3 = 0; index3 < groupList.Count; ++index3)
  3827. {
  3828. if (poseIndex[selectMaidIndex] < (int)groupList[index3])
  3829. {
  3830. index2 = index3;
  3831. break;
  3832. }
  3833. }
  3834. int length2 = (int)groupList[0];
  3835. int num2 = 0;
  3836. if (index2 > 0)
  3837. {
  3838. length2 = (int)groupList[index2] - (int)groupList[index2 - 1];
  3839. num2 = (int)groupList[index2 - 1];
  3840. }
  3841. if (index2 < 0)
  3842. {
  3843. index2 = groupList.Count;
  3844. length2 = poseArray.Length - (int)groupList[index2 - 1];
  3845. num2 = (int)groupList[index2 - 1];
  3846. }
  3847. poseComboList = new GUIContent[length2];
  3848. int index4 = 0;
  3849. bool existEdit = false;
  3850. for (int index3 = num2; index3 < num2 + length2; ++index3)
  3851. {
  3852. bool flag = false;
  3853. foreach (IniKey key in Preferences["pose"].Keys)
  3854. {
  3855. if (poseArray[index3] == key.Key)
  3856. {
  3857. IniKey iniKey = Preferences["pose"][key.Key];
  3858. if (iniKey.Value != null && iniKey.Value.ToString() != "" && iniKey.Value.ToString() != "del")
  3859. {
  3860. poseComboList[index4] =
  3861. new GUIContent((index4 + 1).ToString() + ":" + iniKey.Value.Split('_')[0]
  3862. + "                    " + key.Key);
  3863. flag = true;
  3864. existEdit = true;
  3865. }
  3866. }
  3867. }
  3868. if (!flag)
  3869. {
  3870. poseComboList[index4] = new GUIContent((index4 + 1).ToString() + ":" + poseArray[index3]);
  3871. }
  3872. ++index4;
  3873. }
  3874. ((Action<string, List<string>>)((path, result_list) =>
  3875. {
  3876. string[] files = Directory.GetFiles(path);
  3877. countS = 0;
  3878. for (int index = 0; index < files.Length; ++index)
  3879. {
  3880. if (Path.GetExtension(files[index]) == ".anm")
  3881. {
  3882. existEdit = true;
  3883. break;
  3884. }
  3885. }
  3886. }))(Path.GetFullPath(".\\") + "Mod\\MultipleMaidsPose", new List<string>());
  3887. if (!existEdit)
  3888. {
  3889. poseIniStr = "";
  3890. List<string> stringList2 = new List<string>(50 + poseGroupArray2.Length);
  3891. stringList2.AddRange(poseGroupArray2);
  3892. stringList2.AddRange(poseGroupArrayVP);
  3893. stringList2.AddRange(poseGroupArrayFB);
  3894. stringList2.AddRange(poseGroupArray3);
  3895. stringList2.Add(poseArray5[0]);
  3896. stringList2.Add(poseArray6[0]);
  3897. stringList2.Add(strList2[0]);
  3898. stringList2.Add(strListE2[0]);
  3899. existPose = false;
  3900. poseGroupArray = stringList2.ToArray();
  3901. groupList = new ArrayList();
  3902. for (int index3 = 0; index3 < poseArray.Length; ++index3)
  3903. {
  3904. for (int index5 = 0; index5 < poseGroupArray.Length; ++index5)
  3905. {
  3906. if (poseGroupArray[index5] == poseArray[index3])
  3907. {
  3908. groupList.Add(index3);
  3909. if (poseGroupArray[index5] == strList2[0])
  3910. {
  3911. sPoseCount = index3;
  3912. }
  3913. }
  3914. }
  3915. }
  3916. poseIndex[selectMaidIndex] = 0;
  3917. poseGroupComboList = new GUIContent[poseGroupArray.Length + 1];
  3918. poseGroupComboList[0] = new GUIContent("1:通常");
  3919. for (int index3 = 0; index3 < poseGroupArray.Length; ++index3)
  3920. {
  3921. if (poseGroupArray[index3] == "maid_dressroom01")
  3922. {
  3923. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":立ち");
  3924. }
  3925. if (poseGroupArray[index3] == "tennis_kamae_f")
  3926. {
  3927. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":中腰");
  3928. }
  3929. if (poseGroupArray[index3] == "senakanagasi_f")
  3930. {
  3931. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":膝をつく");
  3932. }
  3933. if (poseGroupArray[index3] == "work_hansei")
  3934. {
  3935. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":座り");
  3936. }
  3937. if (poseGroupArray[index3] == "inu_taiki_f")
  3938. {
  3939. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":四つん這い");
  3940. }
  3941. if (poseGroupArray[index3] == "syagami_pose_f")
  3942. {
  3943. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":床座り");
  3944. }
  3945. if (poseGroupArray[index3] == "densyasuwari_taiki_f")
  3946. {
  3947. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":椅子座り");
  3948. }
  3949. if (poseGroupArray[index3] == "work_kaiwa")
  3950. {
  3951. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":ソファー座り");
  3952. }
  3953. if (poseGroupArray[index3] == "dance_cm3d2_001_f1,14.14")
  3954. {
  3955. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":ドキドキ☆Fallin' Love");
  3956. }
  3957. if (poseGroupArray[index3] == "dance_cm3d_001_f1,39.25")
  3958. {
  3959. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":entrance to you");
  3960. }
  3961. if (poseGroupArray[index3] == "dance_cm3d_002_end_f1,50.71")
  3962. {
  3963. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":scarlet leap");
  3964. }
  3965. if (poseGroupArray[index3] == "dance_cm3d2_002_smt_f,7.76,")
  3966. {
  3967. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":stellar my tears");
  3968. }
  3969. if (poseGroupArray[index3] == "dance_cm3d_003_sp2_f1,90.15")
  3970. {
  3971. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":rhythmix to you");
  3972. }
  3973. if (poseGroupArray[index3] == "dance_cm3d2_003_hs_f1,0.01,")
  3974. {
  3975. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":happy!happy!スキャンダル!!");
  3976. }
  3977. if (poseGroupArray[index3] == "dance_cm3d_004_kano_f1,124.93")
  3978. {
  3979. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":Can Know Two Close");
  3980. }
  3981. if (poseGroupArray[index3] == "dance_cm3d2_004_sse_f1,0.01")
  3982. {
  3983. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":sweet sweet everyday");
  3984. }
  3985. if (poseGroupArray[index3] == "turusi_sex_in_taiki_f")
  3986. {
  3987. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":拘束");
  3988. }
  3989. if (poseGroupArray[index3] == "rosyutu_pose01_f")
  3990. {
  3991. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":エロ");
  3992. }
  3993. if (poseGroupArray[index3] == "rosyutu_aruki_f_once_,1.37")
  3994. {
  3995. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":歩き");
  3996. }
  3997. if (poseGroupArray[index3] == "stand_desk1")
  3998. {
  3999. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":その他");
  4000. }
  4001. if (poseGroupArray[index3] == poseArray5[0])
  4002. {
  4003. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":ダンスMC");
  4004. }
  4005. if (poseGroupArray[index3] == poseArray6[0])
  4006. {
  4007. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":ダンス");
  4008. }
  4009. if (index3 == poseGroupArray.Length - 2)
  4010. {
  4011. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":通常2");
  4012. }
  4013. if (index3 == poseGroupArray.Length - 1)
  4014. {
  4015. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":エロ2");
  4016. }
  4017. }
  4018. }
  4019. else
  4020. {
  4021. poseGroupCombo.selectedItemIndex = index2;
  4022. poseGroupIndex = index2;
  4023. poseCombo.selectedItemIndex = 0;
  4024. poseIndex[selectMaidIndex] = (int)groupList[groupList.Count - 1];
  4025. if (poseArray.Length <= poseIndex[selectMaidIndex])
  4026. {
  4027. --poseIndex[selectMaidIndex];
  4028. }
  4029. }
  4030. }
  4031. GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton;
  4032. }
  4033. else
  4034. {
  4035. if (!isLook[selectMaidIndex])
  4036. {
  4037. GUI.enabled = false;
  4038. }
  4039. GUI.Label(new Rect(GetPix(8), GetPix(175), GetPix(100), GetPix(25)),
  4040. "顔の向きX",
  4041. style2);
  4042. lookX[selectMaidIndex] =
  4043. GUI.HorizontalSlider(new Rect(GetPix(8),
  4044. GetPix(191),
  4045. GetPix(70),
  4046. GetPix(20)),
  4047. lookX[selectMaidIndex],
  4048. -0.6f,
  4049. 0.6f);
  4050. GUI.Label(new Rect(GetPix(88),
  4051. GetPix(175),
  4052. GetPix(100),
  4053. GetPix(25)),
  4054. "顔の向きY",
  4055. style2);
  4056. lookY[selectMaidIndex] =
  4057. GUI.HorizontalSlider(new Rect(GetPix(88),
  4058. GetPix(191),
  4059. GetPix(70),
  4060. GetPix(20)),
  4061. lookY[selectMaidIndex],
  4062. 0.5f,
  4063. -0.55f);
  4064. GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton;
  4065. }
  4066. int index6 = poseGroupIndex <= 0
  4067. ? poseIndex[selectMaidIndex]
  4068. : poseIndex[selectMaidIndex] - (int)groupList[poseGroupIndex - 1];
  4069. string[] strArray1;
  4070. if (GUI.Button(new Rect(GetPix(5), GetPix(215), GetPix(23), GetPix(23)),
  4071. "<",
  4072. style3))
  4073. {
  4074. --itemIndex[selectMaidIndex];
  4075. if (itemIndex[selectMaidIndex] <= -1)
  4076. {
  4077. itemIndex[selectMaidIndex] = itemArray.Length - 2;
  4078. }
  4079. strArray1 = new string[2];
  4080. string[] strArray2 = itemArray[itemIndex[selectMaidIndex]].Split(',');
  4081. if (itemIndex[selectMaidIndex] > 13)
  4082. {
  4083. strArray2 = itemArray[itemIndex[selectMaidIndex] + 1].Split(',');
  4084. }
  4085. maid.DelProp(MPN.handitem, true);
  4086. maid.DelProp(MPN.accvag, true);
  4087. maid.DelProp(MPN.accanl, true);
  4088. bool flag = false;
  4089. if (itemIndex[selectMaidIndex] == 12 || itemIndex[selectMaidIndex] == 13 || itemIndex[selectMaidIndex] == 23)
  4090. {
  4091. flag = true;
  4092. }
  4093. if (!flag)
  4094. {
  4095. maid.DelProp(MPN.kousoku_upper, true);
  4096. maid.DelProp(MPN.kousoku_lower, true);
  4097. }
  4098. if (strArray2[0] != "")
  4099. {
  4100. maid.SetProp(strArray2[0], strArray2[1], 0, true, false);
  4101. }
  4102. if (itemIndex[selectMaidIndex] == 12)
  4103. {
  4104. string[] strArray3 = itemArray[itemIndex[selectMaidIndex] - 1].Split(',');
  4105. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  4106. }
  4107. if (itemIndex[selectMaidIndex] == 13)
  4108. {
  4109. string[] strArray3 = itemArray[itemIndex[selectMaidIndex] + 1].Split(',');
  4110. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  4111. }
  4112. if (itemIndex[selectMaidIndex] == 23)
  4113. {
  4114. string[] strArray3 = itemArray[itemIndex[selectMaidIndex]].Split(',');
  4115. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  4116. cafeFlg[selectMaidIndex] = true;
  4117. }
  4118. maid.AllProcPropSeqStart();
  4119. itemCombo.selectedItemIndex = itemIndex[selectMaidIndex];
  4120. }
  4121. if (GUI.Button(new Rect(GetPix(135),
  4122. GetPix(215),
  4123. GetPix(23),
  4124. GetPix(23)),
  4125. ">",
  4126. style3))
  4127. {
  4128. ++itemIndex[selectMaidIndex];
  4129. if (itemIndex[selectMaidIndex] >= itemArray.Length - 1)
  4130. {
  4131. itemIndex[selectMaidIndex] = 0;
  4132. }
  4133. strArray1 = new string[2];
  4134. string[] strArray2 = itemArray[itemIndex[selectMaidIndex]].Split(',');
  4135. if (itemIndex[selectMaidIndex] > 13)
  4136. {
  4137. strArray2 = itemArray[itemIndex[selectMaidIndex] + 1].Split(',');
  4138. }
  4139. maid.DelProp(MPN.handitem, true);
  4140. maid.DelProp(MPN.accvag, true);
  4141. maid.DelProp(MPN.accanl, true);
  4142. bool flag = false;
  4143. if (itemIndex[selectMaidIndex] == 12 || itemIndex[selectMaidIndex] == 13)
  4144. {
  4145. flag = true;
  4146. }
  4147. if (!flag)
  4148. {
  4149. maid.DelProp(MPN.kousoku_upper, true);
  4150. maid.DelProp(MPN.kousoku_lower, true);
  4151. }
  4152. if (strArray2[0] != "")
  4153. {
  4154. maid.SetProp(strArray2[0], strArray2[1], 0, true, false);
  4155. }
  4156. if (itemIndex[selectMaidIndex] == 12)
  4157. {
  4158. string[] strArray3 = itemArray[itemIndex[selectMaidIndex] - 1].Split(',');
  4159. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  4160. }
  4161. if (itemIndex[selectMaidIndex] == 13)
  4162. {
  4163. string[] strArray3 = itemArray[itemIndex[selectMaidIndex] + 1].Split(',');
  4164. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  4165. }
  4166. if (itemIndex[selectMaidIndex] == 23)
  4167. {
  4168. string[] strArray3 = itemArray[itemIndex[selectMaidIndex]].Split(',');
  4169. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  4170. cafeFlg[selectMaidIndex] = true;
  4171. }
  4172. maid.AllProcPropSeqStart();
  4173. itemCombo.selectedItemIndex = itemIndex[selectMaidIndex];
  4174. }
  4175. if (itemCombo.isClickedComboButton)
  4176. {
  4177. GUI.enabled = false;
  4178. }
  4179. isWear = GUI.Toggle(new Rect(GetPix(5),
  4180. GetPix(248),
  4181. GetPix(70),
  4182. GetPix(20)),
  4183. isWear,
  4184. "トップス",
  4185. style4);
  4186. isSkirt = GUI.Toggle(new Rect(GetPix(90),
  4187. GetPix(248),
  4188. GetPix(70),
  4189. GetPix(20)),
  4190. isSkirt,
  4191. "ボトムス",
  4192. style4);
  4193. isBra = GUI.Toggle(new Rect(GetPix(5),
  4194. GetPix(273),
  4195. GetPix(80),
  4196. GetPix(20)),
  4197. isBra,
  4198. "ブラジャー",
  4199. style4);
  4200. isPanz = GUI.Toggle(new Rect(GetPix(90),
  4201. GetPix(273),
  4202. GetPix(60),
  4203. GetPix(20)),
  4204. isPanz,
  4205. "パンツ",
  4206. style4);
  4207. isHeadset = GUI.Toggle(new Rect(GetPix(5),
  4208. GetPix(298),
  4209. GetPix(70),
  4210. GetPix(20)),
  4211. isHeadset,
  4212. "ヘッド",
  4213. style4);
  4214. isMegane = GUI.Toggle(new Rect(GetPix(95),
  4215. GetPix(298),
  4216. GetPix(70),
  4217. GetPix(20)),
  4218. isMegane,
  4219. "メガネ",
  4220. style4);
  4221. isAccUde = GUI.Toggle(new Rect(GetPix(5),
  4222. GetPix(323),
  4223. GetPix(40),
  4224. GetPix(20)),
  4225. isAccUde,
  4226. "腕",
  4227. style4);
  4228. isGlove = GUI.Toggle(new Rect(GetPix(50),
  4229. GetPix(323),
  4230. GetPix(40),
  4231. GetPix(20)),
  4232. isGlove,
  4233. "手袋",
  4234. style4);
  4235. isAccSenaka = GUI.Toggle(new Rect(GetPix(95),
  4236. GetPix(323),
  4237. GetPix(40),
  4238. GetPix(20)),
  4239. isAccSenaka,
  4240. "背中",
  4241. style4);
  4242. isStkg = GUI.Toggle(new Rect(GetPix(5),
  4243. GetPix(348),
  4244. GetPix(40),
  4245. GetPix(20)),
  4246. isStkg,
  4247. "靴下",
  4248. style4);
  4249. isShoes = GUI.Toggle(new Rect(GetPix(50),
  4250. GetPix(348),
  4251. GetPix(40),
  4252. GetPix(20)),
  4253. isShoes,
  4254. "靴",
  4255. style4);
  4256. isMaid = GUI.Toggle(new Rect(GetPix(95),
  4257. GetPix(348),
  4258. GetPix(70),
  4259. GetPix(20)),
  4260. isMaid,
  4261. "メイド",
  4262. style4);
  4263. mekure1[selectMaidIndex] =
  4264. GUI.Toggle(new Rect(GetPix(5),
  4265. GetPix(373),
  4266. GetPix(62),
  4267. GetPix(20)),
  4268. mekure1[selectMaidIndex],
  4269. "めくれ前",
  4270. style4);
  4271. mekure2[selectMaidIndex] =
  4272. GUI.Toggle(new Rect(GetPix(67),
  4273. GetPix(373),
  4274. GetPix(40),
  4275. GetPix(20)),
  4276. mekure2[selectMaidIndex],
  4277. "後ろ",
  4278. style4);
  4279. zurasi[selectMaidIndex] =
  4280. GUI.Toggle(new Rect(GetPix(105),
  4281. GetPix(373),
  4282. GetPix(50),
  4283. GetPix(20)),
  4284. zurasi[selectMaidIndex],
  4285. "ずらし",
  4286. style4);
  4287. voice1[selectMaidIndex] =
  4288. GUI.Toggle(new Rect(GetPix(5),
  4289. GetPix(530),
  4290. GetPix(70),
  4291. GetPix(20)),
  4292. zFlg[selectMaidIndex],
  4293. "ボイス",
  4294. style4);
  4295. voice2[selectMaidIndex] =
  4296. GUI.Toggle(new Rect(GetPix(70),
  4297. GetPix(530),
  4298. GetPix(70),
  4299. GetPix(20)),
  4300. xFlg[selectMaidIndex],
  4301. "Hボイス",
  4302. style4);
  4303. GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton && !itemCombo.isClickedComboButton;
  4304. GUI.DrawTexture(new Rect(GetPix(5), GetPix(402), GetPix(160), 2f), line1);
  4305. GUI.DrawTexture(new Rect(GetPix(5), GetPix(402), GetPix(160), 1f), line2);
  4306. isIK[selectMaidIndex] =
  4307. GUI.Toggle(new Rect(GetPix(5),
  4308. GetPix(411),
  4309. GetPix(30),
  4310. GetPix(20)),
  4311. isIK[selectMaidIndex],
  4312. "IK",
  4313. style4);
  4314. if (!isLock[selectMaidIndex])
  4315. {
  4316. GUI.enabled = false;
  4317. }
  4318. isLock[selectMaidIndex] =
  4319. GUI.Toggle(new Rect(GetPix(45),
  4320. GetPix(411),
  4321. GetPix(40),
  4322. GetPix(20)),
  4323. isLock[selectMaidIndex],
  4324. "解除",
  4325. style4);
  4326. GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton && !itemCombo.isClickedComboButton;
  4327. if (!isIK[selectMaidIndex])
  4328. {
  4329. GUI.enabled = false;
  4330. }
  4331. isBone[selectMaidIndex] =
  4332. GUI.Toggle(new Rect(GetPix(100),
  4333. GetPix(411),
  4334. GetPix(60),
  4335. GetPix(20)),
  4336. isBone[selectMaidIndex],
  4337. "ボーン",
  4338. style4);
  4339. GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton;
  4340. if (isBone[selectMaidIndex] != isBoneN[selectMaidIndex])
  4341. {
  4342. isBoneN[selectMaidIndex] = isBone[selectMaidIndex];
  4343. isChange[selectMaidIndex] = true;
  4344. }
  4345. if (!isLock[selectMaidIndex] && unLockFlg != isLock[selectMaidIndex])
  4346. {
  4347. string[] strArray2 = poseArray[poseIndex[selectMaidIndex]].Split(',');
  4348. isStop[selectMaidIndex] = false;
  4349. poseCount[selectMaidIndex] = 20;
  4350. if (strArray2[0].Contains("_momi") || strArray2[0].Contains("paizuri_"))
  4351. {
  4352. maid.body0.MuneYureL(0.0f);
  4353. maid.body0.MuneYureR(0.0f);
  4354. }
  4355. else
  4356. {
  4357. maid.body0.MuneYureL(1f);
  4358. maid.body0.MuneYureR(1f);
  4359. }
  4360. if (strArray2[0].Contains("MultipleMaidsPose"))
  4361. {
  4362. string path = strArray2[0].Split('/')[1];
  4363. byte[] numArray = new byte[0];
  4364. try
  4365. {
  4366. using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
  4367. {
  4368. numArray = new byte[fileStream.Length];
  4369. fileStream.Read(numArray, 0, numArray.Length);
  4370. }
  4371. }
  4372. catch { }
  4373. if (0 < numArray.Length)
  4374. {
  4375. long hashCode = Path.GetFileName(path).GetHashCode();
  4376. maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
  4377. Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
  4378. {
  4379. Maid.AutoTwist.ShoulderL, Maid.AutoTwist.ShoulderR, Maid.AutoTwist.WristL, Maid.AutoTwist.WristR,
  4380. Maid.AutoTwist.ThighL, Maid.AutoTwist.ThighR
  4381. };
  4382. foreach (Maid.AutoTwist f_eType in autoTwistArray)
  4383. {
  4384. maid.SetAutoTwist(f_eType, true);
  4385. }
  4386. }
  4387. }
  4388. else if (strArray2[0].StartsWith("p") && int.TryParse(strArray2[0].Substring(1), out result))
  4389. {
  4390. loadPose[selectMaidIndex] = strArray2[0];
  4391. }
  4392. else if (!strArray2[0].StartsWith("dance_"))
  4393. {
  4394. maidArray[selectMaidIndex].CrossFade(strArray2[0] + ".anm", false, true, false, 0.0f, 1f);
  4395. }
  4396. else
  4397. {
  4398. if (!maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm"))
  4399. {
  4400. maid.body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
  4401. }
  4402. maid.body0.m_Bones.GetComponent<Animation>().Play(strArray2[0] + ".anm");
  4403. }
  4404. if (strArray2.Length > 1)
  4405. {
  4406. maid.body0.m_Bones.GetComponent<Animation>()[strArray2[0] + ".anm"].time = float.Parse(strArray2[1]);
  4407. isDanceStop = true;
  4408. if (strArray2.Length > 2)
  4409. {
  4410. transform = CMT.SearchObjName(maidArray[selectMaidIndex].body0.m_Bones.transform, "Bip01", true);
  4411. isPoseIti[selectMaidIndex] = true;
  4412. poseIti[selectMaidIndex] = maidArray[selectMaidIndex].transform.position;
  4413. maidArray[selectMaidIndex].transform.position = new Vector3(100f, 100f, 100f);
  4414. }
  4415. }
  4416. mHandL[selectMaidIndex].initFlg = false;
  4417. mHandR[selectMaidIndex].initFlg = false;
  4418. mFootL[selectMaidIndex].initFlg = false;
  4419. mFootR[selectMaidIndex].initFlg = false;
  4420. pHandL[selectMaidIndex] = 0;
  4421. pHandR[selectMaidIndex] = 0;
  4422. hanten[selectMaidIndex] = false;
  4423. hantenn[selectMaidIndex] = false;
  4424. muneIKL[selectMaidIndex] = false;
  4425. muneIKR[selectMaidIndex] = false;
  4426. maid.body0.jbMuneL.enabled = true;
  4427. maid.body0.jbMuneR.enabled = true;
  4428. if (!GameMain.Instance.VRMode)
  4429. {
  4430. maidArray[selectMaidIndex].body0.quaDefEyeL.eulerAngles = eyeL[(int)selectList[selectMaidIndex]];
  4431. maidArray[selectMaidIndex].body0.quaDefEyeR.eulerAngles = eyeR[(int)selectList[selectMaidIndex]];
  4432. }
  4433. }
  4434. unLockFlg = isLock[selectMaidIndex];
  4435. GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton && !itemCombo.isClickedComboButton;
  4436. if (!isIK[selectMaidIndex])
  4437. {
  4438. GUI.enabled = false;
  4439. }
  4440. hanten[selectMaidIndex] =
  4441. GUI.Toggle(new Rect(GetPix(5),
  4442. GetPix(479),
  4443. GetPix(70),
  4444. GetPix(20)),
  4445. hanten[selectMaidIndex],
  4446. "左右反転",
  4447. style4);
  4448. bool flag1 = GUI.Toggle(new Rect(GetPix(80),
  4449. GetPix(479),
  4450. GetPix(100),
  4451. GetPix(20)),
  4452. kotei[selectMaidIndex],
  4453. "スカート固定",
  4454. style4);
  4455. if (kotei[selectMaidIndex] != flag1)
  4456. {
  4457. kotei[selectMaidIndex] = flag1;
  4458. if (flag1)
  4459. {
  4460. SkirtListArray[selectMaidIndex] = new DynamicSkirtBone[100];
  4461. for (int index2 = 0; index2 < maid.body0.goSlot.Count; ++index2)
  4462. {
  4463. DynamicSkirtBone fieldValue =
  4464. GetFieldValue<BoneHair3, DynamicSkirtBone>(maid.body0.goSlot[index2].bonehair3, "m_SkirtBone");
  4465. SkirtListArray[selectMaidIndex][index2] = fieldValue;
  4466. SetFieldValue8<BoneHair3, DynamicSkirtBone>(maid.body0.goSlot[index2].bonehair3,
  4467. "m_SkirtBone",
  4468. null);
  4469. }
  4470. }
  4471. else
  4472. {
  4473. for (int index2 = 0; index2 < maid.body0.goSlot.Count; ++index2)
  4474. {
  4475. SetFieldValue8<BoneHair3, DynamicSkirtBone>(maid.body0.goSlot[index2].bonehair3,
  4476. "m_SkirtBone",
  4477. SkirtListArray[selectMaidIndex][index2]);
  4478. }
  4479. }
  4480. }
  4481. GUI.Label(new Rect(GetPix(29), GetPix(433), GetPix(100), GetPix(25)),
  4482. "右手",
  4483. style1);
  4484. GUI.Label(new Rect(GetPix(109), GetPix(433), GetPix(100), GetPix(25)),
  4485. "左手",
  4486. style1);
  4487. string text = "未選択";
  4488. if (copyIndex > 0)
  4489. {
  4490. text = copyIndex.ToString() + ":" + maidArray[copyIndex - 1].status.firstName;
  4491. }
  4492. if (maidCnt <= 1)
  4493. {
  4494. GUI.enabled = false;
  4495. }
  4496. GUI.Label(new Rect(GetPix(8), GetPix(505), GetPix(100), GetPix(25)),
  4497. "コピー",
  4498. style1);
  4499. GUI.Label(new Rect(GetPix(70), GetPix(505), GetPix(100), GetPix(25)),
  4500. text,
  4501. style1);
  4502. GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton && !itemCombo.isClickedComboButton
  4503. && isIK[selectMaidIndex];
  4504. style1.fontSize = GetPix(13);
  4505. style1.alignment = TextAnchor.UpperCenter;
  4506. GUI.Label(new Rect(GetPix(-10), GetPix(449), GetPix(100), GetPix(25)),
  4507. pHandR[selectMaidIndex].ToString(),
  4508. style1);
  4509. GUI.Label(new Rect(GetPix(70), GetPix(449), GetPix(100), GetPix(25)),
  4510. pHandL[selectMaidIndex].ToString(),
  4511. style1);
  4512. style1.fontSize = GetPix(11);
  4513. style1.alignment = TextAnchor.UpperLeft;
  4514. if (GUI.Button(new Rect(GetPix(5), GetPix(448), GetPix(23), GetPix(23)),
  4515. "<",
  4516. style3))
  4517. {
  4518. --pHandR[selectMaidIndex];
  4519. if (pHandR[selectMaidIndex] < 1)
  4520. {
  4521. pHandR[selectMaidIndex] = fingerRArray.GetLength(0);
  4522. }
  4523. for (int index2 = 0; index2 < 20; ++index2)
  4524. {
  4525. string[] strArray2 = fingerRArray[pHandR[selectMaidIndex] - 1, index2].Split(',');
  4526. Finger[selectMaidIndex, index2 + 20].localEulerAngles =
  4527. new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4528. }
  4529. isStop[selectMaidIndex] = true;
  4530. isLock[selectMaidIndex] = true;
  4531. for (int index2 = 0; index2 < 10; ++index2)
  4532. {
  4533. if ((index2 == 0 || index2 == 5) && mFinger[selectMaidIndex, index2 * 3])
  4534. {
  4535. mFinger[selectMaidIndex, index2 * 3].reset = true;
  4536. }
  4537. }
  4538. }
  4539. if (GUI.Button(new Rect(GetPix(55),
  4540. GetPix(448),
  4541. GetPix(23),
  4542. GetPix(23)),
  4543. ">",
  4544. style3))
  4545. {
  4546. ++pHandR[selectMaidIndex];
  4547. if (pHandR[selectMaidIndex] > fingerRArray.GetLength(0))
  4548. {
  4549. pHandR[selectMaidIndex] = 1;
  4550. }
  4551. for (int index2 = 0; index2 < 20; ++index2)
  4552. {
  4553. string[] strArray2 = fingerRArray[pHandR[selectMaidIndex] - 1, index2].Split(',');
  4554. Finger[selectMaidIndex, index2 + 20].localEulerAngles =
  4555. new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4556. }
  4557. isStop[selectMaidIndex] = true;
  4558. isLock[selectMaidIndex] = true;
  4559. for (int index2 = 0; index2 < 10; ++index2)
  4560. {
  4561. if ((index2 == 0 || index2 == 5) && mFinger[selectMaidIndex, index2 * 3])
  4562. {
  4563. mFinger[selectMaidIndex, index2 * 3].reset = true;
  4564. }
  4565. }
  4566. }
  4567. if (GUI.Button(new Rect(GetPix(85),
  4568. GetPix(448),
  4569. GetPix(23),
  4570. GetPix(23)),
  4571. "<",
  4572. style3))
  4573. {
  4574. --pHandL[selectMaidIndex];
  4575. if (pHandL[selectMaidIndex] < 1)
  4576. {
  4577. pHandL[selectMaidIndex] = fingerLArray.GetLength(0);
  4578. }
  4579. for (int index2 = 0; index2 < 20; ++index2)
  4580. {
  4581. string[] strArray2 = fingerLArray[pHandL[selectMaidIndex] - 1, index2].Split(',');
  4582. Finger[selectMaidIndex, index2].localEulerAngles =
  4583. new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4584. }
  4585. isStop[selectMaidIndex] = true;
  4586. isLock[selectMaidIndex] = true;
  4587. }
  4588. if (GUI.Button(new Rect(GetPix(135),
  4589. GetPix(448),
  4590. GetPix(23),
  4591. GetPix(23)),
  4592. ">",
  4593. style3))
  4594. {
  4595. ++pHandL[selectMaidIndex];
  4596. if (pHandL[selectMaidIndex] > fingerRArray.GetLength(0))
  4597. {
  4598. pHandL[selectMaidIndex] = 1;
  4599. }
  4600. for (int index2 = 0; index2 < 20; ++index2)
  4601. {
  4602. string[] strArray2 = fingerLArray[pHandL[selectMaidIndex] - 1, index2].Split(',');
  4603. Finger[selectMaidIndex, index2].localEulerAngles =
  4604. new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  4605. }
  4606. isStop[selectMaidIndex] = true;
  4607. isLock[selectMaidIndex] = true;
  4608. }
  4609. if (maidCnt <= 1)
  4610. {
  4611. GUI.enabled = false;
  4612. }
  4613. if (GUI.Button(new Rect(GetPix(45),
  4614. GetPix(504),
  4615. GetPix(22),
  4616. GetPix(20)),
  4617. ">",
  4618. style3))
  4619. {
  4620. ++copyIndex;
  4621. if (copyIndex - 1 == selectMaidIndex)
  4622. {
  4623. ++copyIndex;
  4624. }
  4625. if (copyIndex > maidCnt)
  4626. {
  4627. copyIndex = 0;
  4628. }
  4629. }
  4630. if (isCopy)
  4631. {
  4632. isCopy = false;
  4633. CopyIK2(maidArray[selectMaidIndex], selectMaidIndex, maidArray[copyIndex - 1], copyIndex - 1);
  4634. }
  4635. if (copyIndex == 0)
  4636. {
  4637. GUI.enabled = false;
  4638. }
  4639. if (GUI.Button(new Rect(GetPix(123),
  4640. GetPix(504),
  4641. GetPix(35),
  4642. GetPix(20)),
  4643. "決定",
  4644. style3))
  4645. {
  4646. CopyIK(maidArray[selectMaidIndex], selectMaidIndex, maidArray[copyIndex - 1], copyIndex - 1);
  4647. isCopy = true;
  4648. pHandL[selectMaidIndex] = pHandL[copyIndex - 1];
  4649. pHandR[selectMaidIndex] = pHandR[copyIndex - 1];
  4650. hanten[selectMaidIndex] = hanten[copyIndex - 1];
  4651. hantenn[selectMaidIndex] = hantenn[copyIndex - 1];
  4652. }
  4653. GUI.enabled = true;
  4654. if (poseCombo.isClickedComboButton || poseGroupCombo.isClickedComboButton)
  4655. {
  4656. GUI.enabled = false;
  4657. }
  4658. itemIndex2[selectMaidIndex] =
  4659. itemCombo.List(new Rect(GetPix(35),
  4660. GetPix(215),
  4661. GetPix(95),
  4662. GetPix(23)),
  4663. itemComboList[itemIndex[selectMaidIndex]].text,
  4664. itemComboList,
  4665. buttonStyle1,
  4666. "box",
  4667. listStyle3);
  4668. GUI.enabled = true;
  4669. if (poseGroupCombo.isClickedComboButton || isLock[selectMaidIndex])
  4670. {
  4671. GUI.enabled = false;
  4672. }
  4673. poseCombo.List(new Rect(GetPix(35),
  4674. GetPix(125),
  4675. GetPix(95),
  4676. GetPix(23)),
  4677. poseComboList[index6].text,
  4678. poseComboList,
  4679. buttonStyle1,
  4680. "box",
  4681. listStyle2);
  4682. if (!isLock[selectMaidIndex])
  4683. {
  4684. GUI.enabled = true;
  4685. }
  4686. int index7 = -1;
  4687. for (int index2 = 0; index2 < groupList.Count; ++index2)
  4688. {
  4689. if (poseIndex[selectMaidIndex] < (int)groupList[index2])
  4690. {
  4691. index7 = index2;
  4692. break;
  4693. }
  4694. }
  4695. if (index7 < 0)
  4696. {
  4697. index7 = groupList.Count;
  4698. }
  4699. if (GUI.Button(new Rect(GetPix(5), GetPix(95), GetPix(23), GetPix(23)),
  4700. "<",
  4701. style3))
  4702. {
  4703. isPoseInit = true;
  4704. if (!isLock[selectMaidIndex])
  4705. {
  4706. for (int index2 = 0; index2 < groupList.Count; ++index2)
  4707. {
  4708. if (index2 == 0 && poseIndex[selectMaidIndex] <= (int)groupList[index2])
  4709. {
  4710. poseIndex[selectMaidIndex] = poseIndex[selectMaidIndex] != 0 ? 0 : (int)groupList[groupList.Count - 1];
  4711. break;
  4712. }
  4713. if (index2 > 0 && poseIndex[selectMaidIndex] > (int)groupList[index2 - 1]
  4714. && poseIndex[selectMaidIndex] <= (int)groupList[index2])
  4715. {
  4716. poseIndex[selectMaidIndex] = (int)groupList[index2 - 1];
  4717. break;
  4718. }
  4719. }
  4720. if (poseIndex[selectMaidIndex] > (int)groupList[groupList.Count - 1])
  4721. {
  4722. poseIndex[selectMaidIndex] = (int)groupList[groupList.Count - 1];
  4723. }
  4724. if (maid && maid.Visible)
  4725. {
  4726. string[] strArray2 = poseArray[poseIndex[selectMaidIndex]].Split(',');
  4727. isStop[selectMaidIndex] = false;
  4728. poseCount[selectMaidIndex] = 20;
  4729. if (strArray2[0].Contains("_momi") || strArray2[0].Contains("paizuri_"))
  4730. {
  4731. maid.body0.MuneYureL(0.0f);
  4732. maid.body0.MuneYureR(0.0f);
  4733. }
  4734. else
  4735. {
  4736. maid.body0.MuneYureL(1f);
  4737. maid.body0.MuneYureR(1f);
  4738. }
  4739. if (strArray2[0].Contains("MultipleMaidsPose"))
  4740. {
  4741. string path = strArray2[0].Split('/')[1];
  4742. byte[] numArray = new byte[0];
  4743. try
  4744. {
  4745. using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
  4746. {
  4747. numArray = new byte[fileStream.Length];
  4748. fileStream.Read(numArray, 0, numArray.Length);
  4749. }
  4750. }
  4751. catch { }
  4752. if (0 < numArray.Length)
  4753. {
  4754. long hashCode = Path.GetFileName(path).GetHashCode();
  4755. maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
  4756. Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
  4757. {
  4758. Maid.AutoTwist.ShoulderL, Maid.AutoTwist.ShoulderR, Maid.AutoTwist.WristL,
  4759. Maid.AutoTwist.WristR, Maid.AutoTwist.ThighL, Maid.AutoTwist.ThighR
  4760. };
  4761. foreach (Maid.AutoTwist f_eType in autoTwistArray)
  4762. {
  4763. maid.SetAutoTwist(f_eType, true);
  4764. }
  4765. }
  4766. }
  4767. else if (strArray2[0].StartsWith("p") && int.TryParse(strArray2[0].Substring(1), out result))
  4768. {
  4769. loadPose[selectMaidIndex] = strArray2[0];
  4770. }
  4771. else if (!strArray2[0].StartsWith("dance_"))
  4772. {
  4773. maidArray[selectMaidIndex].CrossFade(strArray2[0] + ".anm", false, true, false, 0.0f, 1f);
  4774. }
  4775. else
  4776. {
  4777. if (!maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm"))
  4778. {
  4779. maid.body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
  4780. }
  4781. maid.body0.m_Bones.GetComponent<Animation>().Play(strArray2[0] + ".anm");
  4782. }
  4783. if (strArray2.Length > 1)
  4784. {
  4785. maid.body0.m_Bones.GetComponent<Animation>()[strArray2[0] + ".anm"].time = float.Parse(strArray2[1]);
  4786. isDanceStop = true;
  4787. if (strArray2.Length > 2)
  4788. {
  4789. transform = CMT.SearchObjName(maidArray[selectMaidIndex].body0.m_Bones.transform, "Bip01", true);
  4790. isPoseIti[selectMaidIndex] = true;
  4791. poseIti[selectMaidIndex] = maidArray[selectMaidIndex].transform.position;
  4792. maidArray[selectMaidIndex].transform.position = new Vector3(100f, 100f, 100f);
  4793. }
  4794. }
  4795. }
  4796. }
  4797. int index3 = -1;
  4798. for (int index2 = 0; index2 < groupList.Count; ++index2)
  4799. {
  4800. if (poseIndex[selectMaidIndex] < (int)groupList[index2])
  4801. {
  4802. index3 = index2;
  4803. break;
  4804. }
  4805. }
  4806. int length2 = (int)groupList[0];
  4807. int num2 = 0;
  4808. if (index3 > 0)
  4809. {
  4810. length2 = (int)groupList[index3] - (int)groupList[index3 - 1];
  4811. num2 = (int)groupList[index3 - 1];
  4812. }
  4813. if (index3 < 0)
  4814. {
  4815. index3 = groupList.Count;
  4816. length2 = poseArray.Length - (int)groupList[index3 - 1];
  4817. num2 = (int)groupList[index3 - 1];
  4818. }
  4819. poseComboList = new GUIContent[length2];
  4820. int index4 = 0;
  4821. for (int index2 = num2; index2 < num2 + length2; ++index2)
  4822. {
  4823. bool flag2 = false;
  4824. foreach (IniKey key in Preferences["pose"].Keys)
  4825. {
  4826. if (poseArray[index2] == key.Key)
  4827. {
  4828. IniKey iniKey = Preferences["pose"][key.Key];
  4829. if (iniKey.Value != null && iniKey.Value.ToString() != "" && iniKey.Value.ToString() != "del")
  4830. {
  4831. poseComboList[index4] =
  4832. new GUIContent((index4 + 1).ToString() + ":" + iniKey.Value.Split('_')[0]
  4833. + "                    " + key.Key);
  4834. flag2 = true;
  4835. }
  4836. }
  4837. }
  4838. if (!flag2)
  4839. {
  4840. poseComboList[index4] = new GUIContent((index4 + 1).ToString() + ":" + poseArray[index2]);
  4841. }
  4842. ++index4;
  4843. }
  4844. poseCombo.scrollPos = new Vector2(0.0f, 0.0f);
  4845. poseGroupCombo.selectedItemIndex = index3;
  4846. poseCombo.selectedItemIndex = 0;
  4847. }
  4848. if (GUI.Button(new Rect(GetPix(135),
  4849. GetPix(95),
  4850. GetPix(23),
  4851. GetPix(23)),
  4852. ">",
  4853. style3))
  4854. {
  4855. isPoseInit = true;
  4856. if (!isLock[selectMaidIndex])
  4857. {
  4858. int num2 = poseIndex[selectMaidIndex];
  4859. for (int index2 = 0; index2 < groupList.Count; ++index2)
  4860. {
  4861. if (poseIndex[selectMaidIndex] < (int)groupList[index2])
  4862. {
  4863. poseIndex[selectMaidIndex] = (int)groupList[index2];
  4864. break;
  4865. }
  4866. }
  4867. if (num2 == poseIndex[selectMaidIndex] && poseIndex[selectMaidIndex] >= (int)groupList[groupList.Count - 1])
  4868. {
  4869. poseIndex[selectMaidIndex] = 0;
  4870. }
  4871. if (maid && maid.Visible)
  4872. {
  4873. string[] strArray2 = poseArray[poseIndex[selectMaidIndex]].Split(',');
  4874. isStop[selectMaidIndex] = false;
  4875. poseCount[selectMaidIndex] = 20;
  4876. if (strArray2[0].Contains("_momi") || strArray2[0].Contains("paizuri_"))
  4877. {
  4878. maid.body0.MuneYureL(0.0f);
  4879. maid.body0.MuneYureR(0.0f);
  4880. }
  4881. else
  4882. {
  4883. maid.body0.MuneYureL(1f);
  4884. maid.body0.MuneYureR(1f);
  4885. }
  4886. if (strArray2[0].Contains("MultipleMaidsPose"))
  4887. {
  4888. string path = strArray2[0].Split('/')[1];
  4889. byte[] numArray = new byte[0];
  4890. try
  4891. {
  4892. using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
  4893. {
  4894. numArray = new byte[fileStream.Length];
  4895. fileStream.Read(numArray, 0, numArray.Length);
  4896. }
  4897. }
  4898. catch { }
  4899. if (0 < numArray.Length)
  4900. {
  4901. long hashCode = Path.GetFileName(path).GetHashCode();
  4902. maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
  4903. Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
  4904. {
  4905. Maid.AutoTwist.ShoulderL, Maid.AutoTwist.ShoulderR, Maid.AutoTwist.WristL,
  4906. Maid.AutoTwist.WristR, Maid.AutoTwist.ThighL, Maid.AutoTwist.ThighR
  4907. };
  4908. foreach (Maid.AutoTwist f_eType in autoTwistArray)
  4909. {
  4910. maid.SetAutoTwist(f_eType, true);
  4911. }
  4912. }
  4913. }
  4914. else if (strArray2[0].StartsWith("p") && int.TryParse(strArray2[0].Substring(1), out result))
  4915. {
  4916. loadPose[selectMaidIndex] = strArray2[0];
  4917. }
  4918. else if (!strArray2[0].StartsWith("dance_"))
  4919. {
  4920. maidArray[selectMaidIndex].CrossFade(strArray2[0] + ".anm", false, true, false, 0.0f, 1f);
  4921. }
  4922. else
  4923. {
  4924. if (!maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm"))
  4925. {
  4926. maid.body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
  4927. }
  4928. maid.body0.m_Bones.GetComponent<Animation>().Play(strArray2[0] + ".anm");
  4929. }
  4930. if (strArray2.Length > 1)
  4931. {
  4932. maid.body0.m_Bones.GetComponent<Animation>()[strArray2[0] + ".anm"].time = float.Parse(strArray2[1]);
  4933. isDanceStop = true;
  4934. if (strArray2.Length > 2)
  4935. {
  4936. transform = CMT.SearchObjName(maidArray[selectMaidIndex].body0.m_Bones.transform, "Bip01", true);
  4937. isPoseIti[selectMaidIndex] = true;
  4938. poseIti[selectMaidIndex] = maidArray[selectMaidIndex].transform.position;
  4939. maidArray[selectMaidIndex].transform.position = new Vector3(100f, 100f, 100f);
  4940. }
  4941. }
  4942. }
  4943. }
  4944. int index3 = -1;
  4945. for (int index2 = 0; index2 < groupList.Count; ++index2)
  4946. {
  4947. if (poseIndex[selectMaidIndex] < (int)groupList[index2])
  4948. {
  4949. index3 = index2;
  4950. break;
  4951. }
  4952. }
  4953. int length2 = (int)groupList[0];
  4954. int num3 = 0;
  4955. if (index3 > 0)
  4956. {
  4957. length2 = (int)groupList[index3] - (int)groupList[index3 - 1];
  4958. num3 = (int)groupList[index3 - 1];
  4959. }
  4960. if (index3 < 0)
  4961. {
  4962. index3 = groupList.Count;
  4963. length2 = poseArray.Length - (int)groupList[index3 - 1];
  4964. num3 = (int)groupList[index3 - 1];
  4965. }
  4966. poseComboList = new GUIContent[length2];
  4967. int index4 = 0;
  4968. for (int index2 = num3; index2 < num3 + length2; ++index2)
  4969. {
  4970. bool flag2 = false;
  4971. foreach (IniKey key in Preferences["pose"].Keys)
  4972. {
  4973. if (poseArray[index2] == key.Key)
  4974. {
  4975. IniKey iniKey = Preferences["pose"][key.Key];
  4976. if (iniKey.Value != null && iniKey.Value.ToString() != "" && iniKey.Value.ToString() != "del")
  4977. {
  4978. poseComboList[index4] =
  4979. new GUIContent((index4 + 1).ToString() + ":" + iniKey.Value.Split('_')[0]
  4980. + "                    " + key.Key);
  4981. flag2 = true;
  4982. }
  4983. }
  4984. }
  4985. if (!flag2)
  4986. {
  4987. poseComboList[index4] = new GUIContent((index4 + 1).ToString() + ":" + poseArray[index2]);
  4988. }
  4989. ++index4;
  4990. }
  4991. poseCombo.scrollPos = new Vector2(0.0f, 0.0f);
  4992. poseGroupCombo.selectedItemIndex = index3;
  4993. poseCombo.selectedItemIndex = 0;
  4994. }
  4995. poseGroupIndex =
  4996. poseGroupCombo.List(new Rect(GetPix(35),
  4997. GetPix(95),
  4998. GetPix(95),
  4999. GetPix(23)),
  5000. poseGroupComboList[index7].text,
  5001. poseGroupComboList,
  5002. buttonStyle2,
  5003. "box",
  5004. listStyle4);
  5005. if (poseGroupCombo.isClickedComboButton)
  5006. {
  5007. isCombo2 = true;
  5008. }
  5009. else if (isCombo2)
  5010. {
  5011. isCombo2 = false;
  5012. isPoseInit = true;
  5013. poseIndex[selectMaidIndex] = poseGroupIndex <= 0 ? 0 : (int)groupList[poseGroupIndex - 1];
  5014. if (!isLock[selectMaidIndex] && maid && maid.Visible)
  5015. {
  5016. string[] strArray2 = poseArray[poseIndex[selectMaidIndex]].Split(',');
  5017. isStop[selectMaidIndex] = false;
  5018. poseCount[selectMaidIndex] = 20;
  5019. if (strArray2[0].Contains("_momi") || strArray2[0].Contains("paizuri_"))
  5020. {
  5021. maid.body0.MuneYureL(0.0f);
  5022. maid.body0.MuneYureR(0.0f);
  5023. }
  5024. else
  5025. {
  5026. maid.body0.MuneYureL(1f);
  5027. maid.body0.MuneYureR(1f);
  5028. }
  5029. if (strArray2[0].Contains("MultipleMaidsPose"))
  5030. {
  5031. string path = strArray2[0].Split('/')[1];
  5032. byte[] numArray = new byte[0];
  5033. try
  5034. {
  5035. using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
  5036. {
  5037. numArray = new byte[fileStream.Length];
  5038. fileStream.Read(numArray, 0, numArray.Length);
  5039. }
  5040. }
  5041. catch { }
  5042. if (0 < numArray.Length)
  5043. {
  5044. long hashCode = Path.GetFileName(path).GetHashCode();
  5045. maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
  5046. Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
  5047. {
  5048. Maid.AutoTwist.ShoulderL, Maid.AutoTwist.ShoulderR, Maid.AutoTwist.WristL, Maid.AutoTwist.WristR,
  5049. Maid.AutoTwist.ThighL, Maid.AutoTwist.ThighR
  5050. };
  5051. foreach (Maid.AutoTwist f_eType in autoTwistArray)
  5052. {
  5053. maid.SetAutoTwist(f_eType, true);
  5054. }
  5055. }
  5056. }
  5057. else if (strArray2[0].StartsWith("p") && int.TryParse(strArray2[0].Substring(1), out result))
  5058. {
  5059. loadPose[selectMaidIndex] = strArray2[0];
  5060. }
  5061. else if (!strArray2[0].StartsWith("dance_"))
  5062. {
  5063. maidArray[selectMaidIndex].CrossFade(strArray2[0] + ".anm", false, true, false, 0.0f, 1f);
  5064. }
  5065. else
  5066. {
  5067. if (!maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm"))
  5068. {
  5069. maid.body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
  5070. }
  5071. maid.body0.m_Bones.GetComponent<Animation>().Play(strArray2[0] + ".anm");
  5072. }
  5073. if (strArray2.Length > 1)
  5074. {
  5075. maid.body0.m_Bones.GetComponent<Animation>()[strArray2[0] + ".anm"].time = float.Parse(strArray2[1]);
  5076. isDanceStop = true;
  5077. if (strArray2.Length > 2)
  5078. {
  5079. transform = CMT.SearchObjName(maidArray[selectMaidIndex].body0.m_Bones.transform, "Bip01", true);
  5080. isPoseIti[selectMaidIndex] = true;
  5081. poseIti[selectMaidIndex] = maidArray[selectMaidIndex].transform.position;
  5082. maidArray[selectMaidIndex].transform.position = new Vector3(100f, 100f, 100f);
  5083. }
  5084. }
  5085. }
  5086. int index2 = -1;
  5087. for (int index3 = 0; index3 < groupList.Count; ++index3)
  5088. {
  5089. if (poseIndex[selectMaidIndex] < (int)groupList[index3])
  5090. {
  5091. index2 = index3;
  5092. break;
  5093. }
  5094. }
  5095. int length2 = (int)groupList[0];
  5096. int num2 = 0;
  5097. if (index2 > 0)
  5098. {
  5099. length2 = (int)groupList[index2] - (int)groupList[index2 - 1];
  5100. num2 = (int)groupList[index2 - 1];
  5101. }
  5102. if (index2 < 0)
  5103. {
  5104. index2 = groupList.Count;
  5105. length2 = poseArray.Length - (int)groupList[index2 - 1];
  5106. num2 = (int)groupList[index2 - 1];
  5107. }
  5108. poseComboList = new GUIContent[length2];
  5109. int index4 = 0;
  5110. for (int index3 = num2; index3 < num2 + length2; ++index3)
  5111. {
  5112. bool flag2 = false;
  5113. foreach (IniKey key in Preferences["pose"].Keys)
  5114. {
  5115. if (poseArray[index3] == key.Key)
  5116. {
  5117. IniKey iniKey = Preferences["pose"][key.Key];
  5118. if (iniKey.Value != null && iniKey.Value.ToString() != "" && iniKey.Value.ToString() != "del")
  5119. {
  5120. poseComboList[index4] =
  5121. new GUIContent((index4 + 1).ToString() + ":" + iniKey.Value.Split('_')[0]
  5122. + "                    " + key.Key);
  5123. flag2 = true;
  5124. }
  5125. }
  5126. }
  5127. if (!flag2)
  5128. {
  5129. poseComboList[index4] = new GUIContent((index4 + 1).ToString() + ":" + poseArray[index3]);
  5130. }
  5131. ++index4;
  5132. }
  5133. poseCombo.scrollPos = new Vector2(0.0f, 0.0f);
  5134. poseGroupCombo.selectedItemIndex = index2;
  5135. poseCombo.selectedItemIndex = 0;
  5136. }
  5137. if (poseCombo.isClickedComboButton)
  5138. {
  5139. isCombo = true;
  5140. }
  5141. else if (isCombo)
  5142. {
  5143. isCombo = false;
  5144. isPoseInit = true;
  5145. poseIndex[selectMaidIndex] = poseGroupIndex <= 0
  5146. ? poseCombo.selectedItemIndex
  5147. : (int)groupList[poseGroupIndex - 1] + poseCombo.selectedItemIndex;
  5148. if (poseIndex[selectMaidIndex] == poseArray.Length)
  5149. {
  5150. poseIndex[selectMaidIndex] = 0;
  5151. }
  5152. if (!isLock[selectMaidIndex] && maid && maid.Visible)
  5153. {
  5154. string[] strArray2 = poseArray[poseIndex[selectMaidIndex]].Split(',');
  5155. isStop[selectMaidIndex] = false;
  5156. poseCount[selectMaidIndex] = 20;
  5157. if (strArray2[0].Contains("_momi") || strArray2[0].Contains("paizuri_"))
  5158. {
  5159. maid.body0.MuneYureL(0.0f);
  5160. maid.body0.MuneYureR(0.0f);
  5161. }
  5162. else
  5163. {
  5164. maid.body0.MuneYureL(1f);
  5165. maid.body0.MuneYureR(1f);
  5166. }
  5167. if (strArray2[0].Contains("MultipleMaidsPose"))
  5168. {
  5169. string path = strArray2[0].Split('/')[1];
  5170. byte[] numArray = new byte[0];
  5171. try
  5172. {
  5173. using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
  5174. {
  5175. numArray = new byte[fileStream.Length];
  5176. fileStream.Read(numArray, 0, numArray.Length);
  5177. }
  5178. }
  5179. catch { }
  5180. if (0 < numArray.Length)
  5181. {
  5182. long hashCode = Path.GetFileName(path).GetHashCode();
  5183. maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
  5184. Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
  5185. {
  5186. Maid.AutoTwist.ShoulderL, Maid.AutoTwist.ShoulderR, Maid.AutoTwist.WristL, Maid.AutoTwist.WristR,
  5187. Maid.AutoTwist.ThighL, Maid.AutoTwist.ThighR
  5188. };
  5189. foreach (Maid.AutoTwist f_eType in autoTwistArray)
  5190. {
  5191. maid.SetAutoTwist(f_eType, true);
  5192. }
  5193. }
  5194. }
  5195. else if (strArray2[0].StartsWith("p") && int.TryParse(strArray2[0].Substring(1), out result))
  5196. {
  5197. loadPose[selectMaidIndex] = strArray2[0];
  5198. }
  5199. else if (!strArray2[0].StartsWith("dance_"))
  5200. {
  5201. maidArray[selectMaidIndex].CrossFade(strArray2[0] + ".anm", false, true, false, 0.0f, 1f);
  5202. }
  5203. else
  5204. {
  5205. if (!maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm"))
  5206. {
  5207. maid.body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
  5208. }
  5209. maid.body0.m_Bones.GetComponent<Animation>().Play(strArray2[0] + ".anm");
  5210. }
  5211. if (strArray2.Length > 1)
  5212. {
  5213. maid.body0.m_Bones.GetComponent<Animation>()[strArray2[0] + ".anm"].time = float.Parse(strArray2[1]);
  5214. isDanceStop = true;
  5215. if (strArray2.Length > 2)
  5216. {
  5217. transform = CMT.SearchObjName(maidArray[selectMaidIndex].body0.m_Bones.transform, "Bip01", true);
  5218. isPoseIti[selectMaidIndex] = true;
  5219. poseIti[selectMaidIndex] = maidArray[selectMaidIndex].transform.position;
  5220. maidArray[selectMaidIndex].transform.position = new Vector3(100f, 100f, 100f);
  5221. }
  5222. }
  5223. }
  5224. }
  5225. if (itemCombo.isClickedComboButton)
  5226. {
  5227. isCombo3 = true;
  5228. }
  5229. else if (isCombo3)
  5230. {
  5231. isCombo3 = false;
  5232. strArray1 = new string[2];
  5233. string[] strArray2 = itemArray[itemIndex2[selectMaidIndex]].Split(',');
  5234. if (itemIndex2[selectMaidIndex] > 13)
  5235. {
  5236. strArray2 = itemArray[itemIndex2[selectMaidIndex] + 1].Split(',');
  5237. }
  5238. maid.DelProp(MPN.handitem, true);
  5239. bool flag2 = false;
  5240. if (itemIndex2[selectMaidIndex] == 0)
  5241. {
  5242. maid.DelProp(MPN.accvag, true);
  5243. maid.DelProp(MPN.accanl, true);
  5244. }
  5245. if (itemIndex2[selectMaidIndex] == 12 || itemIndex2[selectMaidIndex] == 13)
  5246. {
  5247. flag2 = true;
  5248. }
  5249. if (!flag2)
  5250. {
  5251. maid.DelProp(MPN.kousoku_upper, true);
  5252. maid.DelProp(MPN.kousoku_lower, true);
  5253. }
  5254. if (strArray2[0] != "")
  5255. {
  5256. maid.SetProp(strArray2[0], strArray2[1], 0, true, false);
  5257. }
  5258. if (itemIndex2[selectMaidIndex] == 12)
  5259. {
  5260. string[] strArray3 = itemArray[itemIndex2[selectMaidIndex] - 1].Split(',');
  5261. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  5262. }
  5263. if (itemIndex2[selectMaidIndex] == 13)
  5264. {
  5265. string[] strArray3 = itemArray[itemIndex2[selectMaidIndex] + 1].Split(',');
  5266. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  5267. }
  5268. if (itemIndex2[selectMaidIndex] == 23)
  5269. {
  5270. string[] strArray3 = itemArray[itemIndex2[selectMaidIndex]].Split(',');
  5271. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  5272. cafeFlg[selectMaidIndex] = true;
  5273. }
  5274. maid.AllProcPropSeqStart();
  5275. itemCombo.selectedItemIndex = itemIndex2[selectMaidIndex];
  5276. itemIndex[selectMaidIndex] = itemIndex2[selectMaidIndex];
  5277. }
  5278. }
  5279. else
  5280. {
  5281. isWear = GUI.Toggle(new Rect(GetPix(5),
  5282. GetPix(98),
  5283. GetPix(70),
  5284. GetPix(20)),
  5285. isWear,
  5286. "トップス",
  5287. style4);
  5288. isSkirt = GUI.Toggle(new Rect(GetPix(90),
  5289. GetPix(98),
  5290. GetPix(70),
  5291. GetPix(20)),
  5292. isSkirt,
  5293. "ボトムス",
  5294. style4);
  5295. isBra = GUI.Toggle(new Rect(GetPix(5),
  5296. GetPix(123),
  5297. GetPix(80),
  5298. GetPix(20)),
  5299. isBra,
  5300. "ブラジャー",
  5301. style4);
  5302. isPanz = GUI.Toggle(new Rect(GetPix(90),
  5303. GetPix(123),
  5304. GetPix(60),
  5305. GetPix(20)),
  5306. isPanz,
  5307. "パンツ",
  5308. style4);
  5309. isHeadset = GUI.Toggle(new Rect(GetPix(5),
  5310. GetPix(148),
  5311. GetPix(70),
  5312. GetPix(20)),
  5313. isHeadset,
  5314. "ヘッド",
  5315. style4);
  5316. isMegane = GUI.Toggle(new Rect(GetPix(90),
  5317. GetPix(148),
  5318. GetPix(70),
  5319. GetPix(20)),
  5320. isMegane,
  5321. "メガネ",
  5322. style4);
  5323. isAccUde = GUI.Toggle(new Rect(GetPix(5),
  5324. GetPix(173),
  5325. GetPix(40),
  5326. GetPix(20)),
  5327. isAccUde,
  5328. "腕",
  5329. style4);
  5330. isGlove = GUI.Toggle(new Rect(GetPix(45),
  5331. GetPix(173),
  5332. GetPix(40),
  5333. GetPix(20)),
  5334. isGlove,
  5335. "手袋",
  5336. style4);
  5337. isAccSenaka = GUI.Toggle(new Rect(GetPix(97),
  5338. GetPix(173),
  5339. GetPix(40),
  5340. GetPix(20)),
  5341. isAccSenaka,
  5342. "背中",
  5343. style4);
  5344. isStkg = GUI.Toggle(new Rect(GetPix(5),
  5345. GetPix(198),
  5346. GetPix(70),
  5347. GetPix(20)),
  5348. isStkg,
  5349. "ソックス",
  5350. style4);
  5351. isShoes = GUI.Toggle(new Rect(GetPix(90),
  5352. GetPix(198),
  5353. GetPix(70),
  5354. GetPix(20)),
  5355. isShoes,
  5356. "シューズ",
  5357. style4);
  5358. mekure1[selectMaidIndex] =
  5359. GUI.Toggle(new Rect(GetPix(5),
  5360. GetPix(223),
  5361. GetPix(62),
  5362. GetPix(20)),
  5363. mekure1[selectMaidIndex],
  5364. "めくれ前",
  5365. style4);
  5366. mekure2[selectMaidIndex] =
  5367. GUI.Toggle(new Rect(GetPix(67),
  5368. GetPix(223),
  5369. GetPix(40),
  5370. GetPix(20)),
  5371. mekure2[selectMaidIndex],
  5372. "後ろ",
  5373. style4);
  5374. zurasi[selectMaidIndex] =
  5375. GUI.Toggle(new Rect(GetPix(105),
  5376. GetPix(223),
  5377. GetPix(50),
  5378. GetPix(20)),
  5379. zurasi[selectMaidIndex],
  5380. "ずらし",
  5381. style4);
  5382. }
  5383. bool state = GUI.enabled;
  5384. GUI.enabled = true;
  5385. GUI.DragWindow();
  5386. GUI.enabled = state;
  5387. }
  5388. private void FaceWindow(int winID)
  5389. {
  5390. GUIStyle style1 = "label";
  5391. style1.fontSize = GetPix(12);
  5392. style1.alignment = TextAnchor.UpperLeft;
  5393. GUIStyle style2 = "label";
  5394. style2.fontSize = GetPix(11);
  5395. style2.alignment = TextAnchor.UpperLeft;
  5396. GUIStyle style3 = "button";
  5397. style3.fontSize = GetPix(20);
  5398. GUIStyle buttonStyle = "button";
  5399. buttonStyle.fontSize = GetPix(12);
  5400. buttonStyle.alignment = TextAnchor.MiddleLeft;
  5401. GUIStyle style4 = new GUIStyle("toggle")
  5402. {
  5403. fontSize = GetPix(13)
  5404. };
  5405. CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
  5406. if (!faceInitFlg)
  5407. {
  5408. listStyle2.normal.textColor = Color.white;
  5409. listStyle2.normal.background = MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.5f));
  5410. listStyle2.onHover.background = listStyle2.hover.background = new Texture2D(2, 2);
  5411. listStyle2.padding.left = listStyle2.padding.right = listStyle2.padding.top = listStyle2.padding.bottom = GetPix(0);
  5412. listStyle2.fontSize = GetPix(12);
  5413. faceCombo.selectedItemIndex = 0;
  5414. List<string> stringList = new List<string>(300);
  5415. stringList.AddRange(faceArray);
  5416. for (int index = 1; index < 300; ++index)
  5417. {
  5418. IniKey iniKey = Preferences["face"]["f" + index];
  5419. if (iniKey.Value != null)
  5420. {
  5421. string[] strArray = iniKey.Value.Split(':');
  5422. if (strArray.Length > 1)
  5423. {
  5424. stringList.Add(strArray[0] + "               :" + index + ":" + strArray[1]);
  5425. }
  5426. }
  5427. else
  5428. {
  5429. break;
  5430. }
  5431. }
  5432. faceCombo.selectedItemIndex = 0;
  5433. faceComboList = new GUIContent[stringList.ToArray().Length];
  5434. for (int index = 0; index < stringList.ToArray().Length; ++index)
  5435. {
  5436. faceComboList[index] = new GUIContent(stringList.ToArray()[index]);
  5437. }
  5438. faceInitFlg = true;
  5439. }
  5440. if (faceCombo.isClickedComboButton)
  5441. {
  5442. GUI.enabled = false;
  5443. }
  5444. if (sceneLevel == 3 || sceneLevel == 5 || isF6)
  5445. {
  5446. if (!isF6)
  5447. {
  5448. bool flag = true;
  5449. if (faceFlg || poseFlg || sceneFlg || kankyoFlg || kankyo2Flg)
  5450. {
  5451. flag = false;
  5452. }
  5453. if (GUI.Toggle(new Rect(GetPix(2),
  5454. GetPix(2),
  5455. GetPix(39),
  5456. GetPix(20)),
  5457. flag,
  5458. "配置",
  5459. style4))
  5460. {
  5461. faceFlg = false;
  5462. poseFlg = false;
  5463. sceneFlg = false;
  5464. kankyoFlg = false;
  5465. kankyo2Flg = false;
  5466. bGui = true;
  5467. }
  5468. }
  5469. if (!yotogiFlg && GUI.Toggle(new Rect(GetPix(41),
  5470. GetPix(2),
  5471. GetPix(39),
  5472. GetPix(20)),
  5473. poseFlg,
  5474. "操作",
  5475. style4))
  5476. {
  5477. poseFlg = true;
  5478. faceFlg = false;
  5479. sceneFlg = false;
  5480. kankyoFlg = false;
  5481. kankyo2Flg = false;
  5482. }
  5483. if (GUI.Toggle(new Rect(GetPix(80), GetPix(2), GetPix(39), GetPix(20)),
  5484. faceFlg,
  5485. "表情",
  5486. style4))
  5487. {
  5488. faceFlg = true;
  5489. poseFlg = false;
  5490. sceneFlg = false;
  5491. kankyoFlg = false;
  5492. kankyo2Flg = false;
  5493. if (!faceFlg2)
  5494. {
  5495. isFaceInit = true;
  5496. faceFlg2 = true;
  5497. maidArray[selectMaidIndex].boMabataki = false;
  5498. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  5499. }
  5500. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  5501. }
  5502. if (GUI.Toggle(new Rect(GetPix(119), GetPix(2), GetPix(39), GetPix(20)),
  5503. kankyoFlg,
  5504. "環境",
  5505. style4))
  5506. {
  5507. poseFlg = false;
  5508. faceFlg = false;
  5509. sceneFlg = false;
  5510. kankyoFlg = true;
  5511. kankyo2Flg = false;
  5512. }
  5513. if (!line1)
  5514. {
  5515. line1 = MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.3f));
  5516. line2 = MakeTex(2, 2, new Color(0.7f, 0.7f, 0.7f, 0.6f));
  5517. }
  5518. GUI.DrawTexture(new Rect(GetPix(5), GetPix(20), GetPix(160), 2f), line1);
  5519. GUI.DrawTexture(new Rect(GetPix(5), GetPix(20), GetPix(160), 1f), line2);
  5520. style1.fontSize = GetPix(13);
  5521. style1.alignment = TextAnchor.MiddleCenter;
  5522. GUI.Label(new Rect(GetPix(125), GetPix(25), GetPix(40), GetPix(25)),
  5523. string.Concat(selectMaidIndex + 1),
  5524. style1);
  5525. style1.fontSize = GetPix(11);
  5526. style1.alignment = TextAnchor.UpperLeft;
  5527. }
  5528. if (sceneLevel > 0)
  5529. {
  5530. int selectMaidIndex = this.selectMaidIndex;
  5531. if (sceneLevel == 3 || sceneLevel == 5 && (isF7 || maidCnt > 1))
  5532. {
  5533. if (GUI.Button(new Rect(GetPix(5),
  5534. GetPix(53),
  5535. GetPix(23),
  5536. GetPix(32)),
  5537. "<",
  5538. style3))
  5539. {
  5540. --this.selectMaidIndex;
  5541. if (this.selectMaidIndex < 0)
  5542. {
  5543. this.selectMaidIndex = selectList.Count - 1;
  5544. }
  5545. isFaceInit = true;
  5546. faceFlg = true;
  5547. copyIndex = 0;
  5548. faceCombo.selectedItemIndex = faceIndex[this.selectMaidIndex];
  5549. }
  5550. if (GUI.Button(new Rect(GetPix(135),
  5551. GetPix(53),
  5552. GetPix(23),
  5553. GetPix(32)),
  5554. ">",
  5555. style3))
  5556. {
  5557. ++this.selectMaidIndex;
  5558. if (selectList.Count <= this.selectMaidIndex)
  5559. {
  5560. this.selectMaidIndex = 0;
  5561. }
  5562. isFaceInit = true;
  5563. faceFlg = true;
  5564. copyIndex = 0;
  5565. faceCombo.selectedItemIndex = faceIndex[this.selectMaidIndex];
  5566. }
  5567. }
  5568. if (maidArray[this.selectMaidIndex].GetThumIcon())
  5569. {
  5570. GUI.DrawTexture(new Rect(GetPix(30),
  5571. GetPix(25),
  5572. GetPix(60),
  5573. GetPix(60)),
  5574. maidArray[this.selectMaidIndex].GetThumIcon());
  5575. }
  5576. GUI.Label(new Rect(GetPix(90), GetPix(50), GetPix(140), GetPix(210)),
  5577. maidArray[this.selectMaidIndex].status.lastName + "\n" + maidArray[this.selectMaidIndex].status.firstName,
  5578. style1);
  5579. bool flag = GUI.Toggle(new Rect(GetPix(90),
  5580. GetPix(25),
  5581. GetPix(50),
  5582. GetPix(16)),
  5583. isShosai,
  5584. "詳細",
  5585. style4);
  5586. if (flag != isShosai)
  5587. {
  5588. isShosai = flag;
  5589. if (isShosai)
  5590. {
  5591. Preferences["config"]["hair_details"].Value = "true";
  5592. }
  5593. else
  5594. {
  5595. Preferences["config"]["hair_details"].Value = "false";
  5596. }
  5597. SaveConfig();
  5598. }
  5599. if (isFace[selectMaidIndex])
  5600. {
  5601. if (GUI.Button(new Rect(GetPix(5),
  5602. GetPix(25),
  5603. GetPix(23),
  5604. GetPix(23)),
  5605. "有",
  5606. style3))
  5607. {
  5608. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  5609. maidArray[selectMaidIndex].boMabataki = false;
  5610. isFace[selectMaidIndex] = false;
  5611. }
  5612. maidArray[selectMaidIndex].boMabataki = false;
  5613. }
  5614. else
  5615. {
  5616. if (GUI.Button(new Rect(GetPix(5),
  5617. GetPix(25),
  5618. GetPix(23),
  5619. GetPix(23)),
  5620. "無",
  5621. style3))
  5622. {
  5623. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  5624. maidArray[selectMaidIndex].boMabataki = false;
  5625. morph.EyeMabataki = 0.0f;
  5626. isFaceInit = true;
  5627. isFace[selectMaidIndex] = true;
  5628. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  5629. }
  5630. GUI.enabled = false;
  5631. maidArray[selectMaidIndex].boMabataki = true;
  5632. }
  5633. }
  5634. if (GUI.Button(new Rect(GetPix(5), GetPix(95), GetPix(23), GetPix(23)),
  5635. "<",
  5636. style3))
  5637. {
  5638. --faceIndex[selectMaidIndex];
  5639. if (faceIndex[selectMaidIndex] <= -1)
  5640. {
  5641. faceIndex[selectMaidIndex] = faceComboList.Length - 1;
  5642. }
  5643. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  5644. maidArray[selectMaidIndex].boMabataki = false;
  5645. morph.EyeMabataki = 0.0f;
  5646. if (faceIndex[selectMaidIndex] < faceArray.Length)
  5647. {
  5648. morph.MulBlendValues(faceArray[faceIndex[selectMaidIndex]], 1f);
  5649. }
  5650. else
  5651. {
  5652. float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  5653. float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  5654. if (!isVR)
  5655. {
  5656. maidArray[selectMaidIndex].boMabataki = false;
  5657. }
  5658. string[] strArray = faceComboList[faceIndex[selectMaidIndex]].text.Split(':')[2].Split(',');
  5659. fieldValue2[(int)morph.hash["eyeclose"]] = float.Parse(strArray[0]);
  5660. fieldValue2[(int)morph.hash["eyeclose2"]] = float.Parse(strArray[1]);
  5661. fieldValue2[(int)morph.hash["eyeclose3"]] = float.Parse(strArray[2]);
  5662. fieldValue2[(int)morph.hash["eyeclose6"]] = float.Parse(strArray[3]);
  5663. fieldValue1[(int)morph.hash["hitomih"]] = float.Parse(strArray[4]);
  5664. fieldValue1[(int)morph.hash["hitomis"]] = float.Parse(strArray[5]);
  5665. fieldValue1[(int)morph.hash["mayuha"]] = float.Parse(strArray[6]);
  5666. fieldValue1[(int)morph.hash["mayuup"]] = float.Parse(strArray[7]);
  5667. fieldValue1[(int)morph.hash["mayuv"]] = float.Parse(strArray[8]);
  5668. fieldValue1[(int)morph.hash["mayuvhalf"]] = float.Parse(strArray[9]);
  5669. fieldValue1[(int)morph.hash["moutha"]] = float.Parse(strArray[10]);
  5670. fieldValue1[(int)morph.hash["mouths"]] = float.Parse(strArray[11]);
  5671. fieldValue1[(int)morph.hash["mouthdw"]] = float.Parse(strArray[12]);
  5672. fieldValue1[(int)morph.hash["mouthup"]] = float.Parse(strArray[13]);
  5673. fieldValue1[(int)morph.hash["tangout"]] = float.Parse(strArray[14]);
  5674. fieldValue1[(int)morph.hash["tangup"]] = float.Parse(strArray[15]);
  5675. fieldValue1[(int)morph.hash["eyebig"]] = float.Parse(strArray[16]);
  5676. fieldValue2[(int)morph.hash["eyeclose5"]] = float.Parse(strArray[17]);
  5677. fieldValue1[(int)morph.hash["mayuw"]] = float.Parse(strArray[18]);
  5678. fieldValue1[(int)morph.hash["mouthhe"]] = float.Parse(strArray[19]);
  5679. fieldValue1[(int)morph.hash["mouthc"]] = float.Parse(strArray[20]);
  5680. fieldValue1[(int)morph.hash["mouthi"]] = float.Parse(strArray[21]);
  5681. fieldValue1[(int)morph.hash["mouthuphalf"]] = float.Parse(strArray[22]) + 0.01f;
  5682. try
  5683. {
  5684. fieldValue1[(int)morph.hash["tangopen"]] = float.Parse(strArray[23]);
  5685. }
  5686. catch { }
  5687. if (float.Parse(strArray[24]) == 1.0)
  5688. {
  5689. fieldValue1[(int)morph.hash["namida"]] = 1f;
  5690. }
  5691. else
  5692. {
  5693. fieldValue1[(int)morph.hash["namida"]] = 0.0f;
  5694. }
  5695. if (float.Parse(strArray[25]) == 1.0)
  5696. {
  5697. fieldValue1[(int)morph.hash["tear1"]] = 1f;
  5698. }
  5699. else
  5700. {
  5701. fieldValue1[(int)morph.hash["tear1"]] = 0.0f;
  5702. }
  5703. if (float.Parse(strArray[26]) == 1.0)
  5704. {
  5705. fieldValue1[(int)morph.hash["tear2"]] = 1f;
  5706. }
  5707. else
  5708. {
  5709. fieldValue1[(int)morph.hash["tear2"]] = 0.0f;
  5710. }
  5711. if (float.Parse(strArray[27]) == 1.0)
  5712. {
  5713. fieldValue1[(int)morph.hash["tear3"]] = 1f;
  5714. }
  5715. else
  5716. {
  5717. fieldValue1[(int)morph.hash["tear3"]] = 0.0f;
  5718. }
  5719. if (float.Parse(strArray[28]) == 1.0)
  5720. {
  5721. fieldValue1[(int)morph.hash["shock"]] = 1f;
  5722. }
  5723. else
  5724. {
  5725. fieldValue1[(int)morph.hash["shock"]] = 0.0f;
  5726. }
  5727. if (float.Parse(strArray[29]) == 1.0)
  5728. {
  5729. fieldValue1[(int)morph.hash["yodare"]] = 1f;
  5730. }
  5731. else
  5732. {
  5733. fieldValue1[(int)morph.hash["yodare"]] = 0.0f;
  5734. }
  5735. if (float.Parse(strArray[30]) == 1.0)
  5736. {
  5737. fieldValue1[(int)morph.hash["hoho"]] = 0.5f;
  5738. }
  5739. else
  5740. {
  5741. fieldValue1[(int)morph.hash["hoho"]] = 0.0f;
  5742. }
  5743. if (float.Parse(strArray[31]) == 1.0)
  5744. {
  5745. fieldValue1[(int)morph.hash["hoho2"]] = 0.5f;
  5746. }
  5747. else
  5748. {
  5749. fieldValue1[(int)morph.hash["hoho2"]] = 0.0f;
  5750. }
  5751. if (float.Parse(strArray[32]) == 1.0)
  5752. {
  5753. fieldValue1[(int)morph.hash["hohos"]] = 1f;
  5754. }
  5755. else
  5756. {
  5757. fieldValue1[(int)morph.hash["hohos"]] = 0.0f;
  5758. }
  5759. if (float.Parse(strArray[33]) == 1.0)
  5760. {
  5761. fieldValue1[(int)morph.hash["hohol"]] = 1f;
  5762. }
  5763. else
  5764. {
  5765. fieldValue1[(int)morph.hash["hohol"]] = 0.0f;
  5766. }
  5767. if (float.Parse(strArray[34]) == 1.0)
  5768. {
  5769. fieldValue1[(int)morph.hash["toothoff"]] = 1f;
  5770. }
  5771. else
  5772. {
  5773. fieldValue1[(int)morph.hash["toothoff"]] = 0.0f;
  5774. }
  5775. if (strArray.Length > 35)
  5776. {
  5777. morph.boNoseFook = float.Parse(strArray[35]) == 1.0;
  5778. }
  5779. }
  5780. maidArray[selectMaidIndex].body0.Face.morph.FixBlendValues_Face();
  5781. isFaceInit = true;
  5782. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  5783. }
  5784. if (GUI.Button(new Rect(GetPix(135), GetPix(95), GetPix(23), GetPix(23)),
  5785. ">",
  5786. style3))
  5787. {
  5788. ++faceIndex[selectMaidIndex];
  5789. if (faceIndex[selectMaidIndex] == faceComboList.Length)
  5790. {
  5791. faceIndex[selectMaidIndex] = 0;
  5792. }
  5793. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  5794. maidArray[selectMaidIndex].boMabataki = false;
  5795. morph.EyeMabataki = 0.0f;
  5796. if (faceIndex[selectMaidIndex] < faceArray.Length)
  5797. {
  5798. morph.MulBlendValues(faceArray[faceIndex[selectMaidIndex]], 1f);
  5799. }
  5800. else
  5801. {
  5802. float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  5803. float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  5804. if (!isVR)
  5805. {
  5806. maidArray[selectMaidIndex].boMabataki = false;
  5807. }
  5808. string[] strArray = faceComboList[faceIndex[selectMaidIndex]].text.Split(':')[2].Split(',');
  5809. fieldValue2[(int)morph.hash["eyeclose"]] = float.Parse(strArray[0]);
  5810. fieldValue2[(int)morph.hash["eyeclose2"]] = float.Parse(strArray[1]);
  5811. fieldValue2[(int)morph.hash["eyeclose3"]] = float.Parse(strArray[2]);
  5812. fieldValue2[(int)morph.hash["eyeclose6"]] = float.Parse(strArray[3]);
  5813. fieldValue1[(int)morph.hash["hitomih"]] = float.Parse(strArray[4]);
  5814. fieldValue1[(int)morph.hash["hitomis"]] = float.Parse(strArray[5]);
  5815. fieldValue1[(int)morph.hash["mayuha"]] = float.Parse(strArray[6]);
  5816. fieldValue1[(int)morph.hash["mayuup"]] = float.Parse(strArray[7]);
  5817. fieldValue1[(int)morph.hash["mayuv"]] = float.Parse(strArray[8]);
  5818. fieldValue1[(int)morph.hash["mayuvhalf"]] = float.Parse(strArray[9]);
  5819. fieldValue1[(int)morph.hash["moutha"]] = float.Parse(strArray[10]);
  5820. fieldValue1[(int)morph.hash["mouths"]] = float.Parse(strArray[11]);
  5821. fieldValue1[(int)morph.hash["mouthdw"]] = float.Parse(strArray[12]);
  5822. fieldValue1[(int)morph.hash["mouthup"]] = float.Parse(strArray[13]);
  5823. fieldValue1[(int)morph.hash["tangout"]] = float.Parse(strArray[14]);
  5824. fieldValue1[(int)morph.hash["tangup"]] = float.Parse(strArray[15]);
  5825. fieldValue1[(int)morph.hash["eyebig"]] = float.Parse(strArray[16]);
  5826. fieldValue2[(int)morph.hash["eyeclose5"]] = float.Parse(strArray[17]);
  5827. fieldValue1[(int)morph.hash["mayuw"]] = float.Parse(strArray[18]);
  5828. fieldValue1[(int)morph.hash["mouthhe"]] = float.Parse(strArray[19]);
  5829. fieldValue1[(int)morph.hash["mouthc"]] = float.Parse(strArray[20]);
  5830. fieldValue1[(int)morph.hash["mouthi"]] = float.Parse(strArray[21]);
  5831. fieldValue1[(int)morph.hash["mouthuphalf"]] = float.Parse(strArray[22]) + 0.01f;
  5832. try
  5833. {
  5834. fieldValue1[(int)morph.hash["tangopen"]] = float.Parse(strArray[23]);
  5835. }
  5836. catch { }
  5837. if (float.Parse(strArray[24]) == 1.0)
  5838. {
  5839. fieldValue1[(int)morph.hash["namida"]] = 1f;
  5840. }
  5841. else
  5842. {
  5843. fieldValue1[(int)morph.hash["namida"]] = 0.0f;
  5844. }
  5845. if (float.Parse(strArray[25]) == 1.0)
  5846. {
  5847. fieldValue1[(int)morph.hash["tear1"]] = 1f;
  5848. }
  5849. else
  5850. {
  5851. fieldValue1[(int)morph.hash["tear1"]] = 0.0f;
  5852. }
  5853. if (float.Parse(strArray[26]) == 1.0)
  5854. {
  5855. fieldValue1[(int)morph.hash["tear2"]] = 1f;
  5856. }
  5857. else
  5858. {
  5859. fieldValue1[(int)morph.hash["tear2"]] = 0.0f;
  5860. }
  5861. if (float.Parse(strArray[27]) == 1.0)
  5862. {
  5863. fieldValue1[(int)morph.hash["tear3"]] = 1f;
  5864. }
  5865. else
  5866. {
  5867. fieldValue1[(int)morph.hash["tear3"]] = 0.0f;
  5868. }
  5869. if (float.Parse(strArray[28]) == 1.0)
  5870. {
  5871. fieldValue1[(int)morph.hash["shock"]] = 1f;
  5872. }
  5873. else
  5874. {
  5875. fieldValue1[(int)morph.hash["shock"]] = 0.0f;
  5876. }
  5877. if (float.Parse(strArray[29]) == 1.0)
  5878. {
  5879. fieldValue1[(int)morph.hash["yodare"]] = 1f;
  5880. }
  5881. else
  5882. {
  5883. fieldValue1[(int)morph.hash["yodare"]] = 0.0f;
  5884. }
  5885. if (float.Parse(strArray[30]) == 1.0)
  5886. {
  5887. fieldValue1[(int)morph.hash["hoho"]] = 0.5f;
  5888. }
  5889. else
  5890. {
  5891. fieldValue1[(int)morph.hash["hoho"]] = 0.0f;
  5892. }
  5893. if (float.Parse(strArray[31]) == 1.0)
  5894. {
  5895. fieldValue1[(int)morph.hash["hoho2"]] = 0.5f;
  5896. }
  5897. else
  5898. {
  5899. fieldValue1[(int)morph.hash["hoho2"]] = 0.0f;
  5900. }
  5901. if (float.Parse(strArray[32]) == 1.0)
  5902. {
  5903. fieldValue1[(int)morph.hash["hohos"]] = 1f;
  5904. }
  5905. else
  5906. {
  5907. fieldValue1[(int)morph.hash["hohos"]] = 0.0f;
  5908. }
  5909. if (float.Parse(strArray[33]) == 1.0)
  5910. {
  5911. fieldValue1[(int)morph.hash["hohol"]] = 1f;
  5912. }
  5913. else
  5914. {
  5915. fieldValue1[(int)morph.hash["hohol"]] = 0.0f;
  5916. }
  5917. if (float.Parse(strArray[34]) == 1.0)
  5918. {
  5919. fieldValue1[(int)morph.hash["toothoff"]] = 1f;
  5920. }
  5921. else
  5922. {
  5923. fieldValue1[(int)morph.hash["toothoff"]] = 0.0f;
  5924. }
  5925. if (strArray.Length > 35)
  5926. {
  5927. morph.boNoseFook = float.Parse(strArray[35]) == 1.0;
  5928. }
  5929. }
  5930. maidArray[selectMaidIndex].body0.Face.morph.FixBlendValues_Face();
  5931. isFaceInit = true;
  5932. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  5933. }
  5934. if (!isShosai)
  5935. {
  5936. GUI.Label(new Rect(GetPix(8), GetPix(130), GetPix(100), GetPix(25)),
  5937. "目の開閉",
  5938. style1);
  5939. eyeclose = GUI.HorizontalSlider(new Rect(GetPix(8),
  5940. GetPix(150),
  5941. GetPix(70),
  5942. GetPix(20)),
  5943. eyeclose,
  5944. 0.0f,
  5945. 1f);
  5946. GUI.Label(new Rect(GetPix(88), GetPix(130), GetPix(100), GetPix(25)),
  5947. "にっこり",
  5948. style1);
  5949. eyeclose2 = GUI.HorizontalSlider(new Rect(GetPix(88),
  5950. GetPix(150),
  5951. GetPix(70),
  5952. GetPix(20)),
  5953. eyeclose2,
  5954. 0.0f,
  5955. 1f);
  5956. GUI.Label(new Rect(GetPix(8), GetPix(170), GetPix(100), GetPix(25)),
  5957. "ジト目",
  5958. style1);
  5959. eyeclose3 = GUI.HorizontalSlider(new Rect(GetPix(8),
  5960. GetPix(190),
  5961. GetPix(70),
  5962. GetPix(20)),
  5963. eyeclose3,
  5964. 0.0f,
  5965. 1f);
  5966. GUI.Label(new Rect(GetPix(88), GetPix(170), GetPix(100), GetPix(25)),
  5967. "ウインク",
  5968. style1);
  5969. eyeclose6 = GUI.HorizontalSlider(new Rect(GetPix(88),
  5970. GetPix(190),
  5971. GetPix(70),
  5972. GetPix(20)),
  5973. eyeclose6,
  5974. 0.0f,
  5975. 1f);
  5976. GUI.Label(new Rect(GetPix(8), GetPix(210), GetPix(100), GetPix(25)),
  5977. "ハイライト",
  5978. style1);
  5979. hitomih = GUI.HorizontalSlider(new Rect(GetPix(8),
  5980. GetPix(230),
  5981. GetPix(70),
  5982. GetPix(20)),
  5983. hitomih,
  5984. 0.0f,
  5985. 2f);
  5986. GUI.Label(new Rect(GetPix(88), GetPix(210), GetPix(100), GetPix(25)),
  5987. "瞳サイズ",
  5988. style1);
  5989. hitomis = GUI.HorizontalSlider(new Rect(GetPix(88),
  5990. GetPix(230),
  5991. GetPix(70),
  5992. GetPix(20)),
  5993. hitomis,
  5994. 0.0f,
  5995. 1f);
  5996. GUI.Label(new Rect(GetPix(8), GetPix(250), GetPix(100), GetPix(25)),
  5997. "眉角度",
  5998. style1);
  5999. mayuha = GUI.HorizontalSlider(new Rect(GetPix(8),
  6000. GetPix(270),
  6001. GetPix(70),
  6002. GetPix(20)),
  6003. mayuha,
  6004. 0.0f,
  6005. 1f);
  6006. GUI.Label(new Rect(GetPix(8), GetPix(290), GetPix(100), GetPix(25)),
  6007. "眉上げ",
  6008. style1);
  6009. mayuup = GUI.HorizontalSlider(new Rect(GetPix(8),
  6010. GetPix(310),
  6011. GetPix(70),
  6012. GetPix(20)),
  6013. mayuup,
  6014. 0.0f,
  6015. 0.8f);
  6016. GUI.Label(new Rect(GetPix(88), GetPix(290), GetPix(100), GetPix(25)),
  6017. "眉下げ",
  6018. style1);
  6019. mayuv = GUI.HorizontalSlider(new Rect(GetPix(88),
  6020. GetPix(310),
  6021. GetPix(70),
  6022. GetPix(20)),
  6023. mayuv,
  6024. 0.0f,
  6025. 0.8f);
  6026. GUI.Label(new Rect(GetPix(8), GetPix(330), GetPix(100), GetPix(25)),
  6027. "口開け1",
  6028. style1);
  6029. moutha = GUI.HorizontalSlider(new Rect(GetPix(8),
  6030. GetPix(350),
  6031. GetPix(70),
  6032. GetPix(20)),
  6033. moutha,
  6034. 0.0f,
  6035. 1f);
  6036. GUI.Label(new Rect(GetPix(88), GetPix(330), GetPix(100), GetPix(25)),
  6037. "口開け2",
  6038. style1);
  6039. mouths = GUI.HorizontalSlider(new Rect(GetPix(88),
  6040. GetPix(350),
  6041. GetPix(70),
  6042. GetPix(20)),
  6043. mouths,
  6044. 0.0f,
  6045. 0.9f);
  6046. GUI.Label(new Rect(GetPix(8), GetPix(370), GetPix(100), GetPix(25)),
  6047. "口角上げ",
  6048. style1);
  6049. mouthup = GUI.HorizontalSlider(new Rect(GetPix(8),
  6050. GetPix(390),
  6051. GetPix(70),
  6052. GetPix(20)),
  6053. mouthup,
  6054. 0.0f,
  6055. 1.4f);
  6056. GUI.Label(new Rect(GetPix(88), GetPix(370), GetPix(100), GetPix(25)),
  6057. "口角下げ",
  6058. style1);
  6059. mouthdw = GUI.HorizontalSlider(new Rect(GetPix(88),
  6060. GetPix(390),
  6061. GetPix(70),
  6062. GetPix(20)),
  6063. mouthdw,
  6064. 0.0f,
  6065. 1f);
  6066. GUI.Label(new Rect(GetPix(8), GetPix(410), GetPix(100), GetPix(25)),
  6067. "舌出し",
  6068. style1);
  6069. tangout = GUI.HorizontalSlider(new Rect(GetPix(8),
  6070. GetPix(430),
  6071. GetPix(70),
  6072. GetPix(20)),
  6073. tangout,
  6074. 0.0f,
  6075. 1f);
  6076. GUI.Label(new Rect(GetPix(88), GetPix(410), GetPix(100), GetPix(25)),
  6077. "舌上げ",
  6078. style1);
  6079. tangup = GUI.HorizontalSlider(new Rect(GetPix(88),
  6080. GetPix(430),
  6081. GetPix(70),
  6082. GetPix(20)),
  6083. tangup,
  6084. 0.0f,
  6085. 0.7f);
  6086. isHoho2 = GUI.Toggle(new Rect(GetPix(5),
  6087. GetPix(455),
  6088. GetPix(50),
  6089. GetPix(20)),
  6090. isHoho2,
  6091. "赤面",
  6092. style4);
  6093. isShock = GUI.Toggle(new Rect(GetPix(60),
  6094. GetPix(455),
  6095. GetPix(70),
  6096. GetPix(20)),
  6097. isShock,
  6098. "ショック",
  6099. style4);
  6100. isNamida = GUI.Toggle(new Rect(GetPix(5),
  6101. GetPix(480),
  6102. GetPix(50),
  6103. GetPix(20)),
  6104. isNamida,
  6105. "涙",
  6106. style4);
  6107. isYodare = GUI.Toggle(new Rect(GetPix(60),
  6108. GetPix(480),
  6109. GetPix(50),
  6110. GetPix(20)),
  6111. isYodare,
  6112. "涎",
  6113. style4);
  6114. isTear1 = GUI.Toggle(new Rect(GetPix(5),
  6115. GetPix(505),
  6116. GetPix(50),
  6117. GetPix(20)),
  6118. isTear1,
  6119. "涙1",
  6120. style4);
  6121. isTear2 = GUI.Toggle(new Rect(GetPix(60),
  6122. GetPix(505),
  6123. GetPix(50),
  6124. GetPix(20)),
  6125. isTear2,
  6126. "涙2",
  6127. style4);
  6128. isTear3 = GUI.Toggle(new Rect(GetPix(115),
  6129. GetPix(505),
  6130. GetPix(50),
  6131. GetPix(20)),
  6132. isTear3,
  6133. "涙3",
  6134. style4);
  6135. isHohos = GUI.Toggle(new Rect(GetPix(5),
  6136. GetPix(530),
  6137. GetPix(50),
  6138. GetPix(20)),
  6139. isHohos,
  6140. "頬1",
  6141. style4);
  6142. isHoho = GUI.Toggle(new Rect(GetPix(60),
  6143. GetPix(530),
  6144. GetPix(50),
  6145. GetPix(20)),
  6146. isHoho,
  6147. "頬2",
  6148. style4);
  6149. isHohol = GUI.Toggle(new Rect(GetPix(115),
  6150. GetPix(530),
  6151. GetPix(50),
  6152. GetPix(20)),
  6153. isHohol,
  6154. "頬3",
  6155. style4);
  6156. }
  6157. else
  6158. {
  6159. int i1 = 120;
  6160. int i2 = 135;
  6161. int num = 28;
  6162. GUI.Label(new Rect(GetPix(8), GetPix(i1), GetPix(100), GetPix(25)),
  6163. "目の開閉",
  6164. style2);
  6165. eyeclose = GUI.HorizontalSlider(new Rect(GetPix(8),
  6166. GetPix(i2),
  6167. GetPix(70),
  6168. GetPix(20)),
  6169. eyeclose,
  6170. 0.0f,
  6171. 1f);
  6172. GUI.Label(new Rect(GetPix(88), GetPix(i1), GetPix(100), GetPix(25)),
  6173. "にっこり",
  6174. style2);
  6175. eyeclose2 = GUI.HorizontalSlider(new Rect(GetPix(88),
  6176. GetPix(i2),
  6177. GetPix(70),
  6178. GetPix(20)),
  6179. eyeclose2,
  6180. 0.0f,
  6181. 1f);
  6182. GUI.Label(new Rect(GetPix(8),
  6183. GetPix(i1 + num),
  6184. GetPix(100),
  6185. GetPix(25)),
  6186. "ジト目",
  6187. style2);
  6188. eyeclose3 = GUI.HorizontalSlider(new Rect(GetPix(8),
  6189. GetPix(i2 + num),
  6190. GetPix(70),
  6191. GetPix(20)),
  6192. eyeclose3,
  6193. 0.0f,
  6194. 1f);
  6195. GUI.Label(new Rect(GetPix(88),
  6196. GetPix(i1 + num),
  6197. GetPix(100),
  6198. GetPix(25)),
  6199. "見開く",
  6200. style2);
  6201. eyebig = GUI.HorizontalSlider(new Rect(GetPix(88),
  6202. GetPix(i2 + num),
  6203. GetPix(70),
  6204. GetPix(20)),
  6205. eyebig,
  6206. 0.0f,
  6207. 1f);
  6208. GUI.Label(new Rect(GetPix(8),
  6209. GetPix(i1 + num * 2),
  6210. GetPix(100),
  6211. GetPix(25)),
  6212. "ウインク1",
  6213. style2);
  6214. eyeclose6 = GUI.HorizontalSlider(new Rect(GetPix(8),
  6215. GetPix(i2 + num * 2),
  6216. GetPix(70),
  6217. GetPix(20)),
  6218. eyeclose6,
  6219. 0.0f,
  6220. 1f);
  6221. GUI.Label(new Rect(GetPix(88),
  6222. GetPix(i1 + num * 2),
  6223. GetPix(100),
  6224. GetPix(25)),
  6225. "ウインク2",
  6226. style2);
  6227. eyeclose5 = GUI.HorizontalSlider(new Rect(GetPix(88),
  6228. GetPix(i2 + num * 2),
  6229. GetPix(70),
  6230. GetPix(20)),
  6231. eyeclose5,
  6232. 0.0f,
  6233. 1f);
  6234. GUI.Label(new Rect(GetPix(8),
  6235. GetPix(i1 + num * 3),
  6236. GetPix(100),
  6237. GetPix(25)),
  6238. "ハイライト",
  6239. style2);
  6240. hitomih = GUI.HorizontalSlider(new Rect(GetPix(8),
  6241. GetPix(i2 + num * 3),
  6242. GetPix(70),
  6243. GetPix(20)),
  6244. hitomih,
  6245. 0.0f,
  6246. 2f);
  6247. GUI.Label(new Rect(GetPix(88),
  6248. GetPix(i1 + num * 3),
  6249. GetPix(100),
  6250. GetPix(25)),
  6251. "瞳サイズ",
  6252. style2);
  6253. hitomis = GUI.HorizontalSlider(new Rect(GetPix(88),
  6254. GetPix(i2 + num * 3),
  6255. GetPix(70),
  6256. GetPix(20)),
  6257. hitomis,
  6258. 0.0f,
  6259. 1f);
  6260. GUI.Label(new Rect(GetPix(8),
  6261. GetPix(i1 + num * 4),
  6262. GetPix(100),
  6263. GetPix(25)),
  6264. "眉角度1",
  6265. style2);
  6266. mayuha = GUI.HorizontalSlider(new Rect(GetPix(8),
  6267. GetPix(i2 + num * 4),
  6268. GetPix(70),
  6269. GetPix(20)),
  6270. mayuha,
  6271. 0.0f,
  6272. 1f);
  6273. GUI.Label(new Rect(GetPix(88),
  6274. GetPix(i1 + num * 4),
  6275. GetPix(100),
  6276. GetPix(25)),
  6277. "眉角度2",
  6278. style2);
  6279. mayuw = GUI.HorizontalSlider(new Rect(GetPix(88),
  6280. GetPix(i2 + num * 4),
  6281. GetPix(70),
  6282. GetPix(20)),
  6283. mayuw,
  6284. 0.0f,
  6285. 1f);
  6286. GUI.Label(new Rect(GetPix(8),
  6287. GetPix(i1 + num * 5),
  6288. GetPix(100),
  6289. GetPix(25)),
  6290. "眉上げ",
  6291. style2);
  6292. mayuup = GUI.HorizontalSlider(new Rect(GetPix(8),
  6293. GetPix(i2 + num * 5),
  6294. GetPix(70),
  6295. GetPix(20)),
  6296. mayuup,
  6297. 0.0f,
  6298. 0.8f);
  6299. GUI.Label(new Rect(GetPix(88),
  6300. GetPix(i1 + num * 5),
  6301. GetPix(100),
  6302. GetPix(25)),
  6303. "眉下げ1",
  6304. style2);
  6305. mayuv = GUI.HorizontalSlider(new Rect(GetPix(88),
  6306. GetPix(i2 + num * 5),
  6307. GetPix(70),
  6308. GetPix(20)),
  6309. mayuv,
  6310. 0.0f,
  6311. 0.8f);
  6312. GUI.Label(new Rect(GetPix(8),
  6313. GetPix(i1 + num * 6),
  6314. GetPix(100),
  6315. GetPix(25)),
  6316. "眉下げ2",
  6317. style2);
  6318. mayuvhalf = GUI.HorizontalSlider(new Rect(GetPix(8),
  6319. GetPix(i2 + num * 6),
  6320. GetPix(70),
  6321. GetPix(20)),
  6322. mayuvhalf,
  6323. 0.0f,
  6324. 0.9f);
  6325. GUI.Label(new Rect(GetPix(8),
  6326. GetPix(i1 + num * 7),
  6327. GetPix(100),
  6328. GetPix(25)),
  6329. "口開け1",
  6330. style2);
  6331. moutha = GUI.HorizontalSlider(new Rect(GetPix(8),
  6332. GetPix(i2 + num * 7),
  6333. GetPix(70),
  6334. GetPix(20)),
  6335. moutha,
  6336. 0.0f,
  6337. 1f);
  6338. GUI.Label(new Rect(GetPix(88),
  6339. GetPix(i1 + num * 7),
  6340. GetPix(100),
  6341. GetPix(25)),
  6342. "口開け2",
  6343. style2);
  6344. mouths = GUI.HorizontalSlider(new Rect(GetPix(88),
  6345. GetPix(i2 + num * 7),
  6346. GetPix(70),
  6347. GetPix(20)),
  6348. mouths,
  6349. 0.0f,
  6350. 0.9f);
  6351. GUI.Label(new Rect(GetPix(8),
  6352. GetPix(i1 + num * 8),
  6353. GetPix(100),
  6354. GetPix(25)),
  6355. "口幅狭く",
  6356. style2);
  6357. mouthc = GUI.HorizontalSlider(new Rect(GetPix(8),
  6358. GetPix(i2 + num * 8),
  6359. GetPix(70),
  6360. GetPix(20)),
  6361. mouthc,
  6362. 0.0f,
  6363. 1f);
  6364. GUI.Label(new Rect(GetPix(88),
  6365. GetPix(i1 + num * 8),
  6366. GetPix(100),
  6367. GetPix(25)),
  6368. "口幅広く",
  6369. style2);
  6370. mouthi = GUI.HorizontalSlider(new Rect(GetPix(88),
  6371. GetPix(i2 + num * 8),
  6372. GetPix(70),
  6373. GetPix(20)),
  6374. mouthi,
  6375. 0.0f,
  6376. 1f);
  6377. GUI.Label(new Rect(GetPix(8),
  6378. GetPix(i1 + num * 9),
  6379. GetPix(100),
  6380. GetPix(25)),
  6381. "口角上げ",
  6382. style2);
  6383. mouthup = GUI.HorizontalSlider(new Rect(GetPix(8),
  6384. GetPix(i2 + num * 9),
  6385. GetPix(70),
  6386. GetPix(20)),
  6387. mouthup,
  6388. 0.0f,
  6389. 1.4f);
  6390. GUI.Label(new Rect(GetPix(88),
  6391. GetPix(i1 + num * 9),
  6392. GetPix(100),
  6393. GetPix(25)),
  6394. "口角下げ",
  6395. style2);
  6396. mouthdw = GUI.HorizontalSlider(new Rect(GetPix(88),
  6397. GetPix(i2 + num * 9),
  6398. GetPix(70),
  6399. GetPix(20)),
  6400. mouthdw,
  6401. 0.0f,
  6402. 1f);
  6403. GUI.Label(new Rect(GetPix(8),
  6404. GetPix(i1 + num * 10),
  6405. GetPix(100),
  6406. GetPix(25)),
  6407. "口中央上げ",
  6408. style2);
  6409. mouthhe = GUI.HorizontalSlider(new Rect(GetPix(8),
  6410. GetPix(i2 + num * 10),
  6411. GetPix(70),
  6412. GetPix(20)),
  6413. mouthhe,
  6414. 0.0f,
  6415. 1f);
  6416. GUI.Label(new Rect(GetPix(88),
  6417. GetPix(i1 + num * 10),
  6418. GetPix(100),
  6419. GetPix(25)),
  6420. "左口角上げ",
  6421. style2);
  6422. mouthuphalf = GUI.HorizontalSlider(new Rect(GetPix(88),
  6423. GetPix(i2 + num * 10),
  6424. GetPix(70),
  6425. GetPix(20)),
  6426. mouthuphalf,
  6427. 0.0f,
  6428. 2f);
  6429. GUI.Label(new Rect(GetPix(8),
  6430. GetPix(i1 + num * 11),
  6431. GetPix(100),
  6432. GetPix(25)),
  6433. "舌出し",
  6434. style2);
  6435. tangout = GUI.HorizontalSlider(new Rect(GetPix(8),
  6436. GetPix(i2 + num * 11),
  6437. GetPix(70),
  6438. GetPix(20)),
  6439. tangout,
  6440. 0.0f,
  6441. 1f);
  6442. GUI.Label(new Rect(GetPix(88),
  6443. GetPix(i1 + num * 11),
  6444. GetPix(100),
  6445. GetPix(25)),
  6446. "舌上げ",
  6447. style2);
  6448. tangup = GUI.HorizontalSlider(new Rect(GetPix(88),
  6449. GetPix(i2 + num * 11),
  6450. GetPix(70),
  6451. GetPix(20)),
  6452. tangup,
  6453. 0.0f,
  6454. 0.7f);
  6455. GUI.Label(new Rect(GetPix(8),
  6456. GetPix(i1 + num * 12),
  6457. GetPix(100),
  6458. GetPix(25)),
  6459. "舌根上げ",
  6460. style2);
  6461. tangopen = GUI.HorizontalSlider(new Rect(GetPix(8),
  6462. GetPix(i2 + num * 12),
  6463. GetPix(70),
  6464. GetPix(20)),
  6465. tangopen,
  6466. 0.0f,
  6467. 1f);
  6468. bool enabled = GUI.enabled;
  6469. if (!faceCombo.isClickedComboButton)
  6470. {
  6471. GUI.enabled = true;
  6472. }
  6473. GUI.enabled = enabled;
  6474. isHoho2 = GUI.Toggle(new Rect(GetPix(5),
  6475. GetPix(489),
  6476. GetPix(50),
  6477. GetPix(16)),
  6478. isHoho2,
  6479. "赤面",
  6480. style4);
  6481. isShock = GUI.Toggle(new Rect(GetPix(60),
  6482. GetPix(489),
  6483. GetPix(58),
  6484. GetPix(16)),
  6485. isShock,
  6486. "ショック",
  6487. style4);
  6488. isNosefook = GUI.Toggle(new Rect(GetPix(115),
  6489. GetPix(489),
  6490. GetPix(62),
  6491. GetPix(16)),
  6492. isNosefook,
  6493. "鼻フック",
  6494. style4);
  6495. isNamida = GUI.Toggle(new Rect(GetPix(5),
  6496. GetPix(511),
  6497. GetPix(50),
  6498. GetPix(16)),
  6499. isNamida,
  6500. "涙",
  6501. style4);
  6502. isYodare = GUI.Toggle(new Rect(GetPix(60),
  6503. GetPix(511),
  6504. GetPix(50),
  6505. GetPix(16)),
  6506. isYodare,
  6507. "涎",
  6508. style4);
  6509. isToothoff = !GUI.Toggle(new Rect(GetPix(115),
  6510. GetPix(511),
  6511. GetPix(50),
  6512. GetPix(16)),
  6513. !isToothoff,
  6514. "歯",
  6515. style4);
  6516. isTear1 = GUI.Toggle(new Rect(GetPix(5),
  6517. GetPix(533),
  6518. GetPix(50),
  6519. GetPix(16)),
  6520. isTear1,
  6521. "涙1",
  6522. style4);
  6523. isTear2 = GUI.Toggle(new Rect(GetPix(60),
  6524. GetPix(533),
  6525. GetPix(50),
  6526. GetPix(16)),
  6527. isTear2,
  6528. "涙2",
  6529. style4);
  6530. isTear3 = GUI.Toggle(new Rect(GetPix(115),
  6531. GetPix(533),
  6532. GetPix(50),
  6533. GetPix(16)),
  6534. isTear3,
  6535. "涙3",
  6536. style4);
  6537. isHohos = GUI.Toggle(new Rect(GetPix(5),
  6538. GetPix(555),
  6539. GetPix(50),
  6540. GetPix(16)),
  6541. isHohos,
  6542. "頬1",
  6543. style4);
  6544. isHoho = GUI.Toggle(new Rect(GetPix(60),
  6545. GetPix(555),
  6546. GetPix(50),
  6547. GetPix(16)),
  6548. isHoho,
  6549. "頬2",
  6550. style4);
  6551. isHohol = GUI.Toggle(new Rect(GetPix(115),
  6552. GetPix(555),
  6553. GetPix(50),
  6554. GetPix(16)),
  6555. isHohol,
  6556. "頬3",
  6557. style4);
  6558. }
  6559. int num1 = 0;
  6560. if (isShosai)
  6561. {
  6562. num1 = 22;
  6563. }
  6564. isFaceEdit = GUI.Toggle(new Rect(GetPix(5),
  6565. GetPix(555 + num1),
  6566. GetPix(50),
  6567. GetPix(16)),
  6568. isFaceEdit,
  6569. "登録",
  6570. style4);
  6571. if (isFaceEdit)
  6572. {
  6573. inName4 = GUI.TextField(new Rect(GetPix(5),
  6574. GetPix(575 + num1),
  6575. GetPix(100),
  6576. GetPix(20)),
  6577. inName4);
  6578. if (GUI.Button(new Rect(GetPix(107),
  6579. GetPix(575 + num1),
  6580. GetPix(35),
  6581. GetPix(20)),
  6582. "追加",
  6583. style3))
  6584. {
  6585. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  6586. GUI.FocusControl("");
  6587. int num2 = 1;
  6588. for (int index = 1; index < 1000; ++index)
  6589. {
  6590. if (Preferences["face"]["f" + index].Value == null)
  6591. {
  6592. num2 = index;
  6593. break;
  6594. }
  6595. }
  6596. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  6597. float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  6598. float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  6599. string str1 = inName4 + ":" + fieldValue2[(int)morph.hash["eyeclose"]] + ","
  6600. + fieldValue2[(int)morph.hash["eyeclose2"]] + ","
  6601. + fieldValue2[(int)morph.hash["eyeclose3"]] + ","
  6602. + fieldValue2[(int)morph.hash["eyeclose6"]] + ","
  6603. + fieldValue1[(int)morph.hash["hitomih"]] + ","
  6604. + fieldValue1[(int)morph.hash["hitomis"]] + ","
  6605. + fieldValue1[(int)morph.hash["mayuha"]] + ","
  6606. + fieldValue1[(int)morph.hash["mayuup"]] + ","
  6607. + fieldValue1[(int)morph.hash["mayuv"]] + ","
  6608. + fieldValue1[(int)morph.hash["mayuvhalf"]] + ","
  6609. + fieldValue1[(int)morph.hash["moutha"]] + ","
  6610. + fieldValue1[(int)morph.hash["mouths"]] + ","
  6611. + fieldValue1[(int)morph.hash["mouthdw"]] + ","
  6612. + fieldValue1[(int)morph.hash["mouthup"]] + ","
  6613. + fieldValue1[(int)morph.hash["tangout"]] + ","
  6614. + fieldValue1[(int)morph.hash["tangup"]] + ","
  6615. + fieldValue1[(int)morph.hash["eyebig"]] + ","
  6616. + fieldValue2[(int)morph.hash["eyeclose5"]] + ","
  6617. + fieldValue1[(int)morph.hash["mayuw"]] + ","
  6618. + fieldValue1[(int)morph.hash["mouthhe"]] + ","
  6619. + fieldValue1[(int)morph.hash["mouthc"]] + ","
  6620. + fieldValue1[(int)morph.hash["mouthi"]] + ","
  6621. + fieldValue1[(int)morph.hash["mouthuphalf"]] + ",";
  6622. string str2;
  6623. try
  6624. {
  6625. str2 = str1 + fieldValue1[(int)morph.hash["tangopen"]] + ",";
  6626. }
  6627. catch
  6628. {
  6629. str2 = str1 + "0,";
  6630. }
  6631. string str3 = fieldValue1[(int)morph.hash["namida"]] <= 0.0
  6632. ? str2 + 0 + ","
  6633. : str2 + 1 + ",";
  6634. string str4 = fieldValue1[(int)morph.hash["tear1"]] <= 0.0
  6635. ? str3 + 0 + ","
  6636. : str3 + 1 + ",";
  6637. string str5 = fieldValue1[(int)morph.hash["tear2"]] <= 0.0
  6638. ? str4 + 0 + ","
  6639. : str4 + 1 + ",";
  6640. string str6 = fieldValue1[(int)morph.hash["tear3"]] <= 0.0
  6641. ? str5 + 0 + ","
  6642. : str5 + 1 + ",";
  6643. string str7 = fieldValue1[(int)morph.hash["shock"]] <= 0.0
  6644. ? str6 + 0 + ","
  6645. : str6 + 1 + ",";
  6646. string str8 = fieldValue1[(int)morph.hash["yodare"]] <= 0.0
  6647. ? str7 + 0 + ","
  6648. : str7 + 1 + ",";
  6649. string str9 = fieldValue1[(int)morph.hash["hoho"]] <= 0.0
  6650. ? str8 + 0 + ","
  6651. : str8 + 1 + ",";
  6652. string str10 = fieldValue1[(int)morph.hash["hoho2"]] <= 0.0
  6653. ? str9 + 0 + ","
  6654. : str9 + 1 + ",";
  6655. string str11 = fieldValue1[(int)morph.hash["hohos"]] <= 0.0
  6656. ? str10 + 0 + ","
  6657. : str10 + 1 + ",";
  6658. string str12 = fieldValue1[(int)morph.hash["hohol"]] <= 0.0
  6659. ? str11 + 0 + ","
  6660. : str11 + 1 + ",";
  6661. string str13 = fieldValue1[(int)morph.hash["toothoff"]] <= 0.0
  6662. ? str12 + 0 + ","
  6663. : str12 + 1 + ",";
  6664. string str14 = fieldValue1[(int)morph.hash["nosefook"]] <= 0.0
  6665. ? str13 + 0 + ":"
  6666. : str13 + 1 + ":";
  6667. Preferences["face"]["f" + num2].Value = str14;
  6668. SaveConfig();
  6669. List<string> stringList = new List<string>(300);
  6670. stringList.AddRange(faceArray);
  6671. for (int index = 1; index < 300; ++index)
  6672. {
  6673. IniKey iniKey = Preferences["face"]["f" + index];
  6674. if (iniKey.Value != null)
  6675. {
  6676. string[] strArray = iniKey.Value.Split(':');
  6677. if (strArray.Length > 1)
  6678. {
  6679. stringList.Add(strArray[0] + "               :" + index + ":" + strArray[1]);
  6680. }
  6681. }
  6682. else
  6683. {
  6684. break;
  6685. }
  6686. }
  6687. faceCombo.selectedItemIndex = 0;
  6688. faceComboList = new GUIContent[stringList.ToArray().Length];
  6689. for (int index = 0; index < stringList.ToArray().Length; ++index)
  6690. {
  6691. faceComboList[index] = new GUIContent(stringList.ToArray()[index]);
  6692. }
  6693. faceCombo.selectedItemIndex = stringList.ToArray().Length - 1;
  6694. inName4 = "";
  6695. }
  6696. if (faceIndex[selectMaidIndex] < faceArray.Length)
  6697. {
  6698. GUI.enabled = false;
  6699. }
  6700. if (GUI.Button(new Rect(GetPix(144),
  6701. GetPix(575 + num1),
  6702. GetPix(24),
  6703. GetPix(20)),
  6704. "削",
  6705. style3))
  6706. {
  6707. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  6708. Preferences["face"]["f" + faceComboList[faceIndex[selectMaidIndex]].text.Split(':')[1]].Value = "del";
  6709. SaveConfig();
  6710. List<string> stringList = new List<string>(300);
  6711. stringList.AddRange(faceArray);
  6712. for (int index = 1; index < 300; ++index)
  6713. {
  6714. IniKey iniKey = Preferences["face"]["f" + index];
  6715. if (iniKey.Value != null)
  6716. {
  6717. string[] strArray = iniKey.Value.Split(':');
  6718. if (strArray.Length > 1)
  6719. {
  6720. stringList.Add(strArray[0] + "               :" + index + ":" + strArray[1]);
  6721. }
  6722. }
  6723. else
  6724. {
  6725. break;
  6726. }
  6727. }
  6728. faceCombo.selectedItemIndex = 0;
  6729. faceComboList = new GUIContent[stringList.ToArray().Length];
  6730. for (int index = 0; index < stringList.ToArray().Length; ++index)
  6731. {
  6732. faceComboList[index] = new GUIContent(stringList.ToArray()[index]);
  6733. }
  6734. faceCombo.selectedItemIndex = 0;
  6735. for (int index = 0; index < maidCnt; ++index)
  6736. {
  6737. if (maidArray[index] && maidArray[index].Visible
  6738. && stringList.ToArray().Length <= faceIndex[index])
  6739. {
  6740. faceIndex[index] = 0;
  6741. }
  6742. }
  6743. }
  6744. GUI.enabled = true;
  6745. }
  6746. if (faceCombo.isClickedComboButton)
  6747. {
  6748. GUI.enabled = true;
  6749. }
  6750. if (isFace[selectMaidIndex])
  6751. {
  6752. faceIndex[selectMaidIndex] =
  6753. faceCombo.List(new Rect(GetPix(35),
  6754. GetPix(95),
  6755. GetPix(95),
  6756. GetPix(23)),
  6757. faceComboList[faceIndex[selectMaidIndex]].text,
  6758. faceComboList,
  6759. buttonStyle,
  6760. "box",
  6761. listStyle2);
  6762. }
  6763. else
  6764. {
  6765. faceCombo.List(new Rect(GetPix(35), GetPix(95), GetPix(95), GetPix(23)),
  6766. faceComboList[faceIndex[selectMaidIndex]].text,
  6767. faceComboList,
  6768. buttonStyle,
  6769. "box",
  6770. listStyle2);
  6771. }
  6772. if (faceCombo.isClickedComboButton)
  6773. {
  6774. isCombo = true;
  6775. }
  6776. else if (isCombo)
  6777. {
  6778. isCombo = false;
  6779. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  6780. float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  6781. morph.EyeMabataki = 0.0f;
  6782. if (faceIndex[selectMaidIndex] < faceArray.Length)
  6783. {
  6784. morph.MulBlendValues(faceArray[faceIndex[selectMaidIndex]], 1f);
  6785. }
  6786. else
  6787. {
  6788. float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  6789. if (!isVR)
  6790. {
  6791. maidArray[selectMaidIndex].boMabataki = false;
  6792. }
  6793. string[] strArray = faceComboList[faceIndex[selectMaidIndex]].text.Split(':')[2].Split(',');
  6794. fieldValue2[(int)morph.hash["eyeclose"]] = float.Parse(strArray[0]);
  6795. fieldValue2[(int)morph.hash["eyeclose2"]] = float.Parse(strArray[1]);
  6796. fieldValue2[(int)morph.hash["eyeclose3"]] = float.Parse(strArray[2]);
  6797. fieldValue2[(int)morph.hash["eyeclose6"]] = float.Parse(strArray[3]);
  6798. fieldValue1[(int)morph.hash["hitomih"]] = float.Parse(strArray[4]);
  6799. fieldValue1[(int)morph.hash["hitomis"]] = float.Parse(strArray[5]);
  6800. fieldValue1[(int)morph.hash["mayuha"]] = float.Parse(strArray[6]);
  6801. fieldValue1[(int)morph.hash["mayuup"]] = float.Parse(strArray[7]);
  6802. fieldValue1[(int)morph.hash["mayuv"]] = float.Parse(strArray[8]);
  6803. fieldValue1[(int)morph.hash["mayuvhalf"]] = float.Parse(strArray[9]);
  6804. fieldValue1[(int)morph.hash["moutha"]] = float.Parse(strArray[10]);
  6805. fieldValue1[(int)morph.hash["mouths"]] = float.Parse(strArray[11]);
  6806. fieldValue1[(int)morph.hash["mouthdw"]] = float.Parse(strArray[12]);
  6807. fieldValue1[(int)morph.hash["mouthup"]] = float.Parse(strArray[13]);
  6808. fieldValue1[(int)morph.hash["tangout"]] = float.Parse(strArray[14]);
  6809. fieldValue1[(int)morph.hash["tangup"]] = float.Parse(strArray[15]);
  6810. fieldValue1[(int)morph.hash["eyebig"]] = float.Parse(strArray[16]);
  6811. fieldValue2[(int)morph.hash["eyeclose5"]] = float.Parse(strArray[17]);
  6812. fieldValue1[(int)morph.hash["mayuw"]] = float.Parse(strArray[18]);
  6813. fieldValue1[(int)morph.hash["mouthhe"]] = float.Parse(strArray[19]);
  6814. fieldValue1[(int)morph.hash["mouthc"]] = float.Parse(strArray[20]);
  6815. fieldValue1[(int)morph.hash["mouthi"]] = float.Parse(strArray[21]);
  6816. fieldValue1[(int)morph.hash["mouthuphalf"]] = float.Parse(strArray[22]) + 0.01f;
  6817. try
  6818. {
  6819. fieldValue1[(int)morph.hash["tangopen"]] = float.Parse(strArray[23]);
  6820. }
  6821. catch { }
  6822. if (float.Parse(strArray[24]) == 1.0)
  6823. {
  6824. fieldValue1[(int)morph.hash["namida"]] = 1f;
  6825. }
  6826. else
  6827. {
  6828. fieldValue1[(int)morph.hash["namida"]] = 0.0f;
  6829. }
  6830. if (float.Parse(strArray[25]) == 1.0)
  6831. {
  6832. fieldValue1[(int)morph.hash["tear1"]] = 1f;
  6833. }
  6834. else
  6835. {
  6836. fieldValue1[(int)morph.hash["tear1"]] = 0.0f;
  6837. }
  6838. if (float.Parse(strArray[26]) == 1.0)
  6839. {
  6840. fieldValue1[(int)morph.hash["tear2"]] = 1f;
  6841. }
  6842. else
  6843. {
  6844. fieldValue1[(int)morph.hash["tear2"]] = 0.0f;
  6845. }
  6846. if (float.Parse(strArray[27]) == 1.0)
  6847. {
  6848. fieldValue1[(int)morph.hash["tear3"]] = 1f;
  6849. }
  6850. else
  6851. {
  6852. fieldValue1[(int)morph.hash["tear3"]] = 0.0f;
  6853. }
  6854. if (float.Parse(strArray[28]) == 1.0)
  6855. {
  6856. fieldValue1[(int)morph.hash["shock"]] = 1f;
  6857. }
  6858. else
  6859. {
  6860. fieldValue1[(int)morph.hash["shock"]] = 0.0f;
  6861. }
  6862. if (float.Parse(strArray[29]) == 1.0)
  6863. {
  6864. fieldValue1[(int)morph.hash["yodare"]] = 1f;
  6865. }
  6866. else
  6867. {
  6868. fieldValue1[(int)morph.hash["yodare"]] = 0.0f;
  6869. }
  6870. if (float.Parse(strArray[30]) == 1.0)
  6871. {
  6872. fieldValue1[(int)morph.hash["hoho"]] = 0.5f;
  6873. }
  6874. else
  6875. {
  6876. fieldValue1[(int)morph.hash["hoho"]] = 0.0f;
  6877. }
  6878. if (float.Parse(strArray[31]) == 1.0)
  6879. {
  6880. fieldValue1[(int)morph.hash["hoho2"]] = 0.5f;
  6881. }
  6882. else
  6883. {
  6884. fieldValue1[(int)morph.hash["hoho2"]] = 0.0f;
  6885. }
  6886. if (float.Parse(strArray[32]) == 1.0)
  6887. {
  6888. fieldValue1[(int)morph.hash["hohos"]] = 1f;
  6889. }
  6890. else
  6891. {
  6892. fieldValue1[(int)morph.hash["hohos"]] = 0.0f;
  6893. }
  6894. if (float.Parse(strArray[33]) == 1.0)
  6895. {
  6896. fieldValue1[(int)morph.hash["hohol"]] = 1f;
  6897. }
  6898. else
  6899. {
  6900. fieldValue1[(int)morph.hash["hohol"]] = 0.0f;
  6901. }
  6902. if (float.Parse(strArray[34]) == 1.0)
  6903. {
  6904. fieldValue1[(int)morph.hash["toothoff"]] = 1f;
  6905. }
  6906. else
  6907. {
  6908. fieldValue1[(int)morph.hash["toothoff"]] = 0.0f;
  6909. }
  6910. if (strArray.Length > 35)
  6911. {
  6912. morph.boNoseFook = float.Parse(strArray[35]) == 1.0;
  6913. }
  6914. }
  6915. maidArray[selectMaidIndex].body0.Face.morph.FixBlendValues_Face();
  6916. isFaceInit = true;
  6917. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  6918. }
  6919. GUI.enabled = !faceCombo.isClickedComboButton;
  6920. bool state = GUI.enabled;
  6921. GUI.enabled = true;
  6922. GUI.DragWindow();
  6923. GUI.enabled = state;
  6924. yotogiFlg = false;
  6925. if (sceneLevel != 14
  6926. || !GameObject
  6927. .Find("/UI Root/YotogiPlayPanel/CommandViewer/SkillViewer/MaskGroup/SkillGroup/CommandParent/CommandUnit"))
  6928. {
  6929. return;
  6930. }
  6931. yotogiFlg = true;
  6932. }
  6933. private void MaidCallWindow(int winID)
  6934. {
  6935. CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
  6936. GUIStyle style1 = "label";
  6937. style1.fontSize = GetPix(14);
  6938. style1.alignment = TextAnchor.UpperLeft;
  6939. GUIStyle style2 = "button";
  6940. style2.fontSize = GetPix(16);
  6941. style2.alignment = TextAnchor.MiddleCenter;
  6942. GUIStyle style3 = new GUIStyle("toggle")
  6943. {
  6944. fontSize = GetPix(13)
  6945. };
  6946. float pix = GetPix(70);
  6947. if (comboBoxList == null)
  6948. {
  6949. comboBoxControl.selectedItemIndex = 0;
  6950. comboBoxList = new GUIContent[11];
  6951. comboBoxList[0] = new GUIContent("通常");
  6952. comboBoxList[1] = new GUIContent("横一列");
  6953. comboBoxList[2] = new GUIContent("縦一列");
  6954. comboBoxList[3] = new GUIContent("斜め");
  6955. comboBoxList[4] = new GUIContent("円(外向き)");
  6956. comboBoxList[5] = new GUIContent("円(内向き)");
  6957. comboBoxList[6] = new GUIContent("扇");
  6958. comboBoxList[7] = new GUIContent("V");
  6959. comboBoxList[8] = new GUIContent("^");
  6960. comboBoxList[9] = new GUIContent("M");
  6961. comboBoxList[10] = new GUIContent("W");
  6962. }
  6963. bool flag1 = true;
  6964. if (faceFlg || poseFlg || sceneFlg || kankyoFlg || kankyo2Flg)
  6965. {
  6966. flag1 = false;
  6967. }
  6968. if (!isF6 && GUI.Toggle(new Rect(GetPix(2),
  6969. GetPix(2),
  6970. GetPix(39),
  6971. GetPix(20)),
  6972. flag1,
  6973. "配置",
  6974. style3))
  6975. {
  6976. faceFlg = false;
  6977. poseFlg = false;
  6978. sceneFlg = false;
  6979. kankyoFlg = false;
  6980. kankyo2Flg = false;
  6981. bGui = true;
  6982. }
  6983. if (!yotogiFlg && GUI.Toggle(new Rect(GetPix(41),
  6984. GetPix(2),
  6985. GetPix(39),
  6986. GetPix(20)),
  6987. poseFlg,
  6988. "操作",
  6989. style3))
  6990. {
  6991. poseFlg = true;
  6992. faceFlg = false;
  6993. sceneFlg = false;
  6994. kankyoFlg = false;
  6995. kankyo2Flg = false;
  6996. }
  6997. if (GUI.Toggle(new Rect(GetPix(80), GetPix(2), GetPix(39), GetPix(20)),
  6998. faceFlg,
  6999. "表情",
  7000. style3))
  7001. {
  7002. faceFlg = true;
  7003. poseFlg = false;
  7004. sceneFlg = false;
  7005. kankyoFlg = false;
  7006. kankyo2Flg = false;
  7007. if (!faceFlg2)
  7008. {
  7009. isFaceInit = true;
  7010. faceFlg2 = true;
  7011. maidArray[selectMaidIndex].boMabataki = false;
  7012. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  7013. }
  7014. }
  7015. if (GUI.Toggle(new Rect(GetPix(119), GetPix(2), GetPix(39), GetPix(20)),
  7016. kankyoFlg,
  7017. "環境",
  7018. style3))
  7019. {
  7020. poseFlg = false;
  7021. faceFlg = false;
  7022. sceneFlg = false;
  7023. kankyoFlg = true;
  7024. kankyo2Flg = false;
  7025. }
  7026. if (!line1)
  7027. {
  7028. line1 = MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.3f));
  7029. line2 = MakeTex(2, 2, new Color(0.7f, 0.7f, 0.7f, 0.6f));
  7030. }
  7031. GUI.DrawTexture(new Rect(GetPix(5), GetPix(20), GetPix(160), 2f), line1);
  7032. GUI.DrawTexture(new Rect(GetPix(5), GetPix(20), GetPix(160), 1f), line2);
  7033. int stockMaidCount1 = characterMgr.GetStockMaidCount();
  7034. Rect position;
  7035. Rect viewRect;
  7036. if (sceneLevel != 5)
  7037. {
  7038. position = new Rect(GetPix(7),
  7039. GetPix(110),
  7040. rectWin.width - GetPix(14),
  7041. rectWin.height * 0.83f);
  7042. viewRect = new Rect(0.0f,
  7043. 0.0f,
  7044. position.width * 0.85f,
  7045. (pix + GetPix(5)) * stockMaidCount1 + GetPix(15));
  7046. }
  7047. else
  7048. {
  7049. position = new Rect(GetPix(7),
  7050. GetPix(110),
  7051. rectWin.width - GetPix(14),
  7052. (float)(rectWin.height * 0.829999983310699 * 0.980000019073486));
  7053. viewRect = new Rect(0.0f,
  7054. 0.0f,
  7055. position.width * 0.85f,
  7056. (float)((pix + (double)GetPix(5)) * stockMaidCount1
  7057. + GetPix(15) * 0.920000016689301));
  7058. }
  7059. float y = 0.0f;
  7060. if (comboBoxControl.isClickedComboButton)
  7061. {
  7062. GUI.enabled = false;
  7063. }
  7064. if (GUI.Button(new Rect(GetPix(10), GetPix(78), rectWin.width * 0.85f, GetPix(28)),
  7065. "呼び出す",
  7066. style2))
  7067. {
  7068. isYobidashi = true;
  7069. selectMaidIndex = 0;
  7070. copyIndex = 0;
  7071. for (int index = 0; index < maxMaidCnt; ++index)
  7072. {
  7073. if (!isLock[index] && maidArray[index] && maidArray[index].Visible)
  7074. {
  7075. maidArray[index].CrossFade(poseArray[0] + ".anm", false, true, false, 0.0f, 1f);
  7076. maidArray[index].SetAutoTwistAll(true);
  7077. }
  7078. maidArray[index] = null;
  7079. }
  7080. for (int index = 0; index < maxMaidCnt; ++index)
  7081. {
  7082. isStop[index] = false;
  7083. }
  7084. bGui = false;
  7085. isFadeOut = true;
  7086. GameMain.Instance.MainCamera.FadeOut(0.0f, false, null, true, new Color());
  7087. for (int index = 0; index < characterMgr.GetStockMaidCount(); ++index)
  7088. {
  7089. characterMgr.GetStockMaidList()[index].Visible = false;
  7090. }
  7091. }
  7092. GUIStyle style4 = "button";
  7093. style4.fontSize = GetPix(13);
  7094. GUIStyleState guiStyleState = new GUIStyleState();
  7095. if (GUI.Button(new Rect(GetPix(10), GetPix(52), rectWin.width * 0.4f, GetPix(23)),
  7096. "7人選択",
  7097. style4))
  7098. {
  7099. if (sceneLevel != 5)
  7100. {
  7101. selectList = new ArrayList
  7102. {
  7103. 0,
  7104. 1,
  7105. 2,
  7106. 3,
  7107. 4,
  7108. 5,
  7109. 6
  7110. };
  7111. }
  7112. else
  7113. {
  7114. int stockMaidCount2 = characterMgr.GetStockMaidCount();
  7115. selectList = new ArrayList
  7116. {
  7117. editMaid
  7118. };
  7119. if (stockMaidCount2 > 1)
  7120. {
  7121. if (editMaid >= 1)
  7122. {
  7123. selectList.Add(0);
  7124. }
  7125. else if (stockMaidCount2 > 2)
  7126. {
  7127. selectList.Add(1);
  7128. }
  7129. }
  7130. if (stockMaidCount2 > 2)
  7131. {
  7132. if (editMaid >= 2)
  7133. {
  7134. selectList.Add(1);
  7135. }
  7136. else if (stockMaidCount2 > 3)
  7137. {
  7138. selectList.Add(2);
  7139. }
  7140. }
  7141. if (stockMaidCount2 > 3)
  7142. {
  7143. if (editMaid >= 3)
  7144. {
  7145. selectList.Add(2);
  7146. }
  7147. else if (stockMaidCount2 > 4)
  7148. {
  7149. selectList.Add(3);
  7150. }
  7151. }
  7152. if (stockMaidCount2 > 4)
  7153. {
  7154. if (editMaid >= 4)
  7155. {
  7156. selectList.Add(3);
  7157. }
  7158. else if (stockMaidCount2 > 5)
  7159. {
  7160. selectList.Add(4);
  7161. }
  7162. }
  7163. if (stockMaidCount2 > 5)
  7164. {
  7165. if (editMaid >= 5)
  7166. {
  7167. selectList.Add(4);
  7168. }
  7169. else if (stockMaidCount2 > 6)
  7170. {
  7171. selectList.Add(5);
  7172. }
  7173. }
  7174. if (stockMaidCount2 > 6)
  7175. {
  7176. if (editMaid >= 6)
  7177. {
  7178. selectList.Add(5);
  7179. }
  7180. else if (stockMaidCount2 > 7)
  7181. {
  7182. selectList.Add(6);
  7183. }
  7184. }
  7185. }
  7186. }
  7187. if (GUI.Button(new Rect(rectWin.width * 0.5f, GetPix(52), rectWin.width * 0.4f, GetPix(23)),
  7188. "選択解除",
  7189. style4))
  7190. {
  7191. selectList = new ArrayList();
  7192. if (sceneLevel == 5)
  7193. {
  7194. selectList.Add(editMaid);
  7195. }
  7196. }
  7197. GUI.enabled = true;
  7198. scrollPos = GUI.BeginScrollView(position, scrollPos, viewRect);
  7199. for (int nStockNo = 0; nStockNo < characterMgr.GetStockMaidCount(); ++nStockNo)
  7200. {
  7201. GUI.enabled = true;
  7202. GUI.DrawTexture(new Rect(2f, y + 2f, (float)(rectWin.width * 0.829999983310699 - 4.0), pix - 4f),
  7203. Texture2D.whiteTexture);
  7204. bool flag2 = false;
  7205. for (int index = 0; index < selectList.Count; ++index)
  7206. {
  7207. if ((int)selectList[index] == nStockNo)
  7208. {
  7209. flag2 = true;
  7210. break;
  7211. }
  7212. }
  7213. if (comboBoxControl.isClickedComboButton)
  7214. {
  7215. GUI.enabled = false;
  7216. GUI.Button(new Rect(0.0f, y, rectWin.width * 0.83f, pix), "", style2);
  7217. GUI.Button(new Rect(0.0f, y, rectWin.width * 0.83f, pix), "", style2);
  7218. }
  7219. if (GUI.Button(new Rect(0.0f, y, rectWin.width * 0.83f, pix), "", style2))
  7220. {
  7221. if (flag2)
  7222. {
  7223. for (int index = 0; index < selectList.Count; ++index)
  7224. {
  7225. if ((int)selectList[index] == nStockNo && (sceneLevel != 5 || (int)selectList[index] != editMaid))
  7226. {
  7227. selectList.Remove(nStockNo);
  7228. break;
  7229. }
  7230. }
  7231. }
  7232. else
  7233. {
  7234. if (selectList.Count > maxMaidCnt - 1)
  7235. {
  7236. selectList.Remove(selectList[maxMaidCnt - 1]);
  7237. }
  7238. selectList.Add(nStockNo);
  7239. }
  7240. }
  7241. GUI.enabled = true;
  7242. if (flag2)
  7243. {
  7244. GUI.DrawTexture(new Rect(5f, y + 5f, (float)(rectWin.width * 0.829999983310699 - 10.0), pix - 10f),
  7245. Texture2D.whiteTexture);
  7246. }
  7247. if (characterMgr.GetStockMaid(nStockNo).GetThumIcon())
  7248. {
  7249. GUI.DrawTexture(new Rect(0.0f, y - 5f, pix, pix), characterMgr.GetStockMaid(nStockNo).GetThumIcon());
  7250. }
  7251. string text = characterMgr.GetStockMaid(nStockNo).status.lastName + "\n"
  7252. + characterMgr.GetStockMaid(nStockNo).status.firstName;
  7253. guiStyleState.textColor = Color.black;
  7254. style1.normal = guiStyleState;
  7255. GUI.Label(new Rect(GetPix(65), y + pix / 4f, pix * 2f, pix * 3f), text, style1);
  7256. if (flag2)
  7257. {
  7258. for (int index = 0; index < selectList.Count; ++index)
  7259. {
  7260. if ((int)selectList[index] == nStockNo)
  7261. {
  7262. GUI.Label(new Rect(rectWin.width * 0.7f, y + 6f, pix, pix), (index + 1).ToString(), style1);
  7263. break;
  7264. }
  7265. }
  7266. }
  7267. y += pix + GetPix(5);
  7268. }
  7269. GUI.EndScrollView();
  7270. guiStyleState.textColor = Color.white;
  7271. style1.normal = guiStyleState;
  7272. comboBoxControl.List(new Rect(GetPix(10), GetPix(25), rectWin.width * 0.56f, GetPix(24)),
  7273. comboBoxList[comboBoxControl.GetSelectedItemIndex()].text,
  7274. comboBoxList,
  7275. listStyle);
  7276. bool OKButton = GUI.Button(new Rect(rectWin.width * 0.66f, GetPix(25), rectWin.width * 0.24f, GetPix(24)),
  7277. "決定",
  7278. style4);
  7279. GUI.DragWindow();
  7280. if (!OKButton)
  7281. {
  7282. return;
  7283. }
  7284. for (int index = 0; index < maxMaidCnt; ++index)
  7285. {
  7286. isStop[index] = false;
  7287. }
  7288. switch (comboBoxControl.GetSelectedItemIndex())
  7289. {
  7290. case 0:
  7291. for (int index = 0; index < maidCnt; ++index)
  7292. {
  7293. Vector3 zero1 = Vector3.zero;
  7294. Vector3 zero2 = Vector3.zero;
  7295. if (selectList.Count <= 7)
  7296. {
  7297. if (selectList.Count % 2 == 1)
  7298. {
  7299. switch (index)
  7300. {
  7301. case 0:
  7302. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.0f));
  7303. break;
  7304. case 1:
  7305. maidArray[index].SetPos(new Vector3(-0.6f, 0.0f, 0.26f));
  7306. break;
  7307. case 2:
  7308. maidArray[index].SetPos(new Vector3(0.6f, 0.0f, 0.26f));
  7309. break;
  7310. case 3:
  7311. maidArray[index].SetPos(new Vector3(-1.1f, 0.0f, 0.69f));
  7312. break;
  7313. case 4:
  7314. maidArray[index].SetPos(new Vector3(1.1f, 0.0f, 0.69f));
  7315. break;
  7316. case 5:
  7317. maidArray[index].SetPos(new Vector3(-1.47f, 0.0f, 1.1f));
  7318. break;
  7319. case 6:
  7320. maidArray[index].SetPos(new Vector3(1.47f, 0.0f, 1.1f));
  7321. break;
  7322. }
  7323. }
  7324. else
  7325. {
  7326. switch (index)
  7327. {
  7328. case 0:
  7329. maidArray[index].SetPos(new Vector3(0.3f, 0.0f, 0.0f));
  7330. break;
  7331. case 1:
  7332. maidArray[index].SetPos(new Vector3(-0.3f, 0.0f, 0.0f));
  7333. break;
  7334. case 2:
  7335. maidArray[index].SetPos(new Vector3(0.7f, 0.0f, 0.4f));
  7336. break;
  7337. case 3:
  7338. maidArray[index].SetPos(new Vector3(-0.7f, 0.0f, 0.4f));
  7339. break;
  7340. case 4:
  7341. maidArray[index].SetPos(new Vector3(1f, 0.0f, 0.9f));
  7342. break;
  7343. case 5:
  7344. maidArray[index].SetPos(new Vector3(-1f, 0.0f, 0.9f));
  7345. break;
  7346. }
  7347. }
  7348. }
  7349. else
  7350. {
  7351. float num1 = 0.0f;
  7352. if (selectList.Count >= 11)
  7353. {
  7354. float num2 = -0.4f;
  7355. if (selectList.Count % 2 == 1)
  7356. {
  7357. switch (index)
  7358. {
  7359. case 0:
  7360. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.0f + num2));
  7361. break;
  7362. case 1:
  7363. maidArray[index].SetPos(new Vector3(-0.5f, 0.0f, 0.2f + num2));
  7364. break;
  7365. case 2:
  7366. maidArray[index].SetPos(new Vector3(0.5f, 0.0f, 0.2f + num2));
  7367. break;
  7368. case 3:
  7369. maidArray[index].SetPos(new Vector3(-0.9f, 0.0f, 0.55f + num2));
  7370. break;
  7371. case 4:
  7372. maidArray[index].SetPos(new Vector3(0.9f, 0.0f, 0.55f + num2));
  7373. break;
  7374. case 5:
  7375. maidArray[index].SetPos(new Vector3(-1.25f, 0.0f, 0.9f + num2));
  7376. break;
  7377. case 6:
  7378. maidArray[index].SetPos(new Vector3(1.25f, 0.0f, 0.9f + num2));
  7379. break;
  7380. case 7:
  7381. maidArray[index].SetPos(new Vector3(-1.57f, 0.0f, 1.3f + num2));
  7382. break;
  7383. case 8:
  7384. maidArray[index].SetPos(new Vector3(1.57f, 0.0f, 1.3f + num2));
  7385. break;
  7386. case 9:
  7387. maidArray[index].SetPos(new Vector3(-1.77f, 0.0f, 1.72f + num2));
  7388. break;
  7389. case 10:
  7390. maidArray[index].SetPos(new Vector3(1.77f, 0.0f, 1.72f + num2));
  7391. break;
  7392. case 11:
  7393. maidArray[index].SetPos(new Vector3(-1.85f, 0.0f, 2.17f + num2));
  7394. break;
  7395. case 12:
  7396. maidArray[index].SetPos(new Vector3(1.85f, 0.0f, 2.17f + num2));
  7397. break;
  7398. default:
  7399. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f + num2));
  7400. break;
  7401. }
  7402. }
  7403. else
  7404. {
  7405. switch (index)
  7406. {
  7407. case 0:
  7408. maidArray[index].SetPos(new Vector3(0.25f, 0.0f, 0.0f + num2));
  7409. break;
  7410. case 1:
  7411. maidArray[index].SetPos(new Vector3(-0.25f, 0.0f, 0.0f + num2));
  7412. break;
  7413. case 2:
  7414. maidArray[index].SetPos(new Vector3(0.7f, 0.0f, 0.25f + num2));
  7415. break;
  7416. case 3:
  7417. maidArray[index].SetPos(new Vector3(-0.7f, 0.0f, 0.25f + num2));
  7418. break;
  7419. case 4:
  7420. maidArray[index].SetPos(new Vector3(1.05f, 0.0f, 0.6f + num2));
  7421. break;
  7422. case 5:
  7423. maidArray[index].SetPos(new Vector3(-1.05f, 0.0f, 0.6f + num2));
  7424. break;
  7425. case 6:
  7426. maidArray[index].SetPos(new Vector3(1.35f, 0.0f, 0.9f + num2));
  7427. break;
  7428. case 7:
  7429. maidArray[index].SetPos(new Vector3(-1.35f, 0.0f, 0.9f + num2));
  7430. break;
  7431. case 8:
  7432. maidArray[index].SetPos(new Vector3(1.6f, 0.0f, 1.3f + num2));
  7433. break;
  7434. case 9:
  7435. maidArray[index].SetPos(new Vector3(-1.6f, 0.0f, 1.3f + num2));
  7436. break;
  7437. case 10:
  7438. maidArray[index].SetPos(new Vector3(1.8f, 0.0f, 1.72f + num2));
  7439. break;
  7440. case 11:
  7441. maidArray[index].SetPos(new Vector3(-1.8f, 0.0f, 1.72f + num2));
  7442. break;
  7443. case 12:
  7444. maidArray[index].SetPos(new Vector3(1.9f, 0.0f, 2.17f + num2));
  7445. break;
  7446. case 13:
  7447. maidArray[index].SetPos(new Vector3(-1.9f, 0.0f, 2.17f + num2));
  7448. break;
  7449. default:
  7450. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f + num2));
  7451. break;
  7452. }
  7453. }
  7454. }
  7455. else if (selectList.Count >= 8)
  7456. {
  7457. if (selectList.Count >= 9)
  7458. {
  7459. num1 = -0.2f;
  7460. }
  7461. if (selectList.Count % 2 == 1)
  7462. {
  7463. switch (index)
  7464. {
  7465. case 0:
  7466. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.0f + num1));
  7467. break;
  7468. case 1:
  7469. maidArray[index].SetPos(new Vector3(-0.55f, 0.0f, 0.2f + num1));
  7470. break;
  7471. case 2:
  7472. maidArray[index].SetPos(new Vector3(0.55f, 0.0f, 0.2f + num1));
  7473. break;
  7474. case 3:
  7475. maidArray[index].SetPos(new Vector3(-1f, 0.0f, 0.6f + num1));
  7476. break;
  7477. case 4:
  7478. maidArray[index].SetPos(new Vector3(1f, 0.0f, 0.6f + num1));
  7479. break;
  7480. case 5:
  7481. maidArray[index].SetPos(new Vector3(-1.35f, 0.0f, 1f + num1));
  7482. break;
  7483. case 6:
  7484. maidArray[index].SetPos(new Vector3(1.35f, 0.0f, 1f + num1));
  7485. break;
  7486. case 7:
  7487. maidArray[index].SetPos(new Vector3(-1.6f, 0.0f, 1.4f + num1));
  7488. break;
  7489. case 8:
  7490. maidArray[index].SetPos(new Vector3(1.6f, 0.0f, 1.4f + num1));
  7491. break;
  7492. }
  7493. }
  7494. else
  7495. {
  7496. switch (index)
  7497. {
  7498. case 0:
  7499. maidArray[index].SetPos(new Vector3(0.28f, 0.0f, 0.0f + num1));
  7500. break;
  7501. case 1:
  7502. maidArray[index].SetPos(new Vector3(-0.28f, 0.0f, 0.0f + num1));
  7503. break;
  7504. case 2:
  7505. maidArray[index].SetPos(new Vector3(0.78f, 0.0f, 0.3f + num1));
  7506. break;
  7507. case 3:
  7508. maidArray[index].SetPos(new Vector3(-0.78f, 0.0f, 0.3f + num1));
  7509. break;
  7510. case 4:
  7511. maidArray[index].SetPos(new Vector3(1.22f, 0.0f, 0.7f + num1));
  7512. break;
  7513. case 5:
  7514. maidArray[index].SetPos(new Vector3(-1.22f, 0.0f, 0.7f + num1));
  7515. break;
  7516. case 6:
  7517. maidArray[index].SetPos(new Vector3(1.55f, 0.0f, 1.1f + num1));
  7518. break;
  7519. case 7:
  7520. maidArray[index].SetPos(new Vector3(-1.55f, 0.0f, 1.1f + num1));
  7521. break;
  7522. case 8:
  7523. maidArray[index].SetPos(new Vector3(1.77f, 0.0f, 1.58f + num1));
  7524. break;
  7525. case 9:
  7526. maidArray[index].SetPos(new Vector3(-1.77f, 0.0f, 1.58f + num1));
  7527. break;
  7528. }
  7529. }
  7530. }
  7531. }
  7532. zero2.y = (float)(Math.Atan2(maidArray[index].transform.position.x,
  7533. maidArray[index].transform.position.z - 1.5) * 180.0 / Math.PI) + 180f;
  7534. maidArray[index].SetRot(zero2);
  7535. }
  7536. break;
  7537. case 1:
  7538. for (int index = 0; index < maidCnt; ++index)
  7539. {
  7540. Vector3 zero1 = Vector3.zero;
  7541. Vector3 zero2 = Vector3.zero;
  7542. if (maidCnt < 9)
  7543. {
  7544. switch (index)
  7545. {
  7546. case 1:
  7547. zero1.x = -0.6f;
  7548. break;
  7549. case 2:
  7550. zero1.x = 0.6f;
  7551. break;
  7552. case 3:
  7553. zero1.x = -1.2f;
  7554. break;
  7555. case 4:
  7556. zero1.x = 1.2f;
  7557. break;
  7558. case 5:
  7559. zero1.x = -1.8f;
  7560. break;
  7561. case 6:
  7562. zero1.x = 1.8f;
  7563. break;
  7564. case 7:
  7565. zero1.x = -2.4f;
  7566. break;
  7567. case 8:
  7568. zero1.x = 2.4f;
  7569. break;
  7570. case 9:
  7571. zero1.x = -3f;
  7572. break;
  7573. case 10:
  7574. zero1.x = 3f;
  7575. break;
  7576. }
  7577. }
  7578. else
  7579. {
  7580. switch (index)
  7581. {
  7582. case 1:
  7583. zero1.x = -0.5f;
  7584. break;
  7585. case 2:
  7586. zero1.x = 0.5f;
  7587. break;
  7588. case 3:
  7589. zero1.x = -1f;
  7590. break;
  7591. case 4:
  7592. zero1.x = 1f;
  7593. break;
  7594. case 5:
  7595. zero1.x = -1.5f;
  7596. break;
  7597. case 6:
  7598. zero1.x = 1.5f;
  7599. break;
  7600. case 7:
  7601. zero1.x = -2f;
  7602. break;
  7603. case 8:
  7604. zero1.x = 2f;
  7605. break;
  7606. case 9:
  7607. zero1.x = -2.5f;
  7608. break;
  7609. case 10:
  7610. zero1.x = 2.5f;
  7611. break;
  7612. case 11:
  7613. zero1.x = -3f;
  7614. break;
  7615. case 12:
  7616. zero1.x = 3f;
  7617. break;
  7618. case 13:
  7619. zero1.x = -3.5f;
  7620. break;
  7621. }
  7622. }
  7623. maidArray[index].SetPos(zero1);
  7624. maidArray[index].SetRot(zero2);
  7625. if (index >= 14)
  7626. {
  7627. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
  7628. }
  7629. }
  7630. break;
  7631. case 2:
  7632. for (int index = 0; index < maidCnt; ++index)
  7633. {
  7634. Vector3 zero1 = Vector3.zero;
  7635. Vector3 zero2 = Vector3.zero;
  7636. if (maidCnt < 9)
  7637. {
  7638. switch (index)
  7639. {
  7640. case 1:
  7641. zero1.z = 0.6f;
  7642. break;
  7643. case 2:
  7644. zero1.z = -0.6f;
  7645. break;
  7646. case 3:
  7647. zero1.z = 1.2f;
  7648. break;
  7649. case 4:
  7650. zero1.z = -1.2f;
  7651. break;
  7652. case 5:
  7653. zero1.z = 1.8f;
  7654. break;
  7655. case 6:
  7656. zero1.z = -1.8f;
  7657. break;
  7658. case 7:
  7659. zero1.z = 2.4f;
  7660. break;
  7661. case 8:
  7662. zero1.z = -2.4f;
  7663. break;
  7664. case 9:
  7665. zero1.z = 3f;
  7666. break;
  7667. case 10:
  7668. zero1.z = -3f;
  7669. break;
  7670. }
  7671. }
  7672. else
  7673. {
  7674. switch (index)
  7675. {
  7676. case 1:
  7677. zero1.z = 0.5f;
  7678. break;
  7679. case 2:
  7680. zero1.z = -0.5f;
  7681. break;
  7682. case 3:
  7683. zero1.z = 1f;
  7684. break;
  7685. case 4:
  7686. zero1.z = -1f;
  7687. break;
  7688. case 5:
  7689. zero1.z = 1.5f;
  7690. break;
  7691. case 6:
  7692. zero1.z = -1.5f;
  7693. break;
  7694. case 7:
  7695. zero1.z = 2f;
  7696. break;
  7697. case 8:
  7698. zero1.z = -2f;
  7699. break;
  7700. case 9:
  7701. zero1.z = 2.5f;
  7702. break;
  7703. case 10:
  7704. zero1.z = -2.5f;
  7705. break;
  7706. case 11:
  7707. zero1.z = 3f;
  7708. break;
  7709. case 12:
  7710. zero1.z = -3f;
  7711. break;
  7712. case 13:
  7713. zero1.z = 3.5f;
  7714. break;
  7715. }
  7716. }
  7717. maidArray[index].SetPos(zero1);
  7718. maidArray[index].SetRot(zero2);
  7719. if (index >= 14)
  7720. {
  7721. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
  7722. }
  7723. }
  7724. break;
  7725. case 3:
  7726. for (int index = 0; index < maidCnt; ++index)
  7727. {
  7728. Vector3 zero1 = Vector3.zero;
  7729. Vector3 zero2 = Vector3.zero;
  7730. float num = 0.5f;
  7731. if (maidCnt > 11)
  7732. {
  7733. num = 0.25f;
  7734. }
  7735. else if (maidCnt > 9)
  7736. {
  7737. num = 0.32f;
  7738. }
  7739. else if (maidCnt > 7)
  7740. {
  7741. num = 0.4f;
  7742. }
  7743. switch (index)
  7744. {
  7745. case 1:
  7746. zero1.x = -num;
  7747. zero1.z = num;
  7748. break;
  7749. case 2:
  7750. zero1.x = num;
  7751. zero1.z = -num;
  7752. break;
  7753. case 3:
  7754. zero1.x = (float)(-num * 2.0);
  7755. zero1.z = num * 2f;
  7756. break;
  7757. case 4:
  7758. zero1.x = num * 2f;
  7759. zero1.z = (float)(-num * 2.0);
  7760. break;
  7761. case 5:
  7762. zero1.x = (float)(-num * 3.0);
  7763. zero1.z = num * 3f;
  7764. break;
  7765. case 6:
  7766. zero1.x = num * 3f;
  7767. zero1.z = (float)(-num * 3.0);
  7768. break;
  7769. case 7:
  7770. zero1.x = (float)(-num * 4.0);
  7771. zero1.z = num * 4f;
  7772. break;
  7773. case 8:
  7774. zero1.x = num * 4f;
  7775. zero1.z = (float)(-num * 4.0);
  7776. break;
  7777. case 9:
  7778. zero1.x = (float)(-num * 5.0);
  7779. zero1.z = num * 5f;
  7780. break;
  7781. case 10:
  7782. zero1.x = num * 5f;
  7783. zero1.z = (float)(-num * 5.0);
  7784. break;
  7785. case 11:
  7786. zero1.x = (float)(-num * 6.0);
  7787. zero1.z = num * 6f;
  7788. break;
  7789. case 12:
  7790. zero1.x = num * 6f;
  7791. zero1.z = (float)(-num * 6.0);
  7792. break;
  7793. case 13:
  7794. zero1.x = (float)(-num * 7.0);
  7795. zero1.z = num * 7f;
  7796. break;
  7797. }
  7798. maidArray[index].SetPos(zero1);
  7799. maidArray[index].SetRot(zero2);
  7800. if (index >= 14)
  7801. {
  7802. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
  7803. }
  7804. }
  7805. break;
  7806. case 4:
  7807. for (int index = 0; index < maidCnt; ++index)
  7808. {
  7809. Vector3 zero1 = Vector3.zero;
  7810. Vector3 zero2 = Vector3.zero;
  7811. float num = (float)(0.400000005960464 + 0.0799999982118607 * maidCnt);
  7812. zero1.x = num * (float)Math.Cos(Math.PI / 180.0 * (90 + 360 * index / maidCnt));
  7813. zero1.z = num * (float)Math.Sin(Math.PI / 180.0 * (90 + 360 * index / maidCnt));
  7814. maidArray[index].SetPos(zero1);
  7815. zero2.y = (float)(Math.Atan2(zero1.x, zero1.z) * 180.0 / Math.PI);
  7816. maidArray[index].SetRot(zero2);
  7817. }
  7818. break;
  7819. case 5:
  7820. for (int index = 0; index < maidCnt; ++index)
  7821. {
  7822. Vector3 zero1 = Vector3.zero;
  7823. Vector3 zero2 = Vector3.zero;
  7824. float num = (float)(0.400000005960464 + 0.0799999982118607 * maidCnt);
  7825. zero1.x = num * (float)Math.Cos(Math.PI / 180.0 * (90 + 360 * index / maidCnt));
  7826. zero1.z = num * (float)Math.Sin(Math.PI / 180.0 * (90 + 360 * index / maidCnt));
  7827. maidArray[index].SetPos(zero1);
  7828. zero2.y = (float)(Math.Atan2(zero1.x, zero1.z) * 180.0 / Math.PI) + 180f;
  7829. maidArray[index].SetRot(zero2);
  7830. }
  7831. break;
  7832. case 6:
  7833. for (int index = 0; index < maidCnt; ++index)
  7834. {
  7835. Vector3 zero1 = Vector3.zero;
  7836. Vector3 zero2 = Vector3.zero;
  7837. float num = 0.0f;
  7838. if (maidCnt > 9)
  7839. {
  7840. num = -0.4f;
  7841. }
  7842. else if (maidCnt > 7)
  7843. {
  7844. num = -0.2f;
  7845. }
  7846. switch (index)
  7847. {
  7848. case 0:
  7849. zero1.z = 0.3f;
  7850. break;
  7851. case 1:
  7852. zero1.x = -0.9f;
  7853. zero1.z = -0.4f;
  7854. zero2.y = 40f;
  7855. break;
  7856. case 2:
  7857. zero1.x = 0.9f;
  7858. zero1.z = -0.4f;
  7859. zero2.y = -40f;
  7860. break;
  7861. case 3:
  7862. zero1.x = -0.4f;
  7863. zero1.z = -0.8f;
  7864. zero2.y = 20f;
  7865. break;
  7866. case 4:
  7867. zero1.x = 0.4f;
  7868. zero1.z = -0.8f;
  7869. zero2.y = -20f;
  7870. break;
  7871. case 5:
  7872. zero1.x = -1.2f;
  7873. zero1.z = 0.1f;
  7874. zero2.y = 60f;
  7875. break;
  7876. case 6:
  7877. zero1.x = 1.2f;
  7878. zero1.z = 0.1f;
  7879. zero2.y = -60f;
  7880. break;
  7881. case 7:
  7882. zero1.x = -1.5f;
  7883. zero1.z = 0.6f;
  7884. zero2.y = 80f;
  7885. break;
  7886. case 8:
  7887. zero1.x = 1.5f;
  7888. zero1.z = 0.6f;
  7889. zero2.y = -80f;
  7890. break;
  7891. case 9:
  7892. zero1.x = -1.6f;
  7893. zero1.z = 1.15f;
  7894. zero2.y = 100f;
  7895. break;
  7896. case 10:
  7897. zero1.x = 1.6f;
  7898. zero1.z = 1.15f;
  7899. zero2.y = -100f;
  7900. break;
  7901. case 11:
  7902. zero1.x = -1.6f;
  7903. zero1.z = 1.65f;
  7904. zero2.y = 110f;
  7905. break;
  7906. case 12:
  7907. zero1.x = 1.65f;
  7908. zero1.z = 1.65f;
  7909. zero2.y = -110f;
  7910. break;
  7911. case 13:
  7912. zero1.x = -1.65f;
  7913. zero1.z = 2.15f;
  7914. zero2.y = 120f;
  7915. break;
  7916. }
  7917. if (index > 0)
  7918. {
  7919. zero1.z += num;
  7920. }
  7921. else
  7922. {
  7923. zero1.z -= num;
  7924. }
  7925. maidArray[index].SetPos(zero1);
  7926. maidArray[index].SetRot(zero2);
  7927. if (index >= 14)
  7928. {
  7929. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
  7930. }
  7931. }
  7932. break;
  7933. case 7:
  7934. for (int index = 0; index < maidCnt; ++index)
  7935. {
  7936. Vector3 zero1 = Vector3.zero;
  7937. Vector3 zero2 = Vector3.zero;
  7938. float num = 0.0f;
  7939. if (maidCnt > 11)
  7940. {
  7941. num = 0.6f;
  7942. }
  7943. else if (maidCnt > 9)
  7944. {
  7945. num = 0.4f;
  7946. }
  7947. else if (maidCnt > 7)
  7948. {
  7949. num = 0.2f;
  7950. }
  7951. switch (index)
  7952. {
  7953. case 0:
  7954. zero1.z = 0.8f;
  7955. break;
  7956. case 1:
  7957. zero1.x = -0.45f;
  7958. zero1.z = 0.3f;
  7959. zero2.y = -10f;
  7960. break;
  7961. case 2:
  7962. zero1.x = 0.45f;
  7963. zero1.z = 0.3f;
  7964. zero2.y = 10f;
  7965. break;
  7966. case 3:
  7967. zero1.x = -0.8f;
  7968. zero1.z = -0.2f;
  7969. zero2.y = -20f;
  7970. break;
  7971. case 4:
  7972. zero1.x = 0.8f;
  7973. zero1.z = -0.2f;
  7974. zero2.y = 20f;
  7975. break;
  7976. case 5:
  7977. zero1.x = -1.2f;
  7978. zero1.z = -0.75f;
  7979. zero2.y = -30f;
  7980. break;
  7981. case 6:
  7982. zero1.x = 1.2f;
  7983. zero1.z = -0.75f;
  7984. zero2.y = 30f;
  7985. break;
  7986. case 7:
  7987. zero1.x = -1.6f;
  7988. zero1.z = -1.25f;
  7989. zero2.y = -40f;
  7990. break;
  7991. case 8:
  7992. zero1.x = 1.6f;
  7993. zero1.z = -1.25f;
  7994. zero2.y = 40f;
  7995. break;
  7996. case 9:
  7997. zero1.x = -2f;
  7998. zero1.z = -1.75f;
  7999. zero2.y = -50f;
  8000. break;
  8001. case 10:
  8002. zero1.x = 2f;
  8003. zero1.z = -1.75f;
  8004. zero2.y = 50f;
  8005. break;
  8006. case 11:
  8007. zero1.x = -2.4f;
  8008. zero1.z = -2.25f;
  8009. zero2.y = -60f;
  8010. break;
  8011. case 12:
  8012. zero1.x = 2.4f;
  8013. zero1.z = -2.25f;
  8014. zero2.y = 60f;
  8015. break;
  8016. case 13:
  8017. zero1.x = -2.8f;
  8018. zero1.z = -2.75f;
  8019. zero2.y = -70f;
  8020. break;
  8021. }
  8022. zero1.z += num;
  8023. maidArray[index].SetPos(zero1);
  8024. maidArray[index].SetRot(zero2);
  8025. if (index >= 14)
  8026. {
  8027. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
  8028. }
  8029. }
  8030. break;
  8031. case 8:
  8032. for (int index = 0; index < maidCnt; ++index)
  8033. {
  8034. Vector3 zero1 = Vector3.zero;
  8035. Vector3 zero2 = Vector3.zero;
  8036. float num = 0.0f;
  8037. if (maidCnt > 11)
  8038. {
  8039. num = -0.6f;
  8040. }
  8041. else if (maidCnt > 9)
  8042. {
  8043. num = -0.4f;
  8044. }
  8045. else if (maidCnt > 7)
  8046. {
  8047. num = -0.2f;
  8048. }
  8049. switch (index)
  8050. {
  8051. case 0:
  8052. zero1.z = -0.75f;
  8053. break;
  8054. case 1:
  8055. zero1.x = -0.45f;
  8056. zero1.z = -0.2f;
  8057. zero2.y = 20f;
  8058. break;
  8059. case 2:
  8060. zero1.x = 0.45f;
  8061. zero1.z = -0.2f;
  8062. zero2.y = -20f;
  8063. break;
  8064. case 3:
  8065. zero1.x = -0.8f;
  8066. zero1.z = 0.3f;
  8067. zero2.y = 35f;
  8068. break;
  8069. case 4:
  8070. zero1.x = 0.8f;
  8071. zero1.z = 0.3f;
  8072. zero2.y = -35f;
  8073. break;
  8074. case 5:
  8075. zero1.x = -1.2f;
  8076. zero1.z = 0.8f;
  8077. zero2.y = 50f;
  8078. break;
  8079. case 6:
  8080. zero1.x = 1.2f;
  8081. zero1.z = 0.8f;
  8082. zero2.y = -50f;
  8083. break;
  8084. case 7:
  8085. zero1.x = -1.6f;
  8086. zero1.z = 1.3f;
  8087. zero2.y = 65f;
  8088. break;
  8089. case 8:
  8090. zero1.x = 1.6f;
  8091. zero1.z = 1.3f;
  8092. zero2.y = -65f;
  8093. break;
  8094. case 9:
  8095. zero1.x = -2f;
  8096. zero1.z = 1.8f;
  8097. zero2.y = 80f;
  8098. break;
  8099. case 10:
  8100. zero1.x = 2f;
  8101. zero1.z = 1.8f;
  8102. zero2.y = -80f;
  8103. break;
  8104. case 11:
  8105. zero1.x = -2.4f;
  8106. zero1.z = 2.3f;
  8107. zero2.y = 90f;
  8108. break;
  8109. case 12:
  8110. zero1.x = 2.4f;
  8111. zero1.z = 2.3f;
  8112. zero2.y = -90f;
  8113. break;
  8114. case 13:
  8115. zero1.x = -2.8f;
  8116. zero1.z = 2.8f;
  8117. zero2.y = 100f;
  8118. break;
  8119. }
  8120. zero1.z += num;
  8121. maidArray[index].SetPos(zero1);
  8122. maidArray[index].SetRot(zero2);
  8123. if (index >= 14)
  8124. {
  8125. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
  8126. }
  8127. }
  8128. break;
  8129. case 9:
  8130. for (int index = 0; index < maidCnt; ++index)
  8131. {
  8132. Vector3 zero1 = Vector3.zero;
  8133. Vector3 zero2 = Vector3.zero;
  8134. float num = 1f;
  8135. if (maidCnt > 9)
  8136. {
  8137. num = 0.84f;
  8138. }
  8139. else if (maidCnt > 7)
  8140. {
  8141. num = 0.92f;
  8142. }
  8143. switch (index)
  8144. {
  8145. case 0:
  8146. zero1.z = 0.0f;
  8147. break;
  8148. case 1:
  8149. zero1.x = -0.5f;
  8150. zero1.z = -0.5f;
  8151. break;
  8152. case 2:
  8153. zero1.x = 0.5f;
  8154. zero1.z = -0.5f;
  8155. break;
  8156. case 3:
  8157. zero1.x = -1f;
  8158. zero1.z = 0.2f;
  8159. break;
  8160. case 4:
  8161. zero1.x = 1f;
  8162. zero1.z = 0.2f;
  8163. break;
  8164. case 5:
  8165. zero1.x = -1.5f;
  8166. zero1.z = -0.5f;
  8167. break;
  8168. case 6:
  8169. zero1.x = 1.5f;
  8170. zero1.z = -0.5f;
  8171. break;
  8172. case 7:
  8173. zero1.x = -2f;
  8174. zero1.z = 0.2f;
  8175. break;
  8176. case 8:
  8177. zero1.x = 2f;
  8178. zero1.z = 0.2f;
  8179. break;
  8180. case 9:
  8181. zero1.x = -2.5f;
  8182. zero1.z = -0.5f;
  8183. break;
  8184. case 10:
  8185. zero1.x = 2.5f;
  8186. zero1.z = -0.5f;
  8187. break;
  8188. case 11:
  8189. zero1.x = -3f;
  8190. zero1.z = 0.2f;
  8191. break;
  8192. case 12:
  8193. zero1.x = 3f;
  8194. zero1.z = 0.2f;
  8195. break;
  8196. case 13:
  8197. zero1.x = -3.5f;
  8198. zero1.z = -0.5f;
  8199. break;
  8200. }
  8201. zero1.x *= num;
  8202. maidArray[index].SetPos(zero1);
  8203. maidArray[index].SetRot(zero2);
  8204. if (index >= 14)
  8205. {
  8206. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
  8207. }
  8208. }
  8209. break;
  8210. case 10:
  8211. for (int index = 0; index < maidCnt; ++index)
  8212. {
  8213. Vector3 zero1 = Vector3.zero;
  8214. Vector3 zero2 = Vector3.zero;
  8215. float num = 1f;
  8216. if (maidCnt > 9)
  8217. {
  8218. num = 0.84f;
  8219. }
  8220. else if (maidCnt > 7)
  8221. {
  8222. num = 0.92f;
  8223. }
  8224. switch (index)
  8225. {
  8226. case 0:
  8227. zero1.z = -0.4f;
  8228. break;
  8229. case 1:
  8230. zero1.x = -0.5f;
  8231. zero1.z = 0.2f;
  8232. break;
  8233. case 2:
  8234. zero1.x = 0.5f;
  8235. zero1.z = 0.2f;
  8236. break;
  8237. case 3:
  8238. zero1.x = -1f;
  8239. zero1.z = -0.5f;
  8240. break;
  8241. case 4:
  8242. zero1.x = 1f;
  8243. zero1.z = -0.5f;
  8244. break;
  8245. case 5:
  8246. zero1.x = -1.5f;
  8247. zero1.z = 0.2f;
  8248. break;
  8249. case 6:
  8250. zero1.x = 1.5f;
  8251. zero1.z = 0.2f;
  8252. break;
  8253. case 7:
  8254. zero1.x = -2f;
  8255. zero1.z = -0.5f;
  8256. break;
  8257. case 8:
  8258. zero1.x = 2f;
  8259. zero1.z = -0.5f;
  8260. break;
  8261. case 9:
  8262. zero1.x = -2.5f;
  8263. zero1.z = 0.2f;
  8264. break;
  8265. case 10:
  8266. zero1.x = 2.5f;
  8267. zero1.z = 0.2f;
  8268. break;
  8269. case 11:
  8270. zero1.x = -3f;
  8271. zero1.z = -0.5f;
  8272. break;
  8273. case 12:
  8274. zero1.x = 3f;
  8275. zero1.z = -0.5f;
  8276. break;
  8277. case 13:
  8278. zero1.x = -3.5f;
  8279. zero1.z = 0.2f;
  8280. break;
  8281. }
  8282. zero1.x *= num;
  8283. maidArray[index].SetPos(zero1);
  8284. maidArray[index].SetRot(zero2);
  8285. if (index >= 14)
  8286. {
  8287. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
  8288. }
  8289. }
  8290. break;
  8291. }
  8292. for (int index = 0; index < maxMaidCnt; ++index)
  8293. {
  8294. if (!isLock[index] && maidArray[index] != null && maidArray[index].Visible)
  8295. {
  8296. maidArray[index].CrossFade(poseArray[0] + ".anm", false, true, false, 0.0f, 1f);
  8297. maidArray[index].SetAutoTwistAll(true);
  8298. }
  8299. }
  8300. }
  8301. private void MessageWindow(int winID)
  8302. {
  8303. GUIStyle style1 = "label";
  8304. style1.fontSize = GetPix(12);
  8305. style1.alignment = TextAnchor.UpperLeft;
  8306. GUIStyle style2 = "button";
  8307. style2.fontSize = GetPix(16);
  8308. GUI.Label(new Rect(GetPix(8), GetPix(4), GetPix(80), GetPix(25)),
  8309. "名前",
  8310. style1);
  8311. inName = GUI.TextField(new Rect(GetPix(35),
  8312. GetPix(4),
  8313. GetPix(120),
  8314. GetPix(20)),
  8315. inName);
  8316. GUI.Label(new Rect(GetPix(180), GetPix(4), GetPix(100), GetPix(25)),
  8317. "サイズ",
  8318. style1);
  8319. fontSize = (int)GUI.HorizontalSlider(new Rect(GetPix(220),
  8320. GetPix(9),
  8321. GetPix(100),
  8322. GetPix(20)),
  8323. fontSize,
  8324. 25f,
  8325. 60f);
  8326. if (fontSize != mFontSize)
  8327. {
  8328. mFontSize = fontSize;
  8329. GameObject gameObject = GameObject.Find("__GameMain__/SystemUI Root").transform.Find("MessageWindowPanel").gameObject;
  8330. MessageClass messageClass = new MessageClass(gameObject, GameMain.Instance.ScriptMgr.adv_kag.MessageWindowMgr);
  8331. SetFieldValue2<UILabel, int>(UTY.GetChildObject(gameObject, "MessageViewer/MsgParent/Message", false)
  8332. .GetComponent<UILabel>(),
  8333. "mFontSize",
  8334. fontSize);
  8335. }
  8336. GUI.Label(new Rect(GetPix(325), GetPix(4), GetPix(100), GetPix(25)),
  8337. fontSize.ToString() + "pt",
  8338. style1);
  8339. inText = GUI.TextArea(new Rect(GetPix(8),
  8340. GetPix(26),
  8341. rectWin2.width - GetPix(15),
  8342. GetPix(52)),
  8343. inText,
  8344. 300);
  8345. if (GUI.Button(new Rect(GetPix(8), GetPix(82), GetPix(60), GetPix(20)),
  8346. "決定",
  8347. style2))
  8348. {
  8349. isMessage = true;
  8350. bGuiMessage = false;
  8351. GameObject gameObject1 = GameObject.Find("__GameMain__/SystemUI Root").transform.Find("MessageWindowPanel").gameObject;
  8352. MessageWindowMgr messageWindowMgr = GameMain.Instance.ScriptMgr.adv_kag.MessageWindowMgr;
  8353. messageWindowMgr.OpenMessageWindowPanel();
  8354. MessageClass inst = new MessageClass(gameObject1, messageWindowMgr);
  8355. UILabel component = UTY.GetChildObject(gameObject1, "MessageViewer/MsgParent/Message", false).GetComponent<UILabel>();
  8356. component.ProcessText();
  8357. SetFieldValue2<UILabel, int>(component, "mFontSize", fontSize);
  8358. SetFieldValue5<MessageClass, UILabel>(inst, "message_label_", component);
  8359. inst.SetText(inName, inText, "", 0, AudioSourceMgr.Type.System);
  8360. inst.FinishChAnime();
  8361. }
  8362. GUI.DragWindow();
  8363. }
  8364. private void SaveManagerWindow(int winID)
  8365. {
  8366. GUIStyle labelStyle = new GUIStyle("label");
  8367. labelStyle.fontSize = GetPix(15);
  8368. labelStyle.alignment = TextAnchor.MiddleCenter;
  8369. GUIStyle newSaveStyle = new GUIStyle("button");
  8370. newSaveStyle.alignment = TextAnchor.MiddleCenter;
  8371. newSaveStyle.fontSize = GetPix(90);
  8372. GUIStyle saveImageStyle = new GUIStyle("label");
  8373. saveImageStyle.fontSize = GetPix(12);
  8374. saveImageStyle.alignment = TextAnchor.MiddleCenter;
  8375. saveImageStyle.padding = new RectOffset(0, 0, 0, 0);
  8376. GUIStyle saveControlStyle = new GUIStyle("button");
  8377. saveControlStyle.fontSize = GetPix(12);
  8378. saveControlStyle.alignment = TextAnchor.MiddleCenter;
  8379. GUIStyle listStyle = new GUIStyle("button");
  8380. listStyle.fontSize = selectedButtonStyle.fontSize = GetPix(12);
  8381. listStyle.alignment = TextAnchor.MiddleLeft;
  8382. selectedButtonStyle.alignment = TextAnchor.MiddleLeft;
  8383. GUIStyle textFieldStyle = new GUIStyle("textfield");
  8384. textFieldStyle.alignment = TextAnchor.MiddleLeft;
  8385. GUIStyle resizeHandleStyle = new GUIStyle("label");
  8386. resizeHandleStyle.fontSize = GetPix(25);
  8387. resizeHandleStyle.alignment = TextAnchor.MiddleCenter;
  8388. // Window variables
  8389. int windowPadding = GetPix(10);
  8390. int windowPaddingY = GetPix(20);
  8391. int buttonSize = GetPix(25);
  8392. if (createSaveFlag || loadSaveFlag || manageSaveFlag || deleteDirectoryFlag || deleteFileFlag)
  8393. {
  8394. GUI.enabled = false;
  8395. }
  8396. #region Titlebar
  8397. if (GUI.Button(new Rect(
  8398. saveManagerRect.width - windowPadding - buttonSize,
  8399. windowPadding,
  8400. buttonSize,
  8401. buttonSize
  8402. ), "X", saveControlStyle))
  8403. {
  8404. faceFlg = false;
  8405. poseFlg = false;
  8406. sceneFlg = false;
  8407. kankyoFlg = true;
  8408. kankyo2Flg = false;
  8409. bGui = true;
  8410. copyIndex = 0;
  8411. }
  8412. if (GUI.Button(new Rect(
  8413. windowPadding,
  8414. windowPadding,
  8415. GetPix(65),
  8416. buttonSize
  8417. ), "Refresh", saveControlStyle))
  8418. {
  8419. RefreshSaveManager();
  8420. }
  8421. GUI.Label(new Rect(
  8422. windowPadding,
  8423. windowPadding,
  8424. saveManagerRect.width - windowPadding,
  8425. buttonSize
  8426. ), directoryList[selectedDirectory], labelStyle);
  8427. #endregion
  8428. int saveGridOffset = GetPix(200);
  8429. int saveGridX = windowPaddingY + saveGridOffset;
  8430. int saveGridY = windowPaddingY + buttonSize;
  8431. float saveGridWidth = saveManagerRect.width - saveGridX - windowPadding;
  8432. float saveGridHeight = saveManagerRect.height - saveGridY;
  8433. int numImages = saveScenes.Count;
  8434. #region Directory List
  8435. Rect dirListScrollRect = new Rect(
  8436. windowPadding,
  8437. windowPaddingY + buttonSize,
  8438. saveGridOffset,
  8439. saveGridHeight - windowPaddingY - buttonSize
  8440. );
  8441. Rect dirListScrollView = new Rect(0, 0,
  8442. saveGridOffset - 50,
  8443. GetPix(22) * (directoryList.Length + 1) + buttonSize + windowPadding
  8444. );
  8445. GUI.Box(dirListScrollRect, "");
  8446. dirListScrollPos = GUI.BeginScrollView(dirListScrollRect, dirListScrollPos, dirListScrollView);
  8447. for (int i = 0; i < directoryList.Length; i++)
  8448. {
  8449. int listEntrySize = GetPix(30);
  8450. if (GUI.Button(new Rect(0,
  8451. i * listEntrySize,
  8452. saveGridOffset,
  8453. listEntrySize), directoryList[i],
  8454. i == selectedDirectory ? selectedButtonStyle : listStyle))
  8455. {
  8456. SwitchDirectory(directoryList[i]);
  8457. }
  8458. }
  8459. GUI.EndScrollView();
  8460. if (!createDirectoryFlag)
  8461. {
  8462. if (GUI.Button(new Rect(
  8463. windowPadding,
  8464. saveGridHeight + windowPadding,
  8465. GetPix(110),
  8466. buttonSize
  8467. ), "New Folder", saveControlStyle))
  8468. {
  8469. createDirectoryFlag = true;
  8470. }
  8471. bool enabled = GUI.enabled;
  8472. GUI.enabled = selectedDirectory != 0;
  8473. if (GUI.Button(new Rect(
  8474. saveGridOffset - GetPix(80) + windowPadding,
  8475. saveGridHeight + windowPadding,
  8476. GetPix(80),
  8477. buttonSize
  8478. ), "Delete", saveControlStyle))
  8479. {
  8480. deleteDirectoryFlag = true;
  8481. }
  8482. GUI.enabled = enabled;
  8483. }
  8484. else
  8485. {
  8486. float textFieldWidth = saveGridOffset - buttonSize;
  8487. Rect cancelRect = new Rect(
  8488. textFieldWidth + windowPadding,
  8489. saveGridHeight + windowPadding,
  8490. buttonSize,
  8491. buttonSize
  8492. );
  8493. bool cancel = GUI.Button(cancelRect, "X", saveControlStyle);
  8494. GUI.SetNextControlName("textEntry");
  8495. GUI.FocusControl("textEntry");
  8496. if (cancel)
  8497. {
  8498. textFieldValue = "";
  8499. createDirectoryFlag = false;
  8500. }
  8501. else if (Event.current.Equals(Event.KeyboardEvent("return")) && GUI.GetNameOfFocusedControl() == "textEntry")
  8502. {
  8503. MakeNewDirectory(textFieldValue);
  8504. textFieldValue = "";
  8505. createDirectoryFlag = false;
  8506. }
  8507. else
  8508. {
  8509. textFieldValue = GUI.TextField(new Rect(
  8510. windowPadding,
  8511. saveGridHeight + windowPadding,
  8512. textFieldWidth,
  8513. buttonSize
  8514. ), textFieldValue, 30, textFieldStyle);
  8515. }
  8516. }
  8517. #endregion
  8518. #region SAVE_GRID
  8519. float scale = 0.55f;
  8520. float imageWidth = 480f * scale;
  8521. float imageHeight = 270f * scale;
  8522. float imagePadding = GetPix(9);
  8523. int maxColumns = Mathf.Max(1, (int)(saveGridWidth / (imageWidth + imagePadding)));
  8524. float imageGridWidth = maxColumns * (imageWidth + imagePadding);
  8525. float imageGridX = saveGridX + (saveGridWidth / 2f - imageGridWidth / 2f) - windowPadding;
  8526. float imageGridOffset = (saveGridWidth - imageGridWidth) / 2f - windowPadding;
  8527. Rect saveGridScrollRect = new Rect(
  8528. saveGridX + windowPadding
  8529. , saveGridY
  8530. , saveGridWidth - windowPadding
  8531. , saveGridHeight - windowPadding
  8532. );
  8533. Rect saveGridScrollView = new Rect(0, 0
  8534. , saveGridWidth - 50
  8535. , (saveScenes.Count / maxColumns + 1) * (imageHeight + imagePadding) + imagePadding
  8536. );
  8537. GUI.Box(new Rect(
  8538. saveGridX
  8539. , saveGridY
  8540. , saveGridWidth
  8541. , saveGridHeight - windowPadding
  8542. ), "");
  8543. saveManagerScrollPos = GUI.BeginScrollView(saveGridScrollRect, saveManagerScrollPos, saveGridScrollView);
  8544. if (GUI.Button(new Rect(
  8545. imageGridOffset
  8546. , imagePadding
  8547. , imageWidth
  8548. , imageHeight)
  8549. , "+", newSaveStyle))
  8550. {
  8551. createSaveFlag = true;
  8552. TakeScreenshot();
  8553. }
  8554. if (saveScenes.Count > 0)
  8555. {
  8556. int j = 1;
  8557. int i = saveScenes.Count - 1;
  8558. while (i >= 0)
  8559. {
  8560. float imageX = (j % maxColumns) * imageWidth + (j % maxColumns) * imagePadding + imageGridOffset;
  8561. float imageY = (j / maxColumns) * imageHeight + (j / maxColumns + 1) * imagePadding;
  8562. if (GUI.Button(new Rect(
  8563. imageX
  8564. , imageY
  8565. , imageWidth
  8566. , imageHeight), saveScenes[i].screenshot, saveImageStyle))
  8567. {
  8568. selectedSave = i;
  8569. manageSaveFlag = true;
  8570. }
  8571. i--;
  8572. j++;
  8573. }
  8574. }
  8575. GUI.EndScrollView();
  8576. #endregion
  8577. GUI.Label(new Rect(
  8578. saveManagerRect.width - GetPix(15),
  8579. saveManagerRect.height - GetPix(17),
  8580. GetPix(20),
  8581. GetPix(20)
  8582. ), "□", resizeHandleStyle);
  8583. if (createSaveFlag)
  8584. {
  8585. if (File.Exists(thum_file_path_))
  8586. {
  8587. if (overwriteFlag)
  8588. Overwrite();
  8589. SaveScene();
  8590. createSaveFlag = false;
  8591. overwriteFlag = false;
  8592. }
  8593. }
  8594. if (!resizeManager)
  8595. {
  8596. GUI.DragWindow(new Rect(0, 0,
  8597. saveManagerRect.width - windowPaddingY,
  8598. saveManagerRect.height - windowPaddingY));
  8599. }
  8600. }
  8601. private void SaveManagerModal(int winID)
  8602. {
  8603. GUIStyle labelStyle = new GUIStyle("label");
  8604. labelStyle.fontSize = GetPix(12);
  8605. labelStyle.alignment = TextAnchor.MiddleCenter;
  8606. GUIStyle saveControlStyle = new GUIStyle("button");
  8607. saveControlStyle.fontSize = GetPix(12);
  8608. saveControlStyle.alignment = TextAnchor.MiddleCenter;
  8609. int index = deleteDirectoryFlag ? saveScenes.Count - 1 : selectedSave;
  8610. Texture2D previewImage = saveScenes.ElementAtOrDefault(index)?.screenshot;
  8611. int windowPadding = GetPix(10);
  8612. int windowPaddingY = GetPix(20);
  8613. float previewWindowWidth = saveModalRect.width - windowPaddingY;
  8614. float previewWindowHeight = Mathf.Min(270 - windowPadding, saveModalRect.height - GetPix(70));
  8615. int texWidth = previewImage?.width ?? 480;
  8616. int texHeight = previewImage?.height ?? 270;
  8617. float scale = Mathf.Min(previewWindowWidth / texWidth, previewWindowHeight / texHeight);
  8618. float previewWidth = (texWidth * scale) - windowPaddingY;
  8619. float previewHeight = (texHeight * scale) - windowPaddingY;
  8620. float previewX = (saveModalRect.width / 2 - previewWidth / 2);
  8621. float previewY = windowPaddingY;
  8622. GUI.DrawTexture(new Rect(
  8623. previewX - GetPix(6)
  8624. , previewY - GetPix(6)
  8625. , previewWidth + GetPix(12)
  8626. , previewHeight + GetPix(12))
  8627. , frame
  8628. );
  8629. if (previewImage != null)
  8630. {
  8631. GUI.DrawTexture(new Rect(
  8632. previewX,
  8633. previewY,
  8634. previewWidth,
  8635. previewHeight
  8636. ), previewImage);
  8637. }
  8638. string title = deleteDirectoryFlag
  8639. ? $"Are you sure you want to delete \"{directoryList[selectedDirectory]}\"?"
  8640. : deleteFileFlag
  8641. ? $"Are you sure you want to delete \"{saveScenes[index].info.Name}\"?"
  8642. : saveScenes[selectedSave].info.Name;
  8643. float labelY = previewY + previewHeight + windowPadding;
  8644. int labelHeight = GetPix(30);
  8645. GUI.Label(new Rect(
  8646. windowPadding,
  8647. labelY,
  8648. saveModalRect.width - windowPaddingY,
  8649. labelHeight
  8650. ), title, labelStyle);
  8651. int buttonHeight = GetPix(25);
  8652. int buttonWidth = GetPix(80);
  8653. float buttonY = saveModalRect.height - windowPadding - buttonHeight;
  8654. if (GUI.Button(new Rect(
  8655. windowPadding,
  8656. buttonY,
  8657. buttonWidth,
  8658. buttonHeight
  8659. ), deleteDirectoryFlag || deleteFileFlag ? "Yes" : "Overwrite", saveControlStyle))
  8660. {
  8661. if (deleteDirectoryFlag)
  8662. {
  8663. DeleteDirectory();
  8664. }
  8665. else if (deleteFileFlag)
  8666. {
  8667. DeleteFile();
  8668. }
  8669. else
  8670. {
  8671. overwriteFlag = true;
  8672. createSaveFlag = true;
  8673. TakeScreenshot();
  8674. }
  8675. deleteFileFlag = false;
  8676. deleteDirectoryFlag = false;
  8677. manageSaveFlag = false;
  8678. }
  8679. if (!(deleteDirectoryFlag || deleteFileFlag))
  8680. {
  8681. if (GUI.Button(new Rect(
  8682. windowPaddingY + buttonWidth,
  8683. buttonY,
  8684. buttonWidth,
  8685. buttonHeight
  8686. ), "Load", saveControlStyle))
  8687. {
  8688. manageSaveFlag = false;
  8689. loadSaveFlag = true;
  8690. loadScene = 1;
  8691. }
  8692. if (GUI.Button(new Rect(
  8693. windowPaddingY + 2 * buttonWidth + windowPadding,
  8694. buttonY,
  8695. buttonWidth,
  8696. buttonHeight
  8697. ), "Delete", saveControlStyle))
  8698. {
  8699. deleteFileFlag = true;
  8700. }
  8701. }
  8702. if (GUI.Button(new Rect(
  8703. saveModalRect.width - buttonWidth - windowPadding,
  8704. buttonY,
  8705. buttonWidth,
  8706. buttonHeight
  8707. ), deleteFileFlag || deleteDirectoryFlag ? "No" : "Cancel", saveControlStyle))
  8708. {
  8709. manageSaveFlag = false;
  8710. deleteFileFlag = false;
  8711. deleteDirectoryFlag = false;
  8712. }
  8713. GUI.DragWindow();
  8714. }
  8715. public void TakeScreenshot()
  8716. {
  8717. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  8718. isScreen2 = true;
  8719. if (!isMessage)
  8720. {
  8721. ui_cam_hide_list_.Clear();
  8722. foreach (UICamera uiCamera in NGUITools.FindActive<UICamera>())
  8723. {
  8724. if (uiCamera.GetComponent<Camera>().enabled)
  8725. {
  8726. uiCamera.GetComponent<Camera>().enabled = false;
  8727. ui_cam_hide_list_.Add(uiCamera);
  8728. }
  8729. }
  8730. }
  8731. else
  8732. {
  8733. editUI = GameObject.Find("/UI Root/Camera");
  8734. if (editUI != null)
  8735. {
  8736. editUI.SetActive(false);
  8737. }
  8738. if (GameMain.Instance.CMSystem.ViewFps)
  8739. {
  8740. UTY.GetChildObject(GameMain.Instance.gameObject, "SystemUI Root/FpsCounter", false).SetActive(false);
  8741. }
  8742. GameObject childObject1 = UTY.GetChildObject(GameMain.Instance.gameObject, "SystemUI Root/SystemDialog", false);
  8743. GameObject childObject2 = UTY.GetChildObject(GameMain.Instance.gameObject, "SystemUI Root/SystemShortcut", false);
  8744. childObject1.SetActive(false);
  8745. childObject2.SetActive(false);
  8746. }
  8747. isGui = bGui;
  8748. bGui = false;
  8749. try
  8750. {
  8751. thum_byte_to_base64_ = string.Empty;
  8752. thum_file_path_ = Path.Combine(Path.GetTempPath(), "cm3d2_" + Guid.NewGuid().ToString() + ".png");
  8753. GameMain.Instance.MainCamera.ScreenShot(thum_file_path_, 1, true);
  8754. }
  8755. catch { }
  8756. }
  8757. }
  8758. }