MultipleMaids.Gui.cs 513 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829
  1. using ExIni;
  2. using MyRoomCustom;
  3. using System;
  4. using System.Collections;
  5. using System.Collections.Generic;
  6. using System.IO;
  7. using System.Linq;
  8. using System.Text;
  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. private void GuiFunc5(int winID)
  17. {
  18. GUIStyle style1 = (GUIStyle)"label";
  19. style1.fontSize = this.GetPix(12);
  20. style1.alignment = TextAnchor.UpperLeft;
  21. GUIStyle style2 = (GUIStyle)"button";
  22. style2.fontSize = this.GetPix(12);
  23. style2.alignment = TextAnchor.MiddleCenter;
  24. GUI.Label(new UnityEngine.Rect((float)this.GetPix(50), (float)this.GetPix(6), (float)this.GetPix(100), (float)this.GetPix(25)), "シーン管理", style1);
  25. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(135), (float)this.GetPix(3), (float)this.GetPix(23), (float)this.GetPix(23)), "→", style2))
  26. {
  27. faceFlg = false;
  28. poseFlg = false;
  29. sceneFlg = false;
  30. kankyoFlg = true;
  31. kankyo2Flg = false;
  32. bGui = true;
  33. isGuiInit = true;
  34. copyIndex = 0;
  35. }
  36. int num1 = 50;
  37. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(25), (float)this.GetPix(31), (float)this.GetPix(23), (float)this.GetPix(23)), "<", style2))
  38. {
  39. --page;
  40. if (page < 0)
  41. page = maxPage - 1;
  42. for (int index = 0; index < 10; ++index)
  43. {
  44. date[index] = "未保存";
  45. ninzu[index] = "";
  46. IniKey iniKey = this.Preferences["scene"]["s" + (object)(page * 10 + index + 1)];
  47. if (iniKey.Value != null && iniKey.Value.ToString() != "")
  48. {
  49. string[] strArray1 = iniKey.Value.Split('_');
  50. if (strArray1.Length >= 2)
  51. {
  52. string[] strArray2 = strArray1[0].Split(',');
  53. date[index] = strArray2[0];
  54. ninzu[index] = strArray2[1] + "人";
  55. }
  56. }
  57. }
  58. }
  59. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(115), (float)this.GetPix(31), (float)this.GetPix(23), (float)this.GetPix(23)), ">", style2))
  60. {
  61. ++page;
  62. if (page >= maxPage)
  63. page = 0;
  64. for (int index = 0; index < 10; ++index)
  65. {
  66. date[index] = "未保存";
  67. ninzu[index] = "";
  68. IniKey iniKey = this.Preferences["scene"]["s" + (object)(page * 10 + index + 1)];
  69. if (iniKey.Value != null && iniKey.Value.ToString() != "")
  70. {
  71. string[] strArray1 = iniKey.Value.Split('_');
  72. if (strArray1.Length >= 2)
  73. {
  74. string[] strArray2 = strArray1[0].Split(',');
  75. date[index] = strArray2[0];
  76. ninzu[index] = strArray2[1] + "人";
  77. }
  78. }
  79. }
  80. }
  81. GUI.Label(new UnityEngine.Rect((float)this.GetPix(60), (float)this.GetPix(32), (float)this.GetPix(100), (float)this.GetPix(25)), (page * 10 + 1).ToString() + " ~ " + (object)(page * 10 + 10), style1);
  82. if (saveScene2 > 0 && string.IsNullOrEmpty(thum_byte_to_base64_) && File.Exists(thum_file_path_))
  83. {
  84. try
  85. {
  86. Texture2D tex = new Texture2D(1, 1, TextureFormat.ARGB32, false);
  87. tex.LoadImage(File.ReadAllBytes(thum_file_path_));
  88. float num2 = (float)tex.width / (float)tex.height;
  89. Vector2 vector2 = new Vector2(480f, 270f);
  90. int newWidth = tex.width;
  91. int newHeight = tex.height;
  92. if ((double)vector2.x < (double)tex.width && (double)vector2.y < (double)tex.height)
  93. {
  94. newWidth = (int)vector2.x;
  95. newHeight = Mathf.RoundToInt((float)newWidth / num2);
  96. if ((double)vector2.y < (double)newHeight)
  97. {
  98. newHeight = (int)vector2.y;
  99. newWidth = Mathf.RoundToInt((float)newHeight * num2);
  100. }
  101. }
  102. else if ((double)vector2.x < (double)tex.width)
  103. {
  104. newWidth = (int)vector2.x;
  105. newHeight = Mathf.RoundToInt((float)newWidth / num2);
  106. }
  107. else if ((double)vector2.y < (double)tex.height)
  108. {
  109. newHeight = (int)vector2.y;
  110. newWidth = Mathf.RoundToInt((float)newHeight * num2);
  111. }
  112. TextureScale.Bilinear(tex, newWidth, newHeight);
  113. thum_byte_to_base64_ = Convert.ToBase64String(tex.EncodeToPNG());
  114. Object.DestroyImmediate((Object)tex);
  115. this.Preferences["scene"]["ss" + (object)saveScene2].Value = thum_byte_to_base64_;
  116. this.SaveConfig();
  117. thum_file_path_ = "";
  118. saveScene2 = 0;
  119. }
  120. catch
  121. {
  122. }
  123. }
  124. for (int index = 0; index < 10; ++index)
  125. {
  126. GUI.Label(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(60 + num1 * index), (float)this.GetPix(25), (float)this.GetPix(25)), string.Concat((object)(page * 10 + index + 1)), style1);
  127. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(20), (float)this.GetPix(78 + num1 * index), (float)this.GetPix(50), (float)this.GetPix(20)), "保存", style2))
  128. {
  129. saveScene = page * 10 + index + 1;
  130. saveScene2 = saveScene;
  131. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  132. isScreen2 = true;
  133. if (!isMessage)
  134. {
  135. ui_cam_hide_list_.Clear();
  136. foreach (UICamera uiCamera in NGUITools.FindActive<UICamera>())
  137. {
  138. if (uiCamera.GetComponent<UnityEngine.Camera>().enabled)
  139. {
  140. uiCamera.GetComponent<UnityEngine.Camera>().enabled = false;
  141. ui_cam_hide_list_.Add(uiCamera);
  142. }
  143. }
  144. }
  145. else
  146. {
  147. editUI = GameObject.Find("/UI Root/Camera");
  148. if ((Object)editUI != (Object)null)
  149. editUI.SetActive(false);
  150. if (GameMain.Instance.CMSystem.ViewFps)
  151. UTY.GetChildObject(GameMain.Instance.gameObject, "SystemUI Root/FpsCounter", false).SetActive(false);
  152. GameObject childObject1 = UTY.GetChildObject(GameMain.Instance.gameObject, "SystemUI Root/SystemDialog", false);
  153. GameObject childObject2 = UTY.GetChildObject(GameMain.Instance.gameObject, "SystemUI Root/SystemShortcut", false);
  154. childObject1.SetActive(false);
  155. childObject2.SetActive(false);
  156. }
  157. isGui = bGui;
  158. bGui = false;
  159. try
  160. {
  161. thum_byte_to_base64_ = string.Empty;
  162. thum_file_path_ = Path.Combine(Path.GetTempPath(), "cm3d2_" + Guid.NewGuid().ToString() + ".png");
  163. GameMain.Instance.MainCamera.ScreenShot(thum_file_path_, 1, true);
  164. }
  165. catch
  166. {
  167. }
  168. }
  169. GUI.Label(new UnityEngine.Rect((float)this.GetPix(25), (float)this.GetPix(60 + num1 * index), (float)this.GetPix(100), (float)this.GetPix(25)), date[index], style1);
  170. GUI.Label(new UnityEngine.Rect((float)this.GetPix(130), (float)this.GetPix(60 + num1 * index), (float)this.GetPix(100), (float)this.GetPix(25)), ninzu[index], style1);
  171. if (date[index] != "未保存" && GUI.Button(new UnityEngine.Rect((float)this.GetPix(100), (float)this.GetPix(78 + num1 * index), (float)this.GetPix(50), (float)this.GetPix(20)), "読込", style2))
  172. {
  173. loadScene = page * 10 + index + 1;
  174. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  175. }
  176. }
  177. }
  178. private void GuiFunc7(int winID)
  179. {
  180. GUIStyle guiStyle1 = (GUIStyle)"label";
  181. guiStyle1.fontSize = this.GetPix(12);
  182. guiStyle1.alignment = TextAnchor.UpperLeft;
  183. GUIStyle style1 = (GUIStyle)"label";
  184. style1.fontSize = this.GetPix(11);
  185. style1.alignment = TextAnchor.UpperLeft;
  186. GUIStyle style2 = (GUIStyle)"button";
  187. style2.fontSize = this.GetPix(20);
  188. GUIStyle buttonStyle = (GUIStyle)"button";
  189. buttonStyle.fontSize = this.GetPix(14);
  190. buttonStyle.alignment = TextAnchor.MiddleLeft;
  191. GUIStyle guiStyle2 = (GUIStyle)"button";
  192. guiStyle2.fontSize = this.GetPix(12);
  193. guiStyle2.alignment = TextAnchor.MiddleLeft;
  194. GUIStyle style3 = new GUIStyle((GUIStyle)"toggle");
  195. style3.fontSize = this.GetPix(13);
  196. CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
  197. Maid maid = maidArray[selectMaidIndex];
  198. if (!kankyo2InitFlg)
  199. {
  200. listStyle2.normal.textColor = Color.white;
  201. listStyle2.normal.background = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.5f));
  202. listStyle2.onHover.background = listStyle2.hover.background = new Texture2D(2, 2);
  203. listStyle2.padding.left = listStyle2.padding.right = listStyle2.padding.top = listStyle2.padding.bottom = this.GetPix(0);
  204. listStyle2.fontSize = this.GetPix(11);
  205. listStyle3.normal.textColor = Color.white;
  206. listStyle3.normal.background = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.5f));
  207. listStyle3.onHover.background = listStyle3.hover.background = new Texture2D(2, 2);
  208. listStyle3.padding.left = listStyle3.padding.right = listStyle3.padding.top = this.GetPix(0);
  209. listStyle3.padding.bottom = this.GetPix(0);
  210. listStyle3.fontSize = this.GetPix(14);
  211. bgCombo2.selectedItemIndex = bgIndexB;
  212. bgCombo2List = new GUIContent[bgArray.Length];
  213. for (int index = 0; index < bgArray.Length; ++index)
  214. {
  215. switch (bgArray[index])
  216. {
  217. case "BackStage":
  218. bgCombo2List[index] = new GUIContent("ステージ裏");
  219. break;
  220. case "Bar":
  221. bgCombo2List[index] = new GUIContent("バー");
  222. break;
  223. case "BarLounge":
  224. bgCombo2List[index] = new GUIContent("バー");
  225. break;
  226. case "Bathroom":
  227. bgCombo2List[index] = new GUIContent("風呂");
  228. break;
  229. case "BigSight":
  230. bgCombo2List[index] = new GUIContent("ビッグサイト");
  231. break;
  232. case "BigSight_Night":
  233. bgCombo2List[index] = new GUIContent("ビッグサイト(夜)");
  234. break;
  235. case "Casino":
  236. bgCombo2List[index] = new GUIContent("カジノ");
  237. break;
  238. case "CasinoMini":
  239. bgCombo2List[index] = new GUIContent("カジノミニ");
  240. break;
  241. case "ClassRoom":
  242. bgCombo2List[index] = new GUIContent("教室");
  243. break;
  244. case "ClassRoom_Play":
  245. bgCombo2List[index] = new GUIContent("教室(夜伽)");
  246. break;
  247. case "DanceRoom":
  248. bgCombo2List[index] = new GUIContent("トレーニングルーム");
  249. break;
  250. case "DressRoom_NoMirror":
  251. bgCombo2List[index] = new GUIContent("ドレスルーム");
  252. break;
  253. case "EmpireClub_Entrance":
  254. bgCombo2List[index] = new GUIContent("エントランス");
  255. break;
  256. case "EmpireClub_Rotary":
  257. bgCombo2List[index] = new GUIContent("ロータリー");
  258. break;
  259. case "EmpireClub_Rotary_Night":
  260. bgCombo2List[index] = new GUIContent("ロータリー(夜)");
  261. break;
  262. case "GameShop":
  263. bgCombo2List[index] = new GUIContent("ゲームショップ");
  264. break;
  265. case "HeroineRoom_A":
  266. bgCombo2List[index] = new GUIContent("ツンデレ部屋");
  267. break;
  268. case "HeroineRoom_A1":
  269. bgCombo2List[index] = new GUIContent("無垢部屋");
  270. break;
  271. case "HeroineRoom_A1_Night":
  272. bgCombo2List[index] = new GUIContent("無垢部屋(夜)");
  273. break;
  274. case "HeroineRoom_A_Night":
  275. bgCombo2List[index] = new GUIContent("ツンデレ部屋(夜)");
  276. break;
  277. case "HeroineRoom_B":
  278. bgCombo2List[index] = new GUIContent("クーデレ部屋");
  279. break;
  280. case "HeroineRoom_B1":
  281. bgCombo2List[index] = new GUIContent("真面目部屋");
  282. break;
  283. case "HeroineRoom_B1_Night":
  284. bgCombo2List[index] = new GUIContent("真面目部屋(夜)");
  285. break;
  286. case "HeroineRoom_B_Night":
  287. bgCombo2List[index] = new GUIContent("クーデレ部屋(夜)");
  288. break;
  289. case "HeroineRoom_C":
  290. bgCombo2List[index] = new GUIContent("純真部屋");
  291. break;
  292. case "HeroineRoom_C1":
  293. bgCombo2List[index] = new GUIContent("凜デレ部屋");
  294. break;
  295. case "HeroineRoom_C1_Night":
  296. bgCombo2List[index] = new GUIContent("凜デレ部屋(夜)");
  297. break;
  298. case "HeroineRoom_C_Night":
  299. bgCombo2List[index] = new GUIContent("純真部屋(夜)");
  300. break;
  301. case "HoneymoonRoom":
  302. bgCombo2List[index] = new GUIContent("ハネムーンルーム");
  303. break;
  304. case "Kitchen":
  305. bgCombo2List[index] = new GUIContent("キッチン");
  306. break;
  307. case "Kitchen_Night":
  308. bgCombo2List[index] = new GUIContent("キッチン(夜)");
  309. break;
  310. case "LargeBathRoom":
  311. bgCombo2List[index] = new GUIContent("大浴場");
  312. break;
  313. case "LiveStage":
  314. bgCombo2List[index] = new GUIContent("ステージ");
  315. break;
  316. case "LiveStage_Side":
  317. bgCombo2List[index] = new GUIContent("ステージ(ライト)");
  318. break;
  319. case "LiveStage_use_dance":
  320. bgCombo2List[index] = new GUIContent("ステージ(オフ)");
  321. break;
  322. case "LockerRoom":
  323. bgCombo2List[index] = new GUIContent("ロッカールーム");
  324. break;
  325. case "MaidRoom":
  326. bgCombo2List[index] = new GUIContent("メイド部屋");
  327. break;
  328. case "MainKitchen":
  329. bgCombo2List[index] = new GUIContent("キッチン");
  330. break;
  331. case "MainKitchen_LightOff":
  332. bgCombo2List[index] = new GUIContent("キッチン(オフ)");
  333. break;
  334. case "MainKitchen_Night":
  335. bgCombo2List[index] = new GUIContent("キッチン(夜)");
  336. break;
  337. case "MusicShop":
  338. bgCombo2List[index] = new GUIContent("ミュージックショップ");
  339. break;
  340. case "MyBedRoom":
  341. bgCombo2List[index] = new GUIContent("自室");
  342. break;
  343. case "MyBedRoom_Night":
  344. bgCombo2List[index] = new GUIContent("自室(夜)");
  345. break;
  346. case "MyBedRoom_NightOff":
  347. bgCombo2List[index] = new GUIContent("自室(消灯)");
  348. break;
  349. case "MyRoom":
  350. bgCombo2List[index] = new GUIContent("主人公部屋");
  351. break;
  352. case "MyRoom_Night":
  353. bgCombo2List[index] = new GUIContent("主人公部屋(夜)");
  354. break;
  355. case "Oheya":
  356. bgCombo2List[index] = new GUIContent("四畳半部屋");
  357. break;
  358. case "OiranRoom":
  359. bgCombo2List[index] = new GUIContent("花魁ルーム");
  360. break;
  361. case "OpemCafe":
  362. bgCombo2List[index] = new GUIContent("カフェ");
  363. break;
  364. case "OpemCafe_Night":
  365. bgCombo2List[index] = new GUIContent("カフェ(夜)");
  366. break;
  367. case "OutletPark":
  368. bgCombo2List[index] = new GUIContent("アウトレットパーク");
  369. break;
  370. case "Penthouse":
  371. bgCombo2List[index] = new GUIContent("ペントハウス");
  372. break;
  373. case "PlayRoom":
  374. bgCombo2List[index] = new GUIContent("プレイルーム");
  375. break;
  376. case "PlayRoom2":
  377. bgCombo2List[index] = new GUIContent("プレイルーム2");
  378. break;
  379. case "Pool":
  380. bgCombo2List[index] = new GUIContent("プール");
  381. break;
  382. case "PrivateRoom":
  383. bgCombo2List[index] = new GUIContent("プライベートルーム");
  384. break;
  385. case "PrivateRoom_Night":
  386. bgCombo2List[index] = new GUIContent("プライベートルーム(夜)");
  387. break;
  388. case "Restaurant":
  389. bgCombo2List[index] = new GUIContent("レストラン");
  390. break;
  391. case "Restaurant_Night":
  392. bgCombo2List[index] = new GUIContent("レストラン(夜)");
  393. break;
  394. case "SMClub":
  395. bgCombo2List[index] = new GUIContent("SMクラブ");
  396. break;
  397. case "SMRoom":
  398. bgCombo2List[index] = new GUIContent("SMルーム");
  399. break;
  400. case "SMRoom2":
  401. bgCombo2List[index] = new GUIContent("地下室");
  402. break;
  403. case "Salon":
  404. bgCombo2List[index] = new GUIContent("サロン");
  405. break;
  406. case "Salon_Day":
  407. bgCombo2List[index] = new GUIContent("サロン(昼)");
  408. break;
  409. case "Salon_Entrance":
  410. bgCombo2List[index] = new GUIContent("エントランス");
  411. break;
  412. case "Salon_Garden":
  413. bgCombo2List[index] = new GUIContent("サロン(中庭)");
  414. break;
  415. case "Sea":
  416. bgCombo2List[index] = new GUIContent("海");
  417. break;
  418. case "Sea_Night":
  419. bgCombo2List[index] = new GUIContent("海(夜)");
  420. break;
  421. case "ShinShitsumu":
  422. bgCombo2List[index] = new GUIContent("執務室");
  423. break;
  424. case "ShinShitsumu_ChairRot":
  425. bgCombo2List[index] = new GUIContent("執務室(椅子)");
  426. break;
  427. case "ShinShitsumu_Night":
  428. bgCombo2List[index] = new GUIContent("執務室(夜)");
  429. break;
  430. case "Shitsumu":
  431. bgCombo2List[index] = new GUIContent("執務室");
  432. break;
  433. case "Shitsumu_Night":
  434. bgCombo2List[index] = new GUIContent("執務室(夜)");
  435. break;
  436. case "ShoppingMall":
  437. bgCombo2List[index] = new GUIContent("ショッピングモール");
  438. break;
  439. case "ShoppingMall_Night":
  440. bgCombo2List[index] = new GUIContent("ショッピングモール(夜)");
  441. break;
  442. case "Shukuhakubeya_BedRoom":
  443. bgCombo2List[index] = new GUIContent("宿泊-ベッドルーム");
  444. break;
  445. case "Shukuhakubeya_BedRoom_Night":
  446. bgCombo2List[index] = new GUIContent("宿泊-ベッドルーム(夜)");
  447. break;
  448. case "Shukuhakubeya_Living":
  449. bgCombo2List[index] = new GUIContent("宿泊-リビング");
  450. break;
  451. case "Shukuhakubeya_Living_Night":
  452. bgCombo2List[index] = new GUIContent("宿泊-リビング(夜)");
  453. break;
  454. case "Shukuhakubeya_Other_BedRoom":
  455. bgCombo2List[index] = new GUIContent("宿泊-他ベッドルーム(夜)");
  456. break;
  457. case "Shukuhakubeya_Toilet":
  458. bgCombo2List[index] = new GUIContent("宿泊-トイレ");
  459. break;
  460. case "Shukuhakubeya_Toilet_Night":
  461. bgCombo2List[index] = new GUIContent("宿泊-トイレ(夜)");
  462. break;
  463. case "Shukuhakubeya_WashRoom":
  464. bgCombo2List[index] = new GUIContent("宿泊-洗面所");
  465. break;
  466. case "Shukuhakubeya_WashRoom_Night":
  467. bgCombo2List[index] = new GUIContent("宿泊-洗面所(夜)");
  468. break;
  469. case "Soap":
  470. bgCombo2List[index] = new GUIContent("ソープ");
  471. break;
  472. case "Spa":
  473. bgCombo2List[index] = new GUIContent("スパ");
  474. break;
  475. case "Spa_Night":
  476. bgCombo2List[index] = new GUIContent("スパ(夜)");
  477. break;
  478. case "Syosai":
  479. bgCombo2List[index] = new GUIContent("書斎");
  480. break;
  481. case "Syosai_Night":
  482. bgCombo2List[index] = new GUIContent("書斎(夜)");
  483. break;
  484. case "Theater":
  485. bgCombo2List[index] = new GUIContent("劇場");
  486. break;
  487. case "Theater_LightOff":
  488. bgCombo2List[index] = new GUIContent("劇場(夜)");
  489. break;
  490. case "Toilet":
  491. bgCombo2List[index] = new GUIContent("トイレ");
  492. break;
  493. case "Town":
  494. bgCombo2List[index] = new GUIContent("街");
  495. break;
  496. case "Train":
  497. bgCombo2List[index] = new GUIContent("電車");
  498. break;
  499. case "Yashiki":
  500. bgCombo2List[index] = new GUIContent("屋敷(夜)");
  501. break;
  502. case "Yashiki_Day":
  503. bgCombo2List[index] = new GUIContent("屋敷");
  504. break;
  505. case "Yashiki_Pillow":
  506. bgCombo2List[index] = new GUIContent("屋敷(夜・枕)");
  507. break;
  508. case "karaokeroom":
  509. bgCombo2List[index] = new GUIContent("カラオケルーム");
  510. break;
  511. case "rotenburo":
  512. bgCombo2List[index] = new GUIContent("露天風呂");
  513. break;
  514. case "rotenburo_night":
  515. bgCombo2List[index] = new GUIContent("露天風呂(夜)");
  516. break;
  517. case "villa":
  518. bgCombo2List[index] = new GUIContent("ヴィラ1F");
  519. break;
  520. case "villa_bedroom":
  521. bgCombo2List[index] = new GUIContent("ヴィラ2F");
  522. break;
  523. case "villa_bedroom_night":
  524. bgCombo2List[index] = new GUIContent("ヴィラ2F(夜)");
  525. break;
  526. case "villa_farm":
  527. bgCombo2List[index] = new GUIContent("畑");
  528. break;
  529. case "villa_farm_night":
  530. bgCombo2List[index] = new GUIContent("畑(夜)");
  531. break;
  532. case "villa_night":
  533. bgCombo2List[index] = new GUIContent("ヴィラ1F(夜)");
  534. break;
  535. default:
  536. bgCombo2List[index] = new GUIContent(bgArray[index]);
  537. break;
  538. }
  539. Dictionary<string, string> saveDataDic = CreativeRoomManager.GetSaveDataDic();
  540. if (saveDataDic != null)
  541. {
  542. foreach (KeyValuePair<string, string> keyValuePair in saveDataDic)
  543. {
  544. if (bgArray[index] == keyValuePair.Key)
  545. bgCombo2List[index] = new GUIContent(keyValuePair.Value);
  546. }
  547. }
  548. }
  549. slotCombo.selectedItemIndex = 0;
  550. slotComboList = new GUIContent[slotArray.Length];
  551. for (int index = 0; index < slotArray.Length; ++index)
  552. {
  553. switch (slotArray[index])
  554. {
  555. case "accashi":
  556. slotComboList[index] = new GUIContent("足首");
  557. break;
  558. case "acchana":
  559. slotComboList[index] = new GUIContent("鼻");
  560. break;
  561. case "acchat":
  562. slotComboList[index] = new GUIContent("帽子");
  563. break;
  564. case "acchead":
  565. slotComboList[index] = new GUIContent("アイマスク");
  566. break;
  567. case "accheso":
  568. slotComboList[index] = new GUIContent("へそ");
  569. break;
  570. case "acckami":
  571. slotComboList[index] = new GUIContent("前髪");
  572. break;
  573. case "acckamisub":
  574. slotComboList[index] = new GUIContent("リボン");
  575. break;
  576. case "acckubi":
  577. slotComboList[index] = new GUIContent("ネックレス");
  578. break;
  579. case "acckubiwa":
  580. slotComboList[index] = new GUIContent("チョーカー");
  581. break;
  582. case "accmimi":
  583. slotComboList[index] = new GUIContent("耳");
  584. break;
  585. case "accnip":
  586. slotComboList[index] = new GUIContent("乳首");
  587. break;
  588. case "accsenaka":
  589. slotComboList[index] = new GUIContent("背中");
  590. break;
  591. case "accshippo":
  592. slotComboList[index] = new GUIContent("しっぽ");
  593. break;
  594. case "accude":
  595. slotComboList[index] = new GUIContent("腕");
  596. break;
  597. case "accxxx":
  598. slotComboList[index] = new GUIContent("前穴");
  599. break;
  600. case "bra":
  601. slotComboList[index] = new GUIContent("ブラジャー");
  602. break;
  603. case "glove":
  604. slotComboList[index] = new GUIContent("手袋");
  605. break;
  606. case "headset":
  607. slotComboList[index] = new GUIContent("ヘッドドレス");
  608. break;
  609. case "megane":
  610. slotComboList[index] = new GUIContent("メガネ");
  611. break;
  612. case "mizugi":
  613. slotComboList[index] = new GUIContent("水着");
  614. break;
  615. case "onepiece":
  616. slotComboList[index] = new GUIContent("ワンピース");
  617. break;
  618. case "panz":
  619. slotComboList[index] = new GUIContent("パンツ");
  620. break;
  621. case "shoes":
  622. slotComboList[index] = new GUIContent("靴");
  623. break;
  624. case "skirt":
  625. slotComboList[index] = new GUIContent("ボトムス");
  626. break;
  627. case "stkg":
  628. slotComboList[index] = new GUIContent("靴下");
  629. break;
  630. case "wear":
  631. slotComboList[index] = new GUIContent("トップス");
  632. break;
  633. default:
  634. slotComboList[index] = new GUIContent(slotArray[index]);
  635. break;
  636. }
  637. }
  638. itemCombo2.selectedItemIndex = 0;
  639. itemCombo2List = new GUIContent[itemBArray.Length];
  640. for (int index = 0; index < itemBArray.Length; ++index)
  641. {
  642. switch (itemBArray[index])
  643. {
  644. case "accanl,accAnl_AnalVibe_I_.menu":
  645. itemCombo2List[index] = new GUIContent("後:アナルバイブ");
  646. break;
  647. case "accanl,accAnl_Photo_NomalVibe_I_.menu":
  648. itemCombo2List[index] = new GUIContent("後:バイブ");
  649. break;
  650. case "accanl,accAnl_Photo_VibeBig_I_.menu":
  651. itemCombo2List[index] = new GUIContent("後:太バイブ");
  652. break;
  653. case "accanl,accAnl_Photo_VibePink_I_.menu":
  654. itemCombo2List[index] = new GUIContent("後:ピンクバイブ");
  655. break;
  656. case "accvag,accVag_VibeBig_I_.menu":
  657. itemCombo2List[index] = new GUIContent("前:太バイブ");
  658. break;
  659. case "accvag,accVag_VibePink_I_.menu":
  660. itemCombo2List[index] = new GUIContent("前:ピンクバイブ");
  661. break;
  662. case "accvag,accVag_Vibe_I_.menu":
  663. itemCombo2List[index] = new GUIContent("前:バイブ");
  664. break;
  665. case "handitem,HandItemH_SoutouVibe_I_.menu":
  666. itemCombo2List[index] = new GUIContent("双頭バイブ");
  667. break;
  668. case "handitem,HandItemL_Cracker_I_.menu":
  669. itemCombo2List[index] = new GUIContent("クラッカー");
  670. break;
  671. case "handitem,HandItemL_Dance_Hataki_I_.menu":
  672. itemCombo2List[index] = new GUIContent("ダンスハタキ");
  673. break;
  674. case "handitem,HandItemL_Dance_Mop_I_.menu":
  675. itemCombo2List[index] = new GUIContent("ダンスモップ");
  676. break;
  677. case "handitem,HandItemL_Dance_Zoukin_I_.menu":
  678. itemCombo2List[index] = new GUIContent("ダンス雑巾");
  679. break;
  680. case "handitem,HandItemL_Etoile_Saucer_I_.menu":
  681. itemCombo2List[index] = new GUIContent("ティーソーサー");
  682. break;
  683. case "handitem,HandItemL_Karaoke_Mike_I_.menu":
  684. itemCombo2List[index] = new GUIContent("カラオケマイク");
  685. break;
  686. case "handitem,HandItemL_Karte_I_.menu":
  687. itemCombo2List[index] = new GUIContent("カルテ");
  688. break;
  689. case "handitem,HandItemL_Katuramuki_Daikon_I_.menu":
  690. itemCombo2List[index] = new GUIContent("桂むき大根");
  691. break;
  692. case "handitem,HandItemL_Kozara_I_.menu":
  693. itemCombo2List[index] = new GUIContent("小皿");
  694. break;
  695. case "handitem,HandItemL_Sara_I_.menu":
  696. itemCombo2List[index] = new GUIContent("皿");
  697. break;
  698. case "handitem,HandItemL_Shisyuu_I_.menu":
  699. itemCombo2List[index] = new GUIContent("刺繍");
  700. break;
  701. case "handitem,HandItemL_Teasaucer_I_.menu":
  702. itemCombo2List[index] = new GUIContent("ティーソーサー");
  703. break;
  704. case "handitem,HandItemR_AnalVibe_I_.menu":
  705. itemCombo2List[index] = new GUIContent("アナルバイブ");
  706. break;
  707. case "handitem,HandItemR_BeerBottle(cap_off)_I_.menu":
  708. itemCombo2List[index] = new GUIContent("ビールボトル(開)");
  709. break;
  710. case "handitem,HandItemR_BeerBottle(cap_on)_I_.menu":
  711. itemCombo2List[index] = new GUIContent("ビールボトル");
  712. break;
  713. case "handitem,HandItemR_BeerGlass_I_.menu":
  714. itemCombo2List[index] = new GUIContent("ビールグラス");
  715. break;
  716. case "handitem,HandItemR_Book_I_.menu":
  717. itemCombo2List[index] = new GUIContent("本");
  718. break;
  719. case "handitem,HandItemR_Chu-B_Lip_I_.menu":
  720. itemCombo2List[index] = new GUIContent("Chu-B Lip");
  721. break;
  722. case "handitem,HandItemR_Chusyaki_I_.menu":
  723. itemCombo2List[index] = new GUIContent("注射器");
  724. break;
  725. case "handitem,HandItemR_Crops_Suika_I_.menu":
  726. itemCombo2List[index] = new GUIContent("スイカ");
  727. break;
  728. case "handitem,HandItemR_Curry_I_.menu":
  729. itemCombo2List[index] = new GUIContent("カレー");
  730. break;
  731. case "handitem,HandItemR_DVD1_I_.menu":
  732. itemCombo2List[index] = new GUIContent("DVD1");
  733. break;
  734. case "handitem,HandItemR_DVD2_I_.menu":
  735. itemCombo2List[index] = new GUIContent("DVD2");
  736. break;
  737. case "handitem,HandItemR_DVD3_I_.menu":
  738. itemCombo2List[index] = new GUIContent("DVD3");
  739. break;
  740. case "handitem,HandItemR_DVD4_I_.menu":
  741. itemCombo2List[index] = new GUIContent("DVD4");
  742. break;
  743. case "handitem,HandItemR_DVD5_I_.menu":
  744. itemCombo2List[index] = new GUIContent("DVD5");
  745. break;
  746. case "handitem,HandItemR_Diary_I_.menu":
  747. itemCombo2List[index] = new GUIContent("日記");
  748. break;
  749. case "handitem,HandItemR_Etoile_Teacup_I_.menu":
  750. itemCombo2List[index] = new GUIContent("ティーカップ");
  751. break;
  752. case "handitem,HandItemR_Folk_I_.menu":
  753. itemCombo2List[index] = new GUIContent("フォーク");
  754. break;
  755. case "handitem,HandItemR_Furaidopoteto_I_.menu":
  756. itemCombo2List[index] = new GUIContent("フライドポテト1本");
  757. break;
  758. case "handitem,HandItemR_Hanabi_I_.menu":
  759. itemCombo2List[index] = new GUIContent("手持ち花火");
  760. break;
  761. case "handitem,HandItemR_Hari_I_.menu":
  762. itemCombo2List[index] = new GUIContent("針");
  763. break;
  764. case "handitem,HandItemR_Hataki_I_.menu":
  765. itemCombo2List[index] = new GUIContent("ハタキ");
  766. break;
  767. case "handitem,HandItemR_Houchou_I_.menu":
  768. itemCombo2List[index] = new GUIContent("包丁");
  769. break;
  770. case "handitem,HandItemR_Houki_I_.menu":
  771. itemCombo2List[index] = new GUIContent("ほうき");
  772. break;
  773. case "handitem,HandItemR_Jyouro_I_.menu":
  774. itemCombo2List[index] = new GUIContent("じょうろ");
  775. break;
  776. case "handitem,HandItemR_Ketchup_I_.menu":
  777. itemCombo2List[index] = new GUIContent("ケチャップ");
  778. break;
  779. case "handitem,HandItemR_Kobin_I_.menu":
  780. itemCombo2List[index] = new GUIContent("小瓶");
  781. break;
  782. case "handitem,HandItemR_Kushiyaki_I_.menu":
  783. itemCombo2List[index] = new GUIContent("串焼き");
  784. break;
  785. case "handitem,HandItemR_MelonSoda_I_.menu":
  786. itemCombo2List[index] = new GUIContent("メロンソーダ");
  787. break;
  788. case "handitem,HandItemR_Menu_I_.menu":
  789. itemCombo2List[index] = new GUIContent("メニュー表");
  790. break;
  791. case "handitem,HandItemR_MilkBottle(cap_off)_I_.menu":
  792. itemCombo2List[index] = new GUIContent("牛乳(開)");
  793. break;
  794. case "handitem,HandItemR_MilkBottle(cap_on)_I_.menu":
  795. itemCombo2List[index] = new GUIContent("牛乳");
  796. break;
  797. case "handitem,HandItemR_Mimikaki_I_.menu":
  798. itemCombo2List[index] = new GUIContent("耳かき");
  799. break;
  800. case "handitem,HandItemR_Mop_I_.menu":
  801. itemCombo2List[index] = new GUIContent("モップ");
  802. break;
  803. case "handitem,HandItemR_Mugcup_I_.menu":
  804. itemCombo2List[index] = new GUIContent("マグカップ");
  805. break;
  806. case "handitem,HandItemR_Natumikan_I_.menu":
  807. itemCombo2List[index] = new GUIContent("夏みかん");
  808. break;
  809. case "handitem,HandItemR_Nei_Heartful_I_.menu":
  810. itemCombo2List[index] = new GUIContent("ハートフルねい人形");
  811. break;
  812. case "handitem,HandItemR_Ninjin_I_.menu":
  813. itemCombo2List[index] = new GUIContent("ニンジン");
  814. break;
  815. case "handitem,HandItemR_Ochoko_I_.menu":
  816. itemCombo2List[index] = new GUIContent("お猪口");
  817. break;
  818. case "handitem,HandItemR_Omurice1_I_.menu":
  819. itemCombo2List[index] = new GUIContent("オムライス1");
  820. break;
  821. case "handitem,HandItemR_Omurice2_I_.menu":
  822. itemCombo2List[index] = new GUIContent("オムライス2");
  823. break;
  824. case "handitem,HandItemR_Omurice3_I_.menu":
  825. itemCombo2List[index] = new GUIContent("オムライス3");
  826. break;
  827. case "handitem,HandItemR_Otama_I_.menu":
  828. itemCombo2List[index] = new GUIContent("おたま");
  829. break;
  830. case "handitem,HandItemR_Pasta_I_.menu":
  831. itemCombo2List[index] = new GUIContent("パスタ");
  832. break;
  833. case "handitem,HandItemR_Pen_I_.menu":
  834. itemCombo2List[index] = new GUIContent("ペン");
  835. break;
  836. case "handitem,HandItemR_Puff_I_.menu":
  837. itemCombo2List[index] = new GUIContent("パフ");
  838. break;
  839. case "handitem,HandItemR_Rip_I_.menu":
  840. itemCombo2List[index] = new GUIContent("リップ");
  841. break;
  842. case "handitem,HandItemR_Satumaimo_I_.menu":
  843. itemCombo2List[index] = new GUIContent("さつまいも");
  844. break;
  845. case "handitem,HandItemR_Scoop_I_.menu":
  846. itemCombo2List[index] = new GUIContent("スコップ");
  847. break;
  848. case "handitem,HandItemR_Senkouhanabi_I_.menu":
  849. itemCombo2List[index] = new GUIContent("線香花火");
  850. break;
  851. case "handitem,HandItemR_Shaker_I_.menu":
  852. itemCombo2List[index] = new GUIContent("シェイカー");
  853. break;
  854. case "handitem,HandItemR_Shell_I_.menu":
  855. itemCombo2List[index] = new GUIContent("貝殻");
  856. break;
  857. case "handitem,HandItemR_Shihen_I_.menu":
  858. itemCombo2List[index] = new GUIContent("紙片");
  859. break;
  860. case "handitem,HandItemR_SmartPhone_I_.menu":
  861. itemCombo2List[index] = new GUIContent("スマートフォン");
  862. break;
  863. case "handitem,HandItemR_Sponge_I_.menu":
  864. itemCombo2List[index] = new GUIContent("スポンジ");
  865. break;
  866. case "handitem,HandItemR_Spoon_Curry_I_.menu":
  867. itemCombo2List[index] = new GUIContent("スプーン(カレー)");
  868. break;
  869. case "handitem,HandItemR_Spoon_Omurice_I_.menu":
  870. itemCombo2List[index] = new GUIContent("スプーン(オムライス)");
  871. break;
  872. case "handitem,HandItemR_Spoon_Pafe_I_.menu":
  873. itemCombo2List[index] = new GUIContent("パフェスプーン");
  874. break;
  875. case "handitem,HandItemR_Suika_I_.menu":
  876. itemCombo2List[index] = new GUIContent("スイカ2");
  877. break;
  878. case "handitem,HandItemR_Teacup_I_.menu":
  879. itemCombo2List[index] = new GUIContent("ティーカップ");
  880. break;
  881. case "handitem,HandItemR_Tomato_I_.menu":
  882. itemCombo2List[index] = new GUIContent("トマト");
  883. break;
  884. case "handitem,HandItemR_Tomorokoshi_I_.menu":
  885. itemCombo2List[index] = new GUIContent("トウモロコシ");
  886. break;
  887. case "handitem,HandItemR_Tomorokoshi_yaki_I_.menu":
  888. itemCombo2List[index] = new GUIContent("焼きトウモロコシ");
  889. break;
  890. case "handitem,HandItemR_TropicalGlass_I_.menu":
  891. itemCombo2List[index] = new GUIContent("トロピカルグラス");
  892. break;
  893. case "handitem,HandItemR_Uchiwa_I_.menu":
  894. itemCombo2List[index] = new GUIContent("うちわ");
  895. break;
  896. case "handitem,HandItemR_Ukiwa_I_.menu":
  897. itemCombo2List[index] = new GUIContent("浮き輪");
  898. break;
  899. case "handitem,HandItemR_Usuba_Houchou_I_.menu":
  900. itemCombo2List[index] = new GUIContent("薄刃包丁");
  901. break;
  902. case "handitem,HandItemR_VibeBig_I_.menu":
  903. itemCombo2List[index] = new GUIContent("太バイブ");
  904. break;
  905. case "handitem,HandItemR_VibePink_I_.menu":
  906. itemCombo2List[index] = new GUIContent("ピンクバイブ");
  907. break;
  908. case "handitem,HandItemR_Vibe_I_.menu":
  909. itemCombo2List[index] = new GUIContent("バイブ");
  910. break;
  911. case "handitem,HandItemR_Wholecake_I_.menu":
  912. itemCombo2List[index] = new GUIContent("ホールケーキ");
  913. break;
  914. case "handitem,HandItemR_WineBottle_I_.menu":
  915. itemCombo2List[index] = new GUIContent("ワインボトル");
  916. break;
  917. case "handitem,HandItemR_WineGlass_I_.menu":
  918. itemCombo2List[index] = new GUIContent("ワイングラス");
  919. break;
  920. case "handitem,HandItemR_Zoukin2_I_.menu":
  921. itemCombo2List[index] = new GUIContent("雑巾");
  922. break;
  923. case "handitem,HandItemR_cocktail_blue_I_.menu":
  924. itemCombo2List[index] = new GUIContent("カクテル・青");
  925. break;
  926. case "handitem,HandItemR_cocktail_red_I_.menu":
  927. itemCombo2List[index] = new GUIContent("カクテル・赤");
  928. break;
  929. case "handitem,HandItemR_cocktail_yellow_I_.menu":
  930. itemCombo2List[index] = new GUIContent("カクテル・黄");
  931. break;
  932. case "handitem,HandItemR_karaoke_maracas_I_.menu":
  933. itemCombo2List[index] = new GUIContent("マラカス");
  934. break;
  935. case "handitem,HandItemR_karaoke_sensu_I_.menu":
  936. itemCombo2List[index] = new GUIContent("扇子");
  937. break;
  938. case "handitem,HandItemR_pretzel_I_.menu":
  939. itemCombo2List[index] = new GUIContent("ポッキー");
  940. break;
  941. case "handitem,HandItemR_smoothie_green_I_.menu":
  942. itemCombo2List[index] = new GUIContent("スムージー・緑");
  943. break;
  944. case "handitem,HandItemR_smoothie_red_I_.menu":
  945. itemCombo2List[index] = new GUIContent("スムージー・赤");
  946. break;
  947. case "handitem,handitemr_racket_I_.menu":
  948. itemCombo2List[index] = new GUIContent("ラケット");
  949. break;
  950. case "kousoku_lower,KousokuL_BathTowel_I_.menu":
  951. itemCombo2List[index] = new GUIContent("バストレイ");
  952. break;
  953. case "kousoku_upper,KousokuU_SMRoom2_Haritsuke_I_.menu":
  954. itemCombo2List[index] = new GUIContent("磔台2");
  955. break;
  956. case "kousoku_upper,KousokuU_SMRoom_Haritsuke_I_.menu":
  957. itemCombo2List[index] = new GUIContent("磔台");
  958. break;
  959. case "kousoku_upper,KousokuU_TekaseOne_I_.menu":
  960. itemCombo2List[index] = new GUIContent("手枷1");
  961. break;
  962. case "kousoku_upper,KousokuU_TekaseTwo_I_.menu":
  963. itemCombo2List[index] = new GUIContent("手枷2");
  964. break;
  965. case "kousoku_upper,KousokuU_Ushirode_I_.menu":
  966. itemCombo2List[index] = new GUIContent("後ろ手拘束具");
  967. break;
  968. default:
  969. itemCombo2List[index] = new GUIContent(itemBArray[index]);
  970. break;
  971. }
  972. }
  973. kankyoCombo.selectedItemIndex = 0;
  974. kankyoComboList = new GUIContent[kankyoMax];
  975. for (int index = 0; index < kankyoMax; ++index)
  976. {
  977. IniKey iniKey = this.Preferences["kankyo"]["kankyo" + (object)(index + 1)];
  978. kankyoComboList[index] = new GUIContent(iniKey.Value);
  979. }
  980. kankyo2InitFlg = true;
  981. }
  982. listStyle3.padding.top = this.GetPix(1);
  983. listStyle3.padding.bottom = this.GetPix(0);
  984. listStyle3.fontSize = this.GetPix(13);
  985. if (poseCombo.isClickedComboButton)
  986. GUI.enabled = false;
  987. if (poseGroupCombo.isClickedComboButton)
  988. GUI.enabled = false;
  989. if (sceneLevel == 3 || sceneLevel == 5 || isF6)
  990. {
  991. if (!isF6)
  992. {
  993. bool flag = true;
  994. if (faceFlg || poseFlg || (sceneFlg || kankyoFlg) || kankyo2Flg)
  995. flag = false;
  996. if (GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(2), (float)this.GetPix(2), (float)this.GetPix(39), (float)this.GetPix(20)), flag, "配置", style3))
  997. {
  998. faceFlg = false;
  999. poseFlg = false;
  1000. sceneFlg = false;
  1001. kankyoFlg = false;
  1002. kankyo2Flg = false;
  1003. bGui = true;
  1004. isGuiInit = true;
  1005. }
  1006. }
  1007. if (!yotogiFlg && GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(42), (float)this.GetPix(2), (float)this.GetPix(39), (float)this.GetPix(20)), poseFlg, "操作", style3))
  1008. {
  1009. poseFlg = true;
  1010. faceFlg = false;
  1011. sceneFlg = false;
  1012. kankyoFlg = false;
  1013. kankyo2Flg = false;
  1014. }
  1015. if (GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(82), (float)this.GetPix(2), (float)this.GetPix(39), (float)this.GetPix(20)), faceFlg, "表情", style3))
  1016. {
  1017. faceFlg = true;
  1018. poseFlg = false;
  1019. sceneFlg = false;
  1020. kankyoFlg = false;
  1021. kankyo2Flg = false;
  1022. if (!faceFlg2)
  1023. {
  1024. isFaceInit = true;
  1025. faceFlg2 = true;
  1026. maidArray[selectMaidIndex].boMabataki = false;
  1027. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  1028. }
  1029. isFaceInit = true;
  1030. }
  1031. if (GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(122), (float)this.GetPix(2), (float)this.GetPix(39), (float)this.GetPix(20)), kankyoFlg, "環境", style3))
  1032. {
  1033. poseFlg = false;
  1034. faceFlg = false;
  1035. sceneFlg = false;
  1036. kankyoFlg = true;
  1037. kankyo2Flg = false;
  1038. }
  1039. if (GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(162), (float)this.GetPix(2), (float)this.GetPix(39), (float)this.GetPix(20)), kankyo2Flg, "環2", style3))
  1040. {
  1041. poseFlg = false;
  1042. faceFlg = false;
  1043. sceneFlg = false;
  1044. kankyoFlg = false;
  1045. kankyo2Flg = true;
  1046. }
  1047. if (!(bool)((Object)line1))
  1048. {
  1049. line1 = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.3f));
  1050. line2 = this.MakeTex(2, 2, new Color(0.7f, 0.7f, 0.7f, 0.6f));
  1051. }
  1052. GUI.DrawTexture(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(20), (float)this.GetPix(200), 2f), (Texture)line1);
  1053. GUI.DrawTexture(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(20), (float)this.GetPix(200), 1f), (Texture)line2);
  1054. }
  1055. if (isDanceStop)
  1056. {
  1057. isStop[selectMaidIndex] = true;
  1058. isDanceStop = false;
  1059. }
  1060. if (kankyoCombo.isClickedComboButton || slotCombo.isClickedComboButton || (itemCombo2.isClickedComboButton || bgCombo2.isClickedComboButton))
  1061. GUI.enabled = false;
  1062. characterMgr.GetStockMaidCount();
  1063. float pix = (float)this.GetPix(45);
  1064. UnityEngine.Rect position1;
  1065. UnityEngine.Rect viewRect;
  1066. if (sceneLevel != 5)
  1067. {
  1068. position1 = new UnityEngine.Rect((float)this.GetPix(7), (float)this.GetPix(138), (float)(this.GetPix(44) * 4 + this.GetPix(20)), rectWin.height * 0.785f);
  1069. viewRect = new UnityEngine.Rect(0.0f, 0.0f, position1.width * 0.845f, pix * (float)Math.Ceiling((double)sortList.Count / 4.0) + (float)this.GetPix(5));
  1070. }
  1071. else
  1072. {
  1073. position1 = new UnityEngine.Rect((float)this.GetPix(7), (float)this.GetPix(138), (float)(this.GetPix(44) * 4 + this.GetPix(20)), (float)((double)rectWin.height * 0.785000026226044 * 0.959999978542328));
  1074. viewRect = new UnityEngine.Rect(0.0f, 0.0f, position1.width * 0.845f, (float)((double)pix * Math.Ceiling((double)sortList.Count / 4.0) + (double)this.GetPix(5) * 0.920000016689301));
  1075. }
  1076. scrollPos = GUI.BeginScrollView(position1, scrollPos, viewRect);
  1077. for (int index = 0; index < sortList.Count; ++index)
  1078. {
  1079. UnityEngine.Rect position2 = new UnityEngine.Rect((float)this.GetPix(index % 4 * 45), (float)this.GetPix(index / 4 * 45), (float)this.GetPix(44), (float)this.GetPix(44));
  1080. if (GUI.Button(position2, (Texture)sortList[index].tex))
  1081. {
  1082. string menu = sortList[index].menu;
  1083. byte[] f_byBuf = (byte[])null;
  1084. using (AFileBase afileBase = GameUty.FileOpen(menu, (AFileSystemBase)null))
  1085. {
  1086. NDebug.Assert(afileBase.IsValid(), "メニューファイルが存在しません。 :" + menu);
  1087. if (f_byBuf == null || f_byBuf.Length < afileBase.GetSize())
  1088. f_byBuf = new byte[afileBase.GetSize()];
  1089. afileBase.Read(ref f_byBuf, afileBase.GetSize());
  1090. }
  1091. string[] filename2 = CM3D2.MultipleMaids.Plugin.MultipleMaids.ProcScriptBin(maidArray[0], f_byBuf, menu, false);
  1092. GameObject gameObject = ImportCM2.LoadSkinMesh_R(filename2[0], filename2, "", maidArray[0].body0.goSlot[8], 1);
  1093. doguBObject.Add(gameObject);
  1094. gameObject.name = menu;
  1095. Vector3 zero1 = Vector3.zero;
  1096. Vector3 zero2 = Vector3.zero;
  1097. zero1.z = 0.4f;
  1098. gameObject.transform.localPosition = zero1;
  1099. gameObject.transform.localRotation = Quaternion.Euler(zero2);
  1100. doguCnt = doguBObject.Count - 1;
  1101. gDogu[doguCnt] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  1102. gDogu[doguCnt].GetComponent<Renderer>().material = m_material;
  1103. gDogu[doguCnt].layer = 8;
  1104. gDogu[doguCnt].GetComponent<Renderer>().enabled = false;
  1105. gDogu[doguCnt].SetActive(false);
  1106. gDogu[doguCnt].transform.position = gameObject.transform.position;
  1107. mDogu[doguCnt] = gDogu[doguCnt].AddComponent<MouseDrag6>();
  1108. mDogu[doguCnt].isScale = false;
  1109. mDogu[doguCnt].obj = gDogu[doguCnt];
  1110. mDogu[doguCnt].maid = gameObject;
  1111. mDogu[doguCnt].angles = gameObject.transform.eulerAngles;
  1112. gDogu[doguCnt].transform.localScale = new Vector3(cubeSize, cubeSize, cubeSize);
  1113. mDogu[doguCnt].ido = 1;
  1114. }
  1115. GUI.DrawTexture(position2, (Texture)sortList[index].tex);
  1116. }
  1117. GUI.EndScrollView();
  1118. GUI.enabled = true;
  1119. GUI.Label(new UnityEngine.Rect((float)this.GetPix(3), (float)this.GetPix(108), (float)this.GetPix(100), (float)this.GetPix(25)), "服装", style1);
  1120. style1.fontSize = this.GetPix(9);
  1121. GUI.Label(new UnityEngine.Rect((float)this.GetPix(3), (float)this.GetPix(119), (float)this.GetPix(100), (float)this.GetPix(25)), "アクセサリ", style1);
  1122. style1.fontSize = this.GetPix(11);
  1123. GUI.Label(new UnityEngine.Rect((float)this.GetPix(3), (float)this.GetPix(58), (float)this.GetPix(100), (float)this.GetPix(25)), "アイテム", style1);
  1124. GUI.Label(new UnityEngine.Rect((float)this.GetPix(3), (float)this.GetPix(86), (float)this.GetPix(100), (float)this.GetPix(24)), "背景(小)", style1);
  1125. if (kankyoCombo.isClickedComboButton || itemCombo2.isClickedComboButton || bgCombo2.isClickedComboButton)
  1126. GUI.enabled = false;
  1127. int num1 = slotCombo.List(new UnityEngine.Rect((float)this.GetPix(51), (float)this.GetPix(111), (float)this.GetPix(100), (float)this.GetPix(23)), slotComboList[slotIndex].text, slotComboList, buttonStyle, (GUIStyle)"box", listStyle3);
  1128. GUI.enabled = true;
  1129. if (kankyoCombo.isClickedComboButton || itemCombo2.isClickedComboButton)
  1130. GUI.enabled = false;
  1131. bgIndexB = bgCombo2.List(new UnityEngine.Rect((float)this.GetPix(51), (float)this.GetPix(83), (float)this.GetPix(100), (float)this.GetPix(23)), bgCombo2List[bgIndexB].text, bgCombo2List, buttonStyle, (GUIStyle)"box", listStyle3);
  1132. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(156), (float)this.GetPix(83), (float)this.GetPix(38), (float)this.GetPix(23)), "追加", style2))
  1133. {
  1134. Object original = (Object)GameMain.Instance.BgMgr.CreateAssetBundle(bgArray[bgIndexB]);
  1135. if (original == (Object)null)
  1136. original = Resources.Load("BG/" + bgArray[bgIndexB]);
  1137. GameObject gameObject = Object.Instantiate(original) as GameObject;
  1138. doguBObject.Add(gameObject);
  1139. gameObject.name = "BG_" + bgArray[bgIndexB];
  1140. Vector3 zero1 = Vector3.zero;
  1141. Vector3 zero2 = Vector3.zero;
  1142. zero1.z = 0.4f;
  1143. gameObject.transform.localScale = new Vector3(0.1f, 0.1f, 0.1f);
  1144. gameObject.transform.localPosition = zero1;
  1145. gameObject.transform.localRotation = Quaternion.Euler(zero2);
  1146. doguCnt = doguBObject.Count - 1;
  1147. gDogu[doguCnt] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  1148. gDogu[doguCnt].GetComponent<Renderer>().material = m_material;
  1149. gDogu[doguCnt].layer = 8;
  1150. gDogu[doguCnt].GetComponent<Renderer>().enabled = false;
  1151. gDogu[doguCnt].SetActive(false);
  1152. gDogu[doguCnt].transform.position = gameObject.transform.position;
  1153. mDogu[doguCnt] = gDogu[doguCnt].AddComponent<MouseDrag6>();
  1154. mDogu[doguCnt].isScale = false;
  1155. mDogu[doguCnt].obj = gDogu[doguCnt];
  1156. mDogu[doguCnt].maid = gameObject;
  1157. mDogu[doguCnt].angles = gameObject.transform.eulerAngles;
  1158. gDogu[doguCnt].transform.localScale = new Vector3(cubeSize, cubeSize, cubeSize);
  1159. mDogu[doguCnt].ido = 1;
  1160. }
  1161. GUI.enabled = true;
  1162. if (kankyoCombo.isClickedComboButton)
  1163. GUI.enabled = false;
  1164. itemIndexB = itemCombo2.List(new UnityEngine.Rect((float)this.GetPix(51), (float)this.GetPix(55), (float)this.GetPix(100), (float)this.GetPix(23)), itemCombo2List[itemIndexB].text, itemCombo2List, buttonStyle, (GUIStyle)"box", listStyle3);
  1165. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(156), (float)this.GetPix(55), (float)this.GetPix(38), (float)this.GetPix(23)), "追加", style2))
  1166. {
  1167. string str = itemBArray[itemIndexB].Split(',')[1];
  1168. byte[] f_byBuf = (byte[])null;
  1169. using (AFileBase afileBase = GameUty.FileOpen(str, (AFileSystemBase)null))
  1170. {
  1171. NDebug.Assert(afileBase.IsValid(), "メニューファイルが存在しません。 :" + str);
  1172. if (f_byBuf == null || f_byBuf.Length < afileBase.GetSize())
  1173. f_byBuf = new byte[afileBase.GetSize()];
  1174. afileBase.Read(ref f_byBuf, afileBase.GetSize());
  1175. }
  1176. string[] filename2 = CM3D2.MultipleMaids.Plugin.MultipleMaids.ProcScriptBin(maidArray[0], f_byBuf, str, false);
  1177. GameObject gameObject = ImportCM2.LoadSkinMesh_R(filename2[0], filename2, "", maidArray[0].body0.goSlot[8], 1);
  1178. doguBObject.Add(gameObject);
  1179. gameObject.name = str;
  1180. Vector3 zero1 = Vector3.zero;
  1181. Vector3 zero2 = Vector3.zero;
  1182. zero1.z = 0.4f;
  1183. switch (itemIndexB)
  1184. {
  1185. case 0:
  1186. zero2.z = 90f;
  1187. zero1.y = 0.04f;
  1188. goto case 19;
  1189. case 1:
  1190. zero2.z = 90f;
  1191. goto case 19;
  1192. case 4:
  1193. zero2.x = 90f;
  1194. goto case 19;
  1195. case 19:
  1196. case 20:
  1197. case 21:
  1198. case 22:
  1199. case 23:
  1200. switch (gameObject.name)
  1201. {
  1202. case "HandItemL_Etoile_Saucer_I_.menu":
  1203. case "HandItemL_Karte_I_.menu":
  1204. case "HandItemL_Katuramuki_Daikon_I_.menu":
  1205. case "HandItemR_BeerBottle(cap_off)_I_.menu":
  1206. case "HandItemR_BeerBottle(cap_on)_I_.menu":
  1207. case "HandItemR_BeerGlass_I_.menu":
  1208. case "HandItemR_Etoile_Teacup_I_.menu":
  1209. case "HandItemR_Jyouro_I_.menu":
  1210. case "HandItemR_Ketchup_I_.menu":
  1211. case "HandItemR_Kobin_I_.menu":
  1212. case "HandItemR_MelonSoda_I_.menu":
  1213. case "HandItemR_MilkBottle(cap_off)_I_.menu":
  1214. case "HandItemR_MilkBottle(cap_on)_I_.menu":
  1215. case "HandItemR_Mugcup_I_.menu":
  1216. case "HandItemR_Natumikan_I_.menu":
  1217. case "HandItemR_Nei_Heartful_I_.menu":
  1218. case "HandItemR_Ochoko_I_.menu":
  1219. case "HandItemR_Shaker_I_.menu":
  1220. case "HandItemR_SmartPhone_I_.menu":
  1221. case "HandItemR_Suika_I_.menu":
  1222. case "HandItemR_Tomato_I_.menu":
  1223. case "HandItemR_TropicalGlass_I_.menu":
  1224. case "HandItemR_cocktail_blue_I_.menu":
  1225. case "HandItemR_cocktail_red_I_.menu":
  1226. case "HandItemR_cocktail_yellow_I_.menu":
  1227. case "HandItemR_smoothie_green_I_.menu":
  1228. case "HandItemR_smoothie_red_I_.menu":
  1229. zero2.x = 0.0f;
  1230. zero2.z = 90f;
  1231. break;
  1232. case "HandItemL_Karaoke_Mike_I_.menu":
  1233. case "HandItemR_Crops_Suika_I_.menu":
  1234. case "HandItemR_Curry_I_.menu":
  1235. case "HandItemR_DVD1_I_.menu":
  1236. case "HandItemR_DVD2_I_.menu":
  1237. case "HandItemR_DVD3_I_.menu":
  1238. case "HandItemR_DVD4_I_.menu":
  1239. case "HandItemR_DVD5_I_.menu":
  1240. case "HandItemR_Folk_I_.menu":
  1241. case "HandItemR_Hanabi_I_.menu":
  1242. case "HandItemR_Kushiyaki_I_.menu":
  1243. case "HandItemR_Ninjin_I_.menu":
  1244. case "HandItemR_Omurice1_I_.menu":
  1245. case "HandItemR_Omurice2_I_.menu":
  1246. case "HandItemR_Omurice3_I_.menu":
  1247. case "HandItemR_Pasta_I_.menu":
  1248. case "HandItemR_Satumaimo_I_.menu":
  1249. case "HandItemR_Scoop_I_.menu":
  1250. case "HandItemR_Senkouhanabi_I_.menu":
  1251. case "HandItemR_Shell_I_.menu":
  1252. case "HandItemR_Spoon_Curry_I_.menu":
  1253. case "HandItemR_Spoon_Omurice_I_.menu":
  1254. case "HandItemR_Tomorokoshi_I_.menu":
  1255. case "HandItemR_Tomorokoshi_yaki_I_.menu":
  1256. case "HandItemR_Uchiwa_I_.menu":
  1257. zero2.z = 90f;
  1258. break;
  1259. }
  1260. gameObject.transform.localPosition = zero1;
  1261. gameObject.transform.localRotation = Quaternion.Euler(zero2);
  1262. doguCnt = doguBObject.Count - 1;
  1263. gDogu[doguCnt] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  1264. gDogu[doguCnt].GetComponent<Renderer>().material = m_material;
  1265. gDogu[doguCnt].layer = 8;
  1266. gDogu[doguCnt].GetComponent<Renderer>().enabled = false;
  1267. gDogu[doguCnt].SetActive(false);
  1268. gDogu[doguCnt].transform.position = gameObject.transform.position;
  1269. mDogu[doguCnt] = gDogu[doguCnt].AddComponent<MouseDrag6>();
  1270. mDogu[doguCnt].isScale = false;
  1271. mDogu[doguCnt].obj = gDogu[doguCnt];
  1272. mDogu[doguCnt].maid = gameObject;
  1273. mDogu[doguCnt].angles = gameObject.transform.eulerAngles;
  1274. gDogu[doguCnt].transform.localScale = new Vector3(cubeSize, cubeSize, cubeSize);
  1275. mDogu[doguCnt].ido = 1;
  1276. break;
  1277. case 25:
  1278. zero2.z = 90f;
  1279. goto case 19;
  1280. case 26:
  1281. zero2.z = 90f;
  1282. goto case 19;
  1283. case 27:
  1284. zero2.z = 90f;
  1285. goto case 19;
  1286. default:
  1287. zero2.x = -90f;
  1288. goto case 19;
  1289. }
  1290. }
  1291. GUI.enabled = true;
  1292. if (nameFlg)
  1293. {
  1294. inName2 = GUI.TextField(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(27), (float)this.GetPix(100), (float)this.GetPix(20)), inName2);
  1295. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(110), (float)this.GetPix(27), (float)this.GetPix(35), (float)this.GetPix(20)), "更新", style2))
  1296. {
  1297. nameFlg = false;
  1298. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  1299. this.Preferences["kankyo"]["kankyo" + (object)(kankyoCombo.selectedItemIndex + 1)].Value = inName2;
  1300. this.SaveConfig();
  1301. kankyoComboList = new GUIContent[kankyoMax];
  1302. for (int index = 0; index < kankyoMax; ++index)
  1303. {
  1304. IniKey iniKey = this.Preferences["kankyo"]["kankyo" + (object)(index + 1)];
  1305. kankyoComboList[index] = new GUIContent(iniKey.Value);
  1306. }
  1307. }
  1308. }
  1309. else
  1310. {
  1311. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(180), (float)this.GetPix(27), (float)this.GetPix(24), (float)this.GetPix(20)), "名", style2))
  1312. {
  1313. nameFlg = true;
  1314. inName2 = kankyoComboList[kankyoIndex].text;
  1315. }
  1316. kankyoIndex = kankyoCombo.List(new UnityEngine.Rect((float)this.GetPix(4), (float)this.GetPix(27), (float)this.GetPix(91), (float)this.GetPix(23)), kankyoComboList[kankyoIndex].text, kankyoComboList, buttonStyle, (GUIStyle)"box", listStyle3);
  1317. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(100), (float)this.GetPix(27), (float)this.GetPix(35), (float)this.GetPix(20)), "保存", style2))
  1318. {
  1319. saveScene = 10000 + kankyoIndex;
  1320. saveScene2 = saveScene;
  1321. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  1322. try
  1323. {
  1324. thum_byte_to_base64_ = string.Empty;
  1325. thum_file_path_ = Path.Combine(Path.GetTempPath(), "cm3d2_" + Guid.NewGuid().ToString() + ".png");
  1326. GameMain.Instance.MainCamera.ScreenShot(thum_file_path_, 1, false);
  1327. }
  1328. catch
  1329. {
  1330. }
  1331. }
  1332. GUI.enabled = false;
  1333. IniKey iniKey = this.Preferences["scene"]["s" + (object)(10000 + kankyoIndex)];
  1334. if (iniKey.Value != null && iniKey.Value.ToString() != "")
  1335. GUI.enabled = true;
  1336. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(140), (float)this.GetPix(27), (float)this.GetPix(35), (float)this.GetPix(20)), "読込", style2))
  1337. {
  1338. loadScene = 10000 + kankyoIndex;
  1339. kankyoLoadFlg = true;
  1340. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  1341. }
  1342. }
  1343. GUI.enabled = true;
  1344. if (num1 == slotIndex)
  1345. return;
  1346. slotIndex = num1;
  1347. sortList.Clear();
  1348. scrollPos = new Vector2(0.0f, 0.0f);
  1349. if (itemDataList.Count == 0)
  1350. {
  1351. foreach (string menuFile in GameUty.MenuFiles)
  1352. {
  1353. string fileName = Path.GetFileNameWithoutExtension(menuFile) + ".menu";
  1354. byte[] f_byBuf = (byte[])null;
  1355. using (AFileBase afileBase = GameUty.FileOpen(fileName, (AFileSystemBase)null))
  1356. {
  1357. NDebug.Assert(afileBase.IsValid(), "メニューファイルが存在しません。 :" + fileName);
  1358. if (f_byBuf == null || f_byBuf.Length < afileBase.GetSize())
  1359. f_byBuf = new byte[afileBase.GetSize()];
  1360. afileBase.Read(ref f_byBuf, afileBase.GetSize());
  1361. }
  1362. BinaryReader binaryReader = new BinaryReader((Stream)new MemoryStream(f_byBuf), Encoding.UTF8);
  1363. if (binaryReader.ReadString() != "CM3D2_MENU")
  1364. {
  1365. binaryReader.Close();
  1366. }
  1367. else
  1368. {
  1369. binaryReader.ReadInt32();
  1370. binaryReader.ReadString();
  1371. binaryReader.ReadString();
  1372. string str1 = binaryReader.ReadString();
  1373. string s = "";
  1374. binaryReader.ReadString();
  1375. binaryReader.ReadInt32();
  1376. string str2 = "";
  1377. try
  1378. {
  1379. do
  1380. {
  1381. int num2;
  1382. do
  1383. {
  1384. num2 = (int)binaryReader.ReadByte();
  1385. }
  1386. while (num2 == 0);
  1387. for (int index = 0; index < num2; ++index)
  1388. {
  1389. string str3 = binaryReader.ReadString();
  1390. if (str3 == "icons")
  1391. {
  1392. str2 = binaryReader.ReadString();
  1393. break;
  1394. }
  1395. if (str3 == "priority")
  1396. {
  1397. s = binaryReader.ReadString();
  1398. break;
  1399. }
  1400. }
  1401. }
  1402. while (!(str2 != ""));
  1403. int result = 0;
  1404. int.TryParse(s, out result);
  1405. itemDataList.Add(new CM3D2.MultipleMaids.Plugin.MultipleMaids.ItemData()
  1406. {
  1407. info = str1,
  1408. name = str2,
  1409. menu = fileName,
  1410. order = result,
  1411. cd = f_byBuf
  1412. });
  1413. }
  1414. catch
  1415. {
  1416. }
  1417. binaryReader.Close();
  1418. }
  1419. }
  1420. }
  1421. foreach (CM3D2.MultipleMaids.Plugin.MultipleMaids.ItemData itemData in itemDataList)
  1422. {
  1423. if (slotIndex != 0 && !(itemData.info != slotArray[slotIndex]) && itemData.order > 0)
  1424. sortList.Add(new CM3D2.MultipleMaids.Plugin.MultipleMaids.SortItem()
  1425. {
  1426. order = itemData.order,
  1427. name = itemData.name,
  1428. menu = itemData.menu,
  1429. tex = itemData.tex
  1430. });
  1431. }
  1432. IOrderedEnumerable<CM3D2.MultipleMaids.Plugin.MultipleMaids.SortItem> orderedEnumerable = sortList.OrderBy<CM3D2.MultipleMaids.Plugin.MultipleMaids.SortItem, int>((Func<CM3D2.MultipleMaids.Plugin.MultipleMaids.SortItem, int>)(p => p.order)).ThenBy<CM3D2.MultipleMaids.Plugin.MultipleMaids.SortItem, string>((Func<CM3D2.MultipleMaids.Plugin.MultipleMaids.SortItem, string>)(p => p.name));
  1433. List<CM3D2.MultipleMaids.Plugin.MultipleMaids.SortItem> sortItemList = new List<CM3D2.MultipleMaids.Plugin.MultipleMaids.SortItem>();
  1434. string str4 = "";
  1435. foreach (CM3D2.MultipleMaids.Plugin.MultipleMaids.SortItem sortItem in (IEnumerable<CM3D2.MultipleMaids.Plugin.MultipleMaids.SortItem>)orderedEnumerable)
  1436. {
  1437. try
  1438. {
  1439. if ((Object)sortItem.tex == (Object)null)
  1440. {
  1441. byte[] data = ImportCM.LoadTexture(GameUty.FileSystem, sortItem.name, false).data;
  1442. Texture2D texture2D = new Texture2D(50, 50, TextureFormat.RGBA32, false);
  1443. texture2D.LoadImage(data);
  1444. sortItem.tex = texture2D;
  1445. }
  1446. if (!(sortItem.menu == str4))
  1447. {
  1448. str4 = sortItem.menu;
  1449. sortItemList.Add(sortItem);
  1450. }
  1451. }
  1452. catch
  1453. {
  1454. }
  1455. }
  1456. sortList = sortItemList;
  1457. }
  1458. private Dictionary<string, int>[] dicts = new Dictionary<string, int>[4];
  1459. private void GuiFunc6(int winID)
  1460. {
  1461. GUIStyle guistyle = "label";
  1462. guistyle.fontSize = this.GetPix(12);
  1463. guistyle.alignment = TextAnchor.UpperLeft;
  1464. GUIStyle guistyle2 = "label";
  1465. guistyle2.fontSize = this.GetPix(11);
  1466. guistyle2.alignment = TextAnchor.UpperLeft;
  1467. GUIStyle guistyle3 = "button";
  1468. guistyle3.fontSize = this.GetPix(20);
  1469. GUIStyle guistyle4 = "button";
  1470. guistyle4.fontSize = this.GetPix(14);
  1471. guistyle4.alignment = TextAnchor.MiddleLeft;
  1472. GUIStyle guistyle5 = "button";
  1473. guistyle5.fontSize = this.GetPix(12);
  1474. guistyle5.alignment = TextAnchor.MiddleLeft;
  1475. GUIStyle guistyle6 = new GUIStyle("toggle");
  1476. guistyle6.fontSize = this.GetPix(13);
  1477. CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
  1478. Maid maid = maidArray[selectMaidIndex];
  1479. if (!kankyoInitFlg)
  1480. {
  1481. listStyle2.normal.textColor = Color.white;
  1482. listStyle2.normal.background = this.MakeTex(2, 2, new Color(0f, 0f, 0f, 0.5f));
  1483. listStyle2.onHover.background = (listStyle2.hover.background = new Texture2D(2, 2));
  1484. RectOffset padding = listStyle2.padding;
  1485. RectOffset padding2 = listStyle2.padding;
  1486. RectOffset padding3 = listStyle2.padding;
  1487. int num = listStyle2.padding.bottom = this.GetPix(0);
  1488. num = (padding3.top = num);
  1489. num = (padding2.right = num);
  1490. padding.left = num;
  1491. listStyle2.fontSize = this.GetPix(11);
  1492. listStyle3.normal.textColor = Color.white;
  1493. listStyle3.normal.background = this.MakeTex(2, 2, new Color(0f, 0f, 0f, 0.5f));
  1494. listStyle3.onHover.background = (listStyle3.hover.background = new Texture2D(2, 2));
  1495. RectOffset padding4 = listStyle3.padding;
  1496. RectOffset padding5 = listStyle3.padding;
  1497. num = (listStyle3.padding.top = this.GetPix(0));
  1498. num = (padding5.right = num);
  1499. padding4.left = num;
  1500. listStyle3.padding.bottom = this.GetPix(0);
  1501. listStyle3.fontSize = this.GetPix(12);
  1502. bgmCombo.selectedItemIndex = bgmIndex;
  1503. if (sceneLevel == 5)
  1504. {
  1505. bgmCombo.selectedItemIndex = 2;
  1506. }
  1507. bgmComboList = new GUIContent[bgmArray.Length];
  1508. int i = 0;
  1509. while (i < bgmArray.Length)
  1510. {
  1511. string text = bgmArray[i];
  1512. if (text == null)
  1513. {
  1514. goto IL_501;
  1515. }
  1516. if (dicts[0] == null)
  1517. {
  1518. dicts[0] = new Dictionary<string, int>(11)
  1519. {
  1520. {
  1521. "dokidokifallinlove_short",
  1522. 0
  1523. },
  1524. {
  1525. "entrancetoyou_short",
  1526. 1
  1527. },
  1528. {
  1529. "scarlet leap_short",
  1530. 2
  1531. },
  1532. {
  1533. "stellarmytears_short",
  1534. 3
  1535. },
  1536. {
  1537. "stellarmytears_short2",
  1538. 4
  1539. },
  1540. {
  1541. "stellarmytears_short3",
  1542. 5
  1543. },
  1544. {
  1545. "RhythmixToYou",
  1546. 6
  1547. },
  1548. {
  1549. "happy_happy_scandal1",
  1550. 7
  1551. },
  1552. {
  1553. "happy_happy_scandal2",
  1554. 8
  1555. },
  1556. {
  1557. "happy_happy_scandal3",
  1558. 9
  1559. },
  1560. {
  1561. "can_know_two_close",
  1562. 10
  1563. }
  1564. };
  1565. }
  1566. if (!dicts[0].TryGetValue(text, out num))
  1567. {
  1568. goto IL_501;
  1569. }
  1570. switch (num)
  1571. {
  1572. case 0:
  1573. bgmComboList[i] = new GUIContent("ドキドキ☆Fallin' Love");
  1574. break;
  1575. case 1:
  1576. bgmComboList[i] = new GUIContent("entrance to you");
  1577. break;
  1578. case 2:
  1579. bgmComboList[i] = new GUIContent("scarlet leap");
  1580. break;
  1581. case 3:
  1582. bgmComboList[i] = new GUIContent("stellar my tears1");
  1583. break;
  1584. case 4:
  1585. bgmComboList[i] = new GUIContent("stellar my tears2");
  1586. break;
  1587. case 5:
  1588. bgmComboList[i] = new GUIContent("stellar my tears3");
  1589. break;
  1590. case 6:
  1591. bgmComboList[i] = new GUIContent("rhythmix to you");
  1592. break;
  1593. case 7:
  1594. bgmComboList[i] = new GUIContent("happy!happy!スキャンダル!! 1");
  1595. break;
  1596. case 8:
  1597. bgmComboList[i] = new GUIContent("happy!happy!スキャンダル!! 2");
  1598. break;
  1599. case 9:
  1600. bgmComboList[i] = new GUIContent("happy!happy!スキャンダル!! 3");
  1601. break;
  1602. case 10:
  1603. bgmComboList[i] = new GUIContent("Can Know Two Close");
  1604. break;
  1605. default:
  1606. goto IL_501;
  1607. }
  1608. IL_51A:
  1609. i++;
  1610. continue;
  1611. IL_501:
  1612. bgmComboList[i] = new GUIContent(bgmArray[i]);
  1613. goto IL_51A;
  1614. }
  1615. bgCombo.selectedItemIndex = bgIndex;
  1616. bgComboList = new GUIContent[bgArray.Length];
  1617. i = 0;
  1618. while (i < bgArray.Length)
  1619. {
  1620. string text = bgArray[i];
  1621. if (text == null)
  1622. {
  1623. goto IL_1692;
  1624. }
  1625. if (dicts[1] == null)
  1626. {
  1627. dicts[1] = new Dictionary<string, int>(106)
  1628. {
  1629. {
  1630. "Salon",
  1631. 0
  1632. },
  1633. {
  1634. "Syosai",
  1635. 1
  1636. },
  1637. {
  1638. "Syosai_Night",
  1639. 2
  1640. },
  1641. {
  1642. "DressRoom_NoMirror",
  1643. 3
  1644. },
  1645. {
  1646. "MyBedRoom",
  1647. 4
  1648. },
  1649. {
  1650. "MyBedRoom_Night",
  1651. 5
  1652. },
  1653. {
  1654. "MyBedRoom_NightOff",
  1655. 6
  1656. },
  1657. {
  1658. "Bathroom",
  1659. 7
  1660. },
  1661. {
  1662. "PlayRoom",
  1663. 8
  1664. },
  1665. {
  1666. "Pool",
  1667. 9
  1668. },
  1669. {
  1670. "SMRoom",
  1671. 10
  1672. },
  1673. {
  1674. "PlayRoom2",
  1675. 11
  1676. },
  1677. {
  1678. "Salon_Garden",
  1679. 12
  1680. },
  1681. {
  1682. "LargeBathRoom",
  1683. 13
  1684. },
  1685. {
  1686. "MaidRoom",
  1687. 14
  1688. },
  1689. {
  1690. "OiranRoom",
  1691. 15
  1692. },
  1693. {
  1694. "Penthouse",
  1695. 16
  1696. },
  1697. {
  1698. "Town",
  1699. 17
  1700. },
  1701. {
  1702. "Kitchen",
  1703. 18
  1704. },
  1705. {
  1706. "Kitchen_Night",
  1707. 19
  1708. },
  1709. {
  1710. "Shitsumu",
  1711. 20
  1712. },
  1713. {
  1714. "Shitsumu_Night",
  1715. 21
  1716. },
  1717. {
  1718. "Salon_Entrance",
  1719. 22
  1720. },
  1721. {
  1722. "Bar",
  1723. 23
  1724. },
  1725. {
  1726. "Toilet",
  1727. 24
  1728. },
  1729. {
  1730. "Train",
  1731. 25
  1732. },
  1733. {
  1734. "SMRoom2",
  1735. 26
  1736. },
  1737. {
  1738. "LockerRoom",
  1739. 27
  1740. },
  1741. {
  1742. "Oheya",
  1743. 28
  1744. },
  1745. {
  1746. "Salon_Day",
  1747. 29
  1748. },
  1749. {
  1750. "ClassRoom",
  1751. 30
  1752. },
  1753. {
  1754. "ClassRoom_Play",
  1755. 31
  1756. },
  1757. {
  1758. "HoneymoonRoom",
  1759. 32
  1760. },
  1761. {
  1762. "OutletPark",
  1763. 33
  1764. },
  1765. {
  1766. "BigSight",
  1767. 34
  1768. },
  1769. {
  1770. "BigSight_Night",
  1771. 35
  1772. },
  1773. {
  1774. "PrivateRoom",
  1775. 36
  1776. },
  1777. {
  1778. "PrivateRoom_Night",
  1779. 37
  1780. },
  1781. {
  1782. "Sea",
  1783. 38
  1784. },
  1785. {
  1786. "Sea_Night",
  1787. 39
  1788. },
  1789. {
  1790. "Yashiki",
  1791. 40
  1792. },
  1793. {
  1794. "Yashiki_Day",
  1795. 41
  1796. },
  1797. {
  1798. "Yashiki_Pillow",
  1799. 42
  1800. },
  1801. {
  1802. "rotenburo",
  1803. 43
  1804. },
  1805. {
  1806. "rotenburo_night",
  1807. 44
  1808. },
  1809. {
  1810. "villa",
  1811. 45
  1812. },
  1813. {
  1814. "villa_night",
  1815. 46
  1816. },
  1817. {
  1818. "villa_bedroom",
  1819. 47
  1820. },
  1821. {
  1822. "villa_bedroom_night",
  1823. 48
  1824. },
  1825. {
  1826. "villa_farm",
  1827. 49
  1828. },
  1829. {
  1830. "villa_farm_night",
  1831. 50
  1832. },
  1833. {
  1834. "karaokeroom",
  1835. 51
  1836. },
  1837. {
  1838. "Theater",
  1839. 52
  1840. },
  1841. {
  1842. "Theater_LightOff",
  1843. 53
  1844. },
  1845. {
  1846. "LiveStage",
  1847. 54
  1848. },
  1849. {
  1850. "LiveStage_Side",
  1851. 55
  1852. },
  1853. {
  1854. "LiveStage_use_dance",
  1855. 56
  1856. },
  1857. {
  1858. "BackStage",
  1859. 57
  1860. },
  1861. {
  1862. "DanceRoom",
  1863. 58
  1864. },
  1865. {
  1866. "EmpireClub_Rotary",
  1867. 59
  1868. },
  1869. {
  1870. "EmpireClub_Rotary_Night",
  1871. 60
  1872. },
  1873. {
  1874. "EmpireClub_Entrance",
  1875. 61
  1876. },
  1877. {
  1878. "ShinShitsumu",
  1879. 62
  1880. },
  1881. {
  1882. "ShinShitsumu_ChairRot",
  1883. 63
  1884. },
  1885. {
  1886. "ShinShitsumu_Night",
  1887. 64
  1888. },
  1889. {
  1890. "MyRoom",
  1891. 65
  1892. },
  1893. {
  1894. "MyRoom_Night",
  1895. 66
  1896. },
  1897. {
  1898. "OpemCafe",
  1899. 67
  1900. },
  1901. {
  1902. "OpemCafe_Night",
  1903. 68
  1904. },
  1905. {
  1906. "Restaurant",
  1907. 69
  1908. },
  1909. {
  1910. "Restaurant_Night",
  1911. 70
  1912. },
  1913. {
  1914. "MainKitchen",
  1915. 71
  1916. },
  1917. {
  1918. "MainKitchen_Night",
  1919. 72
  1920. },
  1921. {
  1922. "MainKitchen_LightOff",
  1923. 73
  1924. },
  1925. {
  1926. "BarLounge",
  1927. 74
  1928. },
  1929. {
  1930. "Casino",
  1931. 75
  1932. },
  1933. {
  1934. "CasinoMini",
  1935. 76
  1936. },
  1937. {
  1938. "SMClub",
  1939. 77
  1940. },
  1941. {
  1942. "Soap",
  1943. 78
  1944. },
  1945. {
  1946. "Spa",
  1947. 79
  1948. },
  1949. {
  1950. "Spa_Night",
  1951. 80
  1952. },
  1953. {
  1954. "ShoppingMall",
  1955. 81
  1956. },
  1957. {
  1958. "ShoppingMall_Night",
  1959. 82
  1960. },
  1961. {
  1962. "GameShop",
  1963. 83
  1964. },
  1965. {
  1966. "MusicShop",
  1967. 84
  1968. },
  1969. {
  1970. "HeroineRoom_A1",
  1971. 85
  1972. },
  1973. {
  1974. "HeroineRoom_A1_Night",
  1975. 86
  1976. },
  1977. {
  1978. "HeroineRoom_B1",
  1979. 87
  1980. },
  1981. {
  1982. "HeroineRoom_B1_Night",
  1983. 88
  1984. },
  1985. {
  1986. "HeroineRoom_C1",
  1987. 89
  1988. },
  1989. {
  1990. "HeroineRoom_C1_Night",
  1991. 90
  1992. },
  1993. {
  1994. "HeroineRoom_A",
  1995. 91
  1996. },
  1997. {
  1998. "HeroineRoom_A_Night",
  1999. 92
  2000. },
  2001. {
  2002. "HeroineRoom_B",
  2003. 93
  2004. },
  2005. {
  2006. "HeroineRoom_B_Night",
  2007. 94
  2008. },
  2009. {
  2010. "HeroineRoom_C",
  2011. 95
  2012. },
  2013. {
  2014. "HeroineRoom_C_Night",
  2015. 96
  2016. },
  2017. {
  2018. "Shukuhakubeya_BedRoom",
  2019. 97
  2020. },
  2021. {
  2022. "Shukuhakubeya_BedRoom_Night",
  2023. 98
  2024. },
  2025. {
  2026. "Shukuhakubeya_Other_BedRoom",
  2027. 99
  2028. },
  2029. {
  2030. "Shukuhakubeya_Living",
  2031. 100
  2032. },
  2033. {
  2034. "Shukuhakubeya_Living_Night",
  2035. 101
  2036. },
  2037. {
  2038. "Shukuhakubeya_Toilet",
  2039. 102
  2040. },
  2041. {
  2042. "Shukuhakubeya_Toilet_Night",
  2043. 103
  2044. },
  2045. {
  2046. "Shukuhakubeya_WashRoom",
  2047. 104
  2048. },
  2049. {
  2050. "Shukuhakubeya_WashRoom_Night",
  2051. 105
  2052. }
  2053. };
  2054. }
  2055. if (dicts[1].TryGetValue(text, out num))
  2056. {
  2057. goto IL_1692;
  2058. }
  2059. switch (num)
  2060. {
  2061. case 0:
  2062. bgComboList[i] = new GUIContent("サロン");
  2063. break;
  2064. case 1:
  2065. bgComboList[i] = new GUIContent("書斎");
  2066. break;
  2067. case 2:
  2068. bgComboList[i] = new GUIContent("書斎(夜)");
  2069. break;
  2070. case 3:
  2071. bgComboList[i] = new GUIContent("ドレスルーム");
  2072. break;
  2073. case 4:
  2074. bgComboList[i] = new GUIContent("自室");
  2075. break;
  2076. case 5:
  2077. bgComboList[i] = new GUIContent("自室(夜)");
  2078. break;
  2079. case 6:
  2080. bgComboList[i] = new GUIContent("自室(消灯)");
  2081. break;
  2082. case 7:
  2083. bgComboList[i] = new GUIContent("風呂");
  2084. break;
  2085. case 8:
  2086. bgComboList[i] = new GUIContent("プレイルーム");
  2087. break;
  2088. case 9:
  2089. bgComboList[i] = new GUIContent("プール");
  2090. break;
  2091. case 10:
  2092. bgComboList[i] = new GUIContent("SMルーム");
  2093. break;
  2094. case 11:
  2095. bgComboList[i] = new GUIContent("プレイルーム2");
  2096. break;
  2097. case 12:
  2098. bgComboList[i] = new GUIContent("サロン(中庭)");
  2099. break;
  2100. case 13:
  2101. bgComboList[i] = new GUIContent("大浴場");
  2102. break;
  2103. case 14:
  2104. bgComboList[i] = new GUIContent("メイド部屋");
  2105. break;
  2106. case 15:
  2107. bgComboList[i] = new GUIContent("花魁ルーム");
  2108. break;
  2109. case 16:
  2110. bgComboList[i] = new GUIContent("ペントハウス");
  2111. break;
  2112. case 17:
  2113. bgComboList[i] = new GUIContent("街");
  2114. break;
  2115. case 18:
  2116. bgComboList[i] = new GUIContent("キッチン");
  2117. break;
  2118. case 19:
  2119. bgComboList[i] = new GUIContent("キッチン(夜)");
  2120. break;
  2121. case 20:
  2122. bgComboList[i] = new GUIContent("執務室");
  2123. break;
  2124. case 21:
  2125. bgComboList[i] = new GUIContent("執務室(夜)");
  2126. break;
  2127. case 22:
  2128. bgComboList[i] = new GUIContent("エントランス");
  2129. break;
  2130. case 23:
  2131. bgComboList[i] = new GUIContent("バー");
  2132. break;
  2133. case 24:
  2134. bgComboList[i] = new GUIContent("トイレ");
  2135. break;
  2136. case 25:
  2137. bgComboList[i] = new GUIContent("電車");
  2138. break;
  2139. case 26:
  2140. bgComboList[i] = new GUIContent("地下室");
  2141. break;
  2142. case 27:
  2143. bgComboList[i] = new GUIContent("ロッカールーム");
  2144. break;
  2145. case 28:
  2146. bgComboList[i] = new GUIContent("四畳半部屋");
  2147. break;
  2148. case 29:
  2149. bgComboList[i] = new GUIContent("サロン(昼)");
  2150. break;
  2151. case 30:
  2152. bgComboList[i] = new GUIContent("教室");
  2153. break;
  2154. case 31:
  2155. bgComboList[i] = new GUIContent("教室(夜伽)");
  2156. break;
  2157. case 32:
  2158. bgComboList[i] = new GUIContent("ハネムーンルーム");
  2159. break;
  2160. case 33:
  2161. bgComboList[i] = new GUIContent("アウトレットパーク");
  2162. break;
  2163. case 34:
  2164. bgComboList[i] = new GUIContent("ビッグサイト");
  2165. break;
  2166. case 35:
  2167. bgComboList[i] = new GUIContent("ビッグサイト(夜)");
  2168. break;
  2169. case 36:
  2170. bgComboList[i] = new GUIContent("プライベートルーム");
  2171. break;
  2172. case 37:
  2173. bgComboList[i] = new GUIContent("プライベートルーム(夜)");
  2174. break;
  2175. case 38:
  2176. bgComboList[i] = new GUIContent("海");
  2177. break;
  2178. case 39:
  2179. bgComboList[i] = new GUIContent("海(夜)");
  2180. break;
  2181. case 40:
  2182. bgComboList[i] = new GUIContent("屋敷(夜)");
  2183. break;
  2184. case 41:
  2185. bgComboList[i] = new GUIContent("屋敷");
  2186. break;
  2187. case 42:
  2188. bgComboList[i] = new GUIContent("屋敷(夜・枕)");
  2189. break;
  2190. case 43:
  2191. bgComboList[i] = new GUIContent("露天風呂");
  2192. break;
  2193. case 44:
  2194. bgComboList[i] = new GUIContent("露天風呂(夜)");
  2195. break;
  2196. case 45:
  2197. bgComboList[i] = new GUIContent("ヴィラ1F");
  2198. break;
  2199. case 46:
  2200. bgComboList[i] = new GUIContent("ヴィラ1F(夜)");
  2201. break;
  2202. case 47:
  2203. bgComboList[i] = new GUIContent("ヴィラ2F");
  2204. break;
  2205. case 48:
  2206. bgComboList[i] = new GUIContent("ヴィラ2F(夜)");
  2207. break;
  2208. case 49:
  2209. bgComboList[i] = new GUIContent("畑");
  2210. break;
  2211. case 50:
  2212. bgComboList[i] = new GUIContent("畑(夜)");
  2213. break;
  2214. case 51:
  2215. bgComboList[i] = new GUIContent("カラオケルーム");
  2216. break;
  2217. case 52:
  2218. bgComboList[i] = new GUIContent("劇場");
  2219. break;
  2220. case 53:
  2221. bgComboList[i] = new GUIContent("劇場(夜)");
  2222. break;
  2223. case 54:
  2224. bgComboList[i] = new GUIContent("ステージ");
  2225. break;
  2226. case 55:
  2227. bgComboList[i] = new GUIContent("ステージ(ライト)");
  2228. break;
  2229. case 56:
  2230. bgComboList[i] = new GUIContent("ステージ(オフ)");
  2231. break;
  2232. case 57:
  2233. bgComboList[i] = new GUIContent("ステージ裏");
  2234. break;
  2235. case 58:
  2236. bgComboList[i] = new GUIContent("トレーニングルーム");
  2237. break;
  2238. case 59:
  2239. bgComboList[i] = new GUIContent("ロータリー");
  2240. break;
  2241. case 60:
  2242. bgComboList[i] = new GUIContent("ロータリー(夜)");
  2243. break;
  2244. case 61:
  2245. bgComboList[i] = new GUIContent("エントランス");
  2246. break;
  2247. case 62:
  2248. bgComboList[i] = new GUIContent("執務室");
  2249. break;
  2250. case 63:
  2251. bgComboList[i] = new GUIContent("執務室(椅子)");
  2252. break;
  2253. case 64:
  2254. bgComboList[i] = new GUIContent("執務室(夜)");
  2255. break;
  2256. case 65:
  2257. bgComboList[i] = new GUIContent("主人公部屋");
  2258. break;
  2259. case 66:
  2260. bgComboList[i] = new GUIContent("主人公部屋(夜)");
  2261. break;
  2262. case 67:
  2263. bgComboList[i] = new GUIContent("カフェ");
  2264. break;
  2265. case 68:
  2266. bgComboList[i] = new GUIContent("カフェ(夜)");
  2267. break;
  2268. case 69:
  2269. bgComboList[i] = new GUIContent("レストラン");
  2270. break;
  2271. case 70:
  2272. bgComboList[i] = new GUIContent("レストラン(夜)");
  2273. break;
  2274. case 71:
  2275. bgComboList[i] = new GUIContent("キッチン");
  2276. break;
  2277. case 72:
  2278. bgComboList[i] = new GUIContent("キッチン(夜)");
  2279. break;
  2280. case 73:
  2281. bgComboList[i] = new GUIContent("キッチン(オフ)");
  2282. break;
  2283. case 74:
  2284. bgComboList[i] = new GUIContent("バー");
  2285. break;
  2286. case 75:
  2287. bgComboList[i] = new GUIContent("カジノ");
  2288. break;
  2289. case 76:
  2290. bgComboList[i] = new GUIContent("カジノミニ");
  2291. break;
  2292. case 77:
  2293. bgComboList[i] = new GUIContent("SMクラブ");
  2294. break;
  2295. case 78:
  2296. bgComboList[i] = new GUIContent("ソープ");
  2297. break;
  2298. case 79:
  2299. bgComboList[i] = new GUIContent("スパ");
  2300. break;
  2301. case 80:
  2302. bgComboList[i] = new GUIContent("スパ(夜)");
  2303. break;
  2304. case 81:
  2305. bgComboList[i] = new GUIContent("ショッピングモール");
  2306. break;
  2307. case 82:
  2308. bgComboList[i] = new GUIContent("ショッピングモール(夜)");
  2309. break;
  2310. case 83:
  2311. bgComboList[i] = new GUIContent("ゲームショップ");
  2312. break;
  2313. case 84:
  2314. bgComboList[i] = new GUIContent("ミュージックショップ");
  2315. break;
  2316. case 85:
  2317. bgComboList[i] = new GUIContent("無垢部屋");
  2318. break;
  2319. case 86:
  2320. bgComboList[i] = new GUIContent("無垢部屋(夜)");
  2321. break;
  2322. case 87:
  2323. bgComboList[i] = new GUIContent("真面目部屋");
  2324. break;
  2325. case 88:
  2326. bgComboList[i] = new GUIContent("真面目部屋(夜)");
  2327. break;
  2328. case 89:
  2329. bgComboList[i] = new GUIContent("凜デレ部屋");
  2330. break;
  2331. case 90:
  2332. bgComboList[i] = new GUIContent("凜デレ部屋(夜)");
  2333. break;
  2334. case 91:
  2335. bgComboList[i] = new GUIContent("ツンデレ部屋");
  2336. break;
  2337. case 92:
  2338. bgComboList[i] = new GUIContent("ツンデレ部屋(夜)");
  2339. break;
  2340. case 93:
  2341. bgComboList[i] = new GUIContent("クーデレ部屋");
  2342. break;
  2343. case 94:
  2344. bgComboList[i] = new GUIContent("クーデレ部屋(夜)");
  2345. break;
  2346. case 95:
  2347. bgComboList[i] = new GUIContent("純真部屋");
  2348. break;
  2349. case 96:
  2350. bgComboList[i] = new GUIContent("純真部屋(夜)");
  2351. break;
  2352. case 97:
  2353. bgComboList[i] = new GUIContent("宿泊-ベッドルーム");
  2354. break;
  2355. case 98:
  2356. bgComboList[i] = new GUIContent("宿泊-ベッドルーム(夜)");
  2357. break;
  2358. case 99:
  2359. bgComboList[i] = new GUIContent("宿泊-他ベッドルーム(夜)");
  2360. break;
  2361. case 100:
  2362. bgComboList[i] = new GUIContent("宿泊-リビング");
  2363. break;
  2364. case 101:
  2365. bgComboList[i] = new GUIContent("宿泊-リビング(夜)");
  2366. break;
  2367. case 102:
  2368. bgComboList[i] = new GUIContent("宿泊-トイレ");
  2369. break;
  2370. case 103:
  2371. bgComboList[i] = new GUIContent("宿泊-トイレ(夜)");
  2372. break;
  2373. case 104:
  2374. bgComboList[i] = new GUIContent("宿泊-洗面所");
  2375. break;
  2376. case 105:
  2377. bgComboList[i] = new GUIContent("宿泊-洗面所(夜)");
  2378. break;
  2379. default:
  2380. goto IL_1692;
  2381. }
  2382. IL_16AB:
  2383. Dictionary<string, string> saveDataDic = CreativeRoomManager.GetSaveDataDic();
  2384. if (saveDataDic != null)
  2385. {
  2386. foreach (KeyValuePair<string, string> keyValuePair in saveDataDic)
  2387. {
  2388. if (bgArray[i] == keyValuePair.Key)
  2389. {
  2390. bgComboList[i] = new GUIContent(keyValuePair.Value);
  2391. }
  2392. }
  2393. }
  2394. i++;
  2395. continue;
  2396. IL_1692:
  2397. bgComboList[i] = new GUIContent(bgArray[i]);
  2398. goto IL_16AB;
  2399. }
  2400. doguCombo.selectedItemIndex = 0;
  2401. doguComboList = new GUIContent[doguBArray.Length];
  2402. i = 0;
  2403. while (i < doguBArray.Length)
  2404. {
  2405. string text = doguBArray[i];
  2406. if (text == null)
  2407. {
  2408. goto IL_40C6;
  2409. }
  2410. if (dicts[2] == null)
  2411. {
  2412. dicts[2] = new Dictionary<string, int>(248)
  2413. {
  2414. {
  2415. "Odogu_KousokuKijyouiChair_photo_ver",
  2416. 0
  2417. },
  2418. {
  2419. "Odogu_VirginRoad_photo_ver",
  2420. 1
  2421. },
  2422. {
  2423. "neirobo",
  2424. 2
  2425. },
  2426. {
  2427. "Odogu_ClassRoomDesk_photo_ver",
  2428. 3
  2429. },
  2430. {
  2431. "Odogu_ClassRoomChair_photo_ver",
  2432. 4
  2433. },
  2434. {
  2435. "Odogu_TrumpTowerSmall_photo_ver",
  2436. 5
  2437. },
  2438. {
  2439. "Odogu_TrumpTowerBig_photo_ver",
  2440. 6
  2441. },
  2442. {
  2443. "Odogu_VVLight_photo_ver",
  2444. 7
  2445. },
  2446. {
  2447. "Odogu_OXCamera_photo_ver",
  2448. 8
  2449. },
  2450. {
  2451. "Odogu_HandCameraVV_photo_ver",
  2452. 9
  2453. },
  2454. {
  2455. "Odogu_PC_photo_ver",
  2456. 10
  2457. },
  2458. {
  2459. "Odogu_PC_Monitor_photo_ver",
  2460. 11
  2461. },
  2462. {
  2463. "Odogu_PC_Keyboard_photo_ver",
  2464. 12
  2465. },
  2466. {
  2467. "Odogu_PC_Mouse_photo_ver",
  2468. 13
  2469. },
  2470. {
  2471. "Odogu_MaidRoomBook001_photo_ver",
  2472. 14
  2473. },
  2474. {
  2475. "Odogu_MaidRoomBook002_photo_ver",
  2476. 15
  2477. },
  2478. {
  2479. "Odogu_MaidRoomBook003_photo_ver",
  2480. 16
  2481. },
  2482. {
  2483. "Odogu_MaidRoomBook004_photo_ver",
  2484. 17
  2485. },
  2486. {
  2487. "Odogu_MaidRoomBook005_photo_ver",
  2488. 18
  2489. },
  2490. {
  2491. "Odogu_Pen_photo_ver",
  2492. 19
  2493. },
  2494. {
  2495. "Odogu_Pen_Black_photo_ver",
  2496. 20
  2497. },
  2498. {
  2499. "Odogu_Pen_Brown_photo_ver",
  2500. 21
  2501. },
  2502. {
  2503. "Odogu_Pen_Green_photo_ver",
  2504. 22
  2505. },
  2506. {
  2507. "Odogu_Enpitsu_photo_ver",
  2508. 23
  2509. },
  2510. {
  2511. "Odogu_Enpitsu_Black_photo_ver",
  2512. 24
  2513. },
  2514. {
  2515. "Odogu_Enpitsu_Red_photo_ver",
  2516. 25
  2517. },
  2518. {
  2519. "Odogu_Keshigomu_photo_ver",
  2520. 26
  2521. },
  2522. {
  2523. "Odogu_Keshigomu_Purple_photo_ver",
  2524. 27
  2525. },
  2526. {
  2527. "Odogu_Keshigomu_Yellow_photo_ver",
  2528. 28
  2529. },
  2530. {
  2531. "Odogu_StickNori_photo_ver",
  2532. 29
  2533. },
  2534. {
  2535. "Odogu_Condom_Close_photo_ver",
  2536. 30
  2537. },
  2538. {
  2539. "Odogu_Condom_Open_photo_ver",
  2540. 31
  2541. },
  2542. {
  2543. "Odogu_Condom_Pack_photo_ver",
  2544. 32
  2545. },
  2546. {
  2547. "Odogu_SalonSofa_long_photo_ver",
  2548. 33
  2549. },
  2550. {
  2551. "Odogu_SalonSofa_4P_photo_ver",
  2552. 34
  2553. },
  2554. {
  2555. "Odogu_Girochin_A_photo_ver",
  2556. 35
  2557. },
  2558. {
  2559. "Odogu_SankakuMokuba_photo_ver",
  2560. 36
  2561. },
  2562. {
  2563. "Odogu_SMRoom2_SankakuMokuba_photo_ver",
  2564. 37
  2565. },
  2566. {
  2567. "Odogu_Kousokudai_photo_ver",
  2568. 38
  2569. },
  2570. {
  2571. "Odogu_XmasTreeMini_photo_ver",
  2572. 39
  2573. },
  2574. {
  2575. "Odogu_KadomatsuMini_photo_ver",
  2576. 40
  2577. },
  2578. {
  2579. "Odogu_Kitchen_photo_ver",
  2580. 41
  2581. },
  2582. {
  2583. "Odogu_TableFlower_photo_ver",
  2584. 42
  2585. },
  2586. {
  2587. "Odogu_Kadou_photo_ver",
  2588. 43
  2589. },
  2590. {
  2591. "Odogu_Dresser_photo_ver",
  2592. 44
  2593. },
  2594. {
  2595. "Odogu_ClassRoomDesk",
  2596. 45
  2597. },
  2598. {
  2599. "Odogu_KadouChair_photo_ver",
  2600. 46
  2601. },
  2602. {
  2603. "Odogu_DresserChair_photo_ver",
  2604. 47
  2605. },
  2606. {
  2607. "Odogu_MaidRoomChair_photo_ver",
  2608. 48
  2609. },
  2610. {
  2611. "Odogu_PublicToiletBenki_photo_ver",
  2612. 49
  2613. },
  2614. {
  2615. "Odogu_Sukebeisu_photo_ver",
  2616. 50
  2617. },
  2618. {
  2619. "Odogu_Mat_photo_ver",
  2620. 51
  2621. },
  2622. {
  2623. "Odogu_Seikaku_Tsundere",
  2624. 52
  2625. },
  2626. {
  2627. "Odogu_Seikaku_Jyunshin",
  2628. 53
  2629. },
  2630. {
  2631. "Odogu_Seikaku_Cool",
  2632. 54
  2633. },
  2634. {
  2635. "Odogu_Manaita_photo_ver",
  2636. 55
  2637. },
  2638. {
  2639. "Odogu_Nabe_photo_ver",
  2640. 56
  2641. },
  2642. {
  2643. "Odogu_NoteBook_photo_ver",
  2644. 57
  2645. },
  2646. {
  2647. "Odogu_Sankousyo_photo_ver",
  2648. 58
  2649. },
  2650. {
  2651. "Odogu_Sentaku_Kago_photo_ver",
  2652. 59
  2653. },
  2654. {
  2655. "Odogu_Sentaku_Towel_photo_ver",
  2656. 60
  2657. },
  2658. {
  2659. "Odogu_Sentakumono_photo_ver",
  2660. 61
  2661. },
  2662. {
  2663. "Odogu_SalonScreen_photo_ver",
  2664. 62
  2665. },
  2666. {
  2667. "Odogu_WineGlass_photo_ver",
  2668. 63
  2669. },
  2670. {
  2671. "Odogu_SalonSofa_small_photo_ver",
  2672. 64
  2673. },
  2674. {
  2675. "Odogu_Seikaku_Tsundere_photo_ver",
  2676. 65
  2677. },
  2678. {
  2679. "Odogu_Seikaku_Jyunshin_photo_ver",
  2680. 66
  2681. },
  2682. {
  2683. "Odogu_Seikaku_Cool_photo_ver",
  2684. 67
  2685. },
  2686. {
  2687. "Megane001_z2_Scenario_Model",
  2688. 68
  2689. },
  2690. {
  2691. "nei_photo_ver",
  2692. 69
  2693. },
  2694. {
  2695. "neirobo_photo_ver",
  2696. 70
  2697. },
  2698. {
  2699. "Odogu_SimpleTable",
  2700. 71
  2701. },
  2702. {
  2703. "Odogu_DildoBox",
  2704. 72
  2705. },
  2706. {
  2707. "PlayAreaOut",
  2708. 73
  2709. },
  2710. {
  2711. "DesktopScreen",
  2712. 74
  2713. },
  2714. {
  2715. "Odogu_ChuukaSet_chahan_photo_ver",
  2716. 75
  2717. },
  2718. {
  2719. "Odogu_ChuukaSet_gyouza_photo_ver",
  2720. 76
  2721. },
  2722. {
  2723. "Odogu_ChuukaSet_mabo_photo_ver",
  2724. 77
  2725. },
  2726. {
  2727. "Odogu_ChuukaSet_tea_photo_ver",
  2728. 78
  2729. },
  2730. {
  2731. "Odogu_WasyokuSet_gohan_photo_ver",
  2732. 79
  2733. },
  2734. {
  2735. "Odogu_WasyokuSet_hashi_photo_ver",
  2736. 80
  2737. },
  2738. {
  2739. "Odogu_WasyokuSet_misoshiru_photo_ver",
  2740. 81
  2741. },
  2742. {
  2743. "Odogu_WasyokuSet_nimono_photo_ver",
  2744. 82
  2745. },
  2746. {
  2747. "Odogu_WasyokuSet_ocha_photo_ver",
  2748. 83
  2749. },
  2750. {
  2751. "Odogu_YousyokuSet_ChickenRice_photo_ver",
  2752. 84
  2753. },
  2754. {
  2755. "Odogu_YousyokuSet_Coffee_photo_ver",
  2756. 85
  2757. },
  2758. {
  2759. "Odogu_YousyokuSet_CornSoup_photo_ver",
  2760. 86
  2761. },
  2762. {
  2763. "Odogu_YousyokuSet_Hamburg_photo_ver",
  2764. 87
  2765. },
  2766. {
  2767. "Odogu_YousyokuSet_SakiwareSpoon_photo_ver",
  2768. 88
  2769. },
  2770. {
  2771. "Odogu_PR_Table_photo_ver",
  2772. 89
  2773. },
  2774. {
  2775. "Odogu_PR_Table_Chuuka_photo_ver",
  2776. 90
  2777. },
  2778. {
  2779. "Odogu_PR_Table_Wasyoku_photo_ver",
  2780. 91
  2781. },
  2782. {
  2783. "Odogu_PR_Table_Yousyoku_photo_ver",
  2784. 92
  2785. },
  2786. {
  2787. "Odogu_LongDaiza_photo_ver",
  2788. 93
  2789. },
  2790. {
  2791. "BGanimal_cat",
  2792. 94
  2793. },
  2794. {
  2795. "BGanimal_dog",
  2796. 95
  2797. },
  2798. {
  2799. "BGanimal_niwatori",
  2800. 96
  2801. },
  2802. {
  2803. "BGanimal_suzume",
  2804. 97
  2805. },
  2806. {
  2807. "BGodogu_bbqgrill",
  2808. 98
  2809. },
  2810. {
  2811. "BGodogu_bucket",
  2812. 99
  2813. },
  2814. {
  2815. "BGodogu_coolerbox",
  2816. 100
  2817. },
  2818. {
  2819. "BGodogu_game_darts",
  2820. 101
  2821. },
  2822. {
  2823. "BGodogu_game_dartsboard",
  2824. 102
  2825. },
  2826. {
  2827. "BGodogu_nabe_huta",
  2828. 103
  2829. },
  2830. {
  2831. "BGodogu_nabe_water",
  2832. 104
  2833. },
  2834. {
  2835. "BGodogu_natumikan",
  2836. 105
  2837. },
  2838. {
  2839. "BGodogu_rb_chair",
  2840. 106
  2841. },
  2842. {
  2843. "BGodogu_rb_duck",
  2844. 107
  2845. },
  2846. {
  2847. "BGodogu_rb_obon",
  2848. 108
  2849. },
  2850. {
  2851. "BGodogu_rb_tokkuri",
  2852. 109
  2853. },
  2854. {
  2855. "BGodogu_saracorn",
  2856. 110
  2857. },
  2858. {
  2859. "BGodogu_saraimo",
  2860. 111
  2861. },
  2862. {
  2863. "BGodogu_saratomato",
  2864. 112
  2865. },
  2866. {
  2867. "BGodogu_sunanoshiro",
  2868. 113
  2869. },
  2870. {
  2871. "BGodogu_sunanoyama",
  2872. 114
  2873. },
  2874. {
  2875. "BGodogu_tsutsuhanabi",
  2876. 115
  2877. },
  2878. {
  2879. "BGodogu_ukiwa",
  2880. 116
  2881. },
  2882. {
  2883. "BGodogu_vf_crops_corn",
  2884. 117
  2885. },
  2886. {
  2887. "BGodogu_vf_crops_gekkabijin",
  2888. 118
  2889. },
  2890. {
  2891. "BGodogu_vf_crops_gekkabijinflower",
  2892. 119
  2893. },
  2894. {
  2895. "BGodogu_vf_crops_himawari",
  2896. 120
  2897. },
  2898. {
  2899. "BGodogu_vf_crops_natsumikan",
  2900. 121
  2901. },
  2902. {
  2903. "BGodogu_vf_crops_suika",
  2904. 122
  2905. },
  2906. {
  2907. "BGodogu_vf_crops_zakuro",
  2908. 123
  2909. },
  2910. {
  2911. "BGodogu_vf_kanban_ok",
  2912. 124
  2913. },
  2914. {
  2915. "BGodogu_vf_kanban_saibai",
  2916. 125
  2917. },
  2918. {
  2919. "BGodogu_vf_kanban_taiki",
  2920. 126
  2921. },
  2922. {
  2923. "BGodogu_vf_radio",
  2924. 127
  2925. },
  2926. {
  2927. "BGodogu_villa_coffeemaker",
  2928. 128
  2929. },
  2930. {
  2931. "BGodogu_villa_reizouko",
  2932. 129
  2933. },
  2934. {
  2935. "BGodogu_villa_table",
  2936. 130
  2937. },
  2938. {
  2939. "BGodogu_villa_tvrimocon",
  2940. 131
  2941. },
  2942. {
  2943. "BGodogu_villa_winecellar",
  2944. 132
  2945. },
  2946. {
  2947. "BGodogu_villabr_sideboard",
  2948. 133
  2949. },
  2950. {
  2951. "BGOdogu_Game_Nei_USB",
  2952. 134
  2953. },
  2954. {
  2955. "BGOdogu_Game_Wanage",
  2956. 135
  2957. },
  2958. {
  2959. "BGOdogu_Game_Wa",
  2960. 136
  2961. },
  2962. {
  2963. "BGodogu_pafe",
  2964. 137
  2965. },
  2966. {
  2967. "BGodogu_furaidopoteto",
  2968. 138
  2969. },
  2970. {
  2971. "BGodogu_karaoketable",
  2972. 139
  2973. },
  2974. {
  2975. "BGodogu_omuriceh",
  2976. 140
  2977. },
  2978. {
  2979. "BGodogu_omuricekao1",
  2980. 141
  2981. },
  2982. {
  2983. "BGodogu_omuricekao2",
  2984. 142
  2985. },
  2986. {
  2987. "BGodogu_omuriceoppai",
  2988. 143
  2989. },
  2990. {
  2991. "BGodogu_kakigori",
  2992. 144
  2993. },
  2994. {
  2995. "BGodogu_pretzel_sara",
  2996. 145
  2997. },
  2998. {
  2999. "BGodogu_karaoke_box",
  3000. 146
  3001. },
  3002. {
  3003. "Odogu_StandMike",
  3004. 147
  3005. },
  3006. {
  3007. "Odogu_StandMikeBase",
  3008. 148
  3009. },
  3010. {
  3011. "photo_ver/Odogu_Umeko_Mike_photo_ver",
  3012. 149
  3013. },
  3014. {
  3015. "Odogu_HeroineChair_muku",
  3016. 150
  3017. },
  3018. {
  3019. "Odogu_HeroineChair_mazime",
  3020. 151
  3021. },
  3022. {
  3023. "Odogu_HeroineChair_rindere",
  3024. 152
  3025. },
  3026. {
  3027. "Odogu_HeroineChair_tsumdere",
  3028. 153
  3029. },
  3030. {
  3031. "Odogu_HeroineChair_cooldere",
  3032. 154
  3033. },
  3034. {
  3035. "Odogu_HeroineChair_junshin",
  3036. 155
  3037. },
  3038. {
  3039. "photo_ver/Odogu_Etoile_Chair_photo_ver",
  3040. 156
  3041. },
  3042. {
  3043. "Odogu_LoveSofa",
  3044. 157
  3045. },
  3046. {
  3047. "Odogu_TabletPC",
  3048. 158
  3049. },
  3050. {
  3051. "Odogu_Styluspen_black",
  3052. 159
  3053. },
  3054. {
  3055. "Odogu_Styluspen_white",
  3056. 160
  3057. },
  3058. {
  3059. "Odogu_Styluspen_red",
  3060. 161
  3061. },
  3062. {
  3063. "Odogu_Styluspen_blue",
  3064. 162
  3065. },
  3066. {
  3067. "Odogu_Styluspen_yellow",
  3068. 163
  3069. },
  3070. {
  3071. "Odogu_Styluspen_green",
  3072. 164
  3073. },
  3074. {
  3075. "Odogu_Omurice1",
  3076. 165
  3077. },
  3078. {
  3079. "Odogu_Omurice3",
  3080. 166
  3081. },
  3082. {
  3083. "Odogu_OmuriceH",
  3084. 167
  3085. },
  3086. {
  3087. "Odogu_OmuriceKao1",
  3088. 168
  3089. },
  3090. {
  3091. "Odogu_OmuriceKao2",
  3092. 169
  3093. },
  3094. {
  3095. "Odogu_OmuriceOppai",
  3096. 170
  3097. },
  3098. {
  3099. "Odogu_AcquaPazza",
  3100. 171
  3101. },
  3102. {
  3103. "Odogu_Sandwich",
  3104. 172
  3105. },
  3106. {
  3107. "Odogu_vichyssoise",
  3108. 173
  3109. },
  3110. {
  3111. "Odogu_BirthdayCake",
  3112. 174
  3113. },
  3114. {
  3115. "Odogu_Shortcake",
  3116. 175
  3117. },
  3118. {
  3119. "Odogu_MontBlanc",
  3120. 176
  3121. },
  3122. {
  3123. "Odogu_Pafe",
  3124. 177
  3125. },
  3126. {
  3127. "Odogu_Smoothie_Red",
  3128. 178
  3129. },
  3130. {
  3131. "Odogu_Smoothie_Green",
  3132. 179
  3133. },
  3134. {
  3135. "Odogu_Cocktail_Red",
  3136. 180
  3137. },
  3138. {
  3139. "Odogu_Cocktail_Blue",
  3140. 181
  3141. },
  3142. {
  3143. "Odogu_Cocktail_Yellow",
  3144. 182
  3145. },
  3146. {
  3147. "Odogu_Coffiecup",
  3148. 183
  3149. },
  3150. {
  3151. "Odogu_WineBottle(cap_off)",
  3152. 184
  3153. },
  3154. {
  3155. "Odogu_WineBottle(cap_on)",
  3156. 185
  3157. },
  3158. {
  3159. "Odogu_Jyouro",
  3160. 186
  3161. },
  3162. {
  3163. "Odogu_Planter_Red",
  3164. 187
  3165. },
  3166. {
  3167. "Odogu_Planter_Lightblue",
  3168. 188
  3169. },
  3170. {
  3171. "Odogu_MariGold",
  3172. 189
  3173. },
  3174. {
  3175. "Odogu_CasinoChip_10",
  3176. 190
  3177. },
  3178. {
  3179. "Odogu_CasinoChip_100",
  3180. 191
  3181. },
  3182. {
  3183. "Odogu_CasinoChip_1000",
  3184. 192
  3185. },
  3186. {
  3187. "Odogu_CardShooter",
  3188. 193
  3189. },
  3190. {
  3191. "Odogu_CardsDeck",
  3192. 194
  3193. },
  3194. {
  3195. "Odogu_Card_s1",
  3196. 195
  3197. },
  3198. {
  3199. "Odogu_Card_s2",
  3200. 196
  3201. },
  3202. {
  3203. "Odogu_Card_s3",
  3204. 197
  3205. },
  3206. {
  3207. "Odogu_Card_s4",
  3208. 198
  3209. },
  3210. {
  3211. "Odogu_Card_s5",
  3212. 199
  3213. },
  3214. {
  3215. "Odogu_Card_s6",
  3216. 200
  3217. },
  3218. {
  3219. "Odogu_Card_s7",
  3220. 201
  3221. },
  3222. {
  3223. "Odogu_Card_s8",
  3224. 202
  3225. },
  3226. {
  3227. "Odogu_Card_s9",
  3228. 203
  3229. },
  3230. {
  3231. "Odogu_Card_s10",
  3232. 204
  3233. },
  3234. {
  3235. "Odogu_Card_s11",
  3236. 205
  3237. },
  3238. {
  3239. "Odogu_Card_s12",
  3240. 206
  3241. },
  3242. {
  3243. "Odogu_Card_s13",
  3244. 207
  3245. },
  3246. {
  3247. "Odogu_Card_h1",
  3248. 208
  3249. },
  3250. {
  3251. "Odogu_Card_h2",
  3252. 209
  3253. },
  3254. {
  3255. "Odogu_Card_h3",
  3256. 210
  3257. },
  3258. {
  3259. "Odogu_Card_h4",
  3260. 211
  3261. },
  3262. {
  3263. "Odogu_Card_h5",
  3264. 212
  3265. },
  3266. {
  3267. "Odogu_Card_h6",
  3268. 213
  3269. },
  3270. {
  3271. "Odogu_Card_h7",
  3272. 214
  3273. },
  3274. {
  3275. "Odogu_Card_h8",
  3276. 215
  3277. },
  3278. {
  3279. "Odogu_Card_h9",
  3280. 216
  3281. },
  3282. {
  3283. "Odogu_Card_h10",
  3284. 217
  3285. },
  3286. {
  3287. "Odogu_Card_h11",
  3288. 218
  3289. },
  3290. {
  3291. "Odogu_Card_h12",
  3292. 219
  3293. },
  3294. {
  3295. "Odogu_Card_h13",
  3296. 220
  3297. },
  3298. {
  3299. "Odogu_Card_d1",
  3300. 221
  3301. },
  3302. {
  3303. "Odogu_Card_d2",
  3304. 222
  3305. },
  3306. {
  3307. "Odogu_Card_d3",
  3308. 223
  3309. },
  3310. {
  3311. "Odogu_Card_d4",
  3312. 224
  3313. },
  3314. {
  3315. "Odogu_Card_d5",
  3316. 225
  3317. },
  3318. {
  3319. "Odogu_Card_d6",
  3320. 226
  3321. },
  3322. {
  3323. "Odogu_Card_d7",
  3324. 227
  3325. },
  3326. {
  3327. "Odogu_Card_d8",
  3328. 228
  3329. },
  3330. {
  3331. "Odogu_Card_d9",
  3332. 229
  3333. },
  3334. {
  3335. "Odogu_Card_d10",
  3336. 230
  3337. },
  3338. {
  3339. "Odogu_Card_d11",
  3340. 231
  3341. },
  3342. {
  3343. "Odogu_Card_d12",
  3344. 232
  3345. },
  3346. {
  3347. "Odogu_Card_d13",
  3348. 233
  3349. },
  3350. {
  3351. "Odogu_Card_c1",
  3352. 234
  3353. },
  3354. {
  3355. "Odogu_Card_c2",
  3356. 235
  3357. },
  3358. {
  3359. "Odogu_Card_c3",
  3360. 236
  3361. },
  3362. {
  3363. "Odogu_Card_c4",
  3364. 237
  3365. },
  3366. {
  3367. "Odogu_Card_c5",
  3368. 238
  3369. },
  3370. {
  3371. "Odogu_Card_c6",
  3372. 239
  3373. },
  3374. {
  3375. "Odogu_Card_c7",
  3376. 240
  3377. },
  3378. {
  3379. "Odogu_Card_c8",
  3380. 241
  3381. },
  3382. {
  3383. "Odogu_Card_c9",
  3384. 242
  3385. },
  3386. {
  3387. "Odogu_Card_c10",
  3388. 243
  3389. },
  3390. {
  3391. "Odogu_Card_c11",
  3392. 244
  3393. },
  3394. {
  3395. "Odogu_Card_c12",
  3396. 245
  3397. },
  3398. {
  3399. "Odogu_Card_c13",
  3400. 246
  3401. },
  3402. {
  3403. "Odogu_Card_joker",
  3404. 247
  3405. }
  3406. };
  3407. }
  3408. if (!dicts[2].TryGetValue(text, out num))
  3409. {
  3410. goto IL_40C6;
  3411. }
  3412. switch (num)
  3413. {
  3414. case 0:
  3415. doguComboList[i] = new GUIContent("拘束椅子");
  3416. break;
  3417. case 1:
  3418. doguComboList[i] = new GUIContent("バージンロード");
  3419. break;
  3420. case 2:
  3421. doguComboList[i] = new GUIContent("ロボねい人形");
  3422. break;
  3423. case 3:
  3424. doguComboList[i] = new GUIContent("教室机");
  3425. break;
  3426. case 4:
  3427. doguComboList[i] = new GUIContent("教室椅子");
  3428. break;
  3429. case 5:
  3430. doguComboList[i] = new GUIContent("トランプタワー(小)");
  3431. break;
  3432. case 6:
  3433. doguComboList[i] = new GUIContent("トランプタワー");
  3434. break;
  3435. case 7:
  3436. doguComboList[i] = new GUIContent("Wライト");
  3437. break;
  3438. case 8:
  3439. doguComboList[i] = new GUIContent("OXカメラ");
  3440. break;
  3441. case 9:
  3442. doguComboList[i] = new GUIContent("レトロカメラ");
  3443. break;
  3444. case 10:
  3445. doguComboList[i] = new GUIContent("PC");
  3446. break;
  3447. case 11:
  3448. doguComboList[i] = new GUIContent("モニター");
  3449. break;
  3450. case 12:
  3451. doguComboList[i] = new GUIContent("キーボード");
  3452. break;
  3453. case 13:
  3454. doguComboList[i] = new GUIContent("マウス");
  3455. break;
  3456. case 14:
  3457. doguComboList[i] = new GUIContent("参考書A");
  3458. break;
  3459. case 15:
  3460. doguComboList[i] = new GUIContent("参考書B");
  3461. break;
  3462. case 16:
  3463. doguComboList[i] = new GUIContent("参考書C");
  3464. break;
  3465. case 17:
  3466. doguComboList[i] = new GUIContent("参考書D");
  3467. break;
  3468. case 18:
  3469. doguComboList[i] = new GUIContent("参考書E");
  3470. break;
  3471. case 19:
  3472. doguComboList[i] = new GUIContent("ペン(桃)");
  3473. break;
  3474. case 20:
  3475. doguComboList[i] = new GUIContent("ペン(黒)");
  3476. break;
  3477. case 21:
  3478. doguComboList[i] = new GUIContent("ペン(茶)");
  3479. break;
  3480. case 22:
  3481. doguComboList[i] = new GUIContent("ペン(緑)");
  3482. break;
  3483. case 23:
  3484. doguComboList[i] = new GUIContent("鉛筆(緑)");
  3485. break;
  3486. case 24:
  3487. doguComboList[i] = new GUIContent("鉛筆(黒)");
  3488. break;
  3489. case 25:
  3490. doguComboList[i] = new GUIContent("鉛筆(赤)");
  3491. break;
  3492. case 26:
  3493. doguComboList[i] = new GUIContent("消しゴム(青)");
  3494. break;
  3495. case 27:
  3496. doguComboList[i] = new GUIContent("消しゴム(紫)");
  3497. break;
  3498. case 28:
  3499. doguComboList[i] = new GUIContent("消しゴム(黄)");
  3500. break;
  3501. case 29:
  3502. doguComboList[i] = new GUIContent("スティック糊");
  3503. break;
  3504. case 30:
  3505. doguComboList[i] = new GUIContent("コンドーム(閉)");
  3506. break;
  3507. case 31:
  3508. doguComboList[i] = new GUIContent("コンドーム(開)");
  3509. break;
  3510. case 32:
  3511. doguComboList[i] = new GUIContent("コンドーム(袋)");
  3512. break;
  3513. case 33:
  3514. doguComboList[i] = new GUIContent("ソファー");
  3515. break;
  3516. case 34:
  3517. doguComboList[i] = new GUIContent("ソファー(大)");
  3518. break;
  3519. case 35:
  3520. doguComboList[i] = new GUIContent("ギロチン");
  3521. break;
  3522. case 36:
  3523. doguComboList[i] = new GUIContent("三角木馬");
  3524. break;
  3525. case 37:
  3526. doguComboList[i] = new GUIContent("三角木馬2");
  3527. break;
  3528. case 38:
  3529. doguComboList[i] = new GUIContent("拘束台");
  3530. break;
  3531. case 39:
  3532. doguComboList[i] = new GUIContent("クリスマスツリー");
  3533. break;
  3534. case 40:
  3535. doguComboList[i] = new GUIContent("門松");
  3536. break;
  3537. case 41:
  3538. doguComboList[i] = new GUIContent("キッチン");
  3539. break;
  3540. case 42:
  3541. doguComboList[i] = new GUIContent("花とテーブル");
  3542. break;
  3543. case 43:
  3544. doguComboList[i] = new GUIContent("華道");
  3545. break;
  3546. case 44:
  3547. doguComboList[i] = new GUIContent("ドレッサー");
  3548. break;
  3549. case 45:
  3550. doguComboList[i] = new GUIContent("教室机");
  3551. break;
  3552. case 46:
  3553. doguComboList[i] = new GUIContent("華道椅子");
  3554. break;
  3555. case 47:
  3556. doguComboList[i] = new GUIContent("ドレッサー椅子");
  3557. break;
  3558. case 48:
  3559. doguComboList[i] = new GUIContent("メイド部屋椅子");
  3560. break;
  3561. case 49:
  3562. doguComboList[i] = new GUIContent("ベンキ");
  3563. break;
  3564. case 50:
  3565. doguComboList[i] = new GUIContent("スケベ椅子");
  3566. break;
  3567. case 51:
  3568. doguComboList[i] = new GUIContent("マット");
  3569. break;
  3570. case 52:
  3571. doguComboList[i] = new GUIContent("ツンデレ");
  3572. break;
  3573. case 53:
  3574. doguComboList[i] = new GUIContent("純真");
  3575. break;
  3576. case 54:
  3577. doguComboList[i] = new GUIContent("クール");
  3578. break;
  3579. case 55:
  3580. doguComboList[i] = new GUIContent("まな板");
  3581. break;
  3582. case 56:
  3583. doguComboList[i] = new GUIContent("鍋");
  3584. break;
  3585. case 57:
  3586. doguComboList[i] = new GUIContent("ノート");
  3587. break;
  3588. case 58:
  3589. doguComboList[i] = new GUIContent("参考書");
  3590. break;
  3591. case 59:
  3592. doguComboList[i] = new GUIContent("洗濯かご");
  3593. break;
  3594. case 60:
  3595. doguComboList[i] = new GUIContent("重ねたタオル");
  3596. break;
  3597. case 61:
  3598. doguComboList[i] = new GUIContent("洗濯物");
  3599. break;
  3600. case 62:
  3601. doguComboList[i] = new GUIContent("スクリーン");
  3602. break;
  3603. case 63:
  3604. doguComboList[i] = new GUIContent("ワイングラス");
  3605. break;
  3606. case 64:
  3607. doguComboList[i] = new GUIContent("ソファー(小)");
  3608. break;
  3609. case 65:
  3610. doguComboList[i] = new GUIContent("ツンデレ");
  3611. break;
  3612. case 66:
  3613. doguComboList[i] = new GUIContent("純真");
  3614. break;
  3615. case 67:
  3616. doguComboList[i] = new GUIContent("クール");
  3617. break;
  3618. case 68:
  3619. doguComboList[i] = new GUIContent("メガネ");
  3620. break;
  3621. case 69:
  3622. doguComboList[i] = new GUIContent("ねい人形");
  3623. break;
  3624. case 70:
  3625. doguComboList[i] = new GUIContent("ロボねい人形");
  3626. break;
  3627. case 71:
  3628. doguComboList[i] = new GUIContent("テーブル");
  3629. break;
  3630. case 72:
  3631. doguComboList[i] = new GUIContent("ディルドボックス");
  3632. break;
  3633. case 73:
  3634. doguComboList[i] = new GUIContent("プレイエリア外");
  3635. break;
  3636. case 74:
  3637. doguComboList[i] = new GUIContent("デスクトップスクリーン");
  3638. break;
  3639. case 75:
  3640. doguComboList[i] = new GUIContent("チャーハン");
  3641. break;
  3642. case 76:
  3643. doguComboList[i] = new GUIContent("餃子");
  3644. break;
  3645. case 77:
  3646. doguComboList[i] = new GUIContent("麻婆豆腐");
  3647. break;
  3648. case 78:
  3649. doguComboList[i] = new GUIContent("お茶");
  3650. break;
  3651. case 79:
  3652. doguComboList[i] = new GUIContent("ご飯");
  3653. break;
  3654. case 80:
  3655. doguComboList[i] = new GUIContent("箸");
  3656. break;
  3657. case 81:
  3658. doguComboList[i] = new GUIContent("味噌汁");
  3659. break;
  3660. case 82:
  3661. doguComboList[i] = new GUIContent("煮物");
  3662. break;
  3663. case 83:
  3664. doguComboList[i] = new GUIContent("緑茶");
  3665. break;
  3666. case 84:
  3667. doguComboList[i] = new GUIContent("チキンライス");
  3668. break;
  3669. case 85:
  3670. doguComboList[i] = new GUIContent("コーヒー");
  3671. break;
  3672. case 86:
  3673. doguComboList[i] = new GUIContent("コーンスープ");
  3674. break;
  3675. case 87:
  3676. doguComboList[i] = new GUIContent("ハンバーグ");
  3677. break;
  3678. case 88:
  3679. doguComboList[i] = new GUIContent("先割れスプーン");
  3680. break;
  3681. case 89:
  3682. doguComboList[i] = new GUIContent("テーブル");
  3683. break;
  3684. case 90:
  3685. doguComboList[i] = new GUIContent("中華テーブル");
  3686. break;
  3687. case 91:
  3688. doguComboList[i] = new GUIContent("和食テーブル");
  3689. break;
  3690. case 92:
  3691. doguComboList[i] = new GUIContent("洋食テーブル");
  3692. break;
  3693. case 93:
  3694. doguComboList[i] = new GUIContent("エッチする時の台");
  3695. break;
  3696. case 94:
  3697. doguComboList[i] = new GUIContent("猫");
  3698. break;
  3699. case 95:
  3700. doguComboList[i] = new GUIContent("犬");
  3701. break;
  3702. case 96:
  3703. doguComboList[i] = new GUIContent("ニワトリ");
  3704. break;
  3705. case 97:
  3706. doguComboList[i] = new GUIContent("スズメ");
  3707. break;
  3708. case 98:
  3709. doguComboList[i] = new GUIContent("バーベキューグリル");
  3710. break;
  3711. case 99:
  3712. doguComboList[i] = new GUIContent("バケツ");
  3713. break;
  3714. case 100:
  3715. doguComboList[i] = new GUIContent("クーラーボックス");
  3716. break;
  3717. case 101:
  3718. doguComboList[i] = new GUIContent("ダーツ");
  3719. break;
  3720. case 102:
  3721. doguComboList[i] = new GUIContent("ダーツボード");
  3722. break;
  3723. case 103:
  3724. doguComboList[i] = new GUIContent("鍋");
  3725. break;
  3726. case 104:
  3727. doguComboList[i] = new GUIContent("鍋");
  3728. break;
  3729. case 105:
  3730. doguComboList[i] = new GUIContent("夏みかん");
  3731. break;
  3732. case 106:
  3733. doguComboList[i] = new GUIContent("風呂椅子");
  3734. break;
  3735. case 107:
  3736. doguComboList[i] = new GUIContent("アヒル");
  3737. break;
  3738. case 108:
  3739. doguComboList[i] = new GUIContent("おぼん");
  3740. break;
  3741. case 109:
  3742. doguComboList[i] = new GUIContent("とっくり");
  3743. break;
  3744. case 110:
  3745. doguComboList[i] = new GUIContent("コーン皿");
  3746. break;
  3747. case 111:
  3748. doguComboList[i] = new GUIContent("イモ皿");
  3749. break;
  3750. case 112:
  3751. doguComboList[i] = new GUIContent("トマト皿");
  3752. break;
  3753. case 113:
  3754. doguComboList[i] = new GUIContent("砂の城");
  3755. break;
  3756. case 114:
  3757. doguComboList[i] = new GUIContent("砂山");
  3758. break;
  3759. case 115:
  3760. doguComboList[i] = new GUIContent("筒花火");
  3761. break;
  3762. case 116:
  3763. doguComboList[i] = new GUIContent("浮き輪");
  3764. break;
  3765. case 117:
  3766. doguComboList[i] = new GUIContent("作物(コーン)");
  3767. break;
  3768. case 118:
  3769. doguComboList[i] = new GUIContent("作物(月下美人)");
  3770. break;
  3771. case 119:
  3772. doguComboList[i] = new GUIContent("作物(月下美人・咲)");
  3773. break;
  3774. case 120:
  3775. doguComboList[i] = new GUIContent("作物(向日葵)");
  3776. break;
  3777. case 121:
  3778. doguComboList[i] = new GUIContent("作物(夏みかん)");
  3779. break;
  3780. case 122:
  3781. doguComboList[i] = new GUIContent("作物(スイカ)");
  3782. break;
  3783. case 123:
  3784. doguComboList[i] = new GUIContent("作物(ザクロ)");
  3785. break;
  3786. case 124:
  3787. doguComboList[i] = new GUIContent("");
  3788. break;
  3789. case 125:
  3790. doguComboList[i] = new GUIContent("");
  3791. break;
  3792. case 126:
  3793. doguComboList[i] = new GUIContent("");
  3794. break;
  3795. case 127:
  3796. doguComboList[i] = new GUIContent("ラジオ");
  3797. break;
  3798. case 128:
  3799. doguComboList[i] = new GUIContent("コーヒーメーカー");
  3800. break;
  3801. case 129:
  3802. doguComboList[i] = new GUIContent("冷蔵庫");
  3803. break;
  3804. case 130:
  3805. doguComboList[i] = new GUIContent("テーブル");
  3806. break;
  3807. case 131:
  3808. doguComboList[i] = new GUIContent("テレビリモコン");
  3809. break;
  3810. case 132:
  3811. doguComboList[i] = new GUIContent("ワインセラー");
  3812. break;
  3813. case 133:
  3814. doguComboList[i] = new GUIContent("サイドボード");
  3815. break;
  3816. case 134:
  3817. doguComboList[i] = new GUIContent("ねい人形USB");
  3818. break;
  3819. case 135:
  3820. doguComboList[i] = new GUIContent("輪投げ");
  3821. break;
  3822. case 136:
  3823. doguComboList[i] = new GUIContent("輪");
  3824. break;
  3825. case 137:
  3826. doguComboList[i] = new GUIContent("パフェ");
  3827. break;
  3828. case 138:
  3829. doguComboList[i] = new GUIContent("フライドポテト");
  3830. break;
  3831. case 139:
  3832. doguComboList[i] = new GUIContent("カラオケテーブル");
  3833. break;
  3834. case 140:
  3835. doguComboList[i] = new GUIContent("オムライスH");
  3836. break;
  3837. case 141:
  3838. doguComboList[i] = new GUIContent("オムライス顔1");
  3839. break;
  3840. case 142:
  3841. doguComboList[i] = new GUIContent("オムライス顔2");
  3842. break;
  3843. case 143:
  3844. doguComboList[i] = new GUIContent("オムライスおっぱい");
  3845. break;
  3846. case 144:
  3847. doguComboList[i] = new GUIContent("かき氷");
  3848. break;
  3849. case 145:
  3850. doguComboList[i] = new GUIContent("スナックプレート");
  3851. break;
  3852. case 146:
  3853. doguComboList[i] = new GUIContent("箱");
  3854. break;
  3855. case 147:
  3856. doguComboList[i] = new GUIContent("スタンドマイク");
  3857. break;
  3858. case 148:
  3859. doguComboList[i] = new GUIContent("スタンドマイクベース");
  3860. break;
  3861. case 149:
  3862. doguComboList[i] = new GUIContent("コアラマイク");
  3863. break;
  3864. case 150:
  3865. doguComboList[i] = new GUIContent("無垢椅子");
  3866. break;
  3867. case 151:
  3868. doguComboList[i] = new GUIContent("真面目椅子");
  3869. break;
  3870. case 152:
  3871. doguComboList[i] = new GUIContent("凛デレ椅子");
  3872. break;
  3873. case 153:
  3874. doguComboList[i] = new GUIContent("ツンデレ椅子");
  3875. break;
  3876. case 154:
  3877. doguComboList[i] = new GUIContent("クーデレ椅子");
  3878. break;
  3879. case 155:
  3880. doguComboList[i] = new GUIContent("純真椅子");
  3881. break;
  3882. case 156:
  3883. doguComboList[i] = new GUIContent("ふかふかチェア");
  3884. break;
  3885. case 157:
  3886. doguComboList[i] = new GUIContent("ラブソファー");
  3887. break;
  3888. case 158:
  3889. doguComboList[i] = new GUIContent("タブレットPC");
  3890. break;
  3891. case 159:
  3892. doguComboList[i] = new GUIContent("スタイラスペン(黒)");
  3893. break;
  3894. case 160:
  3895. doguComboList[i] = new GUIContent("スタイラスペン(白)");
  3896. break;
  3897. case 161:
  3898. doguComboList[i] = new GUIContent("スタイラスペン(赤)");
  3899. break;
  3900. case 162:
  3901. doguComboList[i] = new GUIContent("スタイラスペン(青)");
  3902. break;
  3903. case 163:
  3904. doguComboList[i] = new GUIContent("スタイラスペン(黄)");
  3905. break;
  3906. case 164:
  3907. doguComboList[i] = new GUIContent("スタイラスペン(緑)");
  3908. break;
  3909. case 165:
  3910. doguComboList[i] = new GUIContent("オムライス1");
  3911. break;
  3912. case 166:
  3913. doguComboList[i] = new GUIContent("オムライス3");
  3914. break;
  3915. case 167:
  3916. doguComboList[i] = new GUIContent("オムライスH");
  3917. break;
  3918. case 168:
  3919. doguComboList[i] = new GUIContent("オムライス顔1");
  3920. break;
  3921. case 169:
  3922. doguComboList[i] = new GUIContent("オムライス顔2");
  3923. break;
  3924. case 170:
  3925. doguComboList[i] = new GUIContent("オムライスおっぱい");
  3926. break;
  3927. case 171:
  3928. doguComboList[i] = new GUIContent("アクアパッザ");
  3929. break;
  3930. case 172:
  3931. doguComboList[i] = new GUIContent("サンドイッチ");
  3932. break;
  3933. case 173:
  3934. doguComboList[i] = new GUIContent("スープ");
  3935. break;
  3936. case 174:
  3937. doguComboList[i] = new GUIContent("バースデーケーキ");
  3938. break;
  3939. case 175:
  3940. doguComboList[i] = new GUIContent("ショートケーキ");
  3941. break;
  3942. case 176:
  3943. doguComboList[i] = new GUIContent("モンブラン");
  3944. break;
  3945. case 177:
  3946. doguComboList[i] = new GUIContent("パフェ");
  3947. break;
  3948. case 178:
  3949. doguComboList[i] = new GUIContent("スムージー・赤");
  3950. break;
  3951. case 179:
  3952. doguComboList[i] = new GUIContent("スムージー・緑");
  3953. break;
  3954. case 180:
  3955. doguComboList[i] = new GUIContent("カクテル・赤");
  3956. break;
  3957. case 181:
  3958. doguComboList[i] = new GUIContent("カクテル・青");
  3959. break;
  3960. case 182:
  3961. doguComboList[i] = new GUIContent("カクテル・黄");
  3962. break;
  3963. case 183:
  3964. doguComboList[i] = new GUIContent("コーヒーカップ");
  3965. break;
  3966. case 184:
  3967. doguComboList[i] = new GUIContent("ワインボトル");
  3968. break;
  3969. case 185:
  3970. doguComboList[i] = new GUIContent("ワインボトル(蓋)");
  3971. break;
  3972. case 186:
  3973. doguComboList[i] = new GUIContent("如雨露");
  3974. break;
  3975. case 187:
  3976. doguComboList[i] = new GUIContent("プランター(赤)");
  3977. break;
  3978. case 188:
  3979. doguComboList[i] = new GUIContent("プランター(青)");
  3980. break;
  3981. case 189:
  3982. doguComboList[i] = new GUIContent("マリーゴールド");
  3983. break;
  3984. case 190:
  3985. doguComboList[i] = new GUIContent("カジノチップ10");
  3986. break;
  3987. case 191:
  3988. doguComboList[i] = new GUIContent("カジノチップ100");
  3989. break;
  3990. case 192:
  3991. doguComboList[i] = new GUIContent("カジノチップ1000");
  3992. break;
  3993. case 193:
  3994. doguComboList[i] = new GUIContent("カードシューター");
  3995. break;
  3996. case 194:
  3997. doguComboList[i] = new GUIContent("カードデッキ");
  3998. break;
  3999. case 195:
  4000. doguComboList[i] = new GUIContent("カード・スペードA");
  4001. break;
  4002. case 196:
  4003. doguComboList[i] = new GUIContent("カード・スペード2");
  4004. break;
  4005. case 197:
  4006. doguComboList[i] = new GUIContent("カード・スペード3");
  4007. break;
  4008. case 198:
  4009. doguComboList[i] = new GUIContent("カード・スペード4");
  4010. break;
  4011. case 199:
  4012. doguComboList[i] = new GUIContent("カード・スペード5");
  4013. break;
  4014. case 200:
  4015. doguComboList[i] = new GUIContent("カード・スペード6");
  4016. break;
  4017. case 201:
  4018. doguComboList[i] = new GUIContent("カード・スペード7");
  4019. break;
  4020. case 202:
  4021. doguComboList[i] = new GUIContent("カード・スペード8");
  4022. break;
  4023. case 203:
  4024. doguComboList[i] = new GUIContent("カード・スペード9");
  4025. break;
  4026. case 204:
  4027. doguComboList[i] = new GUIContent("カード・スペード10");
  4028. break;
  4029. case 205:
  4030. doguComboList[i] = new GUIContent("カード・スペードJ");
  4031. break;
  4032. case 206:
  4033. doguComboList[i] = new GUIContent("カード・スペードQ");
  4034. break;
  4035. case 207:
  4036. doguComboList[i] = new GUIContent("カード・スペードK");
  4037. break;
  4038. case 208:
  4039. doguComboList[i] = new GUIContent("カード・ハートA");
  4040. break;
  4041. case 209:
  4042. doguComboList[i] = new GUIContent("カード・ハート2");
  4043. break;
  4044. case 210:
  4045. doguComboList[i] = new GUIContent("カード・ハート3");
  4046. break;
  4047. case 211:
  4048. doguComboList[i] = new GUIContent("カード・ハート4");
  4049. break;
  4050. case 212:
  4051. doguComboList[i] = new GUIContent("カード・ハート5");
  4052. break;
  4053. case 213:
  4054. doguComboList[i] = new GUIContent("カード・ハート6");
  4055. break;
  4056. case 214:
  4057. doguComboList[i] = new GUIContent("カード・ハート7");
  4058. break;
  4059. case 215:
  4060. doguComboList[i] = new GUIContent("カード・ハート8");
  4061. break;
  4062. case 216:
  4063. doguComboList[i] = new GUIContent("カード・ハート9");
  4064. break;
  4065. case 217:
  4066. doguComboList[i] = new GUIContent("カード・ハート10");
  4067. break;
  4068. case 218:
  4069. doguComboList[i] = new GUIContent("カード・ハートJ");
  4070. break;
  4071. case 219:
  4072. doguComboList[i] = new GUIContent("カード・ハートQ");
  4073. break;
  4074. case 220:
  4075. doguComboList[i] = new GUIContent("カード・ハートK");
  4076. break;
  4077. case 221:
  4078. doguComboList[i] = new GUIContent("カード・ダイヤA");
  4079. break;
  4080. case 222:
  4081. doguComboList[i] = new GUIContent("カード・ダイヤ2");
  4082. break;
  4083. case 223:
  4084. doguComboList[i] = new GUIContent("カード・ダイヤ3");
  4085. break;
  4086. case 224:
  4087. doguComboList[i] = new GUIContent("カード・ダイヤ4");
  4088. break;
  4089. case 225:
  4090. doguComboList[i] = new GUIContent("カード・ダイヤ5");
  4091. break;
  4092. case 226:
  4093. doguComboList[i] = new GUIContent("カード・ダイヤ6");
  4094. break;
  4095. case 227:
  4096. doguComboList[i] = new GUIContent("カード・ダイヤ7");
  4097. break;
  4098. case 228:
  4099. doguComboList[i] = new GUIContent("カード・ダイヤ8");
  4100. break;
  4101. case 229:
  4102. doguComboList[i] = new GUIContent("カード・ダイヤ9");
  4103. break;
  4104. case 230:
  4105. doguComboList[i] = new GUIContent("カード・ダイヤ10");
  4106. break;
  4107. case 231:
  4108. doguComboList[i] = new GUIContent("カード・ダイヤJ");
  4109. break;
  4110. case 232:
  4111. doguComboList[i] = new GUIContent("カード・ダイヤQ");
  4112. break;
  4113. case 233:
  4114. doguComboList[i] = new GUIContent("カード・ダイヤK");
  4115. break;
  4116. case 234:
  4117. doguComboList[i] = new GUIContent("カード・クラブA");
  4118. break;
  4119. case 235:
  4120. doguComboList[i] = new GUIContent("カード・クラブ2");
  4121. break;
  4122. case 236:
  4123. doguComboList[i] = new GUIContent("カード・クラブ3");
  4124. break;
  4125. case 237:
  4126. doguComboList[i] = new GUIContent("カード・クラブ4");
  4127. break;
  4128. case 238:
  4129. doguComboList[i] = new GUIContent("カード・クラブ5");
  4130. break;
  4131. case 239:
  4132. doguComboList[i] = new GUIContent("カード・クラブ6");
  4133. break;
  4134. case 240:
  4135. doguComboList[i] = new GUIContent("カード・クラブ7");
  4136. break;
  4137. case 241:
  4138. doguComboList[i] = new GUIContent("カード・クラブ8");
  4139. break;
  4140. case 242:
  4141. doguComboList[i] = new GUIContent("カード・クラブ9");
  4142. break;
  4143. case 243:
  4144. doguComboList[i] = new GUIContent("カード・クラブ10");
  4145. break;
  4146. case 244:
  4147. doguComboList[i] = new GUIContent("カード・クラブJ");
  4148. break;
  4149. case 245:
  4150. doguComboList[i] = new GUIContent("カード・クラブQ");
  4151. break;
  4152. case 246:
  4153. doguComboList[i] = new GUIContent("カード・クラブK");
  4154. break;
  4155. case 247:
  4156. doguComboList[i] = new GUIContent("カード・ジョーカー");
  4157. break;
  4158. default:
  4159. goto IL_40C6;
  4160. }
  4161. IL_40DF:
  4162. i++;
  4163. continue;
  4164. IL_40C6:
  4165. doguComboList[i] = new GUIContent(doguBArray[i]);
  4166. goto IL_40DF;
  4167. }
  4168. parCombo.selectedItemIndex = 0;
  4169. parComboList = new GUIContent[parArray.Length];
  4170. i = 0;
  4171. while (i < parArray.Length)
  4172. {
  4173. string text = parArray[i];
  4174. if (text == null)
  4175. {
  4176. goto IL_48B6;
  4177. }
  4178. if (dicts[3] == null)
  4179. {
  4180. dicts[3] = new Dictionary<string, int>(46)
  4181. {
  4182. {
  4183. "Salon:63",
  4184. 0
  4185. },
  4186. {
  4187. "Salon:65",
  4188. 1
  4189. },
  4190. {
  4191. "Salon:69",
  4192. 2
  4193. },
  4194. {
  4195. "Salon_Entrance:3",
  4196. 3
  4197. },
  4198. {
  4199. "Salon_Entrance:4",
  4200. 4
  4201. },
  4202. {
  4203. "Salon_Entrance:1",
  4204. 5
  4205. },
  4206. {
  4207. "Salon_Entrance:2",
  4208. 6
  4209. },
  4210. {
  4211. "Salon_Entrance:0",
  4212. 7
  4213. },
  4214. {
  4215. "Pool:26",
  4216. 8
  4217. },
  4218. {
  4219. "Shitsumu:23",
  4220. 9
  4221. },
  4222. {
  4223. "Shitsumu_Night:23",
  4224. 10
  4225. },
  4226. {
  4227. "OutletPark:54",
  4228. 11
  4229. },
  4230. {
  4231. "HoneymoonRoom:102",
  4232. 12
  4233. },
  4234. {
  4235. "mirror1",
  4236. 13
  4237. },
  4238. {
  4239. "mirror2",
  4240. 14
  4241. },
  4242. {
  4243. "mirror3",
  4244. 15
  4245. },
  4246. {
  4247. "Mob_Man_Stand001",
  4248. 16
  4249. },
  4250. {
  4251. "Mob_Man_Stand002",
  4252. 17
  4253. },
  4254. {
  4255. "Mob_Man_Stand003",
  4256. 18
  4257. },
  4258. {
  4259. "Mob_Man_Sit001",
  4260. 19
  4261. },
  4262. {
  4263. "Mob_Man_Sit002",
  4264. 20
  4265. },
  4266. {
  4267. "Mob_Man_Sit003",
  4268. 21
  4269. },
  4270. {
  4271. "Mob_Girl_Stand001",
  4272. 22
  4273. },
  4274. {
  4275. "Mob_Girl_Stand002",
  4276. 23
  4277. },
  4278. {
  4279. "Mob_Girl_Stand003",
  4280. 24
  4281. },
  4282. {
  4283. "Mob_Girl_Sit001",
  4284. 25
  4285. },
  4286. {
  4287. "Mob_Girl_Sit002",
  4288. 26
  4289. },
  4290. {
  4291. "Mob_Girl_Sit003",
  4292. 27
  4293. },
  4294. {
  4295. "p_dance_star_photo_ver",
  4296. 28
  4297. },
  4298. {
  4299. "p_kamihubuki_photo_ver",
  4300. 29
  4301. },
  4302. {
  4303. "p_mizu001_photo_ver",
  4304. 30
  4305. },
  4306. {
  4307. "p_powder_snow2_photo_ver",
  4308. 31
  4309. },
  4310. {
  4311. "p_powder_snow_photo_ver",
  4312. 32
  4313. },
  4314. {
  4315. "p_smoke_dance_photo_ver",
  4316. 33
  4317. },
  4318. {
  4319. "p_soap_bubble01_photo_ver",
  4320. 34
  4321. },
  4322. {
  4323. "p_soap_bukubuku_photo_ver",
  4324. 35
  4325. },
  4326. {
  4327. "p_soap_photo_ver",
  4328. 36
  4329. },
  4330. {
  4331. "p_steam001_photo_ver",
  4332. 37
  4333. },
  4334. {
  4335. "p_steam002_photo_ver",
  4336. 38
  4337. },
  4338. {
  4339. "p_steam_black_photo_ver",
  4340. 39
  4341. },
  4342. {
  4343. "p_yuge_large_photo_ver",
  4344. 40
  4345. },
  4346. {
  4347. "Particle/pLineP02",
  4348. 41
  4349. },
  4350. {
  4351. "Particle/pLineY",
  4352. 42
  4353. },
  4354. {
  4355. "Particle/pLine_act2",
  4356. 43
  4357. },
  4358. {
  4359. "Particle/pstarY_act2",
  4360. 44
  4361. },
  4362. {
  4363. "Particle/pHeart01",
  4364. 45
  4365. }
  4366. };
  4367. }
  4368. if (!dicts[3].TryGetValue(text, out num))
  4369. {
  4370. goto IL_48B6;
  4371. }
  4372. switch (num)
  4373. {
  4374. case 0:
  4375. parComboList[i] = new GUIContent("ステージライト(赤)");
  4376. break;
  4377. case 1:
  4378. parComboList[i] = new GUIContent("ステージライト(黄)");
  4379. break;
  4380. case 2:
  4381. parComboList[i] = new GUIContent("ステージライト(青)");
  4382. break;
  4383. case 3:
  4384. parComboList[i] = new GUIContent("ドア(左)");
  4385. break;
  4386. case 4:
  4387. parComboList[i] = new GUIContent("ドア(右)");
  4388. break;
  4389. case 5:
  4390. parComboList[i] = new GUIContent("ホールドア(左)");
  4391. break;
  4392. case 6:
  4393. parComboList[i] = new GUIContent("ホールドア(右)");
  4394. break;
  4395. case 7:
  4396. parComboList[i] = new GUIContent("エントランス(扉無し)");
  4397. break;
  4398. case 8:
  4399. parComboList[i] = new GUIContent("水面");
  4400. break;
  4401. case 9:
  4402. parComboList[i] = new GUIContent("執務室(外・昼)");
  4403. break;
  4404. case 10:
  4405. parComboList[i] = new GUIContent("執務室(外・夜)");
  4406. break;
  4407. case 11:
  4408. parComboList[i] = new GUIContent("青空");
  4409. break;
  4410. case 12:
  4411. parComboList[i] = new GUIContent("夜景");
  4412. break;
  4413. case 13:
  4414. parComboList[i] = new GUIContent("鏡");
  4415. break;
  4416. case 14:
  4417. parComboList[i] = new GUIContent("鏡(縦長)");
  4418. break;
  4419. case 15:
  4420. parComboList[i] = new GUIContent("鏡(メイド部屋用)");
  4421. break;
  4422. case 16:
  4423. parComboList[i] = new GUIContent("モブ男1");
  4424. break;
  4425. case 17:
  4426. parComboList[i] = new GUIContent("モブ男2");
  4427. break;
  4428. case 18:
  4429. parComboList[i] = new GUIContent("モブ男3");
  4430. break;
  4431. case 19:
  4432. parComboList[i] = new GUIContent("モブ男1 座り");
  4433. break;
  4434. case 20:
  4435. parComboList[i] = new GUIContent("モブ男2 座り");
  4436. break;
  4437. case 21:
  4438. parComboList[i] = new GUIContent("モブ男3 座り");
  4439. break;
  4440. case 22:
  4441. parComboList[i] = new GUIContent("モブ女1");
  4442. break;
  4443. case 23:
  4444. parComboList[i] = new GUIContent("モブ女2");
  4445. break;
  4446. case 24:
  4447. parComboList[i] = new GUIContent("モブ女3");
  4448. break;
  4449. case 25:
  4450. parComboList[i] = new GUIContent("モブ女1 座り");
  4451. break;
  4452. case 26:
  4453. parComboList[i] = new GUIContent("モブ女2 座り");
  4454. break;
  4455. case 27:
  4456. parComboList[i] = new GUIContent("モブ女3 座り");
  4457. break;
  4458. case 28:
  4459. parComboList[i] = new GUIContent("星");
  4460. break;
  4461. case 29:
  4462. parComboList[i] = new GUIContent("紙吹雪");
  4463. break;
  4464. case 30:
  4465. parComboList[i] = new GUIContent("水");
  4466. break;
  4467. case 31:
  4468. parComboList[i] = new GUIContent("粉雪2");
  4469. break;
  4470. case 32:
  4471. parComboList[i] = new GUIContent("粉雪");
  4472. break;
  4473. case 33:
  4474. parComboList[i] = new GUIContent("煙");
  4475. break;
  4476. case 34:
  4477. parComboList[i] = new GUIContent("泡(空間)");
  4478. break;
  4479. case 35:
  4480. parComboList[i] = new GUIContent("泡");
  4481. break;
  4482. case 36:
  4483. parComboList[i] = new GUIContent("手元の泡");
  4484. break;
  4485. case 37:
  4486. parComboList[i] = new GUIContent("湯気1");
  4487. break;
  4488. case 38:
  4489. parComboList[i] = new GUIContent("スチーム");
  4490. break;
  4491. case 39:
  4492. parComboList[i] = new GUIContent("スチーム(黒)");
  4493. break;
  4494. case 40:
  4495. parComboList[i] = new GUIContent("湯気2");
  4496. break;
  4497. case 41:
  4498. parComboList[i] = new GUIContent("ライン:ハート");
  4499. break;
  4500. case 42:
  4501. parComboList[i] = new GUIContent("ライン:星");
  4502. break;
  4503. case 43:
  4504. parComboList[i] = new GUIContent("星2");
  4505. break;
  4506. case 44:
  4507. parComboList[i] = new GUIContent("流れ星");
  4508. break;
  4509. case 45:
  4510. parComboList[i] = new GUIContent("ハート");
  4511. break;
  4512. default:
  4513. goto IL_48B6;
  4514. }
  4515. IL_48CF:
  4516. i++;
  4517. continue;
  4518. IL_48B6:
  4519. parComboList[i] = new GUIContent(parArray[i]);
  4520. goto IL_48CF;
  4521. }
  4522. lightCombo.selectedItemIndex = 0;
  4523. lightList = new List<GameObject>();
  4524. lightList.Add(GameMain.Instance.MainLight.gameObject);
  4525. lightComboList = new GUIContent[lightList.Count];
  4526. for (i = 0; i < lightList.Count; i++)
  4527. {
  4528. if (i == 0)
  4529. {
  4530. lightComboList[i] = new GUIContent("メイン");
  4531. }
  4532. else
  4533. {
  4534. lightComboList[i] = new GUIContent("追加" + i);
  4535. }
  4536. }
  4537. kankyoInitFlg = true;
  4538. }
  4539. listStyle3.padding.top = this.GetPix(1);
  4540. listStyle3.padding.bottom = this.GetPix(0);
  4541. listStyle3.fontSize = this.GetPix(12);
  4542. if (poseCombo.isClickedComboButton)
  4543. {
  4544. GUI.enabled = false;
  4545. }
  4546. if (poseGroupCombo.isClickedComboButton)
  4547. {
  4548. GUI.enabled = false;
  4549. }
  4550. if (sceneLevel == 3 || sceneLevel == 5 || isF6)
  4551. {
  4552. if (!isF6)
  4553. {
  4554. bool value = true;
  4555. if (faceFlg || poseFlg || sceneFlg || kankyoFlg || kankyo2Flg)
  4556. {
  4557. value = false;
  4558. }
  4559. if (GUI.Toggle(new Rect((float)this.GetPix(2), (float)this.GetPix(2), (float)this.GetPix(39), (float)this.GetPix(20)), value, "配置", guistyle6))
  4560. {
  4561. faceFlg = false;
  4562. poseFlg = false;
  4563. sceneFlg = false;
  4564. kankyoFlg = false;
  4565. kankyo2Flg = false;
  4566. bGui = true;
  4567. isGuiInit = true;
  4568. }
  4569. }
  4570. if (!yotogiFlg)
  4571. {
  4572. if (GUI.Toggle(new Rect((float)this.GetPix(42), (float)this.GetPix(2), (float)this.GetPix(39), (float)this.GetPix(20)), poseFlg, "操作", guistyle6))
  4573. {
  4574. poseFlg = true;
  4575. faceFlg = false;
  4576. sceneFlg = false;
  4577. kankyoFlg = false;
  4578. kankyo2Flg = false;
  4579. }
  4580. }
  4581. if (GUI.Toggle(new Rect((float)this.GetPix(82), (float)this.GetPix(2), (float)this.GetPix(39), (float)this.GetPix(20)), faceFlg, "表情", guistyle6))
  4582. {
  4583. faceFlg = true;
  4584. poseFlg = false;
  4585. sceneFlg = false;
  4586. kankyoFlg = false;
  4587. kankyo2Flg = false;
  4588. if (!faceFlg2)
  4589. {
  4590. isFaceInit = true;
  4591. faceFlg2 = true;
  4592. maidArray[selectMaidIndex].boMabataki = false;
  4593. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  4594. }
  4595. isFaceInit = true;
  4596. }
  4597. if (GUI.Toggle(new Rect((float)this.GetPix(122), (float)this.GetPix(2), (float)this.GetPix(39), (float)this.GetPix(20)), kankyoFlg, "環境", guistyle6))
  4598. {
  4599. poseFlg = false;
  4600. faceFlg = false;
  4601. sceneFlg = false;
  4602. kankyoFlg = true;
  4603. kankyo2Flg = false;
  4604. }
  4605. if (GUI.Toggle(new Rect((float)this.GetPix(162), (float)this.GetPix(2), (float)this.GetPix(39), (float)this.GetPix(20)), kankyo2Flg, "環2", guistyle6))
  4606. {
  4607. poseFlg = false;
  4608. faceFlg = false;
  4609. sceneFlg = false;
  4610. kankyoFlg = false;
  4611. kankyo2Flg = true;
  4612. }
  4613. if (!line1)
  4614. {
  4615. line1 = this.MakeTex(2, 2, new Color(0f, 0f, 0f, 0.3f));
  4616. line2 = this.MakeTex(2, 2, new Color(0.7f, 0.7f, 0.7f, 0.6f));
  4617. }
  4618. GUI.DrawTexture(new Rect((float)this.GetPix(5), (float)this.GetPix(20), (float)this.GetPix(200), 2f), line1);
  4619. GUI.DrawTexture(new Rect((float)this.GetPix(5), (float)this.GetPix(20), (float)this.GetPix(200), 1f), line2);
  4620. }
  4621. if (isDanceStop)
  4622. {
  4623. isStop[selectMaidIndex] = true;
  4624. isDanceStop = false;
  4625. }
  4626. yotogiFlg = false;
  4627. if (sceneLevel == 14)
  4628. {
  4629. if (GameObject.Find("/UI Root/YotogiPlayPanel/CommandViewer/SkillViewer/MaskGroup/SkillGroup/CommandParent/CommandUnit"))
  4630. {
  4631. yotogiFlg = true;
  4632. }
  4633. }
  4634. if (!isF6)
  4635. {
  4636. if (GUI.Button(new Rect((float)this.GetPix(157), (float)this.GetPix(32), (float)this.GetPix(46), (float)this.GetPix(35)), "シーン\n 管 理", guistyle3))
  4637. {
  4638. sceneFlg = true;
  4639. faceFlg = false;
  4640. poseFlg = false;
  4641. kankyoFlg = false;
  4642. kankyo2Flg = false;
  4643. bGui = true;
  4644. int i = 0;
  4645. while (i < 10)
  4646. {
  4647. date[i] = "未保存";
  4648. ninzu[i] = "";
  4649. IniKey iniKey = base.Preferences["scene"]["s" + (page * 10 + i + 1)];
  4650. if (iniKey.Value != null && iniKey.Value.ToString() != "")
  4651. {
  4652. string[] array = iniKey.Value.Split(new char[]
  4653. {
  4654. '_'
  4655. });
  4656. if (array.Length >= 2)
  4657. {
  4658. string[] array2 = array[0].Split(new char[]
  4659. {
  4660. ','
  4661. });
  4662. date[i] = array2[0];
  4663. ninzu[i] = array2[1] + "人";
  4664. }
  4665. }
  4666. IL_4FA1:
  4667. i++;
  4668. continue;
  4669. goto IL_4FA1;
  4670. }
  4671. }
  4672. }
  4673. if (doguCombo.isClickedComboButton || parCombo.isClickedComboButton || bgCombo.isClickedComboButton || bgmCombo.isClickedComboButton || lightCombo.isClickedComboButton)
  4674. {
  4675. GUI.enabled = false;
  4676. }
  4677. int num2 = -1;
  4678. if (lightIndex[selectLightIndex] == 0)
  4679. {
  4680. isIdx1 = true;
  4681. }
  4682. if (lightIndex[selectLightIndex] == 1)
  4683. {
  4684. isIdx2 = true;
  4685. }
  4686. if (lightIndex[selectLightIndex] == 2)
  4687. {
  4688. isIdx3 = true;
  4689. }
  4690. if (lightIndex[selectLightIndex] == 3)
  4691. {
  4692. isIdx4 = true;
  4693. }
  4694. if (GUI.Toggle(new Rect((float)this.GetPix(5), (float)this.GetPix(215), (float)this.GetPix(45), (float)this.GetPix(20)), isIdx1, "通常", guistyle6))
  4695. {
  4696. if (lightIndex[selectLightIndex] != 0)
  4697. {
  4698. isIdx1 = true;
  4699. isIdx2 = false;
  4700. isIdx3 = false;
  4701. isIdx4 = false;
  4702. num2 = 0;
  4703. }
  4704. }
  4705. if (GUI.Toggle(new Rect((float)this.GetPix(50), (float)this.GetPix(215), (float)this.GetPix(45), (float)this.GetPix(20)), isIdx2, "Spot", guistyle6))
  4706. {
  4707. if (lightIndex[selectLightIndex] != 1)
  4708. {
  4709. isIdx1 = false;
  4710. isIdx2 = true;
  4711. isIdx3 = false;
  4712. isIdx4 = false;
  4713. num2 = 1;
  4714. }
  4715. }
  4716. if (GUI.Toggle(new Rect((float)this.GetPix(99), (float)this.GetPix(215), (float)this.GetPix(45), (float)this.GetPix(20)), isIdx3, "Point", guistyle6))
  4717. {
  4718. if (lightIndex[selectLightIndex] != 2)
  4719. {
  4720. isIdx1 = false;
  4721. isIdx2 = false;
  4722. isIdx3 = true;
  4723. isIdx4 = false;
  4724. num2 = 2;
  4725. }
  4726. }
  4727. if (selectLightIndex == 0)
  4728. {
  4729. if (GUI.Toggle(new Rect((float)this.GetPix(150), (float)this.GetPix(215), (float)this.GetPix(45), (float)this.GetPix(20)), isIdx4, "単色", guistyle6))
  4730. {
  4731. if (lightIndex[selectLightIndex] != 3)
  4732. {
  4733. isIdx1 = false;
  4734. isIdx2 = false;
  4735. isIdx3 = false;
  4736. isIdx4 = true;
  4737. num2 = 3;
  4738. }
  4739. }
  4740. }
  4741. else if (GUI.Toggle(new Rect((float)this.GetPix(150), (float)this.GetPix(215), (float)this.GetPix(45), (float)this.GetPix(20)), isIdx4, "無効", guistyle6))
  4742. {
  4743. if (lightIndex[selectLightIndex] != 3)
  4744. {
  4745. isIdx1 = false;
  4746. isIdx2 = false;
  4747. isIdx3 = false;
  4748. isIdx4 = true;
  4749. num2 = 3;
  4750. }
  4751. }
  4752. if (num2 >= 0)
  4753. {
  4754. lightIndex[selectLightIndex] = num2;
  4755. if (selectLightIndex == 0)
  4756. {
  4757. GameMain.Instance.MainLight.Reset();
  4758. GameMain.Instance.MainLight.SetIntensity(0.95f);
  4759. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle = 50f;
  4760. GameMain.Instance.MainLight.GetComponent<Light>().range = 10f;
  4761. GameMain.Instance.MainLight.gameObject.transform.position = new Vector3(0f, 2f, 0f);
  4762. if (lightIndex[selectLightIndex] == 0)
  4763. {
  4764. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  4765. bgObject.SetActive(true);
  4766. mainCamera.GetComponent<Camera>().backgroundColor = new Color(0f, 0f, 0f);
  4767. }
  4768. else if (lightIndex[selectLightIndex] == 1)
  4769. {
  4770. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.right * 40f;
  4771. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Spot;
  4772. bgObject.SetActive(true);
  4773. mainCamera.GetComponent<Camera>().backgroundColor = new Color(0f, 0f, 0f);
  4774. }
  4775. else if (lightIndex[selectLightIndex] == 2)
  4776. {
  4777. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Point;
  4778. bgObject.SetActive(true);
  4779. mainCamera.GetComponent<Camera>().backgroundColor = new Color(0f, 0f, 0f);
  4780. }
  4781. else if (lightIndex[selectLightIndex] == 3)
  4782. {
  4783. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  4784. mainCamera.GetComponent<Camera>().backgroundColor = new Color(lightColorR[0], lightColorG[0], lightColorB[0]);
  4785. bgObject.SetActive(false);
  4786. }
  4787. }
  4788. else
  4789. {
  4790. lightList[selectLightIndex].SetActive(true);
  4791. if (lightIndex[selectLightIndex] == 0)
  4792. {
  4793. lightList[selectLightIndex].GetComponent<Light>().type = LightType.Directional;
  4794. }
  4795. else if (lightIndex[selectLightIndex] == 1)
  4796. {
  4797. lightList[selectLightIndex].transform.eulerAngles += Vector3.right * 40f;
  4798. lightList[selectLightIndex].GetComponent<Light>().type = LightType.Spot;
  4799. }
  4800. else if (lightIndex[selectLightIndex] == 2)
  4801. {
  4802. lightList[selectLightIndex].GetComponent<Light>().type = LightType.Point;
  4803. }
  4804. else if (lightIndex[selectLightIndex] == 3)
  4805. {
  4806. lightList[selectLightIndex].GetComponent<Light>().type = LightType.Directional;
  4807. lightList[selectLightIndex].SetActive(false);
  4808. }
  4809. }
  4810. lightColorR[selectLightIndex] = 1f;
  4811. lightColorG[selectLightIndex] = 1f;
  4812. lightColorB[selectLightIndex] = 1f;
  4813. lightX[selectLightIndex] = 40f;
  4814. lightY[selectLightIndex] = 180f;
  4815. lightAkarusa[selectLightIndex] = 0.95f;
  4816. lightKage[selectLightIndex] = 0.098f;
  4817. lightRange[selectLightIndex] = 50f;
  4818. if (lightIndex[selectLightIndex] == 1)
  4819. {
  4820. lightX[selectLightIndex] = 90f;
  4821. }
  4822. }
  4823. GUI.Label(new Rect((float)this.GetPix(10), (float)this.GetPix(138), (float)this.GetPix(100), (float)this.GetPix(25)), "キューブ表示", guistyle2);
  4824. guistyle6.fontSize = this.GetPix(12);
  4825. isCube2 = GUI.Toggle(new Rect((float)this.GetPix(5), (float)this.GetPix(153), (float)this.GetPix(55), (float)this.GetPix(20)), isCube2, "大道具(", guistyle6);
  4826. if (!isF6)
  4827. {
  4828. isCube = GUI.Toggle(new Rect((float)this.GetPix(102), (float)this.GetPix(153), (float)this.GetPix(54), (float)this.GetPix(20)), isCube, "メイド", guistyle6);
  4829. }
  4830. bool flag = GUI.Toggle(new Rect((float)this.GetPix(160), (float)this.GetPix(153), (float)this.GetPix(44), (float)this.GetPix(20)), isCube3, "背景", guistyle6);
  4831. guistyle6.fontSize = this.GetPix(13);
  4832. bool flag2 = GUI.Toggle(new Rect((float)this.GetPix(61), (float)this.GetPix(153), (float)this.GetPix(38), (float)this.GetPix(20)), isCubeS, "小)", guistyle6);
  4833. if (isCubeS != flag2)
  4834. {
  4835. isCubeS = flag2;
  4836. if (isCubeS)
  4837. {
  4838. cubeSize = 0.05f;
  4839. }
  4840. else
  4841. {
  4842. cubeSize = 0.12f;
  4843. }
  4844. for (int i = 0; i < doguBObject.Count; i++)
  4845. {
  4846. gDogu[i].transform.localScale = new Vector3(cubeSize, cubeSize, cubeSize);
  4847. }
  4848. }
  4849. if (isCube3 != flag)
  4850. {
  4851. isCube3 = flag;
  4852. if (gBg == null)
  4853. {
  4854. gBg = GameObject.CreatePrimitive(PrimitiveType.Cube);
  4855. gBg.GetComponent<Renderer>().material = m_material;
  4856. gBg.layer = 8;
  4857. gBg.GetComponent<Renderer>().enabled = false;
  4858. gBg.SetActive(false);
  4859. gBg.transform.position = bgObject.transform.position;
  4860. mBg = gBg.AddComponent<MouseDrag6>();
  4861. mBg.obj = gBg;
  4862. mBg.maid = bgObject;
  4863. mBg.angles = bg.eulerAngles;
  4864. gBg.transform.localScale = new Vector3(0.12f, 0.12f, 0.12f);
  4865. mBg.ido = 1;
  4866. mBg.isScale = false;
  4867. }
  4868. if (isCube3)
  4869. {
  4870. gBg.SetActive(true);
  4871. }
  4872. else
  4873. {
  4874. gBg.SetActive(false);
  4875. }
  4876. }
  4877. int num3 = 0;
  4878. if (lightIndex[selectLightIndex] == 0 || lightIndex[selectLightIndex] == 1 || (selectLightIndex == 0 && lightIndex[selectLightIndex] == 3))
  4879. {
  4880. GUI.Label(new Rect((float)this.GetPix(10), (float)this.GetPix(237), (float)this.GetPix(100), (float)this.GetPix(25)), "向きX", guistyle2);
  4881. lightX[selectLightIndex] = GUI.HorizontalSlider(new Rect((float)this.GetPix(8), (float)this.GetPix(251), (float)this.GetPix(192), (float)this.GetPix(20)), lightX[selectLightIndex], 220f, -140f);
  4882. GUI.Label(new Rect((float)this.GetPix(10), (float)this.GetPix(261), (float)this.GetPix(100), (float)this.GetPix(25)), "向きY", guistyle2);
  4883. lightY[selectLightIndex] = GUI.HorizontalSlider(new Rect((float)this.GetPix(8), (float)this.GetPix(275), (float)this.GetPix(192), (float)this.GetPix(20)), lightY[selectLightIndex], 0f, 360f);
  4884. }
  4885. else
  4886. {
  4887. num3 = 50;
  4888. }
  4889. if (lightIndex[selectLightIndex] != 3 || selectLightIndex <= 0)
  4890. {
  4891. GUI.Label(new Rect((float)this.GetPix(10), (float)this.GetPix(285 - num3), (float)this.GetPix(100), (float)this.GetPix(25)), "明るさ", guistyle2);
  4892. lightAkarusa[selectLightIndex] = GUI.HorizontalSlider(new Rect((float)this.GetPix(8), (float)this.GetPix(299 - num3), (float)this.GetPix(192), (float)this.GetPix(20)), lightAkarusa[selectLightIndex], 0f, 1.9f);
  4893. if (lightIndex[selectLightIndex] == 0 || lightIndex[selectLightIndex] == 3)
  4894. {
  4895. if (selectLightIndex == 0)
  4896. {
  4897. GUI.Label(new Rect((float)this.GetPix(10), (float)this.GetPix(309 - num3), (float)this.GetPix(100), (float)this.GetPix(25)), "影", guistyle2);
  4898. lightKage[selectLightIndex] = GUI.HorizontalSlider(new Rect((float)this.GetPix(8), (float)this.GetPix(323 - num3), (float)this.GetPix(192), (float)this.GetPix(20)), lightKage[selectLightIndex], 0f, 1f);
  4899. }
  4900. else
  4901. {
  4902. num3 = 25;
  4903. }
  4904. }
  4905. else if (lightIndex[selectLightIndex] == 1 || lightIndex[selectLightIndex] == 2)
  4906. {
  4907. GUI.Label(new Rect((float)this.GetPix(10), (float)this.GetPix(311 - num3), (float)this.GetPix(100), (float)this.GetPix(25)), "範囲", guistyle2);
  4908. lightRange[selectLightIndex] = GUI.HorizontalSlider(new Rect((float)this.GetPix(8), (float)this.GetPix(325 - num3), (float)this.GetPix(192), (float)this.GetPix(20)), lightRange[selectLightIndex], 0f, 150f);
  4909. }
  4910. else
  4911. {
  4912. num3 = 75;
  4913. }
  4914. GUI.Label(new Rect((float)this.GetPix(10), (float)this.GetPix(333 - num3), (float)this.GetPix(100), (float)this.GetPix(25)), "赤", guistyle2);
  4915. lightColorR[selectLightIndex] = GUI.HorizontalSlider(new Rect((float)this.GetPix(8), (float)this.GetPix(347 - num3), (float)this.GetPix(92), (float)this.GetPix(20)), lightColorR[selectLightIndex], 0f, 1f);
  4916. GUI.Label(new Rect((float)this.GetPix(108), (float)this.GetPix(333 - num3), (float)this.GetPix(100), (float)this.GetPix(25)), "緑", guistyle2);
  4917. lightColorG[selectLightIndex] = GUI.HorizontalSlider(new Rect((float)this.GetPix(108), (float)this.GetPix(347 - num3), (float)this.GetPix(92), (float)this.GetPix(20)), lightColorG[selectLightIndex], 0f, 1f);
  4918. GUI.Label(new Rect((float)this.GetPix(10), (float)this.GetPix(357 - num3), (float)this.GetPix(100), (float)this.GetPix(25)), "青", guistyle2);
  4919. lightColorB[selectLightIndex] = GUI.HorizontalSlider(new Rect((float)this.GetPix(8), (float)this.GetPix(371 - num3), (float)this.GetPix(92), (float)this.GetPix(20)), lightColorB[selectLightIndex], 0f, 1f);
  4920. }
  4921. if (GUI.Toggle(new Rect((float)this.GetPix(5), (float)this.GetPix(391), (float)this.GetPix(67), (float)this.GetPix(20)), isBloomS, "ブルーム", guistyle6))
  4922. {
  4923. isBloomS = true;
  4924. isDepthS = false;
  4925. isBlurS = false;
  4926. isFogS = false;
  4927. }
  4928. if (isBloomS)
  4929. {
  4930. isBloom = GUI.Toggle(new Rect((float)this.GetPix(8), (float)this.GetPix(412), (float)this.GetPix(40), (float)this.GetPix(20)), isBloom, "有効", guistyle6);
  4931. if (!isBloom)
  4932. {
  4933. GUI.enabled = false;
  4934. }
  4935. GUI.Label(new Rect((float)this.GetPix(10), (float)this.GetPix(430), (float)this.GetPix(100), (float)this.GetPix(25)), "強さ", guistyle2);
  4936. bloom1 = GUI.HorizontalSlider(new Rect((float)this.GetPix(8), (float)this.GetPix(445), (float)this.GetPix(92), (float)this.GetPix(20)), bloom1, 0f, 5.7f);
  4937. GUI.Label(new Rect((float)this.GetPix(110), (float)this.GetPix(430), (float)this.GetPix(100), (float)this.GetPix(25)), "広さ", guistyle2);
  4938. bloom2 = GUI.HorizontalSlider(new Rect((float)this.GetPix(108), (float)this.GetPix(445), (float)this.GetPix(92), (float)this.GetPix(20)), bloom2, 0f, 15f);
  4939. GUI.Label(new Rect((float)this.GetPix(10), (float)this.GetPix(455), (float)this.GetPix(100), (float)this.GetPix(25)), "赤", guistyle2);
  4940. bloom3 = GUI.HorizontalSlider(new Rect((float)this.GetPix(8), (float)this.GetPix(470), (float)this.GetPix(92), (float)this.GetPix(20)), bloom3, 0f, 0.5f);
  4941. GUI.Label(new Rect((float)this.GetPix(110), (float)this.GetPix(455), (float)this.GetPix(100), (float)this.GetPix(25)), "緑", guistyle2);
  4942. bloom4 = GUI.HorizontalSlider(new Rect((float)this.GetPix(108), (float)this.GetPix(470), (float)this.GetPix(92), (float)this.GetPix(20)), bloom4, 0f, 0.5f);
  4943. GUI.Label(new Rect((float)this.GetPix(10), (float)this.GetPix(480), (float)this.GetPix(100), (float)this.GetPix(25)), "青", guistyle2);
  4944. bloom5 = GUI.HorizontalSlider(new Rect((float)this.GetPix(8), (float)this.GetPix(495), (float)this.GetPix(92), (float)this.GetPix(20)), bloom5, 0f, 0.5f);
  4945. isBloomA = GUI.Toggle(new Rect((float)this.GetPix(110), (float)this.GetPix(491), (float)this.GetPix(50), (float)this.GetPix(20)), isBloomA, "HDR", guistyle6);
  4946. if (!doguCombo.isClickedComboButton && !parCombo.isClickedComboButton && !bgCombo.isClickedComboButton && !bgmCombo.isClickedComboButton)
  4947. {
  4948. GUI.enabled = true;
  4949. }
  4950. }
  4951. if (GUI.Toggle(new Rect((float)this.GetPix(73), (float)this.GetPix(391), (float)this.GetPix(40), (float)this.GetPix(20)), isDepthS, "深度", guistyle6))
  4952. {
  4953. isBloomS = false;
  4954. isDepthS = true;
  4955. isBlurS = false;
  4956. isFogS = false;
  4957. }
  4958. if (isDepthS)
  4959. {
  4960. isDepth = GUI.Toggle(new Rect((float)this.GetPix(8), (float)this.GetPix(412), (float)this.GetPix(40), (float)this.GetPix(20)), isDepth, "有効", guistyle6);
  4961. if (!isDepth)
  4962. {
  4963. GUI.enabled = false;
  4964. }
  4965. GUI.Label(new Rect((float)this.GetPix(10), (float)this.GetPix(430), (float)this.GetPix(100), (float)this.GetPix(25)), "焦点距離", guistyle2);
  4966. depth1 = GUI.HorizontalSlider(new Rect((float)this.GetPix(8), (float)this.GetPix(445), (float)this.GetPix(192), (float)this.GetPix(20)), depth1, 0f, 10f);
  4967. GUI.Label(new Rect((float)this.GetPix(10), (float)this.GetPix(455), (float)this.GetPix(100), (float)this.GetPix(25)), "焦点領域サイズ", guistyle2);
  4968. depth2 = GUI.HorizontalSlider(new Rect((float)this.GetPix(8), (float)this.GetPix(470), (float)this.GetPix(92), (float)this.GetPix(20)), depth2, 0f, 2f);
  4969. GUI.Label(new Rect((float)this.GetPix(110), (float)this.GetPix(455), (float)this.GetPix(100), (float)this.GetPix(25)), "カメラ絞り", guistyle2);
  4970. depth3 = GUI.HorizontalSlider(new Rect((float)this.GetPix(108), (float)this.GetPix(470), (float)this.GetPix(92), (float)this.GetPix(20)), depth3, 0f, 60f);
  4971. GUI.Label(new Rect((float)this.GetPix(10), (float)this.GetPix(480), (float)this.GetPix(100), (float)this.GetPix(25)), "ブレ", guistyle2);
  4972. depth4 = GUI.HorizontalSlider(new Rect((float)this.GetPix(8), (float)this.GetPix(495), (float)this.GetPix(92), (float)this.GetPix(20)), depth4, 0f, 10f);
  4973. isDepthA = GUI.Toggle(new Rect((float)this.GetPix(110), (float)this.GetPix(491), (float)this.GetPix(100), (float)this.GetPix(20)), isDepthA, "深度表示", guistyle6);
  4974. if (!doguCombo.isClickedComboButton && !parCombo.isClickedComboButton && !bgCombo.isClickedComboButton && !bgmCombo.isClickedComboButton)
  4975. {
  4976. GUI.enabled = true;
  4977. }
  4978. }
  4979. if (GUI.Toggle(new Rect((float)this.GetPix(114), (float)this.GetPix(391), (float)this.GetPix(40), (float)this.GetPix(20)), isBlurS, "光学", guistyle6))
  4980. {
  4981. isBloomS = false;
  4982. isDepthS = false;
  4983. isBlurS = true;
  4984. isFogS = false;
  4985. }
  4986. if (isBlurS)
  4987. {
  4988. isBlur = GUI.Toggle(new Rect((float)this.GetPix(8), (float)this.GetPix(412), (float)this.GetPix(40), (float)this.GetPix(20)), isBlur, "有効", guistyle6);
  4989. if (!isBlur)
  4990. {
  4991. GUI.enabled = false;
  4992. }
  4993. GUI.Label(new Rect((float)this.GetPix(10), (float)this.GetPix(430), (float)this.GetPix(100), (float)this.GetPix(25)), "強さ", guistyle2);
  4994. blur1 = GUI.HorizontalSlider(new Rect((float)this.GetPix(8), (float)this.GetPix(445), (float)this.GetPix(92), (float)this.GetPix(20)), blur1, -40f, 70f);
  4995. GUI.Label(new Rect((float)this.GetPix(108), (float)this.GetPix(430), (float)this.GetPix(100), (float)this.GetPix(25)), "ブラー", guistyle2);
  4996. blur2 = GUI.HorizontalSlider(new Rect((float)this.GetPix(108), (float)this.GetPix(445), (float)this.GetPix(92), (float)this.GetPix(20)), blur2, 0f, 5f);
  4997. GUI.Label(new Rect((float)this.GetPix(10), (float)this.GetPix(455), (float)this.GetPix(100), (float)this.GetPix(25)), "ブレ", guistyle2);
  4998. blur3 = GUI.HorizontalSlider(new Rect((float)this.GetPix(8), (float)this.GetPix(470), (float)this.GetPix(92), (float)this.GetPix(20)), blur3, 0f, 40f);
  4999. GUI.Label(new Rect((float)this.GetPix(108), (float)this.GetPix(455), (float)this.GetPix(100), (float)this.GetPix(25)), "色収差", guistyle2);
  5000. blur4 = GUI.HorizontalSlider(new Rect((float)this.GetPix(108), (float)this.GetPix(470), (float)this.GetPix(92), (float)this.GetPix(20)), blur4, -30f, 30f);
  5001. if (!doguCombo.isClickedComboButton && !parCombo.isClickedComboButton && !bgCombo.isClickedComboButton && !bgmCombo.isClickedComboButton)
  5002. {
  5003. GUI.enabled = true;
  5004. }
  5005. }
  5006. if (GUI.Toggle(new Rect((float)this.GetPix(155), (float)this.GetPix(391), (float)this.GetPix(60), (float)this.GetPix(20)), isFogS, "フォグ", guistyle6))
  5007. {
  5008. isBloomS = false;
  5009. isDepthS = false;
  5010. isBlurS = false;
  5011. isFogS = true;
  5012. }
  5013. if (isFogS)
  5014. {
  5015. isFog = GUI.Toggle(new Rect((float)this.GetPix(8), (float)this.GetPix(412), (float)this.GetPix(40), (float)this.GetPix(20)), isFog, "有効", guistyle6);
  5016. if (!isFog)
  5017. {
  5018. GUI.enabled = false;
  5019. }
  5020. GUI.Label(new Rect((float)this.GetPix(110), (float)this.GetPix(406), (float)this.GetPix(100), (float)this.GetPix(24)), "発生距離", guistyle2);
  5021. fog1 = GUI.HorizontalSlider(new Rect((float)this.GetPix(108), (float)this.GetPix(420), (float)this.GetPix(92), (float)this.GetPix(20)), fog1, 0f, 30f);
  5022. GUI.Label(new Rect((float)this.GetPix(10), (float)this.GetPix(430), (float)this.GetPix(100), (float)this.GetPix(25)), "密度", guistyle2);
  5023. fog2 = GUI.HorizontalSlider(new Rect((float)this.GetPix(8), (float)this.GetPix(445), (float)this.GetPix(92), (float)this.GetPix(20)), fog2, 0f, 10f);
  5024. GUI.Label(new Rect((float)this.GetPix(110), (float)this.GetPix(430), (float)this.GetPix(100), (float)this.GetPix(25)), "強度", guistyle2);
  5025. fog3 = GUI.HorizontalSlider(new Rect((float)this.GetPix(108), (float)this.GetPix(445), (float)this.GetPix(92), (float)this.GetPix(20)), fog3, -5f, 20f);
  5026. GUI.Label(new Rect((float)this.GetPix(10), (float)this.GetPix(455), (float)this.GetPix(100), (float)this.GetPix(25)), "高さ", guistyle2);
  5027. fog4 = GUI.HorizontalSlider(new Rect((float)this.GetPix(8), (float)this.GetPix(470), (float)this.GetPix(92), (float)this.GetPix(20)), fog4, -10f, 10f);
  5028. GUI.Label(new Rect((float)this.GetPix(110), (float)this.GetPix(455), (float)this.GetPix(100), (float)this.GetPix(25)), "赤", guistyle2);
  5029. fog5 = GUI.HorizontalSlider(new Rect((float)this.GetPix(108), (float)this.GetPix(470), (float)this.GetPix(92), (float)this.GetPix(20)), fog5, 0f, 1f);
  5030. GUI.Label(new Rect((float)this.GetPix(10), (float)this.GetPix(480), (float)this.GetPix(100), (float)this.GetPix(25)), "緑", guistyle2);
  5031. fog6 = GUI.HorizontalSlider(new Rect((float)this.GetPix(8), (float)this.GetPix(495), (float)this.GetPix(92), (float)this.GetPix(20)), fog6, 0f, 1f);
  5032. GUI.Label(new Rect((float)this.GetPix(110), (float)this.GetPix(480), (float)this.GetPix(100), (float)this.GetPix(25)), "青", guistyle2);
  5033. fog7 = GUI.HorizontalSlider(new Rect((float)this.GetPix(108), (float)this.GetPix(495), (float)this.GetPix(92), (float)this.GetPix(20)), fog7, 0f, 1f);
  5034. if (!doguCombo.isClickedComboButton && !parCombo.isClickedComboButton && !bgCombo.isClickedComboButton && !bgmCombo.isClickedComboButton)
  5035. {
  5036. GUI.enabled = true;
  5037. }
  5038. }
  5039. isSepian = GUI.Toggle(new Rect((float)this.GetPix(5), (float)this.GetPix(515), (float)this.GetPix(80), (float)this.GetPix(20)), isSepian, "セピア", guistyle6);
  5040. GUI.Label(new Rect((float)this.GetPix(108), (float)this.GetPix(512), (float)this.GetPix(100), (float)this.GetPix(25)), "ぼかし", guistyle2);
  5041. bokashi = GUI.HorizontalSlider(new Rect((float)this.GetPix(108), (float)this.GetPix(527), (float)this.GetPix(92), (float)this.GetPix(20)), bokashi, 0f, 18f);
  5042. if (GUI.Toggle(new Rect((float)this.GetPix(5), (float)this.GetPix(545), (float)this.GetPix(80), (float)this.GetPix(20)), isHairSetting, "髪の設定", guistyle6))
  5043. {
  5044. isHairSetting = true;
  5045. isSkirtSetting = false;
  5046. }
  5047. if (isHairSetting)
  5048. {
  5049. bool flag3 = GUI.Toggle(new Rect((float)this.GetPix(5), (float)this.GetPix(566), (float)this.GetPix(40), (float)this.GetPix(20)), isKamiyure, "有効", guistyle6);
  5050. if (isKamiyure != flag3)
  5051. {
  5052. isKamiyure = flag3;
  5053. if (isKamiyure)
  5054. {
  5055. base.Preferences["config"]["hair_setting"].Value = "true";
  5056. base.Preferences["config"]["hair_radius"].Value = kamiyure4.ToString();
  5057. base.Preferences["config"]["hair_elasticity"].Value = kamiyure3.ToString();
  5058. base.Preferences["config"]["hair_damping"].Value = kamiyure2.ToString();
  5059. base.SaveConfig();
  5060. }
  5061. else
  5062. {
  5063. base.Preferences["config"]["hair_setting"].Value = "false";
  5064. base.SaveConfig();
  5065. for (int j = 0; j < maidCnt; j++)
  5066. {
  5067. for (int k = 0; k < maidArray[j].body0.goSlot.Count; k++)
  5068. {
  5069. if (k >= 3 && k <= 6)
  5070. {
  5071. if (maidArray[j].body0.goSlot[k].obj != null)
  5072. {
  5073. DynamicBone component = maidArray[j].body0.goSlot[k].obj.GetComponent<DynamicBone>();
  5074. if (component != null)
  5075. {
  5076. component.m_Damping = 0.6f;
  5077. component.m_Elasticity = 1f;
  5078. if (k == 5)
  5079. {
  5080. component.m_Elasticity = 0.05f;
  5081. }
  5082. component.m_Radius = 0.02f;
  5083. component.UpdateParameters();
  5084. }
  5085. }
  5086. }
  5087. }
  5088. }
  5089. }
  5090. }
  5091. if (!isKamiyure)
  5092. {
  5093. GUI.enabled = false;
  5094. }
  5095. GUI.Label(new Rect((float)this.GetPix(108), (float)this.GetPix(565), (float)this.GetPix(100), (float)this.GetPix(25)), "当たり判定半径", guistyle2);
  5096. float num4 = GUI.HorizontalSlider(new Rect((float)this.GetPix(108), (float)this.GetPix(579), (float)this.GetPix(92), (float)this.GetPix(20)), kamiyure4, 0f, 0.04f);
  5097. if (kamiyure4 != num4)
  5098. {
  5099. kamiyure4 = num4;
  5100. base.Preferences["config"]["hair_radius"].Value = kamiyure4.ToString();
  5101. base.SaveConfig();
  5102. }
  5103. GUI.Label(new Rect((float)this.GetPix(108), (float)this.GetPix(590), (float)this.GetPix(100), (float)this.GetPix(25)), "減衰率", guistyle2);
  5104. float num5 = GUI.HorizontalSlider(new Rect((float)this.GetPix(108), (float)this.GetPix(604), (float)this.GetPix(92), (float)this.GetPix(20)), kamiyure2, 0.2f, 1f);
  5105. if (kamiyure2 != num5)
  5106. {
  5107. kamiyure2 = num5;
  5108. base.Preferences["config"]["hair_damping"].Value = kamiyure2.ToString();
  5109. base.SaveConfig();
  5110. }
  5111. GUI.Label(new Rect((float)this.GetPix(10), (float)this.GetPix(590), (float)this.GetPix(100), (float)this.GetPix(25)), "復元率", guistyle2);
  5112. float num6 = GUI.HorizontalSlider(new Rect((float)this.GetPix(8), (float)this.GetPix(604), (float)this.GetPix(92), (float)this.GetPix(20)), kamiyure3, 0f, 2f);
  5113. if (kamiyure3 != num6)
  5114. {
  5115. kamiyure3 = num6;
  5116. base.Preferences["config"]["hair_elasticity"].Value = kamiyure3.ToString();
  5117. base.SaveConfig();
  5118. }
  5119. GUI.enabled = true;
  5120. }
  5121. if (GUI.Toggle(new Rect((float)this.GetPix(105), (float)this.GetPix(545), (float)this.GetPix(100), (float)this.GetPix(20)), isSkirtSetting, "スカート設定", guistyle6))
  5122. {
  5123. isHairSetting = false;
  5124. isSkirtSetting = true;
  5125. }
  5126. if (isSkirtSetting)
  5127. {
  5128. bool flag4 = GUI.Toggle(new Rect((float)this.GetPix(5), (float)this.GetPix(566), (float)this.GetPix(40), (float)this.GetPix(20)), isSkirtyure, "有効", guistyle6);
  5129. if (isSkirtyure != flag4)
  5130. {
  5131. isSkirtyure = flag4;
  5132. if (isSkirtyure)
  5133. {
  5134. base.Preferences["config"]["skirt_setting"].Value = "true";
  5135. base.Preferences["config"]["skirt_radius"].Value = skirtyure4.ToString();
  5136. base.Preferences["config"]["skirt_elasticity"].Value = skirtyure3.ToString();
  5137. base.Preferences["config"]["skirt_damping"].Value = skirtyure2.ToString();
  5138. base.SaveConfig();
  5139. }
  5140. else
  5141. {
  5142. base.Preferences["config"]["skirt_setting"].Value = "false";
  5143. base.SaveConfig();
  5144. for (int j = 0; j < maidCnt; j++)
  5145. {
  5146. for (int k = 0; k < maidArray[j].body0.goSlot.Count; k++)
  5147. {
  5148. if (maidArray[j].body0.goSlot[k].obj != null)
  5149. {
  5150. DynamicSkirtBone fieldValue = MultipleMaids.GetFieldValue<BoneHair3, DynamicSkirtBone>(maidArray[j].body0.goSlot[k].bonehair3, "m_SkirtBone");
  5151. if (fieldValue != null)
  5152. {
  5153. fieldValue.m_fPanierForce = 0.05f;
  5154. fieldValue.m_fPanierForceDistanceThreshold = 0.1f;
  5155. fieldValue.m_fRegDefaultRadius = 0.1f;
  5156. }
  5157. }
  5158. }
  5159. }
  5160. }
  5161. }
  5162. if (!isSkirtyure)
  5163. {
  5164. GUI.enabled = false;
  5165. }
  5166. GUI.Label(new Rect((float)this.GetPix(108), (float)this.GetPix(565), (float)this.GetPix(100), (float)this.GetPix(25)), "足側カプセル半径", guistyle2);
  5167. float num4 = GUI.HorizontalSlider(new Rect((float)this.GetPix(108), (float)this.GetPix(579), (float)this.GetPix(92), (float)this.GetPix(20)), skirtyure4, 0f, 0.2f);
  5168. if (skirtyure4 != num4)
  5169. {
  5170. skirtyure4 = num4;
  5171. base.Preferences["config"]["skirt_radius"].Value = skirtyure4.ToString();
  5172. base.SaveConfig();
  5173. }
  5174. GUI.Label(new Rect((float)this.GetPix(108), (float)this.GetPix(590), (float)this.GetPix(100), (float)this.GetPix(25)), "足との距離パニエ力", guistyle2);
  5175. float num5 = GUI.HorizontalSlider(new Rect((float)this.GetPix(108), (float)this.GetPix(604), (float)this.GetPix(92), (float)this.GetPix(20)), skirtyure2, 0f, 0.2f);
  5176. if (skirtyure2 != num5)
  5177. {
  5178. skirtyure2 = num5;
  5179. base.Preferences["config"]["skirt_damping"].Value = skirtyure2.ToString();
  5180. base.SaveConfig();
  5181. }
  5182. GUI.Label(new Rect((float)this.GetPix(10), (float)this.GetPix(590), (float)this.GetPix(100), (float)this.GetPix(25)), "パニエ力", guistyle2);
  5183. float num6 = GUI.HorizontalSlider(new Rect((float)this.GetPix(8), (float)this.GetPix(604), (float)this.GetPix(92), (float)this.GetPix(20)), skirtyure3, 0f, 0.1f);
  5184. if (skirtyure3 != num6)
  5185. {
  5186. skirtyure3 = num6;
  5187. base.Preferences["config"]["skirt_elasticity"].Value = skirtyure3.ToString();
  5188. base.SaveConfig();
  5189. }
  5190. GUI.enabled = true;
  5191. }
  5192. GUI.enabled = true;
  5193. GUI.DrawTexture(new Rect((float)this.GetPix(5), (float)this.GetPix(389), (float)this.GetPix(195), 2f), line1);
  5194. GUI.DrawTexture(new Rect((float)this.GetPix(5), (float)this.GetPix(389), (float)this.GetPix(195), 1f), line2);
  5195. if (doguCombo.isClickedComboButton || parCombo.isClickedComboButton || bgCombo.isClickedComboButton || bgmCombo.isClickedComboButton)
  5196. {
  5197. GUI.enabled = false;
  5198. }
  5199. GUI.DrawTexture(new Rect((float)this.GetPix(5), (float)this.GetPix(176), (float)this.GetPix(195), 2f), line1);
  5200. GUI.DrawTexture(new Rect((float)this.GetPix(5), (float)this.GetPix(176), (float)this.GetPix(195), 1f), line2);
  5201. GUI.Label(new Rect((float)this.GetPix(8), (float)this.GetPix(187), (float)this.GetPix(100), (float)this.GetPix(25)), "照明", guistyle2);
  5202. listStyle3.padding.top = this.GetPix(3);
  5203. listStyle3.padding.bottom = this.GetPix(2);
  5204. listStyle3.fontSize = this.GetPix(13);
  5205. int num7 = lightCombo.List(new Rect((float)this.GetPix(34), (float)this.GetPix(185), (float)this.GetPix(78), (float)this.GetPix(23)), lightComboList[selectLightIndex].text, lightComboList, guistyle4, "box", listStyle3);
  5206. if (num7 != selectLightIndex)
  5207. {
  5208. selectLightIndex = num7;
  5209. isIdx1 = false;
  5210. isIdx2 = false;
  5211. isIdx3 = false;
  5212. isIdx4 = false;
  5213. }
  5214. if (GUI.Button(new Rect((float)this.GetPix(115), (float)this.GetPix(185), (float)this.GetPix(35), (float)this.GetPix(23)), "追加", guistyle3))
  5215. {
  5216. GameObject gameObject = new GameObject("Light");
  5217. gameObject.AddComponent<Light>();
  5218. lightList.Add(gameObject);
  5219. lightColorR.Add(1f);
  5220. lightColorG.Add(1f);
  5221. lightColorB.Add(1f);
  5222. lightIndex.Add(0);
  5223. lightX.Add(40f);
  5224. lightY.Add(180f);
  5225. lightAkarusa.Add(0.95f);
  5226. lightKage.Add(0.098f);
  5227. lightRange.Add(50f);
  5228. gameObject.transform.position = GameMain.Instance.MainLight.transform.position;
  5229. selectLightIndex = lightList.Count - 1;
  5230. lightComboList = new GUIContent[lightList.Count];
  5231. for (int i = 0; i < lightList.Count; i++)
  5232. {
  5233. if (i == 0)
  5234. {
  5235. lightComboList[i] = new GUIContent("メイン");
  5236. }
  5237. else
  5238. {
  5239. lightComboList[i] = new GUIContent("追加" + i);
  5240. }
  5241. }
  5242. lightCombo.selectedItemIndex = selectLightIndex;
  5243. gameObject.GetComponent<Light>().intensity = 0.95f;
  5244. gameObject.GetComponent<Light>().spotAngle = 50f;
  5245. gameObject.GetComponent<Light>().range = 10f;
  5246. gameObject.GetComponent<Light>().type = LightType.Directional;
  5247. gameObject.GetComponent<Light>().color = new Color(0.5f, 1f, 0f);
  5248. if (gLight[selectLightIndex] == null)
  5249. {
  5250. gLight[selectLightIndex] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  5251. Material material = new Material(Shader.Find("Transparent/Diffuse"));
  5252. material.color = new Color(0.5f, 0.5f, 1f, 0.8f);
  5253. gLight[selectLightIndex].GetComponent<Renderer>().material = material;
  5254. gLight[selectLightIndex].layer = 8;
  5255. gLight[selectLightIndex].GetComponent<Renderer>().enabled = false;
  5256. gLight[selectLightIndex].SetActive(false);
  5257. gLight[selectLightIndex].transform.position = gameObject.transform.position;
  5258. mLight[selectLightIndex] = gLight[selectLightIndex].AddComponent<MouseDrag6>();
  5259. mLight[selectLightIndex].obj = gLight[selectLightIndex];
  5260. mLight[selectLightIndex].maid = gameObject.gameObject;
  5261. mLight[selectLightIndex].angles = gameObject.gameObject.transform.eulerAngles;
  5262. gLight[selectLightIndex].transform.localScale = new Vector3(0.12f, 0.12f, 0.12f);
  5263. mLight[selectLightIndex].ido = 1;
  5264. mLight[selectLightIndex].isScale = false;
  5265. }
  5266. }
  5267. if (GUI.Button(new Rect((float)this.GetPix(153), (float)this.GetPix(185), (float)this.GetPix(23), (float)this.GetPix(23)), "R", guistyle3))
  5268. {
  5269. for (int i = 1; i < lightList.Count; i++)
  5270. {
  5271. UnityEngine.Object.Destroy(lightList[i]);
  5272. }
  5273. lightIndex = new List<int>();
  5274. lightIndex.Add(0);
  5275. lightColorR = new List<float>();
  5276. lightColorR.Add(1f);
  5277. lightColorG = new List<float>();
  5278. lightColorG.Add(1f);
  5279. lightColorB = new List<float>();
  5280. lightColorB.Add(1f);
  5281. lightX = new List<float>();
  5282. lightX.Add(40f);
  5283. lightY = new List<float>();
  5284. lightY.Add(180f);
  5285. lightAkarusa = new List<float>();
  5286. lightAkarusa.Add(0.95f);
  5287. lightKage = new List<float>();
  5288. lightKage.Add(0.098f);
  5289. lightRange = new List<float>();
  5290. lightRange.Add(50f);
  5291. lightCombo.selectedItemIndex = 0;
  5292. lightList = new List<GameObject>();
  5293. lightList.Add(GameMain.Instance.MainLight.gameObject);
  5294. lightComboList = new GUIContent[lightList.Count];
  5295. for (int i = 0; i < lightList.Count; i++)
  5296. {
  5297. if (i == 0)
  5298. {
  5299. lightComboList[i] = new GUIContent("メイン");
  5300. }
  5301. else
  5302. {
  5303. lightComboList[i] = new GUIContent("追加" + i);
  5304. }
  5305. }
  5306. selectLightIndex = 0;
  5307. GameMain.Instance.MainLight.Reset();
  5308. GameMain.Instance.MainLight.SetIntensity(0.95f);
  5309. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle = 50f;
  5310. GameMain.Instance.MainLight.GetComponent<Light>().range = 10f;
  5311. GameMain.Instance.MainLight.gameObject.transform.position = new Vector3(0f, 2f, 0f);
  5312. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  5313. bgObject.SetActive(true);
  5314. mainCamera.GetComponent<Camera>().backgroundColor = new Color(0f, 0f, 0f);
  5315. isIdx1 = false;
  5316. isIdx2 = false;
  5317. isIdx3 = false;
  5318. isIdx4 = false;
  5319. }
  5320. GUI.enabled = true;
  5321. if (doguCombo.isClickedComboButton || bgCombo.isClickedComboButton || bgmCombo.isClickedComboButton)
  5322. {
  5323. GUI.enabled = false;
  5324. }
  5325. listStyle3.padding.top = this.GetPix(0);
  5326. listStyle3.padding.bottom = this.GetPix(0);
  5327. listStyle3.fontSize = this.GetPix(12);
  5328. GUI.Label(new Rect((float)this.GetPix(8), (float)this.GetPix(116), (float)this.GetPix(150), (float)this.GetPix(25)), "大道具2", guistyle2);
  5329. parIndex = parCombo.List(new Rect((float)this.GetPix(51), (float)this.GetPix(113), (float)this.GetPix(100), (float)this.GetPix(23)), parComboList[parIndex].text, parComboList, guistyle4, "box", listStyle3);
  5330. if (GUI.Button(new Rect((float)this.GetPix(156), (float)this.GetPix(113), (float)this.GetPix(38), (float)this.GetPix(23)), "追加", guistyle3))
  5331. {
  5332. GameObject gameObject2 = null;
  5333. bool flag5 = false;
  5334. bool flag6 = false;
  5335. if (parArray[parIndex].Contains("#"))
  5336. {
  5337. string[] array3 = parArray[parIndex].Split(new char[]
  5338. {
  5339. '#'
  5340. });
  5341. gameObject2 = GameMain.Instance.BgMgr.CreateAssetBundle(array3[1]);
  5342. if (gameObject2 != null)
  5343. {
  5344. gameObject2 = UnityEngine.Object.Instantiate<GameObject>(gameObject2);
  5345. MeshRenderer[] componentsInChildren = gameObject2.GetComponentsInChildren<MeshRenderer>();
  5346. for (int k = 0; k < componentsInChildren.Length; k++)
  5347. {
  5348. if (componentsInChildren[k] != null)
  5349. {
  5350. componentsInChildren[k].shadowCastingMode = ShadowCastingMode.Off;
  5351. }
  5352. }
  5353. }
  5354. flag5 = true;
  5355. if (!parArray[parIndex].Contains("Odogu_"))
  5356. {
  5357. flag6 = true;
  5358. }
  5359. doguBObject.Add(gameObject2);
  5360. }
  5361. else if (!parArray[parIndex].StartsWith("mirror") && parArray[parIndex].IndexOf(":") < 0)
  5362. {
  5363. UnityEngine.Object @object = Resources.Load("Prefab/" + parArray[parIndex]);
  5364. gameObject2 = (UnityEngine.Object.Instantiate(@object) as GameObject);
  5365. doguBObject.Add(gameObject2);
  5366. }
  5367. else if (parArray[parIndex].StartsWith("mirror"))
  5368. {
  5369. Material material2 = new Material(Shader.Find("Mirror"));
  5370. GameObject gameObject3 = GameObject.CreatePrimitive(PrimitiveType.Plane);
  5371. gameObject3.GetComponent<Renderer>().material = material2;
  5372. gameObject3.AddComponent<MirrorReflection2>();
  5373. MirrorReflection2 component2 = gameObject3.GetComponent<MirrorReflection2>();
  5374. component2.m_TextureSize = 2048;
  5375. component2.m_ClipPlaneOffset = 0.07f;
  5376. gameObject3.GetComponent<Renderer>().enabled = true;
  5377. gameObject2 = gameObject3;
  5378. doguBObject.Add(gameObject2);
  5379. }
  5380. else
  5381. {
  5382. string[] array3 = parArray[parIndex].Split(new char[]
  5383. {
  5384. ':'
  5385. });
  5386. UnityEngine.Object @object = GameMain.Instance.BgMgr.CreateAssetBundle(array3[0]);
  5387. if (@object == null)
  5388. {
  5389. @object = Resources.Load("BG/" + array3[0]);
  5390. }
  5391. GameObject gameObject4 = UnityEngine.Object.Instantiate(@object) as GameObject;
  5392. int num8 = 0;
  5393. int num9 = 0;
  5394. int.TryParse(array3[1], out num9);
  5395. foreach (object obj in gameObject4.transform)
  5396. {
  5397. Transform transform = (Transform)obj;
  5398. if (num9 == num8)
  5399. {
  5400. gameObject2 = transform.gameObject;
  5401. break;
  5402. }
  5403. num8++;
  5404. }
  5405. doguBObject.Add(gameObject2);
  5406. gameObject2.transform.parent = null;
  5407. UnityEngine.Object.Destroy(gameObject4);
  5408. gameObject4.SetActive(false);
  5409. }
  5410. gameObject2.name = parArray[parIndex];
  5411. Vector3 zero = Vector3.zero;
  5412. Vector3 zero2 = Vector3.zero;
  5413. switch (parIndex)
  5414. {
  5415. case 0:
  5416. zero.z = -0.6f;
  5417. zero.y = 0.96f;
  5418. zero2.z = 180f;
  5419. zero2.x = -90f;
  5420. gameObject2.transform.localScale = new Vector3(0.2f, 0.4f, 0.2f);
  5421. break;
  5422. case 1:
  5423. zero.z = -0.6f;
  5424. zero.y = 0.96f;
  5425. zero2.z = 180f;
  5426. zero2.x = -90f;
  5427. gameObject2.transform.localScale = new Vector3(0.1f, 0.4f, 0.2f);
  5428. break;
  5429. case 2:
  5430. zero.z = -0.6f;
  5431. zero.y = 0.85f;
  5432. zero2.z = 180f;
  5433. zero2.x = -90f;
  5434. gameObject2.transform.localScale = new Vector3(0.03f, 0.18f, 0.124f);
  5435. break;
  5436. case 3:
  5437. case 4:
  5438. case 5:
  5439. case 6:
  5440. case 7:
  5441. case 8:
  5442. case 9:
  5443. case 10:
  5444. case 11:
  5445. case 12:
  5446. case 13:
  5447. case 14:
  5448. case 15:
  5449. case 16:
  5450. case 17:
  5451. zero.z = 0.5f;
  5452. zero2.x = -90f;
  5453. break;
  5454. }
  5455. if (flag5)
  5456. {
  5457. zero.z = 0.4f;
  5458. if (flag6)
  5459. {
  5460. zero2.x = -90f;
  5461. }
  5462. }
  5463. if (gameObject2.name == "Salon_Entrance:3" || gameObject2.name == "Salon_Entrance:4" || gameObject2.name == "Salon_Entrance:1" || gameObject2.name == "Salon_Entrance:2" || gameObject2.name == "Salon_Entrance:0" || gameObject2.name == "Shitsumu:23" || gameObject2.name == "Shitsumu_Night:23")
  5464. {
  5465. zero.z = 0.5f;
  5466. zero2.x = -90f;
  5467. }
  5468. if (gameObject2.name == "Pool:26")
  5469. {
  5470. zero.z = 0.5f;
  5471. zero2.x = -90f;
  5472. zero2.z = 90f;
  5473. zero.y = 0.15f;
  5474. }
  5475. if (gameObject2.name == "Particle/pstarY_act2")
  5476. {
  5477. zero2.y = 90f;
  5478. }
  5479. gameObject2.transform.localPosition = zero;
  5480. gameObject2.transform.localRotation = Quaternion.Euler(zero2);
  5481. doguCnt = doguBObject.Count - 1;
  5482. gDogu[doguCnt] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  5483. gDogu[doguCnt].GetComponent<Renderer>().material = m_material;
  5484. gDogu[doguCnt].layer = 8;
  5485. gDogu[doguCnt].GetComponent<Renderer>().enabled = false;
  5486. gDogu[doguCnt].SetActive(false);
  5487. gDogu[doguCnt].transform.position = gameObject2.transform.position;
  5488. mDogu[doguCnt] = gDogu[doguCnt].AddComponent<MouseDrag6>();
  5489. mDogu[doguCnt].obj = gDogu[doguCnt];
  5490. mDogu[doguCnt].maid = gameObject2;
  5491. mDogu[doguCnt].angles = gameObject2.transform.eulerAngles;
  5492. gDogu[doguCnt].transform.localScale = new Vector3(cubeSize, cubeSize, cubeSize);
  5493. mDogu[doguCnt].ido = 1;
  5494. mDogu[doguCnt].isScale = false;
  5495. if (gameObject2.name == "Particle/pLineY")
  5496. {
  5497. mDogu[doguCnt].count = 180;
  5498. gameObject2.transform.localScale = new Vector3(3f, 3f, 3f);
  5499. }
  5500. if (gameObject2.name == "Particle/pLineP02")
  5501. {
  5502. mDogu[doguCnt].count = 115;
  5503. gameObject2.transform.localScale = new Vector3(3f, 3f, 3f);
  5504. }
  5505. if (gameObject2.name == "Particle/pLine_act2")
  5506. {
  5507. mDogu[doguCnt].count = 90;
  5508. gameObject2.transform.localScale = new Vector3(3f, 3f, 3f);
  5509. }
  5510. if (gameObject2.name == "Particle/pHeart01")
  5511. {
  5512. mDogu[doguCnt].count = 77;
  5513. }
  5514. if (parIndex < 3)
  5515. {
  5516. mDogu[doguCnt].isScale = true;
  5517. mDogu[doguCnt].isScale2 = true;
  5518. mDogu[doguCnt].scale2 = gameObject2.transform.localScale;
  5519. if (parIndex == 0)
  5520. {
  5521. mDogu[doguCnt].scale = new Vector3(gameObject2.transform.localScale.x * 5f, gameObject2.transform.localScale.y * 5f, gameObject2.transform.localScale.z * 5f);
  5522. }
  5523. if (parIndex == 1)
  5524. {
  5525. mDogu[doguCnt].scale = new Vector3(gameObject2.transform.localScale.x * 10f, gameObject2.transform.localScale.y * 10f, gameObject2.transform.localScale.z * 10f);
  5526. }
  5527. if (parIndex == 2)
  5528. {
  5529. mDogu[doguCnt].scale = new Vector3(gameObject2.transform.localScale.x * 33f, gameObject2.transform.localScale.y * 33f, gameObject2.transform.localScale.z * 33f);
  5530. }
  5531. }
  5532. if (gameObject2.GetComponent<Collider>() != null)
  5533. {
  5534. gameObject2.GetComponent<Collider>().enabled = false;
  5535. }
  5536. }
  5537. GUI.enabled = true;
  5538. if (bgCombo.isClickedComboButton || bgmCombo.isClickedComboButton)
  5539. {
  5540. GUI.enabled = false;
  5541. }
  5542. GUI.Label(new Rect((float)this.GetPix(8), (float)this.GetPix(88), (float)this.GetPix(100), (float)this.GetPix(25)), "大道具1", guistyle2);
  5543. doguBIndex = doguCombo.List(new Rect((float)this.GetPix(51), (float)this.GetPix(85), (float)this.GetPix(100), (float)this.GetPix(23)), doguComboList[doguBIndex].text, doguComboList, guistyle4, "box", listStyle3);
  5544. if (GUI.Button(new Rect((float)this.GetPix(156), (float)this.GetPix(85), (float)this.GetPix(38), (float)this.GetPix(23)), "追加", guistyle3))
  5545. {
  5546. GameObject gameObject2 = null;
  5547. if (!doguBArray[doguBIndex].StartsWith("mirror"))
  5548. {
  5549. UnityEngine.Object @object;
  5550. if (doguBArray[doguBIndex].StartsWith("BG"))
  5551. {
  5552. string text2 = doguBArray[doguBIndex].Replace("BG", "");
  5553. @object = GameMain.Instance.BgMgr.CreateAssetBundle(text2);
  5554. if (@object == null)
  5555. {
  5556. @object = Resources.Load("BG/" + text2);
  5557. }
  5558. }
  5559. else
  5560. {
  5561. @object = Resources.Load("Prefab/" + doguBArray[doguBIndex]);
  5562. }
  5563. gameObject2 = (UnityEngine.Object.Instantiate(@object) as GameObject);
  5564. doguBObject.Add(gameObject2);
  5565. }
  5566. else
  5567. {
  5568. Material material2 = new Material(Shader.Find("Mirror"));
  5569. GameObject gameObject3 = GameObject.CreatePrimitive(PrimitiveType.Plane);
  5570. gameObject3.transform.localScale = new Vector3(0.3f, 1f, 0.3f);
  5571. gameObject3.GetComponent<Renderer>().material = material2;
  5572. gameObject3.AddComponent<MirrorReflection2>();
  5573. MirrorReflection2 component2 = gameObject3.GetComponent<MirrorReflection2>();
  5574. component2.m_TextureSize = 2048;
  5575. component2.m_ClipPlaneOffset = 0f;
  5576. gameObject3.GetComponent<Renderer>().enabled = true;
  5577. gameObject2 = gameObject3;
  5578. doguBObject.Add(gameObject2);
  5579. }
  5580. gameObject2.name = doguBArray[doguBIndex];
  5581. Vector3 zero = Vector3.zero;
  5582. Vector3 zero2 = Vector3.zero;
  5583. string text = gameObject2.name;
  5584. switch (text)
  5585. {
  5586. case "Odogu_XmasTreeMini_photo_ver":
  5587. zero.z = 0.6f;
  5588. gameObject2.transform.localScale = new Vector3(4.5f, 4.5f, 4.5f);
  5589. foreach (object obj2 in gameObject2.transform)
  5590. {
  5591. Transform transform2 = (Transform)obj2;
  5592. if (transform2.GetComponent<Collider>() != null)
  5593. {
  5594. transform2.GetComponent<Collider>().enabled = false;
  5595. }
  5596. }
  5597. goto IL_A0BF;
  5598. case "Odogu_KadomatsuMini_photo_ver":
  5599. zero.z = 0.6f;
  5600. gameObject2.transform.localScale = new Vector3(3.5f, 3.5f, 3.5f);
  5601. foreach (object obj3 in gameObject2.transform)
  5602. {
  5603. Transform transform2 = (Transform)obj3;
  5604. if (transform2.GetComponent<Collider>() != null)
  5605. {
  5606. transform2.GetComponent<Collider>().enabled = false;
  5607. }
  5608. }
  5609. goto IL_A0BF;
  5610. case "Odogu_ClassRoomDesk":
  5611. zero.z = 0.5f;
  5612. zero2.x = -90f;
  5613. goto IL_A0BF;
  5614. case "Odogu_SimpleTable":
  5615. zero.z = 0.5f;
  5616. zero2.x = -90f;
  5617. goto IL_A0BF;
  5618. case "Odogu_DildoBox":
  5619. zero.z = 0.5f;
  5620. zero2.x = -90f;
  5621. goto IL_A0BF;
  5622. case "PlayAreaOut":
  5623. zero.z = 0.5f;
  5624. zero.y = 0.2f;
  5625. goto IL_A0BF;
  5626. case "Odogu_Dresser_photo_ver":
  5627. GameObject.Find("Prim.00000000").GetComponent<Collider>().enabled = false;
  5628. GameObject.Find("Prim.00000001").GetComponent<Collider>().enabled = false;
  5629. GameObject.Find("Prim.00000002").GetComponent<Collider>().enabled = false;
  5630. GameObject.Find("Prim.00000004").GetComponent<Collider>().enabled = false;
  5631. goto IL_A0BF;
  5632. case "BGodogu_bbqgrill":
  5633. case "BGodogu_bucket":
  5634. case "BGodogu_coolerbox":
  5635. case "BGodogu_game_darts":
  5636. case "BGodogu_game_dartsboard":
  5637. case "BGodogu_nabe_huta":
  5638. case "BGodogu_nabe_water":
  5639. case "BGodogu_natumikan":
  5640. case "BGodogu_rb_chair":
  5641. case "BGodogu_rb_duck":
  5642. case "BGodogu_rb_obon":
  5643. case "BGodogu_rb_tokkuri":
  5644. case "BGodogu_saracorn":
  5645. case "BGodogu_saraimo":
  5646. case "BGodogu_saratomato":
  5647. case "BGodogu_sunanoshiro":
  5648. case "BGodogu_sunanoyama":
  5649. case "BGodogu_tsutsuhanabi":
  5650. case "BGodogu_ukiwa":
  5651. case "BGodogu_vf_crops_corn":
  5652. case "BGodogu_vf_crops_gekkabijin":
  5653. case "BGodogu_vf_crops_gekkabijinflower":
  5654. case "BGodogu_vf_crops_himawari":
  5655. case "BGodogu_vf_crops_natsumikan":
  5656. case "BGodogu_vf_crops_suika":
  5657. case "BGodogu_vf_crops_zakuro":
  5658. case "BGodogu_villa_table":
  5659. case "BGodogu_villa_tvrimocon":
  5660. case "BGodogu_villabr_sideboard":
  5661. case "BGOdogu_Game_Nei_USB":
  5662. case "BGOdogu_Game_Wanage":
  5663. case "BGOdogu_Game_Wa":
  5664. case "BGodogu_pafe":
  5665. case "BGodogu_furaidopoteto":
  5666. case "BGodogu_karaoketable":
  5667. case "BGodogu_omuriceh":
  5668. case "BGodogu_omuricekao1":
  5669. case "BGodogu_omuricekao2":
  5670. case "BGodogu_omuriceoppai":
  5671. case "BGodogu_kakigori":
  5672. case "BGodogu_pretzel_sara":
  5673. case "BGodogu_karaoke_box":
  5674. case "Odogu_StandMike":
  5675. case "Odogu_StandMikeBase":
  5676. case "Odogu_HeroineChair_muku":
  5677. case "Odogu_HeroineChair_mazime":
  5678. case "Odogu_HeroineChair_rindere":
  5679. case "Odogu_HeroineChair_tsumdere":
  5680. case "Odogu_HeroineChair_cooldere":
  5681. case "Odogu_HeroineChair_junshin":
  5682. case "Odogu_TabletPC":
  5683. case "Odogu_Styluspen_black":
  5684. case "Odogu_Styluspen_white":
  5685. case "Odogu_Styluspen_red":
  5686. case "Odogu_Styluspen_blue":
  5687. case "Odogu_Styluspen_yellow":
  5688. case "Odogu_Styluspen_green":
  5689. case "Odogu_Omurice1":
  5690. case "Odogu_Omurice3":
  5691. case "Odogu_OmuriceH":
  5692. case "Odogu_OmuriceKao1":
  5693. case "Odogu_OmuriceKao2":
  5694. case "Odogu_OmuriceOppai":
  5695. case "Odogu_AcquaPazza":
  5696. case "Odogu_Sandwich":
  5697. case "Odogu_vichyssoise":
  5698. case "Odogu_BirthdayCake":
  5699. case "Odogu_Shortcake":
  5700. case "Odogu_MontBlanc":
  5701. case "Odogu_Pafe":
  5702. case "Odogu_Smoothie_Red":
  5703. case "Odogu_Smoothie_Green":
  5704. case "Odogu_Cocktail_Red":
  5705. case "Odogu_Cocktail_Blue":
  5706. case "Odogu_Cocktail_Yellow":
  5707. case "Odogu_Coffiecup":
  5708. case "Odogu_WineBottle(cap_off)":
  5709. case "Odogu_WineBottle(cap_on)":
  5710. case "Odogu_Jyouro":
  5711. case "Odogu_Planter_Red":
  5712. case "Odogu_Planter_Lightblue":
  5713. case "Odogu_MariGold":
  5714. case "Odogu_CasinoChip_10":
  5715. case "Odogu_CasinoChip_100":
  5716. case "Odogu_CasinoChip_1000":
  5717. case "Odogu_CardShooter":
  5718. case "Odogu_CardsDeck":
  5719. case "Odogu_Card_s1":
  5720. case "Odogu_Card_s2":
  5721. case "Odogu_Card_s3":
  5722. case "Odogu_Card_s4":
  5723. case "Odogu_Card_s5":
  5724. case "Odogu_Card_s6":
  5725. case "Odogu_Card_s7":
  5726. case "Odogu_Card_s8":
  5727. case "Odogu_Card_s9":
  5728. case "Odogu_Card_s10":
  5729. case "Odogu_Card_s11":
  5730. case "Odogu_Card_s12":
  5731. case "Odogu_Card_s13":
  5732. case "Odogu_Card_h1":
  5733. case "Odogu_Card_h2":
  5734. case "Odogu_Card_h3":
  5735. case "Odogu_Card_h4":
  5736. case "Odogu_Card_h5":
  5737. case "Odogu_Card_h6":
  5738. case "Odogu_Card_h7":
  5739. case "Odogu_Card_h8":
  5740. case "Odogu_Card_h9":
  5741. case "Odogu_Card_h10":
  5742. case "Odogu_Card_h11":
  5743. case "Odogu_Card_h12":
  5744. case "Odogu_Card_h13":
  5745. case "Odogu_Card_d1":
  5746. case "Odogu_Card_d2":
  5747. case "Odogu_Card_d3":
  5748. case "Odogu_Card_d4":
  5749. case "Odogu_Card_d5":
  5750. case "Odogu_Card_d6":
  5751. case "Odogu_Card_d7":
  5752. case "Odogu_Card_d8":
  5753. case "Odogu_Card_d9":
  5754. case "Odogu_Card_d10":
  5755. case "Odogu_Card_d11":
  5756. case "Odogu_Card_d12":
  5757. case "Odogu_Card_d13":
  5758. case "Odogu_Card_c1":
  5759. case "Odogu_Card_c2":
  5760. case "Odogu_Card_c3":
  5761. case "Odogu_Card_c4":
  5762. case "Odogu_Card_c5":
  5763. case "Odogu_Card_c6":
  5764. case "Odogu_Card_c7":
  5765. case "Odogu_Card_c8":
  5766. case "Odogu_Card_c9":
  5767. case "Odogu_Card_c10":
  5768. case "Odogu_Card_c11":
  5769. case "Odogu_Card_c12":
  5770. case "Odogu_Card_c13":
  5771. case "Odogu_Card_joker":
  5772. zero.z = 0.5f;
  5773. zero2.x = -90f;
  5774. goto IL_A0BF;
  5775. }
  5776. zero.z = 0.5f;
  5777. if (gameObject2.name.StartsWith("Odogu_"))
  5778. {
  5779. foreach (object obj4 in gameObject2.transform)
  5780. {
  5781. Transform transform2 = (Transform)obj4;
  5782. if (transform2.GetComponent<Collider>() != null)
  5783. {
  5784. transform2.GetComponent<Collider>().enabled = false;
  5785. }
  5786. }
  5787. }
  5788. else if (gameObject2.GetComponent<Collider>() != null)
  5789. {
  5790. gameObject2.GetComponent<Collider>().enabled = false;
  5791. }
  5792. IL_A0BF:
  5793. gameObject2.transform.localPosition = zero;
  5794. gameObject2.transform.localRotation = Quaternion.Euler(zero2);
  5795. doguCnt = doguBObject.Count - 1;
  5796. gDogu[doguCnt] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  5797. gDogu[doguCnt].GetComponent<Renderer>().material = m_material;
  5798. gDogu[doguCnt].layer = 8;
  5799. gDogu[doguCnt].GetComponent<Renderer>().enabled = false;
  5800. gDogu[doguCnt].SetActive(false);
  5801. gDogu[doguCnt].transform.position = gameObject2.transform.position;
  5802. mDogu[doguCnt] = gDogu[doguCnt].AddComponent<MouseDrag6>();
  5803. mDogu[doguCnt].isScale = false;
  5804. mDogu[doguCnt].obj = gDogu[doguCnt];
  5805. mDogu[doguCnt].maid = gameObject2;
  5806. mDogu[doguCnt].angles = gameObject2.transform.eulerAngles;
  5807. gDogu[doguCnt].transform.localScale = new Vector3(cubeSize, cubeSize, cubeSize);
  5808. mDogu[doguCnt].ido = 1;
  5809. if (doguBIndex == 6 || doguBIndex == 7)
  5810. {
  5811. mDogu[doguCnt].isScale2 = true;
  5812. mDogu[doguCnt].scale2 = gameObject2.transform.localScale;
  5813. }
  5814. }
  5815. GUI.enabled = true;
  5816. if (bgmCombo.isClickedComboButton)
  5817. {
  5818. GUI.enabled = false;
  5819. }
  5820. listStyle3.padding.top = this.GetPix(1);
  5821. listStyle3.padding.bottom = this.GetPix(0);
  5822. listStyle3.fontSize = this.GetPix(12);
  5823. int num10 = bgCombo.List(new Rect((float)this.GetPix(31), (float)this.GetPix(53), (float)this.GetPix(95), (float)this.GetPix(23)), bgComboList[bgIndex].text, bgComboList, guistyle4, "box", listStyle3);
  5824. if (GUI.Button(new Rect((float)this.GetPix(5), (float)this.GetPix(53), (float)this.GetPix(23), (float)this.GetPix(23)), "<", guistyle3))
  5825. {
  5826. num10--;
  5827. if (num10 <= -1)
  5828. {
  5829. num10 = bgArray.Length - 1;
  5830. }
  5831. }
  5832. if (GUI.Button(new Rect((float)this.GetPix(129), (float)this.GetPix(53), (float)this.GetPix(23), (float)this.GetPix(23)), ">", guistyle3))
  5833. {
  5834. num10++;
  5835. if (num10 == bgArray.Length)
  5836. {
  5837. num10 = 0;
  5838. }
  5839. }
  5840. if (bgIndex != num10)
  5841. {
  5842. bgIndex = num10;
  5843. bg.localScale = new Vector3(1f, 1f, 1f);
  5844. if (bgArray[bgIndex].Length == 36)
  5845. {
  5846. GameMain.Instance.BgMgr.ChangeBgMyRoom(bgArray[bgIndex]);
  5847. }
  5848. else
  5849. {
  5850. GameMain.Instance.BgMgr.ChangeBg(bgArray[bgIndex]);
  5851. }
  5852. bgCombo.selectedItemIndex = bgIndex;
  5853. if (bgArray[bgIndex] == "karaokeroom")
  5854. {
  5855. bg.transform.position = bgObject.transform.position;
  5856. Vector3 zero = Vector3.zero;
  5857. Vector3 zero2 = Vector3.zero;
  5858. zero2.y = 90f;
  5859. zero.z = 4f;
  5860. zero.x = 1f;
  5861. bg.transform.localPosition = zero;
  5862. bg.transform.localRotation = Quaternion.Euler(zero2);
  5863. }
  5864. }
  5865. GUI.enabled = true;
  5866. int num11 = bgmCombo.List(new Rect((float)this.GetPix(31), (float)this.GetPix(25), (float)this.GetPix(95), (float)this.GetPix(23)), bgmComboList[bgmIndex].text, bgmComboList, guistyle4, "box", listStyle3);
  5867. if (GUI.Button(new Rect((float)this.GetPix(5), (float)this.GetPix(25), (float)this.GetPix(23), (float)this.GetPix(23)), "<", guistyle3))
  5868. {
  5869. num11--;
  5870. if (num11 <= -1)
  5871. {
  5872. num11 = bgmArray.Length - 1;
  5873. }
  5874. }
  5875. if (GUI.Button(new Rect((float)this.GetPix(129), (float)this.GetPix(25), (float)this.GetPix(23), (float)this.GetPix(23)), ">", guistyle3))
  5876. {
  5877. num11++;
  5878. if (num11 == bgmArray.Length)
  5879. {
  5880. num11 = 0;
  5881. }
  5882. }
  5883. if (bgmIndex != num11)
  5884. {
  5885. bgmIndex = num11;
  5886. GameMain.Instance.SoundMgr.PlayBGM(bgmArray[bgmIndex] + ".ogg", 0f, true);
  5887. bgmCombo.selectedItemIndex = bgmIndex;
  5888. }
  5889. if (bgmCombo.isClickedComboButton)
  5890. {
  5891. GUI.enabled = false;
  5892. }
  5893. }
  5894. private void GuiFunc4(int winID)
  5895. {
  5896. GUIStyle style1 = (GUIStyle)"label";
  5897. style1.fontSize = this.GetPix(12);
  5898. style1.alignment = TextAnchor.UpperLeft;
  5899. GUIStyle style2 = (GUIStyle)"label";
  5900. style2.fontSize = this.GetPix(11);
  5901. style2.alignment = TextAnchor.UpperLeft;
  5902. GUIStyle style3 = (GUIStyle)"button";
  5903. style3.fontSize = this.GetPix(20);
  5904. GUIStyle buttonStyle1 = (GUIStyle)"button";
  5905. buttonStyle1.fontSize = this.GetPix(14);
  5906. buttonStyle1.alignment = TextAnchor.MiddleLeft;
  5907. GUIStyle buttonStyle2 = (GUIStyle)"button";
  5908. buttonStyle2.fontSize = this.GetPix(12);
  5909. buttonStyle2.alignment = TextAnchor.MiddleLeft;
  5910. GUIStyle style4 = new GUIStyle((GUIStyle)"toggle");
  5911. style4.fontSize = this.GetPix(13);
  5912. CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
  5913. Maid maid = maidArray[selectMaidIndex];
  5914. if (!poseInitFlg)
  5915. {
  5916. listStyle2.normal.textColor = Color.white;
  5917. listStyle2.normal.background = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.5f));
  5918. listStyle2.onHover.background = listStyle2.hover.background = new Texture2D(2, 2);
  5919. listStyle2.padding.left = listStyle2.padding.right = listStyle2.padding.top = listStyle2.padding.bottom = this.GetPix(0);
  5920. listStyle2.fontSize = this.GetPix(12);
  5921. listStyle3.normal.textColor = Color.white;
  5922. listStyle3.normal.background = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.5f));
  5923. listStyle3.onHover.background = listStyle3.hover.background = new Texture2D(2, 2);
  5924. listStyle3.padding.left = listStyle3.padding.right = listStyle3.padding.top = this.GetPix(1);
  5925. listStyle3.padding.bottom = this.GetPix(0);
  5926. listStyle3.fontSize = this.GetPix(12);
  5927. listStyle4.normal.textColor = Color.white;
  5928. listStyle4.normal.background = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.5f));
  5929. listStyle4.onHover.background = listStyle4.hover.background = new Texture2D(2, 2);
  5930. listStyle4.padding.left = listStyle4.padding.right = listStyle4.padding.top = 3;
  5931. listStyle4.padding.bottom = 3;
  5932. listStyle4.fontSize = this.GetPix(13);
  5933. poseCombo.selectedItemIndex = 0;
  5934. int group = (int)groupList[0];
  5935. poseComboList = new GUIContent[group];
  5936. for (int index = 0; index < group; ++index)
  5937. poseComboList[index] = new GUIContent((index + 1).ToString() + ":" + poseArray[index]);
  5938. poseGroupCombo.selectedItemIndex = 0;
  5939. poseGroupComboList = new GUIContent[poseGroupArray.Length + 1];
  5940. poseGroupComboList[0] = new GUIContent("1:通常");
  5941. for (int index = 0; index < poseGroupArray.Length; ++index)
  5942. {
  5943. if (poseGroupArray[index] == "maid_dressroom01")
  5944. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":立ち");
  5945. if (poseGroupArray[index] == "tennis_kamae_f")
  5946. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":中腰");
  5947. if (poseGroupArray[index] == "senakanagasi_f")
  5948. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":膝をつく");
  5949. if (poseGroupArray[index] == "work_hansei")
  5950. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":座り");
  5951. if (poseGroupArray[index] == "inu_taiki_f")
  5952. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":四つん這い");
  5953. if (poseGroupArray[index] == "syagami_pose_f")
  5954. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":床座り");
  5955. if (poseGroupArray[index] == "densyasuwari_taiki_f")
  5956. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":椅子座り");
  5957. if (poseGroupArray[index] == "work_kaiwa")
  5958. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":ソファー座り");
  5959. if (poseGroupArray[index] == "dance_cm3d2_001_f1,14.14")
  5960. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":ドキドキ☆Fallin' Love");
  5961. if (poseGroupArray[index] == "dance_cm3d_001_f1,39.25")
  5962. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":entrance to you");
  5963. if (poseGroupArray[index] == "dance_cm3d_002_end_f1,50.71")
  5964. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":scarlet leap");
  5965. if (poseGroupArray[index] == "dance_cm3d2_002_smt_f,7.76,")
  5966. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":stellar my tears");
  5967. if (poseGroupArray[index] == "dance_cm3d_003_sp2_f1,90.15")
  5968. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":rhythmix to you");
  5969. if (poseGroupArray[index] == "dance_cm3d2_003_hs_f1,0.01,")
  5970. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":happy!happy!スキャンダル!!");
  5971. if (poseGroupArray[index] == "dance_cm3d_004_kano_f1,124.93")
  5972. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":Can Know Two Close");
  5973. if (poseGroupArray[index] == "dance_cm3d2_004_sse_f1,0.01")
  5974. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":sweet sweet everyday");
  5975. if (poseGroupArray[index] == "turusi_sex_in_taiki_f")
  5976. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":拘束");
  5977. if (poseGroupArray[index] == "rosyutu_pose01_f")
  5978. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":エロ");
  5979. if (poseGroupArray[index] == "rosyutu_aruki_f_once_,1.37")
  5980. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":歩き");
  5981. if (poseGroupArray[index] == "stand_desk1")
  5982. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":その他");
  5983. if (poseGroupArray[index] == poseArray5[0])
  5984. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":ダンスMC");
  5985. if (poseGroupArray[index] == poseArray6[0])
  5986. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":ダンス");
  5987. if (existPose && strS != "")
  5988. {
  5989. if (index == poseGroupArray.Length - 4)
  5990. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":通常2");
  5991. if (index == poseGroupArray.Length - 3)
  5992. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":エロ2");
  5993. if (index == poseGroupArray.Length - 2)
  5994. poseGroupComboList[index + 1] = new GUIContent("98:撮影モード");
  5995. if (index == poseGroupArray.Length - 1)
  5996. poseGroupComboList[index + 1] = new GUIContent("99:登録ポーズ");
  5997. }
  5998. else if (existPose && strS == "")
  5999. {
  6000. if (index == poseGroupArray.Length - 3)
  6001. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":通常2");
  6002. if (index == poseGroupArray.Length - 2)
  6003. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":エロ2");
  6004. if (index == poseGroupArray.Length - 1)
  6005. poseGroupComboList[index + 1] = new GUIContent("99:登録ポーズ");
  6006. }
  6007. else if (!existPose && strS != "")
  6008. {
  6009. if (index == poseGroupArray.Length - 3)
  6010. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":通常2");
  6011. if (index == poseGroupArray.Length - 2)
  6012. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":エロ2");
  6013. if (index == poseGroupArray.Length - 1)
  6014. poseGroupComboList[index + 1] = new GUIContent("98:撮影モード");
  6015. }
  6016. else
  6017. {
  6018. if (index == poseGroupArray.Length - 2)
  6019. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":通常2");
  6020. if (index == poseGroupArray.Length - 1)
  6021. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":エロ2");
  6022. }
  6023. }
  6024. poseInitFlg = true;
  6025. itemCombo.selectedItemIndex = 0;
  6026. int length = itemArray.Length;
  6027. itemComboList = new GUIContent[length - 1];
  6028. for (int index = 0; index < length; ++index)
  6029. {
  6030. if (index == 0)
  6031. {
  6032. itemComboList[index] = new GUIContent("アイテム無し");
  6033. }
  6034. else
  6035. {
  6036. switch (itemArray[index])
  6037. {
  6038. case "handitem,HandItemR_WineGlass_I_.menu":
  6039. itemComboList[index] = new GUIContent(index.ToString() + ":ワイングラス");
  6040. break;
  6041. case "handitem,HandItemR_WineBottle_I_.menu":
  6042. itemComboList[index] = new GUIContent(index.ToString() + ":ワインボトル");
  6043. break;
  6044. case "handitem,handitemr_racket_I_.menu":
  6045. itemComboList[index] = new GUIContent(index.ToString() + ":ラケット");
  6046. break;
  6047. case "handitem,HandItemR_Hataki_I_.menu":
  6048. itemComboList[index] = new GUIContent(index.ToString() + ":ハタキ");
  6049. break;
  6050. case "handitem,HandItemR_Mop_I_.menu":
  6051. itemComboList[index] = new GUIContent(index.ToString() + ":モップ");
  6052. break;
  6053. case "handitem,HandItemR_Houki_I_.menu":
  6054. itemComboList[index] = new GUIContent(index.ToString() + ":ほうき");
  6055. break;
  6056. case "handitem,HandItemR_Zoukin2_I_.menu":
  6057. itemComboList[index] = new GUIContent(index.ToString() + ":雑巾");
  6058. break;
  6059. case "handitem,HandItemR_Chu-B_Lip_I_.menu":
  6060. itemComboList[index] = new GUIContent(index.ToString() + ":Chu-B Lip");
  6061. break;
  6062. case "handitem,HandItemR_Mimikaki_I_.menu":
  6063. itemComboList[index] = new GUIContent(index.ToString() + ":耳かき");
  6064. break;
  6065. case "handitem,HandItemR_Pen_I_.menu":
  6066. itemComboList[index] = new GUIContent(index.ToString() + ":ペン");
  6067. break;
  6068. case "handitem,HandItemR_Otama_I_.menu":
  6069. itemComboList[index] = new GUIContent(index.ToString() + ":おたま");
  6070. break;
  6071. case "handitem,HandItemR_Houchou_I_.menu":
  6072. itemComboList[index] = new GUIContent(index.ToString() + ":包丁");
  6073. break;
  6074. case "handitem,HandItemR_Book_I_.menu":
  6075. itemComboList[index] = new GUIContent(index.ToString() + ":本");
  6076. break;
  6077. case "handitem,HandItemR_Puff_I_.menu":
  6078. itemComboList[index] = new GUIContent(index.ToString() + ":パフ");
  6079. break;
  6080. case "handitem,HandItemR_Rip_I_.menu":
  6081. itemComboList[index] = new GUIContent(index.ToString() + ":リップ");
  6082. break;
  6083. case "handitem,HandItemD_Shisyuu_Hari_I_.menu":
  6084. itemComboList[index] = new GUIContent(index.ToString() + ":刺繍");
  6085. break;
  6086. case "handitem,HandItemD_Sara_Sponge_I_.menu":
  6087. itemComboList[index] = new GUIContent(index.ToString() + ":皿・スポンジ");
  6088. break;
  6089. case "kousoku_upper,KousokuU_TekaseOne_I_.menu":
  6090. itemComboList[index] = new GUIContent(index.ToString() + ":手枷1");
  6091. break;
  6092. case "kousoku_upper,KousokuU_TekaseTwo_I_.menu":
  6093. itemComboList[index] = new GUIContent(index.ToString() + ":手枷2");
  6094. break;
  6095. case "kousoku_lower,KousokuL_AshikaseUp_I_.menu":
  6096. itemComboList[index] = new GUIContent(index.ToString() + ":足枷");
  6097. break;
  6098. case "handitem,HandItemR_Usuba_Houchou_I_.menu":
  6099. itemComboList[index] = new GUIContent(index.ToString() + "薄刃包丁");
  6100. break;
  6101. case "handitem,HandItemR_Chusyaki_I_.menu":
  6102. itemComboList[index] = new GUIContent(index.ToString() + "注射器");
  6103. break;
  6104. case "handitem,HandItemR_Nei_Heartful_I_.menu":
  6105. itemComboList[index] = new GUIContent(index.ToString() + "ハートフルねい人形");
  6106. break;
  6107. case "handitem,HandItemR_Shaker_I_.menu":
  6108. itemComboList[index] = new GUIContent(index.ToString() + "シェイカー");
  6109. break;
  6110. case "handitem,HandItemR_SmartPhone_I_.menu":
  6111. itemComboList[index] = new GUIContent(index.ToString() + "スマートフォン");
  6112. break;
  6113. case "kousoku_upper,KousokuU_Ushirode_I_.menu":
  6114. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":後ろ手拘束具");
  6115. break;
  6116. case "kousoku_upper,KousokuU_SMRoom_Haritsuke_I_.menu":
  6117. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":磔台・手枷足枷");
  6118. break;
  6119. case "kousoku_upper,KousokuU_SMRoom2_Haritsuke_I_.menu":
  6120. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":磔台・手枷足枷2");
  6121. break;
  6122. case "handitem,HandItemL_Dance_Hataki_I_.menu":
  6123. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":ダンスハタキ");
  6124. break;
  6125. case "handitem,HandItemL_Dance_Mop_I_.menu":
  6126. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":ダンスモップ");
  6127. break;
  6128. case "handitem,HandItemL_Dance_Zoukin_I_.menu":
  6129. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":ダンス雑巾");
  6130. break;
  6131. case "handitem,HandItemL_Kozara_I_.menu":
  6132. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":小皿");
  6133. break;
  6134. case "handitem,HandItemR_Teacup_I_.menu":
  6135. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":ティーカップ");
  6136. break;
  6137. case "handitem,HandItemL_Teasaucer_I_.menu":
  6138. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":ティーソーサー");
  6139. break;
  6140. case "handitem,HandItemR_Wholecake_I_.menu":
  6141. itemComboList[index - 1] = new GUIContent("ホールケーキ");
  6142. break;
  6143. case "handitem,HandItemR_Menu_I_.menu":
  6144. itemComboList[index - 1] = new GUIContent("メニュー表");
  6145. break;
  6146. case "handitem,HandItemR_Vibe_I_.menu":
  6147. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":バイブ");
  6148. break;
  6149. case "handitem,HandItemR_VibePink_I_.menu":
  6150. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":ピンクバイブ");
  6151. break;
  6152. case "handitem,HandItemR_VibeBig_I_.menu":
  6153. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":太バイブ");
  6154. break;
  6155. case "handitem,HandItemR_AnalVibe_I_.menu":
  6156. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":アナルバイブ");
  6157. break;
  6158. case "handitem,HandItemH_SoutouVibe_I_.menu":
  6159. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":前:双頭バイブ");
  6160. break;
  6161. case "accvag,accVag_Vibe_I_.menu":
  6162. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":前:バイブ");
  6163. break;
  6164. case "accvag,accVag_VibeBig_I_.menu":
  6165. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":前:太バイブ");
  6166. break;
  6167. case "accvag,accVag_VibePink_I_.menu":
  6168. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":前:ピンクバイブ");
  6169. break;
  6170. case "accanl,accAnl_AnalVibe_I_.menu":
  6171. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":後:アナルバイブ");
  6172. break;
  6173. case "accanl,accAnl_Photo_NomalVibe_I_.menu":
  6174. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":後:バイブ");
  6175. break;
  6176. case "accanl,accAnl_Photo_VibeBig_I_.menu":
  6177. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":後:太バイブ");
  6178. break;
  6179. case "accanl,accAnl_Photo_VibePink_I_.menu":
  6180. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":後:ピンクバイブ");
  6181. break;
  6182. case "handitem,HandItemL_Etoile_Saucer_I_.menu":
  6183. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + "ティーソーサー");
  6184. break;
  6185. case "handitem,HandItemR_Etoile_Teacup_I_.menu":
  6186. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + "ティーカップ");
  6187. break;
  6188. case "handitem,HandItemL_Katuramuki_Daikon_I_.menu":
  6189. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + "桂むき大根");
  6190. break;
  6191. case "handitem,HandItemL_Karte_I_.menu":
  6192. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + "カルテ");
  6193. break;
  6194. case "handitem,HandItemL_Cracker_I_.menu":
  6195. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + "クラッカー");
  6196. break;
  6197. }
  6198. if (index == 12)
  6199. itemComboList[index] = new GUIContent(index.ToString() + ":手枷・足枷");
  6200. if (index == 13)
  6201. itemComboList[index] = new GUIContent(index.ToString() + ":手枷・足枷(下)");
  6202. if (index == 24)
  6203. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":カップ&ソーサー");
  6204. }
  6205. }
  6206. }
  6207. if (poseCombo.isClickedComboButton)
  6208. GUI.enabled = false;
  6209. if (poseGroupCombo.isClickedComboButton)
  6210. GUI.enabled = false;
  6211. if (sceneLevel == 3 || sceneLevel == 5 || isF6)
  6212. {
  6213. if (!isF6)
  6214. {
  6215. bool flag = true;
  6216. if (faceFlg || poseFlg || (sceneFlg || kankyoFlg) || kankyo2Flg)
  6217. flag = false;
  6218. if (GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(2), (float)this.GetPix(2), (float)this.GetPix(39), (float)this.GetPix(20)), flag, "配置", style4))
  6219. {
  6220. faceFlg = false;
  6221. poseFlg = false;
  6222. sceneFlg = false;
  6223. kankyoFlg = false;
  6224. kankyo2Flg = false;
  6225. bGui = true;
  6226. isGuiInit = true;
  6227. }
  6228. }
  6229. if (!yotogiFlg && GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(41), (float)this.GetPix(2), (float)this.GetPix(39), (float)this.GetPix(20)), poseFlg, "操作", style4))
  6230. {
  6231. poseFlg = true;
  6232. faceFlg = false;
  6233. sceneFlg = false;
  6234. kankyoFlg = false;
  6235. kankyo2Flg = false;
  6236. }
  6237. if (GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(80), (float)this.GetPix(2), (float)this.GetPix(39), (float)this.GetPix(20)), faceFlg, "表情", style4))
  6238. {
  6239. faceFlg = true;
  6240. poseFlg = false;
  6241. sceneFlg = false;
  6242. kankyoFlg = false;
  6243. kankyo2Flg = false;
  6244. if (!faceFlg2)
  6245. {
  6246. isFaceInit = true;
  6247. faceFlg2 = true;
  6248. maidArray[selectMaidIndex].boMabataki = false;
  6249. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  6250. }
  6251. isFaceInit = true;
  6252. }
  6253. if (GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(119), (float)this.GetPix(2), (float)this.GetPix(39), (float)this.GetPix(20)), kankyoFlg, "環境", style4))
  6254. {
  6255. poseFlg = false;
  6256. faceFlg = false;
  6257. sceneFlg = false;
  6258. kankyoFlg = true;
  6259. kankyo2Flg = false;
  6260. }
  6261. if (!(bool)((Object)line1))
  6262. {
  6263. line1 = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.3f));
  6264. line2 = this.MakeTex(2, 2, new Color(0.7f, 0.7f, 0.7f, 0.6f));
  6265. }
  6266. GUI.DrawTexture(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(20), (float)this.GetPix(160), 2f), (Texture)line1);
  6267. GUI.DrawTexture(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(20), (float)this.GetPix(160), 1f), (Texture)line2);
  6268. style1.fontSize = this.GetPix(13);
  6269. style1.alignment = TextAnchor.MiddleCenter;
  6270. GUI.Label(new UnityEngine.Rect((float)this.GetPix(125), (float)this.GetPix(25), (float)this.GetPix(40), (float)this.GetPix(25)), string.Concat((object)(selectMaidIndex + 1)), style1);
  6271. style1.fontSize = this.GetPix(11);
  6272. style1.alignment = TextAnchor.UpperLeft;
  6273. }
  6274. if (sceneLevel > 0)
  6275. {
  6276. int selectMaidIndex = this.selectMaidIndex;
  6277. if (sceneLevel == 3 || sceneLevel == 5 && (isF7 || maidCnt > 1))
  6278. {
  6279. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(53), (float)this.GetPix(23), (float)this.GetPix(32)), "<", style3))
  6280. {
  6281. --this.selectMaidIndex;
  6282. if (this.selectMaidIndex < 0)
  6283. this.selectMaidIndex = selectList.Count - 1;
  6284. isPoseInit = true;
  6285. poseFlg = true;
  6286. copyIndex = 0;
  6287. poseCombo.selectedItemIndex = poseIndex[this.selectMaidIndex];
  6288. faceCombo.selectedItemIndex = faceIndex[this.selectMaidIndex];
  6289. }
  6290. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(135), (float)this.GetPix(53), (float)this.GetPix(23), (float)this.GetPix(32)), ">", style3))
  6291. {
  6292. ++this.selectMaidIndex;
  6293. if (selectList.Count <= this.selectMaidIndex)
  6294. this.selectMaidIndex = 0;
  6295. isPoseInit = true;
  6296. poseFlg = true;
  6297. copyIndex = 0;
  6298. poseCombo.selectedItemIndex = poseIndex[this.selectMaidIndex];
  6299. faceCombo.selectedItemIndex = faceIndex[this.selectMaidIndex];
  6300. }
  6301. }
  6302. if ((bool)((Object)maidArray[this.selectMaidIndex].GetThumIcon()))
  6303. GUI.DrawTexture(new UnityEngine.Rect((float)this.GetPix(30), (float)this.GetPix(25), (float)this.GetPix(60), (float)this.GetPix(60)), (Texture)maidArray[this.selectMaidIndex].GetThumIcon());
  6304. GUI.Label(new UnityEngine.Rect((float)this.GetPix(90), (float)this.GetPix(50), (float)this.GetPix(140), (float)this.GetPix(210)), maidArray[this.selectMaidIndex].status.lastName + "\n" + maidArray[this.selectMaidIndex].status.firstName, style1);
  6305. }
  6306. if (!isF6)
  6307. {
  6308. if (isDanceStop)
  6309. {
  6310. isStop[selectMaidIndex] = true;
  6311. isDanceStop = false;
  6312. }
  6313. if (sceneLevel == 5 && maidCnt > 1)
  6314. {
  6315. bool flag = false;
  6316. if (selectMaidIndex == isEditNo)
  6317. flag = true;
  6318. isEdit[selectMaidIndex] = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(25), (float)this.GetPix(50), (float)this.GetPix(16)), flag, "Edit", style4);
  6319. if (isEdit[selectMaidIndex] && selectMaidIndex != isEditNo)
  6320. {
  6321. isEditNo = selectMaidIndex;
  6322. for (int index = 0; index < maidCnt; ++index)
  6323. {
  6324. if (index != isEditNo)
  6325. isEdit[index] = false;
  6326. }
  6327. SceneEdit component = GameObject.Find("__SceneEdit__").GetComponent<SceneEdit>();
  6328. CM3D2.MultipleMaids.Plugin.MultipleMaids.SetFieldValue<SceneEdit, Maid>(component, "m_maid", maidArray[selectMaidIndex]);
  6329. component.PartsTypeCamera(MPN.stkg);
  6330. editSelectMaid = maidArray[selectMaidIndex];
  6331. if (selectList[selectMaidIndex] != null && goSlot[(int)selectList[selectMaidIndex]] != null)
  6332. {
  6333. maidArray[selectMaidIndex].body0.goSlot = new List<TBodySkin>((IEnumerable<TBodySkin>)goSlot[(int)selectList[selectMaidIndex]]);
  6334. for (int index = 0; index < bodyHit[(int)selectList[selectMaidIndex]].Count; ++index)
  6335. maidArray[selectMaidIndex].body0.goSlot[index].bonehair.bodyhit = bodyHit[(int)selectList[selectMaidIndex]][index];
  6336. }
  6337. }
  6338. }
  6339. GUI.enabled = !poseGroupCombo.isClickedComboButton;
  6340. if (isLock[selectMaidIndex])
  6341. GUI.enabled = false;
  6342. int result;
  6343. Transform transform;
  6344. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(125), (float)this.GetPix(23), (float)this.GetPix(23)), "<", style3))
  6345. {
  6346. --poseIndex[selectMaidIndex];
  6347. if (poseGroupIndex > 0)
  6348. {
  6349. if ((int)groupList[poseGroupIndex - 1] > poseIndex[selectMaidIndex])
  6350. poseIndex[selectMaidIndex] = poseGroupIndex < groupList.Count ? (int)groupList[poseGroupIndex] - 1 : poseArray.Length - 1;
  6351. }
  6352. else if (poseIndex[selectMaidIndex] < 0)
  6353. poseIndex[selectMaidIndex] = (int)groupList[poseGroupIndex] - 1;
  6354. isPoseInit = true;
  6355. poseCombo.selectedItemIndex = poseGroupIndex <= 0 ? poseIndex[selectMaidIndex] : poseIndex[selectMaidIndex] - (int)groupList[poseGroupIndex - 1];
  6356. if (!isLock[selectMaidIndex] && ((bool)((Object)maid) && maid.Visible))
  6357. {
  6358. string[] strArray = poseArray[poseIndex[selectMaidIndex]].Split(',');
  6359. isStop[selectMaidIndex] = false;
  6360. poseCount[selectMaidIndex] = 20;
  6361. if (strArray[0].Contains("_momi") || strArray[0].Contains("paizuri_"))
  6362. {
  6363. maid.body0.MuneYureL(0.0f);
  6364. maid.body0.MuneYureR(0.0f);
  6365. }
  6366. else
  6367. {
  6368. maid.body0.MuneYureL(1f);
  6369. maid.body0.MuneYureR(1f);
  6370. }
  6371. if (strArray[0].Contains("MultipleMaidsPose"))
  6372. {
  6373. string path = strArray[0].Split('/')[1];
  6374. byte[] numArray = new byte[0];
  6375. try
  6376. {
  6377. using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
  6378. {
  6379. numArray = new byte[fileStream.Length];
  6380. fileStream.Read(numArray, 0, numArray.Length);
  6381. }
  6382. }
  6383. catch
  6384. {
  6385. }
  6386. if (0 < numArray.Length)
  6387. {
  6388. long hashCode = (long)Path.GetFileName(path).GetHashCode();
  6389. maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
  6390. Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
  6391. {
  6392. Maid.AutoTwist.ShoulderL,
  6393. Maid.AutoTwist.ShoulderR,
  6394. Maid.AutoTwist.WristL,
  6395. Maid.AutoTwist.WristR,
  6396. Maid.AutoTwist.ThighL,
  6397. Maid.AutoTwist.ThighR
  6398. };
  6399. foreach (Maid.AutoTwist f_eType in autoTwistArray)
  6400. maid.SetAutoTwist(f_eType, true);
  6401. }
  6402. }
  6403. else if (strArray[0].StartsWith("p") && int.TryParse(strArray[0].Substring(1), out result))
  6404. loadPose[selectMaidIndex] = strArray[0];
  6405. else if (!strArray[0].StartsWith("dance_"))
  6406. {
  6407. maidArray[selectMaidIndex].CrossFade(strArray[0] + ".anm", false, true, false, 0.0f, 1f);
  6408. }
  6409. else
  6410. {
  6411. if (!(bool)((Object)maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray[0] + ".anm")))
  6412. maid.body0.LoadAnime(strArray[0] + ".anm", GameUty.FileSystem, strArray[0] + ".anm", false, false);
  6413. maid.body0.m_Bones.GetComponent<Animation>().Play(strArray[0] + ".anm");
  6414. }
  6415. if (strArray.Length > 1)
  6416. {
  6417. maid.body0.m_Bones.GetComponent<Animation>()[strArray[0] + ".anm"].time = float.Parse(strArray[1]);
  6418. isDanceStop = true;
  6419. if (strArray.Length > 2)
  6420. {
  6421. transform = CMT.SearchObjName(maidArray[selectMaidIndex].body0.m_Bones.transform, "Bip01", true);
  6422. isPoseIti[selectMaidIndex] = true;
  6423. poseIti[selectMaidIndex] = maidArray[selectMaidIndex].transform.position;
  6424. maidArray[selectMaidIndex].transform.position = new Vector3(100f, 100f, 100f);
  6425. }
  6426. }
  6427. }
  6428. }
  6429. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(135), (float)this.GetPix(125), (float)this.GetPix(23), (float)this.GetPix(23)), ">", style3))
  6430. {
  6431. ++poseIndex[selectMaidIndex];
  6432. if (poseIndex[selectMaidIndex] > (int)groupList[groupList.Count - 1])
  6433. {
  6434. if (poseIndex[selectMaidIndex] >= poseArray.Length)
  6435. poseIndex[selectMaidIndex] = (int)groupList[poseGroupIndex - 1];
  6436. }
  6437. else if (poseIndex[selectMaidIndex] >= (int)groupList[poseGroupIndex])
  6438. poseIndex[selectMaidIndex] = poseGroupIndex <= 0 ? 0 : (int)groupList[poseGroupIndex - 1];
  6439. isPoseInit = true;
  6440. poseCombo.selectedItemIndex = poseGroupIndex <= 0 ? poseIndex[selectMaidIndex] : poseIndex[selectMaidIndex] - (int)groupList[poseGroupIndex - 1];
  6441. if (!isLock[selectMaidIndex] && ((bool)((Object)maid) && maid.Visible))
  6442. {
  6443. string[] strArray = poseArray[poseIndex[selectMaidIndex]].Split(',');
  6444. isStop[selectMaidIndex] = false;
  6445. poseCount[selectMaidIndex] = 20;
  6446. if (strArray[0].Contains("_momi") || strArray[0].Contains("paizuri_"))
  6447. {
  6448. maid.body0.MuneYureL(0.0f);
  6449. maid.body0.MuneYureR(0.0f);
  6450. }
  6451. else
  6452. {
  6453. maid.body0.MuneYureL(1f);
  6454. maid.body0.MuneYureR(1f);
  6455. }
  6456. if (strArray[0].Contains("MultipleMaidsPose"))
  6457. {
  6458. string path = strArray[0].Split('/')[1];
  6459. byte[] numArray = new byte[0];
  6460. try
  6461. {
  6462. using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
  6463. {
  6464. numArray = new byte[fileStream.Length];
  6465. fileStream.Read(numArray, 0, numArray.Length);
  6466. }
  6467. }
  6468. catch
  6469. {
  6470. }
  6471. if (0 < numArray.Length)
  6472. {
  6473. long hashCode = (long)Path.GetFileName(path).GetHashCode();
  6474. maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
  6475. Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
  6476. {
  6477. Maid.AutoTwist.ShoulderL,
  6478. Maid.AutoTwist.ShoulderR,
  6479. Maid.AutoTwist.WristL,
  6480. Maid.AutoTwist.WristR,
  6481. Maid.AutoTwist.ThighL,
  6482. Maid.AutoTwist.ThighR
  6483. };
  6484. foreach (Maid.AutoTwist f_eType in autoTwistArray)
  6485. maid.SetAutoTwist(f_eType, true);
  6486. }
  6487. }
  6488. else if (strArray[0].StartsWith("p") && int.TryParse(strArray[0].Substring(1), out result))
  6489. loadPose[selectMaidIndex] = strArray[0];
  6490. else if (!strArray[0].StartsWith("dance_"))
  6491. {
  6492. maidArray[selectMaidIndex].CrossFade(strArray[0] + ".anm", false, true, false, 0.0f, 1f);
  6493. }
  6494. else
  6495. {
  6496. if (!(bool)((Object)maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray[0] + ".anm")))
  6497. maid.body0.LoadAnime(strArray[0] + ".anm", GameUty.FileSystem, strArray[0] + ".anm", false, false);
  6498. maid.body0.m_Bones.GetComponent<Animation>().Play(strArray[0] + ".anm");
  6499. }
  6500. if (strArray.Length > 1)
  6501. {
  6502. maid.body0.m_Bones.GetComponent<Animation>()[strArray[0] + ".anm"].time = float.Parse(strArray[1]);
  6503. isDanceStop = true;
  6504. if (strArray.Length > 2)
  6505. {
  6506. transform = CMT.SearchObjName(maidArray[selectMaidIndex].body0.m_Bones.transform, "Bip01", true);
  6507. isPoseIti[selectMaidIndex] = true;
  6508. poseIti[selectMaidIndex] = maidArray[selectMaidIndex].transform.position;
  6509. maidArray[selectMaidIndex].transform.position = new Vector3(100f, 100f, 100f);
  6510. }
  6511. }
  6512. }
  6513. }
  6514. GUI.enabled = true;
  6515. int index1 = -1;
  6516. for (int index2 = 0; index2 < groupList.Count; ++index2)
  6517. {
  6518. if (poseIndex[selectMaidIndex] < (int)groupList[index2])
  6519. {
  6520. index1 = index2;
  6521. break;
  6522. }
  6523. }
  6524. int length1 = (int)groupList[0];
  6525. int num1 = 0;
  6526. if (index1 > 0)
  6527. {
  6528. length1 = (int)groupList[index1] - (int)groupList[index1 - 1];
  6529. num1 = (int)groupList[index1 - 1];
  6530. }
  6531. if (index1 < 0)
  6532. {
  6533. index1 = groupList.Count;
  6534. length1 = poseArray.Length - (int)groupList[index1 - 1];
  6535. num1 = (int)groupList[index1 - 1];
  6536. }
  6537. if (poseGroupCombo.selectedItemIndex != index1)
  6538. {
  6539. poseComboList = new GUIContent[length1];
  6540. int index2 = 0;
  6541. for (int index3 = num1; index3 < num1 + length1; ++index3)
  6542. {
  6543. bool flag = false;
  6544. foreach (IniKey key in this.Preferences["pose"].Keys)
  6545. {
  6546. if (poseArray[index3] == key.Key)
  6547. {
  6548. IniKey iniKey = this.Preferences["pose"][key.Key];
  6549. if (iniKey.Value != null && iniKey.Value.ToString() != "" && iniKey.Value.ToString() != "del")
  6550. {
  6551. poseComboList[index2] = new GUIContent((index2 + 1).ToString() + ":" + iniKey.Value.Split('_')[0] + "                    " + key.Key);
  6552. flag = true;
  6553. }
  6554. }
  6555. }
  6556. if (!flag)
  6557. poseComboList[index2] = new GUIContent((index2 + 1).ToString() + ":" + poseArray[index3]);
  6558. ++index2;
  6559. }
  6560. poseGroupCombo.selectedItemIndex = index1;
  6561. poseGroupIndex = index1;
  6562. poseCombo.selectedItemIndex = 0;
  6563. }
  6564. GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton;
  6565. isLook[selectMaidIndex] = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(155), (float)this.GetPix(65), (float)this.GetPix(16)), isLook[selectMaidIndex], "顔の向き", style4);
  6566. isPoseEdit = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(86), (float)this.GetPix(155), (float)this.GetPix(90), (float)this.GetPix(16)), isPoseEdit, "ポーズ登録", style4);
  6567. if (isPoseEdit)
  6568. {
  6569. inName3 = GUI.TextField(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(180), (float)this.GetPix(100), (float)this.GetPix(20)), inName3);
  6570. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(107), (float)this.GetPix(180), (float)this.GetPix(35), (float)this.GetPix(20)), "追加", style3))
  6571. {
  6572. isSavePose = true;
  6573. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  6574. existPose = true;
  6575. GUI.FocusControl("");
  6576. }
  6577. if (poseGroupComboList[poseGroupCombo.selectedItemIndex].text != "99:登録ポーズ")
  6578. GUI.enabled = false;
  6579. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(144), (float)this.GetPix(180), (float)this.GetPix(24), (float)this.GetPix(20)), "削", style3))
  6580. {
  6581. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  6582. List<string> stringList1 = new List<string>();
  6583. stringList1.AddRange((IEnumerable<string>)poseArray);
  6584. if (poseComboList[poseCombo.selectedItemIndex].text.Contains("MultipleMaidsPose"))
  6585. {
  6586. string pose = poseArray[poseIndex[selectMaidIndex]];
  6587. stringList1.Remove(pose);
  6588. string path = poseArray[poseIndex[selectMaidIndex]].Split('/')[1].Replace("                    ", "");
  6589. if (File.Exists(path))
  6590. File.Delete(path);
  6591. }
  6592. else
  6593. {
  6594. string[] strArray = poseComboList[poseCombo.selectedItemIndex].text.Split('p');
  6595. string str = strArray[strArray.Length - 1];
  6596. IniKey iniKey = this.Preferences["pose"]["p" + str];
  6597. if (iniKey.Value != "" || iniKey.Value != "del")
  6598. {
  6599. this.Preferences["pose"]["p" + str].Value = "del";
  6600. this.SaveConfig();
  6601. }
  6602. stringList1.Remove("p" + str);
  6603. }
  6604. GUI.FocusControl("");
  6605. poseArray = stringList1.ToArray();
  6606. int index2 = -1;
  6607. for (int index3 = 0; index3 < groupList.Count; ++index3)
  6608. {
  6609. if (poseIndex[selectMaidIndex] < (int)groupList[index3])
  6610. {
  6611. index2 = index3;
  6612. break;
  6613. }
  6614. }
  6615. int length2 = (int)groupList[0];
  6616. int num2 = 0;
  6617. if (index2 > 0)
  6618. {
  6619. length2 = (int)groupList[index2] - (int)groupList[index2 - 1];
  6620. num2 = (int)groupList[index2 - 1];
  6621. }
  6622. if (index2 < 0)
  6623. {
  6624. index2 = groupList.Count;
  6625. length2 = poseArray.Length - (int)groupList[index2 - 1];
  6626. num2 = (int)groupList[index2 - 1];
  6627. }
  6628. poseComboList = new GUIContent[length2];
  6629. int index4 = 0;
  6630. bool existEdit = false;
  6631. for (int index3 = num2; index3 < num2 + length2; ++index3)
  6632. {
  6633. bool flag = false;
  6634. foreach (IniKey key in this.Preferences["pose"].Keys)
  6635. {
  6636. if (poseArray[index3] == key.Key)
  6637. {
  6638. IniKey iniKey = this.Preferences["pose"][key.Key];
  6639. if (iniKey.Value != null && iniKey.Value.ToString() != "" && iniKey.Value.ToString() != "del")
  6640. {
  6641. poseComboList[index4] = new GUIContent((index4 + 1).ToString() + ":" + iniKey.Value.Split('_')[0] + "                    " + key.Key);
  6642. flag = true;
  6643. existEdit = true;
  6644. }
  6645. }
  6646. }
  6647. if (!flag)
  6648. poseComboList[index4] = new GUIContent((index4 + 1).ToString() + ":" + poseArray[index3]);
  6649. ++index4;
  6650. }
  6651. ((System.Action<string, List<string>>)((path, result_list) =>
  6652. {
  6653. string[] files = Directory.GetFiles(path);
  6654. countS = 0;
  6655. for (int index = 0; index < files.Length; ++index)
  6656. {
  6657. if (Path.GetExtension(files[index]) == ".anm")
  6658. {
  6659. existEdit = true;
  6660. break;
  6661. }
  6662. }
  6663. }))(Path.GetFullPath(".\\") + "Mod\\MultipleMaidsPose", new List<string>());
  6664. if (!existEdit)
  6665. {
  6666. poseIniStr = "";
  6667. List<string> stringList2 = new List<string>(50 + poseGroupArray2.Length);
  6668. stringList2.AddRange((IEnumerable<string>)poseGroupArray2);
  6669. stringList2.AddRange((IEnumerable<string>)poseGroupArrayVP);
  6670. stringList2.AddRange((IEnumerable<string>)poseGroupArrayFB);
  6671. stringList2.AddRange((IEnumerable<string>)poseGroupArray3);
  6672. stringList2.Add(poseArray5[0]);
  6673. stringList2.Add(poseArray6[0]);
  6674. stringList2.Add(strList2[0]);
  6675. stringList2.Add(strListE2[0]);
  6676. existPose = false;
  6677. poseGroupArray = stringList2.ToArray();
  6678. groupList = new ArrayList();
  6679. for (int index3 = 0; index3 < poseArray.Length; ++index3)
  6680. {
  6681. for (int index5 = 0; index5 < poseGroupArray.Length; ++index5)
  6682. {
  6683. if (poseGroupArray[index5] == poseArray[index3])
  6684. {
  6685. groupList.Add((object)index3);
  6686. if (poseGroupArray[index5] == strList2[0])
  6687. sPoseCount = index3;
  6688. }
  6689. }
  6690. }
  6691. poseIndex[selectMaidIndex] = 0;
  6692. poseGroupComboList = new GUIContent[poseGroupArray.Length + 1];
  6693. poseGroupComboList[0] = new GUIContent("1:通常");
  6694. for (int index3 = 0; index3 < poseGroupArray.Length; ++index3)
  6695. {
  6696. if (poseGroupArray[index3] == "maid_dressroom01")
  6697. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":立ち");
  6698. if (poseGroupArray[index3] == "tennis_kamae_f")
  6699. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":中腰");
  6700. if (poseGroupArray[index3] == "senakanagasi_f")
  6701. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":膝をつく");
  6702. if (poseGroupArray[index3] == "work_hansei")
  6703. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":座り");
  6704. if (poseGroupArray[index3] == "inu_taiki_f")
  6705. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":四つん這い");
  6706. if (poseGroupArray[index3] == "syagami_pose_f")
  6707. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":床座り");
  6708. if (poseGroupArray[index3] == "densyasuwari_taiki_f")
  6709. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":椅子座り");
  6710. if (poseGroupArray[index3] == "work_kaiwa")
  6711. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":ソファー座り");
  6712. if (poseGroupArray[index3] == "dance_cm3d2_001_f1,14.14")
  6713. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":ドキドキ☆Fallin' Love");
  6714. if (poseGroupArray[index3] == "dance_cm3d_001_f1,39.25")
  6715. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":entrance to you");
  6716. if (poseGroupArray[index3] == "dance_cm3d_002_end_f1,50.71")
  6717. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":scarlet leap");
  6718. if (poseGroupArray[index3] == "dance_cm3d2_002_smt_f,7.76,")
  6719. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":stellar my tears");
  6720. if (poseGroupArray[index3] == "dance_cm3d_003_sp2_f1,90.15")
  6721. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":rhythmix to you");
  6722. if (poseGroupArray[index3] == "dance_cm3d2_003_hs_f1,0.01,")
  6723. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":happy!happy!スキャンダル!!");
  6724. if (poseGroupArray[index3] == "dance_cm3d_004_kano_f1,124.93")
  6725. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":Can Know Two Close");
  6726. if (poseGroupArray[index3] == "dance_cm3d2_004_sse_f1,0.01")
  6727. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":sweet sweet everyday");
  6728. if (poseGroupArray[index3] == "turusi_sex_in_taiki_f")
  6729. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":拘束");
  6730. if (poseGroupArray[index3] == "rosyutu_pose01_f")
  6731. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":エロ");
  6732. if (poseGroupArray[index3] == "rosyutu_aruki_f_once_,1.37")
  6733. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":歩き");
  6734. if (poseGroupArray[index3] == "stand_desk1")
  6735. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":その他");
  6736. if (poseGroupArray[index3] == poseArray5[0])
  6737. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":ダンスMC");
  6738. if (poseGroupArray[index3] == poseArray6[0])
  6739. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":ダンス");
  6740. if (index3 == poseGroupArray.Length - 2)
  6741. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":通常2");
  6742. if (index3 == poseGroupArray.Length - 1)
  6743. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":エロ2");
  6744. }
  6745. }
  6746. else
  6747. {
  6748. poseGroupCombo.selectedItemIndex = index2;
  6749. poseGroupIndex = index2;
  6750. poseCombo.selectedItemIndex = 0;
  6751. poseIndex[selectMaidIndex] = (int)groupList[groupList.Count - 1];
  6752. if (poseArray.Length <= poseIndex[selectMaidIndex])
  6753. --poseIndex[selectMaidIndex];
  6754. }
  6755. }
  6756. GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton;
  6757. }
  6758. else
  6759. {
  6760. if (!isLook[selectMaidIndex])
  6761. GUI.enabled = false;
  6762. GUI.Label(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(175), (float)this.GetPix(100), (float)this.GetPix(25)), "顔の向きX", style2);
  6763. lookX[selectMaidIndex] = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(191), (float)this.GetPix(70), (float)this.GetPix(20)), lookX[selectMaidIndex], -0.6f, 0.6f);
  6764. GUI.Label(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(175), (float)this.GetPix(100), (float)this.GetPix(25)), "顔の向きY", style2);
  6765. lookY[selectMaidIndex] = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(191), (float)this.GetPix(70), (float)this.GetPix(20)), lookY[selectMaidIndex], 0.5f, -0.55f);
  6766. GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton;
  6767. }
  6768. int index6 = poseGroupIndex <= 0 ? poseIndex[selectMaidIndex] : poseIndex[selectMaidIndex] - (int)groupList[poseGroupIndex - 1];
  6769. string[] strArray1;
  6770. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(215), (float)this.GetPix(23), (float)this.GetPix(23)), "<", style3))
  6771. {
  6772. --itemIndex[selectMaidIndex];
  6773. if (itemIndex[selectMaidIndex] <= -1)
  6774. itemIndex[selectMaidIndex] = itemArray.Length - 2;
  6775. strArray1 = new string[2];
  6776. string[] strArray2 = itemArray[itemIndex[selectMaidIndex]].Split(',');
  6777. if (itemIndex[selectMaidIndex] > 13)
  6778. strArray2 = itemArray[itemIndex[selectMaidIndex] + 1].Split(',');
  6779. maid.DelProp(MPN.handitem, true);
  6780. maid.DelProp(MPN.accvag, true);
  6781. maid.DelProp(MPN.accanl, true);
  6782. bool flag = false;
  6783. if (itemIndex[selectMaidIndex] == 12 || itemIndex[selectMaidIndex] == 13 || itemIndex[selectMaidIndex] == 23)
  6784. flag = true;
  6785. if (!flag)
  6786. {
  6787. maid.DelProp(MPN.kousoku_upper, true);
  6788. maid.DelProp(MPN.kousoku_lower, true);
  6789. }
  6790. if (strArray2[0] != "")
  6791. maid.SetProp(strArray2[0], strArray2[1], 0, true, false);
  6792. if (itemIndex[selectMaidIndex] == 12)
  6793. {
  6794. string[] strArray3 = itemArray[itemIndex[selectMaidIndex] - 1].Split(',');
  6795. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  6796. }
  6797. if (itemIndex[selectMaidIndex] == 13)
  6798. {
  6799. string[] strArray3 = itemArray[itemIndex[selectMaidIndex] + 1].Split(',');
  6800. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  6801. }
  6802. if (itemIndex[selectMaidIndex] == 23)
  6803. {
  6804. string[] strArray3 = itemArray[itemIndex[selectMaidIndex]].Split(',');
  6805. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  6806. cafeFlg[selectMaidIndex] = true;
  6807. }
  6808. maid.AllProcPropSeqStart();
  6809. itemCombo.selectedItemIndex = itemIndex[selectMaidIndex];
  6810. }
  6811. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(135), (float)this.GetPix(215), (float)this.GetPix(23), (float)this.GetPix(23)), ">", style3))
  6812. {
  6813. ++itemIndex[selectMaidIndex];
  6814. if (itemIndex[selectMaidIndex] >= itemArray.Length - 1)
  6815. itemIndex[selectMaidIndex] = 0;
  6816. strArray1 = new string[2];
  6817. string[] strArray2 = itemArray[itemIndex[selectMaidIndex]].Split(',');
  6818. if (itemIndex[selectMaidIndex] > 13)
  6819. strArray2 = itemArray[itemIndex[selectMaidIndex] + 1].Split(',');
  6820. maid.DelProp(MPN.handitem, true);
  6821. maid.DelProp(MPN.accvag, true);
  6822. maid.DelProp(MPN.accanl, true);
  6823. bool flag = false;
  6824. if (itemIndex[selectMaidIndex] == 12 || itemIndex[selectMaidIndex] == 13)
  6825. flag = true;
  6826. if (!flag)
  6827. {
  6828. maid.DelProp(MPN.kousoku_upper, true);
  6829. maid.DelProp(MPN.kousoku_lower, true);
  6830. }
  6831. if (strArray2[0] != "")
  6832. maid.SetProp(strArray2[0], strArray2[1], 0, true, false);
  6833. if (itemIndex[selectMaidIndex] == 12)
  6834. {
  6835. string[] strArray3 = itemArray[itemIndex[selectMaidIndex] - 1].Split(',');
  6836. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  6837. }
  6838. if (itemIndex[selectMaidIndex] == 13)
  6839. {
  6840. string[] strArray3 = itemArray[itemIndex[selectMaidIndex] + 1].Split(',');
  6841. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  6842. }
  6843. if (itemIndex[selectMaidIndex] == 23)
  6844. {
  6845. string[] strArray3 = itemArray[itemIndex[selectMaidIndex]].Split(',');
  6846. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  6847. cafeFlg[selectMaidIndex] = true;
  6848. }
  6849. maid.AllProcPropSeqStart();
  6850. itemCombo.selectedItemIndex = itemIndex[selectMaidIndex];
  6851. }
  6852. if (itemCombo.isClickedComboButton)
  6853. GUI.enabled = false;
  6854. isWear = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(248), (float)this.GetPix(70), (float)this.GetPix(20)), isWear, "トップス", style4);
  6855. isSkirt = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(90), (float)this.GetPix(248), (float)this.GetPix(70), (float)this.GetPix(20)), isSkirt, "ボトムス", style4);
  6856. isBra = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(273), (float)this.GetPix(80), (float)this.GetPix(20)), isBra, "ブラジャー", style4);
  6857. isPanz = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(90), (float)this.GetPix(273), (float)this.GetPix(60), (float)this.GetPix(20)), isPanz, "パンツ", style4);
  6858. isHeadset = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(298), (float)this.GetPix(70), (float)this.GetPix(20)), isHeadset, "ヘッド", style4);
  6859. isMegane = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(95), (float)this.GetPix(298), (float)this.GetPix(70), (float)this.GetPix(20)), isMegane, "メガネ", style4);
  6860. isAccUde = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(323), (float)this.GetPix(40), (float)this.GetPix(20)), isAccUde, "腕", style4);
  6861. isGlove = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(50), (float)this.GetPix(323), (float)this.GetPix(40), (float)this.GetPix(20)), isGlove, "手袋", style4);
  6862. isAccSenaka = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(95), (float)this.GetPix(323), (float)this.GetPix(40), (float)this.GetPix(20)), isAccSenaka, "背中", style4);
  6863. isStkg = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(348), (float)this.GetPix(40), (float)this.GetPix(20)), isStkg, "靴下", style4);
  6864. isShoes = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(50), (float)this.GetPix(348), (float)this.GetPix(40), (float)this.GetPix(20)), isShoes, "靴", style4);
  6865. isMaid = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(95), (float)this.GetPix(348), (float)this.GetPix(70), (float)this.GetPix(20)), isMaid, "メイド", style4);
  6866. mekure1[selectMaidIndex] = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(373), (float)this.GetPix(62), (float)this.GetPix(20)), mekure1[selectMaidIndex], "めくれ前", style4);
  6867. mekure2[selectMaidIndex] = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(67), (float)this.GetPix(373), (float)this.GetPix(40), (float)this.GetPix(20)), mekure2[selectMaidIndex], "後ろ", style4);
  6868. zurasi[selectMaidIndex] = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(105), (float)this.GetPix(373), (float)this.GetPix(50), (float)this.GetPix(20)), zurasi[selectMaidIndex], "ずらし", style4);
  6869. voice1[selectMaidIndex] = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(530), (float)this.GetPix(70), (float)this.GetPix(20)), zFlg[selectMaidIndex], "ボイス", style4);
  6870. voice2[selectMaidIndex] = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(70), (float)this.GetPix(530), (float)this.GetPix(70), (float)this.GetPix(20)), xFlg[selectMaidIndex], "Hボイス", style4);
  6871. GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton && !itemCombo.isClickedComboButton;
  6872. GUI.DrawTexture(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(402), (float)this.GetPix(160), 2f), (Texture)line1);
  6873. GUI.DrawTexture(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(402), (float)this.GetPix(160), 1f), (Texture)line2);
  6874. isIK[selectMaidIndex] = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(411), (float)this.GetPix(30), (float)this.GetPix(20)), isIK[selectMaidIndex], "IK", style4);
  6875. if (!isLock[selectMaidIndex])
  6876. GUI.enabled = false;
  6877. isLock[selectMaidIndex] = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(45), (float)this.GetPix(411), (float)this.GetPix(40), (float)this.GetPix(20)), isLock[selectMaidIndex], "解除", style4);
  6878. GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton && !itemCombo.isClickedComboButton;
  6879. if (!isIK[selectMaidIndex])
  6880. GUI.enabled = false;
  6881. isBone[selectMaidIndex] = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(100), (float)this.GetPix(411), (float)this.GetPix(60), (float)this.GetPix(20)), isBone[selectMaidIndex], "ボーン", style4);
  6882. GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton;
  6883. if (isBone[selectMaidIndex] != isBoneN[selectMaidIndex])
  6884. {
  6885. isBoneN[selectMaidIndex] = isBone[selectMaidIndex];
  6886. isChange[selectMaidIndex] = true;
  6887. }
  6888. if (!isLock[selectMaidIndex] && unLockFlg != isLock[selectMaidIndex])
  6889. {
  6890. string[] strArray2 = poseArray[poseIndex[selectMaidIndex]].Split(',');
  6891. isStop[selectMaidIndex] = false;
  6892. poseCount[selectMaidIndex] = 20;
  6893. if (strArray2[0].Contains("_momi") || strArray2[0].Contains("paizuri_"))
  6894. {
  6895. maid.body0.MuneYureL(0.0f);
  6896. maid.body0.MuneYureR(0.0f);
  6897. }
  6898. else
  6899. {
  6900. maid.body0.MuneYureL(1f);
  6901. maid.body0.MuneYureR(1f);
  6902. }
  6903. if (strArray2[0].Contains("MultipleMaidsPose"))
  6904. {
  6905. string path = strArray2[0].Split('/')[1];
  6906. byte[] numArray = new byte[0];
  6907. try
  6908. {
  6909. using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
  6910. {
  6911. numArray = new byte[fileStream.Length];
  6912. fileStream.Read(numArray, 0, numArray.Length);
  6913. }
  6914. }
  6915. catch
  6916. {
  6917. }
  6918. if (0 < numArray.Length)
  6919. {
  6920. long hashCode = (long)Path.GetFileName(path).GetHashCode();
  6921. maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
  6922. Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
  6923. {
  6924. Maid.AutoTwist.ShoulderL,
  6925. Maid.AutoTwist.ShoulderR,
  6926. Maid.AutoTwist.WristL,
  6927. Maid.AutoTwist.WristR,
  6928. Maid.AutoTwist.ThighL,
  6929. Maid.AutoTwist.ThighR
  6930. };
  6931. foreach (Maid.AutoTwist f_eType in autoTwistArray)
  6932. maid.SetAutoTwist(f_eType, true);
  6933. }
  6934. }
  6935. else if (strArray2[0].StartsWith("p") && int.TryParse(strArray2[0].Substring(1), out result))
  6936. loadPose[selectMaidIndex] = strArray2[0];
  6937. else if (!strArray2[0].StartsWith("dance_"))
  6938. {
  6939. maidArray[selectMaidIndex].CrossFade(strArray2[0] + ".anm", false, true, false, 0.0f, 1f);
  6940. }
  6941. else
  6942. {
  6943. if (!(bool)((Object)maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm")))
  6944. maid.body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
  6945. maid.body0.m_Bones.GetComponent<Animation>().Play(strArray2[0] + ".anm");
  6946. }
  6947. if (strArray2.Length > 1)
  6948. {
  6949. maid.body0.m_Bones.GetComponent<Animation>()[strArray2[0] + ".anm"].time = float.Parse(strArray2[1]);
  6950. isDanceStop = true;
  6951. if (strArray2.Length > 2)
  6952. {
  6953. transform = CMT.SearchObjName(maidArray[selectMaidIndex].body0.m_Bones.transform, "Bip01", true);
  6954. isPoseIti[selectMaidIndex] = true;
  6955. poseIti[selectMaidIndex] = maidArray[selectMaidIndex].transform.position;
  6956. maidArray[selectMaidIndex].transform.position = new Vector3(100f, 100f, 100f);
  6957. }
  6958. }
  6959. mHandL[selectMaidIndex].initFlg = false;
  6960. mHandR[selectMaidIndex].initFlg = false;
  6961. mFootL[selectMaidIndex].initFlg = false;
  6962. mFootR[selectMaidIndex].initFlg = false;
  6963. pHandL[selectMaidIndex] = 0;
  6964. pHandR[selectMaidIndex] = 0;
  6965. hanten[selectMaidIndex] = false;
  6966. hantenn[selectMaidIndex] = false;
  6967. muneIKL[selectMaidIndex] = false;
  6968. muneIKR[selectMaidIndex] = false;
  6969. if (!GameMain.Instance.VRMode)
  6970. {
  6971. maidArray[selectMaidIndex].body0.quaDefEyeL.eulerAngles = eyeL[(int)selectList[selectMaidIndex]];
  6972. maidArray[selectMaidIndex].body0.quaDefEyeR.eulerAngles = eyeR[(int)selectList[selectMaidIndex]];
  6973. }
  6974. }
  6975. unLockFlg = isLock[selectMaidIndex];
  6976. GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton && !itemCombo.isClickedComboButton;
  6977. if (!isIK[selectMaidIndex])
  6978. GUI.enabled = false;
  6979. hanten[selectMaidIndex] = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(479), (float)this.GetPix(70), (float)this.GetPix(20)), hanten[selectMaidIndex], "左右反転", style4);
  6980. bool flag1 = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(80), (float)this.GetPix(479), (float)this.GetPix(100), (float)this.GetPix(20)), kotei[selectMaidIndex], "スカート固定", style4);
  6981. if (kotei[selectMaidIndex] != flag1)
  6982. {
  6983. kotei[selectMaidIndex] = flag1;
  6984. if (flag1)
  6985. {
  6986. SkirtListArray[selectMaidIndex] = new DynamicSkirtBone[100];
  6987. for (int index2 = 0; index2 < maid.body0.goSlot.Count; ++index2)
  6988. {
  6989. DynamicSkirtBone fieldValue = CM3D2.MultipleMaids.Plugin.MultipleMaids.GetFieldValue<BoneHair3, DynamicSkirtBone>(maid.body0.goSlot[index2].bonehair3, "m_SkirtBone");
  6990. SkirtListArray[selectMaidIndex][index2] = fieldValue;
  6991. CM3D2.MultipleMaids.Plugin.MultipleMaids.SetFieldValue8<BoneHair3, DynamicSkirtBone>(maid.body0.goSlot[index2].bonehair3, "m_SkirtBone", (DynamicSkirtBone)null);
  6992. }
  6993. }
  6994. else
  6995. {
  6996. for (int index2 = 0; index2 < maid.body0.goSlot.Count; ++index2)
  6997. CM3D2.MultipleMaids.Plugin.MultipleMaids.SetFieldValue8<BoneHair3, DynamicSkirtBone>(maid.body0.goSlot[index2].bonehair3, "m_SkirtBone", SkirtListArray[selectMaidIndex][index2]);
  6998. }
  6999. }
  7000. GUI.Label(new UnityEngine.Rect((float)this.GetPix(29), (float)this.GetPix(433), (float)this.GetPix(100), (float)this.GetPix(25)), "右手", style1);
  7001. GUI.Label(new UnityEngine.Rect((float)this.GetPix(109), (float)this.GetPix(433), (float)this.GetPix(100), (float)this.GetPix(25)), "左手", style1);
  7002. string text = "未選択";
  7003. if (copyIndex > 0)
  7004. text = copyIndex.ToString() + ":" + maidArray[copyIndex - 1].status.firstName;
  7005. if (maidCnt <= 1)
  7006. GUI.enabled = false;
  7007. GUI.Label(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(505), (float)this.GetPix(100), (float)this.GetPix(25)), "コピー", style1);
  7008. GUI.Label(new UnityEngine.Rect((float)this.GetPix(70), (float)this.GetPix(505), (float)this.GetPix(100), (float)this.GetPix(25)), text, style1);
  7009. GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton && !itemCombo.isClickedComboButton && isIK[selectMaidIndex];
  7010. style1.fontSize = this.GetPix(13);
  7011. style1.alignment = TextAnchor.UpperCenter;
  7012. GUI.Label(new UnityEngine.Rect((float)this.GetPix(-10), (float)this.GetPix(449), (float)this.GetPix(100), (float)this.GetPix(25)), pHandR[selectMaidIndex].ToString(), style1);
  7013. GUI.Label(new UnityEngine.Rect((float)this.GetPix(70), (float)this.GetPix(449), (float)this.GetPix(100), (float)this.GetPix(25)), pHandL[selectMaidIndex].ToString(), style1);
  7014. style1.fontSize = this.GetPix(11);
  7015. style1.alignment = TextAnchor.UpperLeft;
  7016. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(448), (float)this.GetPix(23), (float)this.GetPix(23)), "<", style3))
  7017. {
  7018. --pHandR[selectMaidIndex];
  7019. if (pHandR[selectMaidIndex] < 1)
  7020. pHandR[selectMaidIndex] = fingerRArray.GetLength(0);
  7021. for (int index2 = 0; index2 < 20; ++index2)
  7022. {
  7023. string[] strArray2 = fingerRArray[pHandR[selectMaidIndex] - 1, index2].Split(',');
  7024. Finger[selectMaidIndex, index2 + 20].localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  7025. }
  7026. isStop[selectMaidIndex] = true;
  7027. isLock[selectMaidIndex] = true;
  7028. for (int index2 = 0; index2 < 10; ++index2)
  7029. {
  7030. if ((index2 == 0 || index2 == 5) && (bool)((Object)mFinger[selectMaidIndex, index2 * 3]))
  7031. mFinger[selectMaidIndex, index2 * 3].reset = true;
  7032. }
  7033. }
  7034. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(55), (float)this.GetPix(448), (float)this.GetPix(23), (float)this.GetPix(23)), ">", style3))
  7035. {
  7036. ++pHandR[selectMaidIndex];
  7037. if (pHandR[selectMaidIndex] > fingerRArray.GetLength(0))
  7038. pHandR[selectMaidIndex] = 1;
  7039. for (int index2 = 0; index2 < 20; ++index2)
  7040. {
  7041. string[] strArray2 = fingerRArray[pHandR[selectMaidIndex] - 1, index2].Split(',');
  7042. Finger[selectMaidIndex, index2 + 20].localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  7043. }
  7044. isStop[selectMaidIndex] = true;
  7045. isLock[selectMaidIndex] = true;
  7046. for (int index2 = 0; index2 < 10; ++index2)
  7047. {
  7048. if ((index2 == 0 || index2 == 5) && (bool)((Object)mFinger[selectMaidIndex, index2 * 3]))
  7049. mFinger[selectMaidIndex, index2 * 3].reset = true;
  7050. }
  7051. }
  7052. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(85), (float)this.GetPix(448), (float)this.GetPix(23), (float)this.GetPix(23)), "<", style3))
  7053. {
  7054. --pHandL[selectMaidIndex];
  7055. if (pHandL[selectMaidIndex] < 1)
  7056. pHandL[selectMaidIndex] = fingerLArray.GetLength(0);
  7057. for (int index2 = 0; index2 < 20; ++index2)
  7058. {
  7059. string[] strArray2 = fingerLArray[pHandL[selectMaidIndex] - 1, index2].Split(',');
  7060. Finger[selectMaidIndex, index2].localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  7061. }
  7062. isStop[selectMaidIndex] = true;
  7063. isLock[selectMaidIndex] = true;
  7064. }
  7065. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(135), (float)this.GetPix(448), (float)this.GetPix(23), (float)this.GetPix(23)), ">", style3))
  7066. {
  7067. ++pHandL[selectMaidIndex];
  7068. if (pHandL[selectMaidIndex] > fingerRArray.GetLength(0))
  7069. pHandL[selectMaidIndex] = 1;
  7070. for (int index2 = 0; index2 < 20; ++index2)
  7071. {
  7072. string[] strArray2 = fingerLArray[pHandL[selectMaidIndex] - 1, index2].Split(',');
  7073. Finger[selectMaidIndex, index2].localEulerAngles = new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  7074. }
  7075. isStop[selectMaidIndex] = true;
  7076. isLock[selectMaidIndex] = true;
  7077. }
  7078. if (maidCnt <= 1)
  7079. GUI.enabled = false;
  7080. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(45), (float)this.GetPix(504), (float)this.GetPix(22), (float)this.GetPix(20)), ">", style3))
  7081. {
  7082. ++copyIndex;
  7083. if (copyIndex - 1 == selectMaidIndex)
  7084. ++copyIndex;
  7085. if (copyIndex > maidCnt)
  7086. copyIndex = 0;
  7087. }
  7088. if (isCopy)
  7089. {
  7090. isCopy = false;
  7091. this.CopyIK2(maidArray[selectMaidIndex], selectMaidIndex, maidArray[copyIndex - 1], copyIndex - 1);
  7092. }
  7093. if (copyIndex == 0)
  7094. GUI.enabled = false;
  7095. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(123), (float)this.GetPix(504), (float)this.GetPix(35), (float)this.GetPix(20)), "決定", style3))
  7096. {
  7097. this.CopyIK(maidArray[selectMaidIndex], selectMaidIndex, maidArray[copyIndex - 1], copyIndex - 1);
  7098. isCopy = true;
  7099. pHandL[selectMaidIndex] = pHandL[copyIndex - 1];
  7100. pHandR[selectMaidIndex] = pHandR[copyIndex - 1];
  7101. hanten[selectMaidIndex] = hanten[copyIndex - 1];
  7102. hantenn[selectMaidIndex] = hantenn[copyIndex - 1];
  7103. }
  7104. GUI.enabled = true;
  7105. if (poseCombo.isClickedComboButton || poseGroupCombo.isClickedComboButton)
  7106. GUI.enabled = false;
  7107. itemIndex2[selectMaidIndex] = itemCombo.List(new UnityEngine.Rect((float)this.GetPix(35), (float)this.GetPix(215), (float)this.GetPix(95), (float)this.GetPix(23)), itemComboList[itemIndex[selectMaidIndex]].text, itemComboList, buttonStyle1, (GUIStyle)"box", listStyle3);
  7108. GUI.enabled = true;
  7109. if (poseGroupCombo.isClickedComboButton || isLock[selectMaidIndex])
  7110. GUI.enabled = false;
  7111. poseCombo.List(new UnityEngine.Rect((float)this.GetPix(35), (float)this.GetPix(125), (float)this.GetPix(95), (float)this.GetPix(23)), poseComboList[index6].text, poseComboList, buttonStyle1, (GUIStyle)"box", listStyle2);
  7112. if (!isLock[selectMaidIndex])
  7113. GUI.enabled = true;
  7114. int index7 = -1;
  7115. for (int index2 = 0; index2 < groupList.Count; ++index2)
  7116. {
  7117. if (poseIndex[selectMaidIndex] < (int)groupList[index2])
  7118. {
  7119. index7 = index2;
  7120. break;
  7121. }
  7122. }
  7123. if (index7 < 0)
  7124. index7 = groupList.Count;
  7125. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(95), (float)this.GetPix(23), (float)this.GetPix(23)), "<", style3))
  7126. {
  7127. isPoseInit = true;
  7128. if (!isLock[selectMaidIndex])
  7129. {
  7130. for (int index2 = 0; index2 < groupList.Count; ++index2)
  7131. {
  7132. if (index2 == 0 && poseIndex[selectMaidIndex] <= (int)groupList[index2])
  7133. {
  7134. poseIndex[selectMaidIndex] = poseIndex[selectMaidIndex] != 0 ? 0 : (int)groupList[groupList.Count - 1];
  7135. break;
  7136. }
  7137. if (index2 > 0 && poseIndex[selectMaidIndex] > (int)groupList[index2 - 1] && poseIndex[selectMaidIndex] <= (int)groupList[index2])
  7138. {
  7139. poseIndex[selectMaidIndex] = (int)groupList[index2 - 1];
  7140. break;
  7141. }
  7142. }
  7143. if (poseIndex[selectMaidIndex] > (int)groupList[groupList.Count - 1])
  7144. poseIndex[selectMaidIndex] = (int)groupList[groupList.Count - 1];
  7145. if ((bool)((Object)maid) && maid.Visible)
  7146. {
  7147. string[] strArray2 = poseArray[poseIndex[selectMaidIndex]].Split(',');
  7148. isStop[selectMaidIndex] = false;
  7149. poseCount[selectMaidIndex] = 20;
  7150. if (strArray2[0].Contains("_momi") || strArray2[0].Contains("paizuri_"))
  7151. {
  7152. maid.body0.MuneYureL(0.0f);
  7153. maid.body0.MuneYureR(0.0f);
  7154. }
  7155. else
  7156. {
  7157. maid.body0.MuneYureL(1f);
  7158. maid.body0.MuneYureR(1f);
  7159. }
  7160. if (strArray2[0].Contains("MultipleMaidsPose"))
  7161. {
  7162. string path = strArray2[0].Split('/')[1];
  7163. byte[] numArray = new byte[0];
  7164. try
  7165. {
  7166. using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
  7167. {
  7168. numArray = new byte[fileStream.Length];
  7169. fileStream.Read(numArray, 0, numArray.Length);
  7170. }
  7171. }
  7172. catch
  7173. {
  7174. }
  7175. if (0 < numArray.Length)
  7176. {
  7177. long hashCode = (long)Path.GetFileName(path).GetHashCode();
  7178. maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
  7179. Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
  7180. {
  7181. Maid.AutoTwist.ShoulderL,
  7182. Maid.AutoTwist.ShoulderR,
  7183. Maid.AutoTwist.WristL,
  7184. Maid.AutoTwist.WristR,
  7185. Maid.AutoTwist.ThighL,
  7186. Maid.AutoTwist.ThighR
  7187. };
  7188. foreach (Maid.AutoTwist f_eType in autoTwistArray)
  7189. maid.SetAutoTwist(f_eType, true);
  7190. }
  7191. }
  7192. else if (strArray2[0].StartsWith("p") && int.TryParse(strArray2[0].Substring(1), out result))
  7193. loadPose[selectMaidIndex] = strArray2[0];
  7194. else if (!strArray2[0].StartsWith("dance_"))
  7195. {
  7196. maidArray[selectMaidIndex].CrossFade(strArray2[0] + ".anm", false, true, false, 0.0f, 1f);
  7197. }
  7198. else
  7199. {
  7200. if (!(bool)((Object)maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm")))
  7201. maid.body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
  7202. maid.body0.m_Bones.GetComponent<Animation>().Play(strArray2[0] + ".anm");
  7203. }
  7204. if (strArray2.Length > 1)
  7205. {
  7206. maid.body0.m_Bones.GetComponent<Animation>()[strArray2[0] + ".anm"].time = float.Parse(strArray2[1]);
  7207. isDanceStop = true;
  7208. if (strArray2.Length > 2)
  7209. {
  7210. transform = CMT.SearchObjName(maidArray[selectMaidIndex].body0.m_Bones.transform, "Bip01", true);
  7211. isPoseIti[selectMaidIndex] = true;
  7212. poseIti[selectMaidIndex] = maidArray[selectMaidIndex].transform.position;
  7213. maidArray[selectMaidIndex].transform.position = new Vector3(100f, 100f, 100f);
  7214. }
  7215. }
  7216. }
  7217. }
  7218. int index3 = -1;
  7219. for (int index2 = 0; index2 < groupList.Count; ++index2)
  7220. {
  7221. if (poseIndex[selectMaidIndex] < (int)groupList[index2])
  7222. {
  7223. index3 = index2;
  7224. break;
  7225. }
  7226. }
  7227. int length2 = (int)groupList[0];
  7228. int num2 = 0;
  7229. if (index3 > 0)
  7230. {
  7231. length2 = (int)groupList[index3] - (int)groupList[index3 - 1];
  7232. num2 = (int)groupList[index3 - 1];
  7233. }
  7234. if (index3 < 0)
  7235. {
  7236. index3 = groupList.Count;
  7237. length2 = poseArray.Length - (int)groupList[index3 - 1];
  7238. num2 = (int)groupList[index3 - 1];
  7239. }
  7240. poseComboList = new GUIContent[length2];
  7241. int index4 = 0;
  7242. for (int index2 = num2; index2 < num2 + length2; ++index2)
  7243. {
  7244. bool flag2 = false;
  7245. foreach (IniKey key in this.Preferences["pose"].Keys)
  7246. {
  7247. if (poseArray[index2] == key.Key)
  7248. {
  7249. IniKey iniKey = this.Preferences["pose"][key.Key];
  7250. if (iniKey.Value != null && iniKey.Value.ToString() != "" && iniKey.Value.ToString() != "del")
  7251. {
  7252. poseComboList[index4] = new GUIContent((index4 + 1).ToString() + ":" + iniKey.Value.Split('_')[0] + "                    " + key.Key);
  7253. flag2 = true;
  7254. }
  7255. }
  7256. }
  7257. if (!flag2)
  7258. poseComboList[index4] = new GUIContent((index4 + 1).ToString() + ":" + poseArray[index2]);
  7259. ++index4;
  7260. }
  7261. poseCombo.scrollPos = new Vector2(0.0f, 0.0f);
  7262. poseGroupCombo.selectedItemIndex = index3;
  7263. poseCombo.selectedItemIndex = 0;
  7264. }
  7265. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(135), (float)this.GetPix(95), (float)this.GetPix(23), (float)this.GetPix(23)), ">", style3))
  7266. {
  7267. isPoseInit = true;
  7268. if (!isLock[selectMaidIndex])
  7269. {
  7270. int num2 = poseIndex[selectMaidIndex];
  7271. for (int index2 = 0; index2 < groupList.Count; ++index2)
  7272. {
  7273. if (poseIndex[selectMaidIndex] < (int)groupList[index2])
  7274. {
  7275. poseIndex[selectMaidIndex] = (int)groupList[index2];
  7276. break;
  7277. }
  7278. }
  7279. if (num2 == poseIndex[selectMaidIndex] && poseIndex[selectMaidIndex] >= (int)groupList[groupList.Count - 1])
  7280. poseIndex[selectMaidIndex] = 0;
  7281. if ((bool)((Object)maid) && maid.Visible)
  7282. {
  7283. string[] strArray2 = poseArray[poseIndex[selectMaidIndex]].Split(',');
  7284. isStop[selectMaidIndex] = false;
  7285. poseCount[selectMaidIndex] = 20;
  7286. if (strArray2[0].Contains("_momi") || strArray2[0].Contains("paizuri_"))
  7287. {
  7288. maid.body0.MuneYureL(0.0f);
  7289. maid.body0.MuneYureR(0.0f);
  7290. }
  7291. else
  7292. {
  7293. maid.body0.MuneYureL(1f);
  7294. maid.body0.MuneYureR(1f);
  7295. }
  7296. if (strArray2[0].Contains("MultipleMaidsPose"))
  7297. {
  7298. string path = strArray2[0].Split('/')[1];
  7299. byte[] numArray = new byte[0];
  7300. try
  7301. {
  7302. using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
  7303. {
  7304. numArray = new byte[fileStream.Length];
  7305. fileStream.Read(numArray, 0, numArray.Length);
  7306. }
  7307. }
  7308. catch
  7309. {
  7310. }
  7311. if (0 < numArray.Length)
  7312. {
  7313. long hashCode = (long)Path.GetFileName(path).GetHashCode();
  7314. maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
  7315. Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
  7316. {
  7317. Maid.AutoTwist.ShoulderL,
  7318. Maid.AutoTwist.ShoulderR,
  7319. Maid.AutoTwist.WristL,
  7320. Maid.AutoTwist.WristR,
  7321. Maid.AutoTwist.ThighL,
  7322. Maid.AutoTwist.ThighR
  7323. };
  7324. foreach (Maid.AutoTwist f_eType in autoTwistArray)
  7325. maid.SetAutoTwist(f_eType, true);
  7326. }
  7327. }
  7328. else if (strArray2[0].StartsWith("p") && int.TryParse(strArray2[0].Substring(1), out result))
  7329. loadPose[selectMaidIndex] = strArray2[0];
  7330. else if (!strArray2[0].StartsWith("dance_"))
  7331. {
  7332. maidArray[selectMaidIndex].CrossFade(strArray2[0] + ".anm", false, true, false, 0.0f, 1f);
  7333. }
  7334. else
  7335. {
  7336. if (!(bool)((Object)maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm")))
  7337. maid.body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
  7338. maid.body0.m_Bones.GetComponent<Animation>().Play(strArray2[0] + ".anm");
  7339. }
  7340. if (strArray2.Length > 1)
  7341. {
  7342. maid.body0.m_Bones.GetComponent<Animation>()[strArray2[0] + ".anm"].time = float.Parse(strArray2[1]);
  7343. isDanceStop = true;
  7344. if (strArray2.Length > 2)
  7345. {
  7346. transform = CMT.SearchObjName(maidArray[selectMaidIndex].body0.m_Bones.transform, "Bip01", true);
  7347. isPoseIti[selectMaidIndex] = true;
  7348. poseIti[selectMaidIndex] = maidArray[selectMaidIndex].transform.position;
  7349. maidArray[selectMaidIndex].transform.position = new Vector3(100f, 100f, 100f);
  7350. }
  7351. }
  7352. }
  7353. }
  7354. int index3 = -1;
  7355. for (int index2 = 0; index2 < groupList.Count; ++index2)
  7356. {
  7357. if (poseIndex[selectMaidIndex] < (int)groupList[index2])
  7358. {
  7359. index3 = index2;
  7360. break;
  7361. }
  7362. }
  7363. int length2 = (int)groupList[0];
  7364. int num3 = 0;
  7365. if (index3 > 0)
  7366. {
  7367. length2 = (int)groupList[index3] - (int)groupList[index3 - 1];
  7368. num3 = (int)groupList[index3 - 1];
  7369. }
  7370. if (index3 < 0)
  7371. {
  7372. index3 = groupList.Count;
  7373. length2 = poseArray.Length - (int)groupList[index3 - 1];
  7374. num3 = (int)groupList[index3 - 1];
  7375. }
  7376. poseComboList = new GUIContent[length2];
  7377. int index4 = 0;
  7378. for (int index2 = num3; index2 < num3 + length2; ++index2)
  7379. {
  7380. bool flag2 = false;
  7381. foreach (IniKey key in this.Preferences["pose"].Keys)
  7382. {
  7383. if (poseArray[index2] == key.Key)
  7384. {
  7385. IniKey iniKey = this.Preferences["pose"][key.Key];
  7386. if (iniKey.Value != null && iniKey.Value.ToString() != "" && iniKey.Value.ToString() != "del")
  7387. {
  7388. poseComboList[index4] = new GUIContent((index4 + 1).ToString() + ":" + iniKey.Value.Split('_')[0] + "                    " + key.Key);
  7389. flag2 = true;
  7390. }
  7391. }
  7392. }
  7393. if (!flag2)
  7394. poseComboList[index4] = new GUIContent((index4 + 1).ToString() + ":" + poseArray[index2]);
  7395. ++index4;
  7396. }
  7397. poseCombo.scrollPos = new Vector2(0.0f, 0.0f);
  7398. poseGroupCombo.selectedItemIndex = index3;
  7399. poseCombo.selectedItemIndex = 0;
  7400. }
  7401. poseGroupIndex = poseGroupCombo.List(new UnityEngine.Rect((float)this.GetPix(35), (float)this.GetPix(95), (float)this.GetPix(95), (float)this.GetPix(23)), poseGroupComboList[index7].text, poseGroupComboList, buttonStyle2, (GUIStyle)"box", listStyle4);
  7402. if (poseGroupCombo.isClickedComboButton)
  7403. isCombo2 = true;
  7404. else if (isCombo2)
  7405. {
  7406. isCombo2 = false;
  7407. isPoseInit = true;
  7408. poseIndex[selectMaidIndex] = poseGroupIndex <= 0 ? 0 : (int)groupList[poseGroupIndex - 1];
  7409. if (!isLock[selectMaidIndex] && ((bool)((Object)maid) && maid.Visible))
  7410. {
  7411. string[] strArray2 = poseArray[poseIndex[selectMaidIndex]].Split(',');
  7412. isStop[selectMaidIndex] = false;
  7413. poseCount[selectMaidIndex] = 20;
  7414. if (strArray2[0].Contains("_momi") || strArray2[0].Contains("paizuri_"))
  7415. {
  7416. maid.body0.MuneYureL(0.0f);
  7417. maid.body0.MuneYureR(0.0f);
  7418. }
  7419. else
  7420. {
  7421. maid.body0.MuneYureL(1f);
  7422. maid.body0.MuneYureR(1f);
  7423. }
  7424. if (strArray2[0].Contains("MultipleMaidsPose"))
  7425. {
  7426. string path = strArray2[0].Split('/')[1];
  7427. byte[] numArray = new byte[0];
  7428. try
  7429. {
  7430. using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
  7431. {
  7432. numArray = new byte[fileStream.Length];
  7433. fileStream.Read(numArray, 0, numArray.Length);
  7434. }
  7435. }
  7436. catch
  7437. {
  7438. }
  7439. if (0 < numArray.Length)
  7440. {
  7441. long hashCode = (long)Path.GetFileName(path).GetHashCode();
  7442. maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
  7443. Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
  7444. {
  7445. Maid.AutoTwist.ShoulderL,
  7446. Maid.AutoTwist.ShoulderR,
  7447. Maid.AutoTwist.WristL,
  7448. Maid.AutoTwist.WristR,
  7449. Maid.AutoTwist.ThighL,
  7450. Maid.AutoTwist.ThighR
  7451. };
  7452. foreach (Maid.AutoTwist f_eType in autoTwistArray)
  7453. maid.SetAutoTwist(f_eType, true);
  7454. }
  7455. }
  7456. else if (strArray2[0].StartsWith("p") && int.TryParse(strArray2[0].Substring(1), out result))
  7457. loadPose[selectMaidIndex] = strArray2[0];
  7458. else if (!strArray2[0].StartsWith("dance_"))
  7459. {
  7460. maidArray[selectMaidIndex].CrossFade(strArray2[0] + ".anm", false, true, false, 0.0f, 1f);
  7461. }
  7462. else
  7463. {
  7464. if (!(bool)((Object)maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm")))
  7465. maid.body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
  7466. maid.body0.m_Bones.GetComponent<Animation>().Play(strArray2[0] + ".anm");
  7467. }
  7468. if (strArray2.Length > 1)
  7469. {
  7470. maid.body0.m_Bones.GetComponent<Animation>()[strArray2[0] + ".anm"].time = float.Parse(strArray2[1]);
  7471. isDanceStop = true;
  7472. if (strArray2.Length > 2)
  7473. {
  7474. transform = CMT.SearchObjName(maidArray[selectMaidIndex].body0.m_Bones.transform, "Bip01", true);
  7475. isPoseIti[selectMaidIndex] = true;
  7476. poseIti[selectMaidIndex] = maidArray[selectMaidIndex].transform.position;
  7477. maidArray[selectMaidIndex].transform.position = new Vector3(100f, 100f, 100f);
  7478. }
  7479. }
  7480. }
  7481. int index2 = -1;
  7482. for (int index3 = 0; index3 < groupList.Count; ++index3)
  7483. {
  7484. if (poseIndex[selectMaidIndex] < (int)groupList[index3])
  7485. {
  7486. index2 = index3;
  7487. break;
  7488. }
  7489. }
  7490. int length2 = (int)groupList[0];
  7491. int num2 = 0;
  7492. if (index2 > 0)
  7493. {
  7494. length2 = (int)groupList[index2] - (int)groupList[index2 - 1];
  7495. num2 = (int)groupList[index2 - 1];
  7496. }
  7497. if (index2 < 0)
  7498. {
  7499. index2 = groupList.Count;
  7500. length2 = poseArray.Length - (int)groupList[index2 - 1];
  7501. num2 = (int)groupList[index2 - 1];
  7502. }
  7503. poseComboList = new GUIContent[length2];
  7504. int index4 = 0;
  7505. for (int index3 = num2; index3 < num2 + length2; ++index3)
  7506. {
  7507. bool flag2 = false;
  7508. foreach (IniKey key in this.Preferences["pose"].Keys)
  7509. {
  7510. if (poseArray[index3] == key.Key)
  7511. {
  7512. IniKey iniKey = this.Preferences["pose"][key.Key];
  7513. if (iniKey.Value != null && iniKey.Value.ToString() != "" && iniKey.Value.ToString() != "del")
  7514. {
  7515. poseComboList[index4] = new GUIContent((index4 + 1).ToString() + ":" + iniKey.Value.Split('_')[0] + "                    " + key.Key);
  7516. flag2 = true;
  7517. }
  7518. }
  7519. }
  7520. if (!flag2)
  7521. poseComboList[index4] = new GUIContent((index4 + 1).ToString() + ":" + poseArray[index3]);
  7522. ++index4;
  7523. }
  7524. poseCombo.scrollPos = new Vector2(0.0f, 0.0f);
  7525. poseGroupCombo.selectedItemIndex = index2;
  7526. poseCombo.selectedItemIndex = 0;
  7527. }
  7528. if (poseCombo.isClickedComboButton)
  7529. isCombo = true;
  7530. else if (isCombo)
  7531. {
  7532. isCombo = false;
  7533. isPoseInit = true;
  7534. poseIndex[selectMaidIndex] = poseGroupIndex <= 0 ? poseCombo.selectedItemIndex : (int)groupList[poseGroupIndex - 1] + poseCombo.selectedItemIndex;
  7535. if (poseIndex[selectMaidIndex] == poseArray.Length)
  7536. poseIndex[selectMaidIndex] = 0;
  7537. if (!isLock[selectMaidIndex] && ((bool)((Object)maid) && maid.Visible))
  7538. {
  7539. string[] strArray2 = poseArray[poseIndex[selectMaidIndex]].Split(',');
  7540. isStop[selectMaidIndex] = false;
  7541. poseCount[selectMaidIndex] = 20;
  7542. if (strArray2[0].Contains("_momi") || strArray2[0].Contains("paizuri_"))
  7543. {
  7544. maid.body0.MuneYureL(0.0f);
  7545. maid.body0.MuneYureR(0.0f);
  7546. }
  7547. else
  7548. {
  7549. maid.body0.MuneYureL(1f);
  7550. maid.body0.MuneYureR(1f);
  7551. }
  7552. if (strArray2[0].Contains("MultipleMaidsPose"))
  7553. {
  7554. string path = strArray2[0].Split('/')[1];
  7555. byte[] numArray = new byte[0];
  7556. try
  7557. {
  7558. using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
  7559. {
  7560. numArray = new byte[fileStream.Length];
  7561. fileStream.Read(numArray, 0, numArray.Length);
  7562. }
  7563. }
  7564. catch
  7565. {
  7566. }
  7567. if (0 < numArray.Length)
  7568. {
  7569. long hashCode = (long)Path.GetFileName(path).GetHashCode();
  7570. maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
  7571. Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
  7572. {
  7573. Maid.AutoTwist.ShoulderL,
  7574. Maid.AutoTwist.ShoulderR,
  7575. Maid.AutoTwist.WristL,
  7576. Maid.AutoTwist.WristR,
  7577. Maid.AutoTwist.ThighL,
  7578. Maid.AutoTwist.ThighR
  7579. };
  7580. foreach (Maid.AutoTwist f_eType in autoTwistArray)
  7581. maid.SetAutoTwist(f_eType, true);
  7582. }
  7583. }
  7584. else if (strArray2[0].StartsWith("p") && int.TryParse(strArray2[0].Substring(1), out result))
  7585. loadPose[selectMaidIndex] = strArray2[0];
  7586. else if (!strArray2[0].StartsWith("dance_"))
  7587. {
  7588. maidArray[selectMaidIndex].CrossFade(strArray2[0] + ".anm", false, true, false, 0.0f, 1f);
  7589. }
  7590. else
  7591. {
  7592. if (!(bool)((Object)maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm")))
  7593. maid.body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
  7594. maid.body0.m_Bones.GetComponent<Animation>().Play(strArray2[0] + ".anm");
  7595. }
  7596. if (strArray2.Length > 1)
  7597. {
  7598. maid.body0.m_Bones.GetComponent<Animation>()[strArray2[0] + ".anm"].time = float.Parse(strArray2[1]);
  7599. isDanceStop = true;
  7600. if (strArray2.Length > 2)
  7601. {
  7602. transform = CMT.SearchObjName(maidArray[selectMaidIndex].body0.m_Bones.transform, "Bip01", true);
  7603. isPoseIti[selectMaidIndex] = true;
  7604. poseIti[selectMaidIndex] = maidArray[selectMaidIndex].transform.position;
  7605. maidArray[selectMaidIndex].transform.position = new Vector3(100f, 100f, 100f);
  7606. }
  7607. }
  7608. }
  7609. }
  7610. if (itemCombo.isClickedComboButton)
  7611. {
  7612. isCombo3 = true;
  7613. }
  7614. else
  7615. {
  7616. if (!isCombo3)
  7617. return;
  7618. isCombo3 = false;
  7619. strArray1 = new string[2];
  7620. string[] strArray2 = itemArray[itemIndex2[selectMaidIndex]].Split(',');
  7621. if (itemIndex2[selectMaidIndex] > 13)
  7622. strArray2 = itemArray[itemIndex2[selectMaidIndex] + 1].Split(',');
  7623. maid.DelProp(MPN.handitem, true);
  7624. bool flag2 = false;
  7625. if (itemIndex2[selectMaidIndex] == 0)
  7626. {
  7627. maid.DelProp(MPN.accvag, true);
  7628. maid.DelProp(MPN.accanl, true);
  7629. }
  7630. if (itemIndex2[selectMaidIndex] == 12 || itemIndex2[selectMaidIndex] == 13)
  7631. flag2 = true;
  7632. if (!flag2)
  7633. {
  7634. maid.DelProp(MPN.kousoku_upper, true);
  7635. maid.DelProp(MPN.kousoku_lower, true);
  7636. }
  7637. if (strArray2[0] != "")
  7638. maid.SetProp(strArray2[0], strArray2[1], 0, true, false);
  7639. if (itemIndex2[selectMaidIndex] == 12)
  7640. {
  7641. string[] strArray3 = itemArray[itemIndex2[selectMaidIndex] - 1].Split(',');
  7642. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  7643. }
  7644. if (itemIndex2[selectMaidIndex] == 13)
  7645. {
  7646. string[] strArray3 = itemArray[itemIndex2[selectMaidIndex] + 1].Split(',');
  7647. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  7648. }
  7649. if (itemIndex2[selectMaidIndex] == 23)
  7650. {
  7651. string[] strArray3 = itemArray[itemIndex2[selectMaidIndex]].Split(',');
  7652. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  7653. cafeFlg[selectMaidIndex] = true;
  7654. }
  7655. maid.AllProcPropSeqStart();
  7656. itemCombo.selectedItemIndex = itemIndex2[selectMaidIndex];
  7657. itemIndex[selectMaidIndex] = itemIndex2[selectMaidIndex];
  7658. }
  7659. }
  7660. else
  7661. {
  7662. isWear = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(98), (float)this.GetPix(70), (float)this.GetPix(20)), isWear, "トップス", style4);
  7663. isSkirt = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(90), (float)this.GetPix(98), (float)this.GetPix(70), (float)this.GetPix(20)), isSkirt, "ボトムス", style4);
  7664. isBra = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(123), (float)this.GetPix(80), (float)this.GetPix(20)), isBra, "ブラジャー", style4);
  7665. isPanz = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(90), (float)this.GetPix(123), (float)this.GetPix(60), (float)this.GetPix(20)), isPanz, "パンツ", style4);
  7666. isHeadset = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(148), (float)this.GetPix(70), (float)this.GetPix(20)), isHeadset, "ヘッド", style4);
  7667. isMegane = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(90), (float)this.GetPix(148), (float)this.GetPix(70), (float)this.GetPix(20)), isMegane, "メガネ", style4);
  7668. isAccUde = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(173), (float)this.GetPix(40), (float)this.GetPix(20)), isAccUde, "腕", style4);
  7669. isGlove = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(45), (float)this.GetPix(173), (float)this.GetPix(40), (float)this.GetPix(20)), isGlove, "手袋", style4);
  7670. isAccSenaka = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(97), (float)this.GetPix(173), (float)this.GetPix(40), (float)this.GetPix(20)), isAccSenaka, "背中", style4);
  7671. isStkg = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(198), (float)this.GetPix(70), (float)this.GetPix(20)), isStkg, "ソックス", style4);
  7672. isShoes = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(90), (float)this.GetPix(198), (float)this.GetPix(70), (float)this.GetPix(20)), isShoes, "シューズ", style4);
  7673. mekure1[selectMaidIndex] = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(223), (float)this.GetPix(62), (float)this.GetPix(20)), mekure1[selectMaidIndex], "めくれ前", style4);
  7674. mekure2[selectMaidIndex] = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(67), (float)this.GetPix(223), (float)this.GetPix(40), (float)this.GetPix(20)), mekure2[selectMaidIndex], "後ろ", style4);
  7675. zurasi[selectMaidIndex] = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(105), (float)this.GetPix(223), (float)this.GetPix(50), (float)this.GetPix(20)), zurasi[selectMaidIndex], "ずらし", style4);
  7676. }
  7677. }
  7678. private void GuiFunc2(int winID)
  7679. {
  7680. GUIStyle style1 = (GUIStyle)"label";
  7681. style1.fontSize = this.GetPix(12);
  7682. style1.alignment = TextAnchor.UpperLeft;
  7683. GUIStyle style2 = (GUIStyle)"label";
  7684. style2.fontSize = this.GetPix(11);
  7685. style2.alignment = TextAnchor.UpperLeft;
  7686. GUIStyle style3 = (GUIStyle)"button";
  7687. style3.fontSize = this.GetPix(20);
  7688. GUIStyle buttonStyle = (GUIStyle)"button";
  7689. buttonStyle.fontSize = this.GetPix(12);
  7690. buttonStyle.alignment = TextAnchor.MiddleLeft;
  7691. GUIStyle style4 = new GUIStyle((GUIStyle)"toggle");
  7692. style4.fontSize = this.GetPix(13);
  7693. CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
  7694. if (!faceInitFlg)
  7695. {
  7696. listStyle2.normal.textColor = Color.white;
  7697. listStyle2.normal.background = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.5f));
  7698. listStyle2.onHover.background = listStyle2.hover.background = new Texture2D(2, 2);
  7699. listStyle2.padding.left = listStyle2.padding.right = listStyle2.padding.top = listStyle2.padding.bottom = this.GetPix(0);
  7700. listStyle2.fontSize = this.GetPix(12);
  7701. faceCombo.selectedItemIndex = 0;
  7702. List<string> stringList = new List<string>(300);
  7703. stringList.AddRange((IEnumerable<string>)faceArray);
  7704. for (int index = 1; index < 300; ++index)
  7705. {
  7706. IniKey iniKey = this.Preferences["face"]["f" + (object)index];
  7707. if (iniKey.Value != null)
  7708. {
  7709. string[] strArray = iniKey.Value.Split(':');
  7710. if (strArray.Length > 1)
  7711. stringList.Add(strArray[0] + "               :" + (object)index + ":" + strArray[1]);
  7712. }
  7713. else
  7714. break;
  7715. }
  7716. faceCombo.selectedItemIndex = 0;
  7717. faceComboList = new GUIContent[stringList.ToArray().Length];
  7718. for (int index = 0; index < stringList.ToArray().Length; ++index)
  7719. faceComboList[index] = new GUIContent(stringList.ToArray()[index]);
  7720. faceInitFlg = true;
  7721. }
  7722. if (faceCombo.isClickedComboButton)
  7723. GUI.enabled = false;
  7724. if (sceneLevel == 3 || sceneLevel == 5 || isF6)
  7725. {
  7726. if (!isF6)
  7727. {
  7728. bool flag = true;
  7729. if (faceFlg || poseFlg || (sceneFlg || kankyoFlg) || kankyo2Flg)
  7730. flag = false;
  7731. if (GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(2), (float)this.GetPix(2), (float)this.GetPix(39), (float)this.GetPix(20)), flag, "配置", style4))
  7732. {
  7733. faceFlg = false;
  7734. poseFlg = false;
  7735. sceneFlg = false;
  7736. kankyoFlg = false;
  7737. kankyo2Flg = false;
  7738. bGui = true;
  7739. isGuiInit = true;
  7740. }
  7741. }
  7742. if (!yotogiFlg && GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(41), (float)this.GetPix(2), (float)this.GetPix(39), (float)this.GetPix(20)), poseFlg, "操作", style4))
  7743. {
  7744. poseFlg = true;
  7745. faceFlg = false;
  7746. sceneFlg = false;
  7747. kankyoFlg = false;
  7748. kankyo2Flg = false;
  7749. }
  7750. if (GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(80), (float)this.GetPix(2), (float)this.GetPix(39), (float)this.GetPix(20)), faceFlg, "表情", style4))
  7751. {
  7752. faceFlg = true;
  7753. poseFlg = false;
  7754. sceneFlg = false;
  7755. kankyoFlg = false;
  7756. kankyo2Flg = false;
  7757. if (!faceFlg2)
  7758. {
  7759. isFaceInit = true;
  7760. faceFlg2 = true;
  7761. maidArray[selectMaidIndex].boMabataki = false;
  7762. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  7763. }
  7764. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  7765. }
  7766. if (GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(119), (float)this.GetPix(2), (float)this.GetPix(39), (float)this.GetPix(20)), kankyoFlg, "環境", style4))
  7767. {
  7768. poseFlg = false;
  7769. faceFlg = false;
  7770. sceneFlg = false;
  7771. kankyoFlg = true;
  7772. kankyo2Flg = false;
  7773. }
  7774. if (!(bool)((Object)line1))
  7775. {
  7776. line1 = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.3f));
  7777. line2 = this.MakeTex(2, 2, new Color(0.7f, 0.7f, 0.7f, 0.6f));
  7778. }
  7779. GUI.DrawTexture(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(20), (float)this.GetPix(160), 2f), (Texture)line1);
  7780. GUI.DrawTexture(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(20), (float)this.GetPix(160), 1f), (Texture)line2);
  7781. style1.fontSize = this.GetPix(13);
  7782. style1.alignment = TextAnchor.MiddleCenter;
  7783. GUI.Label(new UnityEngine.Rect((float)this.GetPix(125), (float)this.GetPix(25), (float)this.GetPix(40), (float)this.GetPix(25)), string.Concat((object)(selectMaidIndex + 1)), style1);
  7784. style1.fontSize = this.GetPix(11);
  7785. style1.alignment = TextAnchor.UpperLeft;
  7786. }
  7787. if (sceneLevel > 0)
  7788. {
  7789. int selectMaidIndex = this.selectMaidIndex;
  7790. if (sceneLevel == 3 || sceneLevel == 5 && (isF7 || maidCnt > 1))
  7791. {
  7792. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(53), (float)this.GetPix(23), (float)this.GetPix(32)), "<", style3))
  7793. {
  7794. --this.selectMaidIndex;
  7795. if (this.selectMaidIndex < 0)
  7796. this.selectMaidIndex = selectList.Count - 1;
  7797. isFaceInit = true;
  7798. faceFlg = true;
  7799. copyIndex = 0;
  7800. faceCombo.selectedItemIndex = faceIndex[this.selectMaidIndex];
  7801. }
  7802. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(135), (float)this.GetPix(53), (float)this.GetPix(23), (float)this.GetPix(32)), ">", style3))
  7803. {
  7804. ++this.selectMaidIndex;
  7805. if (selectList.Count <= this.selectMaidIndex)
  7806. this.selectMaidIndex = 0;
  7807. isFaceInit = true;
  7808. faceFlg = true;
  7809. copyIndex = 0;
  7810. faceCombo.selectedItemIndex = faceIndex[this.selectMaidIndex];
  7811. }
  7812. }
  7813. if ((bool)((Object)maidArray[this.selectMaidIndex].GetThumIcon()))
  7814. GUI.DrawTexture(new UnityEngine.Rect((float)this.GetPix(30), (float)this.GetPix(25), (float)this.GetPix(60), (float)this.GetPix(60)), (Texture)maidArray[this.selectMaidIndex].GetThumIcon());
  7815. GUI.Label(new UnityEngine.Rect((float)this.GetPix(90), (float)this.GetPix(50), (float)this.GetPix(140), (float)this.GetPix(210)), maidArray[this.selectMaidIndex].status.lastName + "\n" + maidArray[this.selectMaidIndex].status.firstName, style1);
  7816. bool flag = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(90), (float)this.GetPix(25), (float)this.GetPix(50), (float)this.GetPix(16)), isShosai, "詳細", style4);
  7817. if (flag != isShosai)
  7818. {
  7819. isShosai = flag;
  7820. if (isShosai)
  7821. this.Preferences["config"]["hair_details"].Value = "true";
  7822. else
  7823. this.Preferences["config"]["hair_details"].Value = "false";
  7824. this.SaveConfig();
  7825. }
  7826. if (isFace[selectMaidIndex])
  7827. {
  7828. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(25), (float)this.GetPix(23), (float)this.GetPix(23)), "有", style3))
  7829. {
  7830. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  7831. maidArray[selectMaidIndex].boMabataki = false;
  7832. isFace[selectMaidIndex] = false;
  7833. }
  7834. maidArray[selectMaidIndex].boMabataki = false;
  7835. }
  7836. else
  7837. {
  7838. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(25), (float)this.GetPix(23), (float)this.GetPix(23)), "無", style3))
  7839. {
  7840. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  7841. maidArray[selectMaidIndex].boMabataki = false;
  7842. morph.EyeMabataki = 0.0f;
  7843. isFaceInit = true;
  7844. isFace[selectMaidIndex] = true;
  7845. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  7846. }
  7847. GUI.enabled = false;
  7848. maidArray[selectMaidIndex].boMabataki = true;
  7849. }
  7850. }
  7851. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(95), (float)this.GetPix(23), (float)this.GetPix(23)), "<", style3))
  7852. {
  7853. --faceIndex[selectMaidIndex];
  7854. if (faceIndex[selectMaidIndex] <= -1)
  7855. faceIndex[selectMaidIndex] = faceComboList.Length - 1;
  7856. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  7857. maidArray[selectMaidIndex].boMabataki = false;
  7858. morph.EyeMabataki = 0.0f;
  7859. if (faceIndex[selectMaidIndex] < faceArray.Length)
  7860. {
  7861. morph.MulBlendValues(faceArray[faceIndex[selectMaidIndex]], 1f);
  7862. }
  7863. else
  7864. {
  7865. float[] fieldValue1 = CM3D2.MultipleMaids.Plugin.MultipleMaids.GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  7866. float[] fieldValue2 = CM3D2.MultipleMaids.Plugin.MultipleMaids.GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  7867. if (!isVR)
  7868. maidArray[selectMaidIndex].boMabataki = false;
  7869. string[] strArray = faceComboList[faceIndex[selectMaidIndex]].text.Split(':')[2].Split(',');
  7870. fieldValue2[(int)morph.hash[(object)"eyeclose"]] = float.Parse(strArray[0]);
  7871. fieldValue2[(int)morph.hash[(object)"eyeclose2"]] = float.Parse(strArray[1]);
  7872. fieldValue2[(int)morph.hash[(object)"eyeclose3"]] = float.Parse(strArray[2]);
  7873. fieldValue2[(int)morph.hash[(object)"eyeclose6"]] = float.Parse(strArray[3]);
  7874. fieldValue1[(int)morph.hash[(object)"hitomih"]] = float.Parse(strArray[4]);
  7875. fieldValue1[(int)morph.hash[(object)"hitomis"]] = float.Parse(strArray[5]);
  7876. fieldValue1[(int)morph.hash[(object)"mayuha"]] = float.Parse(strArray[6]);
  7877. fieldValue1[(int)morph.hash[(object)"mayuup"]] = float.Parse(strArray[7]);
  7878. fieldValue1[(int)morph.hash[(object)"mayuv"]] = float.Parse(strArray[8]);
  7879. fieldValue1[(int)morph.hash[(object)"mayuvhalf"]] = float.Parse(strArray[9]);
  7880. fieldValue1[(int)morph.hash[(object)"moutha"]] = float.Parse(strArray[10]);
  7881. fieldValue1[(int)morph.hash[(object)"mouths"]] = float.Parse(strArray[11]);
  7882. fieldValue1[(int)morph.hash[(object)"mouthdw"]] = float.Parse(strArray[12]);
  7883. fieldValue1[(int)morph.hash[(object)"mouthup"]] = float.Parse(strArray[13]);
  7884. fieldValue1[(int)morph.hash[(object)"tangout"]] = float.Parse(strArray[14]);
  7885. fieldValue1[(int)morph.hash[(object)"tangup"]] = float.Parse(strArray[15]);
  7886. fieldValue1[(int)morph.hash[(object)"eyebig"]] = float.Parse(strArray[16]);
  7887. fieldValue2[(int)morph.hash[(object)"eyeclose5"]] = float.Parse(strArray[17]);
  7888. fieldValue1[(int)morph.hash[(object)"mayuw"]] = float.Parse(strArray[18]);
  7889. fieldValue1[(int)morph.hash[(object)"mouthhe"]] = float.Parse(strArray[19]);
  7890. fieldValue1[(int)morph.hash[(object)"mouthc"]] = float.Parse(strArray[20]);
  7891. fieldValue1[(int)morph.hash[(object)"mouthi"]] = float.Parse(strArray[21]);
  7892. fieldValue1[(int)morph.hash[(object)"mouthuphalf"]] = float.Parse(strArray[22]) + 0.01f;
  7893. try
  7894. {
  7895. fieldValue1[(int)morph.hash[(object)"tangopen"]] = float.Parse(strArray[23]);
  7896. }
  7897. catch
  7898. {
  7899. }
  7900. if ((double)float.Parse(strArray[24]) == 1.0)
  7901. fieldValue1[(int)morph.hash[(object)"namida"]] = 1f;
  7902. else
  7903. fieldValue1[(int)morph.hash[(object)"namida"]] = 0.0f;
  7904. if ((double)float.Parse(strArray[25]) == 1.0)
  7905. fieldValue1[(int)morph.hash[(object)"tear1"]] = 1f;
  7906. else
  7907. fieldValue1[(int)morph.hash[(object)"tear1"]] = 0.0f;
  7908. if ((double)float.Parse(strArray[26]) == 1.0)
  7909. fieldValue1[(int)morph.hash[(object)"tear2"]] = 1f;
  7910. else
  7911. fieldValue1[(int)morph.hash[(object)"tear2"]] = 0.0f;
  7912. if ((double)float.Parse(strArray[27]) == 1.0)
  7913. fieldValue1[(int)morph.hash[(object)"tear3"]] = 1f;
  7914. else
  7915. fieldValue1[(int)morph.hash[(object)"tear3"]] = 0.0f;
  7916. if ((double)float.Parse(strArray[28]) == 1.0)
  7917. fieldValue1[(int)morph.hash[(object)"shock"]] = 1f;
  7918. else
  7919. fieldValue1[(int)morph.hash[(object)"shock"]] = 0.0f;
  7920. if ((double)float.Parse(strArray[29]) == 1.0)
  7921. fieldValue1[(int)morph.hash[(object)"yodare"]] = 1f;
  7922. else
  7923. fieldValue1[(int)morph.hash[(object)"yodare"]] = 0.0f;
  7924. if ((double)float.Parse(strArray[30]) == 1.0)
  7925. fieldValue1[(int)morph.hash[(object)"hoho"]] = 0.5f;
  7926. else
  7927. fieldValue1[(int)morph.hash[(object)"hoho"]] = 0.0f;
  7928. if ((double)float.Parse(strArray[31]) == 1.0)
  7929. fieldValue1[(int)morph.hash[(object)"hoho2"]] = 0.5f;
  7930. else
  7931. fieldValue1[(int)morph.hash[(object)"hoho2"]] = 0.0f;
  7932. if ((double)float.Parse(strArray[32]) == 1.0)
  7933. fieldValue1[(int)morph.hash[(object)"hohos"]] = 1f;
  7934. else
  7935. fieldValue1[(int)morph.hash[(object)"hohos"]] = 0.0f;
  7936. if ((double)float.Parse(strArray[33]) == 1.0)
  7937. fieldValue1[(int)morph.hash[(object)"hohol"]] = 1f;
  7938. else
  7939. fieldValue1[(int)morph.hash[(object)"hohol"]] = 0.0f;
  7940. if ((double)float.Parse(strArray[34]) == 1.0)
  7941. fieldValue1[(int)morph.hash[(object)"toothoff"]] = 1f;
  7942. else
  7943. fieldValue1[(int)morph.hash[(object)"toothoff"]] = 0.0f;
  7944. if (strArray.Length > 35)
  7945. morph.boNoseFook = (double)float.Parse(strArray[35]) == 1.0;
  7946. }
  7947. maidArray[selectMaidIndex].body0.Face.morph.FixBlendValues_Face();
  7948. isFaceInit = true;
  7949. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  7950. }
  7951. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(135), (float)this.GetPix(95), (float)this.GetPix(23), (float)this.GetPix(23)), ">", style3))
  7952. {
  7953. ++faceIndex[selectMaidIndex];
  7954. if (faceIndex[selectMaidIndex] == faceComboList.Length)
  7955. faceIndex[selectMaidIndex] = 0;
  7956. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  7957. maidArray[selectMaidIndex].boMabataki = false;
  7958. morph.EyeMabataki = 0.0f;
  7959. if (faceIndex[selectMaidIndex] < faceArray.Length)
  7960. {
  7961. morph.MulBlendValues(faceArray[faceIndex[selectMaidIndex]], 1f);
  7962. }
  7963. else
  7964. {
  7965. float[] fieldValue1 = CM3D2.MultipleMaids.Plugin.MultipleMaids.GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  7966. float[] fieldValue2 = CM3D2.MultipleMaids.Plugin.MultipleMaids.GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  7967. if (!isVR)
  7968. maidArray[selectMaidIndex].boMabataki = false;
  7969. string[] strArray = faceComboList[faceIndex[selectMaidIndex]].text.Split(':')[2].Split(',');
  7970. fieldValue2[(int)morph.hash[(object)"eyeclose"]] = float.Parse(strArray[0]);
  7971. fieldValue2[(int)morph.hash[(object)"eyeclose2"]] = float.Parse(strArray[1]);
  7972. fieldValue2[(int)morph.hash[(object)"eyeclose3"]] = float.Parse(strArray[2]);
  7973. fieldValue2[(int)morph.hash[(object)"eyeclose6"]] = float.Parse(strArray[3]);
  7974. fieldValue1[(int)morph.hash[(object)"hitomih"]] = float.Parse(strArray[4]);
  7975. fieldValue1[(int)morph.hash[(object)"hitomis"]] = float.Parse(strArray[5]);
  7976. fieldValue1[(int)morph.hash[(object)"mayuha"]] = float.Parse(strArray[6]);
  7977. fieldValue1[(int)morph.hash[(object)"mayuup"]] = float.Parse(strArray[7]);
  7978. fieldValue1[(int)morph.hash[(object)"mayuv"]] = float.Parse(strArray[8]);
  7979. fieldValue1[(int)morph.hash[(object)"mayuvhalf"]] = float.Parse(strArray[9]);
  7980. fieldValue1[(int)morph.hash[(object)"moutha"]] = float.Parse(strArray[10]);
  7981. fieldValue1[(int)morph.hash[(object)"mouths"]] = float.Parse(strArray[11]);
  7982. fieldValue1[(int)morph.hash[(object)"mouthdw"]] = float.Parse(strArray[12]);
  7983. fieldValue1[(int)morph.hash[(object)"mouthup"]] = float.Parse(strArray[13]);
  7984. fieldValue1[(int)morph.hash[(object)"tangout"]] = float.Parse(strArray[14]);
  7985. fieldValue1[(int)morph.hash[(object)"tangup"]] = float.Parse(strArray[15]);
  7986. fieldValue1[(int)morph.hash[(object)"eyebig"]] = float.Parse(strArray[16]);
  7987. fieldValue2[(int)morph.hash[(object)"eyeclose5"]] = float.Parse(strArray[17]);
  7988. fieldValue1[(int)morph.hash[(object)"mayuw"]] = float.Parse(strArray[18]);
  7989. fieldValue1[(int)morph.hash[(object)"mouthhe"]] = float.Parse(strArray[19]);
  7990. fieldValue1[(int)morph.hash[(object)"mouthc"]] = float.Parse(strArray[20]);
  7991. fieldValue1[(int)morph.hash[(object)"mouthi"]] = float.Parse(strArray[21]);
  7992. fieldValue1[(int)morph.hash[(object)"mouthuphalf"]] = float.Parse(strArray[22]) + 0.01f;
  7993. try
  7994. {
  7995. fieldValue1[(int)morph.hash[(object)"tangopen"]] = float.Parse(strArray[23]);
  7996. }
  7997. catch
  7998. {
  7999. }
  8000. if ((double)float.Parse(strArray[24]) == 1.0)
  8001. fieldValue1[(int)morph.hash[(object)"namida"]] = 1f;
  8002. else
  8003. fieldValue1[(int)morph.hash[(object)"namida"]] = 0.0f;
  8004. if ((double)float.Parse(strArray[25]) == 1.0)
  8005. fieldValue1[(int)morph.hash[(object)"tear1"]] = 1f;
  8006. else
  8007. fieldValue1[(int)morph.hash[(object)"tear1"]] = 0.0f;
  8008. if ((double)float.Parse(strArray[26]) == 1.0)
  8009. fieldValue1[(int)morph.hash[(object)"tear2"]] = 1f;
  8010. else
  8011. fieldValue1[(int)morph.hash[(object)"tear2"]] = 0.0f;
  8012. if ((double)float.Parse(strArray[27]) == 1.0)
  8013. fieldValue1[(int)morph.hash[(object)"tear3"]] = 1f;
  8014. else
  8015. fieldValue1[(int)morph.hash[(object)"tear3"]] = 0.0f;
  8016. if ((double)float.Parse(strArray[28]) == 1.0)
  8017. fieldValue1[(int)morph.hash[(object)"shock"]] = 1f;
  8018. else
  8019. fieldValue1[(int)morph.hash[(object)"shock"]] = 0.0f;
  8020. if ((double)float.Parse(strArray[29]) == 1.0)
  8021. fieldValue1[(int)morph.hash[(object)"yodare"]] = 1f;
  8022. else
  8023. fieldValue1[(int)morph.hash[(object)"yodare"]] = 0.0f;
  8024. if ((double)float.Parse(strArray[30]) == 1.0)
  8025. fieldValue1[(int)morph.hash[(object)"hoho"]] = 0.5f;
  8026. else
  8027. fieldValue1[(int)morph.hash[(object)"hoho"]] = 0.0f;
  8028. if ((double)float.Parse(strArray[31]) == 1.0)
  8029. fieldValue1[(int)morph.hash[(object)"hoho2"]] = 0.5f;
  8030. else
  8031. fieldValue1[(int)morph.hash[(object)"hoho2"]] = 0.0f;
  8032. if ((double)float.Parse(strArray[32]) == 1.0)
  8033. fieldValue1[(int)morph.hash[(object)"hohos"]] = 1f;
  8034. else
  8035. fieldValue1[(int)morph.hash[(object)"hohos"]] = 0.0f;
  8036. if ((double)float.Parse(strArray[33]) == 1.0)
  8037. fieldValue1[(int)morph.hash[(object)"hohol"]] = 1f;
  8038. else
  8039. fieldValue1[(int)morph.hash[(object)"hohol"]] = 0.0f;
  8040. if ((double)float.Parse(strArray[34]) == 1.0)
  8041. fieldValue1[(int)morph.hash[(object)"toothoff"]] = 1f;
  8042. else
  8043. fieldValue1[(int)morph.hash[(object)"toothoff"]] = 0.0f;
  8044. if (strArray.Length > 35)
  8045. morph.boNoseFook = (double)float.Parse(strArray[35]) == 1.0;
  8046. }
  8047. maidArray[selectMaidIndex].body0.Face.morph.FixBlendValues_Face();
  8048. isFaceInit = true;
  8049. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  8050. }
  8051. if (!isShosai)
  8052. {
  8053. GUI.Label(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(130), (float)this.GetPix(100), (float)this.GetPix(25)), "目の開閉", style1);
  8054. eyeclose = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(150), (float)this.GetPix(70), (float)this.GetPix(20)), eyeclose, 0.0f, 1f);
  8055. GUI.Label(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(130), (float)this.GetPix(100), (float)this.GetPix(25)), "にっこり", style1);
  8056. eyeclose2 = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(150), (float)this.GetPix(70), (float)this.GetPix(20)), eyeclose2, 0.0f, 1f);
  8057. GUI.Label(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(170), (float)this.GetPix(100), (float)this.GetPix(25)), "ジト目", style1);
  8058. eyeclose3 = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(190), (float)this.GetPix(70), (float)this.GetPix(20)), eyeclose3, 0.0f, 1f);
  8059. GUI.Label(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(170), (float)this.GetPix(100), (float)this.GetPix(25)), "ウインク", style1);
  8060. eyeclose6 = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(190), (float)this.GetPix(70), (float)this.GetPix(20)), eyeclose6, 0.0f, 1f);
  8061. GUI.Label(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(210), (float)this.GetPix(100), (float)this.GetPix(25)), "ハイライト", style1);
  8062. hitomih = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(230), (float)this.GetPix(70), (float)this.GetPix(20)), hitomih, 0.0f, 2f);
  8063. GUI.Label(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(210), (float)this.GetPix(100), (float)this.GetPix(25)), "瞳サイズ", style1);
  8064. hitomis = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(230), (float)this.GetPix(70), (float)this.GetPix(20)), hitomis, 0.0f, 1f);
  8065. GUI.Label(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(250), (float)this.GetPix(100), (float)this.GetPix(25)), "眉角度", style1);
  8066. mayuha = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(270), (float)this.GetPix(70), (float)this.GetPix(20)), mayuha, 0.0f, 1f);
  8067. GUI.Label(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(290), (float)this.GetPix(100), (float)this.GetPix(25)), "眉上げ", style1);
  8068. mayuup = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(310), (float)this.GetPix(70), (float)this.GetPix(20)), mayuup, 0.0f, 0.8f);
  8069. GUI.Label(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(290), (float)this.GetPix(100), (float)this.GetPix(25)), "眉下げ", style1);
  8070. mayuv = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(310), (float)this.GetPix(70), (float)this.GetPix(20)), mayuv, 0.0f, 0.8f);
  8071. GUI.Label(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(330), (float)this.GetPix(100), (float)this.GetPix(25)), "口開け1", style1);
  8072. moutha = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(350), (float)this.GetPix(70), (float)this.GetPix(20)), moutha, 0.0f, 1f);
  8073. GUI.Label(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(330), (float)this.GetPix(100), (float)this.GetPix(25)), "口開け2", style1);
  8074. mouths = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(350), (float)this.GetPix(70), (float)this.GetPix(20)), mouths, 0.0f, 0.9f);
  8075. GUI.Label(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(370), (float)this.GetPix(100), (float)this.GetPix(25)), "口角上げ", style1);
  8076. mouthup = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(390), (float)this.GetPix(70), (float)this.GetPix(20)), mouthup, 0.0f, 1.4f);
  8077. GUI.Label(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(370), (float)this.GetPix(100), (float)this.GetPix(25)), "口角下げ", style1);
  8078. mouthdw = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(390), (float)this.GetPix(70), (float)this.GetPix(20)), mouthdw, 0.0f, 1f);
  8079. GUI.Label(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(410), (float)this.GetPix(100), (float)this.GetPix(25)), "舌出し", style1);
  8080. tangout = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(430), (float)this.GetPix(70), (float)this.GetPix(20)), tangout, 0.0f, 1f);
  8081. GUI.Label(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(410), (float)this.GetPix(100), (float)this.GetPix(25)), "舌上げ", style1);
  8082. tangup = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(430), (float)this.GetPix(70), (float)this.GetPix(20)), tangup, 0.0f, 0.7f);
  8083. isHoho2 = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(455), (float)this.GetPix(50), (float)this.GetPix(20)), isHoho2, "赤面", style4);
  8084. isShock = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(60), (float)this.GetPix(455), (float)this.GetPix(70), (float)this.GetPix(20)), isShock, "ショック", style4);
  8085. isNamida = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(480), (float)this.GetPix(50), (float)this.GetPix(20)), isNamida, "涙", style4);
  8086. isYodare = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(60), (float)this.GetPix(480), (float)this.GetPix(50), (float)this.GetPix(20)), isYodare, "涎", style4);
  8087. isTear1 = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(505), (float)this.GetPix(50), (float)this.GetPix(20)), isTear1, "涙1", style4);
  8088. isTear2 = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(60), (float)this.GetPix(505), (float)this.GetPix(50), (float)this.GetPix(20)), isTear2, "涙2", style4);
  8089. isTear3 = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(115), (float)this.GetPix(505), (float)this.GetPix(50), (float)this.GetPix(20)), isTear3, "涙3", style4);
  8090. isHohos = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(530), (float)this.GetPix(50), (float)this.GetPix(20)), isHohos, "頬1", style4);
  8091. isHoho = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(60), (float)this.GetPix(530), (float)this.GetPix(50), (float)this.GetPix(20)), isHoho, "頬2", style4);
  8092. isHohol = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(115), (float)this.GetPix(530), (float)this.GetPix(50), (float)this.GetPix(20)), isHohol, "頬3", style4);
  8093. }
  8094. else
  8095. {
  8096. int i1 = 120;
  8097. int i2 = 135;
  8098. int num = 28;
  8099. GUI.Label(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(i1), (float)this.GetPix(100), (float)this.GetPix(25)), "目の開閉", style2);
  8100. eyeclose = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(i2), (float)this.GetPix(70), (float)this.GetPix(20)), eyeclose, 0.0f, 1f);
  8101. GUI.Label(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(i1), (float)this.GetPix(100), (float)this.GetPix(25)), "にっこり", style2);
  8102. eyeclose2 = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(i2), (float)this.GetPix(70), (float)this.GetPix(20)), eyeclose2, 0.0f, 1f);
  8103. GUI.Label(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(i1 + num), (float)this.GetPix(100), (float)this.GetPix(25)), "ジト目", style2);
  8104. eyeclose3 = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(i2 + num), (float)this.GetPix(70), (float)this.GetPix(20)), eyeclose3, 0.0f, 1f);
  8105. GUI.Label(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(i1 + num), (float)this.GetPix(100), (float)this.GetPix(25)), "見開く", style2);
  8106. eyebig = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(i2 + num), (float)this.GetPix(70), (float)this.GetPix(20)), eyebig, 0.0f, 1f);
  8107. GUI.Label(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(i1 + num * 2), (float)this.GetPix(100), (float)this.GetPix(25)), "ウインク1", style2);
  8108. eyeclose6 = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(i2 + num * 2), (float)this.GetPix(70), (float)this.GetPix(20)), eyeclose6, 0.0f, 1f);
  8109. GUI.Label(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(i1 + num * 2), (float)this.GetPix(100), (float)this.GetPix(25)), "ウインク2", style2);
  8110. eyeclose5 = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(i2 + num * 2), (float)this.GetPix(70), (float)this.GetPix(20)), eyeclose5, 0.0f, 1f);
  8111. GUI.Label(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(i1 + num * 3), (float)this.GetPix(100), (float)this.GetPix(25)), "ハイライト", style2);
  8112. hitomih = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(i2 + num * 3), (float)this.GetPix(70), (float)this.GetPix(20)), hitomih, 0.0f, 2f);
  8113. GUI.Label(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(i1 + num * 3), (float)this.GetPix(100), (float)this.GetPix(25)), "瞳サイズ", style2);
  8114. hitomis = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(i2 + num * 3), (float)this.GetPix(70), (float)this.GetPix(20)), hitomis, 0.0f, 1f);
  8115. GUI.Label(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(i1 + num * 4), (float)this.GetPix(100), (float)this.GetPix(25)), "眉角度1", style2);
  8116. mayuha = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(i2 + num * 4), (float)this.GetPix(70), (float)this.GetPix(20)), mayuha, 0.0f, 1f);
  8117. GUI.Label(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(i1 + num * 4), (float)this.GetPix(100), (float)this.GetPix(25)), "眉角度2", style2);
  8118. mayuw = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(i2 + num * 4), (float)this.GetPix(70), (float)this.GetPix(20)), mayuw, 0.0f, 1f);
  8119. GUI.Label(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(i1 + num * 5), (float)this.GetPix(100), (float)this.GetPix(25)), "眉上げ", style2);
  8120. mayuup = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(i2 + num * 5), (float)this.GetPix(70), (float)this.GetPix(20)), mayuup, 0.0f, 0.8f);
  8121. GUI.Label(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(i1 + num * 5), (float)this.GetPix(100), (float)this.GetPix(25)), "眉下げ1", style2);
  8122. mayuv = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(i2 + num * 5), (float)this.GetPix(70), (float)this.GetPix(20)), mayuv, 0.0f, 0.8f);
  8123. GUI.Label(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(i1 + num * 6), (float)this.GetPix(100), (float)this.GetPix(25)), "眉下げ2", style2);
  8124. mayuvhalf = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(i2 + num * 6), (float)this.GetPix(70), (float)this.GetPix(20)), mayuvhalf, 0.0f, 0.9f);
  8125. GUI.Label(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(i1 + num * 7), (float)this.GetPix(100), (float)this.GetPix(25)), "口開け1", style2);
  8126. moutha = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(i2 + num * 7), (float)this.GetPix(70), (float)this.GetPix(20)), moutha, 0.0f, 1f);
  8127. GUI.Label(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(i1 + num * 7), (float)this.GetPix(100), (float)this.GetPix(25)), "口開け2", style2);
  8128. mouths = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(i2 + num * 7), (float)this.GetPix(70), (float)this.GetPix(20)), mouths, 0.0f, 0.9f);
  8129. GUI.Label(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(i1 + num * 8), (float)this.GetPix(100), (float)this.GetPix(25)), "口幅狭く", style2);
  8130. mouthc = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(i2 + num * 8), (float)this.GetPix(70), (float)this.GetPix(20)), mouthc, 0.0f, 1f);
  8131. GUI.Label(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(i1 + num * 8), (float)this.GetPix(100), (float)this.GetPix(25)), "口幅広く", style2);
  8132. mouthi = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(i2 + num * 8), (float)this.GetPix(70), (float)this.GetPix(20)), mouthi, 0.0f, 1f);
  8133. GUI.Label(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(i1 + num * 9), (float)this.GetPix(100), (float)this.GetPix(25)), "口角上げ", style2);
  8134. mouthup = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(i2 + num * 9), (float)this.GetPix(70), (float)this.GetPix(20)), mouthup, 0.0f, 1.4f);
  8135. GUI.Label(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(i1 + num * 9), (float)this.GetPix(100), (float)this.GetPix(25)), "口角下げ", style2);
  8136. mouthdw = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(i2 + num * 9), (float)this.GetPix(70), (float)this.GetPix(20)), mouthdw, 0.0f, 1f);
  8137. GUI.Label(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(i1 + num * 10), (float)this.GetPix(100), (float)this.GetPix(25)), "口中央上げ", style2);
  8138. mouthhe = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(i2 + num * 10), (float)this.GetPix(70), (float)this.GetPix(20)), mouthhe, 0.0f, 1f);
  8139. GUI.Label(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(i1 + num * 10), (float)this.GetPix(100), (float)this.GetPix(25)), "左口角上げ", style2);
  8140. mouthuphalf = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(i2 + num * 10), (float)this.GetPix(70), (float)this.GetPix(20)), mouthuphalf, 0.0f, 2f);
  8141. GUI.Label(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(i1 + num * 11), (float)this.GetPix(100), (float)this.GetPix(25)), "舌出し", style2);
  8142. tangout = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(i2 + num * 11), (float)this.GetPix(70), (float)this.GetPix(20)), tangout, 0.0f, 1f);
  8143. GUI.Label(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(i1 + num * 11), (float)this.GetPix(100), (float)this.GetPix(25)), "舌上げ", style2);
  8144. tangup = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(88), (float)this.GetPix(i2 + num * 11), (float)this.GetPix(70), (float)this.GetPix(20)), tangup, 0.0f, 0.7f);
  8145. GUI.Label(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(i1 + num * 12), (float)this.GetPix(100), (float)this.GetPix(25)), "舌根上げ", style2);
  8146. tangopen = GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(i2 + num * 12), (float)this.GetPix(70), (float)this.GetPix(20)), tangopen, 0.0f, 1f);
  8147. bool enabled = GUI.enabled;
  8148. if (!faceCombo.isClickedComboButton)
  8149. GUI.enabled = true;
  8150. GUI.enabled = enabled;
  8151. isHoho2 = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(489), (float)this.GetPix(50), (float)this.GetPix(16)), isHoho2, "赤面", style4);
  8152. isShock = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(60), (float)this.GetPix(489), (float)this.GetPix(58), (float)this.GetPix(16)), isShock, "ショック", style4);
  8153. isNosefook = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(115), (float)this.GetPix(489), (float)this.GetPix(62), (float)this.GetPix(16)), isNosefook, "鼻フック", style4);
  8154. isNamida = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(511), (float)this.GetPix(50), (float)this.GetPix(16)), isNamida, "涙", style4);
  8155. isYodare = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(60), (float)this.GetPix(511), (float)this.GetPix(50), (float)this.GetPix(16)), isYodare, "涎", style4);
  8156. isToothoff = !GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(115), (float)this.GetPix(511), (float)this.GetPix(50), (float)this.GetPix(16)), !isToothoff, "歯", style4);
  8157. isTear1 = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(533), (float)this.GetPix(50), (float)this.GetPix(16)), isTear1, "涙1", style4);
  8158. isTear2 = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(60), (float)this.GetPix(533), (float)this.GetPix(50), (float)this.GetPix(16)), isTear2, "涙2", style4);
  8159. isTear3 = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(115), (float)this.GetPix(533), (float)this.GetPix(50), (float)this.GetPix(16)), isTear3, "涙3", style4);
  8160. isHohos = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(555), (float)this.GetPix(50), (float)this.GetPix(16)), isHohos, "頬1", style4);
  8161. isHoho = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(60), (float)this.GetPix(555), (float)this.GetPix(50), (float)this.GetPix(16)), isHoho, "頬2", style4);
  8162. isHohol = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(115), (float)this.GetPix(555), (float)this.GetPix(50), (float)this.GetPix(16)), isHohol, "頬3", style4);
  8163. }
  8164. int num1 = 0;
  8165. if (isShosai)
  8166. num1 = 22;
  8167. isFaceEdit = GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(555 + num1), (float)this.GetPix(50), (float)this.GetPix(16)), isFaceEdit, "登録", style4);
  8168. if (isFaceEdit)
  8169. {
  8170. inName4 = GUI.TextField(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(575 + num1), (float)this.GetPix(100), (float)this.GetPix(20)), inName4);
  8171. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(107), (float)this.GetPix(575 + num1), (float)this.GetPix(35), (float)this.GetPix(20)), "追加", style3))
  8172. {
  8173. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  8174. GUI.FocusControl("");
  8175. int num2 = 1;
  8176. for (int index = 1; index < 1000; ++index)
  8177. {
  8178. if (this.Preferences["face"]["f" + (object)index].Value == null)
  8179. {
  8180. num2 = index;
  8181. break;
  8182. }
  8183. }
  8184. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  8185. float[] fieldValue1 = CM3D2.MultipleMaids.Plugin.MultipleMaids.GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  8186. float[] fieldValue2 = CM3D2.MultipleMaids.Plugin.MultipleMaids.GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  8187. string str1 = inName4 + ":" + (object)fieldValue2[(int)morph.hash[(object)"eyeclose"]] + "," + (object)fieldValue2[(int)morph.hash[(object)"eyeclose2"]] + "," + (object)fieldValue2[(int)morph.hash[(object)"eyeclose3"]] + "," + (object)fieldValue2[(int)morph.hash[(object)"eyeclose6"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"hitomih"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"hitomis"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"mayuha"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"mayuup"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"mayuv"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"mayuvhalf"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"moutha"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"mouths"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"mouthdw"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"mouthup"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"tangout"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"tangup"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"eyebig"]] + "," + (object)fieldValue2[(int)morph.hash[(object)"eyeclose5"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"mayuw"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"mouthhe"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"mouthc"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"mouthi"]] + "," + (object)fieldValue1[(int)morph.hash[(object)"mouthuphalf"]] + ",";
  8188. string str2;
  8189. try
  8190. {
  8191. str2 = str1 + (object)fieldValue1[(int)morph.hash[(object)"tangopen"]] + ",";
  8192. }
  8193. catch
  8194. {
  8195. str2 = str1 + "0,";
  8196. }
  8197. string str3 = (double)fieldValue1[(int)morph.hash[(object)"namida"]] <= 0.0 ? str2 + (object)0 + "," : str2 + (object)1 + ",";
  8198. string str4 = (double)fieldValue1[(int)morph.hash[(object)"tear1"]] <= 0.0 ? str3 + (object)0 + "," : str3 + (object)1 + ",";
  8199. string str5 = (double)fieldValue1[(int)morph.hash[(object)"tear2"]] <= 0.0 ? str4 + (object)0 + "," : str4 + (object)1 + ",";
  8200. string str6 = (double)fieldValue1[(int)morph.hash[(object)"tear3"]] <= 0.0 ? str5 + (object)0 + "," : str5 + (object)1 + ",";
  8201. string str7 = (double)fieldValue1[(int)morph.hash[(object)"shock"]] <= 0.0 ? str6 + (object)0 + "," : str6 + (object)1 + ",";
  8202. string str8 = (double)fieldValue1[(int)morph.hash[(object)"yodare"]] <= 0.0 ? str7 + (object)0 + "," : str7 + (object)1 + ",";
  8203. string str9 = (double)fieldValue1[(int)morph.hash[(object)"hoho"]] <= 0.0 ? str8 + (object)0 + "," : str8 + (object)1 + ",";
  8204. string str10 = (double)fieldValue1[(int)morph.hash[(object)"hoho2"]] <= 0.0 ? str9 + (object)0 + "," : str9 + (object)1 + ",";
  8205. string str11 = (double)fieldValue1[(int)morph.hash[(object)"hohos"]] <= 0.0 ? str10 + (object)0 + "," : str10 + (object)1 + ",";
  8206. string str12 = (double)fieldValue1[(int)morph.hash[(object)"hohol"]] <= 0.0 ? str11 + (object)0 + "," : str11 + (object)1 + ",";
  8207. string str13 = (double)fieldValue1[(int)morph.hash[(object)"toothoff"]] <= 0.0 ? str12 + (object)0 + "," : str12 + (object)1 + ",";
  8208. string str14 = (double)fieldValue1[(int)morph.hash[(object)"nosefook"]] <= 0.0 ? str13 + (object)0 + ":" : str13 + (object)1 + ":";
  8209. this.Preferences["face"]["f" + (object)num2].Value = str14;
  8210. this.SaveConfig();
  8211. List<string> stringList = new List<string>(300);
  8212. stringList.AddRange((IEnumerable<string>)faceArray);
  8213. for (int index = 1; index < 300; ++index)
  8214. {
  8215. IniKey iniKey = this.Preferences["face"]["f" + (object)index];
  8216. if (iniKey.Value != null)
  8217. {
  8218. string[] strArray = iniKey.Value.Split(':');
  8219. if (strArray.Length > 1)
  8220. stringList.Add(strArray[0] + "               :" + (object)index + ":" + strArray[1]);
  8221. }
  8222. else
  8223. break;
  8224. }
  8225. faceCombo.selectedItemIndex = 0;
  8226. faceComboList = new GUIContent[stringList.ToArray().Length];
  8227. for (int index = 0; index < stringList.ToArray().Length; ++index)
  8228. faceComboList[index] = new GUIContent(stringList.ToArray()[index]);
  8229. faceCombo.selectedItemIndex = stringList.ToArray().Length - 1;
  8230. inName4 = "";
  8231. }
  8232. if (faceIndex[selectMaidIndex] < faceArray.Length)
  8233. GUI.enabled = false;
  8234. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(144), (float)this.GetPix(575 + num1), (float)this.GetPix(24), (float)this.GetPix(20)), "削", style3))
  8235. {
  8236. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  8237. this.Preferences["face"]["f" + faceComboList[faceIndex[selectMaidIndex]].text.Split(':')[1]].Value = "del";
  8238. this.SaveConfig();
  8239. List<string> stringList = new List<string>(300);
  8240. stringList.AddRange((IEnumerable<string>)faceArray);
  8241. for (int index = 1; index < 300; ++index)
  8242. {
  8243. IniKey iniKey = this.Preferences["face"]["f" + (object)index];
  8244. if (iniKey.Value != null)
  8245. {
  8246. string[] strArray = iniKey.Value.Split(':');
  8247. if (strArray.Length > 1)
  8248. stringList.Add(strArray[0] + "               :" + (object)index + ":" + strArray[1]);
  8249. }
  8250. else
  8251. break;
  8252. }
  8253. faceCombo.selectedItemIndex = 0;
  8254. faceComboList = new GUIContent[stringList.ToArray().Length];
  8255. for (int index = 0; index < stringList.ToArray().Length; ++index)
  8256. faceComboList[index] = new GUIContent(stringList.ToArray()[index]);
  8257. faceCombo.selectedItemIndex = 0;
  8258. for (int index = 0; index < maidCnt; ++index)
  8259. {
  8260. if ((bool)((Object)maidArray[index]) && maidArray[index].Visible && stringList.ToArray().Length <= faceIndex[index])
  8261. faceIndex[index] = 0;
  8262. }
  8263. }
  8264. GUI.enabled = true;
  8265. }
  8266. if (faceCombo.isClickedComboButton)
  8267. GUI.enabled = true;
  8268. if (isFace[selectMaidIndex])
  8269. faceIndex[selectMaidIndex] = faceCombo.List(new UnityEngine.Rect((float)this.GetPix(35), (float)this.GetPix(95), (float)this.GetPix(95), (float)this.GetPix(23)), faceComboList[faceIndex[selectMaidIndex]].text, faceComboList, buttonStyle, (GUIStyle)"box", listStyle2);
  8270. else
  8271. faceCombo.List(new UnityEngine.Rect((float)this.GetPix(35), (float)this.GetPix(95), (float)this.GetPix(95), (float)this.GetPix(23)), faceComboList[faceIndex[selectMaidIndex]].text, faceComboList, buttonStyle, (GUIStyle)"box", listStyle2);
  8272. if (faceCombo.isClickedComboButton)
  8273. isCombo = true;
  8274. else if (isCombo)
  8275. {
  8276. isCombo = false;
  8277. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  8278. float[] fieldValue1 = CM3D2.MultipleMaids.Plugin.MultipleMaids.GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  8279. morph.EyeMabataki = 0.0f;
  8280. if (faceIndex[selectMaidIndex] < faceArray.Length)
  8281. {
  8282. morph.MulBlendValues(faceArray[faceIndex[selectMaidIndex]], 1f);
  8283. }
  8284. else
  8285. {
  8286. float[] fieldValue2 = CM3D2.MultipleMaids.Plugin.MultipleMaids.GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  8287. if (!isVR)
  8288. maidArray[selectMaidIndex].boMabataki = false;
  8289. string[] strArray = faceComboList[faceIndex[selectMaidIndex]].text.Split(':')[2].Split(',');
  8290. fieldValue2[(int)morph.hash[(object)"eyeclose"]] = float.Parse(strArray[0]);
  8291. fieldValue2[(int)morph.hash[(object)"eyeclose2"]] = float.Parse(strArray[1]);
  8292. fieldValue2[(int)morph.hash[(object)"eyeclose3"]] = float.Parse(strArray[2]);
  8293. fieldValue2[(int)morph.hash[(object)"eyeclose6"]] = float.Parse(strArray[3]);
  8294. fieldValue1[(int)morph.hash[(object)"hitomih"]] = float.Parse(strArray[4]);
  8295. fieldValue1[(int)morph.hash[(object)"hitomis"]] = float.Parse(strArray[5]);
  8296. fieldValue1[(int)morph.hash[(object)"mayuha"]] = float.Parse(strArray[6]);
  8297. fieldValue1[(int)morph.hash[(object)"mayuup"]] = float.Parse(strArray[7]);
  8298. fieldValue1[(int)morph.hash[(object)"mayuv"]] = float.Parse(strArray[8]);
  8299. fieldValue1[(int)morph.hash[(object)"mayuvhalf"]] = float.Parse(strArray[9]);
  8300. fieldValue1[(int)morph.hash[(object)"moutha"]] = float.Parse(strArray[10]);
  8301. fieldValue1[(int)morph.hash[(object)"mouths"]] = float.Parse(strArray[11]);
  8302. fieldValue1[(int)morph.hash[(object)"mouthdw"]] = float.Parse(strArray[12]);
  8303. fieldValue1[(int)morph.hash[(object)"mouthup"]] = float.Parse(strArray[13]);
  8304. fieldValue1[(int)morph.hash[(object)"tangout"]] = float.Parse(strArray[14]);
  8305. fieldValue1[(int)morph.hash[(object)"tangup"]] = float.Parse(strArray[15]);
  8306. fieldValue1[(int)morph.hash[(object)"eyebig"]] = float.Parse(strArray[16]);
  8307. fieldValue2[(int)morph.hash[(object)"eyeclose5"]] = float.Parse(strArray[17]);
  8308. fieldValue1[(int)morph.hash[(object)"mayuw"]] = float.Parse(strArray[18]);
  8309. fieldValue1[(int)morph.hash[(object)"mouthhe"]] = float.Parse(strArray[19]);
  8310. fieldValue1[(int)morph.hash[(object)"mouthc"]] = float.Parse(strArray[20]);
  8311. fieldValue1[(int)morph.hash[(object)"mouthi"]] = float.Parse(strArray[21]);
  8312. fieldValue1[(int)morph.hash[(object)"mouthuphalf"]] = float.Parse(strArray[22]) + 0.01f;
  8313. try
  8314. {
  8315. fieldValue1[(int)morph.hash[(object)"tangopen"]] = float.Parse(strArray[23]);
  8316. }
  8317. catch
  8318. {
  8319. }
  8320. if ((double)float.Parse(strArray[24]) == 1.0)
  8321. fieldValue1[(int)morph.hash[(object)"namida"]] = 1f;
  8322. else
  8323. fieldValue1[(int)morph.hash[(object)"namida"]] = 0.0f;
  8324. if ((double)float.Parse(strArray[25]) == 1.0)
  8325. fieldValue1[(int)morph.hash[(object)"tear1"]] = 1f;
  8326. else
  8327. fieldValue1[(int)morph.hash[(object)"tear1"]] = 0.0f;
  8328. if ((double)float.Parse(strArray[26]) == 1.0)
  8329. fieldValue1[(int)morph.hash[(object)"tear2"]] = 1f;
  8330. else
  8331. fieldValue1[(int)morph.hash[(object)"tear2"]] = 0.0f;
  8332. if ((double)float.Parse(strArray[27]) == 1.0)
  8333. fieldValue1[(int)morph.hash[(object)"tear3"]] = 1f;
  8334. else
  8335. fieldValue1[(int)morph.hash[(object)"tear3"]] = 0.0f;
  8336. if ((double)float.Parse(strArray[28]) == 1.0)
  8337. fieldValue1[(int)morph.hash[(object)"shock"]] = 1f;
  8338. else
  8339. fieldValue1[(int)morph.hash[(object)"shock"]] = 0.0f;
  8340. if ((double)float.Parse(strArray[29]) == 1.0)
  8341. fieldValue1[(int)morph.hash[(object)"yodare"]] = 1f;
  8342. else
  8343. fieldValue1[(int)morph.hash[(object)"yodare"]] = 0.0f;
  8344. if ((double)float.Parse(strArray[30]) == 1.0)
  8345. fieldValue1[(int)morph.hash[(object)"hoho"]] = 0.5f;
  8346. else
  8347. fieldValue1[(int)morph.hash[(object)"hoho"]] = 0.0f;
  8348. if ((double)float.Parse(strArray[31]) == 1.0)
  8349. fieldValue1[(int)morph.hash[(object)"hoho2"]] = 0.5f;
  8350. else
  8351. fieldValue1[(int)morph.hash[(object)"hoho2"]] = 0.0f;
  8352. if ((double)float.Parse(strArray[32]) == 1.0)
  8353. fieldValue1[(int)morph.hash[(object)"hohos"]] = 1f;
  8354. else
  8355. fieldValue1[(int)morph.hash[(object)"hohos"]] = 0.0f;
  8356. if ((double)float.Parse(strArray[33]) == 1.0)
  8357. fieldValue1[(int)morph.hash[(object)"hohol"]] = 1f;
  8358. else
  8359. fieldValue1[(int)morph.hash[(object)"hohol"]] = 0.0f;
  8360. if ((double)float.Parse(strArray[34]) == 1.0)
  8361. fieldValue1[(int)morph.hash[(object)"toothoff"]] = 1f;
  8362. else
  8363. fieldValue1[(int)morph.hash[(object)"toothoff"]] = 0.0f;
  8364. if (strArray.Length > 35)
  8365. morph.boNoseFook = (double)float.Parse(strArray[35]) == 1.0;
  8366. }
  8367. maidArray[selectMaidIndex].body0.Face.morph.FixBlendValues_Face();
  8368. isFaceInit = true;
  8369. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  8370. }
  8371. GUI.enabled = !faceCombo.isClickedComboButton;
  8372. yotogiFlg = false;
  8373. if (sceneLevel != 14 || !(bool)((Object)GameObject.Find("/UI Root/YotogiPlayPanel/CommandViewer/SkillViewer/MaskGroup/SkillGroup/CommandParent/CommandUnit")))
  8374. return;
  8375. yotogiFlg = true;
  8376. }
  8377. private void GuiFunc(int winID)
  8378. {
  8379. CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
  8380. GUIStyle style1 = (GUIStyle)"label";
  8381. style1.fontSize = this.GetPix(14);
  8382. style1.alignment = TextAnchor.UpperLeft;
  8383. GUIStyle style2 = (GUIStyle)"button";
  8384. style2.fontSize = this.GetPix(16);
  8385. style2.alignment = TextAnchor.MiddleCenter;
  8386. GUIStyle style3 = new GUIStyle((GUIStyle)"toggle");
  8387. style3.fontSize = this.GetPix(13);
  8388. float pix = (float)this.GetPix(70);
  8389. if (comboBoxList == null)
  8390. {
  8391. comboBoxControl.selectedItemIndex = 0;
  8392. comboBoxList = new GUIContent[11];
  8393. comboBoxList[0] = new GUIContent("通常");
  8394. comboBoxList[1] = new GUIContent("横一列");
  8395. comboBoxList[2] = new GUIContent("縦一列");
  8396. comboBoxList[3] = new GUIContent("斜め");
  8397. comboBoxList[4] = new GUIContent("円(外向き)");
  8398. comboBoxList[5] = new GUIContent("円(内向き)");
  8399. comboBoxList[6] = new GUIContent("扇");
  8400. comboBoxList[7] = new GUIContent("V");
  8401. comboBoxList[8] = new GUIContent("^");
  8402. comboBoxList[9] = new GUIContent("M");
  8403. comboBoxList[10] = new GUIContent("W");
  8404. }
  8405. bool flag1 = true;
  8406. if (faceFlg || poseFlg || (sceneFlg || kankyoFlg) || kankyo2Flg)
  8407. flag1 = false;
  8408. if (!isF6 && GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(2), (float)this.GetPix(2), (float)this.GetPix(39), (float)this.GetPix(20)), flag1, "配置", style3))
  8409. {
  8410. faceFlg = false;
  8411. poseFlg = false;
  8412. sceneFlg = false;
  8413. kankyoFlg = false;
  8414. kankyo2Flg = false;
  8415. bGui = true;
  8416. isGuiInit = true;
  8417. }
  8418. if (!yotogiFlg && GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(41), (float)this.GetPix(2), (float)this.GetPix(39), (float)this.GetPix(20)), poseFlg, "操作", style3))
  8419. {
  8420. poseFlg = true;
  8421. faceFlg = false;
  8422. sceneFlg = false;
  8423. kankyoFlg = false;
  8424. kankyo2Flg = false;
  8425. }
  8426. if (GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(80), (float)this.GetPix(2), (float)this.GetPix(39), (float)this.GetPix(20)), faceFlg, "表情", style3))
  8427. {
  8428. faceFlg = true;
  8429. poseFlg = false;
  8430. sceneFlg = false;
  8431. kankyoFlg = false;
  8432. kankyo2Flg = false;
  8433. if (!faceFlg2)
  8434. {
  8435. isFaceInit = true;
  8436. faceFlg2 = true;
  8437. maidArray[selectMaidIndex].boMabataki = false;
  8438. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  8439. }
  8440. }
  8441. if (GUI.Toggle(new UnityEngine.Rect((float)this.GetPix(119), (float)this.GetPix(2), (float)this.GetPix(39), (float)this.GetPix(20)), kankyoFlg, "環境", style3))
  8442. {
  8443. poseFlg = false;
  8444. faceFlg = false;
  8445. sceneFlg = false;
  8446. kankyoFlg = true;
  8447. kankyo2Flg = false;
  8448. }
  8449. if (!(bool)((Object)line1))
  8450. {
  8451. line1 = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.3f));
  8452. line2 = this.MakeTex(2, 2, new Color(0.7f, 0.7f, 0.7f, 0.6f));
  8453. }
  8454. GUI.DrawTexture(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(20), (float)this.GetPix(160), 2f), (Texture)line1);
  8455. GUI.DrawTexture(new UnityEngine.Rect((float)this.GetPix(5), (float)this.GetPix(20), (float)this.GetPix(160), 1f), (Texture)line2);
  8456. int stockMaidCount1 = characterMgr.GetStockMaidCount();
  8457. UnityEngine.Rect position;
  8458. UnityEngine.Rect viewRect;
  8459. if (sceneLevel != 5)
  8460. {
  8461. position = new UnityEngine.Rect((float)this.GetPix(7), (float)this.GetPix(110), rectWin.width - (float)this.GetPix(14), rectWin.height * 0.83f);
  8462. viewRect = new UnityEngine.Rect(0.0f, 0.0f, position.width * 0.85f, (pix + (float)this.GetPix(5)) * (float)stockMaidCount1 + (float)this.GetPix(15));
  8463. }
  8464. else
  8465. {
  8466. position = new UnityEngine.Rect((float)this.GetPix(7), (float)this.GetPix(110), rectWin.width - (float)this.GetPix(14), (float)((double)rectWin.height * 0.829999983310699 * 0.980000019073486));
  8467. viewRect = new UnityEngine.Rect(0.0f, 0.0f, position.width * 0.85f, (float)(((double)pix + (double)this.GetPix(5)) * (double)stockMaidCount1 + (double)this.GetPix(15) * 0.920000016689301));
  8468. }
  8469. float y = 0.0f;
  8470. if (comboBoxControl.isClickedComboButton)
  8471. GUI.enabled = false;
  8472. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(10), (float)this.GetPix(78), rectWin.width * 0.85f, (float)this.GetPix(28)), "呼び出す", style2))
  8473. {
  8474. isYobidashi = true;
  8475. selectMaidIndex = 0;
  8476. copyIndex = 0;
  8477. for (int index = 0; index < maxMaidCnt; ++index)
  8478. {
  8479. if (!isLock[index] && ((bool)((Object)maidArray[index]) && maidArray[index].Visible))
  8480. {
  8481. maidArray[index].CrossFade(poseArray[0] + ".anm", false, true, false, 0.0f, 1f);
  8482. maidArray[index].SetAutoTwistAll(true);
  8483. }
  8484. maidArray[index] = (Maid)null;
  8485. }
  8486. for (int index = 0; index < maxMaidCnt; ++index)
  8487. isStop[index] = false;
  8488. bGui = false;
  8489. isFadeOut = true;
  8490. GameMain.Instance.MainCamera.FadeOut(0.0f, false, (CameraMain.dgOnCompleteFade)null, true, new Color());
  8491. for (int index = 0; index < characterMgr.GetStockMaidCount(); ++index)
  8492. characterMgr.GetStockMaidList()[index].Visible = false;
  8493. }
  8494. GUIStyle style4 = (GUIStyle)"button";
  8495. style4.fontSize = this.GetPix(13);
  8496. GUIStyleState guiStyleState = new GUIStyleState();
  8497. if (GUI.Button(new UnityEngine.Rect((float)this.GetPix(10), (float)this.GetPix(52), rectWin.width * 0.4f, (float)this.GetPix(23)), "7人選択", style4))
  8498. {
  8499. if (sceneLevel != 5)
  8500. {
  8501. selectList = new ArrayList();
  8502. selectList.Add((object)0);
  8503. selectList.Add((object)1);
  8504. selectList.Add((object)2);
  8505. selectList.Add((object)3);
  8506. selectList.Add((object)4);
  8507. selectList.Add((object)5);
  8508. selectList.Add((object)6);
  8509. }
  8510. else
  8511. {
  8512. int stockMaidCount2 = characterMgr.GetStockMaidCount();
  8513. selectList = new ArrayList();
  8514. selectList.Add((object)editMaid);
  8515. if (stockMaidCount2 > 1)
  8516. {
  8517. if (editMaid >= 1)
  8518. selectList.Add((object)0);
  8519. else if (stockMaidCount2 > 2)
  8520. selectList.Add((object)1);
  8521. }
  8522. if (stockMaidCount2 > 2)
  8523. {
  8524. if (editMaid >= 2)
  8525. selectList.Add((object)1);
  8526. else if (stockMaidCount2 > 3)
  8527. selectList.Add((object)2);
  8528. }
  8529. if (stockMaidCount2 > 3)
  8530. {
  8531. if (editMaid >= 3)
  8532. selectList.Add((object)2);
  8533. else if (stockMaidCount2 > 4)
  8534. selectList.Add((object)3);
  8535. }
  8536. if (stockMaidCount2 > 4)
  8537. {
  8538. if (editMaid >= 4)
  8539. selectList.Add((object)3);
  8540. else if (stockMaidCount2 > 5)
  8541. selectList.Add((object)4);
  8542. }
  8543. if (stockMaidCount2 > 5)
  8544. {
  8545. if (editMaid >= 5)
  8546. selectList.Add((object)4);
  8547. else if (stockMaidCount2 > 6)
  8548. selectList.Add((object)5);
  8549. }
  8550. if (stockMaidCount2 > 6)
  8551. {
  8552. if (editMaid >= 6)
  8553. selectList.Add((object)5);
  8554. else if (stockMaidCount2 > 7)
  8555. selectList.Add((object)6);
  8556. }
  8557. }
  8558. }
  8559. if (GUI.Button(new UnityEngine.Rect(rectWin.width * 0.5f, (float)this.GetPix(52), rectWin.width * 0.4f, (float)this.GetPix(23)), "選択解除", style4))
  8560. {
  8561. selectList = new ArrayList();
  8562. if (sceneLevel == 5)
  8563. selectList.Add((object)editMaid);
  8564. }
  8565. GUI.enabled = true;
  8566. scrollPos = GUI.BeginScrollView(position, scrollPos, viewRect);
  8567. for (int nStockNo = 0; nStockNo < characterMgr.GetStockMaidCount(); ++nStockNo)
  8568. {
  8569. GUI.enabled = true;
  8570. GUI.DrawTexture(new UnityEngine.Rect(2f, y + 2f, (float)((double)rectWin.width * 0.829999983310699 - 4.0), pix - 4f), (Texture)Texture2D.whiteTexture);
  8571. bool flag2 = false;
  8572. for (int index = 0; index < selectList.Count; ++index)
  8573. {
  8574. if ((int)selectList[index] == nStockNo)
  8575. {
  8576. flag2 = true;
  8577. break;
  8578. }
  8579. }
  8580. if (comboBoxControl.isClickedComboButton)
  8581. {
  8582. GUI.enabled = false;
  8583. GUI.Button(new UnityEngine.Rect(0.0f, y, rectWin.width * 0.83f, pix), "", style2);
  8584. GUI.Button(new UnityEngine.Rect(0.0f, y, rectWin.width * 0.83f, pix), "", style2);
  8585. }
  8586. if (GUI.Button(new UnityEngine.Rect(0.0f, y, rectWin.width * 0.83f, pix), "", style2))
  8587. {
  8588. if (flag2)
  8589. {
  8590. for (int index = 0; index < selectList.Count; ++index)
  8591. {
  8592. if ((int)selectList[index] == nStockNo && (sceneLevel != 5 || (int)selectList[index] != editMaid))
  8593. {
  8594. selectList.Remove((object)nStockNo);
  8595. break;
  8596. }
  8597. }
  8598. }
  8599. else
  8600. {
  8601. if (selectList.Count > maxMaidCnt - 1)
  8602. selectList.Remove(selectList[maxMaidCnt - 1]);
  8603. selectList.Add((object)nStockNo);
  8604. }
  8605. }
  8606. GUI.enabled = true;
  8607. if (flag2)
  8608. GUI.DrawTexture(new UnityEngine.Rect(5f, y + 5f, (float)((double)rectWin.width * 0.829999983310699 - 10.0), pix - 10f), (Texture)Texture2D.whiteTexture);
  8609. if ((bool)((Object)characterMgr.GetStockMaid(nStockNo).GetThumIcon()))
  8610. GUI.DrawTexture(new UnityEngine.Rect(0.0f, y - 5f, pix, pix), (Texture)characterMgr.GetStockMaid(nStockNo).GetThumIcon());
  8611. string text = characterMgr.GetStockMaid(nStockNo).status.lastName + "\n" + characterMgr.GetStockMaid(nStockNo).status.firstName;
  8612. guiStyleState.textColor = Color.black;
  8613. style1.normal = guiStyleState;
  8614. GUI.Label(new UnityEngine.Rect((float)this.GetPix(65), y + pix / 4f, pix * 2f, pix * 3f), text, style1);
  8615. if (flag2)
  8616. {
  8617. for (int index = 0; index < selectList.Count; ++index)
  8618. {
  8619. if ((int)selectList[index] == nStockNo)
  8620. {
  8621. GUI.Label(new UnityEngine.Rect(rectWin.width * 0.7f, y + 6f, pix, pix), (index + 1).ToString(), style1);
  8622. break;
  8623. }
  8624. }
  8625. }
  8626. y += pix + (float)this.GetPix(5);
  8627. }
  8628. GUI.EndScrollView();
  8629. guiStyleState.textColor = Color.white;
  8630. style1.normal = guiStyleState;
  8631. comboBoxControl.List(new UnityEngine.Rect((float)this.GetPix(10), (float)this.GetPix(25), rectWin.width * 0.56f, (float)this.GetPix(24)), comboBoxList[comboBoxControl.GetSelectedItemIndex()].text, comboBoxList, listStyle);
  8632. if (!GUI.Button(new UnityEngine.Rect(rectWin.width * 0.66f, (float)this.GetPix(25), rectWin.width * 0.24f, (float)this.GetPix(24)), "決定", style4))
  8633. return;
  8634. for (int index = 0; index < maxMaidCnt; ++index)
  8635. isStop[index] = false;
  8636. switch (comboBoxControl.GetSelectedItemIndex())
  8637. {
  8638. case 0:
  8639. for (int index = 0; index < maidCnt; ++index)
  8640. {
  8641. Vector3 zero1 = Vector3.zero;
  8642. Vector3 zero2 = Vector3.zero;
  8643. if (selectList.Count <= 7)
  8644. {
  8645. if (selectList.Count % 2 == 1)
  8646. {
  8647. switch (index)
  8648. {
  8649. case 0:
  8650. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.0f));
  8651. break;
  8652. case 1:
  8653. maidArray[index].SetPos(new Vector3(-0.6f, 0.0f, 0.26f));
  8654. break;
  8655. case 2:
  8656. maidArray[index].SetPos(new Vector3(0.6f, 0.0f, 0.26f));
  8657. break;
  8658. case 3:
  8659. maidArray[index].SetPos(new Vector3(-1.1f, 0.0f, 0.69f));
  8660. break;
  8661. case 4:
  8662. maidArray[index].SetPos(new Vector3(1.1f, 0.0f, 0.69f));
  8663. break;
  8664. case 5:
  8665. maidArray[index].SetPos(new Vector3(-1.47f, 0.0f, 1.1f));
  8666. break;
  8667. case 6:
  8668. maidArray[index].SetPos(new Vector3(1.47f, 0.0f, 1.1f));
  8669. break;
  8670. }
  8671. }
  8672. else
  8673. {
  8674. switch (index)
  8675. {
  8676. case 0:
  8677. maidArray[index].SetPos(new Vector3(0.3f, 0.0f, 0.0f));
  8678. break;
  8679. case 1:
  8680. maidArray[index].SetPos(new Vector3(-0.3f, 0.0f, 0.0f));
  8681. break;
  8682. case 2:
  8683. maidArray[index].SetPos(new Vector3(0.7f, 0.0f, 0.4f));
  8684. break;
  8685. case 3:
  8686. maidArray[index].SetPos(new Vector3(-0.7f, 0.0f, 0.4f));
  8687. break;
  8688. case 4:
  8689. maidArray[index].SetPos(new Vector3(1f, 0.0f, 0.9f));
  8690. break;
  8691. case 5:
  8692. maidArray[index].SetPos(new Vector3(-1f, 0.0f, 0.9f));
  8693. break;
  8694. }
  8695. }
  8696. }
  8697. else
  8698. {
  8699. float num1 = 0.0f;
  8700. if (selectList.Count >= 11)
  8701. {
  8702. float num2 = -0.4f;
  8703. if (selectList.Count % 2 == 1)
  8704. {
  8705. switch (index)
  8706. {
  8707. case 0:
  8708. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.0f + num2));
  8709. break;
  8710. case 1:
  8711. maidArray[index].SetPos(new Vector3(-0.5f, 0.0f, 0.2f + num2));
  8712. break;
  8713. case 2:
  8714. maidArray[index].SetPos(new Vector3(0.5f, 0.0f, 0.2f + num2));
  8715. break;
  8716. case 3:
  8717. maidArray[index].SetPos(new Vector3(-0.9f, 0.0f, 0.55f + num2));
  8718. break;
  8719. case 4:
  8720. maidArray[index].SetPos(new Vector3(0.9f, 0.0f, 0.55f + num2));
  8721. break;
  8722. case 5:
  8723. maidArray[index].SetPos(new Vector3(-1.25f, 0.0f, 0.9f + num2));
  8724. break;
  8725. case 6:
  8726. maidArray[index].SetPos(new Vector3(1.25f, 0.0f, 0.9f + num2));
  8727. break;
  8728. case 7:
  8729. maidArray[index].SetPos(new Vector3(-1.57f, 0.0f, 1.3f + num2));
  8730. break;
  8731. case 8:
  8732. maidArray[index].SetPos(new Vector3(1.57f, 0.0f, 1.3f + num2));
  8733. break;
  8734. case 9:
  8735. maidArray[index].SetPos(new Vector3(-1.77f, 0.0f, 1.72f + num2));
  8736. break;
  8737. case 10:
  8738. maidArray[index].SetPos(new Vector3(1.77f, 0.0f, 1.72f + num2));
  8739. break;
  8740. case 11:
  8741. maidArray[index].SetPos(new Vector3(-1.85f, 0.0f, 2.17f + num2));
  8742. break;
  8743. case 12:
  8744. maidArray[index].SetPos(new Vector3(1.85f, 0.0f, 2.17f + num2));
  8745. break;
  8746. default:
  8747. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f + num2));
  8748. break;
  8749. }
  8750. }
  8751. else
  8752. {
  8753. switch (index)
  8754. {
  8755. case 0:
  8756. maidArray[index].SetPos(new Vector3(0.25f, 0.0f, 0.0f + num2));
  8757. break;
  8758. case 1:
  8759. maidArray[index].SetPos(new Vector3(-0.25f, 0.0f, 0.0f + num2));
  8760. break;
  8761. case 2:
  8762. maidArray[index].SetPos(new Vector3(0.7f, 0.0f, 0.25f + num2));
  8763. break;
  8764. case 3:
  8765. maidArray[index].SetPos(new Vector3(-0.7f, 0.0f, 0.25f + num2));
  8766. break;
  8767. case 4:
  8768. maidArray[index].SetPos(new Vector3(1.05f, 0.0f, 0.6f + num2));
  8769. break;
  8770. case 5:
  8771. maidArray[index].SetPos(new Vector3(-1.05f, 0.0f, 0.6f + num2));
  8772. break;
  8773. case 6:
  8774. maidArray[index].SetPos(new Vector3(1.35f, 0.0f, 0.9f + num2));
  8775. break;
  8776. case 7:
  8777. maidArray[index].SetPos(new Vector3(-1.35f, 0.0f, 0.9f + num2));
  8778. break;
  8779. case 8:
  8780. maidArray[index].SetPos(new Vector3(1.6f, 0.0f, 1.3f + num2));
  8781. break;
  8782. case 9:
  8783. maidArray[index].SetPos(new Vector3(-1.6f, 0.0f, 1.3f + num2));
  8784. break;
  8785. case 10:
  8786. maidArray[index].SetPos(new Vector3(1.8f, 0.0f, 1.72f + num2));
  8787. break;
  8788. case 11:
  8789. maidArray[index].SetPos(new Vector3(-1.8f, 0.0f, 1.72f + num2));
  8790. break;
  8791. case 12:
  8792. maidArray[index].SetPos(new Vector3(1.9f, 0.0f, 2.17f + num2));
  8793. break;
  8794. case 13:
  8795. maidArray[index].SetPos(new Vector3(-1.9f, 0.0f, 2.17f + num2));
  8796. break;
  8797. default:
  8798. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f + num2));
  8799. break;
  8800. }
  8801. }
  8802. }
  8803. else if (selectList.Count >= 8)
  8804. {
  8805. if (selectList.Count >= 9)
  8806. num1 = -0.2f;
  8807. if (selectList.Count % 2 == 1)
  8808. {
  8809. switch (index)
  8810. {
  8811. case 0:
  8812. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.0f + num1));
  8813. break;
  8814. case 1:
  8815. maidArray[index].SetPos(new Vector3(-0.55f, 0.0f, 0.2f + num1));
  8816. break;
  8817. case 2:
  8818. maidArray[index].SetPos(new Vector3(0.55f, 0.0f, 0.2f + num1));
  8819. break;
  8820. case 3:
  8821. maidArray[index].SetPos(new Vector3(-1f, 0.0f, 0.6f + num1));
  8822. break;
  8823. case 4:
  8824. maidArray[index].SetPos(new Vector3(1f, 0.0f, 0.6f + num1));
  8825. break;
  8826. case 5:
  8827. maidArray[index].SetPos(new Vector3(-1.35f, 0.0f, 1f + num1));
  8828. break;
  8829. case 6:
  8830. maidArray[index].SetPos(new Vector3(1.35f, 0.0f, 1f + num1));
  8831. break;
  8832. case 7:
  8833. maidArray[index].SetPos(new Vector3(-1.6f, 0.0f, 1.4f + num1));
  8834. break;
  8835. case 8:
  8836. maidArray[index].SetPos(new Vector3(1.6f, 0.0f, 1.4f + num1));
  8837. break;
  8838. }
  8839. }
  8840. else
  8841. {
  8842. switch (index)
  8843. {
  8844. case 0:
  8845. maidArray[index].SetPos(new Vector3(0.28f, 0.0f, 0.0f + num1));
  8846. break;
  8847. case 1:
  8848. maidArray[index].SetPos(new Vector3(-0.28f, 0.0f, 0.0f + num1));
  8849. break;
  8850. case 2:
  8851. maidArray[index].SetPos(new Vector3(0.78f, 0.0f, 0.3f + num1));
  8852. break;
  8853. case 3:
  8854. maidArray[index].SetPos(new Vector3(-0.78f, 0.0f, 0.3f + num1));
  8855. break;
  8856. case 4:
  8857. maidArray[index].SetPos(new Vector3(1.22f, 0.0f, 0.7f + num1));
  8858. break;
  8859. case 5:
  8860. maidArray[index].SetPos(new Vector3(-1.22f, 0.0f, 0.7f + num1));
  8861. break;
  8862. case 6:
  8863. maidArray[index].SetPos(new Vector3(1.55f, 0.0f, 1.1f + num1));
  8864. break;
  8865. case 7:
  8866. maidArray[index].SetPos(new Vector3(-1.55f, 0.0f, 1.1f + num1));
  8867. break;
  8868. case 8:
  8869. maidArray[index].SetPos(new Vector3(1.77f, 0.0f, 1.58f + num1));
  8870. break;
  8871. case 9:
  8872. maidArray[index].SetPos(new Vector3(-1.77f, 0.0f, 1.58f + num1));
  8873. break;
  8874. }
  8875. }
  8876. }
  8877. }
  8878. zero2.y = (float)(Math.Atan2((double)maidArray[index].transform.position.x, (double)maidArray[index].transform.position.z - 1.5) * 180.0 / Math.PI) + 180f;
  8879. maidArray[index].SetRot(zero2);
  8880. }
  8881. break;
  8882. case 1:
  8883. for (int index = 0; index < maidCnt; ++index)
  8884. {
  8885. Vector3 zero1 = Vector3.zero;
  8886. Vector3 zero2 = Vector3.zero;
  8887. if (maidCnt < 9)
  8888. {
  8889. switch (index)
  8890. {
  8891. case 1:
  8892. zero1.x = -0.6f;
  8893. break;
  8894. case 2:
  8895. zero1.x = 0.6f;
  8896. break;
  8897. case 3:
  8898. zero1.x = -1.2f;
  8899. break;
  8900. case 4:
  8901. zero1.x = 1.2f;
  8902. break;
  8903. case 5:
  8904. zero1.x = -1.8f;
  8905. break;
  8906. case 6:
  8907. zero1.x = 1.8f;
  8908. break;
  8909. case 7:
  8910. zero1.x = -2.4f;
  8911. break;
  8912. case 8:
  8913. zero1.x = 2.4f;
  8914. break;
  8915. case 9:
  8916. zero1.x = -3f;
  8917. break;
  8918. case 10:
  8919. zero1.x = 3f;
  8920. break;
  8921. }
  8922. }
  8923. else
  8924. {
  8925. switch (index)
  8926. {
  8927. case 1:
  8928. zero1.x = -0.5f;
  8929. break;
  8930. case 2:
  8931. zero1.x = 0.5f;
  8932. break;
  8933. case 3:
  8934. zero1.x = -1f;
  8935. break;
  8936. case 4:
  8937. zero1.x = 1f;
  8938. break;
  8939. case 5:
  8940. zero1.x = -1.5f;
  8941. break;
  8942. case 6:
  8943. zero1.x = 1.5f;
  8944. break;
  8945. case 7:
  8946. zero1.x = -2f;
  8947. break;
  8948. case 8:
  8949. zero1.x = 2f;
  8950. break;
  8951. case 9:
  8952. zero1.x = -2.5f;
  8953. break;
  8954. case 10:
  8955. zero1.x = 2.5f;
  8956. break;
  8957. case 11:
  8958. zero1.x = -3f;
  8959. break;
  8960. case 12:
  8961. zero1.x = 3f;
  8962. break;
  8963. case 13:
  8964. zero1.x = -3.5f;
  8965. break;
  8966. }
  8967. }
  8968. maidArray[index].SetPos(zero1);
  8969. maidArray[index].SetRot(zero2);
  8970. if (index >= 14)
  8971. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
  8972. }
  8973. break;
  8974. case 2:
  8975. for (int index = 0; index < maidCnt; ++index)
  8976. {
  8977. Vector3 zero1 = Vector3.zero;
  8978. Vector3 zero2 = Vector3.zero;
  8979. if (maidCnt < 9)
  8980. {
  8981. switch (index)
  8982. {
  8983. case 1:
  8984. zero1.z = 0.6f;
  8985. break;
  8986. case 2:
  8987. zero1.z = -0.6f;
  8988. break;
  8989. case 3:
  8990. zero1.z = 1.2f;
  8991. break;
  8992. case 4:
  8993. zero1.z = -1.2f;
  8994. break;
  8995. case 5:
  8996. zero1.z = 1.8f;
  8997. break;
  8998. case 6:
  8999. zero1.z = -1.8f;
  9000. break;
  9001. case 7:
  9002. zero1.z = 2.4f;
  9003. break;
  9004. case 8:
  9005. zero1.z = -2.4f;
  9006. break;
  9007. case 9:
  9008. zero1.z = 3f;
  9009. break;
  9010. case 10:
  9011. zero1.z = -3f;
  9012. break;
  9013. }
  9014. }
  9015. else
  9016. {
  9017. switch (index)
  9018. {
  9019. case 1:
  9020. zero1.z = 0.5f;
  9021. break;
  9022. case 2:
  9023. zero1.z = -0.5f;
  9024. break;
  9025. case 3:
  9026. zero1.z = 1f;
  9027. break;
  9028. case 4:
  9029. zero1.z = -1f;
  9030. break;
  9031. case 5:
  9032. zero1.z = 1.5f;
  9033. break;
  9034. case 6:
  9035. zero1.z = -1.5f;
  9036. break;
  9037. case 7:
  9038. zero1.z = 2f;
  9039. break;
  9040. case 8:
  9041. zero1.z = -2f;
  9042. break;
  9043. case 9:
  9044. zero1.z = 2.5f;
  9045. break;
  9046. case 10:
  9047. zero1.z = -2.5f;
  9048. break;
  9049. case 11:
  9050. zero1.z = 3f;
  9051. break;
  9052. case 12:
  9053. zero1.z = -3f;
  9054. break;
  9055. case 13:
  9056. zero1.z = 3.5f;
  9057. break;
  9058. }
  9059. }
  9060. maidArray[index].SetPos(zero1);
  9061. maidArray[index].SetRot(zero2);
  9062. if (index >= 14)
  9063. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
  9064. }
  9065. break;
  9066. case 3:
  9067. for (int index = 0; index < maidCnt; ++index)
  9068. {
  9069. Vector3 zero1 = Vector3.zero;
  9070. Vector3 zero2 = Vector3.zero;
  9071. float num = 0.5f;
  9072. if (maidCnt > 11)
  9073. num = 0.25f;
  9074. else if (maidCnt > 9)
  9075. num = 0.32f;
  9076. else if (maidCnt > 7)
  9077. num = 0.4f;
  9078. switch (index)
  9079. {
  9080. case 1:
  9081. zero1.x = -num;
  9082. zero1.z = num;
  9083. break;
  9084. case 2:
  9085. zero1.x = num;
  9086. zero1.z = -num;
  9087. break;
  9088. case 3:
  9089. zero1.x = (float)(-(double)num * 2.0);
  9090. zero1.z = num * 2f;
  9091. break;
  9092. case 4:
  9093. zero1.x = num * 2f;
  9094. zero1.z = (float)(-(double)num * 2.0);
  9095. break;
  9096. case 5:
  9097. zero1.x = (float)(-(double)num * 3.0);
  9098. zero1.z = num * 3f;
  9099. break;
  9100. case 6:
  9101. zero1.x = num * 3f;
  9102. zero1.z = (float)(-(double)num * 3.0);
  9103. break;
  9104. case 7:
  9105. zero1.x = (float)(-(double)num * 4.0);
  9106. zero1.z = num * 4f;
  9107. break;
  9108. case 8:
  9109. zero1.x = num * 4f;
  9110. zero1.z = (float)(-(double)num * 4.0);
  9111. break;
  9112. case 9:
  9113. zero1.x = (float)(-(double)num * 5.0);
  9114. zero1.z = num * 5f;
  9115. break;
  9116. case 10:
  9117. zero1.x = num * 5f;
  9118. zero1.z = (float)(-(double)num * 5.0);
  9119. break;
  9120. case 11:
  9121. zero1.x = (float)(-(double)num * 6.0);
  9122. zero1.z = num * 6f;
  9123. break;
  9124. case 12:
  9125. zero1.x = num * 6f;
  9126. zero1.z = (float)(-(double)num * 6.0);
  9127. break;
  9128. case 13:
  9129. zero1.x = (float)(-(double)num * 7.0);
  9130. zero1.z = num * 7f;
  9131. break;
  9132. }
  9133. maidArray[index].SetPos(zero1);
  9134. maidArray[index].SetRot(zero2);
  9135. if (index >= 14)
  9136. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
  9137. }
  9138. break;
  9139. case 4:
  9140. for (int index = 0; index < maidCnt; ++index)
  9141. {
  9142. Vector3 zero1 = Vector3.zero;
  9143. Vector3 zero2 = Vector3.zero;
  9144. float num = (float)(0.400000005960464 + 0.0799999982118607 * (double)maidCnt);
  9145. zero1.x = num * (float)Math.Cos(Math.PI / 180.0 * (double)(90 + 360 * index / maidCnt));
  9146. zero1.z = num * (float)Math.Sin(Math.PI / 180.0 * (double)(90 + 360 * index / maidCnt));
  9147. maidArray[index].SetPos(zero1);
  9148. zero2.y = (float)(Math.Atan2((double)zero1.x, (double)zero1.z) * 180.0 / Math.PI);
  9149. maidArray[index].SetRot(zero2);
  9150. }
  9151. break;
  9152. case 5:
  9153. for (int index = 0; index < maidCnt; ++index)
  9154. {
  9155. Vector3 zero1 = Vector3.zero;
  9156. Vector3 zero2 = Vector3.zero;
  9157. float num = (float)(0.400000005960464 + 0.0799999982118607 * (double)maidCnt);
  9158. zero1.x = num * (float)Math.Cos(Math.PI / 180.0 * (double)(90 + 360 * index / maidCnt));
  9159. zero1.z = num * (float)Math.Sin(Math.PI / 180.0 * (double)(90 + 360 * index / maidCnt));
  9160. maidArray[index].SetPos(zero1);
  9161. zero2.y = (float)(Math.Atan2((double)zero1.x, (double)zero1.z) * 180.0 / Math.PI) + 180f;
  9162. maidArray[index].SetRot(zero2);
  9163. }
  9164. break;
  9165. case 6:
  9166. for (int index = 0; index < maidCnt; ++index)
  9167. {
  9168. Vector3 zero1 = Vector3.zero;
  9169. Vector3 zero2 = Vector3.zero;
  9170. float num = 0.0f;
  9171. if (maidCnt > 9)
  9172. num = -0.4f;
  9173. else if (maidCnt > 7)
  9174. num = -0.2f;
  9175. switch (index)
  9176. {
  9177. case 0:
  9178. zero1.z = 0.3f;
  9179. break;
  9180. case 1:
  9181. zero1.x = -0.9f;
  9182. zero1.z = -0.4f;
  9183. zero2.y = 40f;
  9184. break;
  9185. case 2:
  9186. zero1.x = 0.9f;
  9187. zero1.z = -0.4f;
  9188. zero2.y = -40f;
  9189. break;
  9190. case 3:
  9191. zero1.x = -0.4f;
  9192. zero1.z = -0.8f;
  9193. zero2.y = 20f;
  9194. break;
  9195. case 4:
  9196. zero1.x = 0.4f;
  9197. zero1.z = -0.8f;
  9198. zero2.y = -20f;
  9199. break;
  9200. case 5:
  9201. zero1.x = -1.2f;
  9202. zero1.z = 0.1f;
  9203. zero2.y = 60f;
  9204. break;
  9205. case 6:
  9206. zero1.x = 1.2f;
  9207. zero1.z = 0.1f;
  9208. zero2.y = -60f;
  9209. break;
  9210. case 7:
  9211. zero1.x = -1.5f;
  9212. zero1.z = 0.6f;
  9213. zero2.y = 80f;
  9214. break;
  9215. case 8:
  9216. zero1.x = 1.5f;
  9217. zero1.z = 0.6f;
  9218. zero2.y = -80f;
  9219. break;
  9220. case 9:
  9221. zero1.x = -1.6f;
  9222. zero1.z = 1.15f;
  9223. zero2.y = 100f;
  9224. break;
  9225. case 10:
  9226. zero1.x = 1.6f;
  9227. zero1.z = 1.15f;
  9228. zero2.y = -100f;
  9229. break;
  9230. case 11:
  9231. zero1.x = -1.6f;
  9232. zero1.z = 1.65f;
  9233. zero2.y = 110f;
  9234. break;
  9235. case 12:
  9236. zero1.x = 1.65f;
  9237. zero1.z = 1.65f;
  9238. zero2.y = -110f;
  9239. break;
  9240. case 13:
  9241. zero1.x = -1.65f;
  9242. zero1.z = 2.15f;
  9243. zero2.y = 120f;
  9244. break;
  9245. }
  9246. if (index > 0)
  9247. zero1.z += num;
  9248. else
  9249. zero1.z -= num;
  9250. maidArray[index].SetPos(zero1);
  9251. maidArray[index].SetRot(zero2);
  9252. if (index >= 14)
  9253. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
  9254. }
  9255. break;
  9256. case 7:
  9257. for (int index = 0; index < maidCnt; ++index)
  9258. {
  9259. Vector3 zero1 = Vector3.zero;
  9260. Vector3 zero2 = Vector3.zero;
  9261. float num = 0.0f;
  9262. if (maidCnt > 11)
  9263. num = 0.6f;
  9264. else if (maidCnt > 9)
  9265. num = 0.4f;
  9266. else if (maidCnt > 7)
  9267. num = 0.2f;
  9268. switch (index)
  9269. {
  9270. case 0:
  9271. zero1.z = 0.8f;
  9272. break;
  9273. case 1:
  9274. zero1.x = -0.45f;
  9275. zero1.z = 0.3f;
  9276. zero2.y = -10f;
  9277. break;
  9278. case 2:
  9279. zero1.x = 0.45f;
  9280. zero1.z = 0.3f;
  9281. zero2.y = 10f;
  9282. break;
  9283. case 3:
  9284. zero1.x = -0.8f;
  9285. zero1.z = -0.2f;
  9286. zero2.y = -20f;
  9287. break;
  9288. case 4:
  9289. zero1.x = 0.8f;
  9290. zero1.z = -0.2f;
  9291. zero2.y = 20f;
  9292. break;
  9293. case 5:
  9294. zero1.x = -1.2f;
  9295. zero1.z = -0.75f;
  9296. zero2.y = -30f;
  9297. break;
  9298. case 6:
  9299. zero1.x = 1.2f;
  9300. zero1.z = -0.75f;
  9301. zero2.y = 30f;
  9302. break;
  9303. case 7:
  9304. zero1.x = -1.6f;
  9305. zero1.z = -1.25f;
  9306. zero2.y = -40f;
  9307. break;
  9308. case 8:
  9309. zero1.x = 1.6f;
  9310. zero1.z = -1.25f;
  9311. zero2.y = 40f;
  9312. break;
  9313. case 9:
  9314. zero1.x = -2f;
  9315. zero1.z = -1.75f;
  9316. zero2.y = -50f;
  9317. break;
  9318. case 10:
  9319. zero1.x = 2f;
  9320. zero1.z = -1.75f;
  9321. zero2.y = 50f;
  9322. break;
  9323. case 11:
  9324. zero1.x = -2.4f;
  9325. zero1.z = -2.25f;
  9326. zero2.y = -60f;
  9327. break;
  9328. case 12:
  9329. zero1.x = 2.4f;
  9330. zero1.z = -2.25f;
  9331. zero2.y = 60f;
  9332. break;
  9333. case 13:
  9334. zero1.x = -2.8f;
  9335. zero1.z = -2.75f;
  9336. zero2.y = -70f;
  9337. break;
  9338. }
  9339. zero1.z += num;
  9340. maidArray[index].SetPos(zero1);
  9341. maidArray[index].SetRot(zero2);
  9342. if (index >= 14)
  9343. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
  9344. }
  9345. break;
  9346. case 8:
  9347. for (int index = 0; index < maidCnt; ++index)
  9348. {
  9349. Vector3 zero1 = Vector3.zero;
  9350. Vector3 zero2 = Vector3.zero;
  9351. float num = 0.0f;
  9352. if (maidCnt > 11)
  9353. num = -0.6f;
  9354. else if (maidCnt > 9)
  9355. num = -0.4f;
  9356. else if (maidCnt > 7)
  9357. num = -0.2f;
  9358. switch (index)
  9359. {
  9360. case 0:
  9361. zero1.z = -0.75f;
  9362. break;
  9363. case 1:
  9364. zero1.x = -0.45f;
  9365. zero1.z = -0.2f;
  9366. zero2.y = 20f;
  9367. break;
  9368. case 2:
  9369. zero1.x = 0.45f;
  9370. zero1.z = -0.2f;
  9371. zero2.y = -20f;
  9372. break;
  9373. case 3:
  9374. zero1.x = -0.8f;
  9375. zero1.z = 0.3f;
  9376. zero2.y = 35f;
  9377. break;
  9378. case 4:
  9379. zero1.x = 0.8f;
  9380. zero1.z = 0.3f;
  9381. zero2.y = -35f;
  9382. break;
  9383. case 5:
  9384. zero1.x = -1.2f;
  9385. zero1.z = 0.8f;
  9386. zero2.y = 50f;
  9387. break;
  9388. case 6:
  9389. zero1.x = 1.2f;
  9390. zero1.z = 0.8f;
  9391. zero2.y = -50f;
  9392. break;
  9393. case 7:
  9394. zero1.x = -1.6f;
  9395. zero1.z = 1.3f;
  9396. zero2.y = 65f;
  9397. break;
  9398. case 8:
  9399. zero1.x = 1.6f;
  9400. zero1.z = 1.3f;
  9401. zero2.y = -65f;
  9402. break;
  9403. case 9:
  9404. zero1.x = -2f;
  9405. zero1.z = 1.8f;
  9406. zero2.y = 80f;
  9407. break;
  9408. case 10:
  9409. zero1.x = 2f;
  9410. zero1.z = 1.8f;
  9411. zero2.y = -80f;
  9412. break;
  9413. case 11:
  9414. zero1.x = -2.4f;
  9415. zero1.z = 2.3f;
  9416. zero2.y = 90f;
  9417. break;
  9418. case 12:
  9419. zero1.x = 2.4f;
  9420. zero1.z = 2.3f;
  9421. zero2.y = -90f;
  9422. break;
  9423. case 13:
  9424. zero1.x = -2.8f;
  9425. zero1.z = 2.8f;
  9426. zero2.y = 100f;
  9427. break;
  9428. }
  9429. zero1.z += num;
  9430. maidArray[index].SetPos(zero1);
  9431. maidArray[index].SetRot(zero2);
  9432. if (index >= 14)
  9433. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
  9434. }
  9435. break;
  9436. case 9:
  9437. for (int index = 0; index < maidCnt; ++index)
  9438. {
  9439. Vector3 zero1 = Vector3.zero;
  9440. Vector3 zero2 = Vector3.zero;
  9441. float num = 1f;
  9442. if (maidCnt > 9)
  9443. num = 0.84f;
  9444. else if (maidCnt > 7)
  9445. num = 0.92f;
  9446. switch (index)
  9447. {
  9448. case 0:
  9449. zero1.z = 0.0f;
  9450. break;
  9451. case 1:
  9452. zero1.x = -0.5f;
  9453. zero1.z = -0.5f;
  9454. break;
  9455. case 2:
  9456. zero1.x = 0.5f;
  9457. zero1.z = -0.5f;
  9458. break;
  9459. case 3:
  9460. zero1.x = -1f;
  9461. zero1.z = 0.2f;
  9462. break;
  9463. case 4:
  9464. zero1.x = 1f;
  9465. zero1.z = 0.2f;
  9466. break;
  9467. case 5:
  9468. zero1.x = -1.5f;
  9469. zero1.z = -0.5f;
  9470. break;
  9471. case 6:
  9472. zero1.x = 1.5f;
  9473. zero1.z = -0.5f;
  9474. break;
  9475. case 7:
  9476. zero1.x = -2f;
  9477. zero1.z = 0.2f;
  9478. break;
  9479. case 8:
  9480. zero1.x = 2f;
  9481. zero1.z = 0.2f;
  9482. break;
  9483. case 9:
  9484. zero1.x = -2.5f;
  9485. zero1.z = -0.5f;
  9486. break;
  9487. case 10:
  9488. zero1.x = 2.5f;
  9489. zero1.z = -0.5f;
  9490. break;
  9491. case 11:
  9492. zero1.x = -3f;
  9493. zero1.z = 0.2f;
  9494. break;
  9495. case 12:
  9496. zero1.x = 3f;
  9497. zero1.z = 0.2f;
  9498. break;
  9499. case 13:
  9500. zero1.x = -3.5f;
  9501. zero1.z = -0.5f;
  9502. break;
  9503. }
  9504. zero1.x *= num;
  9505. maidArray[index].SetPos(zero1);
  9506. maidArray[index].SetRot(zero2);
  9507. if (index >= 14)
  9508. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
  9509. }
  9510. break;
  9511. case 10:
  9512. for (int index = 0; index < maidCnt; ++index)
  9513. {
  9514. Vector3 zero1 = Vector3.zero;
  9515. Vector3 zero2 = Vector3.zero;
  9516. float num = 1f;
  9517. if (maidCnt > 9)
  9518. num = 0.84f;
  9519. else if (maidCnt > 7)
  9520. num = 0.92f;
  9521. switch (index)
  9522. {
  9523. case 0:
  9524. zero1.z = -0.4f;
  9525. break;
  9526. case 1:
  9527. zero1.x = -0.5f;
  9528. zero1.z = 0.2f;
  9529. break;
  9530. case 2:
  9531. zero1.x = 0.5f;
  9532. zero1.z = 0.2f;
  9533. break;
  9534. case 3:
  9535. zero1.x = -1f;
  9536. zero1.z = -0.5f;
  9537. break;
  9538. case 4:
  9539. zero1.x = 1f;
  9540. zero1.z = -0.5f;
  9541. break;
  9542. case 5:
  9543. zero1.x = -1.5f;
  9544. zero1.z = 0.2f;
  9545. break;
  9546. case 6:
  9547. zero1.x = 1.5f;
  9548. zero1.z = 0.2f;
  9549. break;
  9550. case 7:
  9551. zero1.x = -2f;
  9552. zero1.z = -0.5f;
  9553. break;
  9554. case 8:
  9555. zero1.x = 2f;
  9556. zero1.z = -0.5f;
  9557. break;
  9558. case 9:
  9559. zero1.x = -2.5f;
  9560. zero1.z = 0.2f;
  9561. break;
  9562. case 10:
  9563. zero1.x = 2.5f;
  9564. zero1.z = 0.2f;
  9565. break;
  9566. case 11:
  9567. zero1.x = -3f;
  9568. zero1.z = -0.5f;
  9569. break;
  9570. case 12:
  9571. zero1.x = 3f;
  9572. zero1.z = -0.5f;
  9573. break;
  9574. case 13:
  9575. zero1.x = -3.5f;
  9576. zero1.z = 0.2f;
  9577. break;
  9578. }
  9579. zero1.x *= num;
  9580. maidArray[index].SetPos(zero1);
  9581. maidArray[index].SetRot(zero2);
  9582. if (index >= 14)
  9583. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
  9584. }
  9585. break;
  9586. }
  9587. for (int index = 0; index < maxMaidCnt; ++index)
  9588. {
  9589. if (!isLock[index] && ((Object)maidArray[index] != (Object)null && maidArray[index].Visible))
  9590. {
  9591. maidArray[index].CrossFade(poseArray[0] + ".anm", false, true, false, 0.0f, 1f);
  9592. maidArray[index].SetAutoTwistAll(true);
  9593. }
  9594. }
  9595. }
  9596. public void OnGUI()
  9597. {
  9598. for (int index1 = 0; index1 < maidCnt; ++index1)
  9599. {
  9600. if (isPoseIti[index1])
  9601. {
  9602. Maid maid = maidArray[index1];
  9603. isPoseIti[index1] = false;
  9604. maid.transform.position = poseIti[index1];
  9605. Vector3 eulerAngles = maid.transform.eulerAngles;
  9606. for (int index2 = 0; index2 < 10; ++index2)
  9607. {
  9608. Transform transform1 = maid.transform;
  9609. Vector3 position1 = maid.transform.position;
  9610. Vector3 right = Vector3.right;
  9611. Quaternion rotation = maid.transform.rotation;
  9612. double num1 = -(double)rotation.eulerAngles.x;
  9613. transform1.RotateAround(position1, right, (float)num1);
  9614. Transform transform2 = maid.transform;
  9615. Vector3 position2 = maid.transform.position;
  9616. Vector3 forward = Vector3.forward;
  9617. rotation = maid.transform.rotation;
  9618. double num2 = -(double)rotation.eulerAngles.z;
  9619. transform2.RotateAround(position2, forward, (float)num2);
  9620. }
  9621. Transform transform = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01", true);
  9622. transform.position = new Vector3(poseIti[index1].x, transform.position.y, poseIti[index1].z);
  9623. maid.transform.eulerAngles = eulerAngles;
  9624. }
  9625. }
  9626. GUIStyle style = (GUIStyle)"box";
  9627. style.fontSize = this.GetPix(11);
  9628. style.alignment = TextAnchor.UpperRight;
  9629. if (bGui)
  9630. {
  9631. if (isGuiInit || screenSize != new Vector2((float)Screen.width, (float)Screen.height))
  9632. {
  9633. isGuiInit = false;
  9634. screenSize = new Vector2((float)Screen.width, (float)Screen.height);
  9635. }
  9636. if (sceneLevel != 5 && sceneLevel != 14)
  9637. {
  9638. if (kankyoFlg || kankyo2Flg)
  9639. rectWin.Set(0.0f, 0.0f, (float)this.GetPix(210), (float)Screen.height * 0.9f);
  9640. else
  9641. rectWin.Set(0.0f, 0.0f, (float)this.GetPix(170), (float)Screen.height * 0.9f);
  9642. }
  9643. else if (kankyoFlg || kankyo2Flg)
  9644. rectWin.Set(0.0f, 0.0f, (float)this.GetPix(210), (float)((double)Screen.height * 0.899999976158142 * 0.850000023841858));
  9645. else
  9646. rectWin.Set(0.0f, 0.0f, (float)this.GetPix(170), (float)((double)Screen.height * 0.899999976158142 * 0.850000023841858));
  9647. rectWin.x = screenSize.x - rectWin.width;
  9648. rectWin.y = (float)this.GetPix(65);
  9649. if (sceneLevel == 14)
  9650. rectWin.x = screenSize.x - rectWin.width - (float)this.GetPix(23);
  9651. comboBoxControl.height = rectWin.height;
  9652. faceCombo.height = rectWin.height;
  9653. poseCombo.height = rectWin.height;
  9654. poseGroupCombo.height = rectWin.height;
  9655. itemCombo.height = rectWin.height;
  9656. bgmCombo.height = rectWin.height;
  9657. itemCombo2.height = rectWin.height;
  9658. bgCombo2.height = rectWin.height;
  9659. kankyoCombo.height = rectWin.height;
  9660. bgCombo.height = rectWin.height;
  9661. slotCombo.height = rectWin.height;
  9662. doguCombo.height = rectWin.height;
  9663. parCombo.height = rectWin.height;
  9664. lightCombo.height = rectWin.height;
  9665. GameMain.Instance.MainCamera.SetControl(true);
  9666. if (!sceneFlg && !faceFlg && (!poseFlg && !kankyoFlg) && (!kankyo2Flg && !isF6) && okFlg)
  9667. {
  9668. if ((double)Input.GetAxis("Mouse ScrollWheel") != 0.0)
  9669. GameMain.Instance.MainCamera.SetControl(!rectWin.Contains(new Vector2(Input.mousePosition.x, (float)Screen.height - Input.mousePosition.y)));
  9670. rectWin = GUI.Window(129, rectWin, new GUI.WindowFunction(this.GuiFunc), "", style);
  9671. }
  9672. else if (sceneFlg)
  9673. {
  9674. rectWin = GUI.Window(129, rectWin, new GUI.WindowFunction(this.GuiFunc5), "", style);
  9675. UnityEngine.Rect rect = new UnityEngine.Rect(0.0f, 0.0f, 0.0f, 0.0f);
  9676. dispNo = 0;
  9677. for (int index = 0; index < 10; ++index)
  9678. {
  9679. rect = new UnityEngine.Rect(0.0f, 0.0f, (float)this.GetPix(170), (float)this.GetPix(36));
  9680. rect.x = screenSize.x - rect.width;
  9681. rect.y = rectWin.y + (float)this.GetPix(64 + 50 * index);
  9682. if (rect.Contains(new Vector2(Input.mousePosition.x, (float)Screen.height - Input.mousePosition.y)))
  9683. {
  9684. dispNo = index + 1;
  9685. break;
  9686. }
  9687. }
  9688. if (saveScene2 > 0)
  9689. dispNo = 0;
  9690. if (dispNo == 0)
  9691. {
  9692. texture2D = (Texture2D)null;
  9693. dispNoOld = 0;
  9694. }
  9695. else if (dispNo != dispNoOld)
  9696. {
  9697. dispNoOld = dispNo;
  9698. texture2D = (Texture2D)null;
  9699. try
  9700. {
  9701. IniKey iniKey = this.Preferences["scene"]["ss" + (object)(page * 10 + dispNo)];
  9702. if (iniKey.Value != null && iniKey.Value != "")
  9703. {
  9704. byte[] data = Convert.FromBase64String(iniKey.Value);
  9705. texture2D = new Texture2D(1, 1, TextureFormat.ARGB32, false);
  9706. texture2D.LoadImage(data);
  9707. }
  9708. }
  9709. catch
  9710. {
  9711. }
  9712. }
  9713. if ((UnityEngine.Object)texture2D != (UnityEngine.Object)null)
  9714. {
  9715. if ((UnityEngine.Object)waku == (UnityEngine.Object)null)
  9716. {
  9717. waku = this.MakeTex(2, 2, new Color(1f, 1f, 1f, 1f));
  9718. waku2 = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.4f));
  9719. }
  9720. UnityEngine.Rect position1 = new UnityEngine.Rect(rect.x - (float)texture2D.width - (float)this.GetPix(18), rect.y - (float)(texture2D.height / 2) + (float)this.GetPix(12), (float)(texture2D.width + this.GetPix(12)), (float)(texture2D.height + this.GetPix(12)));
  9721. UnityEngine.Rect position2 = new UnityEngine.Rect(rect.x - (float)texture2D.width - (float)this.GetPix(12), rect.y - (float)(texture2D.height / 2) + (float)this.GetPix(18), (float)texture2D.width, (float)texture2D.height);
  9722. UnityEngine.Rect position3 = new UnityEngine.Rect(rect.x - (float)texture2D.width - (float)this.GetPix(16), rect.y - (float)(texture2D.height / 2) + (float)this.GetPix(14), (float)(texture2D.width + this.GetPix(12)), (float)(texture2D.height + this.GetPix(12)));
  9723. if ((double)position1.y + (double)position1.height > (double)Screen.height)
  9724. {
  9725. float num = position3.y + position3.height - (float)Screen.height;
  9726. position1.y -= num;
  9727. position2.y -= num;
  9728. position3.y -= num;
  9729. }
  9730. GUI.DrawTexture(position3, (Texture)waku2);
  9731. GUI.DrawTexture(position1, (Texture)waku);
  9732. GUI.DrawTexture(position2, (Texture)texture2D);
  9733. }
  9734. }
  9735. else if (kankyoFlg)
  9736. {
  9737. if (bgmCombo.isClickedComboButton || bgCombo.isClickedComboButton || doguCombo.isClickedComboButton || parCombo.isClickedComboButton)
  9738. {
  9739. if ((double)Input.GetAxis("Mouse ScrollWheel") != 0.0)
  9740. GameMain.Instance.MainCamera.SetControl(!rectWin.Contains(new Vector2(Input.mousePosition.x, (float)Screen.height - Input.mousePosition.y)));
  9741. }
  9742. else if (!yotogiFlg && sceneLevel != 3 && sceneLevel != 5 && rectWin.Contains(new Vector2(Input.mousePosition.x, (float)Screen.height - Input.mousePosition.y)) && Input.GetMouseButtonDown(0))
  9743. Input.ResetInputAxes();
  9744. rectWin = GUI.Window(129, rectWin, new GUI.WindowFunction(this.GuiFunc6), "", style);
  9745. }
  9746. else if (kankyo2Flg)
  9747. {
  9748. if ((double)Input.GetAxis("Mouse ScrollWheel") != 0.0)
  9749. GameMain.Instance.MainCamera.SetControl(!rectWin.Contains(new Vector2(Input.mousePosition.x, (float)Screen.height - Input.mousePosition.y)));
  9750. if (!yotogiFlg && sceneLevel != 3 && sceneLevel != 5 && rectWin.Contains(new Vector2(Input.mousePosition.x, (float)Screen.height - Input.mousePosition.y)) && Input.GetMouseButtonDown(0))
  9751. Input.ResetInputAxes();
  9752. rectWin = GUI.Window(129, rectWin, new GUI.WindowFunction(this.GuiFunc7), "", style);
  9753. }
  9754. else if (poseFlg)
  9755. {
  9756. if (poseGroupCombo.isClickedComboButton || poseCombo.isClickedComboButton || itemCombo.isClickedComboButton)
  9757. {
  9758. if ((double)Input.GetAxis("Mouse ScrollWheel") != 0.0)
  9759. GameMain.Instance.MainCamera.SetControl(!rectWin.Contains(new Vector2(Input.mousePosition.x, (float)Screen.height - Input.mousePosition.y)));
  9760. }
  9761. else if (!yotogiFlg && sceneLevel != 3 && sceneLevel != 5 && rectWin.Contains(new Vector2(Input.mousePosition.x, (float)Screen.height - Input.mousePosition.y)) && Input.GetMouseButtonDown(0))
  9762. Input.ResetInputAxes();
  9763. rectWin = GUI.Window(129, rectWin, new GUI.WindowFunction(this.GuiFunc4), "", style);
  9764. }
  9765. else
  9766. {
  9767. if (faceCombo.isClickedComboButton)
  9768. {
  9769. if ((double)Input.GetAxis("Mouse ScrollWheel") != 0.0)
  9770. GameMain.Instance.MainCamera.SetControl(!rectWin.Contains(new Vector2(Input.mousePosition.x, (float)Screen.height - Input.mousePosition.y)));
  9771. }
  9772. else if (!yotogiFlg && sceneLevel != 3 && sceneLevel != 5 && rectWin.Contains(new Vector2(Input.mousePosition.x, (float)Screen.height - Input.mousePosition.y)) && Input.GetMouseButtonDown(0))
  9773. Input.ResetInputAxes();
  9774. rectWin = GUI.Window(129, rectWin, new GUI.WindowFunction(this.GuiFunc2), "", style);
  9775. }
  9776. }
  9777. if (!bGuiMessage)
  9778. return;
  9779. screenSize = new Vector2((float)Screen.width, (float)Screen.height);
  9780. rectWin2.Set(0.0f, 0.0f, (float)Screen.width * 0.4f, (float)Screen.height * 0.15f);
  9781. rectWin2.x = (float)((double)screenSize.x / 2.0 - (double)rectWin2.width / 2.0);
  9782. rectWin2.y = sceneLevel != 5 ? screenSize.y - rectWin2.height : screenSize.y * 0.94f - rectWin2.height;
  9783. rectWin2 = GUI.Window(129, rectWin2, new GUI.WindowFunction(this.GuiFunc3), "", style);
  9784. }
  9785. private void GuiFunc3(int winID)
  9786. {
  9787. GUIStyle style1 = (GUIStyle)"label";
  9788. style1.fontSize = this.GetPix(12);
  9789. style1.alignment = TextAnchor.UpperLeft;
  9790. GUIStyle style2 = (GUIStyle)"button";
  9791. style2.fontSize = this.GetPix(16);
  9792. GUI.Label(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(4), (float)this.GetPix(80), (float)this.GetPix(25)), "名前", style1);
  9793. inName = GUI.TextField(new UnityEngine.Rect((float)this.GetPix(35), (float)this.GetPix(4), (float)this.GetPix(120), (float)this.GetPix(20)), inName);
  9794. GUI.Label(new UnityEngine.Rect((float)this.GetPix(180), (float)this.GetPix(4), (float)this.GetPix(100), (float)this.GetPix(25)), "サイズ", style1);
  9795. fontSize = (int)GUI.HorizontalSlider(new UnityEngine.Rect((float)this.GetPix(220), (float)this.GetPix(9), (float)this.GetPix(100), (float)this.GetPix(20)), (float)fontSize, 25f, 60f);
  9796. if (fontSize != mFontSize)
  9797. {
  9798. mFontSize = fontSize;
  9799. GameObject gameObject = GameObject.Find("__GameMain__/SystemUI Root").transform.Find("MessageWindowPanel").gameObject;
  9800. MessageClass messageClass = new MessageClass(gameObject, GameMain.Instance.ScriptMgr.adv_kag.MessageWindowMgr);
  9801. CM3D2.MultipleMaids.Plugin.MultipleMaids.SetFieldValue2<UILabel, int>(UTY.GetChildObject(gameObject, "MessageViewer/MsgParent/Message", false).GetComponent<UILabel>(), "mFontSize", fontSize);
  9802. }
  9803. GUI.Label(new UnityEngine.Rect((float)this.GetPix(325), (float)this.GetPix(4), (float)this.GetPix(100), (float)this.GetPix(25)), fontSize.ToString() + "pt", style1);
  9804. inText = GUI.TextArea(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(26), rectWin2.width - (float)this.GetPix(15), (float)this.GetPix(52)), inText, 300);
  9805. if (!GUI.Button(new UnityEngine.Rect((float)this.GetPix(8), (float)this.GetPix(82), (float)this.GetPix(60), (float)this.GetPix(20)), "決定", style2))
  9806. return;
  9807. isMessage = true;
  9808. bGuiMessage = false;
  9809. GameObject gameObject1 = GameObject.Find("__GameMain__/SystemUI Root").transform.Find("MessageWindowPanel").gameObject;
  9810. MessageWindowMgr messageWindowMgr = GameMain.Instance.ScriptMgr.adv_kag.MessageWindowMgr;
  9811. messageWindowMgr.OpenMessageWindowPanel();
  9812. MessageClass inst = new MessageClass(gameObject1, messageWindowMgr);
  9813. UILabel component = UTY.GetChildObject(gameObject1, "MessageViewer/MsgParent/Message", false).GetComponent<UILabel>();
  9814. component.ProcessText();
  9815. CM3D2.MultipleMaids.Plugin.MultipleMaids.SetFieldValue2<UILabel, int>(component, "mFontSize", fontSize);
  9816. CM3D2.MultipleMaids.Plugin.MultipleMaids.SetFieldValue5<MessageClass, UILabel>(inst, "message_label_", component);
  9817. inst.SetText(inName, inText, "", 0);
  9818. inst.FinishChAnime();
  9819. }
  9820. }
  9821. }