MultipleMaids.Gui.cs 432 KB

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