MultipleMaids.Gui.cs 423 KB

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