1
0

MultipleMaids.Gui.cs 431 KB

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