MultipleMaids.Gui.cs 561 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.IO;
  5. using System.Linq;
  6. using System.Text;
  7. using ExIni;
  8. using MyRoomCustom;
  9. using UnityEngine;
  10. using UnityEngine.Rendering;
  11. using Object = UnityEngine.Object;
  12. namespace CM3D2.MultipleMaids.Plugin
  13. {
  14. public partial class MultipleMaids
  15. {
  16. private Dictionary<string, int>[] dicts = new Dictionary<string, int>[4];
  17. public void OnGUI()
  18. {
  19. for (int index1 = 0; index1 < maidCnt; ++index1)
  20. {
  21. if (isPoseIti[index1])
  22. {
  23. Maid maid = maidArray[index1];
  24. isPoseIti[index1] = false;
  25. maid.transform.position = poseIti[index1];
  26. Vector3 eulerAngles = maid.transform.eulerAngles;
  27. for (int index2 = 0; index2 < 10; ++index2)
  28. {
  29. Transform transform1 = maid.transform;
  30. Vector3 position1 = maid.transform.position;
  31. Vector3 right = Vector3.right;
  32. Quaternion rotation = maid.transform.rotation;
  33. double num1 = -(double) rotation.eulerAngles.x;
  34. transform1.RotateAround(position1, right, (float) num1);
  35. Transform transform2 = maid.transform;
  36. Vector3 position2 = maid.transform.position;
  37. Vector3 forward = Vector3.forward;
  38. rotation = maid.transform.rotation;
  39. double num2 = -(double) rotation.eulerAngles.z;
  40. transform2.RotateAround(position2, forward, (float) num2);
  41. }
  42. Transform transform = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01", true);
  43. transform.position = new Vector3(poseIti[index1].x, transform.position.y, poseIti[index1].z);
  44. maid.transform.eulerAngles = eulerAngles;
  45. }
  46. }
  47. GUIStyle style = (GUIStyle) "box";
  48. style.fontSize = this.GetPix(11);
  49. style.alignment = TextAnchor.UpperRight;
  50. if (bGui)
  51. {
  52. if (isGuiInit || screenSize != new Vector2((float) Screen.width, (float) Screen.height))
  53. {
  54. isGuiInit = false;
  55. screenSize = new Vector2((float) Screen.width, (float) Screen.height);
  56. }
  57. if (sceneLevel != 5 && sceneLevel != 14)
  58. {
  59. if (kankyoFlg || kankyo2Flg)
  60. rectWin.Set(0.0f, 0.0f, (float) this.GetPix(210), (float) Screen.height * 0.9f);
  61. else
  62. rectWin.Set(0.0f, 0.0f, (float) this.GetPix(170), (float) Screen.height * 0.9f);
  63. }
  64. else if (kankyoFlg || kankyo2Flg)
  65. rectWin.Set(0.0f,
  66. 0.0f,
  67. (float) this.GetPix(210),
  68. (float) ((double) Screen.height * 0.899999976158142 * 0.850000023841858));
  69. else
  70. rectWin.Set(0.0f,
  71. 0.0f,
  72. (float) this.GetPix(170),
  73. (float) ((double) Screen.height * 0.899999976158142 * 0.850000023841858));
  74. rectWin.x = screenSize.x - rectWin.width;
  75. rectWin.y = (float) this.GetPix(65);
  76. if (sceneLevel == 14)
  77. rectWin.x = screenSize.x - rectWin.width - (float) this.GetPix(23);
  78. comboBoxControl.height = rectWin.height;
  79. faceCombo.height = rectWin.height;
  80. poseCombo.height = rectWin.height;
  81. poseGroupCombo.height = rectWin.height;
  82. itemCombo.height = rectWin.height;
  83. bgmCombo.height = rectWin.height;
  84. itemCombo2.height = rectWin.height;
  85. bgCombo2.height = rectWin.height;
  86. kankyoCombo.height = rectWin.height;
  87. bgCombo.height = rectWin.height;
  88. slotCombo.height = rectWin.height;
  89. doguCombo.height = rectWin.height;
  90. parCombo.height = rectWin.height;
  91. lightCombo.height = rectWin.height;
  92. GameMain.Instance.MainCamera.SetControl(true);
  93. if (!sceneFlg && !faceFlg && (!poseFlg && !kankyoFlg) && (!kankyo2Flg && !isF6) && okFlg)
  94. {
  95. if ((double) Input.GetAxis("Mouse ScrollWheel") != 0.0)
  96. GameMain.Instance.MainCamera.SetControl(!rectWin.Contains(new Vector2(Input.mousePosition.x,
  97. (float) Screen.height
  98. - Input.mousePosition.y)));
  99. rectWin = GUI.Window(129, rectWin, new GUI.WindowFunction(this.GuiFunc), "", style);
  100. }
  101. else if (sceneFlg)
  102. {
  103. rectWin = GUI.Window(129, rectWin, new GUI.WindowFunction(this.GuiFunc5), "", style);
  104. Rect rect = new Rect(0.0f, 0.0f, 0.0f, 0.0f);
  105. dispNo = 0;
  106. for (int index = 0; index < 10; ++index)
  107. {
  108. rect = new Rect(0.0f, 0.0f, (float) this.GetPix(170), (float) this.GetPix(36));
  109. rect.x = screenSize.x - rect.width;
  110. rect.y = rectWin.y + (float) this.GetPix(64 + 50 * index);
  111. if (rect.Contains(new Vector2(Input.mousePosition.x, (float) Screen.height - Input.mousePosition.y)))
  112. {
  113. dispNo = index + 1;
  114. break;
  115. }
  116. }
  117. if (saveScene2 > 0)
  118. dispNo = 0;
  119. if (dispNo == 0)
  120. {
  121. texture2D = (Texture2D) null;
  122. dispNoOld = 0;
  123. }
  124. else if (dispNo != dispNoOld)
  125. {
  126. dispNoOld = dispNo;
  127. texture2D = (Texture2D) null;
  128. try
  129. {
  130. IniKey iniKey = this.Preferences["scene"]["ss" + (object) (page * 10 + dispNo)];
  131. if (iniKey.Value != null && iniKey.Value != "")
  132. {
  133. byte[] data = Convert.FromBase64String(iniKey.Value);
  134. texture2D = new Texture2D(1, 1, TextureFormat.ARGB32, false);
  135. texture2D.LoadImage(data);
  136. }
  137. }
  138. catch { }
  139. }
  140. if ((Object) texture2D != (Object) null)
  141. {
  142. if ((Object) waku == (Object) null)
  143. {
  144. waku = this.MakeTex(2, 2, new Color(1f, 1f, 1f, 1f));
  145. waku2 = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.4f));
  146. }
  147. Rect position1 = new Rect(rect.x - (float) texture2D.width - (float) this.GetPix(18),
  148. rect.y - (float) (texture2D.height / 2) + (float) this.GetPix(12),
  149. (float) (texture2D.width + this.GetPix(12)),
  150. (float) (texture2D.height + this.GetPix(12)));
  151. Rect position2 = new Rect(rect.x - (float) texture2D.width - (float) this.GetPix(12),
  152. rect.y - (float) (texture2D.height / 2) + (float) this.GetPix(18),
  153. (float) texture2D.width,
  154. (float) texture2D.height);
  155. Rect position3 = new Rect(rect.x - (float) texture2D.width - (float) this.GetPix(16),
  156. rect.y - (float) (texture2D.height / 2) + (float) this.GetPix(14),
  157. (float) (texture2D.width + this.GetPix(12)),
  158. (float) (texture2D.height + this.GetPix(12)));
  159. if ((double) position1.y + (double) position1.height > (double) Screen.height)
  160. {
  161. float num = position3.y + position3.height - (float) Screen.height;
  162. position1.y -= num;
  163. position2.y -= num;
  164. position3.y -= num;
  165. }
  166. GUI.DrawTexture(position3, (Texture) waku2);
  167. GUI.DrawTexture(position1, (Texture) waku);
  168. GUI.DrawTexture(position2, (Texture) texture2D);
  169. }
  170. }
  171. else if (kankyoFlg)
  172. {
  173. if (bgmCombo.isClickedComboButton || bgCombo.isClickedComboButton || doguCombo.isClickedComboButton
  174. || parCombo.isClickedComboButton)
  175. {
  176. if ((double) Input.GetAxis("Mouse ScrollWheel") != 0.0)
  177. GameMain.Instance.MainCamera.SetControl(!rectWin.Contains(new Vector2(Input.mousePosition.x,
  178. (float) Screen.height
  179. - Input.mousePosition.y)));
  180. }
  181. else if (!yotogiFlg && sceneLevel != 3 && sceneLevel != 5
  182. && rectWin.Contains(new Vector2(Input.mousePosition.x, (float) Screen.height - Input.mousePosition.y))
  183. && Input.GetMouseButtonDown(0))
  184. Input.ResetInputAxes();
  185. rectWin = GUI.Window(129, rectWin, new GUI.WindowFunction(this.GuiFunc6), "", style);
  186. }
  187. else if (kankyo2Flg)
  188. {
  189. if ((double) Input.GetAxis("Mouse ScrollWheel") != 0.0)
  190. GameMain.Instance.MainCamera.SetControl(!rectWin.Contains(new Vector2(Input.mousePosition.x,
  191. (float) Screen.height
  192. - Input.mousePosition.y)));
  193. if (!yotogiFlg && sceneLevel != 3 && sceneLevel != 5
  194. && rectWin.Contains(new Vector2(Input.mousePosition.x, (float) Screen.height - Input.mousePosition.y))
  195. && Input.GetMouseButtonDown(0))
  196. Input.ResetInputAxes();
  197. rectWin = GUI.Window(129, rectWin, new GUI.WindowFunction(this.GuiFunc7), "", style);
  198. }
  199. else if (poseFlg)
  200. {
  201. if (poseGroupCombo.isClickedComboButton || poseCombo.isClickedComboButton || itemCombo.isClickedComboButton)
  202. {
  203. if ((double) Input.GetAxis("Mouse ScrollWheel") != 0.0)
  204. GameMain.Instance.MainCamera.SetControl(!rectWin.Contains(new Vector2(Input.mousePosition.x,
  205. (float) Screen.height
  206. - Input.mousePosition.y)));
  207. }
  208. else if (!yotogiFlg && sceneLevel != 3 && sceneLevel != 5
  209. && rectWin.Contains(new Vector2(Input.mousePosition.x, (float) Screen.height - Input.mousePosition.y))
  210. && Input.GetMouseButtonDown(0))
  211. Input.ResetInputAxes();
  212. rectWin = GUI.Window(129, rectWin, new GUI.WindowFunction(this.GuiFunc4), "", style);
  213. }
  214. else
  215. {
  216. if (faceCombo.isClickedComboButton)
  217. {
  218. if ((double) Input.GetAxis("Mouse ScrollWheel") != 0.0)
  219. GameMain.Instance.MainCamera.SetControl(!rectWin.Contains(new Vector2(Input.mousePosition.x,
  220. (float) Screen.height
  221. - Input.mousePosition.y)));
  222. }
  223. else if (!yotogiFlg && sceneLevel != 3 && sceneLevel != 5
  224. && rectWin.Contains(new Vector2(Input.mousePosition.x, (float) Screen.height - Input.mousePosition.y))
  225. && Input.GetMouseButtonDown(0))
  226. Input.ResetInputAxes();
  227. rectWin = GUI.Window(129, rectWin, new GUI.WindowFunction(this.GuiFunc2), "", style);
  228. }
  229. }
  230. if (!bGuiMessage)
  231. return;
  232. screenSize = new Vector2((float) Screen.width, (float) Screen.height);
  233. rectWin2.Set(0.0f, 0.0f, (float) Screen.width * 0.4f, (float) Screen.height * 0.15f);
  234. rectWin2.x = (float) ((double) screenSize.x / 2.0 - (double) rectWin2.width / 2.0);
  235. rectWin2.y = sceneLevel != 5 ? screenSize.y - rectWin2.height : screenSize.y * 0.94f - rectWin2.height;
  236. rectWin2 = GUI.Window(129, rectWin2, new GUI.WindowFunction(this.GuiFunc3), "", style);
  237. }
  238. private void GuiFunc5(int winID)
  239. {
  240. GUIStyle style1 = (GUIStyle) "label";
  241. style1.fontSize = this.GetPix(12);
  242. style1.alignment = TextAnchor.UpperLeft;
  243. GUIStyle style2 = (GUIStyle) "button";
  244. style2.fontSize = this.GetPix(12);
  245. style2.alignment = TextAnchor.MiddleCenter;
  246. GUI.Label(new Rect((float) this.GetPix(50), (float) this.GetPix(6), (float) this.GetPix(100), (float) this.GetPix(25)),
  247. "シーン管理",
  248. style1);
  249. if (GUI.Button(new Rect((float) this.GetPix(135), (float) this.GetPix(3), (float) this.GetPix(23), (float) this.GetPix(23)),
  250. "→",
  251. style2))
  252. {
  253. faceFlg = false;
  254. poseFlg = false;
  255. sceneFlg = false;
  256. kankyoFlg = true;
  257. kankyo2Flg = false;
  258. bGui = true;
  259. isGuiInit = true;
  260. copyIndex = 0;
  261. }
  262. int num1 = 50;
  263. if (GUI.Button(new Rect((float) this.GetPix(25), (float) this.GetPix(31), (float) this.GetPix(23), (float) this.GetPix(23)),
  264. "<",
  265. style2))
  266. {
  267. --page;
  268. if (page < 0)
  269. page = maxPage - 1;
  270. for (int index = 0; index < 10; ++index)
  271. {
  272. date[index] = "未保存";
  273. ninzu[index] = "";
  274. IniKey iniKey = this.Preferences["scene"]["s" + (object) (page * 10 + index + 1)];
  275. if (iniKey.Value != null && iniKey.Value.ToString() != "")
  276. {
  277. string[] strArray1 = iniKey.Value.Split('_');
  278. if (strArray1.Length >= 2)
  279. {
  280. string[] strArray2 = strArray1[0].Split(',');
  281. date[index] = strArray2[0];
  282. ninzu[index] = strArray2[1] + "人";
  283. }
  284. }
  285. }
  286. }
  287. if (GUI.Button(new Rect((float) this.GetPix(115), (float) this.GetPix(31), (float) this.GetPix(23), (float) this.GetPix(23)),
  288. ">",
  289. style2))
  290. {
  291. ++page;
  292. if (page >= maxPage)
  293. page = 0;
  294. for (int index = 0; index < 10; ++index)
  295. {
  296. date[index] = "未保存";
  297. ninzu[index] = "";
  298. IniKey iniKey = this.Preferences["scene"]["s" + (object) (page * 10 + index + 1)];
  299. if (iniKey.Value != null && iniKey.Value.ToString() != "")
  300. {
  301. string[] strArray1 = iniKey.Value.Split('_');
  302. if (strArray1.Length >= 2)
  303. {
  304. string[] strArray2 = strArray1[0].Split(',');
  305. date[index] = strArray2[0];
  306. ninzu[index] = strArray2[1] + "人";
  307. }
  308. }
  309. }
  310. }
  311. GUI.Label(new Rect((float) this.GetPix(60), (float) this.GetPix(32), (float) this.GetPix(100), (float) this.GetPix(25)),
  312. (page * 10 + 1).ToString() + " ~ " + (object) (page * 10 + 10),
  313. style1);
  314. if (saveScene2 > 0 && string.IsNullOrEmpty(thum_byte_to_base64_) && File.Exists(thum_file_path_))
  315. {
  316. try
  317. {
  318. Texture2D tex = new Texture2D(1, 1, TextureFormat.ARGB32, false);
  319. tex.LoadImage(File.ReadAllBytes(thum_file_path_));
  320. float num2 = (float) tex.width / (float) tex.height;
  321. Vector2 vector2 = new Vector2(480f, 270f);
  322. int newWidth = tex.width;
  323. int newHeight = tex.height;
  324. if ((double) vector2.x < (double) tex.width && (double) vector2.y < (double) tex.height)
  325. {
  326. newWidth = (int) vector2.x;
  327. newHeight = Mathf.RoundToInt((float) newWidth / num2);
  328. if ((double) vector2.y < (double) newHeight)
  329. {
  330. newHeight = (int) vector2.y;
  331. newWidth = Mathf.RoundToInt((float) newHeight * num2);
  332. }
  333. }
  334. else if ((double) vector2.x < (double) tex.width)
  335. {
  336. newWidth = (int) vector2.x;
  337. newHeight = Mathf.RoundToInt((float) newWidth / num2);
  338. }
  339. else if ((double) vector2.y < (double) tex.height)
  340. {
  341. newHeight = (int) vector2.y;
  342. newWidth = Mathf.RoundToInt((float) newHeight * num2);
  343. }
  344. TextureScale.Bilinear(tex, newWidth, newHeight);
  345. thum_byte_to_base64_ = Convert.ToBase64String(tex.EncodeToPNG());
  346. DestroyImmediate((Object) tex);
  347. this.Preferences["scene"]["ss" + (object) saveScene2].Value = thum_byte_to_base64_;
  348. this.SaveConfig();
  349. thum_file_path_ = "";
  350. saveScene2 = 0;
  351. }
  352. catch { }
  353. }
  354. for (int index = 0; index < 10; ++index)
  355. {
  356. GUI.Label(new Rect((float) this.GetPix(5),
  357. (float) this.GetPix(60 + num1 * index),
  358. (float) this.GetPix(25),
  359. (float) this.GetPix(25)),
  360. string.Concat((object) (page * 10 + index + 1)),
  361. style1);
  362. if (GUI.Button(new Rect((float) this.GetPix(20),
  363. (float) this.GetPix(78 + num1 * index),
  364. (float) this.GetPix(50),
  365. (float) this.GetPix(20)),
  366. "保存",
  367. style2))
  368. {
  369. saveScene = page * 10 + index + 1;
  370. saveScene2 = saveScene;
  371. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  372. isScreen2 = true;
  373. if (!isMessage)
  374. {
  375. ui_cam_hide_list_.Clear();
  376. foreach (UICamera uiCamera in NGUITools.FindActive<UICamera>())
  377. {
  378. if (uiCamera.GetComponent<Camera>().enabled)
  379. {
  380. uiCamera.GetComponent<Camera>().enabled = false;
  381. ui_cam_hide_list_.Add(uiCamera);
  382. }
  383. }
  384. }
  385. else
  386. {
  387. editUI = GameObject.Find("/UI Root/Camera");
  388. if ((Object) editUI != (Object) null)
  389. editUI.SetActive(false);
  390. if (GameMain.Instance.CMSystem.ViewFps)
  391. UTY.GetChildObject(GameMain.Instance.gameObject, "SystemUI Root/FpsCounter", false).SetActive(false);
  392. GameObject childObject1 = UTY.GetChildObject(GameMain.Instance.gameObject, "SystemUI Root/SystemDialog", false);
  393. GameObject childObject2 = UTY.GetChildObject(GameMain.Instance.gameObject, "SystemUI Root/SystemShortcut", false);
  394. childObject1.SetActive(false);
  395. childObject2.SetActive(false);
  396. }
  397. isGui = bGui;
  398. bGui = false;
  399. try
  400. {
  401. thum_byte_to_base64_ = string.Empty;
  402. thum_file_path_ = Path.Combine(Path.GetTempPath(), "cm3d2_" + Guid.NewGuid().ToString() + ".png");
  403. GameMain.Instance.MainCamera.ScreenShot(thum_file_path_, 1, true);
  404. }
  405. catch { }
  406. }
  407. GUI.Label(new Rect((float) this.GetPix(25),
  408. (float) this.GetPix(60 + num1 * index),
  409. (float) this.GetPix(100),
  410. (float) this.GetPix(25)),
  411. date[index],
  412. style1);
  413. GUI.Label(new Rect((float) this.GetPix(130),
  414. (float) this.GetPix(60 + num1 * index),
  415. (float) this.GetPix(100),
  416. (float) this.GetPix(25)),
  417. ninzu[index],
  418. style1);
  419. if (date[index] != "未保存" && GUI.Button(new Rect((float) this.GetPix(100),
  420. (float) this.GetPix(78 + num1 * index),
  421. (float) this.GetPix(50),
  422. (float) this.GetPix(20)),
  423. "読込",
  424. style2))
  425. {
  426. loadScene = page * 10 + index + 1;
  427. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  428. }
  429. }
  430. }
  431. private void GuiFunc7(int winID)
  432. {
  433. GUIStyle guiStyle1 = (GUIStyle) "label";
  434. guiStyle1.fontSize = this.GetPix(12);
  435. guiStyle1.alignment = TextAnchor.UpperLeft;
  436. GUIStyle style1 = (GUIStyle) "label";
  437. style1.fontSize = this.GetPix(11);
  438. style1.alignment = TextAnchor.UpperLeft;
  439. GUIStyle style2 = (GUIStyle) "button";
  440. style2.fontSize = this.GetPix(20);
  441. GUIStyle buttonStyle = (GUIStyle) "button";
  442. buttonStyle.fontSize = this.GetPix(14);
  443. buttonStyle.alignment = TextAnchor.MiddleLeft;
  444. GUIStyle guiStyle2 = (GUIStyle) "button";
  445. guiStyle2.fontSize = this.GetPix(12);
  446. guiStyle2.alignment = TextAnchor.MiddleLeft;
  447. GUIStyle style3 = new GUIStyle((GUIStyle) "toggle");
  448. style3.fontSize = this.GetPix(13);
  449. CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
  450. Maid maid = maidArray[selectMaidIndex];
  451. if (!kankyo2InitFlg)
  452. {
  453. listStyle2.normal.textColor = Color.white;
  454. listStyle2.normal.background = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.5f));
  455. listStyle2.onHover.background = listStyle2.hover.background = new Texture2D(2, 2);
  456. listStyle2.padding.left = listStyle2.padding.right = listStyle2.padding.top = listStyle2.padding.bottom = this.GetPix(0);
  457. listStyle2.fontSize = this.GetPix(11);
  458. listStyle3.normal.textColor = Color.white;
  459. listStyle3.normal.background = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.5f));
  460. listStyle3.onHover.background = listStyle3.hover.background = new Texture2D(2, 2);
  461. listStyle3.padding.left = listStyle3.padding.right = listStyle3.padding.top = this.GetPix(0);
  462. listStyle3.padding.bottom = this.GetPix(0);
  463. listStyle3.fontSize = this.GetPix(14);
  464. bgCombo2.selectedItemIndex = bgIndexB;
  465. bgCombo2List = new GUIContent[bgArray.Length];
  466. for (int index = 0; index < bgArray.Length; ++index)
  467. {
  468. switch (bgArray[index])
  469. {
  470. case "BackStage":
  471. bgCombo2List[index] = new GUIContent("ステージ裏");
  472. break;
  473. case "Bar":
  474. bgCombo2List[index] = new GUIContent("バー");
  475. break;
  476. case "BarLounge":
  477. bgCombo2List[index] = new GUIContent("バー");
  478. break;
  479. case "Bathroom":
  480. bgCombo2List[index] = new GUIContent("風呂");
  481. break;
  482. case "BigSight":
  483. bgCombo2List[index] = new GUIContent("ビッグサイト");
  484. break;
  485. case "BigSight_Night":
  486. bgCombo2List[index] = new GUIContent("ビッグサイト(夜)");
  487. break;
  488. case "Casino":
  489. bgCombo2List[index] = new GUIContent("カジノ");
  490. break;
  491. case "CasinoMini":
  492. bgCombo2List[index] = new GUIContent("カジノミニ");
  493. break;
  494. case "ClassRoom":
  495. bgCombo2List[index] = new GUIContent("教室");
  496. break;
  497. case "ClassRoom_Play":
  498. bgCombo2List[index] = new GUIContent("教室(夜伽)");
  499. break;
  500. case "DanceRoom":
  501. bgCombo2List[index] = new GUIContent("トレーニングルーム");
  502. break;
  503. case "DressRoom_NoMirror":
  504. bgCombo2List[index] = new GUIContent("ドレスルーム");
  505. break;
  506. case "EmpireClub_Entrance":
  507. bgCombo2List[index] = new GUIContent("エントランス");
  508. break;
  509. case "EmpireClub_Rotary":
  510. bgCombo2List[index] = new GUIContent("ロータリー");
  511. break;
  512. case "EmpireClub_Rotary_Night":
  513. bgCombo2List[index] = new GUIContent("ロータリー(夜)");
  514. break;
  515. case "GameShop":
  516. bgCombo2List[index] = new GUIContent("ゲームショップ");
  517. break;
  518. case "HeroineRoom_A":
  519. bgCombo2List[index] = new GUIContent("ツンデレ部屋");
  520. break;
  521. case "HeroineRoom_A1":
  522. bgCombo2List[index] = new GUIContent("無垢部屋");
  523. break;
  524. case "HeroineRoom_A1_Night":
  525. bgCombo2List[index] = new GUIContent("無垢部屋(夜)");
  526. break;
  527. case "HeroineRoom_A_Night":
  528. bgCombo2List[index] = new GUIContent("ツンデレ部屋(夜)");
  529. break;
  530. case "HeroineRoom_B":
  531. bgCombo2List[index] = new GUIContent("クーデレ部屋");
  532. break;
  533. case "HeroineRoom_B1":
  534. bgCombo2List[index] = new GUIContent("真面目部屋");
  535. break;
  536. case "HeroineRoom_B1_Night":
  537. bgCombo2List[index] = new GUIContent("真面目部屋(夜)");
  538. break;
  539. case "HeroineRoom_B_Night":
  540. bgCombo2List[index] = new GUIContent("クーデレ部屋(夜)");
  541. break;
  542. case "HeroineRoom_C":
  543. bgCombo2List[index] = new GUIContent("純真部屋");
  544. break;
  545. case "HeroineRoom_C1":
  546. bgCombo2List[index] = new GUIContent("凜デレ部屋");
  547. break;
  548. case "HeroineRoom_C1_Night":
  549. bgCombo2List[index] = new GUIContent("凜デレ部屋(夜)");
  550. break;
  551. case "HeroineRoom_C_Night":
  552. bgCombo2List[index] = new GUIContent("純真部屋(夜)");
  553. break;
  554. case "HoneymoonRoom":
  555. bgCombo2List[index] = new GUIContent("ハネムーンルーム");
  556. break;
  557. case "Kitchen":
  558. bgCombo2List[index] = new GUIContent("キッチン");
  559. break;
  560. case "Kitchen_Night":
  561. bgCombo2List[index] = new GUIContent("キッチン(夜)");
  562. break;
  563. case "LargeBathRoom":
  564. bgCombo2List[index] = new GUIContent("大浴場");
  565. break;
  566. case "LiveStage":
  567. bgCombo2List[index] = new GUIContent("ステージ");
  568. break;
  569. case "LiveStage_Side":
  570. bgCombo2List[index] = new GUIContent("ステージ(ライト)");
  571. break;
  572. case "LiveStage_use_dance":
  573. bgCombo2List[index] = new GUIContent("ステージ(オフ)");
  574. break;
  575. case "LockerRoom":
  576. bgCombo2List[index] = new GUIContent("ロッカールーム");
  577. break;
  578. case "MaidRoom":
  579. bgCombo2List[index] = new GUIContent("メイド部屋");
  580. break;
  581. case "MainKitchen":
  582. bgCombo2List[index] = new GUIContent("キッチン");
  583. break;
  584. case "MainKitchen_LightOff":
  585. bgCombo2List[index] = new GUIContent("キッチン(オフ)");
  586. break;
  587. case "MainKitchen_Night":
  588. bgCombo2List[index] = new GUIContent("キッチン(夜)");
  589. break;
  590. case "MusicShop":
  591. bgCombo2List[index] = new GUIContent("ミュージックショップ");
  592. break;
  593. case "MyBedRoom":
  594. bgCombo2List[index] = new GUIContent("自室");
  595. break;
  596. case "MyBedRoom_Night":
  597. bgCombo2List[index] = new GUIContent("自室(夜)");
  598. break;
  599. case "MyBedRoom_NightOff":
  600. bgCombo2List[index] = new GUIContent("自室(消灯)");
  601. break;
  602. case "MyRoom":
  603. bgCombo2List[index] = new GUIContent("主人公部屋");
  604. break;
  605. case "MyRoom_Night":
  606. bgCombo2List[index] = new GUIContent("主人公部屋(夜)");
  607. break;
  608. case "Oheya":
  609. bgCombo2List[index] = new GUIContent("四畳半部屋");
  610. break;
  611. case "OiranRoom":
  612. bgCombo2List[index] = new GUIContent("花魁ルーム");
  613. break;
  614. case "OpemCafe":
  615. bgCombo2List[index] = new GUIContent("カフェ");
  616. break;
  617. case "OpemCafe_Night":
  618. bgCombo2List[index] = new GUIContent("カフェ(夜)");
  619. break;
  620. case "OutletPark":
  621. bgCombo2List[index] = new GUIContent("アウトレットパーク");
  622. break;
  623. case "Penthouse":
  624. bgCombo2List[index] = new GUIContent("ペントハウス");
  625. break;
  626. case "PlayRoom":
  627. bgCombo2List[index] = new GUIContent("プレイルーム");
  628. break;
  629. case "PlayRoom2":
  630. bgCombo2List[index] = new GUIContent("プレイルーム2");
  631. break;
  632. case "Pool":
  633. bgCombo2List[index] = new GUIContent("プール");
  634. break;
  635. case "PrivateRoom":
  636. bgCombo2List[index] = new GUIContent("プライベートルーム");
  637. break;
  638. case "PrivateRoom_Night":
  639. bgCombo2List[index] = new GUIContent("プライベートルーム(夜)");
  640. break;
  641. case "Restaurant":
  642. bgCombo2List[index] = new GUIContent("レストラン");
  643. break;
  644. case "Restaurant_Night":
  645. bgCombo2List[index] = new GUIContent("レストラン(夜)");
  646. break;
  647. case "SMClub":
  648. bgCombo2List[index] = new GUIContent("SMクラブ");
  649. break;
  650. case "SMRoom":
  651. bgCombo2List[index] = new GUIContent("SMルーム");
  652. break;
  653. case "SMRoom2":
  654. bgCombo2List[index] = new GUIContent("地下室");
  655. break;
  656. case "Salon":
  657. bgCombo2List[index] = new GUIContent("サロン");
  658. break;
  659. case "Salon_Day":
  660. bgCombo2List[index] = new GUIContent("サロン(昼)");
  661. break;
  662. case "Salon_Entrance":
  663. bgCombo2List[index] = new GUIContent("エントランス");
  664. break;
  665. case "Salon_Garden":
  666. bgCombo2List[index] = new GUIContent("サロン(中庭)");
  667. break;
  668. case "Sea":
  669. bgCombo2List[index] = new GUIContent("海");
  670. break;
  671. case "Sea_Night":
  672. bgCombo2List[index] = new GUIContent("海(夜)");
  673. break;
  674. case "ShinShitsumu":
  675. bgCombo2List[index] = new GUIContent("執務室");
  676. break;
  677. case "ShinShitsumu_ChairRot":
  678. bgCombo2List[index] = new GUIContent("執務室(椅子)");
  679. break;
  680. case "ShinShitsumu_Night":
  681. bgCombo2List[index] = new GUIContent("執務室(夜)");
  682. break;
  683. case "Shitsumu":
  684. bgCombo2List[index] = new GUIContent("執務室");
  685. break;
  686. case "Shitsumu_Night":
  687. bgCombo2List[index] = new GUIContent("執務室(夜)");
  688. break;
  689. case "ShoppingMall":
  690. bgCombo2List[index] = new GUIContent("ショッピングモール");
  691. break;
  692. case "ShoppingMall_Night":
  693. bgCombo2List[index] = new GUIContent("ショッピングモール(夜)");
  694. break;
  695. case "Shukuhakubeya_BedRoom":
  696. bgCombo2List[index] = new GUIContent("宿泊-ベッドルーム");
  697. break;
  698. case "Shukuhakubeya_BedRoom_Night":
  699. bgCombo2List[index] = new GUIContent("宿泊-ベッドルーム(夜)");
  700. break;
  701. case "Shukuhakubeya_Living":
  702. bgCombo2List[index] = new GUIContent("宿泊-リビング");
  703. break;
  704. case "Shukuhakubeya_Living_Night":
  705. bgCombo2List[index] = new GUIContent("宿泊-リビング(夜)");
  706. break;
  707. case "Shukuhakubeya_Other_BedRoom":
  708. bgCombo2List[index] = new GUIContent("宿泊-他ベッドルーム(夜)");
  709. break;
  710. case "Shukuhakubeya_Toilet":
  711. bgCombo2List[index] = new GUIContent("宿泊-トイレ");
  712. break;
  713. case "Shukuhakubeya_Toilet_Night":
  714. bgCombo2List[index] = new GUIContent("宿泊-トイレ(夜)");
  715. break;
  716. case "Shukuhakubeya_WashRoom":
  717. bgCombo2List[index] = new GUIContent("宿泊-洗面所");
  718. break;
  719. case "Shukuhakubeya_WashRoom_Night":
  720. bgCombo2List[index] = new GUIContent("宿泊-洗面所(夜)");
  721. break;
  722. case "Soap":
  723. bgCombo2List[index] = new GUIContent("ソープ");
  724. break;
  725. case "Spa":
  726. bgCombo2List[index] = new GUIContent("スパ");
  727. break;
  728. case "Spa_Night":
  729. bgCombo2List[index] = new GUIContent("スパ(夜)");
  730. break;
  731. case "Syosai":
  732. bgCombo2List[index] = new GUIContent("書斎");
  733. break;
  734. case "Syosai_Night":
  735. bgCombo2List[index] = new GUIContent("書斎(夜)");
  736. break;
  737. case "Theater":
  738. bgCombo2List[index] = new GUIContent("劇場");
  739. break;
  740. case "Theater_LightOff":
  741. bgCombo2List[index] = new GUIContent("劇場(夜)");
  742. break;
  743. case "Toilet":
  744. bgCombo2List[index] = new GUIContent("トイレ");
  745. break;
  746. case "Town":
  747. bgCombo2List[index] = new GUIContent("街");
  748. break;
  749. case "Train":
  750. bgCombo2List[index] = new GUIContent("電車");
  751. break;
  752. case "Yashiki":
  753. bgCombo2List[index] = new GUIContent("屋敷(夜)");
  754. break;
  755. case "Yashiki_Day":
  756. bgCombo2List[index] = new GUIContent("屋敷");
  757. break;
  758. case "Yashiki_Pillow":
  759. bgCombo2List[index] = new GUIContent("屋敷(夜・枕)");
  760. break;
  761. case "karaokeroom":
  762. bgCombo2List[index] = new GUIContent("カラオケルーム");
  763. break;
  764. case "rotenburo":
  765. bgCombo2List[index] = new GUIContent("露天風呂");
  766. break;
  767. case "rotenburo_night":
  768. bgCombo2List[index] = new GUIContent("露天風呂(夜)");
  769. break;
  770. case "villa":
  771. bgCombo2List[index] = new GUIContent("ヴィラ1F");
  772. break;
  773. case "villa_bedroom":
  774. bgCombo2List[index] = new GUIContent("ヴィラ2F");
  775. break;
  776. case "villa_bedroom_night":
  777. bgCombo2List[index] = new GUIContent("ヴィラ2F(夜)");
  778. break;
  779. case "villa_farm":
  780. bgCombo2List[index] = new GUIContent("畑");
  781. break;
  782. case "villa_farm_night":
  783. bgCombo2List[index] = new GUIContent("畑(夜)");
  784. break;
  785. case "villa_night":
  786. bgCombo2List[index] = new GUIContent("ヴィラ1F(夜)");
  787. break;
  788. default:
  789. bgCombo2List[index] = new GUIContent(bgArray[index]);
  790. break;
  791. }
  792. Dictionary<string, string> saveDataDic = CreativeRoomManager.GetSaveDataDic();
  793. if (saveDataDic != null)
  794. {
  795. foreach (KeyValuePair<string, string> keyValuePair in saveDataDic)
  796. {
  797. if (bgArray[index] == keyValuePair.Key)
  798. bgCombo2List[index] = new GUIContent(keyValuePair.Value);
  799. }
  800. }
  801. }
  802. slotCombo.selectedItemIndex = 0;
  803. slotComboList = new GUIContent[slotArray.Length];
  804. for (int index = 0; index < slotArray.Length; ++index)
  805. {
  806. switch (slotArray[index])
  807. {
  808. case "accashi":
  809. slotComboList[index] = new GUIContent("足首");
  810. break;
  811. case "acchana":
  812. slotComboList[index] = new GUIContent("鼻");
  813. break;
  814. case "acchat":
  815. slotComboList[index] = new GUIContent("帽子");
  816. break;
  817. case "acchead":
  818. slotComboList[index] = new GUIContent("アイマスク");
  819. break;
  820. case "accheso":
  821. slotComboList[index] = new GUIContent("へそ");
  822. break;
  823. case "acckami":
  824. slotComboList[index] = new GUIContent("前髪");
  825. break;
  826. case "acckamisub":
  827. slotComboList[index] = new GUIContent("リボン");
  828. break;
  829. case "acckubi":
  830. slotComboList[index] = new GUIContent("ネックレス");
  831. break;
  832. case "acckubiwa":
  833. slotComboList[index] = new GUIContent("チョーカー");
  834. break;
  835. case "accmimi":
  836. slotComboList[index] = new GUIContent("耳");
  837. break;
  838. case "accnip":
  839. slotComboList[index] = new GUIContent("乳首");
  840. break;
  841. case "accsenaka":
  842. slotComboList[index] = new GUIContent("背中");
  843. break;
  844. case "accshippo":
  845. slotComboList[index] = new GUIContent("しっぽ");
  846. break;
  847. case "accude":
  848. slotComboList[index] = new GUIContent("腕");
  849. break;
  850. case "accxxx":
  851. slotComboList[index] = new GUIContent("前穴");
  852. break;
  853. case "bra":
  854. slotComboList[index] = new GUIContent("ブラジャー");
  855. break;
  856. case "glove":
  857. slotComboList[index] = new GUIContent("手袋");
  858. break;
  859. case "headset":
  860. slotComboList[index] = new GUIContent("ヘッドドレス");
  861. break;
  862. case "megane":
  863. slotComboList[index] = new GUIContent("メガネ");
  864. break;
  865. case "mizugi":
  866. slotComboList[index] = new GUIContent("水着");
  867. break;
  868. case "onepiece":
  869. slotComboList[index] = new GUIContent("ワンピース");
  870. break;
  871. case "panz":
  872. slotComboList[index] = new GUIContent("パンツ");
  873. break;
  874. case "shoes":
  875. slotComboList[index] = new GUIContent("靴");
  876. break;
  877. case "skirt":
  878. slotComboList[index] = new GUIContent("ボトムス");
  879. break;
  880. case "stkg":
  881. slotComboList[index] = new GUIContent("靴下");
  882. break;
  883. case "wear":
  884. slotComboList[index] = new GUIContent("トップス");
  885. break;
  886. default:
  887. slotComboList[index] = new GUIContent(slotArray[index]);
  888. break;
  889. }
  890. }
  891. itemCombo2.selectedItemIndex = 0;
  892. itemCombo2List = new GUIContent[itemBArray.Length];
  893. for (int index = 0; index < itemBArray.Length; ++index)
  894. {
  895. switch (itemBArray[index])
  896. {
  897. case "accanl,accAnl_AnalVibe_I_.menu":
  898. itemCombo2List[index] = new GUIContent("後:アナルバイブ");
  899. break;
  900. case "accanl,accAnl_Photo_NomalVibe_I_.menu":
  901. itemCombo2List[index] = new GUIContent("後:バイブ");
  902. break;
  903. case "accanl,accAnl_Photo_VibeBig_I_.menu":
  904. itemCombo2List[index] = new GUIContent("後:太バイブ");
  905. break;
  906. case "accanl,accAnl_Photo_VibePink_I_.menu":
  907. itemCombo2List[index] = new GUIContent("後:ピンクバイブ");
  908. break;
  909. case "accvag,accVag_VibeBig_I_.menu":
  910. itemCombo2List[index] = new GUIContent("前:太バイブ");
  911. break;
  912. case "accvag,accVag_VibePink_I_.menu":
  913. itemCombo2List[index] = new GUIContent("前:ピンクバイブ");
  914. break;
  915. case "accvag,accVag_Vibe_I_.menu":
  916. itemCombo2List[index] = new GUIContent("前:バイブ");
  917. break;
  918. case "handitem,HandItemH_SoutouVibe_I_.menu":
  919. itemCombo2List[index] = new GUIContent("双頭バイブ");
  920. break;
  921. case "handitem,HandItemL_Cracker_I_.menu":
  922. itemCombo2List[index] = new GUIContent("クラッカー");
  923. break;
  924. case "handitem,HandItemL_Dance_Hataki_I_.menu":
  925. itemCombo2List[index] = new GUIContent("ダンスハタキ");
  926. break;
  927. case "handitem,HandItemL_Dance_Mop_I_.menu":
  928. itemCombo2List[index] = new GUIContent("ダンスモップ");
  929. break;
  930. case "handitem,HandItemL_Dance_Zoukin_I_.menu":
  931. itemCombo2List[index] = new GUIContent("ダンス雑巾");
  932. break;
  933. case "handitem,HandItemL_Etoile_Saucer_I_.menu":
  934. itemCombo2List[index] = new GUIContent("ティーソーサー");
  935. break;
  936. case "handitem,HandItemL_Karaoke_Mike_I_.menu":
  937. itemCombo2List[index] = new GUIContent("カラオケマイク");
  938. break;
  939. case "handitem,HandItemL_Karte_I_.menu":
  940. itemCombo2List[index] = new GUIContent("カルテ");
  941. break;
  942. case "handitem,HandItemL_Katuramuki_Daikon_I_.menu":
  943. itemCombo2List[index] = new GUIContent("桂むき大根");
  944. break;
  945. case "handitem,HandItemL_Kozara_I_.menu":
  946. itemCombo2List[index] = new GUIContent("小皿");
  947. break;
  948. case "handitem,HandItemL_Sara_I_.menu":
  949. itemCombo2List[index] = new GUIContent("皿");
  950. break;
  951. case "handitem,HandItemL_Shisyuu_I_.menu":
  952. itemCombo2List[index] = new GUIContent("刺繍");
  953. break;
  954. case "handitem,HandItemL_Teasaucer_I_.menu":
  955. itemCombo2List[index] = new GUIContent("ティーソーサー");
  956. break;
  957. case "handitem,HandItemR_AnalVibe_I_.menu":
  958. itemCombo2List[index] = new GUIContent("アナルバイブ");
  959. break;
  960. case "handitem,HandItemR_BeerBottle(cap_off)_I_.menu":
  961. itemCombo2List[index] = new GUIContent("ビールボトル(開)");
  962. break;
  963. case "handitem,HandItemR_BeerBottle(cap_on)_I_.menu":
  964. itemCombo2List[index] = new GUIContent("ビールボトル");
  965. break;
  966. case "handitem,HandItemR_BeerGlass_I_.menu":
  967. itemCombo2List[index] = new GUIContent("ビールグラス");
  968. break;
  969. case "handitem,HandItemR_Book_I_.menu":
  970. itemCombo2List[index] = new GUIContent("本");
  971. break;
  972. case "handitem,HandItemR_Chu-B_Lip_I_.menu":
  973. itemCombo2List[index] = new GUIContent("Chu-B Lip");
  974. break;
  975. case "handitem,HandItemR_Chusyaki_I_.menu":
  976. itemCombo2List[index] = new GUIContent("注射器");
  977. break;
  978. case "handitem,HandItemR_Crops_Suika_I_.menu":
  979. itemCombo2List[index] = new GUIContent("スイカ");
  980. break;
  981. case "handitem,HandItemR_Curry_I_.menu":
  982. itemCombo2List[index] = new GUIContent("カレー");
  983. break;
  984. case "handitem,HandItemR_DVD1_I_.menu":
  985. itemCombo2List[index] = new GUIContent("DVD1");
  986. break;
  987. case "handitem,HandItemR_DVD2_I_.menu":
  988. itemCombo2List[index] = new GUIContent("DVD2");
  989. break;
  990. case "handitem,HandItemR_DVD3_I_.menu":
  991. itemCombo2List[index] = new GUIContent("DVD3");
  992. break;
  993. case "handitem,HandItemR_DVD4_I_.menu":
  994. itemCombo2List[index] = new GUIContent("DVD4");
  995. break;
  996. case "handitem,HandItemR_DVD5_I_.menu":
  997. itemCombo2List[index] = new GUIContent("DVD5");
  998. break;
  999. case "handitem,HandItemR_Diary_I_.menu":
  1000. itemCombo2List[index] = new GUIContent("日記");
  1001. break;
  1002. case "handitem,HandItemR_Etoile_Teacup_I_.menu":
  1003. itemCombo2List[index] = new GUIContent("ティーカップ");
  1004. break;
  1005. case "handitem,HandItemR_Folk_I_.menu":
  1006. itemCombo2List[index] = new GUIContent("フォーク");
  1007. break;
  1008. case "handitem,HandItemR_Furaidopoteto_I_.menu":
  1009. itemCombo2List[index] = new GUIContent("フライドポテト1本");
  1010. break;
  1011. case "handitem,HandItemR_Hanabi_I_.menu":
  1012. itemCombo2List[index] = new GUIContent("手持ち花火");
  1013. break;
  1014. case "handitem,HandItemR_Hari_I_.menu":
  1015. itemCombo2List[index] = new GUIContent("針");
  1016. break;
  1017. case "handitem,HandItemR_Hataki_I_.menu":
  1018. itemCombo2List[index] = new GUIContent("ハタキ");
  1019. break;
  1020. case "handitem,HandItemR_Houchou_I_.menu":
  1021. itemCombo2List[index] = new GUIContent("包丁");
  1022. break;
  1023. case "handitem,HandItemR_Houki_I_.menu":
  1024. itemCombo2List[index] = new GUIContent("ほうき");
  1025. break;
  1026. case "handitem,HandItemR_Jyouro_I_.menu":
  1027. itemCombo2List[index] = new GUIContent("じょうろ");
  1028. break;
  1029. case "handitem,HandItemR_Ketchup_I_.menu":
  1030. itemCombo2List[index] = new GUIContent("ケチャップ");
  1031. break;
  1032. case "handitem,HandItemR_Kobin_I_.menu":
  1033. itemCombo2List[index] = new GUIContent("小瓶");
  1034. break;
  1035. case "handitem,HandItemR_Kushiyaki_I_.menu":
  1036. itemCombo2List[index] = new GUIContent("串焼き");
  1037. break;
  1038. case "handitem,HandItemR_MelonSoda_I_.menu":
  1039. itemCombo2List[index] = new GUIContent("メロンソーダ");
  1040. break;
  1041. case "handitem,HandItemR_Menu_I_.menu":
  1042. itemCombo2List[index] = new GUIContent("メニュー表");
  1043. break;
  1044. case "handitem,HandItemR_MilkBottle(cap_off)_I_.menu":
  1045. itemCombo2List[index] = new GUIContent("牛乳(開)");
  1046. break;
  1047. case "handitem,HandItemR_MilkBottle(cap_on)_I_.menu":
  1048. itemCombo2List[index] = new GUIContent("牛乳");
  1049. break;
  1050. case "handitem,HandItemR_Mimikaki_I_.menu":
  1051. itemCombo2List[index] = new GUIContent("耳かき");
  1052. break;
  1053. case "handitem,HandItemR_Mop_I_.menu":
  1054. itemCombo2List[index] = new GUIContent("モップ");
  1055. break;
  1056. case "handitem,HandItemR_Mugcup_I_.menu":
  1057. itemCombo2List[index] = new GUIContent("マグカップ");
  1058. break;
  1059. case "handitem,HandItemR_Natumikan_I_.menu":
  1060. itemCombo2List[index] = new GUIContent("夏みかん");
  1061. break;
  1062. case "handitem,HandItemR_Nei_Heartful_I_.menu":
  1063. itemCombo2List[index] = new GUIContent("ハートフルねい人形");
  1064. break;
  1065. case "handitem,HandItemR_Ninjin_I_.menu":
  1066. itemCombo2List[index] = new GUIContent("ニンジン");
  1067. break;
  1068. case "handitem,HandItemR_Ochoko_I_.menu":
  1069. itemCombo2List[index] = new GUIContent("お猪口");
  1070. break;
  1071. case "handitem,HandItemR_Omurice1_I_.menu":
  1072. itemCombo2List[index] = new GUIContent("オムライス1");
  1073. break;
  1074. case "handitem,HandItemR_Omurice2_I_.menu":
  1075. itemCombo2List[index] = new GUIContent("オムライス2");
  1076. break;
  1077. case "handitem,HandItemR_Omurice3_I_.menu":
  1078. itemCombo2List[index] = new GUIContent("オムライス3");
  1079. break;
  1080. case "handitem,HandItemR_Otama_I_.menu":
  1081. itemCombo2List[index] = new GUIContent("おたま");
  1082. break;
  1083. case "handitem,HandItemR_Pasta_I_.menu":
  1084. itemCombo2List[index] = new GUIContent("パスタ");
  1085. break;
  1086. case "handitem,HandItemR_Pen_I_.menu":
  1087. itemCombo2List[index] = new GUIContent("ペン");
  1088. break;
  1089. case "handitem,HandItemR_Puff_I_.menu":
  1090. itemCombo2List[index] = new GUIContent("パフ");
  1091. break;
  1092. case "handitem,HandItemR_Rip_I_.menu":
  1093. itemCombo2List[index] = new GUIContent("リップ");
  1094. break;
  1095. case "handitem,HandItemR_Satumaimo_I_.menu":
  1096. itemCombo2List[index] = new GUIContent("さつまいも");
  1097. break;
  1098. case "handitem,HandItemR_Scoop_I_.menu":
  1099. itemCombo2List[index] = new GUIContent("スコップ");
  1100. break;
  1101. case "handitem,HandItemR_Senkouhanabi_I_.menu":
  1102. itemCombo2List[index] = new GUIContent("線香花火");
  1103. break;
  1104. case "handitem,HandItemR_Shaker_I_.menu":
  1105. itemCombo2List[index] = new GUIContent("シェイカー");
  1106. break;
  1107. case "handitem,HandItemR_Shell_I_.menu":
  1108. itemCombo2List[index] = new GUIContent("貝殻");
  1109. break;
  1110. case "handitem,HandItemR_Shihen_I_.menu":
  1111. itemCombo2List[index] = new GUIContent("紙片");
  1112. break;
  1113. case "handitem,HandItemR_SmartPhone_I_.menu":
  1114. itemCombo2List[index] = new GUIContent("スマートフォン");
  1115. break;
  1116. case "handitem,HandItemR_Sponge_I_.menu":
  1117. itemCombo2List[index] = new GUIContent("スポンジ");
  1118. break;
  1119. case "handitem,HandItemR_Spoon_Curry_I_.menu":
  1120. itemCombo2List[index] = new GUIContent("スプーン(カレー)");
  1121. break;
  1122. case "handitem,HandItemR_Spoon_Omurice_I_.menu":
  1123. itemCombo2List[index] = new GUIContent("スプーン(オムライス)");
  1124. break;
  1125. case "handitem,HandItemR_Spoon_Pafe_I_.menu":
  1126. itemCombo2List[index] = new GUIContent("パフェスプーン");
  1127. break;
  1128. case "handitem,HandItemR_Suika_I_.menu":
  1129. itemCombo2List[index] = new GUIContent("スイカ2");
  1130. break;
  1131. case "handitem,HandItemR_Teacup_I_.menu":
  1132. itemCombo2List[index] = new GUIContent("ティーカップ");
  1133. break;
  1134. case "handitem,HandItemR_Tomato_I_.menu":
  1135. itemCombo2List[index] = new GUIContent("トマト");
  1136. break;
  1137. case "handitem,HandItemR_Tomorokoshi_I_.menu":
  1138. itemCombo2List[index] = new GUIContent("トウモロコシ");
  1139. break;
  1140. case "handitem,HandItemR_Tomorokoshi_yaki_I_.menu":
  1141. itemCombo2List[index] = new GUIContent("焼きトウモロコシ");
  1142. break;
  1143. case "handitem,HandItemR_TropicalGlass_I_.menu":
  1144. itemCombo2List[index] = new GUIContent("トロピカルグラス");
  1145. break;
  1146. case "handitem,HandItemR_Uchiwa_I_.menu":
  1147. itemCombo2List[index] = new GUIContent("うちわ");
  1148. break;
  1149. case "handitem,HandItemR_Ukiwa_I_.menu":
  1150. itemCombo2List[index] = new GUIContent("浮き輪");
  1151. break;
  1152. case "handitem,HandItemR_Usuba_Houchou_I_.menu":
  1153. itemCombo2List[index] = new GUIContent("薄刃包丁");
  1154. break;
  1155. case "handitem,HandItemR_VibeBig_I_.menu":
  1156. itemCombo2List[index] = new GUIContent("太バイブ");
  1157. break;
  1158. case "handitem,HandItemR_VibePink_I_.menu":
  1159. itemCombo2List[index] = new GUIContent("ピンクバイブ");
  1160. break;
  1161. case "handitem,HandItemR_Vibe_I_.menu":
  1162. itemCombo2List[index] = new GUIContent("バイブ");
  1163. break;
  1164. case "handitem,HandItemR_Wholecake_I_.menu":
  1165. itemCombo2List[index] = new GUIContent("ホールケーキ");
  1166. break;
  1167. case "handitem,HandItemR_WineBottle_I_.menu":
  1168. itemCombo2List[index] = new GUIContent("ワインボトル");
  1169. break;
  1170. case "handitem,HandItemR_WineGlass_I_.menu":
  1171. itemCombo2List[index] = new GUIContent("ワイングラス");
  1172. break;
  1173. case "handitem,HandItemR_Zoukin2_I_.menu":
  1174. itemCombo2List[index] = new GUIContent("雑巾");
  1175. break;
  1176. case "handitem,HandItemR_cocktail_blue_I_.menu":
  1177. itemCombo2List[index] = new GUIContent("カクテル・青");
  1178. break;
  1179. case "handitem,HandItemR_cocktail_red_I_.menu":
  1180. itemCombo2List[index] = new GUIContent("カクテル・赤");
  1181. break;
  1182. case "handitem,HandItemR_cocktail_yellow_I_.menu":
  1183. itemCombo2List[index] = new GUIContent("カクテル・黄");
  1184. break;
  1185. case "handitem,HandItemR_karaoke_maracas_I_.menu":
  1186. itemCombo2List[index] = new GUIContent("マラカス");
  1187. break;
  1188. case "handitem,HandItemR_karaoke_sensu_I_.menu":
  1189. itemCombo2List[index] = new GUIContent("扇子");
  1190. break;
  1191. case "handitem,HandItemR_pretzel_I_.menu":
  1192. itemCombo2List[index] = new GUIContent("ポッキー");
  1193. break;
  1194. case "handitem,HandItemR_smoothie_green_I_.menu":
  1195. itemCombo2List[index] = new GUIContent("スムージー・緑");
  1196. break;
  1197. case "handitem,HandItemR_smoothie_red_I_.menu":
  1198. itemCombo2List[index] = new GUIContent("スムージー・赤");
  1199. break;
  1200. case "handitem,handitemr_racket_I_.menu":
  1201. itemCombo2List[index] = new GUIContent("ラケット");
  1202. break;
  1203. case "kousoku_lower,KousokuL_BathTowel_I_.menu":
  1204. itemCombo2List[index] = new GUIContent("バストレイ");
  1205. break;
  1206. case "kousoku_upper,KousokuU_SMRoom2_Haritsuke_I_.menu":
  1207. itemCombo2List[index] = new GUIContent("磔台2");
  1208. break;
  1209. case "kousoku_upper,KousokuU_SMRoom_Haritsuke_I_.menu":
  1210. itemCombo2List[index] = new GUIContent("磔台");
  1211. break;
  1212. case "kousoku_upper,KousokuU_TekaseOne_I_.menu":
  1213. itemCombo2List[index] = new GUIContent("手枷1");
  1214. break;
  1215. case "kousoku_upper,KousokuU_TekaseTwo_I_.menu":
  1216. itemCombo2List[index] = new GUIContent("手枷2");
  1217. break;
  1218. case "kousoku_upper,KousokuU_Ushirode_I_.menu":
  1219. itemCombo2List[index] = new GUIContent("後ろ手拘束具");
  1220. break;
  1221. default:
  1222. itemCombo2List[index] = new GUIContent(itemBArray[index]);
  1223. break;
  1224. }
  1225. }
  1226. kankyoCombo.selectedItemIndex = 0;
  1227. kankyoComboList = new GUIContent[kankyoMax];
  1228. for (int index = 0; index < kankyoMax; ++index)
  1229. {
  1230. IniKey iniKey = this.Preferences["kankyo"]["kankyo" + (object) (index + 1)];
  1231. kankyoComboList[index] = new GUIContent(iniKey.Value);
  1232. }
  1233. kankyo2InitFlg = true;
  1234. }
  1235. listStyle3.padding.top = this.GetPix(1);
  1236. listStyle3.padding.bottom = this.GetPix(0);
  1237. listStyle3.fontSize = this.GetPix(13);
  1238. if (poseCombo.isClickedComboButton)
  1239. GUI.enabled = false;
  1240. if (poseGroupCombo.isClickedComboButton)
  1241. GUI.enabled = false;
  1242. if (sceneLevel == 3 || sceneLevel == 5 || isF6)
  1243. {
  1244. if (!isF6)
  1245. {
  1246. bool flag = true;
  1247. if (faceFlg || poseFlg || (sceneFlg || kankyoFlg) || kankyo2Flg)
  1248. flag = false;
  1249. if (GUI.Toggle(new Rect((float) this.GetPix(2),
  1250. (float) this.GetPix(2),
  1251. (float) this.GetPix(39),
  1252. (float) this.GetPix(20)),
  1253. flag,
  1254. "配置",
  1255. style3))
  1256. {
  1257. faceFlg = false;
  1258. poseFlg = false;
  1259. sceneFlg = false;
  1260. kankyoFlg = false;
  1261. kankyo2Flg = false;
  1262. bGui = true;
  1263. isGuiInit = true;
  1264. }
  1265. }
  1266. if (!yotogiFlg && GUI.Toggle(new Rect((float) this.GetPix(42),
  1267. (float) this.GetPix(2),
  1268. (float) this.GetPix(39),
  1269. (float) this.GetPix(20)),
  1270. poseFlg,
  1271. "操作",
  1272. style3))
  1273. {
  1274. poseFlg = true;
  1275. faceFlg = false;
  1276. sceneFlg = false;
  1277. kankyoFlg = false;
  1278. kankyo2Flg = false;
  1279. }
  1280. if (GUI.Toggle(new Rect((float) this.GetPix(82), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
  1281. faceFlg,
  1282. "表情",
  1283. style3))
  1284. {
  1285. faceFlg = true;
  1286. poseFlg = false;
  1287. sceneFlg = false;
  1288. kankyoFlg = false;
  1289. kankyo2Flg = false;
  1290. if (!faceFlg2)
  1291. {
  1292. isFaceInit = true;
  1293. faceFlg2 = true;
  1294. maidArray[selectMaidIndex].boMabataki = false;
  1295. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  1296. }
  1297. isFaceInit = true;
  1298. }
  1299. if (GUI.Toggle(new Rect((float) this.GetPix(122), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
  1300. kankyoFlg,
  1301. "環境",
  1302. style3))
  1303. {
  1304. poseFlg = false;
  1305. faceFlg = false;
  1306. sceneFlg = false;
  1307. kankyoFlg = true;
  1308. kankyo2Flg = false;
  1309. }
  1310. if (GUI.Toggle(new Rect((float) this.GetPix(162), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
  1311. kankyo2Flg,
  1312. "環2",
  1313. style3))
  1314. {
  1315. poseFlg = false;
  1316. faceFlg = false;
  1317. sceneFlg = false;
  1318. kankyoFlg = false;
  1319. kankyo2Flg = true;
  1320. }
  1321. if (!(bool) ((Object) line1))
  1322. {
  1323. line1 = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.3f));
  1324. line2 = this.MakeTex(2, 2, new Color(0.7f, 0.7f, 0.7f, 0.6f));
  1325. }
  1326. GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(20), (float) this.GetPix(200), 2f), (Texture) line1);
  1327. GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(20), (float) this.GetPix(200), 1f), (Texture) line2);
  1328. }
  1329. if (isDanceStop)
  1330. {
  1331. isStop[selectMaidIndex] = true;
  1332. isDanceStop = false;
  1333. }
  1334. if (kankyoCombo.isClickedComboButton || slotCombo.isClickedComboButton
  1335. || (itemCombo2.isClickedComboButton || bgCombo2.isClickedComboButton))
  1336. GUI.enabled = false;
  1337. characterMgr.GetStockMaidCount();
  1338. float pix = (float) this.GetPix(45);
  1339. Rect position1;
  1340. Rect viewRect;
  1341. if (sceneLevel != 5)
  1342. {
  1343. position1 = new Rect((float) this.GetPix(7),
  1344. (float) this.GetPix(138),
  1345. (float) (this.GetPix(44) * 4 + this.GetPix(20)),
  1346. rectWin.height * 0.785f);
  1347. viewRect = new Rect(0.0f,
  1348. 0.0f,
  1349. position1.width * 0.845f,
  1350. pix * (float) Math.Ceiling((double) sortList.Count / 4.0) + (float) this.GetPix(5));
  1351. }
  1352. else
  1353. {
  1354. position1 = new Rect((float) this.GetPix(7),
  1355. (float) this.GetPix(138),
  1356. (float) (this.GetPix(44) * 4 + this.GetPix(20)),
  1357. (float) ((double) rectWin.height * 0.785000026226044 * 0.959999978542328));
  1358. viewRect = new Rect(0.0f,
  1359. 0.0f,
  1360. position1.width * 0.845f,
  1361. (float) ((double) pix * Math.Ceiling((double) sortList.Count / 4.0)
  1362. + (double) this.GetPix(5) * 0.920000016689301));
  1363. }
  1364. scrollPos = GUI.BeginScrollView(position1, scrollPos, viewRect);
  1365. for (int index = 0; index < sortList.Count; ++index)
  1366. {
  1367. Rect position2 = new Rect((float) this.GetPix(index % 4 * 45),
  1368. (float) this.GetPix(index / 4 * 45),
  1369. (float) this.GetPix(44),
  1370. (float) this.GetPix(44));
  1371. if (GUI.Button(position2, (Texture) sortList[index].tex))
  1372. {
  1373. string menu = sortList[index].menu;
  1374. byte[] f_byBuf = (byte[]) null;
  1375. using (AFileBase afileBase = GameUty.FileOpen(menu, (AFileSystemBase) null))
  1376. {
  1377. NDebug.Assert(afileBase.IsValid(), "メニューファイルが存在しません。 :" + menu);
  1378. if (f_byBuf == null || f_byBuf.Length < afileBase.GetSize())
  1379. f_byBuf = new byte[afileBase.GetSize()];
  1380. afileBase.Read(ref f_byBuf, afileBase.GetSize());
  1381. }
  1382. string[] filename2 = ProcScriptBin(maidArray[0], f_byBuf, menu, false);
  1383. GameObject gameObject = ImportCM2.LoadSkinMesh_R(filename2[0], filename2, "", maidArray[0].body0.goSlot[8], 1);
  1384. doguBObject.Add(gameObject);
  1385. gameObject.name = menu;
  1386. Vector3 zero1 = Vector3.zero;
  1387. Vector3 zero2 = Vector3.zero;
  1388. zero1.z = 0.4f;
  1389. gameObject.transform.localPosition = zero1;
  1390. gameObject.transform.localRotation = Quaternion.Euler(zero2);
  1391. doguCnt = doguBObject.Count - 1;
  1392. gDogu[doguCnt] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  1393. gDogu[doguCnt].GetComponent<Renderer>().material = m_material;
  1394. gDogu[doguCnt].layer = 8;
  1395. gDogu[doguCnt].GetComponent<Renderer>().enabled = false;
  1396. gDogu[doguCnt].SetActive(false);
  1397. gDogu[doguCnt].transform.position = gameObject.transform.position;
  1398. mDogu[doguCnt] = gDogu[doguCnt].AddComponent<MouseDrag6>();
  1399. mDogu[doguCnt].isScale = false;
  1400. mDogu[doguCnt].obj = gDogu[doguCnt];
  1401. mDogu[doguCnt].maid = gameObject;
  1402. mDogu[doguCnt].angles = gameObject.transform.eulerAngles;
  1403. gDogu[doguCnt].transform.localScale = new Vector3(cubeSize, cubeSize, cubeSize);
  1404. mDogu[doguCnt].ido = 1;
  1405. }
  1406. GUI.DrawTexture(position2, (Texture) sortList[index].tex);
  1407. }
  1408. GUI.EndScrollView();
  1409. GUI.enabled = true;
  1410. GUI.Label(new Rect((float) this.GetPix(3), (float) this.GetPix(108), (float) this.GetPix(100), (float) this.GetPix(25)),
  1411. "服装",
  1412. style1);
  1413. style1.fontSize = this.GetPix(9);
  1414. GUI.Label(new Rect((float) this.GetPix(3), (float) this.GetPix(119), (float) this.GetPix(100), (float) this.GetPix(25)),
  1415. "アクセサリ",
  1416. style1);
  1417. style1.fontSize = this.GetPix(11);
  1418. GUI.Label(new Rect((float) this.GetPix(3), (float) this.GetPix(58), (float) this.GetPix(100), (float) this.GetPix(25)),
  1419. "アイテム",
  1420. style1);
  1421. GUI.Label(new Rect((float) this.GetPix(3), (float) this.GetPix(86), (float) this.GetPix(100), (float) this.GetPix(24)),
  1422. "背景(小)",
  1423. style1);
  1424. if (kankyoCombo.isClickedComboButton || itemCombo2.isClickedComboButton || bgCombo2.isClickedComboButton)
  1425. GUI.enabled = false;
  1426. int num1 =
  1427. slotCombo.List(new Rect((float) this.GetPix(51),
  1428. (float) this.GetPix(111),
  1429. (float) this.GetPix(100),
  1430. (float) this.GetPix(23)),
  1431. slotComboList[slotIndex].text,
  1432. slotComboList,
  1433. buttonStyle,
  1434. (GUIStyle) "box",
  1435. listStyle3);
  1436. GUI.enabled = true;
  1437. if (kankyoCombo.isClickedComboButton || itemCombo2.isClickedComboButton)
  1438. GUI.enabled = false;
  1439. bgIndexB =
  1440. bgCombo2.List(new Rect((float) this.GetPix(51),
  1441. (float) this.GetPix(83),
  1442. (float) this.GetPix(100),
  1443. (float) this.GetPix(23)),
  1444. bgCombo2List[bgIndexB].text,
  1445. bgCombo2List,
  1446. buttonStyle,
  1447. (GUIStyle) "box",
  1448. listStyle3);
  1449. if (GUI.Button(new Rect((float) this.GetPix(156), (float) this.GetPix(83), (float) this.GetPix(38), (float) this.GetPix(23)),
  1450. "追加",
  1451. style2))
  1452. {
  1453. Object original = (Object) GameMain.Instance.BgMgr.CreateAssetBundle(bgArray[bgIndexB]);
  1454. if (original == (Object) null)
  1455. original = Resources.Load("BG/" + bgArray[bgIndexB]);
  1456. GameObject gameObject = Instantiate(original) as GameObject;
  1457. doguBObject.Add(gameObject);
  1458. gameObject.name = "BG_" + bgArray[bgIndexB];
  1459. Vector3 zero1 = Vector3.zero;
  1460. Vector3 zero2 = Vector3.zero;
  1461. zero1.z = 0.4f;
  1462. gameObject.transform.localScale = new Vector3(0.1f, 0.1f, 0.1f);
  1463. gameObject.transform.localPosition = zero1;
  1464. gameObject.transform.localRotation = Quaternion.Euler(zero2);
  1465. doguCnt = doguBObject.Count - 1;
  1466. gDogu[doguCnt] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  1467. gDogu[doguCnt].GetComponent<Renderer>().material = m_material;
  1468. gDogu[doguCnt].layer = 8;
  1469. gDogu[doguCnt].GetComponent<Renderer>().enabled = false;
  1470. gDogu[doguCnt].SetActive(false);
  1471. gDogu[doguCnt].transform.position = gameObject.transform.position;
  1472. mDogu[doguCnt] = gDogu[doguCnt].AddComponent<MouseDrag6>();
  1473. mDogu[doguCnt].isScale = false;
  1474. mDogu[doguCnt].obj = gDogu[doguCnt];
  1475. mDogu[doguCnt].maid = gameObject;
  1476. mDogu[doguCnt].angles = gameObject.transform.eulerAngles;
  1477. gDogu[doguCnt].transform.localScale = new Vector3(cubeSize, cubeSize, cubeSize);
  1478. mDogu[doguCnt].ido = 1;
  1479. }
  1480. GUI.enabled = true;
  1481. if (kankyoCombo.isClickedComboButton)
  1482. GUI.enabled = false;
  1483. itemIndexB =
  1484. itemCombo2.List(new Rect((float) this.GetPix(51),
  1485. (float) this.GetPix(55),
  1486. (float) this.GetPix(100),
  1487. (float) this.GetPix(23)),
  1488. itemCombo2List[itemIndexB].text,
  1489. itemCombo2List,
  1490. buttonStyle,
  1491. (GUIStyle) "box",
  1492. listStyle3);
  1493. if (GUI.Button(new Rect((float) this.GetPix(156), (float) this.GetPix(55), (float) this.GetPix(38), (float) this.GetPix(23)),
  1494. "追加",
  1495. style2))
  1496. {
  1497. string str = itemBArray[itemIndexB].Split(',')[1];
  1498. byte[] f_byBuf = (byte[]) null;
  1499. using (AFileBase afileBase = GameUty.FileOpen(str, (AFileSystemBase) null))
  1500. {
  1501. NDebug.Assert(afileBase.IsValid(), "メニューファイルが存在しません。 :" + str);
  1502. if (f_byBuf == null || f_byBuf.Length < afileBase.GetSize())
  1503. f_byBuf = new byte[afileBase.GetSize()];
  1504. afileBase.Read(ref f_byBuf, afileBase.GetSize());
  1505. }
  1506. string[] filename2 = ProcScriptBin(maidArray[0], f_byBuf, str, false);
  1507. GameObject gameObject = ImportCM2.LoadSkinMesh_R(filename2[0], filename2, "", maidArray[0].body0.goSlot[8], 1);
  1508. doguBObject.Add(gameObject);
  1509. gameObject.name = str;
  1510. Vector3 zero1 = Vector3.zero;
  1511. Vector3 zero2 = Vector3.zero;
  1512. zero1.z = 0.4f;
  1513. switch (itemIndexB)
  1514. {
  1515. case 0:
  1516. zero2.z = 90f;
  1517. zero1.y = 0.04f;
  1518. goto case 19;
  1519. case 1:
  1520. zero2.z = 90f;
  1521. goto case 19;
  1522. case 4:
  1523. zero2.x = 90f;
  1524. goto case 19;
  1525. case 19:
  1526. case 20:
  1527. case 21:
  1528. case 22:
  1529. case 23:
  1530. switch (gameObject.name)
  1531. {
  1532. case "HandItemL_Etoile_Saucer_I_.menu":
  1533. case "HandItemL_Karte_I_.menu":
  1534. case "HandItemL_Katuramuki_Daikon_I_.menu":
  1535. case "HandItemR_BeerBottle(cap_off)_I_.menu":
  1536. case "HandItemR_BeerBottle(cap_on)_I_.menu":
  1537. case "HandItemR_BeerGlass_I_.menu":
  1538. case "HandItemR_Etoile_Teacup_I_.menu":
  1539. case "HandItemR_Jyouro_I_.menu":
  1540. case "HandItemR_Ketchup_I_.menu":
  1541. case "HandItemR_Kobin_I_.menu":
  1542. case "HandItemR_MelonSoda_I_.menu":
  1543. case "HandItemR_MilkBottle(cap_off)_I_.menu":
  1544. case "HandItemR_MilkBottle(cap_on)_I_.menu":
  1545. case "HandItemR_Mugcup_I_.menu":
  1546. case "HandItemR_Natumikan_I_.menu":
  1547. case "HandItemR_Nei_Heartful_I_.menu":
  1548. case "HandItemR_Ochoko_I_.menu":
  1549. case "HandItemR_Shaker_I_.menu":
  1550. case "HandItemR_SmartPhone_I_.menu":
  1551. case "HandItemR_Suika_I_.menu":
  1552. case "HandItemR_Tomato_I_.menu":
  1553. case "HandItemR_TropicalGlass_I_.menu":
  1554. case "HandItemR_cocktail_blue_I_.menu":
  1555. case "HandItemR_cocktail_red_I_.menu":
  1556. case "HandItemR_cocktail_yellow_I_.menu":
  1557. case "HandItemR_smoothie_green_I_.menu":
  1558. case "HandItemR_smoothie_red_I_.menu":
  1559. zero2.x = 0.0f;
  1560. zero2.z = 90f;
  1561. break;
  1562. case "HandItemL_Karaoke_Mike_I_.menu":
  1563. case "HandItemR_Crops_Suika_I_.menu":
  1564. case "HandItemR_Curry_I_.menu":
  1565. case "HandItemR_DVD1_I_.menu":
  1566. case "HandItemR_DVD2_I_.menu":
  1567. case "HandItemR_DVD3_I_.menu":
  1568. case "HandItemR_DVD4_I_.menu":
  1569. case "HandItemR_DVD5_I_.menu":
  1570. case "HandItemR_Folk_I_.menu":
  1571. case "HandItemR_Hanabi_I_.menu":
  1572. case "HandItemR_Kushiyaki_I_.menu":
  1573. case "HandItemR_Ninjin_I_.menu":
  1574. case "HandItemR_Omurice1_I_.menu":
  1575. case "HandItemR_Omurice2_I_.menu":
  1576. case "HandItemR_Omurice3_I_.menu":
  1577. case "HandItemR_Pasta_I_.menu":
  1578. case "HandItemR_Satumaimo_I_.menu":
  1579. case "HandItemR_Scoop_I_.menu":
  1580. case "HandItemR_Senkouhanabi_I_.menu":
  1581. case "HandItemR_Shell_I_.menu":
  1582. case "HandItemR_Spoon_Curry_I_.menu":
  1583. case "HandItemR_Spoon_Omurice_I_.menu":
  1584. case "HandItemR_Tomorokoshi_I_.menu":
  1585. case "HandItemR_Tomorokoshi_yaki_I_.menu":
  1586. case "HandItemR_Uchiwa_I_.menu":
  1587. zero2.z = 90f;
  1588. break;
  1589. }
  1590. gameObject.transform.localPosition = zero1;
  1591. gameObject.transform.localRotation = Quaternion.Euler(zero2);
  1592. doguCnt = doguBObject.Count - 1;
  1593. gDogu[doguCnt] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  1594. gDogu[doguCnt].GetComponent<Renderer>().material = m_material;
  1595. gDogu[doguCnt].layer = 8;
  1596. gDogu[doguCnt].GetComponent<Renderer>().enabled = false;
  1597. gDogu[doguCnt].SetActive(false);
  1598. gDogu[doguCnt].transform.position = gameObject.transform.position;
  1599. mDogu[doguCnt] = gDogu[doguCnt].AddComponent<MouseDrag6>();
  1600. mDogu[doguCnt].isScale = false;
  1601. mDogu[doguCnt].obj = gDogu[doguCnt];
  1602. mDogu[doguCnt].maid = gameObject;
  1603. mDogu[doguCnt].angles = gameObject.transform.eulerAngles;
  1604. gDogu[doguCnt].transform.localScale = new Vector3(cubeSize, cubeSize, cubeSize);
  1605. mDogu[doguCnt].ido = 1;
  1606. break;
  1607. case 25:
  1608. zero2.z = 90f;
  1609. goto case 19;
  1610. case 26:
  1611. zero2.z = 90f;
  1612. goto case 19;
  1613. case 27:
  1614. zero2.z = 90f;
  1615. goto case 19;
  1616. default:
  1617. zero2.x = -90f;
  1618. goto case 19;
  1619. }
  1620. }
  1621. GUI.enabled = true;
  1622. if (nameFlg)
  1623. {
  1624. inName2 = GUI.TextField(new Rect((float) this.GetPix(5),
  1625. (float) this.GetPix(27),
  1626. (float) this.GetPix(100),
  1627. (float) this.GetPix(20)),
  1628. inName2);
  1629. if (GUI.Button(new Rect((float) this.GetPix(110),
  1630. (float) this.GetPix(27),
  1631. (float) this.GetPix(35),
  1632. (float) this.GetPix(20)),
  1633. "更新",
  1634. style2))
  1635. {
  1636. nameFlg = false;
  1637. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  1638. this.Preferences["kankyo"]["kankyo" + (object) (kankyoCombo.selectedItemIndex + 1)].Value = inName2;
  1639. this.SaveConfig();
  1640. kankyoComboList = new GUIContent[kankyoMax];
  1641. for (int index = 0; index < kankyoMax; ++index)
  1642. {
  1643. IniKey iniKey = this.Preferences["kankyo"]["kankyo" + (object) (index + 1)];
  1644. kankyoComboList[index] = new GUIContent(iniKey.Value);
  1645. }
  1646. }
  1647. }
  1648. else
  1649. {
  1650. if (GUI.Button(new Rect((float) this.GetPix(180),
  1651. (float) this.GetPix(27),
  1652. (float) this.GetPix(24),
  1653. (float) this.GetPix(20)),
  1654. "名",
  1655. style2))
  1656. {
  1657. nameFlg = true;
  1658. inName2 = kankyoComboList[kankyoIndex].text;
  1659. }
  1660. kankyoIndex =
  1661. kankyoCombo.List(new Rect((float) this.GetPix(4),
  1662. (float) this.GetPix(27),
  1663. (float) this.GetPix(91),
  1664. (float) this.GetPix(23)),
  1665. kankyoComboList[kankyoIndex].text,
  1666. kankyoComboList,
  1667. buttonStyle,
  1668. (GUIStyle) "box",
  1669. listStyle3);
  1670. if (GUI.Button(new Rect((float) this.GetPix(100),
  1671. (float) this.GetPix(27),
  1672. (float) this.GetPix(35),
  1673. (float) this.GetPix(20)),
  1674. "保存",
  1675. style2))
  1676. {
  1677. saveScene = 10000 + kankyoIndex;
  1678. saveScene2 = saveScene;
  1679. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  1680. try
  1681. {
  1682. thum_byte_to_base64_ = string.Empty;
  1683. thum_file_path_ = Path.Combine(Path.GetTempPath(), "cm3d2_" + Guid.NewGuid().ToString() + ".png");
  1684. GameMain.Instance.MainCamera.ScreenShot(thum_file_path_, 1, false);
  1685. }
  1686. catch { }
  1687. }
  1688. GUI.enabled = false;
  1689. IniKey iniKey = this.Preferences["scene"]["s" + (object) (10000 + kankyoIndex)];
  1690. if (iniKey.Value != null && iniKey.Value.ToString() != "")
  1691. GUI.enabled = true;
  1692. if (GUI.Button(new Rect((float) this.GetPix(140),
  1693. (float) this.GetPix(27),
  1694. (float) this.GetPix(35),
  1695. (float) this.GetPix(20)),
  1696. "読込",
  1697. style2))
  1698. {
  1699. loadScene = 10000 + kankyoIndex;
  1700. kankyoLoadFlg = true;
  1701. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  1702. }
  1703. }
  1704. GUI.enabled = true;
  1705. if (num1 == slotIndex)
  1706. return;
  1707. slotIndex = num1;
  1708. sortList.Clear();
  1709. scrollPos = new Vector2(0.0f, 0.0f);
  1710. if (itemDataList.Count == 0)
  1711. {
  1712. foreach (string menuFile in GameUty.MenuFiles)
  1713. {
  1714. string fileName = Path.GetFileNameWithoutExtension(menuFile) + ".menu";
  1715. byte[] f_byBuf = (byte[]) null;
  1716. using (AFileBase afileBase = GameUty.FileOpen(fileName, (AFileSystemBase) null))
  1717. {
  1718. NDebug.Assert(afileBase.IsValid(), "メニューファイルが存在しません。 :" + fileName);
  1719. if (f_byBuf == null || f_byBuf.Length < afileBase.GetSize())
  1720. f_byBuf = new byte[afileBase.GetSize()];
  1721. afileBase.Read(ref f_byBuf, afileBase.GetSize());
  1722. }
  1723. BinaryReader binaryReader = new BinaryReader((Stream) new MemoryStream(f_byBuf), Encoding.UTF8);
  1724. if (binaryReader.ReadString() != "CM3D2_MENU")
  1725. {
  1726. binaryReader.Close();
  1727. }
  1728. else
  1729. {
  1730. binaryReader.ReadInt32();
  1731. binaryReader.ReadString();
  1732. binaryReader.ReadString();
  1733. string str1 = binaryReader.ReadString();
  1734. string s = "";
  1735. binaryReader.ReadString();
  1736. binaryReader.ReadInt32();
  1737. string str2 = "";
  1738. try
  1739. {
  1740. do
  1741. {
  1742. int num2;
  1743. do
  1744. {
  1745. num2 = (int) binaryReader.ReadByte();
  1746. } while (num2 == 0);
  1747. for (int index = 0; index < num2; ++index)
  1748. {
  1749. string str3 = binaryReader.ReadString();
  1750. if (str3 == "icons")
  1751. {
  1752. str2 = binaryReader.ReadString();
  1753. break;
  1754. }
  1755. if (str3 == "priority")
  1756. {
  1757. s = binaryReader.ReadString();
  1758. break;
  1759. }
  1760. }
  1761. } while (!(str2 != ""));
  1762. int result = 0;
  1763. int.TryParse(s, out result);
  1764. itemDataList.Add(new ItemData() {info = str1, name = str2, menu = fileName, order = result, cd = f_byBuf});
  1765. }
  1766. catch { }
  1767. binaryReader.Close();
  1768. }
  1769. }
  1770. }
  1771. foreach (ItemData itemData in itemDataList)
  1772. {
  1773. if (slotIndex != 0 && !(itemData.info != slotArray[slotIndex]) && itemData.order > 0)
  1774. sortList.Add(new SortItem() {order = itemData.order, name = itemData.name, menu = itemData.menu, tex = itemData.tex});
  1775. }
  1776. IOrderedEnumerable<SortItem> orderedEnumerable = sortList
  1777. .OrderBy<SortItem, int>((Func<SortItem, int>) (p => p.order))
  1778. .ThenBy<SortItem, string>((Func<SortItem, string>) (p => p.name));
  1779. List<SortItem> sortItemList = new List<SortItem>();
  1780. string str4 = "";
  1781. foreach (SortItem sortItem in (IEnumerable<SortItem>) orderedEnumerable)
  1782. {
  1783. try
  1784. {
  1785. if ((Object) sortItem.tex == (Object) null)
  1786. {
  1787. byte[] data = ImportCM.LoadTexture(GameUty.FileSystem, sortItem.name, false).data;
  1788. Texture2D texture2D = new Texture2D(50, 50, TextureFormat.RGBA32, false);
  1789. texture2D.LoadImage(data);
  1790. sortItem.tex = texture2D;
  1791. }
  1792. if (!(sortItem.menu == str4))
  1793. {
  1794. str4 = sortItem.menu;
  1795. sortItemList.Add(sortItem);
  1796. }
  1797. }
  1798. catch { }
  1799. }
  1800. sortList = sortItemList;
  1801. }
  1802. private void GuiFunc6(int winID)
  1803. {
  1804. GUIStyle guistyle = "label";
  1805. guistyle.fontSize = this.GetPix(12);
  1806. guistyle.alignment = TextAnchor.UpperLeft;
  1807. GUIStyle guistyle2 = "label";
  1808. guistyle2.fontSize = this.GetPix(11);
  1809. guistyle2.alignment = TextAnchor.UpperLeft;
  1810. GUIStyle guistyle3 = "button";
  1811. guistyle3.fontSize = this.GetPix(20);
  1812. GUIStyle guistyle4 = "button";
  1813. guistyle4.fontSize = this.GetPix(14);
  1814. guistyle4.alignment = TextAnchor.MiddleLeft;
  1815. GUIStyle guistyle5 = "button";
  1816. guistyle5.fontSize = this.GetPix(12);
  1817. guistyle5.alignment = TextAnchor.MiddleLeft;
  1818. GUIStyle guistyle6 = new GUIStyle("toggle");
  1819. guistyle6.fontSize = this.GetPix(13);
  1820. CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
  1821. Maid maid = maidArray[selectMaidIndex];
  1822. if (!kankyoInitFlg)
  1823. {
  1824. listStyle2.normal.textColor = Color.white;
  1825. listStyle2.normal.background = this.MakeTex(2, 2, new Color(0f, 0f, 0f, 0.5f));
  1826. listStyle2.onHover.background = (listStyle2.hover.background = new Texture2D(2, 2));
  1827. RectOffset padding = listStyle2.padding;
  1828. RectOffset padding2 = listStyle2.padding;
  1829. RectOffset padding3 = listStyle2.padding;
  1830. int num = listStyle2.padding.bottom = this.GetPix(0);
  1831. num = (padding3.top = num);
  1832. num = (padding2.right = num);
  1833. padding.left = num;
  1834. listStyle2.fontSize = this.GetPix(11);
  1835. listStyle3.normal.textColor = Color.white;
  1836. listStyle3.normal.background = this.MakeTex(2, 2, new Color(0f, 0f, 0f, 0.5f));
  1837. listStyle3.onHover.background = (listStyle3.hover.background = new Texture2D(2, 2));
  1838. RectOffset padding4 = listStyle3.padding;
  1839. RectOffset padding5 = listStyle3.padding;
  1840. num = (listStyle3.padding.top = this.GetPix(0));
  1841. num = (padding5.right = num);
  1842. padding4.left = num;
  1843. listStyle3.padding.bottom = this.GetPix(0);
  1844. listStyle3.fontSize = this.GetPix(12);
  1845. bgmCombo.selectedItemIndex = bgmIndex;
  1846. if (sceneLevel == 5)
  1847. {
  1848. bgmCombo.selectedItemIndex = 2;
  1849. }
  1850. bgmComboList = new GUIContent[bgmArray.Length];
  1851. int i = 0;
  1852. while (i < bgmArray.Length)
  1853. {
  1854. string text = bgmArray[i];
  1855. if (text == null)
  1856. {
  1857. goto IL_501;
  1858. }
  1859. if (dicts[0] == null)
  1860. {
  1861. dicts[0] = new Dictionary<string, int>(11)
  1862. {
  1863. {"dokidokifallinlove_short", 0},
  1864. {"entrancetoyou_short", 1},
  1865. {"scarlet leap_short", 2},
  1866. {"stellarmytears_short", 3},
  1867. {"stellarmytears_short2", 4},
  1868. {"stellarmytears_short3", 5},
  1869. {"RhythmixToYou", 6},
  1870. {"happy_happy_scandal1", 7},
  1871. {"happy_happy_scandal2", 8},
  1872. {"happy_happy_scandal3", 9},
  1873. {"can_know_two_close", 10}
  1874. };
  1875. }
  1876. if (!dicts[0].TryGetValue(text, out num))
  1877. {
  1878. goto IL_501;
  1879. }
  1880. switch (num)
  1881. {
  1882. case 0:
  1883. bgmComboList[i] = new GUIContent("ドキドキ☆Fallin' Love");
  1884. break;
  1885. case 1:
  1886. bgmComboList[i] = new GUIContent("entrance to you");
  1887. break;
  1888. case 2:
  1889. bgmComboList[i] = new GUIContent("scarlet leap");
  1890. break;
  1891. case 3:
  1892. bgmComboList[i] = new GUIContent("stellar my tears1");
  1893. break;
  1894. case 4:
  1895. bgmComboList[i] = new GUIContent("stellar my tears2");
  1896. break;
  1897. case 5:
  1898. bgmComboList[i] = new GUIContent("stellar my tears3");
  1899. break;
  1900. case 6:
  1901. bgmComboList[i] = new GUIContent("rhythmix to you");
  1902. break;
  1903. case 7:
  1904. bgmComboList[i] = new GUIContent("happy!happy!スキャンダル!! 1");
  1905. break;
  1906. case 8:
  1907. bgmComboList[i] = new GUIContent("happy!happy!スキャンダル!! 2");
  1908. break;
  1909. case 9:
  1910. bgmComboList[i] = new GUIContent("happy!happy!スキャンダル!! 3");
  1911. break;
  1912. case 10:
  1913. bgmComboList[i] = new GUIContent("Can Know Two Close");
  1914. break;
  1915. default: goto IL_501;
  1916. }
  1917. IL_51A:
  1918. i++;
  1919. continue;
  1920. IL_501:
  1921. bgmComboList[i] = new GUIContent(bgmArray[i]);
  1922. goto IL_51A;
  1923. }
  1924. bgCombo.selectedItemIndex = bgIndex;
  1925. bgComboList = new GUIContent[bgArray.Length];
  1926. i = 0;
  1927. while (i < bgArray.Length)
  1928. {
  1929. string text = bgArray[i];
  1930. if (text == null)
  1931. {
  1932. goto IL_1692;
  1933. }
  1934. if (dicts[1] == null)
  1935. {
  1936. dicts[1] = new Dictionary<string, int>(106)
  1937. {
  1938. {"Salon", 0},
  1939. {"Syosai", 1},
  1940. {"Syosai_Night", 2},
  1941. {"DressRoom_NoMirror", 3},
  1942. {"MyBedRoom", 4},
  1943. {"MyBedRoom_Night", 5},
  1944. {"MyBedRoom_NightOff", 6},
  1945. {"Bathroom", 7},
  1946. {"PlayRoom", 8},
  1947. {"Pool", 9},
  1948. {"SMRoom", 10},
  1949. {"PlayRoom2", 11},
  1950. {"Salon_Garden", 12},
  1951. {"LargeBathRoom", 13},
  1952. {"MaidRoom", 14},
  1953. {"OiranRoom", 15},
  1954. {"Penthouse", 16},
  1955. {"Town", 17},
  1956. {"Kitchen", 18},
  1957. {"Kitchen_Night", 19},
  1958. {"Shitsumu", 20},
  1959. {"Shitsumu_Night", 21},
  1960. {"Salon_Entrance", 22},
  1961. {"Bar", 23},
  1962. {"Toilet", 24},
  1963. {"Train", 25},
  1964. {"SMRoom2", 26},
  1965. {"LockerRoom", 27},
  1966. {"Oheya", 28},
  1967. {"Salon_Day", 29},
  1968. {"ClassRoom", 30},
  1969. {"ClassRoom_Play", 31},
  1970. {"HoneymoonRoom", 32},
  1971. {"OutletPark", 33},
  1972. {"BigSight", 34},
  1973. {"BigSight_Night", 35},
  1974. {"PrivateRoom", 36},
  1975. {"PrivateRoom_Night", 37},
  1976. {"Sea", 38},
  1977. {"Sea_Night", 39},
  1978. {"Yashiki", 40},
  1979. {"Yashiki_Day", 41},
  1980. {"Yashiki_Pillow", 42},
  1981. {"rotenburo", 43},
  1982. {"rotenburo_night", 44},
  1983. {"villa", 45},
  1984. {"villa_night", 46},
  1985. {"villa_bedroom", 47},
  1986. {"villa_bedroom_night", 48},
  1987. {"villa_farm", 49},
  1988. {"villa_farm_night", 50},
  1989. {"karaokeroom", 51},
  1990. {"Theater", 52},
  1991. {"Theater_LightOff", 53},
  1992. {"LiveStage", 54},
  1993. {"LiveStage_Side", 55},
  1994. {"LiveStage_use_dance", 56},
  1995. {"BackStage", 57},
  1996. {"DanceRoom", 58},
  1997. {"EmpireClub_Rotary", 59},
  1998. {"EmpireClub_Rotary_Night", 60},
  1999. {"EmpireClub_Entrance", 61},
  2000. {"ShinShitsumu", 62},
  2001. {"ShinShitsumu_ChairRot", 63},
  2002. {"ShinShitsumu_Night", 64},
  2003. {"MyRoom", 65},
  2004. {"MyRoom_Night", 66},
  2005. {"OpemCafe", 67},
  2006. {"OpemCafe_Night", 68},
  2007. {"Restaurant", 69},
  2008. {"Restaurant_Night", 70},
  2009. {"MainKitchen", 71},
  2010. {"MainKitchen_Night", 72},
  2011. {"MainKitchen_LightOff", 73},
  2012. {"BarLounge", 74},
  2013. {"Casino", 75},
  2014. {"CasinoMini", 76},
  2015. {"SMClub", 77},
  2016. {"Soap", 78},
  2017. {"Spa", 79},
  2018. {"Spa_Night", 80},
  2019. {"ShoppingMall", 81},
  2020. {"ShoppingMall_Night", 82},
  2021. {"GameShop", 83},
  2022. {"MusicShop", 84},
  2023. {"HeroineRoom_A1", 85},
  2024. {"HeroineRoom_A1_Night", 86},
  2025. {"HeroineRoom_B1", 87},
  2026. {"HeroineRoom_B1_Night", 88},
  2027. {"HeroineRoom_C1", 89},
  2028. {"HeroineRoom_C1_Night", 90},
  2029. {"HeroineRoom_A", 91},
  2030. {"HeroineRoom_A_Night", 92},
  2031. {"HeroineRoom_B", 93},
  2032. {"HeroineRoom_B_Night", 94},
  2033. {"HeroineRoom_C", 95},
  2034. {"HeroineRoom_C_Night", 96},
  2035. {"Shukuhakubeya_BedRoom", 97},
  2036. {"Shukuhakubeya_BedRoom_Night", 98},
  2037. {"Shukuhakubeya_Other_BedRoom", 99},
  2038. {"Shukuhakubeya_Living", 100},
  2039. {"Shukuhakubeya_Living_Night", 101},
  2040. {"Shukuhakubeya_Toilet", 102},
  2041. {"Shukuhakubeya_Toilet_Night", 103},
  2042. {"Shukuhakubeya_WashRoom", 104},
  2043. {"Shukuhakubeya_WashRoom_Night", 105}
  2044. };
  2045. }
  2046. if (dicts[1].TryGetValue(text, out num))
  2047. {
  2048. goto IL_1692;
  2049. }
  2050. switch (num)
  2051. {
  2052. case 0:
  2053. bgComboList[i] = new GUIContent("サロン");
  2054. break;
  2055. case 1:
  2056. bgComboList[i] = new GUIContent("書斎");
  2057. break;
  2058. case 2:
  2059. bgComboList[i] = new GUIContent("書斎(夜)");
  2060. break;
  2061. case 3:
  2062. bgComboList[i] = new GUIContent("ドレスルーム");
  2063. break;
  2064. case 4:
  2065. bgComboList[i] = new GUIContent("自室");
  2066. break;
  2067. case 5:
  2068. bgComboList[i] = new GUIContent("自室(夜)");
  2069. break;
  2070. case 6:
  2071. bgComboList[i] = new GUIContent("自室(消灯)");
  2072. break;
  2073. case 7:
  2074. bgComboList[i] = new GUIContent("風呂");
  2075. break;
  2076. case 8:
  2077. bgComboList[i] = new GUIContent("プレイルーム");
  2078. break;
  2079. case 9:
  2080. bgComboList[i] = new GUIContent("プール");
  2081. break;
  2082. case 10:
  2083. bgComboList[i] = new GUIContent("SMルーム");
  2084. break;
  2085. case 11:
  2086. bgComboList[i] = new GUIContent("プレイルーム2");
  2087. break;
  2088. case 12:
  2089. bgComboList[i] = new GUIContent("サロン(中庭)");
  2090. break;
  2091. case 13:
  2092. bgComboList[i] = new GUIContent("大浴場");
  2093. break;
  2094. case 14:
  2095. bgComboList[i] = new GUIContent("メイド部屋");
  2096. break;
  2097. case 15:
  2098. bgComboList[i] = new GUIContent("花魁ルーム");
  2099. break;
  2100. case 16:
  2101. bgComboList[i] = new GUIContent("ペントハウス");
  2102. break;
  2103. case 17:
  2104. bgComboList[i] = new GUIContent("街");
  2105. break;
  2106. case 18:
  2107. bgComboList[i] = new GUIContent("キッチン");
  2108. break;
  2109. case 19:
  2110. bgComboList[i] = new GUIContent("キッチン(夜)");
  2111. break;
  2112. case 20:
  2113. bgComboList[i] = new GUIContent("執務室");
  2114. break;
  2115. case 21:
  2116. bgComboList[i] = new GUIContent("執務室(夜)");
  2117. break;
  2118. case 22:
  2119. bgComboList[i] = new GUIContent("エントランス");
  2120. break;
  2121. case 23:
  2122. bgComboList[i] = new GUIContent("バー");
  2123. break;
  2124. case 24:
  2125. bgComboList[i] = new GUIContent("トイレ");
  2126. break;
  2127. case 25:
  2128. bgComboList[i] = new GUIContent("電車");
  2129. break;
  2130. case 26:
  2131. bgComboList[i] = new GUIContent("地下室");
  2132. break;
  2133. case 27:
  2134. bgComboList[i] = new GUIContent("ロッカールーム");
  2135. break;
  2136. case 28:
  2137. bgComboList[i] = new GUIContent("四畳半部屋");
  2138. break;
  2139. case 29:
  2140. bgComboList[i] = new GUIContent("サロン(昼)");
  2141. break;
  2142. case 30:
  2143. bgComboList[i] = new GUIContent("教室");
  2144. break;
  2145. case 31:
  2146. bgComboList[i] = new GUIContent("教室(夜伽)");
  2147. break;
  2148. case 32:
  2149. bgComboList[i] = new GUIContent("ハネムーンルーム");
  2150. break;
  2151. case 33:
  2152. bgComboList[i] = new GUIContent("アウトレットパーク");
  2153. break;
  2154. case 34:
  2155. bgComboList[i] = new GUIContent("ビッグサイト");
  2156. break;
  2157. case 35:
  2158. bgComboList[i] = new GUIContent("ビッグサイト(夜)");
  2159. break;
  2160. case 36:
  2161. bgComboList[i] = new GUIContent("プライベートルーム");
  2162. break;
  2163. case 37:
  2164. bgComboList[i] = new GUIContent("プライベートルーム(夜)");
  2165. break;
  2166. case 38:
  2167. bgComboList[i] = new GUIContent("海");
  2168. break;
  2169. case 39:
  2170. bgComboList[i] = new GUIContent("海(夜)");
  2171. break;
  2172. case 40:
  2173. bgComboList[i] = new GUIContent("屋敷(夜)");
  2174. break;
  2175. case 41:
  2176. bgComboList[i] = new GUIContent("屋敷");
  2177. break;
  2178. case 42:
  2179. bgComboList[i] = new GUIContent("屋敷(夜・枕)");
  2180. break;
  2181. case 43:
  2182. bgComboList[i] = new GUIContent("露天風呂");
  2183. break;
  2184. case 44:
  2185. bgComboList[i] = new GUIContent("露天風呂(夜)");
  2186. break;
  2187. case 45:
  2188. bgComboList[i] = new GUIContent("ヴィラ1F");
  2189. break;
  2190. case 46:
  2191. bgComboList[i] = new GUIContent("ヴィラ1F(夜)");
  2192. break;
  2193. case 47:
  2194. bgComboList[i] = new GUIContent("ヴィラ2F");
  2195. break;
  2196. case 48:
  2197. bgComboList[i] = new GUIContent("ヴィラ2F(夜)");
  2198. break;
  2199. case 49:
  2200. bgComboList[i] = new GUIContent("畑");
  2201. break;
  2202. case 50:
  2203. bgComboList[i] = new GUIContent("畑(夜)");
  2204. break;
  2205. case 51:
  2206. bgComboList[i] = new GUIContent("カラオケルーム");
  2207. break;
  2208. case 52:
  2209. bgComboList[i] = new GUIContent("劇場");
  2210. break;
  2211. case 53:
  2212. bgComboList[i] = new GUIContent("劇場(夜)");
  2213. break;
  2214. case 54:
  2215. bgComboList[i] = new GUIContent("ステージ");
  2216. break;
  2217. case 55:
  2218. bgComboList[i] = new GUIContent("ステージ(ライト)");
  2219. break;
  2220. case 56:
  2221. bgComboList[i] = new GUIContent("ステージ(オフ)");
  2222. break;
  2223. case 57:
  2224. bgComboList[i] = new GUIContent("ステージ裏");
  2225. break;
  2226. case 58:
  2227. bgComboList[i] = new GUIContent("トレーニングルーム");
  2228. break;
  2229. case 59:
  2230. bgComboList[i] = new GUIContent("ロータリー");
  2231. break;
  2232. case 60:
  2233. bgComboList[i] = new GUIContent("ロータリー(夜)");
  2234. break;
  2235. case 61:
  2236. bgComboList[i] = new GUIContent("エントランス");
  2237. break;
  2238. case 62:
  2239. bgComboList[i] = new GUIContent("執務室");
  2240. break;
  2241. case 63:
  2242. bgComboList[i] = new GUIContent("執務室(椅子)");
  2243. break;
  2244. case 64:
  2245. bgComboList[i] = new GUIContent("執務室(夜)");
  2246. break;
  2247. case 65:
  2248. bgComboList[i] = new GUIContent("主人公部屋");
  2249. break;
  2250. case 66:
  2251. bgComboList[i] = new GUIContent("主人公部屋(夜)");
  2252. break;
  2253. case 67:
  2254. bgComboList[i] = new GUIContent("カフェ");
  2255. break;
  2256. case 68:
  2257. bgComboList[i] = new GUIContent("カフェ(夜)");
  2258. break;
  2259. case 69:
  2260. bgComboList[i] = new GUIContent("レストラン");
  2261. break;
  2262. case 70:
  2263. bgComboList[i] = new GUIContent("レストラン(夜)");
  2264. break;
  2265. case 71:
  2266. bgComboList[i] = new GUIContent("キッチン");
  2267. break;
  2268. case 72:
  2269. bgComboList[i] = new GUIContent("キッチン(夜)");
  2270. break;
  2271. case 73:
  2272. bgComboList[i] = new GUIContent("キッチン(オフ)");
  2273. break;
  2274. case 74:
  2275. bgComboList[i] = new GUIContent("バー");
  2276. break;
  2277. case 75:
  2278. bgComboList[i] = new GUIContent("カジノ");
  2279. break;
  2280. case 76:
  2281. bgComboList[i] = new GUIContent("カジノミニ");
  2282. break;
  2283. case 77:
  2284. bgComboList[i] = new GUIContent("SMクラブ");
  2285. break;
  2286. case 78:
  2287. bgComboList[i] = new GUIContent("ソープ");
  2288. break;
  2289. case 79:
  2290. bgComboList[i] = new GUIContent("スパ");
  2291. break;
  2292. case 80:
  2293. bgComboList[i] = new GUIContent("スパ(夜)");
  2294. break;
  2295. case 81:
  2296. bgComboList[i] = new GUIContent("ショッピングモール");
  2297. break;
  2298. case 82:
  2299. bgComboList[i] = new GUIContent("ショッピングモール(夜)");
  2300. break;
  2301. case 83:
  2302. bgComboList[i] = new GUIContent("ゲームショップ");
  2303. break;
  2304. case 84:
  2305. bgComboList[i] = new GUIContent("ミュージックショップ");
  2306. break;
  2307. case 85:
  2308. bgComboList[i] = new GUIContent("無垢部屋");
  2309. break;
  2310. case 86:
  2311. bgComboList[i] = new GUIContent("無垢部屋(夜)");
  2312. break;
  2313. case 87:
  2314. bgComboList[i] = new GUIContent("真面目部屋");
  2315. break;
  2316. case 88:
  2317. bgComboList[i] = new GUIContent("真面目部屋(夜)");
  2318. break;
  2319. case 89:
  2320. bgComboList[i] = new GUIContent("凜デレ部屋");
  2321. break;
  2322. case 90:
  2323. bgComboList[i] = new GUIContent("凜デレ部屋(夜)");
  2324. break;
  2325. case 91:
  2326. bgComboList[i] = new GUIContent("ツンデレ部屋");
  2327. break;
  2328. case 92:
  2329. bgComboList[i] = new GUIContent("ツンデレ部屋(夜)");
  2330. break;
  2331. case 93:
  2332. bgComboList[i] = new GUIContent("クーデレ部屋");
  2333. break;
  2334. case 94:
  2335. bgComboList[i] = new GUIContent("クーデレ部屋(夜)");
  2336. break;
  2337. case 95:
  2338. bgComboList[i] = new GUIContent("純真部屋");
  2339. break;
  2340. case 96:
  2341. bgComboList[i] = new GUIContent("純真部屋(夜)");
  2342. break;
  2343. case 97:
  2344. bgComboList[i] = new GUIContent("宿泊-ベッドルーム");
  2345. break;
  2346. case 98:
  2347. bgComboList[i] = new GUIContent("宿泊-ベッドルーム(夜)");
  2348. break;
  2349. case 99:
  2350. bgComboList[i] = new GUIContent("宿泊-他ベッドルーム(夜)");
  2351. break;
  2352. case 100:
  2353. bgComboList[i] = new GUIContent("宿泊-リビング");
  2354. break;
  2355. case 101:
  2356. bgComboList[i] = new GUIContent("宿泊-リビング(夜)");
  2357. break;
  2358. case 102:
  2359. bgComboList[i] = new GUIContent("宿泊-トイレ");
  2360. break;
  2361. case 103:
  2362. bgComboList[i] = new GUIContent("宿泊-トイレ(夜)");
  2363. break;
  2364. case 104:
  2365. bgComboList[i] = new GUIContent("宿泊-洗面所");
  2366. break;
  2367. case 105:
  2368. bgComboList[i] = new GUIContent("宿泊-洗面所(夜)");
  2369. break;
  2370. default: goto IL_1692;
  2371. }
  2372. IL_16AB:
  2373. Dictionary<string, string> saveDataDic = CreativeRoomManager.GetSaveDataDic();
  2374. if (saveDataDic != null)
  2375. {
  2376. foreach (KeyValuePair<string, string> keyValuePair in saveDataDic)
  2377. {
  2378. if (bgArray[i] == keyValuePair.Key)
  2379. {
  2380. bgComboList[i] = new GUIContent(keyValuePair.Value);
  2381. }
  2382. }
  2383. }
  2384. i++;
  2385. continue;
  2386. IL_1692:
  2387. bgComboList[i] = new GUIContent(bgArray[i]);
  2388. goto IL_16AB;
  2389. }
  2390. doguCombo.selectedItemIndex = 0;
  2391. doguComboList = new GUIContent[doguBArray.Length];
  2392. i = 0;
  2393. while (i < doguBArray.Length)
  2394. {
  2395. string text = doguBArray[i];
  2396. if (text == null)
  2397. {
  2398. goto IL_40C6;
  2399. }
  2400. if (dicts[2] == null)
  2401. {
  2402. dicts[2] = new Dictionary<string, int>(248)
  2403. {
  2404. {"Odogu_KousokuKijyouiChair_photo_ver", 0},
  2405. {"Odogu_VirginRoad_photo_ver", 1},
  2406. {"neirobo", 2},
  2407. {"Odogu_ClassRoomDesk_photo_ver", 3},
  2408. {"Odogu_ClassRoomChair_photo_ver", 4},
  2409. {"Odogu_TrumpTowerSmall_photo_ver", 5},
  2410. {"Odogu_TrumpTowerBig_photo_ver", 6},
  2411. {"Odogu_VVLight_photo_ver", 7},
  2412. {"Odogu_OXCamera_photo_ver", 8},
  2413. {"Odogu_HandCameraVV_photo_ver", 9},
  2414. {"Odogu_PC_photo_ver", 10},
  2415. {"Odogu_PC_Monitor_photo_ver", 11},
  2416. {"Odogu_PC_Keyboard_photo_ver", 12},
  2417. {"Odogu_PC_Mouse_photo_ver", 13},
  2418. {"Odogu_MaidRoomBook001_photo_ver", 14},
  2419. {"Odogu_MaidRoomBook002_photo_ver", 15},
  2420. {"Odogu_MaidRoomBook003_photo_ver", 16},
  2421. {"Odogu_MaidRoomBook004_photo_ver", 17},
  2422. {"Odogu_MaidRoomBook005_photo_ver", 18},
  2423. {"Odogu_Pen_photo_ver", 19},
  2424. {"Odogu_Pen_Black_photo_ver", 20},
  2425. {"Odogu_Pen_Brown_photo_ver", 21},
  2426. {"Odogu_Pen_Green_photo_ver", 22},
  2427. {"Odogu_Enpitsu_photo_ver", 23},
  2428. {"Odogu_Enpitsu_Black_photo_ver", 24},
  2429. {"Odogu_Enpitsu_Red_photo_ver", 25},
  2430. {"Odogu_Keshigomu_photo_ver", 26},
  2431. {"Odogu_Keshigomu_Purple_photo_ver", 27},
  2432. {"Odogu_Keshigomu_Yellow_photo_ver", 28},
  2433. {"Odogu_StickNori_photo_ver", 29},
  2434. {"Odogu_Condom_Close_photo_ver", 30},
  2435. {"Odogu_Condom_Open_photo_ver", 31},
  2436. {"Odogu_Condom_Pack_photo_ver", 32},
  2437. {"Odogu_SalonSofa_long_photo_ver", 33},
  2438. {"Odogu_SalonSofa_4P_photo_ver", 34},
  2439. {"Odogu_Girochin_A_photo_ver", 35},
  2440. {"Odogu_SankakuMokuba_photo_ver", 36},
  2441. {"Odogu_SMRoom2_SankakuMokuba_photo_ver", 37},
  2442. {"Odogu_Kousokudai_photo_ver", 38},
  2443. {"Odogu_XmasTreeMini_photo_ver", 39},
  2444. {"Odogu_KadomatsuMini_photo_ver", 40},
  2445. {"Odogu_Kitchen_photo_ver", 41},
  2446. {"Odogu_TableFlower_photo_ver", 42},
  2447. {"Odogu_Kadou_photo_ver", 43},
  2448. {"Odogu_Dresser_photo_ver", 44},
  2449. {"Odogu_ClassRoomDesk", 45},
  2450. {"Odogu_KadouChair_photo_ver", 46},
  2451. {"Odogu_DresserChair_photo_ver", 47},
  2452. {"Odogu_MaidRoomChair_photo_ver", 48},
  2453. {"Odogu_PublicToiletBenki_photo_ver", 49},
  2454. {"Odogu_Sukebeisu_photo_ver", 50},
  2455. {"Odogu_Mat_photo_ver", 51},
  2456. {"Odogu_Seikaku_Tsundere", 52},
  2457. {"Odogu_Seikaku_Jyunshin", 53},
  2458. {"Odogu_Seikaku_Cool", 54},
  2459. {"Odogu_Manaita_photo_ver", 55},
  2460. {"Odogu_Nabe_photo_ver", 56},
  2461. {"Odogu_NoteBook_photo_ver", 57},
  2462. {"Odogu_Sankousyo_photo_ver", 58},
  2463. {"Odogu_Sentaku_Kago_photo_ver", 59},
  2464. {"Odogu_Sentaku_Towel_photo_ver", 60},
  2465. {"Odogu_Sentakumono_photo_ver", 61},
  2466. {"Odogu_SalonScreen_photo_ver", 62},
  2467. {"Odogu_WineGlass_photo_ver", 63},
  2468. {"Odogu_SalonSofa_small_photo_ver", 64},
  2469. {"Odogu_Seikaku_Tsundere_photo_ver", 65},
  2470. {"Odogu_Seikaku_Jyunshin_photo_ver", 66},
  2471. {"Odogu_Seikaku_Cool_photo_ver", 67},
  2472. {"Megane001_z2_Scenario_Model", 68},
  2473. {"nei_photo_ver", 69},
  2474. {"neirobo_photo_ver", 70},
  2475. {"Odogu_SimpleTable", 71},
  2476. {"Odogu_DildoBox", 72},
  2477. {"PlayAreaOut", 73},
  2478. {"DesktopScreen", 74},
  2479. {"Odogu_ChuukaSet_chahan_photo_ver", 75},
  2480. {"Odogu_ChuukaSet_gyouza_photo_ver", 76},
  2481. {"Odogu_ChuukaSet_mabo_photo_ver", 77},
  2482. {"Odogu_ChuukaSet_tea_photo_ver", 78},
  2483. {"Odogu_WasyokuSet_gohan_photo_ver", 79},
  2484. {"Odogu_WasyokuSet_hashi_photo_ver", 80},
  2485. {"Odogu_WasyokuSet_misoshiru_photo_ver", 81},
  2486. {"Odogu_WasyokuSet_nimono_photo_ver", 82},
  2487. {"Odogu_WasyokuSet_ocha_photo_ver", 83},
  2488. {"Odogu_YousyokuSet_ChickenRice_photo_ver", 84},
  2489. {"Odogu_YousyokuSet_Coffee_photo_ver", 85},
  2490. {"Odogu_YousyokuSet_CornSoup_photo_ver", 86},
  2491. {"Odogu_YousyokuSet_Hamburg_photo_ver", 87},
  2492. {"Odogu_YousyokuSet_SakiwareSpoon_photo_ver", 88},
  2493. {"Odogu_PR_Table_photo_ver", 89},
  2494. {"Odogu_PR_Table_Chuuka_photo_ver", 90},
  2495. {"Odogu_PR_Table_Wasyoku_photo_ver", 91},
  2496. {"Odogu_PR_Table_Yousyoku_photo_ver", 92},
  2497. {"Odogu_LongDaiza_photo_ver", 93},
  2498. {"BGanimal_cat", 94},
  2499. {"BGanimal_dog", 95},
  2500. {"BGanimal_niwatori", 96},
  2501. {"BGanimal_suzume", 97},
  2502. {"BGodogu_bbqgrill", 98},
  2503. {"BGodogu_bucket", 99},
  2504. {"BGodogu_coolerbox", 100},
  2505. {"BGodogu_game_darts", 101},
  2506. {"BGodogu_game_dartsboard", 102},
  2507. {"BGodogu_nabe_huta", 103},
  2508. {"BGodogu_nabe_water", 104},
  2509. {"BGodogu_natumikan", 105},
  2510. {"BGodogu_rb_chair", 106},
  2511. {"BGodogu_rb_duck", 107},
  2512. {"BGodogu_rb_obon", 108},
  2513. {"BGodogu_rb_tokkuri", 109},
  2514. {"BGodogu_saracorn", 110},
  2515. {"BGodogu_saraimo", 111},
  2516. {"BGodogu_saratomato", 112},
  2517. {"BGodogu_sunanoshiro", 113},
  2518. {"BGodogu_sunanoyama", 114},
  2519. {"BGodogu_tsutsuhanabi", 115},
  2520. {"BGodogu_ukiwa", 116},
  2521. {"BGodogu_vf_crops_corn", 117},
  2522. {"BGodogu_vf_crops_gekkabijin", 118},
  2523. {"BGodogu_vf_crops_gekkabijinflower", 119},
  2524. {"BGodogu_vf_crops_himawari", 120},
  2525. {"BGodogu_vf_crops_natsumikan", 121},
  2526. {"BGodogu_vf_crops_suika", 122},
  2527. {"BGodogu_vf_crops_zakuro", 123},
  2528. {"BGodogu_vf_kanban_ok", 124},
  2529. {"BGodogu_vf_kanban_saibai", 125},
  2530. {"BGodogu_vf_kanban_taiki", 126},
  2531. {"BGodogu_vf_radio", 127},
  2532. {"BGodogu_villa_coffeemaker", 128},
  2533. {"BGodogu_villa_reizouko", 129},
  2534. {"BGodogu_villa_table", 130},
  2535. {"BGodogu_villa_tvrimocon", 131},
  2536. {"BGodogu_villa_winecellar", 132},
  2537. {"BGodogu_villabr_sideboard", 133},
  2538. {"BGOdogu_Game_Nei_USB", 134},
  2539. {"BGOdogu_Game_Wanage", 135},
  2540. {"BGOdogu_Game_Wa", 136},
  2541. {"BGodogu_pafe", 137},
  2542. {"BGodogu_furaidopoteto", 138},
  2543. {"BGodogu_karaoketable", 139},
  2544. {"BGodogu_omuriceh", 140},
  2545. {"BGodogu_omuricekao1", 141},
  2546. {"BGodogu_omuricekao2", 142},
  2547. {"BGodogu_omuriceoppai", 143},
  2548. {"BGodogu_kakigori", 144},
  2549. {"BGodogu_pretzel_sara", 145},
  2550. {"BGodogu_karaoke_box", 146},
  2551. {"Odogu_StandMike", 147},
  2552. {"Odogu_StandMikeBase", 148},
  2553. {"photo_ver/Odogu_Umeko_Mike_photo_ver", 149},
  2554. {"Odogu_HeroineChair_muku", 150},
  2555. {"Odogu_HeroineChair_mazime", 151},
  2556. {"Odogu_HeroineChair_rindere", 152},
  2557. {"Odogu_HeroineChair_tsumdere", 153},
  2558. {"Odogu_HeroineChair_cooldere", 154},
  2559. {"Odogu_HeroineChair_junshin", 155},
  2560. {"photo_ver/Odogu_Etoile_Chair_photo_ver", 156},
  2561. {"Odogu_LoveSofa", 157},
  2562. {"Odogu_TabletPC", 158},
  2563. {"Odogu_Styluspen_black", 159},
  2564. {"Odogu_Styluspen_white", 160},
  2565. {"Odogu_Styluspen_red", 161},
  2566. {"Odogu_Styluspen_blue", 162},
  2567. {"Odogu_Styluspen_yellow", 163},
  2568. {"Odogu_Styluspen_green", 164},
  2569. {"Odogu_Omurice1", 165},
  2570. {"Odogu_Omurice3", 166},
  2571. {"Odogu_OmuriceH", 167},
  2572. {"Odogu_OmuriceKao1", 168},
  2573. {"Odogu_OmuriceKao2", 169},
  2574. {"Odogu_OmuriceOppai", 170},
  2575. {"Odogu_AcquaPazza", 171},
  2576. {"Odogu_Sandwich", 172},
  2577. {"Odogu_vichyssoise", 173},
  2578. {"Odogu_BirthdayCake", 174},
  2579. {"Odogu_Shortcake", 175},
  2580. {"Odogu_MontBlanc", 176},
  2581. {"Odogu_Pafe", 177},
  2582. {"Odogu_Smoothie_Red", 178},
  2583. {"Odogu_Smoothie_Green", 179},
  2584. {"Odogu_Cocktail_Red", 180},
  2585. {"Odogu_Cocktail_Blue", 181},
  2586. {"Odogu_Cocktail_Yellow", 182},
  2587. {"Odogu_Coffiecup", 183},
  2588. {"Odogu_WineBottle(cap_off)", 184},
  2589. {"Odogu_WineBottle(cap_on)", 185},
  2590. {"Odogu_Jyouro", 186},
  2591. {"Odogu_Planter_Red", 187},
  2592. {"Odogu_Planter_Lightblue", 188},
  2593. {"Odogu_MariGold", 189},
  2594. {"Odogu_CasinoChip_10", 190},
  2595. {"Odogu_CasinoChip_100", 191},
  2596. {"Odogu_CasinoChip_1000", 192},
  2597. {"Odogu_CardShooter", 193},
  2598. {"Odogu_CardsDeck", 194},
  2599. {"Odogu_Card_s1", 195},
  2600. {"Odogu_Card_s2", 196},
  2601. {"Odogu_Card_s3", 197},
  2602. {"Odogu_Card_s4", 198},
  2603. {"Odogu_Card_s5", 199},
  2604. {"Odogu_Card_s6", 200},
  2605. {"Odogu_Card_s7", 201},
  2606. {"Odogu_Card_s8", 202},
  2607. {"Odogu_Card_s9", 203},
  2608. {"Odogu_Card_s10", 204},
  2609. {"Odogu_Card_s11", 205},
  2610. {"Odogu_Card_s12", 206},
  2611. {"Odogu_Card_s13", 207},
  2612. {"Odogu_Card_h1", 208},
  2613. {"Odogu_Card_h2", 209},
  2614. {"Odogu_Card_h3", 210},
  2615. {"Odogu_Card_h4", 211},
  2616. {"Odogu_Card_h5", 212},
  2617. {"Odogu_Card_h6", 213},
  2618. {"Odogu_Card_h7", 214},
  2619. {"Odogu_Card_h8", 215},
  2620. {"Odogu_Card_h9", 216},
  2621. {"Odogu_Card_h10", 217},
  2622. {"Odogu_Card_h11", 218},
  2623. {"Odogu_Card_h12", 219},
  2624. {"Odogu_Card_h13", 220},
  2625. {"Odogu_Card_d1", 221},
  2626. {"Odogu_Card_d2", 222},
  2627. {"Odogu_Card_d3", 223},
  2628. {"Odogu_Card_d4", 224},
  2629. {"Odogu_Card_d5", 225},
  2630. {"Odogu_Card_d6", 226},
  2631. {"Odogu_Card_d7", 227},
  2632. {"Odogu_Card_d8", 228},
  2633. {"Odogu_Card_d9", 229},
  2634. {"Odogu_Card_d10", 230},
  2635. {"Odogu_Card_d11", 231},
  2636. {"Odogu_Card_d12", 232},
  2637. {"Odogu_Card_d13", 233},
  2638. {"Odogu_Card_c1", 234},
  2639. {"Odogu_Card_c2", 235},
  2640. {"Odogu_Card_c3", 236},
  2641. {"Odogu_Card_c4", 237},
  2642. {"Odogu_Card_c5", 238},
  2643. {"Odogu_Card_c6", 239},
  2644. {"Odogu_Card_c7", 240},
  2645. {"Odogu_Card_c8", 241},
  2646. {"Odogu_Card_c9", 242},
  2647. {"Odogu_Card_c10", 243},
  2648. {"Odogu_Card_c11", 244},
  2649. {"Odogu_Card_c12", 245},
  2650. {"Odogu_Card_c13", 246},
  2651. {"Odogu_Card_joker", 247}
  2652. };
  2653. }
  2654. if (!dicts[2].TryGetValue(text, out num))
  2655. {
  2656. goto IL_40C6;
  2657. }
  2658. switch (num)
  2659. {
  2660. case 0:
  2661. doguComboList[i] = new GUIContent("拘束椅子");
  2662. break;
  2663. case 1:
  2664. doguComboList[i] = new GUIContent("バージンロード");
  2665. break;
  2666. case 2:
  2667. doguComboList[i] = new GUIContent("ロボねい人形");
  2668. break;
  2669. case 3:
  2670. doguComboList[i] = new GUIContent("教室机");
  2671. break;
  2672. case 4:
  2673. doguComboList[i] = new GUIContent("教室椅子");
  2674. break;
  2675. case 5:
  2676. doguComboList[i] = new GUIContent("トランプタワー(小)");
  2677. break;
  2678. case 6:
  2679. doguComboList[i] = new GUIContent("トランプタワー");
  2680. break;
  2681. case 7:
  2682. doguComboList[i] = new GUIContent("Wライト");
  2683. break;
  2684. case 8:
  2685. doguComboList[i] = new GUIContent("OXカメラ");
  2686. break;
  2687. case 9:
  2688. doguComboList[i] = new GUIContent("レトロカメラ");
  2689. break;
  2690. case 10:
  2691. doguComboList[i] = new GUIContent("PC");
  2692. break;
  2693. case 11:
  2694. doguComboList[i] = new GUIContent("モニター");
  2695. break;
  2696. case 12:
  2697. doguComboList[i] = new GUIContent("キーボード");
  2698. break;
  2699. case 13:
  2700. doguComboList[i] = new GUIContent("マウス");
  2701. break;
  2702. case 14:
  2703. doguComboList[i] = new GUIContent("参考書A");
  2704. break;
  2705. case 15:
  2706. doguComboList[i] = new GUIContent("参考書B");
  2707. break;
  2708. case 16:
  2709. doguComboList[i] = new GUIContent("参考書C");
  2710. break;
  2711. case 17:
  2712. doguComboList[i] = new GUIContent("参考書D");
  2713. break;
  2714. case 18:
  2715. doguComboList[i] = new GUIContent("参考書E");
  2716. break;
  2717. case 19:
  2718. doguComboList[i] = new GUIContent("ペン(桃)");
  2719. break;
  2720. case 20:
  2721. doguComboList[i] = new GUIContent("ペン(黒)");
  2722. break;
  2723. case 21:
  2724. doguComboList[i] = new GUIContent("ペン(茶)");
  2725. break;
  2726. case 22:
  2727. doguComboList[i] = new GUIContent("ペン(緑)");
  2728. break;
  2729. case 23:
  2730. doguComboList[i] = new GUIContent("鉛筆(緑)");
  2731. break;
  2732. case 24:
  2733. doguComboList[i] = new GUIContent("鉛筆(黒)");
  2734. break;
  2735. case 25:
  2736. doguComboList[i] = new GUIContent("鉛筆(赤)");
  2737. break;
  2738. case 26:
  2739. doguComboList[i] = new GUIContent("消しゴム(青)");
  2740. break;
  2741. case 27:
  2742. doguComboList[i] = new GUIContent("消しゴム(紫)");
  2743. break;
  2744. case 28:
  2745. doguComboList[i] = new GUIContent("消しゴム(黄)");
  2746. break;
  2747. case 29:
  2748. doguComboList[i] = new GUIContent("スティック糊");
  2749. break;
  2750. case 30:
  2751. doguComboList[i] = new GUIContent("コンドーム(閉)");
  2752. break;
  2753. case 31:
  2754. doguComboList[i] = new GUIContent("コンドーム(開)");
  2755. break;
  2756. case 32:
  2757. doguComboList[i] = new GUIContent("コンドーム(袋)");
  2758. break;
  2759. case 33:
  2760. doguComboList[i] = new GUIContent("ソファー");
  2761. break;
  2762. case 34:
  2763. doguComboList[i] = new GUIContent("ソファー(大)");
  2764. break;
  2765. case 35:
  2766. doguComboList[i] = new GUIContent("ギロチン");
  2767. break;
  2768. case 36:
  2769. doguComboList[i] = new GUIContent("三角木馬");
  2770. break;
  2771. case 37:
  2772. doguComboList[i] = new GUIContent("三角木馬2");
  2773. break;
  2774. case 38:
  2775. doguComboList[i] = new GUIContent("拘束台");
  2776. break;
  2777. case 39:
  2778. doguComboList[i] = new GUIContent("クリスマスツリー");
  2779. break;
  2780. case 40:
  2781. doguComboList[i] = new GUIContent("門松");
  2782. break;
  2783. case 41:
  2784. doguComboList[i] = new GUIContent("キッチン");
  2785. break;
  2786. case 42:
  2787. doguComboList[i] = new GUIContent("花とテーブル");
  2788. break;
  2789. case 43:
  2790. doguComboList[i] = new GUIContent("華道");
  2791. break;
  2792. case 44:
  2793. doguComboList[i] = new GUIContent("ドレッサー");
  2794. break;
  2795. case 45:
  2796. doguComboList[i] = new GUIContent("教室机");
  2797. break;
  2798. case 46:
  2799. doguComboList[i] = new GUIContent("華道椅子");
  2800. break;
  2801. case 47:
  2802. doguComboList[i] = new GUIContent("ドレッサー椅子");
  2803. break;
  2804. case 48:
  2805. doguComboList[i] = new GUIContent("メイド部屋椅子");
  2806. break;
  2807. case 49:
  2808. doguComboList[i] = new GUIContent("ベンキ");
  2809. break;
  2810. case 50:
  2811. doguComboList[i] = new GUIContent("スケベ椅子");
  2812. break;
  2813. case 51:
  2814. doguComboList[i] = new GUIContent("マット");
  2815. break;
  2816. case 52:
  2817. doguComboList[i] = new GUIContent("ツンデレ");
  2818. break;
  2819. case 53:
  2820. doguComboList[i] = new GUIContent("純真");
  2821. break;
  2822. case 54:
  2823. doguComboList[i] = new GUIContent("クール");
  2824. break;
  2825. case 55:
  2826. doguComboList[i] = new GUIContent("まな板");
  2827. break;
  2828. case 56:
  2829. doguComboList[i] = new GUIContent("鍋");
  2830. break;
  2831. case 57:
  2832. doguComboList[i] = new GUIContent("ノート");
  2833. break;
  2834. case 58:
  2835. doguComboList[i] = new GUIContent("参考書");
  2836. break;
  2837. case 59:
  2838. doguComboList[i] = new GUIContent("洗濯かご");
  2839. break;
  2840. case 60:
  2841. doguComboList[i] = new GUIContent("重ねたタオル");
  2842. break;
  2843. case 61:
  2844. doguComboList[i] = new GUIContent("洗濯物");
  2845. break;
  2846. case 62:
  2847. doguComboList[i] = new GUIContent("スクリーン");
  2848. break;
  2849. case 63:
  2850. doguComboList[i] = new GUIContent("ワイングラス");
  2851. break;
  2852. case 64:
  2853. doguComboList[i] = new GUIContent("ソファー(小)");
  2854. break;
  2855. case 65:
  2856. doguComboList[i] = new GUIContent("ツンデレ");
  2857. break;
  2858. case 66:
  2859. doguComboList[i] = new GUIContent("純真");
  2860. break;
  2861. case 67:
  2862. doguComboList[i] = new GUIContent("クール");
  2863. break;
  2864. case 68:
  2865. doguComboList[i] = new GUIContent("メガネ");
  2866. break;
  2867. case 69:
  2868. doguComboList[i] = new GUIContent("ねい人形");
  2869. break;
  2870. case 70:
  2871. doguComboList[i] = new GUIContent("ロボねい人形");
  2872. break;
  2873. case 71:
  2874. doguComboList[i] = new GUIContent("テーブル");
  2875. break;
  2876. case 72:
  2877. doguComboList[i] = new GUIContent("ディルドボックス");
  2878. break;
  2879. case 73:
  2880. doguComboList[i] = new GUIContent("プレイエリア外");
  2881. break;
  2882. case 74:
  2883. doguComboList[i] = new GUIContent("デスクトップスクリーン");
  2884. break;
  2885. case 75:
  2886. doguComboList[i] = new GUIContent("チャーハン");
  2887. break;
  2888. case 76:
  2889. doguComboList[i] = new GUIContent("餃子");
  2890. break;
  2891. case 77:
  2892. doguComboList[i] = new GUIContent("麻婆豆腐");
  2893. break;
  2894. case 78:
  2895. doguComboList[i] = new GUIContent("お茶");
  2896. break;
  2897. case 79:
  2898. doguComboList[i] = new GUIContent("ご飯");
  2899. break;
  2900. case 80:
  2901. doguComboList[i] = new GUIContent("箸");
  2902. break;
  2903. case 81:
  2904. doguComboList[i] = new GUIContent("味噌汁");
  2905. break;
  2906. case 82:
  2907. doguComboList[i] = new GUIContent("煮物");
  2908. break;
  2909. case 83:
  2910. doguComboList[i] = new GUIContent("緑茶");
  2911. break;
  2912. case 84:
  2913. doguComboList[i] = new GUIContent("チキンライス");
  2914. break;
  2915. case 85:
  2916. doguComboList[i] = new GUIContent("コーヒー");
  2917. break;
  2918. case 86:
  2919. doguComboList[i] = new GUIContent("コーンスープ");
  2920. break;
  2921. case 87:
  2922. doguComboList[i] = new GUIContent("ハンバーグ");
  2923. break;
  2924. case 88:
  2925. doguComboList[i] = new GUIContent("先割れスプーン");
  2926. break;
  2927. case 89:
  2928. doguComboList[i] = new GUIContent("テーブル");
  2929. break;
  2930. case 90:
  2931. doguComboList[i] = new GUIContent("中華テーブル");
  2932. break;
  2933. case 91:
  2934. doguComboList[i] = new GUIContent("和食テーブル");
  2935. break;
  2936. case 92:
  2937. doguComboList[i] = new GUIContent("洋食テーブル");
  2938. break;
  2939. case 93:
  2940. doguComboList[i] = new GUIContent("エッチする時の台");
  2941. break;
  2942. case 94:
  2943. doguComboList[i] = new GUIContent("猫");
  2944. break;
  2945. case 95:
  2946. doguComboList[i] = new GUIContent("犬");
  2947. break;
  2948. case 96:
  2949. doguComboList[i] = new GUIContent("ニワトリ");
  2950. break;
  2951. case 97:
  2952. doguComboList[i] = new GUIContent("スズメ");
  2953. break;
  2954. case 98:
  2955. doguComboList[i] = new GUIContent("バーベキューグリル");
  2956. break;
  2957. case 99:
  2958. doguComboList[i] = new GUIContent("バケツ");
  2959. break;
  2960. case 100:
  2961. doguComboList[i] = new GUIContent("クーラーボックス");
  2962. break;
  2963. case 101:
  2964. doguComboList[i] = new GUIContent("ダーツ");
  2965. break;
  2966. case 102:
  2967. doguComboList[i] = new GUIContent("ダーツボード");
  2968. break;
  2969. case 103:
  2970. doguComboList[i] = new GUIContent("鍋");
  2971. break;
  2972. case 104:
  2973. doguComboList[i] = new GUIContent("鍋");
  2974. break;
  2975. case 105:
  2976. doguComboList[i] = new GUIContent("夏みかん");
  2977. break;
  2978. case 106:
  2979. doguComboList[i] = new GUIContent("風呂椅子");
  2980. break;
  2981. case 107:
  2982. doguComboList[i] = new GUIContent("アヒル");
  2983. break;
  2984. case 108:
  2985. doguComboList[i] = new GUIContent("おぼん");
  2986. break;
  2987. case 109:
  2988. doguComboList[i] = new GUIContent("とっくり");
  2989. break;
  2990. case 110:
  2991. doguComboList[i] = new GUIContent("コーン皿");
  2992. break;
  2993. case 111:
  2994. doguComboList[i] = new GUIContent("イモ皿");
  2995. break;
  2996. case 112:
  2997. doguComboList[i] = new GUIContent("トマト皿");
  2998. break;
  2999. case 113:
  3000. doguComboList[i] = new GUIContent("砂の城");
  3001. break;
  3002. case 114:
  3003. doguComboList[i] = new GUIContent("砂山");
  3004. break;
  3005. case 115:
  3006. doguComboList[i] = new GUIContent("筒花火");
  3007. break;
  3008. case 116:
  3009. doguComboList[i] = new GUIContent("浮き輪");
  3010. break;
  3011. case 117:
  3012. doguComboList[i] = new GUIContent("作物(コーン)");
  3013. break;
  3014. case 118:
  3015. doguComboList[i] = new GUIContent("作物(月下美人)");
  3016. break;
  3017. case 119:
  3018. doguComboList[i] = new GUIContent("作物(月下美人・咲)");
  3019. break;
  3020. case 120:
  3021. doguComboList[i] = new GUIContent("作物(向日葵)");
  3022. break;
  3023. case 121:
  3024. doguComboList[i] = new GUIContent("作物(夏みかん)");
  3025. break;
  3026. case 122:
  3027. doguComboList[i] = new GUIContent("作物(スイカ)");
  3028. break;
  3029. case 123:
  3030. doguComboList[i] = new GUIContent("作物(ザクロ)");
  3031. break;
  3032. case 124:
  3033. doguComboList[i] = new GUIContent("");
  3034. break;
  3035. case 125:
  3036. doguComboList[i] = new GUIContent("");
  3037. break;
  3038. case 126:
  3039. doguComboList[i] = new GUIContent("");
  3040. break;
  3041. case 127:
  3042. doguComboList[i] = new GUIContent("ラジオ");
  3043. break;
  3044. case 128:
  3045. doguComboList[i] = new GUIContent("コーヒーメーカー");
  3046. break;
  3047. case 129:
  3048. doguComboList[i] = new GUIContent("冷蔵庫");
  3049. break;
  3050. case 130:
  3051. doguComboList[i] = new GUIContent("テーブル");
  3052. break;
  3053. case 131:
  3054. doguComboList[i] = new GUIContent("テレビリモコン");
  3055. break;
  3056. case 132:
  3057. doguComboList[i] = new GUIContent("ワインセラー");
  3058. break;
  3059. case 133:
  3060. doguComboList[i] = new GUIContent("サイドボード");
  3061. break;
  3062. case 134:
  3063. doguComboList[i] = new GUIContent("ねい人形USB");
  3064. break;
  3065. case 135:
  3066. doguComboList[i] = new GUIContent("輪投げ");
  3067. break;
  3068. case 136:
  3069. doguComboList[i] = new GUIContent("輪");
  3070. break;
  3071. case 137:
  3072. doguComboList[i] = new GUIContent("パフェ");
  3073. break;
  3074. case 138:
  3075. doguComboList[i] = new GUIContent("フライドポテト");
  3076. break;
  3077. case 139:
  3078. doguComboList[i] = new GUIContent("カラオケテーブル");
  3079. break;
  3080. case 140:
  3081. doguComboList[i] = new GUIContent("オムライスH");
  3082. break;
  3083. case 141:
  3084. doguComboList[i] = new GUIContent("オムライス顔1");
  3085. break;
  3086. case 142:
  3087. doguComboList[i] = new GUIContent("オムライス顔2");
  3088. break;
  3089. case 143:
  3090. doguComboList[i] = new GUIContent("オムライスおっぱい");
  3091. break;
  3092. case 144:
  3093. doguComboList[i] = new GUIContent("かき氷");
  3094. break;
  3095. case 145:
  3096. doguComboList[i] = new GUIContent("スナックプレート");
  3097. break;
  3098. case 146:
  3099. doguComboList[i] = new GUIContent("箱");
  3100. break;
  3101. case 147:
  3102. doguComboList[i] = new GUIContent("スタンドマイク");
  3103. break;
  3104. case 148:
  3105. doguComboList[i] = new GUIContent("スタンドマイクベース");
  3106. break;
  3107. case 149:
  3108. doguComboList[i] = new GUIContent("コアラマイク");
  3109. break;
  3110. case 150:
  3111. doguComboList[i] = new GUIContent("無垢椅子");
  3112. break;
  3113. case 151:
  3114. doguComboList[i] = new GUIContent("真面目椅子");
  3115. break;
  3116. case 152:
  3117. doguComboList[i] = new GUIContent("凛デレ椅子");
  3118. break;
  3119. case 153:
  3120. doguComboList[i] = new GUIContent("ツンデレ椅子");
  3121. break;
  3122. case 154:
  3123. doguComboList[i] = new GUIContent("クーデレ椅子");
  3124. break;
  3125. case 155:
  3126. doguComboList[i] = new GUIContent("純真椅子");
  3127. break;
  3128. case 156:
  3129. doguComboList[i] = new GUIContent("ふかふかチェア");
  3130. break;
  3131. case 157:
  3132. doguComboList[i] = new GUIContent("ラブソファー");
  3133. break;
  3134. case 158:
  3135. doguComboList[i] = new GUIContent("タブレットPC");
  3136. break;
  3137. case 159:
  3138. doguComboList[i] = new GUIContent("スタイラスペン(黒)");
  3139. break;
  3140. case 160:
  3141. doguComboList[i] = new GUIContent("スタイラスペン(白)");
  3142. break;
  3143. case 161:
  3144. doguComboList[i] = new GUIContent("スタイラスペン(赤)");
  3145. break;
  3146. case 162:
  3147. doguComboList[i] = new GUIContent("スタイラスペン(青)");
  3148. break;
  3149. case 163:
  3150. doguComboList[i] = new GUIContent("スタイラスペン(黄)");
  3151. break;
  3152. case 164:
  3153. doguComboList[i] = new GUIContent("スタイラスペン(緑)");
  3154. break;
  3155. case 165:
  3156. doguComboList[i] = new GUIContent("オムライス1");
  3157. break;
  3158. case 166:
  3159. doguComboList[i] = new GUIContent("オムライス3");
  3160. break;
  3161. case 167:
  3162. doguComboList[i] = new GUIContent("オムライスH");
  3163. break;
  3164. case 168:
  3165. doguComboList[i] = new GUIContent("オムライス顔1");
  3166. break;
  3167. case 169:
  3168. doguComboList[i] = new GUIContent("オムライス顔2");
  3169. break;
  3170. case 170:
  3171. doguComboList[i] = new GUIContent("オムライスおっぱい");
  3172. break;
  3173. case 171:
  3174. doguComboList[i] = new GUIContent("アクアパッザ");
  3175. break;
  3176. case 172:
  3177. doguComboList[i] = new GUIContent("サンドイッチ");
  3178. break;
  3179. case 173:
  3180. doguComboList[i] = new GUIContent("スープ");
  3181. break;
  3182. case 174:
  3183. doguComboList[i] = new GUIContent("バースデーケーキ");
  3184. break;
  3185. case 175:
  3186. doguComboList[i] = new GUIContent("ショートケーキ");
  3187. break;
  3188. case 176:
  3189. doguComboList[i] = new GUIContent("モンブラン");
  3190. break;
  3191. case 177:
  3192. doguComboList[i] = new GUIContent("パフェ");
  3193. break;
  3194. case 178:
  3195. doguComboList[i] = new GUIContent("スムージー・赤");
  3196. break;
  3197. case 179:
  3198. doguComboList[i] = new GUIContent("スムージー・緑");
  3199. break;
  3200. case 180:
  3201. doguComboList[i] = new GUIContent("カクテル・赤");
  3202. break;
  3203. case 181:
  3204. doguComboList[i] = new GUIContent("カクテル・青");
  3205. break;
  3206. case 182:
  3207. doguComboList[i] = new GUIContent("カクテル・黄");
  3208. break;
  3209. case 183:
  3210. doguComboList[i] = new GUIContent("コーヒーカップ");
  3211. break;
  3212. case 184:
  3213. doguComboList[i] = new GUIContent("ワインボトル");
  3214. break;
  3215. case 185:
  3216. doguComboList[i] = new GUIContent("ワインボトル(蓋)");
  3217. break;
  3218. case 186:
  3219. doguComboList[i] = new GUIContent("如雨露");
  3220. break;
  3221. case 187:
  3222. doguComboList[i] = new GUIContent("プランター(赤)");
  3223. break;
  3224. case 188:
  3225. doguComboList[i] = new GUIContent("プランター(青)");
  3226. break;
  3227. case 189:
  3228. doguComboList[i] = new GUIContent("マリーゴールド");
  3229. break;
  3230. case 190:
  3231. doguComboList[i] = new GUIContent("カジノチップ10");
  3232. break;
  3233. case 191:
  3234. doguComboList[i] = new GUIContent("カジノチップ100");
  3235. break;
  3236. case 192:
  3237. doguComboList[i] = new GUIContent("カジノチップ1000");
  3238. break;
  3239. case 193:
  3240. doguComboList[i] = new GUIContent("カードシューター");
  3241. break;
  3242. case 194:
  3243. doguComboList[i] = new GUIContent("カードデッキ");
  3244. break;
  3245. case 195:
  3246. doguComboList[i] = new GUIContent("カード・スペードA");
  3247. break;
  3248. case 196:
  3249. doguComboList[i] = new GUIContent("カード・スペード2");
  3250. break;
  3251. case 197:
  3252. doguComboList[i] = new GUIContent("カード・スペード3");
  3253. break;
  3254. case 198:
  3255. doguComboList[i] = new GUIContent("カード・スペード4");
  3256. break;
  3257. case 199:
  3258. doguComboList[i] = new GUIContent("カード・スペード5");
  3259. break;
  3260. case 200:
  3261. doguComboList[i] = new GUIContent("カード・スペード6");
  3262. break;
  3263. case 201:
  3264. doguComboList[i] = new GUIContent("カード・スペード7");
  3265. break;
  3266. case 202:
  3267. doguComboList[i] = new GUIContent("カード・スペード8");
  3268. break;
  3269. case 203:
  3270. doguComboList[i] = new GUIContent("カード・スペード9");
  3271. break;
  3272. case 204:
  3273. doguComboList[i] = new GUIContent("カード・スペード10");
  3274. break;
  3275. case 205:
  3276. doguComboList[i] = new GUIContent("カード・スペードJ");
  3277. break;
  3278. case 206:
  3279. doguComboList[i] = new GUIContent("カード・スペードQ");
  3280. break;
  3281. case 207:
  3282. doguComboList[i] = new GUIContent("カード・スペードK");
  3283. break;
  3284. case 208:
  3285. doguComboList[i] = new GUIContent("カード・ハートA");
  3286. break;
  3287. case 209:
  3288. doguComboList[i] = new GUIContent("カード・ハート2");
  3289. break;
  3290. case 210:
  3291. doguComboList[i] = new GUIContent("カード・ハート3");
  3292. break;
  3293. case 211:
  3294. doguComboList[i] = new GUIContent("カード・ハート4");
  3295. break;
  3296. case 212:
  3297. doguComboList[i] = new GUIContent("カード・ハート5");
  3298. break;
  3299. case 213:
  3300. doguComboList[i] = new GUIContent("カード・ハート6");
  3301. break;
  3302. case 214:
  3303. doguComboList[i] = new GUIContent("カード・ハート7");
  3304. break;
  3305. case 215:
  3306. doguComboList[i] = new GUIContent("カード・ハート8");
  3307. break;
  3308. case 216:
  3309. doguComboList[i] = new GUIContent("カード・ハート9");
  3310. break;
  3311. case 217:
  3312. doguComboList[i] = new GUIContent("カード・ハート10");
  3313. break;
  3314. case 218:
  3315. doguComboList[i] = new GUIContent("カード・ハートJ");
  3316. break;
  3317. case 219:
  3318. doguComboList[i] = new GUIContent("カード・ハートQ");
  3319. break;
  3320. case 220:
  3321. doguComboList[i] = new GUIContent("カード・ハートK");
  3322. break;
  3323. case 221:
  3324. doguComboList[i] = new GUIContent("カード・ダイヤA");
  3325. break;
  3326. case 222:
  3327. doguComboList[i] = new GUIContent("カード・ダイヤ2");
  3328. break;
  3329. case 223:
  3330. doguComboList[i] = new GUIContent("カード・ダイヤ3");
  3331. break;
  3332. case 224:
  3333. doguComboList[i] = new GUIContent("カード・ダイヤ4");
  3334. break;
  3335. case 225:
  3336. doguComboList[i] = new GUIContent("カード・ダイヤ5");
  3337. break;
  3338. case 226:
  3339. doguComboList[i] = new GUIContent("カード・ダイヤ6");
  3340. break;
  3341. case 227:
  3342. doguComboList[i] = new GUIContent("カード・ダイヤ7");
  3343. break;
  3344. case 228:
  3345. doguComboList[i] = new GUIContent("カード・ダイヤ8");
  3346. break;
  3347. case 229:
  3348. doguComboList[i] = new GUIContent("カード・ダイヤ9");
  3349. break;
  3350. case 230:
  3351. doguComboList[i] = new GUIContent("カード・ダイヤ10");
  3352. break;
  3353. case 231:
  3354. doguComboList[i] = new GUIContent("カード・ダイヤJ");
  3355. break;
  3356. case 232:
  3357. doguComboList[i] = new GUIContent("カード・ダイヤQ");
  3358. break;
  3359. case 233:
  3360. doguComboList[i] = new GUIContent("カード・ダイヤK");
  3361. break;
  3362. case 234:
  3363. doguComboList[i] = new GUIContent("カード・クラブA");
  3364. break;
  3365. case 235:
  3366. doguComboList[i] = new GUIContent("カード・クラブ2");
  3367. break;
  3368. case 236:
  3369. doguComboList[i] = new GUIContent("カード・クラブ3");
  3370. break;
  3371. case 237:
  3372. doguComboList[i] = new GUIContent("カード・クラブ4");
  3373. break;
  3374. case 238:
  3375. doguComboList[i] = new GUIContent("カード・クラブ5");
  3376. break;
  3377. case 239:
  3378. doguComboList[i] = new GUIContent("カード・クラブ6");
  3379. break;
  3380. case 240:
  3381. doguComboList[i] = new GUIContent("カード・クラブ7");
  3382. break;
  3383. case 241:
  3384. doguComboList[i] = new GUIContent("カード・クラブ8");
  3385. break;
  3386. case 242:
  3387. doguComboList[i] = new GUIContent("カード・クラブ9");
  3388. break;
  3389. case 243:
  3390. doguComboList[i] = new GUIContent("カード・クラブ10");
  3391. break;
  3392. case 244:
  3393. doguComboList[i] = new GUIContent("カード・クラブJ");
  3394. break;
  3395. case 245:
  3396. doguComboList[i] = new GUIContent("カード・クラブQ");
  3397. break;
  3398. case 246:
  3399. doguComboList[i] = new GUIContent("カード・クラブK");
  3400. break;
  3401. case 247:
  3402. doguComboList[i] = new GUIContent("カード・ジョーカー");
  3403. break;
  3404. default: goto IL_40C6;
  3405. }
  3406. IL_40DF:
  3407. i++;
  3408. continue;
  3409. IL_40C6:
  3410. doguComboList[i] = new GUIContent(doguBArray[i]);
  3411. goto IL_40DF;
  3412. }
  3413. parCombo.selectedItemIndex = 0;
  3414. parComboList = new GUIContent[parArray.Length];
  3415. i = 0;
  3416. while (i < parArray.Length)
  3417. {
  3418. string text = parArray[i];
  3419. if (text == null)
  3420. {
  3421. goto IL_48B6;
  3422. }
  3423. if (dicts[3] == null)
  3424. {
  3425. dicts[3] = new Dictionary<string, int>(46)
  3426. {
  3427. {"Salon:63", 0},
  3428. {"Salon:65", 1},
  3429. {"Salon:69", 2},
  3430. {"Salon_Entrance:3", 3},
  3431. {"Salon_Entrance:4", 4},
  3432. {"Salon_Entrance:1", 5},
  3433. {"Salon_Entrance:2", 6},
  3434. {"Salon_Entrance:0", 7},
  3435. {"Pool:26", 8},
  3436. {"Shitsumu:23", 9},
  3437. {"Shitsumu_Night:23", 10},
  3438. {"OutletPark:54", 11},
  3439. {"HoneymoonRoom:102", 12},
  3440. {"mirror1", 13},
  3441. {"mirror2", 14},
  3442. {"mirror3", 15},
  3443. {"Mob_Man_Stand001", 16},
  3444. {"Mob_Man_Stand002", 17},
  3445. {"Mob_Man_Stand003", 18},
  3446. {"Mob_Man_Sit001", 19},
  3447. {"Mob_Man_Sit002", 20},
  3448. {"Mob_Man_Sit003", 21},
  3449. {"Mob_Girl_Stand001", 22},
  3450. {"Mob_Girl_Stand002", 23},
  3451. {"Mob_Girl_Stand003", 24},
  3452. {"Mob_Girl_Sit001", 25},
  3453. {"Mob_Girl_Sit002", 26},
  3454. {"Mob_Girl_Sit003", 27},
  3455. {"p_dance_star_photo_ver", 28},
  3456. {"p_kamihubuki_photo_ver", 29},
  3457. {"p_mizu001_photo_ver", 30},
  3458. {"p_powder_snow2_photo_ver", 31},
  3459. {"p_powder_snow_photo_ver", 32},
  3460. {"p_smoke_dance_photo_ver", 33},
  3461. {"p_soap_bubble01_photo_ver", 34},
  3462. {"p_soap_bukubuku_photo_ver", 35},
  3463. {"p_soap_photo_ver", 36},
  3464. {"p_steam001_photo_ver", 37},
  3465. {"p_steam002_photo_ver", 38},
  3466. {"p_steam_black_photo_ver", 39},
  3467. {"p_yuge_large_photo_ver", 40},
  3468. {"Particle/pLineP02", 41},
  3469. {"Particle/pLineY", 42},
  3470. {"Particle/pLine_act2", 43},
  3471. {"Particle/pstarY_act2", 44},
  3472. {"Particle/pHeart01", 45}
  3473. };
  3474. }
  3475. if (!dicts[3].TryGetValue(text, out num))
  3476. {
  3477. goto IL_48B6;
  3478. }
  3479. switch (num)
  3480. {
  3481. case 0:
  3482. parComboList[i] = new GUIContent("ステージライト(赤)");
  3483. break;
  3484. case 1:
  3485. parComboList[i] = new GUIContent("ステージライト(黄)");
  3486. break;
  3487. case 2:
  3488. parComboList[i] = new GUIContent("ステージライト(青)");
  3489. break;
  3490. case 3:
  3491. parComboList[i] = new GUIContent("ドア(左)");
  3492. break;
  3493. case 4:
  3494. parComboList[i] = new GUIContent("ドア(右)");
  3495. break;
  3496. case 5:
  3497. parComboList[i] = new GUIContent("ホールドア(左)");
  3498. break;
  3499. case 6:
  3500. parComboList[i] = new GUIContent("ホールドア(右)");
  3501. break;
  3502. case 7:
  3503. parComboList[i] = new GUIContent("エントランス(扉無し)");
  3504. break;
  3505. case 8:
  3506. parComboList[i] = new GUIContent("水面");
  3507. break;
  3508. case 9:
  3509. parComboList[i] = new GUIContent("執務室(外・昼)");
  3510. break;
  3511. case 10:
  3512. parComboList[i] = new GUIContent("執務室(外・夜)");
  3513. break;
  3514. case 11:
  3515. parComboList[i] = new GUIContent("青空");
  3516. break;
  3517. case 12:
  3518. parComboList[i] = new GUIContent("夜景");
  3519. break;
  3520. case 13:
  3521. parComboList[i] = new GUIContent("鏡");
  3522. break;
  3523. case 14:
  3524. parComboList[i] = new GUIContent("鏡(縦長)");
  3525. break;
  3526. case 15:
  3527. parComboList[i] = new GUIContent("鏡(メイド部屋用)");
  3528. break;
  3529. case 16:
  3530. parComboList[i] = new GUIContent("モブ男1");
  3531. break;
  3532. case 17:
  3533. parComboList[i] = new GUIContent("モブ男2");
  3534. break;
  3535. case 18:
  3536. parComboList[i] = new GUIContent("モブ男3");
  3537. break;
  3538. case 19:
  3539. parComboList[i] = new GUIContent("モブ男1 座り");
  3540. break;
  3541. case 20:
  3542. parComboList[i] = new GUIContent("モブ男2 座り");
  3543. break;
  3544. case 21:
  3545. parComboList[i] = new GUIContent("モブ男3 座り");
  3546. break;
  3547. case 22:
  3548. parComboList[i] = new GUIContent("モブ女1");
  3549. break;
  3550. case 23:
  3551. parComboList[i] = new GUIContent("モブ女2");
  3552. break;
  3553. case 24:
  3554. parComboList[i] = new GUIContent("モブ女3");
  3555. break;
  3556. case 25:
  3557. parComboList[i] = new GUIContent("モブ女1 座り");
  3558. break;
  3559. case 26:
  3560. parComboList[i] = new GUIContent("モブ女2 座り");
  3561. break;
  3562. case 27:
  3563. parComboList[i] = new GUIContent("モブ女3 座り");
  3564. break;
  3565. case 28:
  3566. parComboList[i] = new GUIContent("星");
  3567. break;
  3568. case 29:
  3569. parComboList[i] = new GUIContent("紙吹雪");
  3570. break;
  3571. case 30:
  3572. parComboList[i] = new GUIContent("水");
  3573. break;
  3574. case 31:
  3575. parComboList[i] = new GUIContent("粉雪2");
  3576. break;
  3577. case 32:
  3578. parComboList[i] = new GUIContent("粉雪");
  3579. break;
  3580. case 33:
  3581. parComboList[i] = new GUIContent("煙");
  3582. break;
  3583. case 34:
  3584. parComboList[i] = new GUIContent("泡(空間)");
  3585. break;
  3586. case 35:
  3587. parComboList[i] = new GUIContent("泡");
  3588. break;
  3589. case 36:
  3590. parComboList[i] = new GUIContent("手元の泡");
  3591. break;
  3592. case 37:
  3593. parComboList[i] = new GUIContent("湯気1");
  3594. break;
  3595. case 38:
  3596. parComboList[i] = new GUIContent("スチーム");
  3597. break;
  3598. case 39:
  3599. parComboList[i] = new GUIContent("スチーム(黒)");
  3600. break;
  3601. case 40:
  3602. parComboList[i] = new GUIContent("湯気2");
  3603. break;
  3604. case 41:
  3605. parComboList[i] = new GUIContent("ライン:ハート");
  3606. break;
  3607. case 42:
  3608. parComboList[i] = new GUIContent("ライン:星");
  3609. break;
  3610. case 43:
  3611. parComboList[i] = new GUIContent("星2");
  3612. break;
  3613. case 44:
  3614. parComboList[i] = new GUIContent("流れ星");
  3615. break;
  3616. case 45:
  3617. parComboList[i] = new GUIContent("ハート");
  3618. break;
  3619. default: goto IL_48B6;
  3620. }
  3621. IL_48CF:
  3622. i++;
  3623. continue;
  3624. IL_48B6:
  3625. parComboList[i] = new GUIContent(parArray[i]);
  3626. goto IL_48CF;
  3627. }
  3628. lightCombo.selectedItemIndex = 0;
  3629. lightList = new List<GameObject>();
  3630. lightList.Add(GameMain.Instance.MainLight.gameObject);
  3631. lightComboList = new GUIContent[lightList.Count];
  3632. for (i = 0; i < lightList.Count; i++)
  3633. {
  3634. if (i == 0)
  3635. {
  3636. lightComboList[i] = new GUIContent("メイン");
  3637. }
  3638. else
  3639. {
  3640. lightComboList[i] = new GUIContent("追加" + i);
  3641. }
  3642. }
  3643. kankyoInitFlg = true;
  3644. }
  3645. listStyle3.padding.top = this.GetPix(1);
  3646. listStyle3.padding.bottom = this.GetPix(0);
  3647. listStyle3.fontSize = this.GetPix(12);
  3648. if (poseCombo.isClickedComboButton)
  3649. {
  3650. GUI.enabled = false;
  3651. }
  3652. if (poseGroupCombo.isClickedComboButton)
  3653. {
  3654. GUI.enabled = false;
  3655. }
  3656. if (sceneLevel == 3 || sceneLevel == 5 || isF6)
  3657. {
  3658. if (!isF6)
  3659. {
  3660. bool value = true;
  3661. if (faceFlg || poseFlg || sceneFlg || kankyoFlg || kankyo2Flg)
  3662. {
  3663. value = false;
  3664. }
  3665. if (GUI.Toggle(new Rect((float) this.GetPix(2),
  3666. (float) this.GetPix(2),
  3667. (float) this.GetPix(39),
  3668. (float) this.GetPix(20)),
  3669. value,
  3670. "配置",
  3671. guistyle6))
  3672. {
  3673. faceFlg = false;
  3674. poseFlg = false;
  3675. sceneFlg = false;
  3676. kankyoFlg = false;
  3677. kankyo2Flg = false;
  3678. bGui = true;
  3679. isGuiInit = true;
  3680. }
  3681. }
  3682. if (!yotogiFlg)
  3683. {
  3684. if (GUI.Toggle(new Rect((float) this.GetPix(42),
  3685. (float) this.GetPix(2),
  3686. (float) this.GetPix(39),
  3687. (float) this.GetPix(20)),
  3688. poseFlg,
  3689. "操作",
  3690. guistyle6))
  3691. {
  3692. poseFlg = true;
  3693. faceFlg = false;
  3694. sceneFlg = false;
  3695. kankyoFlg = false;
  3696. kankyo2Flg = false;
  3697. }
  3698. }
  3699. if (GUI.Toggle(new Rect((float) this.GetPix(82), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
  3700. faceFlg,
  3701. "表情",
  3702. guistyle6))
  3703. {
  3704. faceFlg = true;
  3705. poseFlg = false;
  3706. sceneFlg = false;
  3707. kankyoFlg = false;
  3708. kankyo2Flg = false;
  3709. if (!faceFlg2)
  3710. {
  3711. isFaceInit = true;
  3712. faceFlg2 = true;
  3713. maidArray[selectMaidIndex].boMabataki = false;
  3714. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  3715. }
  3716. isFaceInit = true;
  3717. }
  3718. if (GUI.Toggle(new Rect((float) this.GetPix(122), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
  3719. kankyoFlg,
  3720. "環境",
  3721. guistyle6))
  3722. {
  3723. poseFlg = false;
  3724. faceFlg = false;
  3725. sceneFlg = false;
  3726. kankyoFlg = true;
  3727. kankyo2Flg = false;
  3728. }
  3729. if (GUI.Toggle(new Rect((float) this.GetPix(162), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
  3730. kankyo2Flg,
  3731. "環2",
  3732. guistyle6))
  3733. {
  3734. poseFlg = false;
  3735. faceFlg = false;
  3736. sceneFlg = false;
  3737. kankyoFlg = false;
  3738. kankyo2Flg = true;
  3739. }
  3740. if (!line1)
  3741. {
  3742. line1 = this.MakeTex(2, 2, new Color(0f, 0f, 0f, 0.3f));
  3743. line2 = this.MakeTex(2, 2, new Color(0.7f, 0.7f, 0.7f, 0.6f));
  3744. }
  3745. GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(20), (float) this.GetPix(200), 2f), line1);
  3746. GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(20), (float) this.GetPix(200), 1f), line2);
  3747. }
  3748. if (isDanceStop)
  3749. {
  3750. isStop[selectMaidIndex] = true;
  3751. isDanceStop = false;
  3752. }
  3753. yotogiFlg = false;
  3754. if (sceneLevel == 14)
  3755. {
  3756. if (GameObject.Find("/UI Root/YotogiPlayPanel/CommandViewer/SkillViewer/MaskGroup/SkillGroup/CommandParent/CommandUnit"))
  3757. {
  3758. yotogiFlg = true;
  3759. }
  3760. }
  3761. if (!isF6)
  3762. {
  3763. if (GUI.Button(new Rect((float) this.GetPix(157),
  3764. (float) this.GetPix(32),
  3765. (float) this.GetPix(46),
  3766. (float) this.GetPix(35)),
  3767. "シーン\n 管 理",
  3768. guistyle3))
  3769. {
  3770. sceneFlg = true;
  3771. faceFlg = false;
  3772. poseFlg = false;
  3773. kankyoFlg = false;
  3774. kankyo2Flg = false;
  3775. bGui = true;
  3776. int i = 0;
  3777. while (i < 10)
  3778. {
  3779. date[i] = "未保存";
  3780. ninzu[i] = "";
  3781. IniKey iniKey = base.Preferences["scene"]["s" + (page * 10 + i + 1)];
  3782. if (iniKey.Value != null && iniKey.Value.ToString() != "")
  3783. {
  3784. string[] array = iniKey.Value.Split(new char[] {'_'});
  3785. if (array.Length >= 2)
  3786. {
  3787. string[] array2 = array[0].Split(new char[] {','});
  3788. date[i] = array2[0];
  3789. ninzu[i] = array2[1] + "人";
  3790. }
  3791. }
  3792. IL_4FA1:
  3793. i++;
  3794. continue;
  3795. goto IL_4FA1;
  3796. }
  3797. }
  3798. }
  3799. if (doguCombo.isClickedComboButton || parCombo.isClickedComboButton || bgCombo.isClickedComboButton
  3800. || bgmCombo.isClickedComboButton || lightCombo.isClickedComboButton)
  3801. {
  3802. GUI.enabled = false;
  3803. }
  3804. int num2 = -1;
  3805. if (lightIndex[selectLightIndex] == 0)
  3806. {
  3807. isIdx1 = true;
  3808. }
  3809. if (lightIndex[selectLightIndex] == 1)
  3810. {
  3811. isIdx2 = true;
  3812. }
  3813. if (lightIndex[selectLightIndex] == 2)
  3814. {
  3815. isIdx3 = true;
  3816. }
  3817. if (lightIndex[selectLightIndex] == 3)
  3818. {
  3819. isIdx4 = true;
  3820. }
  3821. if (GUI.Toggle(new Rect((float) this.GetPix(5), (float) this.GetPix(215), (float) this.GetPix(45), (float) this.GetPix(20)),
  3822. isIdx1,
  3823. "通常",
  3824. guistyle6))
  3825. {
  3826. if (lightIndex[selectLightIndex] != 0)
  3827. {
  3828. isIdx1 = true;
  3829. isIdx2 = false;
  3830. isIdx3 = false;
  3831. isIdx4 = false;
  3832. num2 = 0;
  3833. }
  3834. }
  3835. if (GUI.Toggle(new Rect((float) this.GetPix(50), (float) this.GetPix(215), (float) this.GetPix(45), (float) this.GetPix(20)),
  3836. isIdx2,
  3837. "Spot",
  3838. guistyle6))
  3839. {
  3840. if (lightIndex[selectLightIndex] != 1)
  3841. {
  3842. isIdx1 = false;
  3843. isIdx2 = true;
  3844. isIdx3 = false;
  3845. isIdx4 = false;
  3846. num2 = 1;
  3847. }
  3848. }
  3849. if (GUI.Toggle(new Rect((float) this.GetPix(99), (float) this.GetPix(215), (float) this.GetPix(45), (float) this.GetPix(20)),
  3850. isIdx3,
  3851. "Point",
  3852. guistyle6))
  3853. {
  3854. if (lightIndex[selectLightIndex] != 2)
  3855. {
  3856. isIdx1 = false;
  3857. isIdx2 = false;
  3858. isIdx3 = true;
  3859. isIdx4 = false;
  3860. num2 = 2;
  3861. }
  3862. }
  3863. if (selectLightIndex == 0)
  3864. {
  3865. if (GUI.Toggle(new Rect((float) this.GetPix(150),
  3866. (float) this.GetPix(215),
  3867. (float) this.GetPix(45),
  3868. (float) this.GetPix(20)),
  3869. isIdx4,
  3870. "単色",
  3871. guistyle6))
  3872. {
  3873. if (lightIndex[selectLightIndex] != 3)
  3874. {
  3875. isIdx1 = false;
  3876. isIdx2 = false;
  3877. isIdx3 = false;
  3878. isIdx4 = true;
  3879. num2 = 3;
  3880. }
  3881. }
  3882. }
  3883. else if (GUI.Toggle(new Rect((float) this.GetPix(150),
  3884. (float) this.GetPix(215),
  3885. (float) this.GetPix(45),
  3886. (float) this.GetPix(20)),
  3887. isIdx4,
  3888. "無効",
  3889. guistyle6))
  3890. {
  3891. if (lightIndex[selectLightIndex] != 3)
  3892. {
  3893. isIdx1 = false;
  3894. isIdx2 = false;
  3895. isIdx3 = false;
  3896. isIdx4 = true;
  3897. num2 = 3;
  3898. }
  3899. }
  3900. if (num2 >= 0)
  3901. {
  3902. lightIndex[selectLightIndex] = num2;
  3903. if (selectLightIndex == 0)
  3904. {
  3905. GameMain.Instance.MainLight.Reset();
  3906. GameMain.Instance.MainLight.SetIntensity(0.95f);
  3907. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle = 50f;
  3908. GameMain.Instance.MainLight.GetComponent<Light>().range = 10f;
  3909. GameMain.Instance.MainLight.gameObject.transform.position = new Vector3(0f, 2f, 0f);
  3910. if (lightIndex[selectLightIndex] == 0)
  3911. {
  3912. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  3913. bgObject.SetActive(true);
  3914. mainCamera.GetComponent<Camera>().backgroundColor = new Color(0f, 0f, 0f);
  3915. }
  3916. else if (lightIndex[selectLightIndex] == 1)
  3917. {
  3918. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.right * 40f;
  3919. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Spot;
  3920. bgObject.SetActive(true);
  3921. mainCamera.GetComponent<Camera>().backgroundColor = new Color(0f, 0f, 0f);
  3922. }
  3923. else if (lightIndex[selectLightIndex] == 2)
  3924. {
  3925. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Point;
  3926. bgObject.SetActive(true);
  3927. mainCamera.GetComponent<Camera>().backgroundColor = new Color(0f, 0f, 0f);
  3928. }
  3929. else if (lightIndex[selectLightIndex] == 3)
  3930. {
  3931. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  3932. mainCamera.GetComponent<Camera>().backgroundColor = new Color(lightColorR[0], lightColorG[0], lightColorB[0]);
  3933. bgObject.SetActive(false);
  3934. }
  3935. }
  3936. else
  3937. {
  3938. lightList[selectLightIndex].SetActive(true);
  3939. if (lightIndex[selectLightIndex] == 0)
  3940. {
  3941. lightList[selectLightIndex].GetComponent<Light>().type = LightType.Directional;
  3942. }
  3943. else if (lightIndex[selectLightIndex] == 1)
  3944. {
  3945. lightList[selectLightIndex].transform.eulerAngles += Vector3.right * 40f;
  3946. lightList[selectLightIndex].GetComponent<Light>().type = LightType.Spot;
  3947. }
  3948. else if (lightIndex[selectLightIndex] == 2)
  3949. {
  3950. lightList[selectLightIndex].GetComponent<Light>().type = LightType.Point;
  3951. }
  3952. else if (lightIndex[selectLightIndex] == 3)
  3953. {
  3954. lightList[selectLightIndex].GetComponent<Light>().type = LightType.Directional;
  3955. lightList[selectLightIndex].SetActive(false);
  3956. }
  3957. }
  3958. lightColorR[selectLightIndex] = 1f;
  3959. lightColorG[selectLightIndex] = 1f;
  3960. lightColorB[selectLightIndex] = 1f;
  3961. lightX[selectLightIndex] = 40f;
  3962. lightY[selectLightIndex] = 180f;
  3963. lightAkarusa[selectLightIndex] = 0.95f;
  3964. lightKage[selectLightIndex] = 0.098f;
  3965. lightRange[selectLightIndex] = 50f;
  3966. if (lightIndex[selectLightIndex] == 1)
  3967. {
  3968. lightX[selectLightIndex] = 90f;
  3969. }
  3970. }
  3971. GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(138), (float) this.GetPix(100), (float) this.GetPix(25)),
  3972. "キューブ表示",
  3973. guistyle2);
  3974. guistyle6.fontSize = this.GetPix(12);
  3975. isCube2 = GUI.Toggle(new Rect((float) this.GetPix(5),
  3976. (float) this.GetPix(153),
  3977. (float) this.GetPix(55),
  3978. (float) this.GetPix(20)),
  3979. isCube2,
  3980. "大道具(",
  3981. guistyle6);
  3982. if (!isF6)
  3983. {
  3984. isCube = GUI.Toggle(new Rect((float) this.GetPix(102),
  3985. (float) this.GetPix(153),
  3986. (float) this.GetPix(54),
  3987. (float) this.GetPix(20)),
  3988. isCube,
  3989. "メイド",
  3990. guistyle6);
  3991. }
  3992. bool flag = GUI.Toggle(new Rect((float) this.GetPix(160),
  3993. (float) this.GetPix(153),
  3994. (float) this.GetPix(44),
  3995. (float) this.GetPix(20)),
  3996. isCube3,
  3997. "背景",
  3998. guistyle6);
  3999. guistyle6.fontSize = this.GetPix(13);
  4000. bool flag2 = GUI.Toggle(new Rect((float) this.GetPix(61),
  4001. (float) this.GetPix(153),
  4002. (float) this.GetPix(38),
  4003. (float) this.GetPix(20)),
  4004. isCubeS,
  4005. "小)",
  4006. guistyle6);
  4007. if (isCubeS != flag2)
  4008. {
  4009. isCubeS = flag2;
  4010. if (isCubeS)
  4011. {
  4012. cubeSize = 0.05f;
  4013. }
  4014. else
  4015. {
  4016. cubeSize = 0.12f;
  4017. }
  4018. for (int i = 0; i < doguBObject.Count; i++)
  4019. {
  4020. gDogu[i].transform.localScale = new Vector3(cubeSize, cubeSize, cubeSize);
  4021. }
  4022. }
  4023. if (isCube3 != flag)
  4024. {
  4025. isCube3 = flag;
  4026. if (gBg == null)
  4027. {
  4028. gBg = GameObject.CreatePrimitive(PrimitiveType.Cube);
  4029. gBg.GetComponent<Renderer>().material = m_material;
  4030. gBg.layer = 8;
  4031. gBg.GetComponent<Renderer>().enabled = false;
  4032. gBg.SetActive(false);
  4033. gBg.transform.position = bgObject.transform.position;
  4034. mBg = gBg.AddComponent<MouseDrag6>();
  4035. mBg.obj = gBg;
  4036. mBg.maid = bgObject;
  4037. mBg.angles = bg.eulerAngles;
  4038. gBg.transform.localScale = new Vector3(0.12f, 0.12f, 0.12f);
  4039. mBg.ido = 1;
  4040. mBg.isScale = false;
  4041. }
  4042. if (isCube3)
  4043. {
  4044. gBg.SetActive(true);
  4045. }
  4046. else
  4047. {
  4048. gBg.SetActive(false);
  4049. }
  4050. }
  4051. int num3 = 0;
  4052. if (lightIndex[selectLightIndex] == 0 || lightIndex[selectLightIndex] == 1
  4053. || (selectLightIndex == 0 && lightIndex[selectLightIndex] == 3))
  4054. {
  4055. GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(237), (float) this.GetPix(100), (float) this.GetPix(25)),
  4056. "向きX",
  4057. guistyle2);
  4058. lightX[selectLightIndex] =
  4059. GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4060. (float) this.GetPix(251),
  4061. (float) this.GetPix(192),
  4062. (float) this.GetPix(20)),
  4063. lightX[selectLightIndex],
  4064. 220f,
  4065. -140f);
  4066. GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(261), (float) this.GetPix(100), (float) this.GetPix(25)),
  4067. "向きY",
  4068. guistyle2);
  4069. lightY[selectLightIndex] =
  4070. GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4071. (float) this.GetPix(275),
  4072. (float) this.GetPix(192),
  4073. (float) this.GetPix(20)),
  4074. lightY[selectLightIndex],
  4075. 0f,
  4076. 360f);
  4077. }
  4078. else
  4079. {
  4080. num3 = 50;
  4081. }
  4082. if (lightIndex[selectLightIndex] != 3 || selectLightIndex <= 0)
  4083. {
  4084. GUI.Label(new Rect((float) this.GetPix(10),
  4085. (float) this.GetPix(285 - num3),
  4086. (float) this.GetPix(100),
  4087. (float) this.GetPix(25)),
  4088. "明るさ",
  4089. guistyle2);
  4090. lightAkarusa[selectLightIndex] =
  4091. GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4092. (float) this.GetPix(299 - num3),
  4093. (float) this.GetPix(192),
  4094. (float) this.GetPix(20)),
  4095. lightAkarusa[selectLightIndex],
  4096. 0f,
  4097. 1.9f);
  4098. if (lightIndex[selectLightIndex] == 0 || lightIndex[selectLightIndex] == 3)
  4099. {
  4100. if (selectLightIndex == 0)
  4101. {
  4102. GUI.Label(new Rect((float) this.GetPix(10),
  4103. (float) this.GetPix(309 - num3),
  4104. (float) this.GetPix(100),
  4105. (float) this.GetPix(25)),
  4106. "影",
  4107. guistyle2);
  4108. lightKage[selectLightIndex] =
  4109. GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4110. (float) this.GetPix(323 - num3),
  4111. (float) this.GetPix(192),
  4112. (float) this.GetPix(20)),
  4113. lightKage[selectLightIndex],
  4114. 0f,
  4115. 1f);
  4116. }
  4117. else
  4118. {
  4119. num3 = 25;
  4120. }
  4121. }
  4122. else if (lightIndex[selectLightIndex] == 1 || lightIndex[selectLightIndex] == 2)
  4123. {
  4124. GUI.Label(new Rect((float) this.GetPix(10),
  4125. (float) this.GetPix(311 - num3),
  4126. (float) this.GetPix(100),
  4127. (float) this.GetPix(25)),
  4128. "範囲",
  4129. guistyle2);
  4130. lightRange[selectLightIndex] =
  4131. GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4132. (float) this.GetPix(325 - num3),
  4133. (float) this.GetPix(192),
  4134. (float) this.GetPix(20)),
  4135. lightRange[selectLightIndex],
  4136. 0f,
  4137. 150f);
  4138. }
  4139. else
  4140. {
  4141. num3 = 75;
  4142. }
  4143. GUI.Label(new Rect((float) this.GetPix(10),
  4144. (float) this.GetPix(333 - num3),
  4145. (float) this.GetPix(100),
  4146. (float) this.GetPix(25)),
  4147. "赤",
  4148. guistyle2);
  4149. lightColorR[selectLightIndex] =
  4150. GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4151. (float) this.GetPix(347 - num3),
  4152. (float) this.GetPix(92),
  4153. (float) this.GetPix(20)),
  4154. lightColorR[selectLightIndex],
  4155. 0f,
  4156. 1f);
  4157. GUI.Label(new Rect((float) this.GetPix(108),
  4158. (float) this.GetPix(333 - num3),
  4159. (float) this.GetPix(100),
  4160. (float) this.GetPix(25)),
  4161. "緑",
  4162. guistyle2);
  4163. lightColorG[selectLightIndex] =
  4164. GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
  4165. (float) this.GetPix(347 - num3),
  4166. (float) this.GetPix(92),
  4167. (float) this.GetPix(20)),
  4168. lightColorG[selectLightIndex],
  4169. 0f,
  4170. 1f);
  4171. GUI.Label(new Rect((float) this.GetPix(10),
  4172. (float) this.GetPix(357 - num3),
  4173. (float) this.GetPix(100),
  4174. (float) this.GetPix(25)),
  4175. "青",
  4176. guistyle2);
  4177. lightColorB[selectLightIndex] =
  4178. GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4179. (float) this.GetPix(371 - num3),
  4180. (float) this.GetPix(92),
  4181. (float) this.GetPix(20)),
  4182. lightColorB[selectLightIndex],
  4183. 0f,
  4184. 1f);
  4185. }
  4186. if (GUI.Toggle(new Rect((float) this.GetPix(5), (float) this.GetPix(391), (float) this.GetPix(67), (float) this.GetPix(20)),
  4187. isBloomS,
  4188. "ブルーム",
  4189. guistyle6))
  4190. {
  4191. isBloomS = true;
  4192. isDepthS = false;
  4193. isBlurS = false;
  4194. isFogS = false;
  4195. }
  4196. if (isBloomS)
  4197. {
  4198. isBloom = GUI.Toggle(new Rect((float) this.GetPix(8),
  4199. (float) this.GetPix(412),
  4200. (float) this.GetPix(40),
  4201. (float) this.GetPix(20)),
  4202. isBloom,
  4203. "有効",
  4204. guistyle6);
  4205. if (!isBloom)
  4206. {
  4207. GUI.enabled = false;
  4208. }
  4209. GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(430), (float) this.GetPix(100), (float) this.GetPix(25)),
  4210. "強さ",
  4211. guistyle2);
  4212. bloom1 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4213. (float) this.GetPix(445),
  4214. (float) this.GetPix(92),
  4215. (float) this.GetPix(20)),
  4216. bloom1,
  4217. 0f,
  4218. 5.7f);
  4219. GUI.Label(new Rect((float) this.GetPix(110), (float) this.GetPix(430), (float) this.GetPix(100), (float) this.GetPix(25)),
  4220. "広さ",
  4221. guistyle2);
  4222. bloom2 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
  4223. (float) this.GetPix(445),
  4224. (float) this.GetPix(92),
  4225. (float) this.GetPix(20)),
  4226. bloom2,
  4227. 0f,
  4228. 15f);
  4229. GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(455), (float) this.GetPix(100), (float) this.GetPix(25)),
  4230. "赤",
  4231. guistyle2);
  4232. bloom3 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4233. (float) this.GetPix(470),
  4234. (float) this.GetPix(92),
  4235. (float) this.GetPix(20)),
  4236. bloom3,
  4237. 0f,
  4238. 0.5f);
  4239. GUI.Label(new Rect((float) this.GetPix(110), (float) this.GetPix(455), (float) this.GetPix(100), (float) this.GetPix(25)),
  4240. "緑",
  4241. guistyle2);
  4242. bloom4 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
  4243. (float) this.GetPix(470),
  4244. (float) this.GetPix(92),
  4245. (float) this.GetPix(20)),
  4246. bloom4,
  4247. 0f,
  4248. 0.5f);
  4249. GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(480), (float) this.GetPix(100), (float) this.GetPix(25)),
  4250. "青",
  4251. guistyle2);
  4252. bloom5 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4253. (float) this.GetPix(495),
  4254. (float) this.GetPix(92),
  4255. (float) this.GetPix(20)),
  4256. bloom5,
  4257. 0f,
  4258. 0.5f);
  4259. isBloomA = GUI.Toggle(new Rect((float) this.GetPix(110),
  4260. (float) this.GetPix(491),
  4261. (float) this.GetPix(50),
  4262. (float) this.GetPix(20)),
  4263. isBloomA,
  4264. "HDR",
  4265. guistyle6);
  4266. if (!doguCombo.isClickedComboButton && !parCombo.isClickedComboButton && !bgCombo.isClickedComboButton
  4267. && !bgmCombo.isClickedComboButton)
  4268. {
  4269. GUI.enabled = true;
  4270. }
  4271. }
  4272. if (GUI.Toggle(new Rect((float) this.GetPix(73), (float) this.GetPix(391), (float) this.GetPix(40), (float) this.GetPix(20)),
  4273. isDepthS,
  4274. "深度",
  4275. guistyle6))
  4276. {
  4277. isBloomS = false;
  4278. isDepthS = true;
  4279. isBlurS = false;
  4280. isFogS = false;
  4281. }
  4282. if (isDepthS)
  4283. {
  4284. isDepth = GUI.Toggle(new Rect((float) this.GetPix(8),
  4285. (float) this.GetPix(412),
  4286. (float) this.GetPix(40),
  4287. (float) this.GetPix(20)),
  4288. isDepth,
  4289. "有効",
  4290. guistyle6);
  4291. if (!isDepth)
  4292. {
  4293. GUI.enabled = false;
  4294. }
  4295. GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(430), (float) this.GetPix(100), (float) this.GetPix(25)),
  4296. "焦点距離",
  4297. guistyle2);
  4298. depth1 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4299. (float) this.GetPix(445),
  4300. (float) this.GetPix(192),
  4301. (float) this.GetPix(20)),
  4302. depth1,
  4303. 0f,
  4304. 10f);
  4305. GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(455), (float) this.GetPix(100), (float) this.GetPix(25)),
  4306. "焦点領域サイズ",
  4307. guistyle2);
  4308. depth2 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4309. (float) this.GetPix(470),
  4310. (float) this.GetPix(92),
  4311. (float) this.GetPix(20)),
  4312. depth2,
  4313. 0f,
  4314. 2f);
  4315. GUI.Label(new Rect((float) this.GetPix(110), (float) this.GetPix(455), (float) this.GetPix(100), (float) this.GetPix(25)),
  4316. "カメラ絞り",
  4317. guistyle2);
  4318. depth3 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
  4319. (float) this.GetPix(470),
  4320. (float) this.GetPix(92),
  4321. (float) this.GetPix(20)),
  4322. depth3,
  4323. 0f,
  4324. 60f);
  4325. GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(480), (float) this.GetPix(100), (float) this.GetPix(25)),
  4326. "ブレ",
  4327. guistyle2);
  4328. depth4 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4329. (float) this.GetPix(495),
  4330. (float) this.GetPix(92),
  4331. (float) this.GetPix(20)),
  4332. depth4,
  4333. 0f,
  4334. 10f);
  4335. isDepthA = GUI.Toggle(new Rect((float) this.GetPix(110),
  4336. (float) this.GetPix(491),
  4337. (float) this.GetPix(100),
  4338. (float) this.GetPix(20)),
  4339. isDepthA,
  4340. "深度表示",
  4341. guistyle6);
  4342. if (!doguCombo.isClickedComboButton && !parCombo.isClickedComboButton && !bgCombo.isClickedComboButton
  4343. && !bgmCombo.isClickedComboButton)
  4344. {
  4345. GUI.enabled = true;
  4346. }
  4347. }
  4348. if (GUI.Toggle(new Rect((float) this.GetPix(114), (float) this.GetPix(391), (float) this.GetPix(40), (float) this.GetPix(20)),
  4349. isBlurS,
  4350. "光学",
  4351. guistyle6))
  4352. {
  4353. isBloomS = false;
  4354. isDepthS = false;
  4355. isBlurS = true;
  4356. isFogS = false;
  4357. }
  4358. if (isBlurS)
  4359. {
  4360. isBlur = GUI.Toggle(new Rect((float) this.GetPix(8),
  4361. (float) this.GetPix(412),
  4362. (float) this.GetPix(40),
  4363. (float) this.GetPix(20)),
  4364. isBlur,
  4365. "有効",
  4366. guistyle6);
  4367. if (!isBlur)
  4368. {
  4369. GUI.enabled = false;
  4370. }
  4371. GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(430), (float) this.GetPix(100), (float) this.GetPix(25)),
  4372. "強さ",
  4373. guistyle2);
  4374. blur1 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4375. (float) this.GetPix(445),
  4376. (float) this.GetPix(92),
  4377. (float) this.GetPix(20)),
  4378. blur1,
  4379. -40f,
  4380. 70f);
  4381. GUI.Label(new Rect((float) this.GetPix(108), (float) this.GetPix(430), (float) this.GetPix(100), (float) this.GetPix(25)),
  4382. "ブラー",
  4383. guistyle2);
  4384. blur2 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
  4385. (float) this.GetPix(445),
  4386. (float) this.GetPix(92),
  4387. (float) this.GetPix(20)),
  4388. blur2,
  4389. 0f,
  4390. 5f);
  4391. GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(455), (float) this.GetPix(100), (float) this.GetPix(25)),
  4392. "ブレ",
  4393. guistyle2);
  4394. blur3 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4395. (float) this.GetPix(470),
  4396. (float) this.GetPix(92),
  4397. (float) this.GetPix(20)),
  4398. blur3,
  4399. 0f,
  4400. 40f);
  4401. GUI.Label(new Rect((float) this.GetPix(108), (float) this.GetPix(455), (float) this.GetPix(100), (float) this.GetPix(25)),
  4402. "色収差",
  4403. guistyle2);
  4404. blur4 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
  4405. (float) this.GetPix(470),
  4406. (float) this.GetPix(92),
  4407. (float) this.GetPix(20)),
  4408. blur4,
  4409. -30f,
  4410. 30f);
  4411. if (!doguCombo.isClickedComboButton && !parCombo.isClickedComboButton && !bgCombo.isClickedComboButton
  4412. && !bgmCombo.isClickedComboButton)
  4413. {
  4414. GUI.enabled = true;
  4415. }
  4416. }
  4417. if (GUI.Toggle(new Rect((float) this.GetPix(155), (float) this.GetPix(391), (float) this.GetPix(60), (float) this.GetPix(20)),
  4418. isFogS,
  4419. "フォグ",
  4420. guistyle6))
  4421. {
  4422. isBloomS = false;
  4423. isDepthS = false;
  4424. isBlurS = false;
  4425. isFogS = true;
  4426. }
  4427. if (isFogS)
  4428. {
  4429. isFog = GUI.Toggle(new Rect((float) this.GetPix(8),
  4430. (float) this.GetPix(412),
  4431. (float) this.GetPix(40),
  4432. (float) this.GetPix(20)),
  4433. isFog,
  4434. "有効",
  4435. guistyle6);
  4436. if (!isFog)
  4437. {
  4438. GUI.enabled = false;
  4439. }
  4440. GUI.Label(new Rect((float) this.GetPix(110), (float) this.GetPix(406), (float) this.GetPix(100), (float) this.GetPix(24)),
  4441. "発生距離",
  4442. guistyle2);
  4443. fog1 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
  4444. (float) this.GetPix(420),
  4445. (float) this.GetPix(92),
  4446. (float) this.GetPix(20)),
  4447. fog1,
  4448. 0f,
  4449. 30f);
  4450. GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(430), (float) this.GetPix(100), (float) this.GetPix(25)),
  4451. "密度",
  4452. guistyle2);
  4453. fog2 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4454. (float) this.GetPix(445),
  4455. (float) this.GetPix(92),
  4456. (float) this.GetPix(20)),
  4457. fog2,
  4458. 0f,
  4459. 10f);
  4460. GUI.Label(new Rect((float) this.GetPix(110), (float) this.GetPix(430), (float) this.GetPix(100), (float) this.GetPix(25)),
  4461. "強度",
  4462. guistyle2);
  4463. fog3 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
  4464. (float) this.GetPix(445),
  4465. (float) this.GetPix(92),
  4466. (float) this.GetPix(20)),
  4467. fog3,
  4468. -5f,
  4469. 20f);
  4470. GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(455), (float) this.GetPix(100), (float) this.GetPix(25)),
  4471. "高さ",
  4472. guistyle2);
  4473. fog4 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4474. (float) this.GetPix(470),
  4475. (float) this.GetPix(92),
  4476. (float) this.GetPix(20)),
  4477. fog4,
  4478. -10f,
  4479. 10f);
  4480. GUI.Label(new Rect((float) this.GetPix(110), (float) this.GetPix(455), (float) this.GetPix(100), (float) this.GetPix(25)),
  4481. "赤",
  4482. guistyle2);
  4483. fog5 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
  4484. (float) this.GetPix(470),
  4485. (float) this.GetPix(92),
  4486. (float) this.GetPix(20)),
  4487. fog5,
  4488. 0f,
  4489. 1f);
  4490. GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(480), (float) this.GetPix(100), (float) this.GetPix(25)),
  4491. "緑",
  4492. guistyle2);
  4493. fog6 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4494. (float) this.GetPix(495),
  4495. (float) this.GetPix(92),
  4496. (float) this.GetPix(20)),
  4497. fog6,
  4498. 0f,
  4499. 1f);
  4500. GUI.Label(new Rect((float) this.GetPix(110), (float) this.GetPix(480), (float) this.GetPix(100), (float) this.GetPix(25)),
  4501. "青",
  4502. guistyle2);
  4503. fog7 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
  4504. (float) this.GetPix(495),
  4505. (float) this.GetPix(92),
  4506. (float) this.GetPix(20)),
  4507. fog7,
  4508. 0f,
  4509. 1f);
  4510. if (!doguCombo.isClickedComboButton && !parCombo.isClickedComboButton && !bgCombo.isClickedComboButton
  4511. && !bgmCombo.isClickedComboButton)
  4512. {
  4513. GUI.enabled = true;
  4514. }
  4515. }
  4516. isSepian = GUI.Toggle(new Rect((float) this.GetPix(5),
  4517. (float) this.GetPix(515),
  4518. (float) this.GetPix(80),
  4519. (float) this.GetPix(20)),
  4520. isSepian,
  4521. "セピア",
  4522. guistyle6);
  4523. GUI.Label(new Rect((float) this.GetPix(108), (float) this.GetPix(512), (float) this.GetPix(100), (float) this.GetPix(25)),
  4524. "ぼかし",
  4525. guistyle2);
  4526. bokashi = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
  4527. (float) this.GetPix(527),
  4528. (float) this.GetPix(92),
  4529. (float) this.GetPix(20)),
  4530. bokashi,
  4531. 0f,
  4532. 18f);
  4533. if (GUI.Toggle(new Rect((float) this.GetPix(5), (float) this.GetPix(545), (float) this.GetPix(80), (float) this.GetPix(20)),
  4534. isHairSetting,
  4535. "髪の設定",
  4536. guistyle6))
  4537. {
  4538. isHairSetting = true;
  4539. isSkirtSetting = false;
  4540. }
  4541. if (isHairSetting)
  4542. {
  4543. bool flag3 = GUI.Toggle(new Rect((float) this.GetPix(5),
  4544. (float) this.GetPix(566),
  4545. (float) this.GetPix(40),
  4546. (float) this.GetPix(20)),
  4547. isKamiyure,
  4548. "有効",
  4549. guistyle6);
  4550. if (isKamiyure != flag3)
  4551. {
  4552. isKamiyure = flag3;
  4553. if (isKamiyure)
  4554. {
  4555. base.Preferences["config"]["hair_setting"].Value = "true";
  4556. base.Preferences["config"]["hair_radius"].Value = kamiyure4.ToString();
  4557. base.Preferences["config"]["hair_elasticity"].Value = kamiyure3.ToString();
  4558. base.Preferences["config"]["hair_damping"].Value = kamiyure2.ToString();
  4559. base.SaveConfig();
  4560. }
  4561. else
  4562. {
  4563. base.Preferences["config"]["hair_setting"].Value = "false";
  4564. base.SaveConfig();
  4565. for (int j = 0; j < maidCnt; j++)
  4566. {
  4567. for (int k = 0; k < maidArray[j].body0.goSlot.Count; k++)
  4568. {
  4569. if (k >= 3 && k <= 6)
  4570. {
  4571. if (maidArray[j].body0.goSlot[k].obj != null)
  4572. {
  4573. DynamicBone component = maidArray[j].body0.goSlot[k].obj.GetComponent<DynamicBone>();
  4574. if (component != null)
  4575. {
  4576. component.m_Damping = 0.6f;
  4577. component.m_Elasticity = 1f;
  4578. if (k == 5)
  4579. {
  4580. component.m_Elasticity = 0.05f;
  4581. }
  4582. component.m_Radius = 0.02f;
  4583. component.UpdateParameters();
  4584. }
  4585. }
  4586. }
  4587. }
  4588. }
  4589. }
  4590. }
  4591. if (!isKamiyure)
  4592. {
  4593. GUI.enabled = false;
  4594. }
  4595. GUI.Label(new Rect((float) this.GetPix(108), (float) this.GetPix(565), (float) this.GetPix(100), (float) this.GetPix(25)),
  4596. "当たり判定半径",
  4597. guistyle2);
  4598. float num4 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
  4599. (float) this.GetPix(579),
  4600. (float) this.GetPix(92),
  4601. (float) this.GetPix(20)),
  4602. kamiyure4,
  4603. 0f,
  4604. 0.04f);
  4605. if (kamiyure4 != num4)
  4606. {
  4607. kamiyure4 = num4;
  4608. base.Preferences["config"]["hair_radius"].Value = kamiyure4.ToString();
  4609. base.SaveConfig();
  4610. }
  4611. GUI.Label(new Rect((float) this.GetPix(108), (float) this.GetPix(590), (float) this.GetPix(100), (float) this.GetPix(25)),
  4612. "減衰率",
  4613. guistyle2);
  4614. float num5 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
  4615. (float) this.GetPix(604),
  4616. (float) this.GetPix(92),
  4617. (float) this.GetPix(20)),
  4618. kamiyure2,
  4619. 0.2f,
  4620. 1f);
  4621. if (kamiyure2 != num5)
  4622. {
  4623. kamiyure2 = num5;
  4624. base.Preferences["config"]["hair_damping"].Value = kamiyure2.ToString();
  4625. base.SaveConfig();
  4626. }
  4627. GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(590), (float) this.GetPix(100), (float) this.GetPix(25)),
  4628. "復元率",
  4629. guistyle2);
  4630. float num6 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4631. (float) this.GetPix(604),
  4632. (float) this.GetPix(92),
  4633. (float) this.GetPix(20)),
  4634. kamiyure3,
  4635. 0f,
  4636. 2f);
  4637. if (kamiyure3 != num6)
  4638. {
  4639. kamiyure3 = num6;
  4640. base.Preferences["config"]["hair_elasticity"].Value = kamiyure3.ToString();
  4641. base.SaveConfig();
  4642. }
  4643. GUI.enabled = true;
  4644. }
  4645. if (GUI.Toggle(new Rect((float) this.GetPix(105), (float) this.GetPix(545), (float) this.GetPix(100), (float) this.GetPix(20)),
  4646. isSkirtSetting,
  4647. "スカート設定",
  4648. guistyle6))
  4649. {
  4650. isHairSetting = false;
  4651. isSkirtSetting = true;
  4652. }
  4653. if (isSkirtSetting)
  4654. {
  4655. bool flag4 = GUI.Toggle(new Rect((float) this.GetPix(5),
  4656. (float) this.GetPix(566),
  4657. (float) this.GetPix(40),
  4658. (float) this.GetPix(20)),
  4659. isSkirtyure,
  4660. "有効",
  4661. guistyle6);
  4662. if (isSkirtyure != flag4)
  4663. {
  4664. isSkirtyure = flag4;
  4665. if (isSkirtyure)
  4666. {
  4667. base.Preferences["config"]["skirt_setting"].Value = "true";
  4668. base.Preferences["config"]["skirt_radius"].Value = skirtyure4.ToString();
  4669. base.Preferences["config"]["skirt_elasticity"].Value = skirtyure3.ToString();
  4670. base.Preferences["config"]["skirt_damping"].Value = skirtyure2.ToString();
  4671. base.SaveConfig();
  4672. }
  4673. else
  4674. {
  4675. base.Preferences["config"]["skirt_setting"].Value = "false";
  4676. base.SaveConfig();
  4677. for (int j = 0; j < maidCnt; j++)
  4678. {
  4679. for (int k = 0; k < maidArray[j].body0.goSlot.Count; k++)
  4680. {
  4681. if (maidArray[j].body0.goSlot[k].obj != null)
  4682. {
  4683. DynamicSkirtBone fieldValue =
  4684. GetFieldValue<BoneHair3, DynamicSkirtBone>(maidArray[j].body0.goSlot[k].bonehair3,
  4685. "m_SkirtBone");
  4686. if (fieldValue != null)
  4687. {
  4688. fieldValue.m_fPanierForce = 0.05f;
  4689. fieldValue.m_fPanierForceDistanceThreshold = 0.1f;
  4690. fieldValue.m_fRegDefaultRadius = 0.1f;
  4691. }
  4692. }
  4693. }
  4694. }
  4695. }
  4696. }
  4697. if (!isSkirtyure)
  4698. {
  4699. GUI.enabled = false;
  4700. }
  4701. GUI.Label(new Rect((float) this.GetPix(108), (float) this.GetPix(565), (float) this.GetPix(100), (float) this.GetPix(25)),
  4702. "足側カプセル半径",
  4703. guistyle2);
  4704. float num4 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
  4705. (float) this.GetPix(579),
  4706. (float) this.GetPix(92),
  4707. (float) this.GetPix(20)),
  4708. skirtyure4,
  4709. 0f,
  4710. 0.2f);
  4711. if (skirtyure4 != num4)
  4712. {
  4713. skirtyure4 = num4;
  4714. base.Preferences["config"]["skirt_radius"].Value = skirtyure4.ToString();
  4715. base.SaveConfig();
  4716. }
  4717. GUI.Label(new Rect((float) this.GetPix(108), (float) this.GetPix(590), (float) this.GetPix(100), (float) this.GetPix(25)),
  4718. "足との距離パニエ力",
  4719. guistyle2);
  4720. float num5 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
  4721. (float) this.GetPix(604),
  4722. (float) this.GetPix(92),
  4723. (float) this.GetPix(20)),
  4724. skirtyure2,
  4725. 0f,
  4726. 0.2f);
  4727. if (skirtyure2 != num5)
  4728. {
  4729. skirtyure2 = num5;
  4730. base.Preferences["config"]["skirt_damping"].Value = skirtyure2.ToString();
  4731. base.SaveConfig();
  4732. }
  4733. GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(590), (float) this.GetPix(100), (float) this.GetPix(25)),
  4734. "パニエ力",
  4735. guistyle2);
  4736. float num6 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4737. (float) this.GetPix(604),
  4738. (float) this.GetPix(92),
  4739. (float) this.GetPix(20)),
  4740. skirtyure3,
  4741. 0f,
  4742. 0.1f);
  4743. if (skirtyure3 != num6)
  4744. {
  4745. skirtyure3 = num6;
  4746. base.Preferences["config"]["skirt_elasticity"].Value = skirtyure3.ToString();
  4747. base.SaveConfig();
  4748. }
  4749. GUI.enabled = true;
  4750. }
  4751. GUI.enabled = true;
  4752. GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(389), (float) this.GetPix(195), 2f), line1);
  4753. GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(389), (float) this.GetPix(195), 1f), line2);
  4754. if (doguCombo.isClickedComboButton || parCombo.isClickedComboButton || bgCombo.isClickedComboButton
  4755. || bgmCombo.isClickedComboButton)
  4756. {
  4757. GUI.enabled = false;
  4758. }
  4759. GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(176), (float) this.GetPix(195), 2f), line1);
  4760. GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(176), (float) this.GetPix(195), 1f), line2);
  4761. GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(187), (float) this.GetPix(100), (float) this.GetPix(25)),
  4762. "照明",
  4763. guistyle2);
  4764. listStyle3.padding.top = this.GetPix(3);
  4765. listStyle3.padding.bottom = this.GetPix(2);
  4766. listStyle3.fontSize = this.GetPix(13);
  4767. int num7 = lightCombo.List(new Rect((float) this.GetPix(34),
  4768. (float) this.GetPix(185),
  4769. (float) this.GetPix(78),
  4770. (float) this.GetPix(23)),
  4771. lightComboList[selectLightIndex].text,
  4772. lightComboList,
  4773. guistyle4,
  4774. "box",
  4775. listStyle3);
  4776. if (num7 != selectLightIndex)
  4777. {
  4778. selectLightIndex = num7;
  4779. isIdx1 = false;
  4780. isIdx2 = false;
  4781. isIdx3 = false;
  4782. isIdx4 = false;
  4783. }
  4784. if (GUI.Button(new Rect((float) this.GetPix(115), (float) this.GetPix(185), (float) this.GetPix(35), (float) this.GetPix(23)),
  4785. "追加",
  4786. guistyle3))
  4787. {
  4788. GameObject gameObject = new GameObject("Light");
  4789. gameObject.AddComponent<Light>();
  4790. lightList.Add(gameObject);
  4791. lightColorR.Add(1f);
  4792. lightColorG.Add(1f);
  4793. lightColorB.Add(1f);
  4794. lightIndex.Add(0);
  4795. lightX.Add(40f);
  4796. lightY.Add(180f);
  4797. lightAkarusa.Add(0.95f);
  4798. lightKage.Add(0.098f);
  4799. lightRange.Add(50f);
  4800. gameObject.transform.position = GameMain.Instance.MainLight.transform.position;
  4801. selectLightIndex = lightList.Count - 1;
  4802. lightComboList = new GUIContent[lightList.Count];
  4803. for (int i = 0; i < lightList.Count; i++)
  4804. {
  4805. if (i == 0)
  4806. {
  4807. lightComboList[i] = new GUIContent("メイン");
  4808. }
  4809. else
  4810. {
  4811. lightComboList[i] = new GUIContent("追加" + i);
  4812. }
  4813. }
  4814. lightCombo.selectedItemIndex = selectLightIndex;
  4815. gameObject.GetComponent<Light>().intensity = 0.95f;
  4816. gameObject.GetComponent<Light>().spotAngle = 50f;
  4817. gameObject.GetComponent<Light>().range = 10f;
  4818. gameObject.GetComponent<Light>().type = LightType.Directional;
  4819. gameObject.GetComponent<Light>().color = new Color(0.5f, 1f, 0f);
  4820. if (gLight[selectLightIndex] == null)
  4821. {
  4822. gLight[selectLightIndex] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  4823. Material material = new Material(Shader.Find("Transparent/Diffuse"));
  4824. material.color = new Color(0.5f, 0.5f, 1f, 0.8f);
  4825. gLight[selectLightIndex].GetComponent<Renderer>().material = material;
  4826. gLight[selectLightIndex].layer = 8;
  4827. gLight[selectLightIndex].GetComponent<Renderer>().enabled = false;
  4828. gLight[selectLightIndex].SetActive(false);
  4829. gLight[selectLightIndex].transform.position = gameObject.transform.position;
  4830. mLight[selectLightIndex] = gLight[selectLightIndex].AddComponent<MouseDrag6>();
  4831. mLight[selectLightIndex].obj = gLight[selectLightIndex];
  4832. mLight[selectLightIndex].maid = gameObject.gameObject;
  4833. mLight[selectLightIndex].angles = gameObject.gameObject.transform.eulerAngles;
  4834. gLight[selectLightIndex].transform.localScale = new Vector3(0.12f, 0.12f, 0.12f);
  4835. mLight[selectLightIndex].ido = 1;
  4836. mLight[selectLightIndex].isScale = false;
  4837. }
  4838. }
  4839. if (GUI.Button(new Rect((float) this.GetPix(153), (float) this.GetPix(185), (float) this.GetPix(23), (float) this.GetPix(23)),
  4840. "R",
  4841. guistyle3))
  4842. {
  4843. for (int i = 1; i < lightList.Count; i++)
  4844. {
  4845. Destroy(lightList[i]);
  4846. }
  4847. lightIndex = new List<int>();
  4848. lightIndex.Add(0);
  4849. lightColorR = new List<float>();
  4850. lightColorR.Add(1f);
  4851. lightColorG = new List<float>();
  4852. lightColorG.Add(1f);
  4853. lightColorB = new List<float>();
  4854. lightColorB.Add(1f);
  4855. lightX = new List<float>();
  4856. lightX.Add(40f);
  4857. lightY = new List<float>();
  4858. lightY.Add(180f);
  4859. lightAkarusa = new List<float>();
  4860. lightAkarusa.Add(0.95f);
  4861. lightKage = new List<float>();
  4862. lightKage.Add(0.098f);
  4863. lightRange = new List<float>();
  4864. lightRange.Add(50f);
  4865. lightCombo.selectedItemIndex = 0;
  4866. lightList = new List<GameObject>();
  4867. lightList.Add(GameMain.Instance.MainLight.gameObject);
  4868. lightComboList = new GUIContent[lightList.Count];
  4869. for (int i = 0; i < lightList.Count; i++)
  4870. {
  4871. if (i == 0)
  4872. {
  4873. lightComboList[i] = new GUIContent("メイン");
  4874. }
  4875. else
  4876. {
  4877. lightComboList[i] = new GUIContent("追加" + i);
  4878. }
  4879. }
  4880. selectLightIndex = 0;
  4881. GameMain.Instance.MainLight.Reset();
  4882. GameMain.Instance.MainLight.SetIntensity(0.95f);
  4883. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle = 50f;
  4884. GameMain.Instance.MainLight.GetComponent<Light>().range = 10f;
  4885. GameMain.Instance.MainLight.gameObject.transform.position = new Vector3(0f, 2f, 0f);
  4886. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  4887. bgObject.SetActive(true);
  4888. mainCamera.GetComponent<Camera>().backgroundColor = new Color(0f, 0f, 0f);
  4889. isIdx1 = false;
  4890. isIdx2 = false;
  4891. isIdx3 = false;
  4892. isIdx4 = false;
  4893. }
  4894. GUI.enabled = true;
  4895. if (doguCombo.isClickedComboButton || bgCombo.isClickedComboButton || bgmCombo.isClickedComboButton)
  4896. {
  4897. GUI.enabled = false;
  4898. }
  4899. listStyle3.padding.top = this.GetPix(0);
  4900. listStyle3.padding.bottom = this.GetPix(0);
  4901. listStyle3.fontSize = this.GetPix(12);
  4902. GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(116), (float) this.GetPix(150), (float) this.GetPix(25)),
  4903. "大道具2",
  4904. guistyle2);
  4905. parIndex = parCombo.List(new Rect((float) this.GetPix(51),
  4906. (float) this.GetPix(113),
  4907. (float) this.GetPix(100),
  4908. (float) this.GetPix(23)),
  4909. parComboList[parIndex].text,
  4910. parComboList,
  4911. guistyle4,
  4912. "box",
  4913. listStyle3);
  4914. if (GUI.Button(new Rect((float) this.GetPix(156), (float) this.GetPix(113), (float) this.GetPix(38), (float) this.GetPix(23)),
  4915. "追加",
  4916. guistyle3))
  4917. {
  4918. GameObject gameObject2 = null;
  4919. bool flag5 = false;
  4920. bool flag6 = false;
  4921. if (parArray[parIndex].Contains("#"))
  4922. {
  4923. string[] array3 = parArray[parIndex].Split(new char[] {'#'});
  4924. gameObject2 = GameMain.Instance.BgMgr.CreateAssetBundle(array3[1]);
  4925. if (gameObject2 != null)
  4926. {
  4927. gameObject2 = Instantiate<GameObject>(gameObject2);
  4928. MeshRenderer[] componentsInChildren = gameObject2.GetComponentsInChildren<MeshRenderer>();
  4929. for (int k = 0; k < componentsInChildren.Length; k++)
  4930. {
  4931. if (componentsInChildren[k] != null)
  4932. {
  4933. componentsInChildren[k].shadowCastingMode = ShadowCastingMode.Off;
  4934. }
  4935. }
  4936. }
  4937. flag5 = true;
  4938. if (!parArray[parIndex].Contains("Odogu_"))
  4939. {
  4940. flag6 = true;
  4941. }
  4942. doguBObject.Add(gameObject2);
  4943. }
  4944. else if (!parArray[parIndex].StartsWith("mirror") && parArray[parIndex].IndexOf(":") < 0)
  4945. {
  4946. Object @object = Resources.Load("Prefab/" + parArray[parIndex]);
  4947. gameObject2 = (Instantiate(@object) as GameObject);
  4948. doguBObject.Add(gameObject2);
  4949. }
  4950. else if (parArray[parIndex].StartsWith("mirror"))
  4951. {
  4952. Material material2 = new Material(Shader.Find("Mirror"));
  4953. GameObject gameObject3 = GameObject.CreatePrimitive(PrimitiveType.Plane);
  4954. gameObject3.GetComponent<Renderer>().material = material2;
  4955. gameObject3.AddComponent<MirrorReflection2>();
  4956. MirrorReflection2 component2 = gameObject3.GetComponent<MirrorReflection2>();
  4957. component2.m_TextureSize = 2048;
  4958. component2.m_ClipPlaneOffset = 0.07f;
  4959. gameObject3.GetComponent<Renderer>().enabled = true;
  4960. gameObject2 = gameObject3;
  4961. doguBObject.Add(gameObject2);
  4962. }
  4963. else
  4964. {
  4965. string[] array3 = parArray[parIndex].Split(new char[] {':'});
  4966. Object @object = GameMain.Instance.BgMgr.CreateAssetBundle(array3[0]);
  4967. if (@object == null)
  4968. {
  4969. @object = Resources.Load("BG/" + array3[0]);
  4970. }
  4971. GameObject gameObject4 = Instantiate(@object) as GameObject;
  4972. int num8 = 0;
  4973. int num9 = 0;
  4974. int.TryParse(array3[1], out num9);
  4975. foreach (object obj in gameObject4.transform)
  4976. {
  4977. Transform transform = (Transform) obj;
  4978. if (num9 == num8)
  4979. {
  4980. gameObject2 = transform.gameObject;
  4981. break;
  4982. }
  4983. num8++;
  4984. }
  4985. doguBObject.Add(gameObject2);
  4986. gameObject2.transform.parent = null;
  4987. Destroy(gameObject4);
  4988. gameObject4.SetActive(false);
  4989. }
  4990. gameObject2.name = parArray[parIndex];
  4991. Vector3 zero = Vector3.zero;
  4992. Vector3 zero2 = Vector3.zero;
  4993. switch (parIndex)
  4994. {
  4995. case 0:
  4996. zero.z = -0.6f;
  4997. zero.y = 0.96f;
  4998. zero2.z = 180f;
  4999. zero2.x = -90f;
  5000. gameObject2.transform.localScale = new Vector3(0.2f, 0.4f, 0.2f);
  5001. break;
  5002. case 1:
  5003. zero.z = -0.6f;
  5004. zero.y = 0.96f;
  5005. zero2.z = 180f;
  5006. zero2.x = -90f;
  5007. gameObject2.transform.localScale = new Vector3(0.1f, 0.4f, 0.2f);
  5008. break;
  5009. case 2:
  5010. zero.z = -0.6f;
  5011. zero.y = 0.85f;
  5012. zero2.z = 180f;
  5013. zero2.x = -90f;
  5014. gameObject2.transform.localScale = new Vector3(0.03f, 0.18f, 0.124f);
  5015. break;
  5016. case 3:
  5017. case 4:
  5018. case 5:
  5019. case 6:
  5020. case 7:
  5021. case 8:
  5022. case 9:
  5023. case 10:
  5024. case 11:
  5025. case 12:
  5026. case 13:
  5027. case 14:
  5028. case 15:
  5029. case 16:
  5030. case 17:
  5031. zero.z = 0.5f;
  5032. zero2.x = -90f;
  5033. break;
  5034. }
  5035. if (flag5)
  5036. {
  5037. zero.z = 0.4f;
  5038. if (flag6)
  5039. {
  5040. zero2.x = -90f;
  5041. }
  5042. }
  5043. if (gameObject2.name == "Salon_Entrance:3" || gameObject2.name == "Salon_Entrance:4"
  5044. || gameObject2.name == "Salon_Entrance:1"
  5045. || gameObject2.name == "Salon_Entrance:2"
  5046. || gameObject2.name == "Salon_Entrance:0" || gameObject2.name == "Shitsumu:23"
  5047. || gameObject2.name == "Shitsumu_Night:23")
  5048. {
  5049. zero.z = 0.5f;
  5050. zero2.x = -90f;
  5051. }
  5052. if (gameObject2.name == "Pool:26")
  5053. {
  5054. zero.z = 0.5f;
  5055. zero2.x = -90f;
  5056. zero2.z = 90f;
  5057. zero.y = 0.15f;
  5058. }
  5059. if (gameObject2.name == "Particle/pstarY_act2")
  5060. {
  5061. zero2.y = 90f;
  5062. }
  5063. gameObject2.transform.localPosition = zero;
  5064. gameObject2.transform.localRotation = Quaternion.Euler(zero2);
  5065. doguCnt = doguBObject.Count - 1;
  5066. gDogu[doguCnt] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  5067. gDogu[doguCnt].GetComponent<Renderer>().material = m_material;
  5068. gDogu[doguCnt].layer = 8;
  5069. gDogu[doguCnt].GetComponent<Renderer>().enabled = false;
  5070. gDogu[doguCnt].SetActive(false);
  5071. gDogu[doguCnt].transform.position = gameObject2.transform.position;
  5072. mDogu[doguCnt] = gDogu[doguCnt].AddComponent<MouseDrag6>();
  5073. mDogu[doguCnt].obj = gDogu[doguCnt];
  5074. mDogu[doguCnt].maid = gameObject2;
  5075. mDogu[doguCnt].angles = gameObject2.transform.eulerAngles;
  5076. gDogu[doguCnt].transform.localScale = new Vector3(cubeSize, cubeSize, cubeSize);
  5077. mDogu[doguCnt].ido = 1;
  5078. mDogu[doguCnt].isScale = false;
  5079. if (gameObject2.name == "Particle/pLineY")
  5080. {
  5081. mDogu[doguCnt].count = 180;
  5082. gameObject2.transform.localScale = new Vector3(3f, 3f, 3f);
  5083. }
  5084. if (gameObject2.name == "Particle/pLineP02")
  5085. {
  5086. mDogu[doguCnt].count = 115;
  5087. gameObject2.transform.localScale = new Vector3(3f, 3f, 3f);
  5088. }
  5089. if (gameObject2.name == "Particle/pLine_act2")
  5090. {
  5091. mDogu[doguCnt].count = 90;
  5092. gameObject2.transform.localScale = new Vector3(3f, 3f, 3f);
  5093. }
  5094. if (gameObject2.name == "Particle/pHeart01")
  5095. {
  5096. mDogu[doguCnt].count = 77;
  5097. }
  5098. if (parIndex < 3)
  5099. {
  5100. mDogu[doguCnt].isScale = true;
  5101. mDogu[doguCnt].isScale2 = true;
  5102. mDogu[doguCnt].scale2 = gameObject2.transform.localScale;
  5103. if (parIndex == 0)
  5104. {
  5105. mDogu[doguCnt].scale = new Vector3(gameObject2.transform.localScale.x * 5f,
  5106. gameObject2.transform.localScale.y * 5f,
  5107. gameObject2.transform.localScale.z * 5f);
  5108. }
  5109. if (parIndex == 1)
  5110. {
  5111. mDogu[doguCnt].scale = new Vector3(gameObject2.transform.localScale.x * 10f,
  5112. gameObject2.transform.localScale.y * 10f,
  5113. gameObject2.transform.localScale.z * 10f);
  5114. }
  5115. if (parIndex == 2)
  5116. {
  5117. mDogu[doguCnt].scale = new Vector3(gameObject2.transform.localScale.x * 33f,
  5118. gameObject2.transform.localScale.y * 33f,
  5119. gameObject2.transform.localScale.z * 33f);
  5120. }
  5121. }
  5122. if (gameObject2.GetComponent<Collider>() != null)
  5123. {
  5124. gameObject2.GetComponent<Collider>().enabled = false;
  5125. }
  5126. }
  5127. GUI.enabled = true;
  5128. if (bgCombo.isClickedComboButton || bgmCombo.isClickedComboButton)
  5129. {
  5130. GUI.enabled = false;
  5131. }
  5132. GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(88), (float) this.GetPix(100), (float) this.GetPix(25)),
  5133. "大道具1",
  5134. guistyle2);
  5135. doguBIndex =
  5136. doguCombo.List(new Rect((float) this.GetPix(51),
  5137. (float) this.GetPix(85),
  5138. (float) this.GetPix(100),
  5139. (float) this.GetPix(23)),
  5140. doguComboList[doguBIndex].text,
  5141. doguComboList,
  5142. guistyle4,
  5143. "box",
  5144. listStyle3);
  5145. if (GUI.Button(new Rect((float) this.GetPix(156), (float) this.GetPix(85), (float) this.GetPix(38), (float) this.GetPix(23)),
  5146. "追加",
  5147. guistyle3))
  5148. {
  5149. GameObject gameObject2 = null;
  5150. if (!doguBArray[doguBIndex].StartsWith("mirror"))
  5151. {
  5152. Object @object;
  5153. if (doguBArray[doguBIndex].StartsWith("BG"))
  5154. {
  5155. string text2 = doguBArray[doguBIndex].Replace("BG", "");
  5156. @object = GameMain.Instance.BgMgr.CreateAssetBundle(text2);
  5157. if (@object == null)
  5158. {
  5159. @object = Resources.Load("BG/" + text2);
  5160. }
  5161. }
  5162. else
  5163. {
  5164. @object = Resources.Load("Prefab/" + doguBArray[doguBIndex]);
  5165. }
  5166. gameObject2 = (Instantiate(@object) as GameObject);
  5167. doguBObject.Add(gameObject2);
  5168. }
  5169. else
  5170. {
  5171. Material material2 = new Material(Shader.Find("Mirror"));
  5172. GameObject gameObject3 = GameObject.CreatePrimitive(PrimitiveType.Plane);
  5173. gameObject3.transform.localScale = new Vector3(0.3f, 1f, 0.3f);
  5174. gameObject3.GetComponent<Renderer>().material = material2;
  5175. gameObject3.AddComponent<MirrorReflection2>();
  5176. MirrorReflection2 component2 = gameObject3.GetComponent<MirrorReflection2>();
  5177. component2.m_TextureSize = 2048;
  5178. component2.m_ClipPlaneOffset = 0f;
  5179. gameObject3.GetComponent<Renderer>().enabled = true;
  5180. gameObject2 = gameObject3;
  5181. doguBObject.Add(gameObject2);
  5182. }
  5183. gameObject2.name = doguBArray[doguBIndex];
  5184. Vector3 zero = Vector3.zero;
  5185. Vector3 zero2 = Vector3.zero;
  5186. string text = gameObject2.name;
  5187. switch (text)
  5188. {
  5189. case "Odogu_XmasTreeMini_photo_ver":
  5190. zero.z = 0.6f;
  5191. gameObject2.transform.localScale = new Vector3(4.5f, 4.5f, 4.5f);
  5192. foreach (object obj2 in gameObject2.transform)
  5193. {
  5194. Transform transform2 = (Transform) obj2;
  5195. if (transform2.GetComponent<Collider>() != null)
  5196. {
  5197. transform2.GetComponent<Collider>().enabled = false;
  5198. }
  5199. }
  5200. goto IL_A0BF;
  5201. case "Odogu_KadomatsuMini_photo_ver":
  5202. zero.z = 0.6f;
  5203. gameObject2.transform.localScale = new Vector3(3.5f, 3.5f, 3.5f);
  5204. foreach (object obj3 in gameObject2.transform)
  5205. {
  5206. Transform transform2 = (Transform) obj3;
  5207. if (transform2.GetComponent<Collider>() != null)
  5208. {
  5209. transform2.GetComponent<Collider>().enabled = false;
  5210. }
  5211. }
  5212. goto IL_A0BF;
  5213. case "Odogu_ClassRoomDesk":
  5214. zero.z = 0.5f;
  5215. zero2.x = -90f;
  5216. goto IL_A0BF;
  5217. case "Odogu_SimpleTable":
  5218. zero.z = 0.5f;
  5219. zero2.x = -90f;
  5220. goto IL_A0BF;
  5221. case "Odogu_DildoBox":
  5222. zero.z = 0.5f;
  5223. zero2.x = -90f;
  5224. goto IL_A0BF;
  5225. case "PlayAreaOut":
  5226. zero.z = 0.5f;
  5227. zero.y = 0.2f;
  5228. goto IL_A0BF;
  5229. case "Odogu_Dresser_photo_ver":
  5230. GameObject.Find("Prim.00000000").GetComponent<Collider>().enabled = false;
  5231. GameObject.Find("Prim.00000001").GetComponent<Collider>().enabled = false;
  5232. GameObject.Find("Prim.00000002").GetComponent<Collider>().enabled = false;
  5233. GameObject.Find("Prim.00000004").GetComponent<Collider>().enabled = false;
  5234. goto IL_A0BF;
  5235. case "BGodogu_bbqgrill":
  5236. case "BGodogu_bucket":
  5237. case "BGodogu_coolerbox":
  5238. case "BGodogu_game_darts":
  5239. case "BGodogu_game_dartsboard":
  5240. case "BGodogu_nabe_huta":
  5241. case "BGodogu_nabe_water":
  5242. case "BGodogu_natumikan":
  5243. case "BGodogu_rb_chair":
  5244. case "BGodogu_rb_duck":
  5245. case "BGodogu_rb_obon":
  5246. case "BGodogu_rb_tokkuri":
  5247. case "BGodogu_saracorn":
  5248. case "BGodogu_saraimo":
  5249. case "BGodogu_saratomato":
  5250. case "BGodogu_sunanoshiro":
  5251. case "BGodogu_sunanoyama":
  5252. case "BGodogu_tsutsuhanabi":
  5253. case "BGodogu_ukiwa":
  5254. case "BGodogu_vf_crops_corn":
  5255. case "BGodogu_vf_crops_gekkabijin":
  5256. case "BGodogu_vf_crops_gekkabijinflower":
  5257. case "BGodogu_vf_crops_himawari":
  5258. case "BGodogu_vf_crops_natsumikan":
  5259. case "BGodogu_vf_crops_suika":
  5260. case "BGodogu_vf_crops_zakuro":
  5261. case "BGodogu_villa_table":
  5262. case "BGodogu_villa_tvrimocon":
  5263. case "BGodogu_villabr_sideboard":
  5264. case "BGOdogu_Game_Nei_USB":
  5265. case "BGOdogu_Game_Wanage":
  5266. case "BGOdogu_Game_Wa":
  5267. case "BGodogu_pafe":
  5268. case "BGodogu_furaidopoteto":
  5269. case "BGodogu_karaoketable":
  5270. case "BGodogu_omuriceh":
  5271. case "BGodogu_omuricekao1":
  5272. case "BGodogu_omuricekao2":
  5273. case "BGodogu_omuriceoppai":
  5274. case "BGodogu_kakigori":
  5275. case "BGodogu_pretzel_sara":
  5276. case "BGodogu_karaoke_box":
  5277. case "Odogu_StandMike":
  5278. case "Odogu_StandMikeBase":
  5279. case "Odogu_HeroineChair_muku":
  5280. case "Odogu_HeroineChair_mazime":
  5281. case "Odogu_HeroineChair_rindere":
  5282. case "Odogu_HeroineChair_tsumdere":
  5283. case "Odogu_HeroineChair_cooldere":
  5284. case "Odogu_HeroineChair_junshin":
  5285. case "Odogu_TabletPC":
  5286. case "Odogu_Styluspen_black":
  5287. case "Odogu_Styluspen_white":
  5288. case "Odogu_Styluspen_red":
  5289. case "Odogu_Styluspen_blue":
  5290. case "Odogu_Styluspen_yellow":
  5291. case "Odogu_Styluspen_green":
  5292. case "Odogu_Omurice1":
  5293. case "Odogu_Omurice3":
  5294. case "Odogu_OmuriceH":
  5295. case "Odogu_OmuriceKao1":
  5296. case "Odogu_OmuriceKao2":
  5297. case "Odogu_OmuriceOppai":
  5298. case "Odogu_AcquaPazza":
  5299. case "Odogu_Sandwich":
  5300. case "Odogu_vichyssoise":
  5301. case "Odogu_BirthdayCake":
  5302. case "Odogu_Shortcake":
  5303. case "Odogu_MontBlanc":
  5304. case "Odogu_Pafe":
  5305. case "Odogu_Smoothie_Red":
  5306. case "Odogu_Smoothie_Green":
  5307. case "Odogu_Cocktail_Red":
  5308. case "Odogu_Cocktail_Blue":
  5309. case "Odogu_Cocktail_Yellow":
  5310. case "Odogu_Coffiecup":
  5311. case "Odogu_WineBottle(cap_off)":
  5312. case "Odogu_WineBottle(cap_on)":
  5313. case "Odogu_Jyouro":
  5314. case "Odogu_Planter_Red":
  5315. case "Odogu_Planter_Lightblue":
  5316. case "Odogu_MariGold":
  5317. case "Odogu_CasinoChip_10":
  5318. case "Odogu_CasinoChip_100":
  5319. case "Odogu_CasinoChip_1000":
  5320. case "Odogu_CardShooter":
  5321. case "Odogu_CardsDeck":
  5322. case "Odogu_Card_s1":
  5323. case "Odogu_Card_s2":
  5324. case "Odogu_Card_s3":
  5325. case "Odogu_Card_s4":
  5326. case "Odogu_Card_s5":
  5327. case "Odogu_Card_s6":
  5328. case "Odogu_Card_s7":
  5329. case "Odogu_Card_s8":
  5330. case "Odogu_Card_s9":
  5331. case "Odogu_Card_s10":
  5332. case "Odogu_Card_s11":
  5333. case "Odogu_Card_s12":
  5334. case "Odogu_Card_s13":
  5335. case "Odogu_Card_h1":
  5336. case "Odogu_Card_h2":
  5337. case "Odogu_Card_h3":
  5338. case "Odogu_Card_h4":
  5339. case "Odogu_Card_h5":
  5340. case "Odogu_Card_h6":
  5341. case "Odogu_Card_h7":
  5342. case "Odogu_Card_h8":
  5343. case "Odogu_Card_h9":
  5344. case "Odogu_Card_h10":
  5345. case "Odogu_Card_h11":
  5346. case "Odogu_Card_h12":
  5347. case "Odogu_Card_h13":
  5348. case "Odogu_Card_d1":
  5349. case "Odogu_Card_d2":
  5350. case "Odogu_Card_d3":
  5351. case "Odogu_Card_d4":
  5352. case "Odogu_Card_d5":
  5353. case "Odogu_Card_d6":
  5354. case "Odogu_Card_d7":
  5355. case "Odogu_Card_d8":
  5356. case "Odogu_Card_d9":
  5357. case "Odogu_Card_d10":
  5358. case "Odogu_Card_d11":
  5359. case "Odogu_Card_d12":
  5360. case "Odogu_Card_d13":
  5361. case "Odogu_Card_c1":
  5362. case "Odogu_Card_c2":
  5363. case "Odogu_Card_c3":
  5364. case "Odogu_Card_c4":
  5365. case "Odogu_Card_c5":
  5366. case "Odogu_Card_c6":
  5367. case "Odogu_Card_c7":
  5368. case "Odogu_Card_c8":
  5369. case "Odogu_Card_c9":
  5370. case "Odogu_Card_c10":
  5371. case "Odogu_Card_c11":
  5372. case "Odogu_Card_c12":
  5373. case "Odogu_Card_c13":
  5374. case "Odogu_Card_joker":
  5375. zero.z = 0.5f;
  5376. zero2.x = -90f;
  5377. goto IL_A0BF;
  5378. }
  5379. zero.z = 0.5f;
  5380. if (gameObject2.name.StartsWith("Odogu_"))
  5381. {
  5382. foreach (object obj4 in gameObject2.transform)
  5383. {
  5384. Transform transform2 = (Transform) obj4;
  5385. if (transform2.GetComponent<Collider>() != null)
  5386. {
  5387. transform2.GetComponent<Collider>().enabled = false;
  5388. }
  5389. }
  5390. }
  5391. else if (gameObject2.GetComponent<Collider>() != null)
  5392. {
  5393. gameObject2.GetComponent<Collider>().enabled = false;
  5394. }
  5395. IL_A0BF:
  5396. gameObject2.transform.localPosition = zero;
  5397. gameObject2.transform.localRotation = Quaternion.Euler(zero2);
  5398. doguCnt = doguBObject.Count - 1;
  5399. gDogu[doguCnt] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  5400. gDogu[doguCnt].GetComponent<Renderer>().material = m_material;
  5401. gDogu[doguCnt].layer = 8;
  5402. gDogu[doguCnt].GetComponent<Renderer>().enabled = false;
  5403. gDogu[doguCnt].SetActive(false);
  5404. gDogu[doguCnt].transform.position = gameObject2.transform.position;
  5405. mDogu[doguCnt] = gDogu[doguCnt].AddComponent<MouseDrag6>();
  5406. mDogu[doguCnt].isScale = false;
  5407. mDogu[doguCnt].obj = gDogu[doguCnt];
  5408. mDogu[doguCnt].maid = gameObject2;
  5409. mDogu[doguCnt].angles = gameObject2.transform.eulerAngles;
  5410. gDogu[doguCnt].transform.localScale = new Vector3(cubeSize, cubeSize, cubeSize);
  5411. mDogu[doguCnt].ido = 1;
  5412. if (doguBIndex == 6 || doguBIndex == 7)
  5413. {
  5414. mDogu[doguCnt].isScale2 = true;
  5415. mDogu[doguCnt].scale2 = gameObject2.transform.localScale;
  5416. }
  5417. }
  5418. GUI.enabled = true;
  5419. if (bgmCombo.isClickedComboButton)
  5420. {
  5421. GUI.enabled = false;
  5422. }
  5423. listStyle3.padding.top = this.GetPix(1);
  5424. listStyle3.padding.bottom = this.GetPix(0);
  5425. listStyle3.fontSize = this.GetPix(12);
  5426. int num10 = bgCombo.List(new Rect((float) this.GetPix(31),
  5427. (float) this.GetPix(53),
  5428. (float) this.GetPix(95),
  5429. (float) this.GetPix(23)),
  5430. bgComboList[bgIndex].text,
  5431. bgComboList,
  5432. guistyle4,
  5433. "box",
  5434. listStyle3);
  5435. if (GUI.Button(new Rect((float) this.GetPix(5), (float) this.GetPix(53), (float) this.GetPix(23), (float) this.GetPix(23)),
  5436. "<",
  5437. guistyle3))
  5438. {
  5439. num10--;
  5440. if (num10 <= -1)
  5441. {
  5442. num10 = bgArray.Length - 1;
  5443. }
  5444. }
  5445. if (GUI.Button(new Rect((float) this.GetPix(129), (float) this.GetPix(53), (float) this.GetPix(23), (float) this.GetPix(23)),
  5446. ">",
  5447. guistyle3))
  5448. {
  5449. num10++;
  5450. if (num10 == bgArray.Length)
  5451. {
  5452. num10 = 0;
  5453. }
  5454. }
  5455. if (bgIndex != num10)
  5456. {
  5457. bgIndex = num10;
  5458. bg.localScale = new Vector3(1f, 1f, 1f);
  5459. if (bgArray[bgIndex].Length == 36)
  5460. {
  5461. GameMain.Instance.BgMgr.ChangeBgMyRoom(bgArray[bgIndex]);
  5462. }
  5463. else
  5464. {
  5465. GameMain.Instance.BgMgr.ChangeBg(bgArray[bgIndex]);
  5466. }
  5467. bgCombo.selectedItemIndex = bgIndex;
  5468. if (bgArray[bgIndex] == "karaokeroom")
  5469. {
  5470. bg.transform.position = bgObject.transform.position;
  5471. Vector3 zero = Vector3.zero;
  5472. Vector3 zero2 = Vector3.zero;
  5473. zero2.y = 90f;
  5474. zero.z = 4f;
  5475. zero.x = 1f;
  5476. bg.transform.localPosition = zero;
  5477. bg.transform.localRotation = Quaternion.Euler(zero2);
  5478. }
  5479. }
  5480. GUI.enabled = true;
  5481. int num11 = bgmCombo.List(new Rect((float) this.GetPix(31),
  5482. (float) this.GetPix(25),
  5483. (float) this.GetPix(95),
  5484. (float) this.GetPix(23)),
  5485. bgmComboList[bgmIndex].text,
  5486. bgmComboList,
  5487. guistyle4,
  5488. "box",
  5489. listStyle3);
  5490. if (GUI.Button(new Rect((float) this.GetPix(5), (float) this.GetPix(25), (float) this.GetPix(23), (float) this.GetPix(23)),
  5491. "<",
  5492. guistyle3))
  5493. {
  5494. num11--;
  5495. if (num11 <= -1)
  5496. {
  5497. num11 = bgmArray.Length - 1;
  5498. }
  5499. }
  5500. if (GUI.Button(new Rect((float) this.GetPix(129), (float) this.GetPix(25), (float) this.GetPix(23), (float) this.GetPix(23)),
  5501. ">",
  5502. guistyle3))
  5503. {
  5504. num11++;
  5505. if (num11 == bgmArray.Length)
  5506. {
  5507. num11 = 0;
  5508. }
  5509. }
  5510. if (bgmIndex != num11)
  5511. {
  5512. bgmIndex = num11;
  5513. GameMain.Instance.SoundMgr.PlayBGM(bgmArray[bgmIndex] + ".ogg", 0f, true);
  5514. bgmCombo.selectedItemIndex = bgmIndex;
  5515. }
  5516. if (bgmCombo.isClickedComboButton)
  5517. {
  5518. GUI.enabled = false;
  5519. }
  5520. }
  5521. private void GuiFunc4(int winID)
  5522. {
  5523. GUIStyle style1 = (GUIStyle) "label";
  5524. style1.fontSize = this.GetPix(12);
  5525. style1.alignment = TextAnchor.UpperLeft;
  5526. GUIStyle style2 = (GUIStyle) "label";
  5527. style2.fontSize = this.GetPix(11);
  5528. style2.alignment = TextAnchor.UpperLeft;
  5529. GUIStyle style3 = (GUIStyle) "button";
  5530. style3.fontSize = this.GetPix(20);
  5531. GUIStyle buttonStyle1 = (GUIStyle) "button";
  5532. buttonStyle1.fontSize = this.GetPix(14);
  5533. buttonStyle1.alignment = TextAnchor.MiddleLeft;
  5534. GUIStyle buttonStyle2 = (GUIStyle) "button";
  5535. buttonStyle2.fontSize = this.GetPix(12);
  5536. buttonStyle2.alignment = TextAnchor.MiddleLeft;
  5537. GUIStyle style4 = new GUIStyle((GUIStyle) "toggle");
  5538. style4.fontSize = this.GetPix(13);
  5539. CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
  5540. Maid maid = maidArray[selectMaidIndex];
  5541. if (!poseInitFlg)
  5542. {
  5543. listStyle2.normal.textColor = Color.white;
  5544. listStyle2.normal.background = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.5f));
  5545. listStyle2.onHover.background = listStyle2.hover.background = new Texture2D(2, 2);
  5546. listStyle2.padding.left = listStyle2.padding.right = listStyle2.padding.top = listStyle2.padding.bottom = this.GetPix(0);
  5547. listStyle2.fontSize = this.GetPix(12);
  5548. listStyle3.normal.textColor = Color.white;
  5549. listStyle3.normal.background = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.5f));
  5550. listStyle3.onHover.background = listStyle3.hover.background = new Texture2D(2, 2);
  5551. listStyle3.padding.left = listStyle3.padding.right = listStyle3.padding.top = this.GetPix(1);
  5552. listStyle3.padding.bottom = this.GetPix(0);
  5553. listStyle3.fontSize = this.GetPix(12);
  5554. listStyle4.normal.textColor = Color.white;
  5555. listStyle4.normal.background = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.5f));
  5556. listStyle4.onHover.background = listStyle4.hover.background = new Texture2D(2, 2);
  5557. listStyle4.padding.left = listStyle4.padding.right = listStyle4.padding.top = 3;
  5558. listStyle4.padding.bottom = 3;
  5559. listStyle4.fontSize = this.GetPix(13);
  5560. poseCombo.selectedItemIndex = 0;
  5561. int group = (int) groupList[0];
  5562. poseComboList = new GUIContent[group];
  5563. for (int index = 0; index < group; ++index)
  5564. poseComboList[index] = new GUIContent((index + 1).ToString() + ":" + poseArray[index]);
  5565. poseGroupCombo.selectedItemIndex = 0;
  5566. poseGroupComboList = new GUIContent[poseGroupArray.Length + 1];
  5567. poseGroupComboList[0] = new GUIContent("1:通常");
  5568. for (int index = 0; index < poseGroupArray.Length; ++index)
  5569. {
  5570. if (poseGroupArray[index] == "maid_dressroom01")
  5571. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":立ち");
  5572. if (poseGroupArray[index] == "tennis_kamae_f")
  5573. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":中腰");
  5574. if (poseGroupArray[index] == "senakanagasi_f")
  5575. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":膝をつく");
  5576. if (poseGroupArray[index] == "work_hansei")
  5577. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":座り");
  5578. if (poseGroupArray[index] == "inu_taiki_f")
  5579. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":四つん這い");
  5580. if (poseGroupArray[index] == "syagami_pose_f")
  5581. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":床座り");
  5582. if (poseGroupArray[index] == "densyasuwari_taiki_f")
  5583. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":椅子座り");
  5584. if (poseGroupArray[index] == "work_kaiwa")
  5585. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":ソファー座り");
  5586. if (poseGroupArray[index] == "dance_cm3d2_001_f1,14.14")
  5587. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":ドキドキ☆Fallin' Love");
  5588. if (poseGroupArray[index] == "dance_cm3d_001_f1,39.25")
  5589. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":entrance to you");
  5590. if (poseGroupArray[index] == "dance_cm3d_002_end_f1,50.71")
  5591. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":scarlet leap");
  5592. if (poseGroupArray[index] == "dance_cm3d2_002_smt_f,7.76,")
  5593. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":stellar my tears");
  5594. if (poseGroupArray[index] == "dance_cm3d_003_sp2_f1,90.15")
  5595. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":rhythmix to you");
  5596. if (poseGroupArray[index] == "dance_cm3d2_003_hs_f1,0.01,")
  5597. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":happy!happy!スキャンダル!!");
  5598. if (poseGroupArray[index] == "dance_cm3d_004_kano_f1,124.93")
  5599. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":Can Know Two Close");
  5600. if (poseGroupArray[index] == "dance_cm3d2_004_sse_f1,0.01")
  5601. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":sweet sweet everyday");
  5602. if (poseGroupArray[index] == "turusi_sex_in_taiki_f")
  5603. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":拘束");
  5604. if (poseGroupArray[index] == "rosyutu_pose01_f")
  5605. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":エロ");
  5606. if (poseGroupArray[index] == "rosyutu_aruki_f_once_,1.37")
  5607. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":歩き");
  5608. if (poseGroupArray[index] == "stand_desk1")
  5609. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":その他");
  5610. if (poseGroupArray[index] == poseArray5[0])
  5611. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":ダンスMC");
  5612. if (poseGroupArray[index] == poseArray6[0])
  5613. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":ダンス");
  5614. if (existPose && strS != "")
  5615. {
  5616. if (index == poseGroupArray.Length - 4)
  5617. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":通常2");
  5618. if (index == poseGroupArray.Length - 3)
  5619. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":エロ2");
  5620. if (index == poseGroupArray.Length - 2)
  5621. poseGroupComboList[index + 1] = new GUIContent("98:撮影モード");
  5622. if (index == poseGroupArray.Length - 1)
  5623. poseGroupComboList[index + 1] = new GUIContent("99:登録ポーズ");
  5624. }
  5625. else if (existPose && strS == "")
  5626. {
  5627. if (index == poseGroupArray.Length - 3)
  5628. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":通常2");
  5629. if (index == poseGroupArray.Length - 2)
  5630. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":エロ2");
  5631. if (index == poseGroupArray.Length - 1)
  5632. poseGroupComboList[index + 1] = new GUIContent("99:登録ポーズ");
  5633. }
  5634. else if (!existPose && strS != "")
  5635. {
  5636. if (index == poseGroupArray.Length - 3)
  5637. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":通常2");
  5638. if (index == poseGroupArray.Length - 2)
  5639. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":エロ2");
  5640. if (index == poseGroupArray.Length - 1)
  5641. poseGroupComboList[index + 1] = new GUIContent("98:撮影モード");
  5642. }
  5643. else
  5644. {
  5645. if (index == poseGroupArray.Length - 2)
  5646. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":通常2");
  5647. if (index == poseGroupArray.Length - 1)
  5648. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":エロ2");
  5649. }
  5650. }
  5651. poseInitFlg = true;
  5652. itemCombo.selectedItemIndex = 0;
  5653. int length = itemArray.Length;
  5654. itemComboList = new GUIContent[length - 1];
  5655. for (int index = 0; index < length; ++index)
  5656. {
  5657. if (index == 0)
  5658. {
  5659. itemComboList[index] = new GUIContent("アイテム無し");
  5660. }
  5661. else
  5662. {
  5663. switch (itemArray[index])
  5664. {
  5665. case "handitem,HandItemR_WineGlass_I_.menu":
  5666. itemComboList[index] = new GUIContent(index.ToString() + ":ワイングラス");
  5667. break;
  5668. case "handitem,HandItemR_WineBottle_I_.menu":
  5669. itemComboList[index] = new GUIContent(index.ToString() + ":ワインボトル");
  5670. break;
  5671. case "handitem,handitemr_racket_I_.menu":
  5672. itemComboList[index] = new GUIContent(index.ToString() + ":ラケット");
  5673. break;
  5674. case "handitem,HandItemR_Hataki_I_.menu":
  5675. itemComboList[index] = new GUIContent(index.ToString() + ":ハタキ");
  5676. break;
  5677. case "handitem,HandItemR_Mop_I_.menu":
  5678. itemComboList[index] = new GUIContent(index.ToString() + ":モップ");
  5679. break;
  5680. case "handitem,HandItemR_Houki_I_.menu":
  5681. itemComboList[index] = new GUIContent(index.ToString() + ":ほうき");
  5682. break;
  5683. case "handitem,HandItemR_Zoukin2_I_.menu":
  5684. itemComboList[index] = new GUIContent(index.ToString() + ":雑巾");
  5685. break;
  5686. case "handitem,HandItemR_Chu-B_Lip_I_.menu":
  5687. itemComboList[index] = new GUIContent(index.ToString() + ":Chu-B Lip");
  5688. break;
  5689. case "handitem,HandItemR_Mimikaki_I_.menu":
  5690. itemComboList[index] = new GUIContent(index.ToString() + ":耳かき");
  5691. break;
  5692. case "handitem,HandItemR_Pen_I_.menu":
  5693. itemComboList[index] = new GUIContent(index.ToString() + ":ペン");
  5694. break;
  5695. case "handitem,HandItemR_Otama_I_.menu":
  5696. itemComboList[index] = new GUIContent(index.ToString() + ":おたま");
  5697. break;
  5698. case "handitem,HandItemR_Houchou_I_.menu":
  5699. itemComboList[index] = new GUIContent(index.ToString() + ":包丁");
  5700. break;
  5701. case "handitem,HandItemR_Book_I_.menu":
  5702. itemComboList[index] = new GUIContent(index.ToString() + ":本");
  5703. break;
  5704. case "handitem,HandItemR_Puff_I_.menu":
  5705. itemComboList[index] = new GUIContent(index.ToString() + ":パフ");
  5706. break;
  5707. case "handitem,HandItemR_Rip_I_.menu":
  5708. itemComboList[index] = new GUIContent(index.ToString() + ":リップ");
  5709. break;
  5710. case "handitem,HandItemD_Shisyuu_Hari_I_.menu":
  5711. itemComboList[index] = new GUIContent(index.ToString() + ":刺繍");
  5712. break;
  5713. case "handitem,HandItemD_Sara_Sponge_I_.menu":
  5714. itemComboList[index] = new GUIContent(index.ToString() + ":皿・スポンジ");
  5715. break;
  5716. case "kousoku_upper,KousokuU_TekaseOne_I_.menu":
  5717. itemComboList[index] = new GUIContent(index.ToString() + ":手枷1");
  5718. break;
  5719. case "kousoku_upper,KousokuU_TekaseTwo_I_.menu":
  5720. itemComboList[index] = new GUIContent(index.ToString() + ":手枷2");
  5721. break;
  5722. case "kousoku_lower,KousokuL_AshikaseUp_I_.menu":
  5723. itemComboList[index] = new GUIContent(index.ToString() + ":足枷");
  5724. break;
  5725. case "handitem,HandItemR_Usuba_Houchou_I_.menu":
  5726. itemComboList[index] = new GUIContent(index.ToString() + "薄刃包丁");
  5727. break;
  5728. case "handitem,HandItemR_Chusyaki_I_.menu":
  5729. itemComboList[index] = new GUIContent(index.ToString() + "注射器");
  5730. break;
  5731. case "handitem,HandItemR_Nei_Heartful_I_.menu":
  5732. itemComboList[index] = new GUIContent(index.ToString() + "ハートフルねい人形");
  5733. break;
  5734. case "handitem,HandItemR_Shaker_I_.menu":
  5735. itemComboList[index] = new GUIContent(index.ToString() + "シェイカー");
  5736. break;
  5737. case "handitem,HandItemR_SmartPhone_I_.menu":
  5738. itemComboList[index] = new GUIContent(index.ToString() + "スマートフォン");
  5739. break;
  5740. case "kousoku_upper,KousokuU_Ushirode_I_.menu":
  5741. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":後ろ手拘束具");
  5742. break;
  5743. case "kousoku_upper,KousokuU_SMRoom_Haritsuke_I_.menu":
  5744. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":磔台・手枷足枷");
  5745. break;
  5746. case "kousoku_upper,KousokuU_SMRoom2_Haritsuke_I_.menu":
  5747. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":磔台・手枷足枷2");
  5748. break;
  5749. case "handitem,HandItemL_Dance_Hataki_I_.menu":
  5750. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":ダンスハタキ");
  5751. break;
  5752. case "handitem,HandItemL_Dance_Mop_I_.menu":
  5753. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":ダンスモップ");
  5754. break;
  5755. case "handitem,HandItemL_Dance_Zoukin_I_.menu":
  5756. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":ダンス雑巾");
  5757. break;
  5758. case "handitem,HandItemL_Kozara_I_.menu":
  5759. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":小皿");
  5760. break;
  5761. case "handitem,HandItemR_Teacup_I_.menu":
  5762. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":ティーカップ");
  5763. break;
  5764. case "handitem,HandItemL_Teasaucer_I_.menu":
  5765. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":ティーソーサー");
  5766. break;
  5767. case "handitem,HandItemR_Wholecake_I_.menu":
  5768. itemComboList[index - 1] = new GUIContent("ホールケーキ");
  5769. break;
  5770. case "handitem,HandItemR_Menu_I_.menu":
  5771. itemComboList[index - 1] = new GUIContent("メニュー表");
  5772. break;
  5773. case "handitem,HandItemR_Vibe_I_.menu":
  5774. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":バイブ");
  5775. break;
  5776. case "handitem,HandItemR_VibePink_I_.menu":
  5777. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":ピンクバイブ");
  5778. break;
  5779. case "handitem,HandItemR_VibeBig_I_.menu":
  5780. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":太バイブ");
  5781. break;
  5782. case "handitem,HandItemR_AnalVibe_I_.menu":
  5783. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":アナルバイブ");
  5784. break;
  5785. case "handitem,HandItemH_SoutouVibe_I_.menu":
  5786. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":前:双頭バイブ");
  5787. break;
  5788. case "accvag,accVag_Vibe_I_.menu":
  5789. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":前:バイブ");
  5790. break;
  5791. case "accvag,accVag_VibeBig_I_.menu":
  5792. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":前:太バイブ");
  5793. break;
  5794. case "accvag,accVag_VibePink_I_.menu":
  5795. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":前:ピンクバイブ");
  5796. break;
  5797. case "accanl,accAnl_AnalVibe_I_.menu":
  5798. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":後:アナルバイブ");
  5799. break;
  5800. case "accanl,accAnl_Photo_NomalVibe_I_.menu":
  5801. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":後:バイブ");
  5802. break;
  5803. case "accanl,accAnl_Photo_VibeBig_I_.menu":
  5804. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":後:太バイブ");
  5805. break;
  5806. case "accanl,accAnl_Photo_VibePink_I_.menu":
  5807. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":後:ピンクバイブ");
  5808. break;
  5809. case "handitem,HandItemL_Etoile_Saucer_I_.menu":
  5810. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + "ティーソーサー");
  5811. break;
  5812. case "handitem,HandItemR_Etoile_Teacup_I_.menu":
  5813. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + "ティーカップ");
  5814. break;
  5815. case "handitem,HandItemL_Katuramuki_Daikon_I_.menu":
  5816. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + "桂むき大根");
  5817. break;
  5818. case "handitem,HandItemL_Karte_I_.menu":
  5819. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + "カルテ");
  5820. break;
  5821. case "handitem,HandItemL_Cracker_I_.menu":
  5822. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + "クラッカー");
  5823. break;
  5824. }
  5825. if (index == 12)
  5826. itemComboList[index] = new GUIContent(index.ToString() + ":手枷・足枷");
  5827. if (index == 13)
  5828. itemComboList[index] = new GUIContent(index.ToString() + ":手枷・足枷(下)");
  5829. if (index == 24)
  5830. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":カップ&ソーサー");
  5831. }
  5832. }
  5833. }
  5834. if (poseCombo.isClickedComboButton)
  5835. GUI.enabled = false;
  5836. if (poseGroupCombo.isClickedComboButton)
  5837. GUI.enabled = false;
  5838. if (sceneLevel == 3 || sceneLevel == 5 || isF6)
  5839. {
  5840. if (!isF6)
  5841. {
  5842. bool flag = true;
  5843. if (faceFlg || poseFlg || (sceneFlg || kankyoFlg) || kankyo2Flg)
  5844. flag = false;
  5845. if (GUI.Toggle(new Rect((float) this.GetPix(2),
  5846. (float) this.GetPix(2),
  5847. (float) this.GetPix(39),
  5848. (float) this.GetPix(20)),
  5849. flag,
  5850. "配置",
  5851. style4))
  5852. {
  5853. faceFlg = false;
  5854. poseFlg = false;
  5855. sceneFlg = false;
  5856. kankyoFlg = false;
  5857. kankyo2Flg = false;
  5858. bGui = true;
  5859. isGuiInit = true;
  5860. }
  5861. }
  5862. if (!yotogiFlg && GUI.Toggle(new Rect((float) this.GetPix(41),
  5863. (float) this.GetPix(2),
  5864. (float) this.GetPix(39),
  5865. (float) this.GetPix(20)),
  5866. poseFlg,
  5867. "操作",
  5868. style4))
  5869. {
  5870. poseFlg = true;
  5871. faceFlg = false;
  5872. sceneFlg = false;
  5873. kankyoFlg = false;
  5874. kankyo2Flg = false;
  5875. }
  5876. if (GUI.Toggle(new Rect((float) this.GetPix(80), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
  5877. faceFlg,
  5878. "表情",
  5879. style4))
  5880. {
  5881. faceFlg = true;
  5882. poseFlg = false;
  5883. sceneFlg = false;
  5884. kankyoFlg = false;
  5885. kankyo2Flg = false;
  5886. if (!faceFlg2)
  5887. {
  5888. isFaceInit = true;
  5889. faceFlg2 = true;
  5890. maidArray[selectMaidIndex].boMabataki = false;
  5891. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  5892. }
  5893. isFaceInit = true;
  5894. }
  5895. if (GUI.Toggle(new Rect((float) this.GetPix(119), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
  5896. kankyoFlg,
  5897. "環境",
  5898. style4))
  5899. {
  5900. poseFlg = false;
  5901. faceFlg = false;
  5902. sceneFlg = false;
  5903. kankyoFlg = true;
  5904. kankyo2Flg = false;
  5905. }
  5906. if (!(bool) ((Object) line1))
  5907. {
  5908. line1 = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.3f));
  5909. line2 = this.MakeTex(2, 2, new Color(0.7f, 0.7f, 0.7f, 0.6f));
  5910. }
  5911. GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(20), (float) this.GetPix(160), 2f), (Texture) line1);
  5912. GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(20), (float) this.GetPix(160), 1f), (Texture) line2);
  5913. style1.fontSize = this.GetPix(13);
  5914. style1.alignment = TextAnchor.MiddleCenter;
  5915. GUI.Label(new Rect((float) this.GetPix(125), (float) this.GetPix(25), (float) this.GetPix(40), (float) this.GetPix(25)),
  5916. string.Concat((object) (selectMaidIndex + 1)),
  5917. style1);
  5918. style1.fontSize = this.GetPix(11);
  5919. style1.alignment = TextAnchor.UpperLeft;
  5920. }
  5921. if (sceneLevel > 0)
  5922. {
  5923. int selectMaidIndex = this.selectMaidIndex;
  5924. if (sceneLevel == 3 || sceneLevel == 5 && (isF7 || maidCnt > 1))
  5925. {
  5926. if (GUI.Button(new Rect((float) this.GetPix(5),
  5927. (float) this.GetPix(53),
  5928. (float) this.GetPix(23),
  5929. (float) this.GetPix(32)),
  5930. "<",
  5931. style3))
  5932. {
  5933. --this.selectMaidIndex;
  5934. if (this.selectMaidIndex < 0)
  5935. this.selectMaidIndex = selectList.Count - 1;
  5936. isPoseInit = true;
  5937. poseFlg = true;
  5938. copyIndex = 0;
  5939. poseCombo.selectedItemIndex = poseIndex[this.selectMaidIndex];
  5940. faceCombo.selectedItemIndex = faceIndex[this.selectMaidIndex];
  5941. }
  5942. if (GUI.Button(new Rect((float) this.GetPix(135),
  5943. (float) this.GetPix(53),
  5944. (float) this.GetPix(23),
  5945. (float) this.GetPix(32)),
  5946. ">",
  5947. style3))
  5948. {
  5949. ++this.selectMaidIndex;
  5950. if (selectList.Count <= this.selectMaidIndex)
  5951. this.selectMaidIndex = 0;
  5952. isPoseInit = true;
  5953. poseFlg = true;
  5954. copyIndex = 0;
  5955. poseCombo.selectedItemIndex = poseIndex[this.selectMaidIndex];
  5956. faceCombo.selectedItemIndex = faceIndex[this.selectMaidIndex];
  5957. }
  5958. }
  5959. if ((bool) ((Object) maidArray[this.selectMaidIndex].GetThumIcon()))
  5960. GUI.DrawTexture(new Rect((float) this.GetPix(30),
  5961. (float) this.GetPix(25),
  5962. (float) this.GetPix(60),
  5963. (float) this.GetPix(60)),
  5964. (Texture) maidArray[this.selectMaidIndex].GetThumIcon());
  5965. GUI.Label(new Rect((float) this.GetPix(90), (float) this.GetPix(50), (float) this.GetPix(140), (float) this.GetPix(210)),
  5966. maidArray[this.selectMaidIndex].status.lastName + "\n" + maidArray[this.selectMaidIndex].status.firstName,
  5967. style1);
  5968. }
  5969. if (!isF6)
  5970. {
  5971. if (isDanceStop)
  5972. {
  5973. isStop[selectMaidIndex] = true;
  5974. isDanceStop = false;
  5975. }
  5976. if (sceneLevel == 5 && maidCnt > 1)
  5977. {
  5978. bool flag = false;
  5979. if (selectMaidIndex == isEditNo)
  5980. flag = true;
  5981. isEdit[selectMaidIndex] =
  5982. GUI.Toggle(new Rect((float) this.GetPix(5),
  5983. (float) this.GetPix(25),
  5984. (float) this.GetPix(50),
  5985. (float) this.GetPix(16)),
  5986. flag,
  5987. "Edit",
  5988. style4);
  5989. if (isEdit[selectMaidIndex] && selectMaidIndex != isEditNo)
  5990. {
  5991. isEditNo = selectMaidIndex;
  5992. for (int index = 0; index < maidCnt; ++index)
  5993. {
  5994. if (index != isEditNo)
  5995. isEdit[index] = false;
  5996. }
  5997. SceneEdit component = GameObject.Find("__SceneEdit__").GetComponent<SceneEdit>();
  5998. SetFieldValue<SceneEdit, Maid>(component, "m_maid", maidArray[selectMaidIndex]);
  5999. component.PartsTypeCamera(MPN.stkg);
  6000. editSelectMaid = maidArray[selectMaidIndex];
  6001. if (selectList[selectMaidIndex] != null && goSlot[(int) selectList[selectMaidIndex]] != null)
  6002. {
  6003. maidArray[selectMaidIndex].body0.goSlot =
  6004. new List<TBodySkin>((IEnumerable<TBodySkin>) goSlot[(int) selectList[selectMaidIndex]]);
  6005. for (int index = 0; index < bodyHit[(int) selectList[selectMaidIndex]].Count; ++index)
  6006. maidArray[selectMaidIndex].body0.goSlot[index].bonehair.bodyhit =
  6007. bodyHit[(int) selectList[selectMaidIndex]][index];
  6008. }
  6009. }
  6010. }
  6011. GUI.enabled = !poseGroupCombo.isClickedComboButton;
  6012. if (isLock[selectMaidIndex])
  6013. GUI.enabled = false;
  6014. int result;
  6015. Transform transform;
  6016. if (GUI.Button(new Rect((float) this.GetPix(5), (float) this.GetPix(125), (float) this.GetPix(23), (float) this.GetPix(23)),
  6017. "<",
  6018. style3))
  6019. {
  6020. --poseIndex[selectMaidIndex];
  6021. if (poseGroupIndex > 0)
  6022. {
  6023. if ((int) groupList[poseGroupIndex - 1] > poseIndex[selectMaidIndex])
  6024. poseIndex[selectMaidIndex] = poseGroupIndex < groupList.Count
  6025. ? (int) groupList[poseGroupIndex] - 1
  6026. : poseArray.Length - 1;
  6027. }
  6028. else if (poseIndex[selectMaidIndex] < 0)
  6029. poseIndex[selectMaidIndex] = (int) groupList[poseGroupIndex] - 1;
  6030. isPoseInit = true;
  6031. poseCombo.selectedItemIndex = poseGroupIndex <= 0
  6032. ? poseIndex[selectMaidIndex]
  6033. : poseIndex[selectMaidIndex] - (int) groupList[poseGroupIndex - 1];
  6034. if (!isLock[selectMaidIndex] && ((bool) ((Object) maid) && maid.Visible))
  6035. {
  6036. string[] strArray = poseArray[poseIndex[selectMaidIndex]].Split(',');
  6037. isStop[selectMaidIndex] = false;
  6038. poseCount[selectMaidIndex] = 20;
  6039. if (strArray[0].Contains("_momi") || strArray[0].Contains("paizuri_"))
  6040. {
  6041. maid.body0.MuneYureL(0.0f);
  6042. maid.body0.MuneYureR(0.0f);
  6043. }
  6044. else
  6045. {
  6046. maid.body0.MuneYureL(1f);
  6047. maid.body0.MuneYureR(1f);
  6048. }
  6049. if (strArray[0].Contains("MultipleMaidsPose"))
  6050. {
  6051. string path = strArray[0].Split('/')[1];
  6052. byte[] numArray = new byte[0];
  6053. try
  6054. {
  6055. using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
  6056. {
  6057. numArray = new byte[fileStream.Length];
  6058. fileStream.Read(numArray, 0, numArray.Length);
  6059. }
  6060. }
  6061. catch { }
  6062. if (0 < numArray.Length)
  6063. {
  6064. long hashCode = (long) Path.GetFileName(path).GetHashCode();
  6065. maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
  6066. Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
  6067. {
  6068. Maid.AutoTwist.ShoulderL, Maid.AutoTwist.ShoulderR, Maid.AutoTwist.WristL, Maid.AutoTwist.WristR,
  6069. Maid.AutoTwist.ThighL, Maid.AutoTwist.ThighR
  6070. };
  6071. foreach (Maid.AutoTwist f_eType in autoTwistArray)
  6072. maid.SetAutoTwist(f_eType, true);
  6073. }
  6074. }
  6075. else if (strArray[0].StartsWith("p") && int.TryParse(strArray[0].Substring(1), out result))
  6076. loadPose[selectMaidIndex] = strArray[0];
  6077. else if (!strArray[0].StartsWith("dance_"))
  6078. {
  6079. maidArray[selectMaidIndex].CrossFade(strArray[0] + ".anm", false, true, false, 0.0f, 1f);
  6080. }
  6081. else
  6082. {
  6083. if (!(bool) ((Object) maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray[0] + ".anm")))
  6084. maid.body0.LoadAnime(strArray[0] + ".anm", GameUty.FileSystem, strArray[0] + ".anm", false, false);
  6085. maid.body0.m_Bones.GetComponent<Animation>().Play(strArray[0] + ".anm");
  6086. }
  6087. if (strArray.Length > 1)
  6088. {
  6089. maid.body0.m_Bones.GetComponent<Animation>()[strArray[0] + ".anm"].time = float.Parse(strArray[1]);
  6090. isDanceStop = true;
  6091. if (strArray.Length > 2)
  6092. {
  6093. transform = CMT.SearchObjName(maidArray[selectMaidIndex].body0.m_Bones.transform, "Bip01", true);
  6094. isPoseIti[selectMaidIndex] = true;
  6095. poseIti[selectMaidIndex] = maidArray[selectMaidIndex].transform.position;
  6096. maidArray[selectMaidIndex].transform.position = new Vector3(100f, 100f, 100f);
  6097. }
  6098. }
  6099. }
  6100. }
  6101. if (GUI.Button(new Rect((float) this.GetPix(135),
  6102. (float) this.GetPix(125),
  6103. (float) this.GetPix(23),
  6104. (float) this.GetPix(23)),
  6105. ">",
  6106. style3))
  6107. {
  6108. ++poseIndex[selectMaidIndex];
  6109. if (poseIndex[selectMaidIndex] > (int) groupList[groupList.Count - 1])
  6110. {
  6111. if (poseIndex[selectMaidIndex] >= poseArray.Length)
  6112. poseIndex[selectMaidIndex] = (int) groupList[poseGroupIndex - 1];
  6113. }
  6114. else if (poseIndex[selectMaidIndex] >= (int) groupList[poseGroupIndex])
  6115. poseIndex[selectMaidIndex] = poseGroupIndex <= 0 ? 0 : (int) groupList[poseGroupIndex - 1];
  6116. isPoseInit = true;
  6117. poseCombo.selectedItemIndex = poseGroupIndex <= 0
  6118. ? poseIndex[selectMaidIndex]
  6119. : poseIndex[selectMaidIndex] - (int) groupList[poseGroupIndex - 1];
  6120. if (!isLock[selectMaidIndex] && ((bool) ((Object) maid) && maid.Visible))
  6121. {
  6122. string[] strArray = poseArray[poseIndex[selectMaidIndex]].Split(',');
  6123. isStop[selectMaidIndex] = false;
  6124. poseCount[selectMaidIndex] = 20;
  6125. if (strArray[0].Contains("_momi") || strArray[0].Contains("paizuri_"))
  6126. {
  6127. maid.body0.MuneYureL(0.0f);
  6128. maid.body0.MuneYureR(0.0f);
  6129. }
  6130. else
  6131. {
  6132. maid.body0.MuneYureL(1f);
  6133. maid.body0.MuneYureR(1f);
  6134. }
  6135. if (strArray[0].Contains("MultipleMaidsPose"))
  6136. {
  6137. string path = strArray[0].Split('/')[1];
  6138. byte[] numArray = new byte[0];
  6139. try
  6140. {
  6141. using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
  6142. {
  6143. numArray = new byte[fileStream.Length];
  6144. fileStream.Read(numArray, 0, numArray.Length);
  6145. }
  6146. }
  6147. catch { }
  6148. if (0 < numArray.Length)
  6149. {
  6150. long hashCode = (long) Path.GetFileName(path).GetHashCode();
  6151. maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
  6152. Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
  6153. {
  6154. Maid.AutoTwist.ShoulderL, Maid.AutoTwist.ShoulderR, Maid.AutoTwist.WristL, Maid.AutoTwist.WristR,
  6155. Maid.AutoTwist.ThighL, Maid.AutoTwist.ThighR
  6156. };
  6157. foreach (Maid.AutoTwist f_eType in autoTwistArray)
  6158. maid.SetAutoTwist(f_eType, true);
  6159. }
  6160. }
  6161. else if (strArray[0].StartsWith("p") && int.TryParse(strArray[0].Substring(1), out result))
  6162. loadPose[selectMaidIndex] = strArray[0];
  6163. else if (!strArray[0].StartsWith("dance_"))
  6164. {
  6165. maidArray[selectMaidIndex].CrossFade(strArray[0] + ".anm", false, true, false, 0.0f, 1f);
  6166. }
  6167. else
  6168. {
  6169. if (!(bool) ((Object) maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray[0] + ".anm")))
  6170. maid.body0.LoadAnime(strArray[0] + ".anm", GameUty.FileSystem, strArray[0] + ".anm", false, false);
  6171. maid.body0.m_Bones.GetComponent<Animation>().Play(strArray[0] + ".anm");
  6172. }
  6173. if (strArray.Length > 1)
  6174. {
  6175. maid.body0.m_Bones.GetComponent<Animation>()[strArray[0] + ".anm"].time = float.Parse(strArray[1]);
  6176. isDanceStop = true;
  6177. if (strArray.Length > 2)
  6178. {
  6179. transform = CMT.SearchObjName(maidArray[selectMaidIndex].body0.m_Bones.transform, "Bip01", true);
  6180. isPoseIti[selectMaidIndex] = true;
  6181. poseIti[selectMaidIndex] = maidArray[selectMaidIndex].transform.position;
  6182. maidArray[selectMaidIndex].transform.position = new Vector3(100f, 100f, 100f);
  6183. }
  6184. }
  6185. }
  6186. }
  6187. GUI.enabled = true;
  6188. int index1 = -1;
  6189. for (int index2 = 0; index2 < groupList.Count; ++index2)
  6190. {
  6191. if (poseIndex[selectMaidIndex] < (int) groupList[index2])
  6192. {
  6193. index1 = index2;
  6194. break;
  6195. }
  6196. }
  6197. int length1 = (int) groupList[0];
  6198. int num1 = 0;
  6199. if (index1 > 0)
  6200. {
  6201. length1 = (int) groupList[index1] - (int) groupList[index1 - 1];
  6202. num1 = (int) groupList[index1 - 1];
  6203. }
  6204. if (index1 < 0)
  6205. {
  6206. index1 = groupList.Count;
  6207. length1 = poseArray.Length - (int) groupList[index1 - 1];
  6208. num1 = (int) groupList[index1 - 1];
  6209. }
  6210. if (poseGroupCombo.selectedItemIndex != index1)
  6211. {
  6212. poseComboList = new GUIContent[length1];
  6213. int index2 = 0;
  6214. for (int index3 = num1; index3 < num1 + length1; ++index3)
  6215. {
  6216. bool flag = false;
  6217. foreach (IniKey key in this.Preferences["pose"].Keys)
  6218. {
  6219. if (poseArray[index3] == key.Key)
  6220. {
  6221. IniKey iniKey = this.Preferences["pose"][key.Key];
  6222. if (iniKey.Value != null && iniKey.Value.ToString() != "" && iniKey.Value.ToString() != "del")
  6223. {
  6224. poseComboList[index2] =
  6225. new GUIContent((index2 + 1).ToString() + ":" + iniKey.Value.Split('_')[0]
  6226. + "                    " + key.Key);
  6227. flag = true;
  6228. }
  6229. }
  6230. }
  6231. if (!flag)
  6232. poseComboList[index2] = new GUIContent((index2 + 1).ToString() + ":" + poseArray[index3]);
  6233. ++index2;
  6234. }
  6235. poseGroupCombo.selectedItemIndex = index1;
  6236. poseGroupIndex = index1;
  6237. poseCombo.selectedItemIndex = 0;
  6238. }
  6239. GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton;
  6240. isLook[selectMaidIndex] =
  6241. GUI.Toggle(new Rect((float) this.GetPix(8),
  6242. (float) this.GetPix(155),
  6243. (float) this.GetPix(65),
  6244. (float) this.GetPix(16)),
  6245. isLook[selectMaidIndex],
  6246. "顔の向き",
  6247. style4);
  6248. isPoseEdit = GUI.Toggle(new Rect((float) this.GetPix(86),
  6249. (float) this.GetPix(155),
  6250. (float) this.GetPix(90),
  6251. (float) this.GetPix(16)),
  6252. isPoseEdit,
  6253. "ポーズ登録",
  6254. style4);
  6255. if (isPoseEdit)
  6256. {
  6257. inName3 = GUI.TextField(new Rect((float) this.GetPix(5),
  6258. (float) this.GetPix(180),
  6259. (float) this.GetPix(100),
  6260. (float) this.GetPix(20)),
  6261. inName3);
  6262. if (GUI.Button(new Rect((float) this.GetPix(107),
  6263. (float) this.GetPix(180),
  6264. (float) this.GetPix(35),
  6265. (float) this.GetPix(20)),
  6266. "追加",
  6267. style3))
  6268. {
  6269. isSavePose = true;
  6270. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  6271. existPose = true;
  6272. GUI.FocusControl("");
  6273. }
  6274. if (poseGroupComboList[poseGroupCombo.selectedItemIndex].text != "99:登録ポーズ")
  6275. GUI.enabled = false;
  6276. if (GUI.Button(new Rect((float) this.GetPix(144),
  6277. (float) this.GetPix(180),
  6278. (float) this.GetPix(24),
  6279. (float) this.GetPix(20)),
  6280. "削",
  6281. style3))
  6282. {
  6283. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  6284. List<string> stringList1 = new List<string>();
  6285. stringList1.AddRange((IEnumerable<string>) poseArray);
  6286. if (poseComboList[poseCombo.selectedItemIndex].text.Contains("MultipleMaidsPose"))
  6287. {
  6288. string pose = poseArray[poseIndex[selectMaidIndex]];
  6289. stringList1.Remove(pose);
  6290. string path = poseArray[poseIndex[selectMaidIndex]].Split('/')[1].Replace("                    ", "");
  6291. if (File.Exists(path))
  6292. File.Delete(path);
  6293. }
  6294. else
  6295. {
  6296. string[] strArray = poseComboList[poseCombo.selectedItemIndex].text.Split('p');
  6297. string str = strArray[strArray.Length - 1];
  6298. IniKey iniKey = this.Preferences["pose"]["p" + str];
  6299. if (iniKey.Value != "" || iniKey.Value != "del")
  6300. {
  6301. this.Preferences["pose"]["p" + str].Value = "del";
  6302. this.SaveConfig();
  6303. }
  6304. stringList1.Remove("p" + str);
  6305. }
  6306. GUI.FocusControl("");
  6307. poseArray = stringList1.ToArray();
  6308. int index2 = -1;
  6309. for (int index3 = 0; index3 < groupList.Count; ++index3)
  6310. {
  6311. if (poseIndex[selectMaidIndex] < (int) groupList[index3])
  6312. {
  6313. index2 = index3;
  6314. break;
  6315. }
  6316. }
  6317. int length2 = (int) groupList[0];
  6318. int num2 = 0;
  6319. if (index2 > 0)
  6320. {
  6321. length2 = (int) groupList[index2] - (int) groupList[index2 - 1];
  6322. num2 = (int) groupList[index2 - 1];
  6323. }
  6324. if (index2 < 0)
  6325. {
  6326. index2 = groupList.Count;
  6327. length2 = poseArray.Length - (int) groupList[index2 - 1];
  6328. num2 = (int) groupList[index2 - 1];
  6329. }
  6330. poseComboList = new GUIContent[length2];
  6331. int index4 = 0;
  6332. bool existEdit = false;
  6333. for (int index3 = num2; index3 < num2 + length2; ++index3)
  6334. {
  6335. bool flag = false;
  6336. foreach (IniKey key in this.Preferences["pose"].Keys)
  6337. {
  6338. if (poseArray[index3] == key.Key)
  6339. {
  6340. IniKey iniKey = this.Preferences["pose"][key.Key];
  6341. if (iniKey.Value != null && iniKey.Value.ToString() != "" && iniKey.Value.ToString() != "del")
  6342. {
  6343. poseComboList[index4] =
  6344. new GUIContent((index4 + 1).ToString() + ":" + iniKey.Value.Split('_')[0]
  6345. + "                    " + key.Key);
  6346. flag = true;
  6347. existEdit = true;
  6348. }
  6349. }
  6350. }
  6351. if (!flag)
  6352. poseComboList[index4] = new GUIContent((index4 + 1).ToString() + ":" + poseArray[index3]);
  6353. ++index4;
  6354. }
  6355. ((Action<string, List<string>>) ((path, result_list) =>
  6356. {
  6357. string[] files = Directory.GetFiles(path);
  6358. countS = 0;
  6359. for (int index = 0; index < files.Length; ++index)
  6360. {
  6361. if (Path.GetExtension(files[index]) == ".anm")
  6362. {
  6363. existEdit = true;
  6364. break;
  6365. }
  6366. }
  6367. }))(Path.GetFullPath(".\\") + "Mod\\MultipleMaidsPose", new List<string>());
  6368. if (!existEdit)
  6369. {
  6370. poseIniStr = "";
  6371. List<string> stringList2 = new List<string>(50 + poseGroupArray2.Length);
  6372. stringList2.AddRange((IEnumerable<string>) poseGroupArray2);
  6373. stringList2.AddRange((IEnumerable<string>) poseGroupArrayVP);
  6374. stringList2.AddRange((IEnumerable<string>) poseGroupArrayFB);
  6375. stringList2.AddRange((IEnumerable<string>) poseGroupArray3);
  6376. stringList2.Add(poseArray5[0]);
  6377. stringList2.Add(poseArray6[0]);
  6378. stringList2.Add(strList2[0]);
  6379. stringList2.Add(strListE2[0]);
  6380. existPose = false;
  6381. poseGroupArray = stringList2.ToArray();
  6382. groupList = new ArrayList();
  6383. for (int index3 = 0; index3 < poseArray.Length; ++index3)
  6384. {
  6385. for (int index5 = 0; index5 < poseGroupArray.Length; ++index5)
  6386. {
  6387. if (poseGroupArray[index5] == poseArray[index3])
  6388. {
  6389. groupList.Add((object) index3);
  6390. if (poseGroupArray[index5] == strList2[0])
  6391. sPoseCount = index3;
  6392. }
  6393. }
  6394. }
  6395. poseIndex[selectMaidIndex] = 0;
  6396. poseGroupComboList = new GUIContent[poseGroupArray.Length + 1];
  6397. poseGroupComboList[0] = new GUIContent("1:通常");
  6398. for (int index3 = 0; index3 < poseGroupArray.Length; ++index3)
  6399. {
  6400. if (poseGroupArray[index3] == "maid_dressroom01")
  6401. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":立ち");
  6402. if (poseGroupArray[index3] == "tennis_kamae_f")
  6403. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":中腰");
  6404. if (poseGroupArray[index3] == "senakanagasi_f")
  6405. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":膝をつく");
  6406. if (poseGroupArray[index3] == "work_hansei")
  6407. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":座り");
  6408. if (poseGroupArray[index3] == "inu_taiki_f")
  6409. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":四つん這い");
  6410. if (poseGroupArray[index3] == "syagami_pose_f")
  6411. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":床座り");
  6412. if (poseGroupArray[index3] == "densyasuwari_taiki_f")
  6413. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":椅子座り");
  6414. if (poseGroupArray[index3] == "work_kaiwa")
  6415. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":ソファー座り");
  6416. if (poseGroupArray[index3] == "dance_cm3d2_001_f1,14.14")
  6417. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":ドキドキ☆Fallin' Love");
  6418. if (poseGroupArray[index3] == "dance_cm3d_001_f1,39.25")
  6419. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":entrance to you");
  6420. if (poseGroupArray[index3] == "dance_cm3d_002_end_f1,50.71")
  6421. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":scarlet leap");
  6422. if (poseGroupArray[index3] == "dance_cm3d2_002_smt_f,7.76,")
  6423. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":stellar my tears");
  6424. if (poseGroupArray[index3] == "dance_cm3d_003_sp2_f1,90.15")
  6425. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":rhythmix to you");
  6426. if (poseGroupArray[index3] == "dance_cm3d2_003_hs_f1,0.01,")
  6427. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":happy!happy!スキャンダル!!");
  6428. if (poseGroupArray[index3] == "dance_cm3d_004_kano_f1,124.93")
  6429. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":Can Know Two Close");
  6430. if (poseGroupArray[index3] == "dance_cm3d2_004_sse_f1,0.01")
  6431. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":sweet sweet everyday");
  6432. if (poseGroupArray[index3] == "turusi_sex_in_taiki_f")
  6433. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":拘束");
  6434. if (poseGroupArray[index3] == "rosyutu_pose01_f")
  6435. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":エロ");
  6436. if (poseGroupArray[index3] == "rosyutu_aruki_f_once_,1.37")
  6437. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":歩き");
  6438. if (poseGroupArray[index3] == "stand_desk1")
  6439. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":その他");
  6440. if (poseGroupArray[index3] == poseArray5[0])
  6441. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":ダンスMC");
  6442. if (poseGroupArray[index3] == poseArray6[0])
  6443. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":ダンス");
  6444. if (index3 == poseGroupArray.Length - 2)
  6445. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":通常2");
  6446. if (index3 == poseGroupArray.Length - 1)
  6447. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":エロ2");
  6448. }
  6449. }
  6450. else
  6451. {
  6452. poseGroupCombo.selectedItemIndex = index2;
  6453. poseGroupIndex = index2;
  6454. poseCombo.selectedItemIndex = 0;
  6455. poseIndex[selectMaidIndex] = (int) groupList[groupList.Count - 1];
  6456. if (poseArray.Length <= poseIndex[selectMaidIndex])
  6457. --poseIndex[selectMaidIndex];
  6458. }
  6459. }
  6460. GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton;
  6461. }
  6462. else
  6463. {
  6464. if (!isLook[selectMaidIndex])
  6465. GUI.enabled = false;
  6466. GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(175), (float) this.GetPix(100), (float) this.GetPix(25)),
  6467. "顔の向きX",
  6468. style2);
  6469. lookX[selectMaidIndex] =
  6470. GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  6471. (float) this.GetPix(191),
  6472. (float) this.GetPix(70),
  6473. (float) this.GetPix(20)),
  6474. lookX[selectMaidIndex],
  6475. -0.6f,
  6476. 0.6f);
  6477. GUI.Label(new Rect((float) this.GetPix(88),
  6478. (float) this.GetPix(175),
  6479. (float) this.GetPix(100),
  6480. (float) this.GetPix(25)),
  6481. "顔の向きY",
  6482. style2);
  6483. lookY[selectMaidIndex] =
  6484. GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  6485. (float) this.GetPix(191),
  6486. (float) this.GetPix(70),
  6487. (float) this.GetPix(20)),
  6488. lookY[selectMaidIndex],
  6489. 0.5f,
  6490. -0.55f);
  6491. GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton;
  6492. }
  6493. int index6 = poseGroupIndex <= 0
  6494. ? poseIndex[selectMaidIndex]
  6495. : poseIndex[selectMaidIndex] - (int) groupList[poseGroupIndex - 1];
  6496. string[] strArray1;
  6497. if (GUI.Button(new Rect((float) this.GetPix(5), (float) this.GetPix(215), (float) this.GetPix(23), (float) this.GetPix(23)),
  6498. "<",
  6499. style3))
  6500. {
  6501. --itemIndex[selectMaidIndex];
  6502. if (itemIndex[selectMaidIndex] <= -1)
  6503. itemIndex[selectMaidIndex] = itemArray.Length - 2;
  6504. strArray1 = new string[2];
  6505. string[] strArray2 = itemArray[itemIndex[selectMaidIndex]].Split(',');
  6506. if (itemIndex[selectMaidIndex] > 13)
  6507. strArray2 = itemArray[itemIndex[selectMaidIndex] + 1].Split(',');
  6508. maid.DelProp(MPN.handitem, true);
  6509. maid.DelProp(MPN.accvag, true);
  6510. maid.DelProp(MPN.accanl, true);
  6511. bool flag = false;
  6512. if (itemIndex[selectMaidIndex] == 12 || itemIndex[selectMaidIndex] == 13 || itemIndex[selectMaidIndex] == 23)
  6513. flag = true;
  6514. if (!flag)
  6515. {
  6516. maid.DelProp(MPN.kousoku_upper, true);
  6517. maid.DelProp(MPN.kousoku_lower, true);
  6518. }
  6519. if (strArray2[0] != "")
  6520. maid.SetProp(strArray2[0], strArray2[1], 0, true, false);
  6521. if (itemIndex[selectMaidIndex] == 12)
  6522. {
  6523. string[] strArray3 = itemArray[itemIndex[selectMaidIndex] - 1].Split(',');
  6524. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  6525. }
  6526. if (itemIndex[selectMaidIndex] == 13)
  6527. {
  6528. string[] strArray3 = itemArray[itemIndex[selectMaidIndex] + 1].Split(',');
  6529. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  6530. }
  6531. if (itemIndex[selectMaidIndex] == 23)
  6532. {
  6533. string[] strArray3 = itemArray[itemIndex[selectMaidIndex]].Split(',');
  6534. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  6535. cafeFlg[selectMaidIndex] = true;
  6536. }
  6537. maid.AllProcPropSeqStart();
  6538. itemCombo.selectedItemIndex = itemIndex[selectMaidIndex];
  6539. }
  6540. if (GUI.Button(new Rect((float) this.GetPix(135),
  6541. (float) this.GetPix(215),
  6542. (float) this.GetPix(23),
  6543. (float) this.GetPix(23)),
  6544. ">",
  6545. style3))
  6546. {
  6547. ++itemIndex[selectMaidIndex];
  6548. if (itemIndex[selectMaidIndex] >= itemArray.Length - 1)
  6549. itemIndex[selectMaidIndex] = 0;
  6550. strArray1 = new string[2];
  6551. string[] strArray2 = itemArray[itemIndex[selectMaidIndex]].Split(',');
  6552. if (itemIndex[selectMaidIndex] > 13)
  6553. strArray2 = itemArray[itemIndex[selectMaidIndex] + 1].Split(',');
  6554. maid.DelProp(MPN.handitem, true);
  6555. maid.DelProp(MPN.accvag, true);
  6556. maid.DelProp(MPN.accanl, true);
  6557. bool flag = false;
  6558. if (itemIndex[selectMaidIndex] == 12 || itemIndex[selectMaidIndex] == 13)
  6559. flag = true;
  6560. if (!flag)
  6561. {
  6562. maid.DelProp(MPN.kousoku_upper, true);
  6563. maid.DelProp(MPN.kousoku_lower, true);
  6564. }
  6565. if (strArray2[0] != "")
  6566. maid.SetProp(strArray2[0], strArray2[1], 0, true, false);
  6567. if (itemIndex[selectMaidIndex] == 12)
  6568. {
  6569. string[] strArray3 = itemArray[itemIndex[selectMaidIndex] - 1].Split(',');
  6570. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  6571. }
  6572. if (itemIndex[selectMaidIndex] == 13)
  6573. {
  6574. string[] strArray3 = itemArray[itemIndex[selectMaidIndex] + 1].Split(',');
  6575. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  6576. }
  6577. if (itemIndex[selectMaidIndex] == 23)
  6578. {
  6579. string[] strArray3 = itemArray[itemIndex[selectMaidIndex]].Split(',');
  6580. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  6581. cafeFlg[selectMaidIndex] = true;
  6582. }
  6583. maid.AllProcPropSeqStart();
  6584. itemCombo.selectedItemIndex = itemIndex[selectMaidIndex];
  6585. }
  6586. if (itemCombo.isClickedComboButton)
  6587. GUI.enabled = false;
  6588. isWear = GUI.Toggle(new Rect((float) this.GetPix(5),
  6589. (float) this.GetPix(248),
  6590. (float) this.GetPix(70),
  6591. (float) this.GetPix(20)),
  6592. isWear,
  6593. "トップス",
  6594. style4);
  6595. isSkirt = GUI.Toggle(new Rect((float) this.GetPix(90),
  6596. (float) this.GetPix(248),
  6597. (float) this.GetPix(70),
  6598. (float) this.GetPix(20)),
  6599. isSkirt,
  6600. "ボトムス",
  6601. style4);
  6602. isBra = GUI.Toggle(new Rect((float) this.GetPix(5),
  6603. (float) this.GetPix(273),
  6604. (float) this.GetPix(80),
  6605. (float) this.GetPix(20)),
  6606. isBra,
  6607. "ブラジャー",
  6608. style4);
  6609. isPanz = GUI.Toggle(new Rect((float) this.GetPix(90),
  6610. (float) this.GetPix(273),
  6611. (float) this.GetPix(60),
  6612. (float) this.GetPix(20)),
  6613. isPanz,
  6614. "パンツ",
  6615. style4);
  6616. isHeadset = GUI.Toggle(new Rect((float) this.GetPix(5),
  6617. (float) this.GetPix(298),
  6618. (float) this.GetPix(70),
  6619. (float) this.GetPix(20)),
  6620. isHeadset,
  6621. "ヘッド",
  6622. style4);
  6623. isMegane = GUI.Toggle(new Rect((float) this.GetPix(95),
  6624. (float) this.GetPix(298),
  6625. (float) this.GetPix(70),
  6626. (float) this.GetPix(20)),
  6627. isMegane,
  6628. "メガネ",
  6629. style4);
  6630. isAccUde = GUI.Toggle(new Rect((float) this.GetPix(5),
  6631. (float) this.GetPix(323),
  6632. (float) this.GetPix(40),
  6633. (float) this.GetPix(20)),
  6634. isAccUde,
  6635. "腕",
  6636. style4);
  6637. isGlove = GUI.Toggle(new Rect((float) this.GetPix(50),
  6638. (float) this.GetPix(323),
  6639. (float) this.GetPix(40),
  6640. (float) this.GetPix(20)),
  6641. isGlove,
  6642. "手袋",
  6643. style4);
  6644. isAccSenaka = GUI.Toggle(new Rect((float) this.GetPix(95),
  6645. (float) this.GetPix(323),
  6646. (float) this.GetPix(40),
  6647. (float) this.GetPix(20)),
  6648. isAccSenaka,
  6649. "背中",
  6650. style4);
  6651. isStkg = GUI.Toggle(new Rect((float) this.GetPix(5),
  6652. (float) this.GetPix(348),
  6653. (float) this.GetPix(40),
  6654. (float) this.GetPix(20)),
  6655. isStkg,
  6656. "靴下",
  6657. style4);
  6658. isShoes = GUI.Toggle(new Rect((float) this.GetPix(50),
  6659. (float) this.GetPix(348),
  6660. (float) this.GetPix(40),
  6661. (float) this.GetPix(20)),
  6662. isShoes,
  6663. "靴",
  6664. style4);
  6665. isMaid = GUI.Toggle(new Rect((float) this.GetPix(95),
  6666. (float) this.GetPix(348),
  6667. (float) this.GetPix(70),
  6668. (float) this.GetPix(20)),
  6669. isMaid,
  6670. "メイド",
  6671. style4);
  6672. mekure1[selectMaidIndex] =
  6673. GUI.Toggle(new Rect((float) this.GetPix(5),
  6674. (float) this.GetPix(373),
  6675. (float) this.GetPix(62),
  6676. (float) this.GetPix(20)),
  6677. mekure1[selectMaidIndex],
  6678. "めくれ前",
  6679. style4);
  6680. mekure2[selectMaidIndex] =
  6681. GUI.Toggle(new Rect((float) this.GetPix(67),
  6682. (float) this.GetPix(373),
  6683. (float) this.GetPix(40),
  6684. (float) this.GetPix(20)),
  6685. mekure2[selectMaidIndex],
  6686. "後ろ",
  6687. style4);
  6688. zurasi[selectMaidIndex] =
  6689. GUI.Toggle(new Rect((float) this.GetPix(105),
  6690. (float) this.GetPix(373),
  6691. (float) this.GetPix(50),
  6692. (float) this.GetPix(20)),
  6693. zurasi[selectMaidIndex],
  6694. "ずらし",
  6695. style4);
  6696. voice1[selectMaidIndex] =
  6697. GUI.Toggle(new Rect((float) this.GetPix(5),
  6698. (float) this.GetPix(530),
  6699. (float) this.GetPix(70),
  6700. (float) this.GetPix(20)),
  6701. zFlg[selectMaidIndex],
  6702. "ボイス",
  6703. style4);
  6704. voice2[selectMaidIndex] =
  6705. GUI.Toggle(new Rect((float) this.GetPix(70),
  6706. (float) this.GetPix(530),
  6707. (float) this.GetPix(70),
  6708. (float) this.GetPix(20)),
  6709. xFlg[selectMaidIndex],
  6710. "Hボイス",
  6711. style4);
  6712. GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton && !itemCombo.isClickedComboButton;
  6713. GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(402), (float) this.GetPix(160), 2f), (Texture) line1);
  6714. GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(402), (float) this.GetPix(160), 1f), (Texture) line2);
  6715. isIK[selectMaidIndex] =
  6716. GUI.Toggle(new Rect((float) this.GetPix(5),
  6717. (float) this.GetPix(411),
  6718. (float) this.GetPix(30),
  6719. (float) this.GetPix(20)),
  6720. isIK[selectMaidIndex],
  6721. "IK",
  6722. style4);
  6723. if (!isLock[selectMaidIndex])
  6724. GUI.enabled = false;
  6725. isLock[selectMaidIndex] =
  6726. GUI.Toggle(new Rect((float) this.GetPix(45),
  6727. (float) this.GetPix(411),
  6728. (float) this.GetPix(40),
  6729. (float) this.GetPix(20)),
  6730. isLock[selectMaidIndex],
  6731. "解除",
  6732. style4);
  6733. GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton && !itemCombo.isClickedComboButton;
  6734. if (!isIK[selectMaidIndex])
  6735. GUI.enabled = false;
  6736. isBone[selectMaidIndex] =
  6737. GUI.Toggle(new Rect((float) this.GetPix(100),
  6738. (float) this.GetPix(411),
  6739. (float) this.GetPix(60),
  6740. (float) this.GetPix(20)),
  6741. isBone[selectMaidIndex],
  6742. "ボーン",
  6743. style4);
  6744. GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton;
  6745. if (isBone[selectMaidIndex] != isBoneN[selectMaidIndex])
  6746. {
  6747. isBoneN[selectMaidIndex] = isBone[selectMaidIndex];
  6748. isChange[selectMaidIndex] = true;
  6749. }
  6750. if (!isLock[selectMaidIndex] && unLockFlg != isLock[selectMaidIndex])
  6751. {
  6752. string[] strArray2 = poseArray[poseIndex[selectMaidIndex]].Split(',');
  6753. isStop[selectMaidIndex] = false;
  6754. poseCount[selectMaidIndex] = 20;
  6755. if (strArray2[0].Contains("_momi") || strArray2[0].Contains("paizuri_"))
  6756. {
  6757. maid.body0.MuneYureL(0.0f);
  6758. maid.body0.MuneYureR(0.0f);
  6759. }
  6760. else
  6761. {
  6762. maid.body0.MuneYureL(1f);
  6763. maid.body0.MuneYureR(1f);
  6764. }
  6765. if (strArray2[0].Contains("MultipleMaidsPose"))
  6766. {
  6767. string path = strArray2[0].Split('/')[1];
  6768. byte[] numArray = new byte[0];
  6769. try
  6770. {
  6771. using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
  6772. {
  6773. numArray = new byte[fileStream.Length];
  6774. fileStream.Read(numArray, 0, numArray.Length);
  6775. }
  6776. }
  6777. catch { }
  6778. if (0 < numArray.Length)
  6779. {
  6780. long hashCode = (long) Path.GetFileName(path).GetHashCode();
  6781. maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
  6782. Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
  6783. {
  6784. Maid.AutoTwist.ShoulderL, Maid.AutoTwist.ShoulderR, Maid.AutoTwist.WristL, Maid.AutoTwist.WristR,
  6785. Maid.AutoTwist.ThighL, Maid.AutoTwist.ThighR
  6786. };
  6787. foreach (Maid.AutoTwist f_eType in autoTwistArray)
  6788. maid.SetAutoTwist(f_eType, true);
  6789. }
  6790. }
  6791. else if (strArray2[0].StartsWith("p") && int.TryParse(strArray2[0].Substring(1), out result))
  6792. loadPose[selectMaidIndex] = strArray2[0];
  6793. else if (!strArray2[0].StartsWith("dance_"))
  6794. {
  6795. maidArray[selectMaidIndex].CrossFade(strArray2[0] + ".anm", false, true, false, 0.0f, 1f);
  6796. }
  6797. else
  6798. {
  6799. if (!(bool) ((Object) maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm")))
  6800. maid.body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
  6801. maid.body0.m_Bones.GetComponent<Animation>().Play(strArray2[0] + ".anm");
  6802. }
  6803. if (strArray2.Length > 1)
  6804. {
  6805. maid.body0.m_Bones.GetComponent<Animation>()[strArray2[0] + ".anm"].time = float.Parse(strArray2[1]);
  6806. isDanceStop = true;
  6807. if (strArray2.Length > 2)
  6808. {
  6809. transform = CMT.SearchObjName(maidArray[selectMaidIndex].body0.m_Bones.transform, "Bip01", true);
  6810. isPoseIti[selectMaidIndex] = true;
  6811. poseIti[selectMaidIndex] = maidArray[selectMaidIndex].transform.position;
  6812. maidArray[selectMaidIndex].transform.position = new Vector3(100f, 100f, 100f);
  6813. }
  6814. }
  6815. mHandL[selectMaidIndex].initFlg = false;
  6816. mHandR[selectMaidIndex].initFlg = false;
  6817. mFootL[selectMaidIndex].initFlg = false;
  6818. mFootR[selectMaidIndex].initFlg = false;
  6819. pHandL[selectMaidIndex] = 0;
  6820. pHandR[selectMaidIndex] = 0;
  6821. hanten[selectMaidIndex] = false;
  6822. hantenn[selectMaidIndex] = false;
  6823. muneIKL[selectMaidIndex] = false;
  6824. muneIKR[selectMaidIndex] = false;
  6825. if (!GameMain.Instance.VRMode)
  6826. {
  6827. maidArray[selectMaidIndex].body0.quaDefEyeL.eulerAngles = eyeL[(int) selectList[selectMaidIndex]];
  6828. maidArray[selectMaidIndex].body0.quaDefEyeR.eulerAngles = eyeR[(int) selectList[selectMaidIndex]];
  6829. }
  6830. }
  6831. unLockFlg = isLock[selectMaidIndex];
  6832. GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton && !itemCombo.isClickedComboButton;
  6833. if (!isIK[selectMaidIndex])
  6834. GUI.enabled = false;
  6835. hanten[selectMaidIndex] =
  6836. GUI.Toggle(new Rect((float) this.GetPix(5),
  6837. (float) this.GetPix(479),
  6838. (float) this.GetPix(70),
  6839. (float) this.GetPix(20)),
  6840. hanten[selectMaidIndex],
  6841. "左右反転",
  6842. style4);
  6843. bool flag1 = GUI.Toggle(new Rect((float) this.GetPix(80),
  6844. (float) this.GetPix(479),
  6845. (float) this.GetPix(100),
  6846. (float) this.GetPix(20)),
  6847. kotei[selectMaidIndex],
  6848. "スカート固定",
  6849. style4);
  6850. if (kotei[selectMaidIndex] != flag1)
  6851. {
  6852. kotei[selectMaidIndex] = flag1;
  6853. if (flag1)
  6854. {
  6855. SkirtListArray[selectMaidIndex] = new DynamicSkirtBone[100];
  6856. for (int index2 = 0; index2 < maid.body0.goSlot.Count; ++index2)
  6857. {
  6858. DynamicSkirtBone fieldValue =
  6859. GetFieldValue<BoneHair3, DynamicSkirtBone>(maid.body0.goSlot[index2].bonehair3, "m_SkirtBone");
  6860. SkirtListArray[selectMaidIndex][index2] = fieldValue;
  6861. SetFieldValue8<BoneHair3, DynamicSkirtBone>(maid.body0.goSlot[index2].bonehair3,
  6862. "m_SkirtBone",
  6863. (DynamicSkirtBone) null);
  6864. }
  6865. }
  6866. else
  6867. {
  6868. for (int index2 = 0; index2 < maid.body0.goSlot.Count; ++index2)
  6869. SetFieldValue8<BoneHair3, DynamicSkirtBone>(maid.body0.goSlot[index2].bonehair3,
  6870. "m_SkirtBone",
  6871. SkirtListArray[selectMaidIndex][index2]);
  6872. }
  6873. }
  6874. GUI.Label(new Rect((float) this.GetPix(29), (float) this.GetPix(433), (float) this.GetPix(100), (float) this.GetPix(25)),
  6875. "右手",
  6876. style1);
  6877. GUI.Label(new Rect((float) this.GetPix(109), (float) this.GetPix(433), (float) this.GetPix(100), (float) this.GetPix(25)),
  6878. "左手",
  6879. style1);
  6880. string text = "未選択";
  6881. if (copyIndex > 0)
  6882. text = copyIndex.ToString() + ":" + maidArray[copyIndex - 1].status.firstName;
  6883. if (maidCnt <= 1)
  6884. GUI.enabled = false;
  6885. GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(505), (float) this.GetPix(100), (float) this.GetPix(25)),
  6886. "コピー",
  6887. style1);
  6888. GUI.Label(new Rect((float) this.GetPix(70), (float) this.GetPix(505), (float) this.GetPix(100), (float) this.GetPix(25)),
  6889. text,
  6890. style1);
  6891. GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton && !itemCombo.isClickedComboButton
  6892. && isIK[selectMaidIndex];
  6893. style1.fontSize = this.GetPix(13);
  6894. style1.alignment = TextAnchor.UpperCenter;
  6895. GUI.Label(new Rect((float) this.GetPix(-10), (float) this.GetPix(449), (float) this.GetPix(100), (float) this.GetPix(25)),
  6896. pHandR[selectMaidIndex].ToString(),
  6897. style1);
  6898. GUI.Label(new Rect((float) this.GetPix(70), (float) this.GetPix(449), (float) this.GetPix(100), (float) this.GetPix(25)),
  6899. pHandL[selectMaidIndex].ToString(),
  6900. style1);
  6901. style1.fontSize = this.GetPix(11);
  6902. style1.alignment = TextAnchor.UpperLeft;
  6903. if (GUI.Button(new Rect((float) this.GetPix(5), (float) this.GetPix(448), (float) this.GetPix(23), (float) this.GetPix(23)),
  6904. "<",
  6905. style3))
  6906. {
  6907. --pHandR[selectMaidIndex];
  6908. if (pHandR[selectMaidIndex] < 1)
  6909. pHandR[selectMaidIndex] = fingerRArray.GetLength(0);
  6910. for (int index2 = 0; index2 < 20; ++index2)
  6911. {
  6912. string[] strArray2 = fingerRArray[pHandR[selectMaidIndex] - 1, index2].Split(',');
  6913. Finger[selectMaidIndex, index2 + 20].localEulerAngles =
  6914. new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  6915. }
  6916. isStop[selectMaidIndex] = true;
  6917. isLock[selectMaidIndex] = true;
  6918. for (int index2 = 0; index2 < 10; ++index2)
  6919. {
  6920. if ((index2 == 0 || index2 == 5) && (bool) ((Object) mFinger[selectMaidIndex, index2 * 3]))
  6921. mFinger[selectMaidIndex, index2 * 3].reset = true;
  6922. }
  6923. }
  6924. if (GUI.Button(new Rect((float) this.GetPix(55),
  6925. (float) this.GetPix(448),
  6926. (float) this.GetPix(23),
  6927. (float) this.GetPix(23)),
  6928. ">",
  6929. style3))
  6930. {
  6931. ++pHandR[selectMaidIndex];
  6932. if (pHandR[selectMaidIndex] > fingerRArray.GetLength(0))
  6933. pHandR[selectMaidIndex] = 1;
  6934. for (int index2 = 0; index2 < 20; ++index2)
  6935. {
  6936. string[] strArray2 = fingerRArray[pHandR[selectMaidIndex] - 1, index2].Split(',');
  6937. Finger[selectMaidIndex, index2 + 20].localEulerAngles =
  6938. new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  6939. }
  6940. isStop[selectMaidIndex] = true;
  6941. isLock[selectMaidIndex] = true;
  6942. for (int index2 = 0; index2 < 10; ++index2)
  6943. {
  6944. if ((index2 == 0 || index2 == 5) && (bool) ((Object) mFinger[selectMaidIndex, index2 * 3]))
  6945. mFinger[selectMaidIndex, index2 * 3].reset = true;
  6946. }
  6947. }
  6948. if (GUI.Button(new Rect((float) this.GetPix(85),
  6949. (float) this.GetPix(448),
  6950. (float) this.GetPix(23),
  6951. (float) this.GetPix(23)),
  6952. "<",
  6953. style3))
  6954. {
  6955. --pHandL[selectMaidIndex];
  6956. if (pHandL[selectMaidIndex] < 1)
  6957. pHandL[selectMaidIndex] = fingerLArray.GetLength(0);
  6958. for (int index2 = 0; index2 < 20; ++index2)
  6959. {
  6960. string[] strArray2 = fingerLArray[pHandL[selectMaidIndex] - 1, index2].Split(',');
  6961. Finger[selectMaidIndex, index2].localEulerAngles =
  6962. new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  6963. }
  6964. isStop[selectMaidIndex] = true;
  6965. isLock[selectMaidIndex] = true;
  6966. }
  6967. if (GUI.Button(new Rect((float) this.GetPix(135),
  6968. (float) this.GetPix(448),
  6969. (float) this.GetPix(23),
  6970. (float) this.GetPix(23)),
  6971. ">",
  6972. style3))
  6973. {
  6974. ++pHandL[selectMaidIndex];
  6975. if (pHandL[selectMaidIndex] > fingerRArray.GetLength(0))
  6976. pHandL[selectMaidIndex] = 1;
  6977. for (int index2 = 0; index2 < 20; ++index2)
  6978. {
  6979. string[] strArray2 = fingerLArray[pHandL[selectMaidIndex] - 1, index2].Split(',');
  6980. Finger[selectMaidIndex, index2].localEulerAngles =
  6981. new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  6982. }
  6983. isStop[selectMaidIndex] = true;
  6984. isLock[selectMaidIndex] = true;
  6985. }
  6986. if (maidCnt <= 1)
  6987. GUI.enabled = false;
  6988. if (GUI.Button(new Rect((float) this.GetPix(45),
  6989. (float) this.GetPix(504),
  6990. (float) this.GetPix(22),
  6991. (float) this.GetPix(20)),
  6992. ">",
  6993. style3))
  6994. {
  6995. ++copyIndex;
  6996. if (copyIndex - 1 == selectMaidIndex)
  6997. ++copyIndex;
  6998. if (copyIndex > maidCnt)
  6999. copyIndex = 0;
  7000. }
  7001. if (isCopy)
  7002. {
  7003. isCopy = false;
  7004. this.CopyIK2(maidArray[selectMaidIndex], selectMaidIndex, maidArray[copyIndex - 1], copyIndex - 1);
  7005. }
  7006. if (copyIndex == 0)
  7007. GUI.enabled = false;
  7008. if (GUI.Button(new Rect((float) this.GetPix(123),
  7009. (float) this.GetPix(504),
  7010. (float) this.GetPix(35),
  7011. (float) this.GetPix(20)),
  7012. "決定",
  7013. style3))
  7014. {
  7015. this.CopyIK(maidArray[selectMaidIndex], selectMaidIndex, maidArray[copyIndex - 1], copyIndex - 1);
  7016. isCopy = true;
  7017. pHandL[selectMaidIndex] = pHandL[copyIndex - 1];
  7018. pHandR[selectMaidIndex] = pHandR[copyIndex - 1];
  7019. hanten[selectMaidIndex] = hanten[copyIndex - 1];
  7020. hantenn[selectMaidIndex] = hantenn[copyIndex - 1];
  7021. }
  7022. GUI.enabled = true;
  7023. if (poseCombo.isClickedComboButton || poseGroupCombo.isClickedComboButton)
  7024. GUI.enabled = false;
  7025. itemIndex2[selectMaidIndex] =
  7026. itemCombo.List(new Rect((float) this.GetPix(35),
  7027. (float) this.GetPix(215),
  7028. (float) this.GetPix(95),
  7029. (float) this.GetPix(23)),
  7030. itemComboList[itemIndex[selectMaidIndex]].text,
  7031. itemComboList,
  7032. buttonStyle1,
  7033. (GUIStyle) "box",
  7034. listStyle3);
  7035. GUI.enabled = true;
  7036. if (poseGroupCombo.isClickedComboButton || isLock[selectMaidIndex])
  7037. GUI.enabled = false;
  7038. poseCombo.List(new Rect((float) this.GetPix(35),
  7039. (float) this.GetPix(125),
  7040. (float) this.GetPix(95),
  7041. (float) this.GetPix(23)),
  7042. poseComboList[index6].text,
  7043. poseComboList,
  7044. buttonStyle1,
  7045. (GUIStyle) "box",
  7046. listStyle2);
  7047. if (!isLock[selectMaidIndex])
  7048. GUI.enabled = true;
  7049. int index7 = -1;
  7050. for (int index2 = 0; index2 < groupList.Count; ++index2)
  7051. {
  7052. if (poseIndex[selectMaidIndex] < (int) groupList[index2])
  7053. {
  7054. index7 = index2;
  7055. break;
  7056. }
  7057. }
  7058. if (index7 < 0)
  7059. index7 = groupList.Count;
  7060. if (GUI.Button(new Rect((float) this.GetPix(5), (float) this.GetPix(95), (float) this.GetPix(23), (float) this.GetPix(23)),
  7061. "<",
  7062. style3))
  7063. {
  7064. isPoseInit = true;
  7065. if (!isLock[selectMaidIndex])
  7066. {
  7067. for (int index2 = 0; index2 < groupList.Count; ++index2)
  7068. {
  7069. if (index2 == 0 && poseIndex[selectMaidIndex] <= (int) groupList[index2])
  7070. {
  7071. poseIndex[selectMaidIndex] = poseIndex[selectMaidIndex] != 0 ? 0 : (int) groupList[groupList.Count - 1];
  7072. break;
  7073. }
  7074. if (index2 > 0 && poseIndex[selectMaidIndex] > (int) groupList[index2 - 1]
  7075. && poseIndex[selectMaidIndex] <= (int) groupList[index2])
  7076. {
  7077. poseIndex[selectMaidIndex] = (int) groupList[index2 - 1];
  7078. break;
  7079. }
  7080. }
  7081. if (poseIndex[selectMaidIndex] > (int) groupList[groupList.Count - 1])
  7082. poseIndex[selectMaidIndex] = (int) groupList[groupList.Count - 1];
  7083. if ((bool) ((Object) maid) && maid.Visible)
  7084. {
  7085. string[] strArray2 = poseArray[poseIndex[selectMaidIndex]].Split(',');
  7086. isStop[selectMaidIndex] = false;
  7087. poseCount[selectMaidIndex] = 20;
  7088. if (strArray2[0].Contains("_momi") || strArray2[0].Contains("paizuri_"))
  7089. {
  7090. maid.body0.MuneYureL(0.0f);
  7091. maid.body0.MuneYureR(0.0f);
  7092. }
  7093. else
  7094. {
  7095. maid.body0.MuneYureL(1f);
  7096. maid.body0.MuneYureR(1f);
  7097. }
  7098. if (strArray2[0].Contains("MultipleMaidsPose"))
  7099. {
  7100. string path = strArray2[0].Split('/')[1];
  7101. byte[] numArray = new byte[0];
  7102. try
  7103. {
  7104. using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
  7105. {
  7106. numArray = new byte[fileStream.Length];
  7107. fileStream.Read(numArray, 0, numArray.Length);
  7108. }
  7109. }
  7110. catch { }
  7111. if (0 < numArray.Length)
  7112. {
  7113. long hashCode = (long) Path.GetFileName(path).GetHashCode();
  7114. maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
  7115. Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
  7116. {
  7117. Maid.AutoTwist.ShoulderL, Maid.AutoTwist.ShoulderR, Maid.AutoTwist.WristL,
  7118. Maid.AutoTwist.WristR, Maid.AutoTwist.ThighL, Maid.AutoTwist.ThighR
  7119. };
  7120. foreach (Maid.AutoTwist f_eType in autoTwistArray)
  7121. maid.SetAutoTwist(f_eType, true);
  7122. }
  7123. }
  7124. else if (strArray2[0].StartsWith("p") && int.TryParse(strArray2[0].Substring(1), out result))
  7125. loadPose[selectMaidIndex] = strArray2[0];
  7126. else if (!strArray2[0].StartsWith("dance_"))
  7127. {
  7128. maidArray[selectMaidIndex].CrossFade(strArray2[0] + ".anm", false, true, false, 0.0f, 1f);
  7129. }
  7130. else
  7131. {
  7132. if (!(bool) ((Object) maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm")))
  7133. maid.body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
  7134. maid.body0.m_Bones.GetComponent<Animation>().Play(strArray2[0] + ".anm");
  7135. }
  7136. if (strArray2.Length > 1)
  7137. {
  7138. maid.body0.m_Bones.GetComponent<Animation>()[strArray2[0] + ".anm"].time = float.Parse(strArray2[1]);
  7139. isDanceStop = true;
  7140. if (strArray2.Length > 2)
  7141. {
  7142. transform = CMT.SearchObjName(maidArray[selectMaidIndex].body0.m_Bones.transform, "Bip01", true);
  7143. isPoseIti[selectMaidIndex] = true;
  7144. poseIti[selectMaidIndex] = maidArray[selectMaidIndex].transform.position;
  7145. maidArray[selectMaidIndex].transform.position = new Vector3(100f, 100f, 100f);
  7146. }
  7147. }
  7148. }
  7149. }
  7150. int index3 = -1;
  7151. for (int index2 = 0; index2 < groupList.Count; ++index2)
  7152. {
  7153. if (poseIndex[selectMaidIndex] < (int) groupList[index2])
  7154. {
  7155. index3 = index2;
  7156. break;
  7157. }
  7158. }
  7159. int length2 = (int) groupList[0];
  7160. int num2 = 0;
  7161. if (index3 > 0)
  7162. {
  7163. length2 = (int) groupList[index3] - (int) groupList[index3 - 1];
  7164. num2 = (int) groupList[index3 - 1];
  7165. }
  7166. if (index3 < 0)
  7167. {
  7168. index3 = groupList.Count;
  7169. length2 = poseArray.Length - (int) groupList[index3 - 1];
  7170. num2 = (int) groupList[index3 - 1];
  7171. }
  7172. poseComboList = new GUIContent[length2];
  7173. int index4 = 0;
  7174. for (int index2 = num2; index2 < num2 + length2; ++index2)
  7175. {
  7176. bool flag2 = false;
  7177. foreach (IniKey key in this.Preferences["pose"].Keys)
  7178. {
  7179. if (poseArray[index2] == key.Key)
  7180. {
  7181. IniKey iniKey = this.Preferences["pose"][key.Key];
  7182. if (iniKey.Value != null && iniKey.Value.ToString() != "" && iniKey.Value.ToString() != "del")
  7183. {
  7184. poseComboList[index4] =
  7185. new GUIContent((index4 + 1).ToString() + ":" + iniKey.Value.Split('_')[0]
  7186. + "                    " + key.Key);
  7187. flag2 = true;
  7188. }
  7189. }
  7190. }
  7191. if (!flag2)
  7192. poseComboList[index4] = new GUIContent((index4 + 1).ToString() + ":" + poseArray[index2]);
  7193. ++index4;
  7194. }
  7195. poseCombo.scrollPos = new Vector2(0.0f, 0.0f);
  7196. poseGroupCombo.selectedItemIndex = index3;
  7197. poseCombo.selectedItemIndex = 0;
  7198. }
  7199. if (GUI.Button(new Rect((float) this.GetPix(135),
  7200. (float) this.GetPix(95),
  7201. (float) this.GetPix(23),
  7202. (float) this.GetPix(23)),
  7203. ">",
  7204. style3))
  7205. {
  7206. isPoseInit = true;
  7207. if (!isLock[selectMaidIndex])
  7208. {
  7209. int num2 = poseIndex[selectMaidIndex];
  7210. for (int index2 = 0; index2 < groupList.Count; ++index2)
  7211. {
  7212. if (poseIndex[selectMaidIndex] < (int) groupList[index2])
  7213. {
  7214. poseIndex[selectMaidIndex] = (int) groupList[index2];
  7215. break;
  7216. }
  7217. }
  7218. if (num2 == poseIndex[selectMaidIndex] && poseIndex[selectMaidIndex] >= (int) groupList[groupList.Count - 1])
  7219. poseIndex[selectMaidIndex] = 0;
  7220. if ((bool) ((Object) maid) && maid.Visible)
  7221. {
  7222. string[] strArray2 = poseArray[poseIndex[selectMaidIndex]].Split(',');
  7223. isStop[selectMaidIndex] = false;
  7224. poseCount[selectMaidIndex] = 20;
  7225. if (strArray2[0].Contains("_momi") || strArray2[0].Contains("paizuri_"))
  7226. {
  7227. maid.body0.MuneYureL(0.0f);
  7228. maid.body0.MuneYureR(0.0f);
  7229. }
  7230. else
  7231. {
  7232. maid.body0.MuneYureL(1f);
  7233. maid.body0.MuneYureR(1f);
  7234. }
  7235. if (strArray2[0].Contains("MultipleMaidsPose"))
  7236. {
  7237. string path = strArray2[0].Split('/')[1];
  7238. byte[] numArray = new byte[0];
  7239. try
  7240. {
  7241. using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
  7242. {
  7243. numArray = new byte[fileStream.Length];
  7244. fileStream.Read(numArray, 0, numArray.Length);
  7245. }
  7246. }
  7247. catch { }
  7248. if (0 < numArray.Length)
  7249. {
  7250. long hashCode = (long) Path.GetFileName(path).GetHashCode();
  7251. maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
  7252. Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
  7253. {
  7254. Maid.AutoTwist.ShoulderL, Maid.AutoTwist.ShoulderR, Maid.AutoTwist.WristL,
  7255. Maid.AutoTwist.WristR, Maid.AutoTwist.ThighL, Maid.AutoTwist.ThighR
  7256. };
  7257. foreach (Maid.AutoTwist f_eType in autoTwistArray)
  7258. maid.SetAutoTwist(f_eType, true);
  7259. }
  7260. }
  7261. else if (strArray2[0].StartsWith("p") && int.TryParse(strArray2[0].Substring(1), out result))
  7262. loadPose[selectMaidIndex] = strArray2[0];
  7263. else if (!strArray2[0].StartsWith("dance_"))
  7264. {
  7265. maidArray[selectMaidIndex].CrossFade(strArray2[0] + ".anm", false, true, false, 0.0f, 1f);
  7266. }
  7267. else
  7268. {
  7269. if (!(bool) ((Object) maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm")))
  7270. maid.body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
  7271. maid.body0.m_Bones.GetComponent<Animation>().Play(strArray2[0] + ".anm");
  7272. }
  7273. if (strArray2.Length > 1)
  7274. {
  7275. maid.body0.m_Bones.GetComponent<Animation>()[strArray2[0] + ".anm"].time = float.Parse(strArray2[1]);
  7276. isDanceStop = true;
  7277. if (strArray2.Length > 2)
  7278. {
  7279. transform = CMT.SearchObjName(maidArray[selectMaidIndex].body0.m_Bones.transform, "Bip01", true);
  7280. isPoseIti[selectMaidIndex] = true;
  7281. poseIti[selectMaidIndex] = maidArray[selectMaidIndex].transform.position;
  7282. maidArray[selectMaidIndex].transform.position = new Vector3(100f, 100f, 100f);
  7283. }
  7284. }
  7285. }
  7286. }
  7287. int index3 = -1;
  7288. for (int index2 = 0; index2 < groupList.Count; ++index2)
  7289. {
  7290. if (poseIndex[selectMaidIndex] < (int) groupList[index2])
  7291. {
  7292. index3 = index2;
  7293. break;
  7294. }
  7295. }
  7296. int length2 = (int) groupList[0];
  7297. int num3 = 0;
  7298. if (index3 > 0)
  7299. {
  7300. length2 = (int) groupList[index3] - (int) groupList[index3 - 1];
  7301. num3 = (int) groupList[index3 - 1];
  7302. }
  7303. if (index3 < 0)
  7304. {
  7305. index3 = groupList.Count;
  7306. length2 = poseArray.Length - (int) groupList[index3 - 1];
  7307. num3 = (int) groupList[index3 - 1];
  7308. }
  7309. poseComboList = new GUIContent[length2];
  7310. int index4 = 0;
  7311. for (int index2 = num3; index2 < num3 + length2; ++index2)
  7312. {
  7313. bool flag2 = false;
  7314. foreach (IniKey key in this.Preferences["pose"].Keys)
  7315. {
  7316. if (poseArray[index2] == key.Key)
  7317. {
  7318. IniKey iniKey = this.Preferences["pose"][key.Key];
  7319. if (iniKey.Value != null && iniKey.Value.ToString() != "" && iniKey.Value.ToString() != "del")
  7320. {
  7321. poseComboList[index4] =
  7322. new GUIContent((index4 + 1).ToString() + ":" + iniKey.Value.Split('_')[0]
  7323. + "                    " + key.Key);
  7324. flag2 = true;
  7325. }
  7326. }
  7327. }
  7328. if (!flag2)
  7329. poseComboList[index4] = new GUIContent((index4 + 1).ToString() + ":" + poseArray[index2]);
  7330. ++index4;
  7331. }
  7332. poseCombo.scrollPos = new Vector2(0.0f, 0.0f);
  7333. poseGroupCombo.selectedItemIndex = index3;
  7334. poseCombo.selectedItemIndex = 0;
  7335. }
  7336. poseGroupIndex =
  7337. poseGroupCombo.List(new Rect((float) this.GetPix(35),
  7338. (float) this.GetPix(95),
  7339. (float) this.GetPix(95),
  7340. (float) this.GetPix(23)),
  7341. poseGroupComboList[index7].text,
  7342. poseGroupComboList,
  7343. buttonStyle2,
  7344. (GUIStyle) "box",
  7345. listStyle4);
  7346. if (poseGroupCombo.isClickedComboButton)
  7347. isCombo2 = true;
  7348. else if (isCombo2)
  7349. {
  7350. isCombo2 = false;
  7351. isPoseInit = true;
  7352. poseIndex[selectMaidIndex] = poseGroupIndex <= 0 ? 0 : (int) groupList[poseGroupIndex - 1];
  7353. if (!isLock[selectMaidIndex] && ((bool) ((Object) maid) && maid.Visible))
  7354. {
  7355. string[] strArray2 = poseArray[poseIndex[selectMaidIndex]].Split(',');
  7356. isStop[selectMaidIndex] = false;
  7357. poseCount[selectMaidIndex] = 20;
  7358. if (strArray2[0].Contains("_momi") || strArray2[0].Contains("paizuri_"))
  7359. {
  7360. maid.body0.MuneYureL(0.0f);
  7361. maid.body0.MuneYureR(0.0f);
  7362. }
  7363. else
  7364. {
  7365. maid.body0.MuneYureL(1f);
  7366. maid.body0.MuneYureR(1f);
  7367. }
  7368. if (strArray2[0].Contains("MultipleMaidsPose"))
  7369. {
  7370. string path = strArray2[0].Split('/')[1];
  7371. byte[] numArray = new byte[0];
  7372. try
  7373. {
  7374. using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
  7375. {
  7376. numArray = new byte[fileStream.Length];
  7377. fileStream.Read(numArray, 0, numArray.Length);
  7378. }
  7379. }
  7380. catch { }
  7381. if (0 < numArray.Length)
  7382. {
  7383. long hashCode = (long) Path.GetFileName(path).GetHashCode();
  7384. maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
  7385. Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
  7386. {
  7387. Maid.AutoTwist.ShoulderL, Maid.AutoTwist.ShoulderR, Maid.AutoTwist.WristL, Maid.AutoTwist.WristR,
  7388. Maid.AutoTwist.ThighL, Maid.AutoTwist.ThighR
  7389. };
  7390. foreach (Maid.AutoTwist f_eType in autoTwistArray)
  7391. maid.SetAutoTwist(f_eType, true);
  7392. }
  7393. }
  7394. else if (strArray2[0].StartsWith("p") && int.TryParse(strArray2[0].Substring(1), out result))
  7395. loadPose[selectMaidIndex] = strArray2[0];
  7396. else if (!strArray2[0].StartsWith("dance_"))
  7397. {
  7398. maidArray[selectMaidIndex].CrossFade(strArray2[0] + ".anm", false, true, false, 0.0f, 1f);
  7399. }
  7400. else
  7401. {
  7402. if (!(bool) ((Object) maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm")))
  7403. maid.body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
  7404. maid.body0.m_Bones.GetComponent<Animation>().Play(strArray2[0] + ".anm");
  7405. }
  7406. if (strArray2.Length > 1)
  7407. {
  7408. maid.body0.m_Bones.GetComponent<Animation>()[strArray2[0] + ".anm"].time = float.Parse(strArray2[1]);
  7409. isDanceStop = true;
  7410. if (strArray2.Length > 2)
  7411. {
  7412. transform = CMT.SearchObjName(maidArray[selectMaidIndex].body0.m_Bones.transform, "Bip01", true);
  7413. isPoseIti[selectMaidIndex] = true;
  7414. poseIti[selectMaidIndex] = maidArray[selectMaidIndex].transform.position;
  7415. maidArray[selectMaidIndex].transform.position = new Vector3(100f, 100f, 100f);
  7416. }
  7417. }
  7418. }
  7419. int index2 = -1;
  7420. for (int index3 = 0; index3 < groupList.Count; ++index3)
  7421. {
  7422. if (poseIndex[selectMaidIndex] < (int) groupList[index3])
  7423. {
  7424. index2 = index3;
  7425. break;
  7426. }
  7427. }
  7428. int length2 = (int) groupList[0];
  7429. int num2 = 0;
  7430. if (index2 > 0)
  7431. {
  7432. length2 = (int) groupList[index2] - (int) groupList[index2 - 1];
  7433. num2 = (int) groupList[index2 - 1];
  7434. }
  7435. if (index2 < 0)
  7436. {
  7437. index2 = groupList.Count;
  7438. length2 = poseArray.Length - (int) groupList[index2 - 1];
  7439. num2 = (int) groupList[index2 - 1];
  7440. }
  7441. poseComboList = new GUIContent[length2];
  7442. int index4 = 0;
  7443. for (int index3 = num2; index3 < num2 + length2; ++index3)
  7444. {
  7445. bool flag2 = false;
  7446. foreach (IniKey key in this.Preferences["pose"].Keys)
  7447. {
  7448. if (poseArray[index3] == key.Key)
  7449. {
  7450. IniKey iniKey = this.Preferences["pose"][key.Key];
  7451. if (iniKey.Value != null && iniKey.Value.ToString() != "" && iniKey.Value.ToString() != "del")
  7452. {
  7453. poseComboList[index4] =
  7454. new GUIContent((index4 + 1).ToString() + ":" + iniKey.Value.Split('_')[0]
  7455. + "                    " + key.Key);
  7456. flag2 = true;
  7457. }
  7458. }
  7459. }
  7460. if (!flag2)
  7461. poseComboList[index4] = new GUIContent((index4 + 1).ToString() + ":" + poseArray[index3]);
  7462. ++index4;
  7463. }
  7464. poseCombo.scrollPos = new Vector2(0.0f, 0.0f);
  7465. poseGroupCombo.selectedItemIndex = index2;
  7466. poseCombo.selectedItemIndex = 0;
  7467. }
  7468. if (poseCombo.isClickedComboButton)
  7469. isCombo = true;
  7470. else if (isCombo)
  7471. {
  7472. isCombo = false;
  7473. isPoseInit = true;
  7474. poseIndex[selectMaidIndex] = poseGroupIndex <= 0
  7475. ? poseCombo.selectedItemIndex
  7476. : (int) groupList[poseGroupIndex - 1] + poseCombo.selectedItemIndex;
  7477. if (poseIndex[selectMaidIndex] == poseArray.Length)
  7478. poseIndex[selectMaidIndex] = 0;
  7479. if (!isLock[selectMaidIndex] && ((bool) ((Object) maid) && maid.Visible))
  7480. {
  7481. string[] strArray2 = poseArray[poseIndex[selectMaidIndex]].Split(',');
  7482. isStop[selectMaidIndex] = false;
  7483. poseCount[selectMaidIndex] = 20;
  7484. if (strArray2[0].Contains("_momi") || strArray2[0].Contains("paizuri_"))
  7485. {
  7486. maid.body0.MuneYureL(0.0f);
  7487. maid.body0.MuneYureR(0.0f);
  7488. }
  7489. else
  7490. {
  7491. maid.body0.MuneYureL(1f);
  7492. maid.body0.MuneYureR(1f);
  7493. }
  7494. if (strArray2[0].Contains("MultipleMaidsPose"))
  7495. {
  7496. string path = strArray2[0].Split('/')[1];
  7497. byte[] numArray = new byte[0];
  7498. try
  7499. {
  7500. using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
  7501. {
  7502. numArray = new byte[fileStream.Length];
  7503. fileStream.Read(numArray, 0, numArray.Length);
  7504. }
  7505. }
  7506. catch { }
  7507. if (0 < numArray.Length)
  7508. {
  7509. long hashCode = (long) Path.GetFileName(path).GetHashCode();
  7510. maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
  7511. Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
  7512. {
  7513. Maid.AutoTwist.ShoulderL, Maid.AutoTwist.ShoulderR, Maid.AutoTwist.WristL, Maid.AutoTwist.WristR,
  7514. Maid.AutoTwist.ThighL, Maid.AutoTwist.ThighR
  7515. };
  7516. foreach (Maid.AutoTwist f_eType in autoTwistArray)
  7517. maid.SetAutoTwist(f_eType, true);
  7518. }
  7519. }
  7520. else if (strArray2[0].StartsWith("p") && int.TryParse(strArray2[0].Substring(1), out result))
  7521. loadPose[selectMaidIndex] = strArray2[0];
  7522. else if (!strArray2[0].StartsWith("dance_"))
  7523. {
  7524. maidArray[selectMaidIndex].CrossFade(strArray2[0] + ".anm", false, true, false, 0.0f, 1f);
  7525. }
  7526. else
  7527. {
  7528. if (!(bool) ((Object) maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm")))
  7529. maid.body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
  7530. maid.body0.m_Bones.GetComponent<Animation>().Play(strArray2[0] + ".anm");
  7531. }
  7532. if (strArray2.Length > 1)
  7533. {
  7534. maid.body0.m_Bones.GetComponent<Animation>()[strArray2[0] + ".anm"].time = float.Parse(strArray2[1]);
  7535. isDanceStop = true;
  7536. if (strArray2.Length > 2)
  7537. {
  7538. transform = CMT.SearchObjName(maidArray[selectMaidIndex].body0.m_Bones.transform, "Bip01", true);
  7539. isPoseIti[selectMaidIndex] = true;
  7540. poseIti[selectMaidIndex] = maidArray[selectMaidIndex].transform.position;
  7541. maidArray[selectMaidIndex].transform.position = new Vector3(100f, 100f, 100f);
  7542. }
  7543. }
  7544. }
  7545. }
  7546. if (itemCombo.isClickedComboButton)
  7547. {
  7548. isCombo3 = true;
  7549. }
  7550. else
  7551. {
  7552. if (!isCombo3)
  7553. return;
  7554. isCombo3 = false;
  7555. strArray1 = new string[2];
  7556. string[] strArray2 = itemArray[itemIndex2[selectMaidIndex]].Split(',');
  7557. if (itemIndex2[selectMaidIndex] > 13)
  7558. strArray2 = itemArray[itemIndex2[selectMaidIndex] + 1].Split(',');
  7559. maid.DelProp(MPN.handitem, true);
  7560. bool flag2 = false;
  7561. if (itemIndex2[selectMaidIndex] == 0)
  7562. {
  7563. maid.DelProp(MPN.accvag, true);
  7564. maid.DelProp(MPN.accanl, true);
  7565. }
  7566. if (itemIndex2[selectMaidIndex] == 12 || itemIndex2[selectMaidIndex] == 13)
  7567. flag2 = true;
  7568. if (!flag2)
  7569. {
  7570. maid.DelProp(MPN.kousoku_upper, true);
  7571. maid.DelProp(MPN.kousoku_lower, true);
  7572. }
  7573. if (strArray2[0] != "")
  7574. maid.SetProp(strArray2[0], strArray2[1], 0, true, false);
  7575. if (itemIndex2[selectMaidIndex] == 12)
  7576. {
  7577. string[] strArray3 = itemArray[itemIndex2[selectMaidIndex] - 1].Split(',');
  7578. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  7579. }
  7580. if (itemIndex2[selectMaidIndex] == 13)
  7581. {
  7582. string[] strArray3 = itemArray[itemIndex2[selectMaidIndex] + 1].Split(',');
  7583. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  7584. }
  7585. if (itemIndex2[selectMaidIndex] == 23)
  7586. {
  7587. string[] strArray3 = itemArray[itemIndex2[selectMaidIndex]].Split(',');
  7588. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  7589. cafeFlg[selectMaidIndex] = true;
  7590. }
  7591. maid.AllProcPropSeqStart();
  7592. itemCombo.selectedItemIndex = itemIndex2[selectMaidIndex];
  7593. itemIndex[selectMaidIndex] = itemIndex2[selectMaidIndex];
  7594. }
  7595. }
  7596. else
  7597. {
  7598. isWear = GUI.Toggle(new Rect((float) this.GetPix(5),
  7599. (float) this.GetPix(98),
  7600. (float) this.GetPix(70),
  7601. (float) this.GetPix(20)),
  7602. isWear,
  7603. "トップス",
  7604. style4);
  7605. isSkirt = GUI.Toggle(new Rect((float) this.GetPix(90),
  7606. (float) this.GetPix(98),
  7607. (float) this.GetPix(70),
  7608. (float) this.GetPix(20)),
  7609. isSkirt,
  7610. "ボトムス",
  7611. style4);
  7612. isBra = GUI.Toggle(new Rect((float) this.GetPix(5),
  7613. (float) this.GetPix(123),
  7614. (float) this.GetPix(80),
  7615. (float) this.GetPix(20)),
  7616. isBra,
  7617. "ブラジャー",
  7618. style4);
  7619. isPanz = GUI.Toggle(new Rect((float) this.GetPix(90),
  7620. (float) this.GetPix(123),
  7621. (float) this.GetPix(60),
  7622. (float) this.GetPix(20)),
  7623. isPanz,
  7624. "パンツ",
  7625. style4);
  7626. isHeadset = GUI.Toggle(new Rect((float) this.GetPix(5),
  7627. (float) this.GetPix(148),
  7628. (float) this.GetPix(70),
  7629. (float) this.GetPix(20)),
  7630. isHeadset,
  7631. "ヘッド",
  7632. style4);
  7633. isMegane = GUI.Toggle(new Rect((float) this.GetPix(90),
  7634. (float) this.GetPix(148),
  7635. (float) this.GetPix(70),
  7636. (float) this.GetPix(20)),
  7637. isMegane,
  7638. "メガネ",
  7639. style4);
  7640. isAccUde = GUI.Toggle(new Rect((float) this.GetPix(5),
  7641. (float) this.GetPix(173),
  7642. (float) this.GetPix(40),
  7643. (float) this.GetPix(20)),
  7644. isAccUde,
  7645. "腕",
  7646. style4);
  7647. isGlove = GUI.Toggle(new Rect((float) this.GetPix(45),
  7648. (float) this.GetPix(173),
  7649. (float) this.GetPix(40),
  7650. (float) this.GetPix(20)),
  7651. isGlove,
  7652. "手袋",
  7653. style4);
  7654. isAccSenaka = GUI.Toggle(new Rect((float) this.GetPix(97),
  7655. (float) this.GetPix(173),
  7656. (float) this.GetPix(40),
  7657. (float) this.GetPix(20)),
  7658. isAccSenaka,
  7659. "背中",
  7660. style4);
  7661. isStkg = GUI.Toggle(new Rect((float) this.GetPix(5),
  7662. (float) this.GetPix(198),
  7663. (float) this.GetPix(70),
  7664. (float) this.GetPix(20)),
  7665. isStkg,
  7666. "ソックス",
  7667. style4);
  7668. isShoes = GUI.Toggle(new Rect((float) this.GetPix(90),
  7669. (float) this.GetPix(198),
  7670. (float) this.GetPix(70),
  7671. (float) this.GetPix(20)),
  7672. isShoes,
  7673. "シューズ",
  7674. style4);
  7675. mekure1[selectMaidIndex] =
  7676. GUI.Toggle(new Rect((float) this.GetPix(5),
  7677. (float) this.GetPix(223),
  7678. (float) this.GetPix(62),
  7679. (float) this.GetPix(20)),
  7680. mekure1[selectMaidIndex],
  7681. "めくれ前",
  7682. style4);
  7683. mekure2[selectMaidIndex] =
  7684. GUI.Toggle(new Rect((float) this.GetPix(67),
  7685. (float) this.GetPix(223),
  7686. (float) this.GetPix(40),
  7687. (float) this.GetPix(20)),
  7688. mekure2[selectMaidIndex],
  7689. "後ろ",
  7690. style4);
  7691. zurasi[selectMaidIndex] =
  7692. GUI.Toggle(new Rect((float) this.GetPix(105),
  7693. (float) this.GetPix(223),
  7694. (float) this.GetPix(50),
  7695. (float) this.GetPix(20)),
  7696. zurasi[selectMaidIndex],
  7697. "ずらし",
  7698. style4);
  7699. }
  7700. }
  7701. private void GuiFunc2(int winID)
  7702. {
  7703. GUIStyle style1 = (GUIStyle) "label";
  7704. style1.fontSize = this.GetPix(12);
  7705. style1.alignment = TextAnchor.UpperLeft;
  7706. GUIStyle style2 = (GUIStyle) "label";
  7707. style2.fontSize = this.GetPix(11);
  7708. style2.alignment = TextAnchor.UpperLeft;
  7709. GUIStyle style3 = (GUIStyle) "button";
  7710. style3.fontSize = this.GetPix(20);
  7711. GUIStyle buttonStyle = (GUIStyle) "button";
  7712. buttonStyle.fontSize = this.GetPix(12);
  7713. buttonStyle.alignment = TextAnchor.MiddleLeft;
  7714. GUIStyle style4 = new GUIStyle((GUIStyle) "toggle");
  7715. style4.fontSize = this.GetPix(13);
  7716. CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
  7717. if (!faceInitFlg)
  7718. {
  7719. listStyle2.normal.textColor = Color.white;
  7720. listStyle2.normal.background = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.5f));
  7721. listStyle2.onHover.background = listStyle2.hover.background = new Texture2D(2, 2);
  7722. listStyle2.padding.left = listStyle2.padding.right = listStyle2.padding.top = listStyle2.padding.bottom = this.GetPix(0);
  7723. listStyle2.fontSize = this.GetPix(12);
  7724. faceCombo.selectedItemIndex = 0;
  7725. List<string> stringList = new List<string>(300);
  7726. stringList.AddRange((IEnumerable<string>) faceArray);
  7727. for (int index = 1; index < 300; ++index)
  7728. {
  7729. IniKey iniKey = this.Preferences["face"]["f" + (object) index];
  7730. if (iniKey.Value != null)
  7731. {
  7732. string[] strArray = iniKey.Value.Split(':');
  7733. if (strArray.Length > 1)
  7734. stringList.Add(strArray[0] + "               :" + (object) index + ":" + strArray[1]);
  7735. }
  7736. else
  7737. break;
  7738. }
  7739. faceCombo.selectedItemIndex = 0;
  7740. faceComboList = new GUIContent[stringList.ToArray().Length];
  7741. for (int index = 0; index < stringList.ToArray().Length; ++index)
  7742. faceComboList[index] = new GUIContent(stringList.ToArray()[index]);
  7743. faceInitFlg = true;
  7744. }
  7745. if (faceCombo.isClickedComboButton)
  7746. GUI.enabled = false;
  7747. if (sceneLevel == 3 || sceneLevel == 5 || isF6)
  7748. {
  7749. if (!isF6)
  7750. {
  7751. bool flag = true;
  7752. if (faceFlg || poseFlg || (sceneFlg || kankyoFlg) || kankyo2Flg)
  7753. flag = false;
  7754. if (GUI.Toggle(new Rect((float) this.GetPix(2),
  7755. (float) this.GetPix(2),
  7756. (float) this.GetPix(39),
  7757. (float) this.GetPix(20)),
  7758. flag,
  7759. "配置",
  7760. style4))
  7761. {
  7762. faceFlg = false;
  7763. poseFlg = false;
  7764. sceneFlg = false;
  7765. kankyoFlg = false;
  7766. kankyo2Flg = false;
  7767. bGui = true;
  7768. isGuiInit = true;
  7769. }
  7770. }
  7771. if (!yotogiFlg && GUI.Toggle(new Rect((float) this.GetPix(41),
  7772. (float) this.GetPix(2),
  7773. (float) this.GetPix(39),
  7774. (float) this.GetPix(20)),
  7775. poseFlg,
  7776. "操作",
  7777. style4))
  7778. {
  7779. poseFlg = true;
  7780. faceFlg = false;
  7781. sceneFlg = false;
  7782. kankyoFlg = false;
  7783. kankyo2Flg = false;
  7784. }
  7785. if (GUI.Toggle(new Rect((float) this.GetPix(80), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
  7786. faceFlg,
  7787. "表情",
  7788. style4))
  7789. {
  7790. faceFlg = true;
  7791. poseFlg = false;
  7792. sceneFlg = false;
  7793. kankyoFlg = false;
  7794. kankyo2Flg = false;
  7795. if (!faceFlg2)
  7796. {
  7797. isFaceInit = true;
  7798. faceFlg2 = true;
  7799. maidArray[selectMaidIndex].boMabataki = false;
  7800. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  7801. }
  7802. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  7803. }
  7804. if (GUI.Toggle(new Rect((float) this.GetPix(119), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
  7805. kankyoFlg,
  7806. "環境",
  7807. style4))
  7808. {
  7809. poseFlg = false;
  7810. faceFlg = false;
  7811. sceneFlg = false;
  7812. kankyoFlg = true;
  7813. kankyo2Flg = false;
  7814. }
  7815. if (!(bool) ((Object) line1))
  7816. {
  7817. line1 = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.3f));
  7818. line2 = this.MakeTex(2, 2, new Color(0.7f, 0.7f, 0.7f, 0.6f));
  7819. }
  7820. GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(20), (float) this.GetPix(160), 2f), (Texture) line1);
  7821. GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(20), (float) this.GetPix(160), 1f), (Texture) line2);
  7822. style1.fontSize = this.GetPix(13);
  7823. style1.alignment = TextAnchor.MiddleCenter;
  7824. GUI.Label(new Rect((float) this.GetPix(125), (float) this.GetPix(25), (float) this.GetPix(40), (float) this.GetPix(25)),
  7825. string.Concat((object) (selectMaidIndex + 1)),
  7826. style1);
  7827. style1.fontSize = this.GetPix(11);
  7828. style1.alignment = TextAnchor.UpperLeft;
  7829. }
  7830. if (sceneLevel > 0)
  7831. {
  7832. int selectMaidIndex = this.selectMaidIndex;
  7833. if (sceneLevel == 3 || sceneLevel == 5 && (isF7 || maidCnt > 1))
  7834. {
  7835. if (GUI.Button(new Rect((float) this.GetPix(5),
  7836. (float) this.GetPix(53),
  7837. (float) this.GetPix(23),
  7838. (float) this.GetPix(32)),
  7839. "<",
  7840. style3))
  7841. {
  7842. --this.selectMaidIndex;
  7843. if (this.selectMaidIndex < 0)
  7844. this.selectMaidIndex = selectList.Count - 1;
  7845. isFaceInit = true;
  7846. faceFlg = true;
  7847. copyIndex = 0;
  7848. faceCombo.selectedItemIndex = faceIndex[this.selectMaidIndex];
  7849. }
  7850. if (GUI.Button(new Rect((float) this.GetPix(135),
  7851. (float) this.GetPix(53),
  7852. (float) this.GetPix(23),
  7853. (float) this.GetPix(32)),
  7854. ">",
  7855. style3))
  7856. {
  7857. ++this.selectMaidIndex;
  7858. if (selectList.Count <= this.selectMaidIndex)
  7859. this.selectMaidIndex = 0;
  7860. isFaceInit = true;
  7861. faceFlg = true;
  7862. copyIndex = 0;
  7863. faceCombo.selectedItemIndex = faceIndex[this.selectMaidIndex];
  7864. }
  7865. }
  7866. if ((bool) ((Object) maidArray[this.selectMaidIndex].GetThumIcon()))
  7867. GUI.DrawTexture(new Rect((float) this.GetPix(30),
  7868. (float) this.GetPix(25),
  7869. (float) this.GetPix(60),
  7870. (float) this.GetPix(60)),
  7871. (Texture) maidArray[this.selectMaidIndex].GetThumIcon());
  7872. GUI.Label(new Rect((float) this.GetPix(90), (float) this.GetPix(50), (float) this.GetPix(140), (float) this.GetPix(210)),
  7873. maidArray[this.selectMaidIndex].status.lastName + "\n" + maidArray[this.selectMaidIndex].status.firstName,
  7874. style1);
  7875. bool flag = GUI.Toggle(new Rect((float) this.GetPix(90),
  7876. (float) this.GetPix(25),
  7877. (float) this.GetPix(50),
  7878. (float) this.GetPix(16)),
  7879. isShosai,
  7880. "詳細",
  7881. style4);
  7882. if (flag != isShosai)
  7883. {
  7884. isShosai = flag;
  7885. if (isShosai)
  7886. this.Preferences["config"]["hair_details"].Value = "true";
  7887. else
  7888. this.Preferences["config"]["hair_details"].Value = "false";
  7889. this.SaveConfig();
  7890. }
  7891. if (isFace[selectMaidIndex])
  7892. {
  7893. if (GUI.Button(new Rect((float) this.GetPix(5),
  7894. (float) this.GetPix(25),
  7895. (float) this.GetPix(23),
  7896. (float) this.GetPix(23)),
  7897. "有",
  7898. style3))
  7899. {
  7900. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  7901. maidArray[selectMaidIndex].boMabataki = false;
  7902. isFace[selectMaidIndex] = false;
  7903. }
  7904. maidArray[selectMaidIndex].boMabataki = false;
  7905. }
  7906. else
  7907. {
  7908. if (GUI.Button(new Rect((float) this.GetPix(5),
  7909. (float) this.GetPix(25),
  7910. (float) this.GetPix(23),
  7911. (float) this.GetPix(23)),
  7912. "無",
  7913. style3))
  7914. {
  7915. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  7916. maidArray[selectMaidIndex].boMabataki = false;
  7917. morph.EyeMabataki = 0.0f;
  7918. isFaceInit = true;
  7919. isFace[selectMaidIndex] = true;
  7920. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  7921. }
  7922. GUI.enabled = false;
  7923. maidArray[selectMaidIndex].boMabataki = true;
  7924. }
  7925. }
  7926. if (GUI.Button(new Rect((float) this.GetPix(5), (float) this.GetPix(95), (float) this.GetPix(23), (float) this.GetPix(23)),
  7927. "<",
  7928. style3))
  7929. {
  7930. --faceIndex[selectMaidIndex];
  7931. if (faceIndex[selectMaidIndex] <= -1)
  7932. faceIndex[selectMaidIndex] = faceComboList.Length - 1;
  7933. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  7934. maidArray[selectMaidIndex].boMabataki = false;
  7935. morph.EyeMabataki = 0.0f;
  7936. if (faceIndex[selectMaidIndex] < faceArray.Length)
  7937. {
  7938. morph.MulBlendValues(faceArray[faceIndex[selectMaidIndex]], 1f);
  7939. }
  7940. else
  7941. {
  7942. float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  7943. float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  7944. if (!isVR)
  7945. maidArray[selectMaidIndex].boMabataki = false;
  7946. string[] strArray = faceComboList[faceIndex[selectMaidIndex]].text.Split(':')[2].Split(',');
  7947. fieldValue2[(int) morph.hash[(object) "eyeclose"]] = float.Parse(strArray[0]);
  7948. fieldValue2[(int) morph.hash[(object) "eyeclose2"]] = float.Parse(strArray[1]);
  7949. fieldValue2[(int) morph.hash[(object) "eyeclose3"]] = float.Parse(strArray[2]);
  7950. fieldValue2[(int) morph.hash[(object) "eyeclose6"]] = float.Parse(strArray[3]);
  7951. fieldValue1[(int) morph.hash[(object) "hitomih"]] = float.Parse(strArray[4]);
  7952. fieldValue1[(int) morph.hash[(object) "hitomis"]] = float.Parse(strArray[5]);
  7953. fieldValue1[(int) morph.hash[(object) "mayuha"]] = float.Parse(strArray[6]);
  7954. fieldValue1[(int) morph.hash[(object) "mayuup"]] = float.Parse(strArray[7]);
  7955. fieldValue1[(int) morph.hash[(object) "mayuv"]] = float.Parse(strArray[8]);
  7956. fieldValue1[(int) morph.hash[(object) "mayuvhalf"]] = float.Parse(strArray[9]);
  7957. fieldValue1[(int) morph.hash[(object) "moutha"]] = float.Parse(strArray[10]);
  7958. fieldValue1[(int) morph.hash[(object) "mouths"]] = float.Parse(strArray[11]);
  7959. fieldValue1[(int) morph.hash[(object) "mouthdw"]] = float.Parse(strArray[12]);
  7960. fieldValue1[(int) morph.hash[(object) "mouthup"]] = float.Parse(strArray[13]);
  7961. fieldValue1[(int) morph.hash[(object) "tangout"]] = float.Parse(strArray[14]);
  7962. fieldValue1[(int) morph.hash[(object) "tangup"]] = float.Parse(strArray[15]);
  7963. fieldValue1[(int) morph.hash[(object) "eyebig"]] = float.Parse(strArray[16]);
  7964. fieldValue2[(int) morph.hash[(object) "eyeclose5"]] = float.Parse(strArray[17]);
  7965. fieldValue1[(int) morph.hash[(object) "mayuw"]] = float.Parse(strArray[18]);
  7966. fieldValue1[(int) morph.hash[(object) "mouthhe"]] = float.Parse(strArray[19]);
  7967. fieldValue1[(int) morph.hash[(object) "mouthc"]] = float.Parse(strArray[20]);
  7968. fieldValue1[(int) morph.hash[(object) "mouthi"]] = float.Parse(strArray[21]);
  7969. fieldValue1[(int) morph.hash[(object) "mouthuphalf"]] = float.Parse(strArray[22]) + 0.01f;
  7970. try
  7971. {
  7972. fieldValue1[(int) morph.hash[(object) "tangopen"]] = float.Parse(strArray[23]);
  7973. }
  7974. catch { }
  7975. if ((double) float.Parse(strArray[24]) == 1.0)
  7976. fieldValue1[(int) morph.hash[(object) "namida"]] = 1f;
  7977. else
  7978. fieldValue1[(int) morph.hash[(object) "namida"]] = 0.0f;
  7979. if ((double) float.Parse(strArray[25]) == 1.0)
  7980. fieldValue1[(int) morph.hash[(object) "tear1"]] = 1f;
  7981. else
  7982. fieldValue1[(int) morph.hash[(object) "tear1"]] = 0.0f;
  7983. if ((double) float.Parse(strArray[26]) == 1.0)
  7984. fieldValue1[(int) morph.hash[(object) "tear2"]] = 1f;
  7985. else
  7986. fieldValue1[(int) morph.hash[(object) "tear2"]] = 0.0f;
  7987. if ((double) float.Parse(strArray[27]) == 1.0)
  7988. fieldValue1[(int) morph.hash[(object) "tear3"]] = 1f;
  7989. else
  7990. fieldValue1[(int) morph.hash[(object) "tear3"]] = 0.0f;
  7991. if ((double) float.Parse(strArray[28]) == 1.0)
  7992. fieldValue1[(int) morph.hash[(object) "shock"]] = 1f;
  7993. else
  7994. fieldValue1[(int) morph.hash[(object) "shock"]] = 0.0f;
  7995. if ((double) float.Parse(strArray[29]) == 1.0)
  7996. fieldValue1[(int) morph.hash[(object) "yodare"]] = 1f;
  7997. else
  7998. fieldValue1[(int) morph.hash[(object) "yodare"]] = 0.0f;
  7999. if ((double) float.Parse(strArray[30]) == 1.0)
  8000. fieldValue1[(int) morph.hash[(object) "hoho"]] = 0.5f;
  8001. else
  8002. fieldValue1[(int) morph.hash[(object) "hoho"]] = 0.0f;
  8003. if ((double) float.Parse(strArray[31]) == 1.0)
  8004. fieldValue1[(int) morph.hash[(object) "hoho2"]] = 0.5f;
  8005. else
  8006. fieldValue1[(int) morph.hash[(object) "hoho2"]] = 0.0f;
  8007. if ((double) float.Parse(strArray[32]) == 1.0)
  8008. fieldValue1[(int) morph.hash[(object) "hohos"]] = 1f;
  8009. else
  8010. fieldValue1[(int) morph.hash[(object) "hohos"]] = 0.0f;
  8011. if ((double) float.Parse(strArray[33]) == 1.0)
  8012. fieldValue1[(int) morph.hash[(object) "hohol"]] = 1f;
  8013. else
  8014. fieldValue1[(int) morph.hash[(object) "hohol"]] = 0.0f;
  8015. if ((double) float.Parse(strArray[34]) == 1.0)
  8016. fieldValue1[(int) morph.hash[(object) "toothoff"]] = 1f;
  8017. else
  8018. fieldValue1[(int) morph.hash[(object) "toothoff"]] = 0.0f;
  8019. if (strArray.Length > 35)
  8020. morph.boNoseFook = (double) float.Parse(strArray[35]) == 1.0;
  8021. }
  8022. maidArray[selectMaidIndex].body0.Face.morph.FixBlendValues_Face();
  8023. isFaceInit = true;
  8024. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  8025. }
  8026. if (GUI.Button(new Rect((float) this.GetPix(135), (float) this.GetPix(95), (float) this.GetPix(23), (float) this.GetPix(23)),
  8027. ">",
  8028. style3))
  8029. {
  8030. ++faceIndex[selectMaidIndex];
  8031. if (faceIndex[selectMaidIndex] == faceComboList.Length)
  8032. faceIndex[selectMaidIndex] = 0;
  8033. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  8034. maidArray[selectMaidIndex].boMabataki = false;
  8035. morph.EyeMabataki = 0.0f;
  8036. if (faceIndex[selectMaidIndex] < faceArray.Length)
  8037. {
  8038. morph.MulBlendValues(faceArray[faceIndex[selectMaidIndex]], 1f);
  8039. }
  8040. else
  8041. {
  8042. float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  8043. float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  8044. if (!isVR)
  8045. maidArray[selectMaidIndex].boMabataki = false;
  8046. string[] strArray = faceComboList[faceIndex[selectMaidIndex]].text.Split(':')[2].Split(',');
  8047. fieldValue2[(int) morph.hash[(object) "eyeclose"]] = float.Parse(strArray[0]);
  8048. fieldValue2[(int) morph.hash[(object) "eyeclose2"]] = float.Parse(strArray[1]);
  8049. fieldValue2[(int) morph.hash[(object) "eyeclose3"]] = float.Parse(strArray[2]);
  8050. fieldValue2[(int) morph.hash[(object) "eyeclose6"]] = float.Parse(strArray[3]);
  8051. fieldValue1[(int) morph.hash[(object) "hitomih"]] = float.Parse(strArray[4]);
  8052. fieldValue1[(int) morph.hash[(object) "hitomis"]] = float.Parse(strArray[5]);
  8053. fieldValue1[(int) morph.hash[(object) "mayuha"]] = float.Parse(strArray[6]);
  8054. fieldValue1[(int) morph.hash[(object) "mayuup"]] = float.Parse(strArray[7]);
  8055. fieldValue1[(int) morph.hash[(object) "mayuv"]] = float.Parse(strArray[8]);
  8056. fieldValue1[(int) morph.hash[(object) "mayuvhalf"]] = float.Parse(strArray[9]);
  8057. fieldValue1[(int) morph.hash[(object) "moutha"]] = float.Parse(strArray[10]);
  8058. fieldValue1[(int) morph.hash[(object) "mouths"]] = float.Parse(strArray[11]);
  8059. fieldValue1[(int) morph.hash[(object) "mouthdw"]] = float.Parse(strArray[12]);
  8060. fieldValue1[(int) morph.hash[(object) "mouthup"]] = float.Parse(strArray[13]);
  8061. fieldValue1[(int) morph.hash[(object) "tangout"]] = float.Parse(strArray[14]);
  8062. fieldValue1[(int) morph.hash[(object) "tangup"]] = float.Parse(strArray[15]);
  8063. fieldValue1[(int) morph.hash[(object) "eyebig"]] = float.Parse(strArray[16]);
  8064. fieldValue2[(int) morph.hash[(object) "eyeclose5"]] = float.Parse(strArray[17]);
  8065. fieldValue1[(int) morph.hash[(object) "mayuw"]] = float.Parse(strArray[18]);
  8066. fieldValue1[(int) morph.hash[(object) "mouthhe"]] = float.Parse(strArray[19]);
  8067. fieldValue1[(int) morph.hash[(object) "mouthc"]] = float.Parse(strArray[20]);
  8068. fieldValue1[(int) morph.hash[(object) "mouthi"]] = float.Parse(strArray[21]);
  8069. fieldValue1[(int) morph.hash[(object) "mouthuphalf"]] = float.Parse(strArray[22]) + 0.01f;
  8070. try
  8071. {
  8072. fieldValue1[(int) morph.hash[(object) "tangopen"]] = float.Parse(strArray[23]);
  8073. }
  8074. catch { }
  8075. if ((double) float.Parse(strArray[24]) == 1.0)
  8076. fieldValue1[(int) morph.hash[(object) "namida"]] = 1f;
  8077. else
  8078. fieldValue1[(int) morph.hash[(object) "namida"]] = 0.0f;
  8079. if ((double) float.Parse(strArray[25]) == 1.0)
  8080. fieldValue1[(int) morph.hash[(object) "tear1"]] = 1f;
  8081. else
  8082. fieldValue1[(int) morph.hash[(object) "tear1"]] = 0.0f;
  8083. if ((double) float.Parse(strArray[26]) == 1.0)
  8084. fieldValue1[(int) morph.hash[(object) "tear2"]] = 1f;
  8085. else
  8086. fieldValue1[(int) morph.hash[(object) "tear2"]] = 0.0f;
  8087. if ((double) float.Parse(strArray[27]) == 1.0)
  8088. fieldValue1[(int) morph.hash[(object) "tear3"]] = 1f;
  8089. else
  8090. fieldValue1[(int) morph.hash[(object) "tear3"]] = 0.0f;
  8091. if ((double) float.Parse(strArray[28]) == 1.0)
  8092. fieldValue1[(int) morph.hash[(object) "shock"]] = 1f;
  8093. else
  8094. fieldValue1[(int) morph.hash[(object) "shock"]] = 0.0f;
  8095. if ((double) float.Parse(strArray[29]) == 1.0)
  8096. fieldValue1[(int) morph.hash[(object) "yodare"]] = 1f;
  8097. else
  8098. fieldValue1[(int) morph.hash[(object) "yodare"]] = 0.0f;
  8099. if ((double) float.Parse(strArray[30]) == 1.0)
  8100. fieldValue1[(int) morph.hash[(object) "hoho"]] = 0.5f;
  8101. else
  8102. fieldValue1[(int) morph.hash[(object) "hoho"]] = 0.0f;
  8103. if ((double) float.Parse(strArray[31]) == 1.0)
  8104. fieldValue1[(int) morph.hash[(object) "hoho2"]] = 0.5f;
  8105. else
  8106. fieldValue1[(int) morph.hash[(object) "hoho2"]] = 0.0f;
  8107. if ((double) float.Parse(strArray[32]) == 1.0)
  8108. fieldValue1[(int) morph.hash[(object) "hohos"]] = 1f;
  8109. else
  8110. fieldValue1[(int) morph.hash[(object) "hohos"]] = 0.0f;
  8111. if ((double) float.Parse(strArray[33]) == 1.0)
  8112. fieldValue1[(int) morph.hash[(object) "hohol"]] = 1f;
  8113. else
  8114. fieldValue1[(int) morph.hash[(object) "hohol"]] = 0.0f;
  8115. if ((double) float.Parse(strArray[34]) == 1.0)
  8116. fieldValue1[(int) morph.hash[(object) "toothoff"]] = 1f;
  8117. else
  8118. fieldValue1[(int) morph.hash[(object) "toothoff"]] = 0.0f;
  8119. if (strArray.Length > 35)
  8120. morph.boNoseFook = (double) float.Parse(strArray[35]) == 1.0;
  8121. }
  8122. maidArray[selectMaidIndex].body0.Face.morph.FixBlendValues_Face();
  8123. isFaceInit = true;
  8124. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  8125. }
  8126. if (!isShosai)
  8127. {
  8128. GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(130), (float) this.GetPix(100), (float) this.GetPix(25)),
  8129. "目の開閉",
  8130. style1);
  8131. eyeclose = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8132. (float) this.GetPix(150),
  8133. (float) this.GetPix(70),
  8134. (float) this.GetPix(20)),
  8135. eyeclose,
  8136. 0.0f,
  8137. 1f);
  8138. GUI.Label(new Rect((float) this.GetPix(88), (float) this.GetPix(130), (float) this.GetPix(100), (float) this.GetPix(25)),
  8139. "にっこり",
  8140. style1);
  8141. eyeclose2 = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8142. (float) this.GetPix(150),
  8143. (float) this.GetPix(70),
  8144. (float) this.GetPix(20)),
  8145. eyeclose2,
  8146. 0.0f,
  8147. 1f);
  8148. GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(170), (float) this.GetPix(100), (float) this.GetPix(25)),
  8149. "ジト目",
  8150. style1);
  8151. eyeclose3 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8152. (float) this.GetPix(190),
  8153. (float) this.GetPix(70),
  8154. (float) this.GetPix(20)),
  8155. eyeclose3,
  8156. 0.0f,
  8157. 1f);
  8158. GUI.Label(new Rect((float) this.GetPix(88), (float) this.GetPix(170), (float) this.GetPix(100), (float) this.GetPix(25)),
  8159. "ウインク",
  8160. style1);
  8161. eyeclose6 = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8162. (float) this.GetPix(190),
  8163. (float) this.GetPix(70),
  8164. (float) this.GetPix(20)),
  8165. eyeclose6,
  8166. 0.0f,
  8167. 1f);
  8168. GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(210), (float) this.GetPix(100), (float) this.GetPix(25)),
  8169. "ハイライト",
  8170. style1);
  8171. hitomih = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8172. (float) this.GetPix(230),
  8173. (float) this.GetPix(70),
  8174. (float) this.GetPix(20)),
  8175. hitomih,
  8176. 0.0f,
  8177. 2f);
  8178. GUI.Label(new Rect((float) this.GetPix(88), (float) this.GetPix(210), (float) this.GetPix(100), (float) this.GetPix(25)),
  8179. "瞳サイズ",
  8180. style1);
  8181. hitomis = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8182. (float) this.GetPix(230),
  8183. (float) this.GetPix(70),
  8184. (float) this.GetPix(20)),
  8185. hitomis,
  8186. 0.0f,
  8187. 1f);
  8188. GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(250), (float) this.GetPix(100), (float) this.GetPix(25)),
  8189. "眉角度",
  8190. style1);
  8191. mayuha = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8192. (float) this.GetPix(270),
  8193. (float) this.GetPix(70),
  8194. (float) this.GetPix(20)),
  8195. mayuha,
  8196. 0.0f,
  8197. 1f);
  8198. GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(290), (float) this.GetPix(100), (float) this.GetPix(25)),
  8199. "眉上げ",
  8200. style1);
  8201. mayuup = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8202. (float) this.GetPix(310),
  8203. (float) this.GetPix(70),
  8204. (float) this.GetPix(20)),
  8205. mayuup,
  8206. 0.0f,
  8207. 0.8f);
  8208. GUI.Label(new Rect((float) this.GetPix(88), (float) this.GetPix(290), (float) this.GetPix(100), (float) this.GetPix(25)),
  8209. "眉下げ",
  8210. style1);
  8211. mayuv = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8212. (float) this.GetPix(310),
  8213. (float) this.GetPix(70),
  8214. (float) this.GetPix(20)),
  8215. mayuv,
  8216. 0.0f,
  8217. 0.8f);
  8218. GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(330), (float) this.GetPix(100), (float) this.GetPix(25)),
  8219. "口開け1",
  8220. style1);
  8221. moutha = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8222. (float) this.GetPix(350),
  8223. (float) this.GetPix(70),
  8224. (float) this.GetPix(20)),
  8225. moutha,
  8226. 0.0f,
  8227. 1f);
  8228. GUI.Label(new Rect((float) this.GetPix(88), (float) this.GetPix(330), (float) this.GetPix(100), (float) this.GetPix(25)),
  8229. "口開け2",
  8230. style1);
  8231. mouths = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8232. (float) this.GetPix(350),
  8233. (float) this.GetPix(70),
  8234. (float) this.GetPix(20)),
  8235. mouths,
  8236. 0.0f,
  8237. 0.9f);
  8238. GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(370), (float) this.GetPix(100), (float) this.GetPix(25)),
  8239. "口角上げ",
  8240. style1);
  8241. mouthup = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8242. (float) this.GetPix(390),
  8243. (float) this.GetPix(70),
  8244. (float) this.GetPix(20)),
  8245. mouthup,
  8246. 0.0f,
  8247. 1.4f);
  8248. GUI.Label(new Rect((float) this.GetPix(88), (float) this.GetPix(370), (float) this.GetPix(100), (float) this.GetPix(25)),
  8249. "口角下げ",
  8250. style1);
  8251. mouthdw = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8252. (float) this.GetPix(390),
  8253. (float) this.GetPix(70),
  8254. (float) this.GetPix(20)),
  8255. mouthdw,
  8256. 0.0f,
  8257. 1f);
  8258. GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(410), (float) this.GetPix(100), (float) this.GetPix(25)),
  8259. "舌出し",
  8260. style1);
  8261. tangout = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8262. (float) this.GetPix(430),
  8263. (float) this.GetPix(70),
  8264. (float) this.GetPix(20)),
  8265. tangout,
  8266. 0.0f,
  8267. 1f);
  8268. GUI.Label(new Rect((float) this.GetPix(88), (float) this.GetPix(410), (float) this.GetPix(100), (float) this.GetPix(25)),
  8269. "舌上げ",
  8270. style1);
  8271. tangup = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8272. (float) this.GetPix(430),
  8273. (float) this.GetPix(70),
  8274. (float) this.GetPix(20)),
  8275. tangup,
  8276. 0.0f,
  8277. 0.7f);
  8278. isHoho2 = GUI.Toggle(new Rect((float) this.GetPix(5),
  8279. (float) this.GetPix(455),
  8280. (float) this.GetPix(50),
  8281. (float) this.GetPix(20)),
  8282. isHoho2,
  8283. "赤面",
  8284. style4);
  8285. isShock = GUI.Toggle(new Rect((float) this.GetPix(60),
  8286. (float) this.GetPix(455),
  8287. (float) this.GetPix(70),
  8288. (float) this.GetPix(20)),
  8289. isShock,
  8290. "ショック",
  8291. style4);
  8292. isNamida = GUI.Toggle(new Rect((float) this.GetPix(5),
  8293. (float) this.GetPix(480),
  8294. (float) this.GetPix(50),
  8295. (float) this.GetPix(20)),
  8296. isNamida,
  8297. "涙",
  8298. style4);
  8299. isYodare = GUI.Toggle(new Rect((float) this.GetPix(60),
  8300. (float) this.GetPix(480),
  8301. (float) this.GetPix(50),
  8302. (float) this.GetPix(20)),
  8303. isYodare,
  8304. "涎",
  8305. style4);
  8306. isTear1 = GUI.Toggle(new Rect((float) this.GetPix(5),
  8307. (float) this.GetPix(505),
  8308. (float) this.GetPix(50),
  8309. (float) this.GetPix(20)),
  8310. isTear1,
  8311. "涙1",
  8312. style4);
  8313. isTear2 = GUI.Toggle(new Rect((float) this.GetPix(60),
  8314. (float) this.GetPix(505),
  8315. (float) this.GetPix(50),
  8316. (float) this.GetPix(20)),
  8317. isTear2,
  8318. "涙2",
  8319. style4);
  8320. isTear3 = GUI.Toggle(new Rect((float) this.GetPix(115),
  8321. (float) this.GetPix(505),
  8322. (float) this.GetPix(50),
  8323. (float) this.GetPix(20)),
  8324. isTear3,
  8325. "涙3",
  8326. style4);
  8327. isHohos = GUI.Toggle(new Rect((float) this.GetPix(5),
  8328. (float) this.GetPix(530),
  8329. (float) this.GetPix(50),
  8330. (float) this.GetPix(20)),
  8331. isHohos,
  8332. "頬1",
  8333. style4);
  8334. isHoho = GUI.Toggle(new Rect((float) this.GetPix(60),
  8335. (float) this.GetPix(530),
  8336. (float) this.GetPix(50),
  8337. (float) this.GetPix(20)),
  8338. isHoho,
  8339. "頬2",
  8340. style4);
  8341. isHohol = GUI.Toggle(new Rect((float) this.GetPix(115),
  8342. (float) this.GetPix(530),
  8343. (float) this.GetPix(50),
  8344. (float) this.GetPix(20)),
  8345. isHohol,
  8346. "頬3",
  8347. style4);
  8348. }
  8349. else
  8350. {
  8351. int i1 = 120;
  8352. int i2 = 135;
  8353. int num = 28;
  8354. GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(i1), (float) this.GetPix(100), (float) this.GetPix(25)),
  8355. "目の開閉",
  8356. style2);
  8357. eyeclose = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8358. (float) this.GetPix(i2),
  8359. (float) this.GetPix(70),
  8360. (float) this.GetPix(20)),
  8361. eyeclose,
  8362. 0.0f,
  8363. 1f);
  8364. GUI.Label(new Rect((float) this.GetPix(88), (float) this.GetPix(i1), (float) this.GetPix(100), (float) this.GetPix(25)),
  8365. "にっこり",
  8366. style2);
  8367. eyeclose2 = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8368. (float) this.GetPix(i2),
  8369. (float) this.GetPix(70),
  8370. (float) this.GetPix(20)),
  8371. eyeclose2,
  8372. 0.0f,
  8373. 1f);
  8374. GUI.Label(new Rect((float) this.GetPix(8),
  8375. (float) this.GetPix(i1 + num),
  8376. (float) this.GetPix(100),
  8377. (float) this.GetPix(25)),
  8378. "ジト目",
  8379. style2);
  8380. eyeclose3 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8381. (float) this.GetPix(i2 + num),
  8382. (float) this.GetPix(70),
  8383. (float) this.GetPix(20)),
  8384. eyeclose3,
  8385. 0.0f,
  8386. 1f);
  8387. GUI.Label(new Rect((float) this.GetPix(88),
  8388. (float) this.GetPix(i1 + num),
  8389. (float) this.GetPix(100),
  8390. (float) this.GetPix(25)),
  8391. "見開く",
  8392. style2);
  8393. eyebig = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8394. (float) this.GetPix(i2 + num),
  8395. (float) this.GetPix(70),
  8396. (float) this.GetPix(20)),
  8397. eyebig,
  8398. 0.0f,
  8399. 1f);
  8400. GUI.Label(new Rect((float) this.GetPix(8),
  8401. (float) this.GetPix(i1 + num * 2),
  8402. (float) this.GetPix(100),
  8403. (float) this.GetPix(25)),
  8404. "ウインク1",
  8405. style2);
  8406. eyeclose6 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8407. (float) this.GetPix(i2 + num * 2),
  8408. (float) this.GetPix(70),
  8409. (float) this.GetPix(20)),
  8410. eyeclose6,
  8411. 0.0f,
  8412. 1f);
  8413. GUI.Label(new Rect((float) this.GetPix(88),
  8414. (float) this.GetPix(i1 + num * 2),
  8415. (float) this.GetPix(100),
  8416. (float) this.GetPix(25)),
  8417. "ウインク2",
  8418. style2);
  8419. eyeclose5 = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8420. (float) this.GetPix(i2 + num * 2),
  8421. (float) this.GetPix(70),
  8422. (float) this.GetPix(20)),
  8423. eyeclose5,
  8424. 0.0f,
  8425. 1f);
  8426. GUI.Label(new Rect((float) this.GetPix(8),
  8427. (float) this.GetPix(i1 + num * 3),
  8428. (float) this.GetPix(100),
  8429. (float) this.GetPix(25)),
  8430. "ハイライト",
  8431. style2);
  8432. hitomih = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8433. (float) this.GetPix(i2 + num * 3),
  8434. (float) this.GetPix(70),
  8435. (float) this.GetPix(20)),
  8436. hitomih,
  8437. 0.0f,
  8438. 2f);
  8439. GUI.Label(new Rect((float) this.GetPix(88),
  8440. (float) this.GetPix(i1 + num * 3),
  8441. (float) this.GetPix(100),
  8442. (float) this.GetPix(25)),
  8443. "瞳サイズ",
  8444. style2);
  8445. hitomis = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8446. (float) this.GetPix(i2 + num * 3),
  8447. (float) this.GetPix(70),
  8448. (float) this.GetPix(20)),
  8449. hitomis,
  8450. 0.0f,
  8451. 1f);
  8452. GUI.Label(new Rect((float) this.GetPix(8),
  8453. (float) this.GetPix(i1 + num * 4),
  8454. (float) this.GetPix(100),
  8455. (float) this.GetPix(25)),
  8456. "眉角度1",
  8457. style2);
  8458. mayuha = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8459. (float) this.GetPix(i2 + num * 4),
  8460. (float) this.GetPix(70),
  8461. (float) this.GetPix(20)),
  8462. mayuha,
  8463. 0.0f,
  8464. 1f);
  8465. GUI.Label(new Rect((float) this.GetPix(88),
  8466. (float) this.GetPix(i1 + num * 4),
  8467. (float) this.GetPix(100),
  8468. (float) this.GetPix(25)),
  8469. "眉角度2",
  8470. style2);
  8471. mayuw = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8472. (float) this.GetPix(i2 + num * 4),
  8473. (float) this.GetPix(70),
  8474. (float) this.GetPix(20)),
  8475. mayuw,
  8476. 0.0f,
  8477. 1f);
  8478. GUI.Label(new Rect((float) this.GetPix(8),
  8479. (float) this.GetPix(i1 + num * 5),
  8480. (float) this.GetPix(100),
  8481. (float) this.GetPix(25)),
  8482. "眉上げ",
  8483. style2);
  8484. mayuup = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8485. (float) this.GetPix(i2 + num * 5),
  8486. (float) this.GetPix(70),
  8487. (float) this.GetPix(20)),
  8488. mayuup,
  8489. 0.0f,
  8490. 0.8f);
  8491. GUI.Label(new Rect((float) this.GetPix(88),
  8492. (float) this.GetPix(i1 + num * 5),
  8493. (float) this.GetPix(100),
  8494. (float) this.GetPix(25)),
  8495. "眉下げ1",
  8496. style2);
  8497. mayuv = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8498. (float) this.GetPix(i2 + num * 5),
  8499. (float) this.GetPix(70),
  8500. (float) this.GetPix(20)),
  8501. mayuv,
  8502. 0.0f,
  8503. 0.8f);
  8504. GUI.Label(new Rect((float) this.GetPix(8),
  8505. (float) this.GetPix(i1 + num * 6),
  8506. (float) this.GetPix(100),
  8507. (float) this.GetPix(25)),
  8508. "眉下げ2",
  8509. style2);
  8510. mayuvhalf = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8511. (float) this.GetPix(i2 + num * 6),
  8512. (float) this.GetPix(70),
  8513. (float) this.GetPix(20)),
  8514. mayuvhalf,
  8515. 0.0f,
  8516. 0.9f);
  8517. GUI.Label(new Rect((float) this.GetPix(8),
  8518. (float) this.GetPix(i1 + num * 7),
  8519. (float) this.GetPix(100),
  8520. (float) this.GetPix(25)),
  8521. "口開け1",
  8522. style2);
  8523. moutha = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8524. (float) this.GetPix(i2 + num * 7),
  8525. (float) this.GetPix(70),
  8526. (float) this.GetPix(20)),
  8527. moutha,
  8528. 0.0f,
  8529. 1f);
  8530. GUI.Label(new Rect((float) this.GetPix(88),
  8531. (float) this.GetPix(i1 + num * 7),
  8532. (float) this.GetPix(100),
  8533. (float) this.GetPix(25)),
  8534. "口開け2",
  8535. style2);
  8536. mouths = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8537. (float) this.GetPix(i2 + num * 7),
  8538. (float) this.GetPix(70),
  8539. (float) this.GetPix(20)),
  8540. mouths,
  8541. 0.0f,
  8542. 0.9f);
  8543. GUI.Label(new Rect((float) this.GetPix(8),
  8544. (float) this.GetPix(i1 + num * 8),
  8545. (float) this.GetPix(100),
  8546. (float) this.GetPix(25)),
  8547. "口幅狭く",
  8548. style2);
  8549. mouthc = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8550. (float) this.GetPix(i2 + num * 8),
  8551. (float) this.GetPix(70),
  8552. (float) this.GetPix(20)),
  8553. mouthc,
  8554. 0.0f,
  8555. 1f);
  8556. GUI.Label(new Rect((float) this.GetPix(88),
  8557. (float) this.GetPix(i1 + num * 8),
  8558. (float) this.GetPix(100),
  8559. (float) this.GetPix(25)),
  8560. "口幅広く",
  8561. style2);
  8562. mouthi = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8563. (float) this.GetPix(i2 + num * 8),
  8564. (float) this.GetPix(70),
  8565. (float) this.GetPix(20)),
  8566. mouthi,
  8567. 0.0f,
  8568. 1f);
  8569. GUI.Label(new Rect((float) this.GetPix(8),
  8570. (float) this.GetPix(i1 + num * 9),
  8571. (float) this.GetPix(100),
  8572. (float) this.GetPix(25)),
  8573. "口角上げ",
  8574. style2);
  8575. mouthup = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8576. (float) this.GetPix(i2 + num * 9),
  8577. (float) this.GetPix(70),
  8578. (float) this.GetPix(20)),
  8579. mouthup,
  8580. 0.0f,
  8581. 1.4f);
  8582. GUI.Label(new Rect((float) this.GetPix(88),
  8583. (float) this.GetPix(i1 + num * 9),
  8584. (float) this.GetPix(100),
  8585. (float) this.GetPix(25)),
  8586. "口角下げ",
  8587. style2);
  8588. mouthdw = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8589. (float) this.GetPix(i2 + num * 9),
  8590. (float) this.GetPix(70),
  8591. (float) this.GetPix(20)),
  8592. mouthdw,
  8593. 0.0f,
  8594. 1f);
  8595. GUI.Label(new Rect((float) this.GetPix(8),
  8596. (float) this.GetPix(i1 + num * 10),
  8597. (float) this.GetPix(100),
  8598. (float) this.GetPix(25)),
  8599. "口中央上げ",
  8600. style2);
  8601. mouthhe = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8602. (float) this.GetPix(i2 + num * 10),
  8603. (float) this.GetPix(70),
  8604. (float) this.GetPix(20)),
  8605. mouthhe,
  8606. 0.0f,
  8607. 1f);
  8608. GUI.Label(new Rect((float) this.GetPix(88),
  8609. (float) this.GetPix(i1 + num * 10),
  8610. (float) this.GetPix(100),
  8611. (float) this.GetPix(25)),
  8612. "左口角上げ",
  8613. style2);
  8614. mouthuphalf = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8615. (float) this.GetPix(i2 + num * 10),
  8616. (float) this.GetPix(70),
  8617. (float) this.GetPix(20)),
  8618. mouthuphalf,
  8619. 0.0f,
  8620. 2f);
  8621. GUI.Label(new Rect((float) this.GetPix(8),
  8622. (float) this.GetPix(i1 + num * 11),
  8623. (float) this.GetPix(100),
  8624. (float) this.GetPix(25)),
  8625. "舌出し",
  8626. style2);
  8627. tangout = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8628. (float) this.GetPix(i2 + num * 11),
  8629. (float) this.GetPix(70),
  8630. (float) this.GetPix(20)),
  8631. tangout,
  8632. 0.0f,
  8633. 1f);
  8634. GUI.Label(new Rect((float) this.GetPix(88),
  8635. (float) this.GetPix(i1 + num * 11),
  8636. (float) this.GetPix(100),
  8637. (float) this.GetPix(25)),
  8638. "舌上げ",
  8639. style2);
  8640. tangup = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8641. (float) this.GetPix(i2 + num * 11),
  8642. (float) this.GetPix(70),
  8643. (float) this.GetPix(20)),
  8644. tangup,
  8645. 0.0f,
  8646. 0.7f);
  8647. GUI.Label(new Rect((float) this.GetPix(8),
  8648. (float) this.GetPix(i1 + num * 12),
  8649. (float) this.GetPix(100),
  8650. (float) this.GetPix(25)),
  8651. "舌根上げ",
  8652. style2);
  8653. tangopen = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8654. (float) this.GetPix(i2 + num * 12),
  8655. (float) this.GetPix(70),
  8656. (float) this.GetPix(20)),
  8657. tangopen,
  8658. 0.0f,
  8659. 1f);
  8660. bool enabled = GUI.enabled;
  8661. if (!faceCombo.isClickedComboButton)
  8662. GUI.enabled = true;
  8663. GUI.enabled = enabled;
  8664. isHoho2 = GUI.Toggle(new Rect((float) this.GetPix(5),
  8665. (float) this.GetPix(489),
  8666. (float) this.GetPix(50),
  8667. (float) this.GetPix(16)),
  8668. isHoho2,
  8669. "赤面",
  8670. style4);
  8671. isShock = GUI.Toggle(new Rect((float) this.GetPix(60),
  8672. (float) this.GetPix(489),
  8673. (float) this.GetPix(58),
  8674. (float) this.GetPix(16)),
  8675. isShock,
  8676. "ショック",
  8677. style4);
  8678. isNosefook = GUI.Toggle(new Rect((float) this.GetPix(115),
  8679. (float) this.GetPix(489),
  8680. (float) this.GetPix(62),
  8681. (float) this.GetPix(16)),
  8682. isNosefook,
  8683. "鼻フック",
  8684. style4);
  8685. isNamida = GUI.Toggle(new Rect((float) this.GetPix(5),
  8686. (float) this.GetPix(511),
  8687. (float) this.GetPix(50),
  8688. (float) this.GetPix(16)),
  8689. isNamida,
  8690. "涙",
  8691. style4);
  8692. isYodare = GUI.Toggle(new Rect((float) this.GetPix(60),
  8693. (float) this.GetPix(511),
  8694. (float) this.GetPix(50),
  8695. (float) this.GetPix(16)),
  8696. isYodare,
  8697. "涎",
  8698. style4);
  8699. isToothoff = !GUI.Toggle(new Rect((float) this.GetPix(115),
  8700. (float) this.GetPix(511),
  8701. (float) this.GetPix(50),
  8702. (float) this.GetPix(16)),
  8703. !isToothoff,
  8704. "歯",
  8705. style4);
  8706. isTear1 = GUI.Toggle(new Rect((float) this.GetPix(5),
  8707. (float) this.GetPix(533),
  8708. (float) this.GetPix(50),
  8709. (float) this.GetPix(16)),
  8710. isTear1,
  8711. "涙1",
  8712. style4);
  8713. isTear2 = GUI.Toggle(new Rect((float) this.GetPix(60),
  8714. (float) this.GetPix(533),
  8715. (float) this.GetPix(50),
  8716. (float) this.GetPix(16)),
  8717. isTear2,
  8718. "涙2",
  8719. style4);
  8720. isTear3 = GUI.Toggle(new Rect((float) this.GetPix(115),
  8721. (float) this.GetPix(533),
  8722. (float) this.GetPix(50),
  8723. (float) this.GetPix(16)),
  8724. isTear3,
  8725. "涙3",
  8726. style4);
  8727. isHohos = GUI.Toggle(new Rect((float) this.GetPix(5),
  8728. (float) this.GetPix(555),
  8729. (float) this.GetPix(50),
  8730. (float) this.GetPix(16)),
  8731. isHohos,
  8732. "頬1",
  8733. style4);
  8734. isHoho = GUI.Toggle(new Rect((float) this.GetPix(60),
  8735. (float) this.GetPix(555),
  8736. (float) this.GetPix(50),
  8737. (float) this.GetPix(16)),
  8738. isHoho,
  8739. "頬2",
  8740. style4);
  8741. isHohol = GUI.Toggle(new Rect((float) this.GetPix(115),
  8742. (float) this.GetPix(555),
  8743. (float) this.GetPix(50),
  8744. (float) this.GetPix(16)),
  8745. isHohol,
  8746. "頬3",
  8747. style4);
  8748. }
  8749. int num1 = 0;
  8750. if (isShosai)
  8751. num1 = 22;
  8752. isFaceEdit = GUI.Toggle(new Rect((float) this.GetPix(5),
  8753. (float) this.GetPix(555 + num1),
  8754. (float) this.GetPix(50),
  8755. (float) this.GetPix(16)),
  8756. isFaceEdit,
  8757. "登録",
  8758. style4);
  8759. if (isFaceEdit)
  8760. {
  8761. inName4 = GUI.TextField(new Rect((float) this.GetPix(5),
  8762. (float) this.GetPix(575 + num1),
  8763. (float) this.GetPix(100),
  8764. (float) this.GetPix(20)),
  8765. inName4);
  8766. if (GUI.Button(new Rect((float) this.GetPix(107),
  8767. (float) this.GetPix(575 + num1),
  8768. (float) this.GetPix(35),
  8769. (float) this.GetPix(20)),
  8770. "追加",
  8771. style3))
  8772. {
  8773. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  8774. GUI.FocusControl("");
  8775. int num2 = 1;
  8776. for (int index = 1; index < 1000; ++index)
  8777. {
  8778. if (this.Preferences["face"]["f" + (object) index].Value == null)
  8779. {
  8780. num2 = index;
  8781. break;
  8782. }
  8783. }
  8784. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  8785. float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  8786. float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  8787. string str1 = inName4 + ":" + (object) fieldValue2[(int) morph.hash[(object) "eyeclose"]] + ","
  8788. + (object) fieldValue2[(int) morph.hash[(object) "eyeclose2"]] + ","
  8789. + (object) fieldValue2[(int) morph.hash[(object) "eyeclose3"]] + ","
  8790. + (object) fieldValue2[(int) morph.hash[(object) "eyeclose6"]] + ","
  8791. + (object) fieldValue1[(int) morph.hash[(object) "hitomih"]] + ","
  8792. + (object) fieldValue1[(int) morph.hash[(object) "hitomis"]] + ","
  8793. + (object) fieldValue1[(int) morph.hash[(object) "mayuha"]] + ","
  8794. + (object) fieldValue1[(int) morph.hash[(object) "mayuup"]] + ","
  8795. + (object) fieldValue1[(int) morph.hash[(object) "mayuv"]] + ","
  8796. + (object) fieldValue1[(int) morph.hash[(object) "mayuvhalf"]] + ","
  8797. + (object) fieldValue1[(int) morph.hash[(object) "moutha"]] + ","
  8798. + (object) fieldValue1[(int) morph.hash[(object) "mouths"]] + ","
  8799. + (object) fieldValue1[(int) morph.hash[(object) "mouthdw"]] + ","
  8800. + (object) fieldValue1[(int) morph.hash[(object) "mouthup"]] + ","
  8801. + (object) fieldValue1[(int) morph.hash[(object) "tangout"]] + ","
  8802. + (object) fieldValue1[(int) morph.hash[(object) "tangup"]] + ","
  8803. + (object) fieldValue1[(int) morph.hash[(object) "eyebig"]] + ","
  8804. + (object) fieldValue2[(int) morph.hash[(object) "eyeclose5"]] + ","
  8805. + (object) fieldValue1[(int) morph.hash[(object) "mayuw"]] + ","
  8806. + (object) fieldValue1[(int) morph.hash[(object) "mouthhe"]] + ","
  8807. + (object) fieldValue1[(int) morph.hash[(object) "mouthc"]] + ","
  8808. + (object) fieldValue1[(int) morph.hash[(object) "mouthi"]] + ","
  8809. + (object) fieldValue1[(int) morph.hash[(object) "mouthuphalf"]] + ",";
  8810. string str2;
  8811. try
  8812. {
  8813. str2 = str1 + (object) fieldValue1[(int) morph.hash[(object) "tangopen"]] + ",";
  8814. }
  8815. catch
  8816. {
  8817. str2 = str1 + "0,";
  8818. }
  8819. string str3 = (double) fieldValue1[(int) morph.hash[(object) "namida"]] <= 0.0
  8820. ? str2 + (object) 0 + ","
  8821. : str2 + (object) 1 + ",";
  8822. string str4 = (double) fieldValue1[(int) morph.hash[(object) "tear1"]] <= 0.0
  8823. ? str3 + (object) 0 + ","
  8824. : str3 + (object) 1 + ",";
  8825. string str5 = (double) fieldValue1[(int) morph.hash[(object) "tear2"]] <= 0.0
  8826. ? str4 + (object) 0 + ","
  8827. : str4 + (object) 1 + ",";
  8828. string str6 = (double) fieldValue1[(int) morph.hash[(object) "tear3"]] <= 0.0
  8829. ? str5 + (object) 0 + ","
  8830. : str5 + (object) 1 + ",";
  8831. string str7 = (double) fieldValue1[(int) morph.hash[(object) "shock"]] <= 0.0
  8832. ? str6 + (object) 0 + ","
  8833. : str6 + (object) 1 + ",";
  8834. string str8 = (double) fieldValue1[(int) morph.hash[(object) "yodare"]] <= 0.0
  8835. ? str7 + (object) 0 + ","
  8836. : str7 + (object) 1 + ",";
  8837. string str9 = (double) fieldValue1[(int) morph.hash[(object) "hoho"]] <= 0.0
  8838. ? str8 + (object) 0 + ","
  8839. : str8 + (object) 1 + ",";
  8840. string str10 = (double) fieldValue1[(int) morph.hash[(object) "hoho2"]] <= 0.0
  8841. ? str9 + (object) 0 + ","
  8842. : str9 + (object) 1 + ",";
  8843. string str11 = (double) fieldValue1[(int) morph.hash[(object) "hohos"]] <= 0.0
  8844. ? str10 + (object) 0 + ","
  8845. : str10 + (object) 1 + ",";
  8846. string str12 = (double) fieldValue1[(int) morph.hash[(object) "hohol"]] <= 0.0
  8847. ? str11 + (object) 0 + ","
  8848. : str11 + (object) 1 + ",";
  8849. string str13 = (double) fieldValue1[(int) morph.hash[(object) "toothoff"]] <= 0.0
  8850. ? str12 + (object) 0 + ","
  8851. : str12 + (object) 1 + ",";
  8852. string str14 = (double) fieldValue1[(int) morph.hash[(object) "nosefook"]] <= 0.0
  8853. ? str13 + (object) 0 + ":"
  8854. : str13 + (object) 1 + ":";
  8855. this.Preferences["face"]["f" + (object) num2].Value = str14;
  8856. this.SaveConfig();
  8857. List<string> stringList = new List<string>(300);
  8858. stringList.AddRange((IEnumerable<string>) faceArray);
  8859. for (int index = 1; index < 300; ++index)
  8860. {
  8861. IniKey iniKey = this.Preferences["face"]["f" + (object) index];
  8862. if (iniKey.Value != null)
  8863. {
  8864. string[] strArray = iniKey.Value.Split(':');
  8865. if (strArray.Length > 1)
  8866. stringList.Add(strArray[0] + "               :" + (object) index + ":" + strArray[1]);
  8867. }
  8868. else
  8869. break;
  8870. }
  8871. faceCombo.selectedItemIndex = 0;
  8872. faceComboList = new GUIContent[stringList.ToArray().Length];
  8873. for (int index = 0; index < stringList.ToArray().Length; ++index)
  8874. faceComboList[index] = new GUIContent(stringList.ToArray()[index]);
  8875. faceCombo.selectedItemIndex = stringList.ToArray().Length - 1;
  8876. inName4 = "";
  8877. }
  8878. if (faceIndex[selectMaidIndex] < faceArray.Length)
  8879. GUI.enabled = false;
  8880. if (GUI.Button(new Rect((float) this.GetPix(144),
  8881. (float) this.GetPix(575 + num1),
  8882. (float) this.GetPix(24),
  8883. (float) this.GetPix(20)),
  8884. "削",
  8885. style3))
  8886. {
  8887. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  8888. this.Preferences["face"]["f" + faceComboList[faceIndex[selectMaidIndex]].text.Split(':')[1]].Value = "del";
  8889. this.SaveConfig();
  8890. List<string> stringList = new List<string>(300);
  8891. stringList.AddRange((IEnumerable<string>) faceArray);
  8892. for (int index = 1; index < 300; ++index)
  8893. {
  8894. IniKey iniKey = this.Preferences["face"]["f" + (object) index];
  8895. if (iniKey.Value != null)
  8896. {
  8897. string[] strArray = iniKey.Value.Split(':');
  8898. if (strArray.Length > 1)
  8899. stringList.Add(strArray[0] + "               :" + (object) index + ":" + strArray[1]);
  8900. }
  8901. else
  8902. break;
  8903. }
  8904. faceCombo.selectedItemIndex = 0;
  8905. faceComboList = new GUIContent[stringList.ToArray().Length];
  8906. for (int index = 0; index < stringList.ToArray().Length; ++index)
  8907. faceComboList[index] = new GUIContent(stringList.ToArray()[index]);
  8908. faceCombo.selectedItemIndex = 0;
  8909. for (int index = 0; index < maidCnt; ++index)
  8910. {
  8911. if ((bool) ((Object) maidArray[index]) && maidArray[index].Visible
  8912. && stringList.ToArray().Length <= faceIndex[index])
  8913. faceIndex[index] = 0;
  8914. }
  8915. }
  8916. GUI.enabled = true;
  8917. }
  8918. if (faceCombo.isClickedComboButton)
  8919. GUI.enabled = true;
  8920. if (isFace[selectMaidIndex])
  8921. faceIndex[selectMaidIndex] =
  8922. faceCombo.List(new Rect((float) this.GetPix(35),
  8923. (float) this.GetPix(95),
  8924. (float) this.GetPix(95),
  8925. (float) this.GetPix(23)),
  8926. faceComboList[faceIndex[selectMaidIndex]].text,
  8927. faceComboList,
  8928. buttonStyle,
  8929. (GUIStyle) "box",
  8930. listStyle2);
  8931. else
  8932. faceCombo.List(new Rect((float) this.GetPix(35), (float) this.GetPix(95), (float) this.GetPix(95), (float) this.GetPix(23)),
  8933. faceComboList[faceIndex[selectMaidIndex]].text,
  8934. faceComboList,
  8935. buttonStyle,
  8936. (GUIStyle) "box",
  8937. listStyle2);
  8938. if (faceCombo.isClickedComboButton)
  8939. isCombo = true;
  8940. else if (isCombo)
  8941. {
  8942. isCombo = false;
  8943. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  8944. float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  8945. morph.EyeMabataki = 0.0f;
  8946. if (faceIndex[selectMaidIndex] < faceArray.Length)
  8947. {
  8948. morph.MulBlendValues(faceArray[faceIndex[selectMaidIndex]], 1f);
  8949. }
  8950. else
  8951. {
  8952. float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  8953. if (!isVR)
  8954. maidArray[selectMaidIndex].boMabataki = false;
  8955. string[] strArray = faceComboList[faceIndex[selectMaidIndex]].text.Split(':')[2].Split(',');
  8956. fieldValue2[(int) morph.hash[(object) "eyeclose"]] = float.Parse(strArray[0]);
  8957. fieldValue2[(int) morph.hash[(object) "eyeclose2"]] = float.Parse(strArray[1]);
  8958. fieldValue2[(int) morph.hash[(object) "eyeclose3"]] = float.Parse(strArray[2]);
  8959. fieldValue2[(int) morph.hash[(object) "eyeclose6"]] = float.Parse(strArray[3]);
  8960. fieldValue1[(int) morph.hash[(object) "hitomih"]] = float.Parse(strArray[4]);
  8961. fieldValue1[(int) morph.hash[(object) "hitomis"]] = float.Parse(strArray[5]);
  8962. fieldValue1[(int) morph.hash[(object) "mayuha"]] = float.Parse(strArray[6]);
  8963. fieldValue1[(int) morph.hash[(object) "mayuup"]] = float.Parse(strArray[7]);
  8964. fieldValue1[(int) morph.hash[(object) "mayuv"]] = float.Parse(strArray[8]);
  8965. fieldValue1[(int) morph.hash[(object) "mayuvhalf"]] = float.Parse(strArray[9]);
  8966. fieldValue1[(int) morph.hash[(object) "moutha"]] = float.Parse(strArray[10]);
  8967. fieldValue1[(int) morph.hash[(object) "mouths"]] = float.Parse(strArray[11]);
  8968. fieldValue1[(int) morph.hash[(object) "mouthdw"]] = float.Parse(strArray[12]);
  8969. fieldValue1[(int) morph.hash[(object) "mouthup"]] = float.Parse(strArray[13]);
  8970. fieldValue1[(int) morph.hash[(object) "tangout"]] = float.Parse(strArray[14]);
  8971. fieldValue1[(int) morph.hash[(object) "tangup"]] = float.Parse(strArray[15]);
  8972. fieldValue1[(int) morph.hash[(object) "eyebig"]] = float.Parse(strArray[16]);
  8973. fieldValue2[(int) morph.hash[(object) "eyeclose5"]] = float.Parse(strArray[17]);
  8974. fieldValue1[(int) morph.hash[(object) "mayuw"]] = float.Parse(strArray[18]);
  8975. fieldValue1[(int) morph.hash[(object) "mouthhe"]] = float.Parse(strArray[19]);
  8976. fieldValue1[(int) morph.hash[(object) "mouthc"]] = float.Parse(strArray[20]);
  8977. fieldValue1[(int) morph.hash[(object) "mouthi"]] = float.Parse(strArray[21]);
  8978. fieldValue1[(int) morph.hash[(object) "mouthuphalf"]] = float.Parse(strArray[22]) + 0.01f;
  8979. try
  8980. {
  8981. fieldValue1[(int) morph.hash[(object) "tangopen"]] = float.Parse(strArray[23]);
  8982. }
  8983. catch { }
  8984. if ((double) float.Parse(strArray[24]) == 1.0)
  8985. fieldValue1[(int) morph.hash[(object) "namida"]] = 1f;
  8986. else
  8987. fieldValue1[(int) morph.hash[(object) "namida"]] = 0.0f;
  8988. if ((double) float.Parse(strArray[25]) == 1.0)
  8989. fieldValue1[(int) morph.hash[(object) "tear1"]] = 1f;
  8990. else
  8991. fieldValue1[(int) morph.hash[(object) "tear1"]] = 0.0f;
  8992. if ((double) float.Parse(strArray[26]) == 1.0)
  8993. fieldValue1[(int) morph.hash[(object) "tear2"]] = 1f;
  8994. else
  8995. fieldValue1[(int) morph.hash[(object) "tear2"]] = 0.0f;
  8996. if ((double) float.Parse(strArray[27]) == 1.0)
  8997. fieldValue1[(int) morph.hash[(object) "tear3"]] = 1f;
  8998. else
  8999. fieldValue1[(int) morph.hash[(object) "tear3"]] = 0.0f;
  9000. if ((double) float.Parse(strArray[28]) == 1.0)
  9001. fieldValue1[(int) morph.hash[(object) "shock"]] = 1f;
  9002. else
  9003. fieldValue1[(int) morph.hash[(object) "shock"]] = 0.0f;
  9004. if ((double) float.Parse(strArray[29]) == 1.0)
  9005. fieldValue1[(int) morph.hash[(object) "yodare"]] = 1f;
  9006. else
  9007. fieldValue1[(int) morph.hash[(object) "yodare"]] = 0.0f;
  9008. if ((double) float.Parse(strArray[30]) == 1.0)
  9009. fieldValue1[(int) morph.hash[(object) "hoho"]] = 0.5f;
  9010. else
  9011. fieldValue1[(int) morph.hash[(object) "hoho"]] = 0.0f;
  9012. if ((double) float.Parse(strArray[31]) == 1.0)
  9013. fieldValue1[(int) morph.hash[(object) "hoho2"]] = 0.5f;
  9014. else
  9015. fieldValue1[(int) morph.hash[(object) "hoho2"]] = 0.0f;
  9016. if ((double) float.Parse(strArray[32]) == 1.0)
  9017. fieldValue1[(int) morph.hash[(object) "hohos"]] = 1f;
  9018. else
  9019. fieldValue1[(int) morph.hash[(object) "hohos"]] = 0.0f;
  9020. if ((double) float.Parse(strArray[33]) == 1.0)
  9021. fieldValue1[(int) morph.hash[(object) "hohol"]] = 1f;
  9022. else
  9023. fieldValue1[(int) morph.hash[(object) "hohol"]] = 0.0f;
  9024. if ((double) float.Parse(strArray[34]) == 1.0)
  9025. fieldValue1[(int) morph.hash[(object) "toothoff"]] = 1f;
  9026. else
  9027. fieldValue1[(int) morph.hash[(object) "toothoff"]] = 0.0f;
  9028. if (strArray.Length > 35)
  9029. morph.boNoseFook = (double) float.Parse(strArray[35]) == 1.0;
  9030. }
  9031. maidArray[selectMaidIndex].body0.Face.morph.FixBlendValues_Face();
  9032. isFaceInit = true;
  9033. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  9034. }
  9035. GUI.enabled = !faceCombo.isClickedComboButton;
  9036. yotogiFlg = false;
  9037. if (sceneLevel != 14
  9038. || !(bool)
  9039. ((Object)
  9040. GameObject
  9041. .Find("/UI Root/YotogiPlayPanel/CommandViewer/SkillViewer/MaskGroup/SkillGroup/CommandParent/CommandUnit")
  9042. ))
  9043. return;
  9044. yotogiFlg = true;
  9045. }
  9046. private void GuiFunc(int winID)
  9047. {
  9048. CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
  9049. GUIStyle style1 = (GUIStyle) "label";
  9050. style1.fontSize = this.GetPix(14);
  9051. style1.alignment = TextAnchor.UpperLeft;
  9052. GUIStyle style2 = (GUIStyle) "button";
  9053. style2.fontSize = this.GetPix(16);
  9054. style2.alignment = TextAnchor.MiddleCenter;
  9055. GUIStyle style3 = new GUIStyle((GUIStyle) "toggle");
  9056. style3.fontSize = this.GetPix(13);
  9057. float pix = (float) this.GetPix(70);
  9058. if (comboBoxList == null)
  9059. {
  9060. comboBoxControl.selectedItemIndex = 0;
  9061. comboBoxList = new GUIContent[11];
  9062. comboBoxList[0] = new GUIContent("通常");
  9063. comboBoxList[1] = new GUIContent("横一列");
  9064. comboBoxList[2] = new GUIContent("縦一列");
  9065. comboBoxList[3] = new GUIContent("斜め");
  9066. comboBoxList[4] = new GUIContent("円(外向き)");
  9067. comboBoxList[5] = new GUIContent("円(内向き)");
  9068. comboBoxList[6] = new GUIContent("扇");
  9069. comboBoxList[7] = new GUIContent("V");
  9070. comboBoxList[8] = new GUIContent("^");
  9071. comboBoxList[9] = new GUIContent("M");
  9072. comboBoxList[10] = new GUIContent("W");
  9073. }
  9074. bool flag1 = true;
  9075. if (faceFlg || poseFlg || (sceneFlg || kankyoFlg) || kankyo2Flg)
  9076. flag1 = false;
  9077. if (!isF6 && GUI.Toggle(new Rect((float) this.GetPix(2),
  9078. (float) this.GetPix(2),
  9079. (float) this.GetPix(39),
  9080. (float) this.GetPix(20)),
  9081. flag1,
  9082. "配置",
  9083. style3))
  9084. {
  9085. faceFlg = false;
  9086. poseFlg = false;
  9087. sceneFlg = false;
  9088. kankyoFlg = false;
  9089. kankyo2Flg = false;
  9090. bGui = true;
  9091. isGuiInit = true;
  9092. }
  9093. if (!yotogiFlg && GUI.Toggle(new Rect((float) this.GetPix(41),
  9094. (float) this.GetPix(2),
  9095. (float) this.GetPix(39),
  9096. (float) this.GetPix(20)),
  9097. poseFlg,
  9098. "操作",
  9099. style3))
  9100. {
  9101. poseFlg = true;
  9102. faceFlg = false;
  9103. sceneFlg = false;
  9104. kankyoFlg = false;
  9105. kankyo2Flg = false;
  9106. }
  9107. if (GUI.Toggle(new Rect((float) this.GetPix(80), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
  9108. faceFlg,
  9109. "表情",
  9110. style3))
  9111. {
  9112. faceFlg = true;
  9113. poseFlg = false;
  9114. sceneFlg = false;
  9115. kankyoFlg = false;
  9116. kankyo2Flg = false;
  9117. if (!faceFlg2)
  9118. {
  9119. isFaceInit = true;
  9120. faceFlg2 = true;
  9121. maidArray[selectMaidIndex].boMabataki = false;
  9122. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  9123. }
  9124. }
  9125. if (GUI.Toggle(new Rect((float) this.GetPix(119), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
  9126. kankyoFlg,
  9127. "環境",
  9128. style3))
  9129. {
  9130. poseFlg = false;
  9131. faceFlg = false;
  9132. sceneFlg = false;
  9133. kankyoFlg = true;
  9134. kankyo2Flg = false;
  9135. }
  9136. if (!(bool) ((Object) line1))
  9137. {
  9138. line1 = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.3f));
  9139. line2 = this.MakeTex(2, 2, new Color(0.7f, 0.7f, 0.7f, 0.6f));
  9140. }
  9141. GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(20), (float) this.GetPix(160), 2f), (Texture) line1);
  9142. GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(20), (float) this.GetPix(160), 1f), (Texture) line2);
  9143. int stockMaidCount1 = characterMgr.GetStockMaidCount();
  9144. Rect position;
  9145. Rect viewRect;
  9146. if (sceneLevel != 5)
  9147. {
  9148. position = new Rect((float) this.GetPix(7),
  9149. (float) this.GetPix(110),
  9150. rectWin.width - (float) this.GetPix(14),
  9151. rectWin.height * 0.83f);
  9152. viewRect = new Rect(0.0f,
  9153. 0.0f,
  9154. position.width * 0.85f,
  9155. (pix + (float) this.GetPix(5)) * (float) stockMaidCount1 + (float) this.GetPix(15));
  9156. }
  9157. else
  9158. {
  9159. position = new Rect((float) this.GetPix(7),
  9160. (float) this.GetPix(110),
  9161. rectWin.width - (float) this.GetPix(14),
  9162. (float) ((double) rectWin.height * 0.829999983310699 * 0.980000019073486));
  9163. viewRect = new Rect(0.0f,
  9164. 0.0f,
  9165. position.width * 0.85f,
  9166. (float) (((double) pix + (double) this.GetPix(5)) * (double) stockMaidCount1
  9167. + (double) this.GetPix(15) * 0.920000016689301));
  9168. }
  9169. float y = 0.0f;
  9170. if (comboBoxControl.isClickedComboButton)
  9171. GUI.enabled = false;
  9172. if (GUI.Button(new Rect((float) this.GetPix(10), (float) this.GetPix(78), rectWin.width * 0.85f, (float) this.GetPix(28)),
  9173. "呼び出す",
  9174. style2))
  9175. {
  9176. isYobidashi = true;
  9177. selectMaidIndex = 0;
  9178. copyIndex = 0;
  9179. for (int index = 0; index < maxMaidCnt; ++index)
  9180. {
  9181. if (!isLock[index] && ((bool) ((Object) maidArray[index]) && maidArray[index].Visible))
  9182. {
  9183. maidArray[index].CrossFade(poseArray[0] + ".anm", false, true, false, 0.0f, 1f);
  9184. maidArray[index].SetAutoTwistAll(true);
  9185. }
  9186. maidArray[index] = (Maid) null;
  9187. }
  9188. for (int index = 0; index < maxMaidCnt; ++index)
  9189. isStop[index] = false;
  9190. bGui = false;
  9191. isFadeOut = true;
  9192. GameMain.Instance.MainCamera.FadeOut(0.0f, false, (CameraMain.dgOnCompleteFade) null, true, new Color());
  9193. for (int index = 0; index < characterMgr.GetStockMaidCount(); ++index)
  9194. characterMgr.GetStockMaidList()[index].Visible = false;
  9195. }
  9196. GUIStyle style4 = (GUIStyle) "button";
  9197. style4.fontSize = this.GetPix(13);
  9198. GUIStyleState guiStyleState = new GUIStyleState();
  9199. if (GUI.Button(new Rect((float) this.GetPix(10), (float) this.GetPix(52), rectWin.width * 0.4f, (float) this.GetPix(23)),
  9200. "7人選択",
  9201. style4))
  9202. {
  9203. if (sceneLevel != 5)
  9204. {
  9205. selectList = new ArrayList();
  9206. selectList.Add((object) 0);
  9207. selectList.Add((object) 1);
  9208. selectList.Add((object) 2);
  9209. selectList.Add((object) 3);
  9210. selectList.Add((object) 4);
  9211. selectList.Add((object) 5);
  9212. selectList.Add((object) 6);
  9213. }
  9214. else
  9215. {
  9216. int stockMaidCount2 = characterMgr.GetStockMaidCount();
  9217. selectList = new ArrayList();
  9218. selectList.Add((object) editMaid);
  9219. if (stockMaidCount2 > 1)
  9220. {
  9221. if (editMaid >= 1)
  9222. selectList.Add((object) 0);
  9223. else if (stockMaidCount2 > 2)
  9224. selectList.Add((object) 1);
  9225. }
  9226. if (stockMaidCount2 > 2)
  9227. {
  9228. if (editMaid >= 2)
  9229. selectList.Add((object) 1);
  9230. else if (stockMaidCount2 > 3)
  9231. selectList.Add((object) 2);
  9232. }
  9233. if (stockMaidCount2 > 3)
  9234. {
  9235. if (editMaid >= 3)
  9236. selectList.Add((object) 2);
  9237. else if (stockMaidCount2 > 4)
  9238. selectList.Add((object) 3);
  9239. }
  9240. if (stockMaidCount2 > 4)
  9241. {
  9242. if (editMaid >= 4)
  9243. selectList.Add((object) 3);
  9244. else if (stockMaidCount2 > 5)
  9245. selectList.Add((object) 4);
  9246. }
  9247. if (stockMaidCount2 > 5)
  9248. {
  9249. if (editMaid >= 5)
  9250. selectList.Add((object) 4);
  9251. else if (stockMaidCount2 > 6)
  9252. selectList.Add((object) 5);
  9253. }
  9254. if (stockMaidCount2 > 6)
  9255. {
  9256. if (editMaid >= 6)
  9257. selectList.Add((object) 5);
  9258. else if (stockMaidCount2 > 7)
  9259. selectList.Add((object) 6);
  9260. }
  9261. }
  9262. }
  9263. if (GUI.Button(new Rect(rectWin.width * 0.5f, (float) this.GetPix(52), rectWin.width * 0.4f, (float) this.GetPix(23)),
  9264. "選択解除",
  9265. style4))
  9266. {
  9267. selectList = new ArrayList();
  9268. if (sceneLevel == 5)
  9269. selectList.Add((object) editMaid);
  9270. }
  9271. GUI.enabled = true;
  9272. scrollPos = GUI.BeginScrollView(position, scrollPos, viewRect);
  9273. for (int nStockNo = 0; nStockNo < characterMgr.GetStockMaidCount(); ++nStockNo)
  9274. {
  9275. GUI.enabled = true;
  9276. GUI.DrawTexture(new Rect(2f, y + 2f, (float) ((double) rectWin.width * 0.829999983310699 - 4.0), pix - 4f),
  9277. (Texture) Texture2D.whiteTexture);
  9278. bool flag2 = false;
  9279. for (int index = 0; index < selectList.Count; ++index)
  9280. {
  9281. if ((int) selectList[index] == nStockNo)
  9282. {
  9283. flag2 = true;
  9284. break;
  9285. }
  9286. }
  9287. if (comboBoxControl.isClickedComboButton)
  9288. {
  9289. GUI.enabled = false;
  9290. GUI.Button(new Rect(0.0f, y, rectWin.width * 0.83f, pix), "", style2);
  9291. GUI.Button(new Rect(0.0f, y, rectWin.width * 0.83f, pix), "", style2);
  9292. }
  9293. if (GUI.Button(new Rect(0.0f, y, rectWin.width * 0.83f, pix), "", style2))
  9294. {
  9295. if (flag2)
  9296. {
  9297. for (int index = 0; index < selectList.Count; ++index)
  9298. {
  9299. if ((int) selectList[index] == nStockNo && (sceneLevel != 5 || (int) selectList[index] != editMaid))
  9300. {
  9301. selectList.Remove((object) nStockNo);
  9302. break;
  9303. }
  9304. }
  9305. }
  9306. else
  9307. {
  9308. if (selectList.Count > maxMaidCnt - 1)
  9309. selectList.Remove(selectList[maxMaidCnt - 1]);
  9310. selectList.Add((object) nStockNo);
  9311. }
  9312. }
  9313. GUI.enabled = true;
  9314. if (flag2)
  9315. GUI.DrawTexture(new Rect(5f, y + 5f, (float) ((double) rectWin.width * 0.829999983310699 - 10.0), pix - 10f),
  9316. (Texture) Texture2D.whiteTexture);
  9317. if ((bool) ((Object) characterMgr.GetStockMaid(nStockNo).GetThumIcon()))
  9318. GUI.DrawTexture(new Rect(0.0f, y - 5f, pix, pix), (Texture) characterMgr.GetStockMaid(nStockNo).GetThumIcon());
  9319. string text = characterMgr.GetStockMaid(nStockNo).status.lastName + "\n"
  9320. + characterMgr.GetStockMaid(nStockNo).status.firstName;
  9321. guiStyleState.textColor = Color.black;
  9322. style1.normal = guiStyleState;
  9323. GUI.Label(new Rect((float) this.GetPix(65), y + pix / 4f, pix * 2f, pix * 3f), text, style1);
  9324. if (flag2)
  9325. {
  9326. for (int index = 0; index < selectList.Count; ++index)
  9327. {
  9328. if ((int) selectList[index] == nStockNo)
  9329. {
  9330. GUI.Label(new Rect(rectWin.width * 0.7f, y + 6f, pix, pix), (index + 1).ToString(), style1);
  9331. break;
  9332. }
  9333. }
  9334. }
  9335. y += pix + (float) this.GetPix(5);
  9336. }
  9337. GUI.EndScrollView();
  9338. guiStyleState.textColor = Color.white;
  9339. style1.normal = guiStyleState;
  9340. comboBoxControl.List(new Rect((float) this.GetPix(10), (float) this.GetPix(25), rectWin.width * 0.56f, (float) this.GetPix(24)),
  9341. comboBoxList[comboBoxControl.GetSelectedItemIndex()].text,
  9342. comboBoxList,
  9343. listStyle);
  9344. if (!GUI.Button(new Rect(rectWin.width * 0.66f, (float) this.GetPix(25), rectWin.width * 0.24f, (float) this.GetPix(24)),
  9345. "決定",
  9346. style4))
  9347. return;
  9348. for (int index = 0; index < maxMaidCnt; ++index)
  9349. isStop[index] = false;
  9350. switch (comboBoxControl.GetSelectedItemIndex())
  9351. {
  9352. case 0:
  9353. for (int index = 0; index < maidCnt; ++index)
  9354. {
  9355. Vector3 zero1 = Vector3.zero;
  9356. Vector3 zero2 = Vector3.zero;
  9357. if (selectList.Count <= 7)
  9358. {
  9359. if (selectList.Count % 2 == 1)
  9360. {
  9361. switch (index)
  9362. {
  9363. case 0:
  9364. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.0f));
  9365. break;
  9366. case 1:
  9367. maidArray[index].SetPos(new Vector3(-0.6f, 0.0f, 0.26f));
  9368. break;
  9369. case 2:
  9370. maidArray[index].SetPos(new Vector3(0.6f, 0.0f, 0.26f));
  9371. break;
  9372. case 3:
  9373. maidArray[index].SetPos(new Vector3(-1.1f, 0.0f, 0.69f));
  9374. break;
  9375. case 4:
  9376. maidArray[index].SetPos(new Vector3(1.1f, 0.0f, 0.69f));
  9377. break;
  9378. case 5:
  9379. maidArray[index].SetPos(new Vector3(-1.47f, 0.0f, 1.1f));
  9380. break;
  9381. case 6:
  9382. maidArray[index].SetPos(new Vector3(1.47f, 0.0f, 1.1f));
  9383. break;
  9384. }
  9385. }
  9386. else
  9387. {
  9388. switch (index)
  9389. {
  9390. case 0:
  9391. maidArray[index].SetPos(new Vector3(0.3f, 0.0f, 0.0f));
  9392. break;
  9393. case 1:
  9394. maidArray[index].SetPos(new Vector3(-0.3f, 0.0f, 0.0f));
  9395. break;
  9396. case 2:
  9397. maidArray[index].SetPos(new Vector3(0.7f, 0.0f, 0.4f));
  9398. break;
  9399. case 3:
  9400. maidArray[index].SetPos(new Vector3(-0.7f, 0.0f, 0.4f));
  9401. break;
  9402. case 4:
  9403. maidArray[index].SetPos(new Vector3(1f, 0.0f, 0.9f));
  9404. break;
  9405. case 5:
  9406. maidArray[index].SetPos(new Vector3(-1f, 0.0f, 0.9f));
  9407. break;
  9408. }
  9409. }
  9410. }
  9411. else
  9412. {
  9413. float num1 = 0.0f;
  9414. if (selectList.Count >= 11)
  9415. {
  9416. float num2 = -0.4f;
  9417. if (selectList.Count % 2 == 1)
  9418. {
  9419. switch (index)
  9420. {
  9421. case 0:
  9422. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.0f + num2));
  9423. break;
  9424. case 1:
  9425. maidArray[index].SetPos(new Vector3(-0.5f, 0.0f, 0.2f + num2));
  9426. break;
  9427. case 2:
  9428. maidArray[index].SetPos(new Vector3(0.5f, 0.0f, 0.2f + num2));
  9429. break;
  9430. case 3:
  9431. maidArray[index].SetPos(new Vector3(-0.9f, 0.0f, 0.55f + num2));
  9432. break;
  9433. case 4:
  9434. maidArray[index].SetPos(new Vector3(0.9f, 0.0f, 0.55f + num2));
  9435. break;
  9436. case 5:
  9437. maidArray[index].SetPos(new Vector3(-1.25f, 0.0f, 0.9f + num2));
  9438. break;
  9439. case 6:
  9440. maidArray[index].SetPos(new Vector3(1.25f, 0.0f, 0.9f + num2));
  9441. break;
  9442. case 7:
  9443. maidArray[index].SetPos(new Vector3(-1.57f, 0.0f, 1.3f + num2));
  9444. break;
  9445. case 8:
  9446. maidArray[index].SetPos(new Vector3(1.57f, 0.0f, 1.3f + num2));
  9447. break;
  9448. case 9:
  9449. maidArray[index].SetPos(new Vector3(-1.77f, 0.0f, 1.72f + num2));
  9450. break;
  9451. case 10:
  9452. maidArray[index].SetPos(new Vector3(1.77f, 0.0f, 1.72f + num2));
  9453. break;
  9454. case 11:
  9455. maidArray[index].SetPos(new Vector3(-1.85f, 0.0f, 2.17f + num2));
  9456. break;
  9457. case 12:
  9458. maidArray[index].SetPos(new Vector3(1.85f, 0.0f, 2.17f + num2));
  9459. break;
  9460. default:
  9461. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f + num2));
  9462. break;
  9463. }
  9464. }
  9465. else
  9466. {
  9467. switch (index)
  9468. {
  9469. case 0:
  9470. maidArray[index].SetPos(new Vector3(0.25f, 0.0f, 0.0f + num2));
  9471. break;
  9472. case 1:
  9473. maidArray[index].SetPos(new Vector3(-0.25f, 0.0f, 0.0f + num2));
  9474. break;
  9475. case 2:
  9476. maidArray[index].SetPos(new Vector3(0.7f, 0.0f, 0.25f + num2));
  9477. break;
  9478. case 3:
  9479. maidArray[index].SetPos(new Vector3(-0.7f, 0.0f, 0.25f + num2));
  9480. break;
  9481. case 4:
  9482. maidArray[index].SetPos(new Vector3(1.05f, 0.0f, 0.6f + num2));
  9483. break;
  9484. case 5:
  9485. maidArray[index].SetPos(new Vector3(-1.05f, 0.0f, 0.6f + num2));
  9486. break;
  9487. case 6:
  9488. maidArray[index].SetPos(new Vector3(1.35f, 0.0f, 0.9f + num2));
  9489. break;
  9490. case 7:
  9491. maidArray[index].SetPos(new Vector3(-1.35f, 0.0f, 0.9f + num2));
  9492. break;
  9493. case 8:
  9494. maidArray[index].SetPos(new Vector3(1.6f, 0.0f, 1.3f + num2));
  9495. break;
  9496. case 9:
  9497. maidArray[index].SetPos(new Vector3(-1.6f, 0.0f, 1.3f + num2));
  9498. break;
  9499. case 10:
  9500. maidArray[index].SetPos(new Vector3(1.8f, 0.0f, 1.72f + num2));
  9501. break;
  9502. case 11:
  9503. maidArray[index].SetPos(new Vector3(-1.8f, 0.0f, 1.72f + num2));
  9504. break;
  9505. case 12:
  9506. maidArray[index].SetPos(new Vector3(1.9f, 0.0f, 2.17f + num2));
  9507. break;
  9508. case 13:
  9509. maidArray[index].SetPos(new Vector3(-1.9f, 0.0f, 2.17f + num2));
  9510. break;
  9511. default:
  9512. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f + num2));
  9513. break;
  9514. }
  9515. }
  9516. }
  9517. else if (selectList.Count >= 8)
  9518. {
  9519. if (selectList.Count >= 9)
  9520. num1 = -0.2f;
  9521. if (selectList.Count % 2 == 1)
  9522. {
  9523. switch (index)
  9524. {
  9525. case 0:
  9526. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.0f + num1));
  9527. break;
  9528. case 1:
  9529. maidArray[index].SetPos(new Vector3(-0.55f, 0.0f, 0.2f + num1));
  9530. break;
  9531. case 2:
  9532. maidArray[index].SetPos(new Vector3(0.55f, 0.0f, 0.2f + num1));
  9533. break;
  9534. case 3:
  9535. maidArray[index].SetPos(new Vector3(-1f, 0.0f, 0.6f + num1));
  9536. break;
  9537. case 4:
  9538. maidArray[index].SetPos(new Vector3(1f, 0.0f, 0.6f + num1));
  9539. break;
  9540. case 5:
  9541. maidArray[index].SetPos(new Vector3(-1.35f, 0.0f, 1f + num1));
  9542. break;
  9543. case 6:
  9544. maidArray[index].SetPos(new Vector3(1.35f, 0.0f, 1f + num1));
  9545. break;
  9546. case 7:
  9547. maidArray[index].SetPos(new Vector3(-1.6f, 0.0f, 1.4f + num1));
  9548. break;
  9549. case 8:
  9550. maidArray[index].SetPos(new Vector3(1.6f, 0.0f, 1.4f + num1));
  9551. break;
  9552. }
  9553. }
  9554. else
  9555. {
  9556. switch (index)
  9557. {
  9558. case 0:
  9559. maidArray[index].SetPos(new Vector3(0.28f, 0.0f, 0.0f + num1));
  9560. break;
  9561. case 1:
  9562. maidArray[index].SetPos(new Vector3(-0.28f, 0.0f, 0.0f + num1));
  9563. break;
  9564. case 2:
  9565. maidArray[index].SetPos(new Vector3(0.78f, 0.0f, 0.3f + num1));
  9566. break;
  9567. case 3:
  9568. maidArray[index].SetPos(new Vector3(-0.78f, 0.0f, 0.3f + num1));
  9569. break;
  9570. case 4:
  9571. maidArray[index].SetPos(new Vector3(1.22f, 0.0f, 0.7f + num1));
  9572. break;
  9573. case 5:
  9574. maidArray[index].SetPos(new Vector3(-1.22f, 0.0f, 0.7f + num1));
  9575. break;
  9576. case 6:
  9577. maidArray[index].SetPos(new Vector3(1.55f, 0.0f, 1.1f + num1));
  9578. break;
  9579. case 7:
  9580. maidArray[index].SetPos(new Vector3(-1.55f, 0.0f, 1.1f + num1));
  9581. break;
  9582. case 8:
  9583. maidArray[index].SetPos(new Vector3(1.77f, 0.0f, 1.58f + num1));
  9584. break;
  9585. case 9:
  9586. maidArray[index].SetPos(new Vector3(-1.77f, 0.0f, 1.58f + num1));
  9587. break;
  9588. }
  9589. }
  9590. }
  9591. }
  9592. zero2.y = (float) (Math.Atan2((double) maidArray[index].transform.position.x,
  9593. (double) maidArray[index].transform.position.z - 1.5) * 180.0 / Math.PI) + 180f;
  9594. maidArray[index].SetRot(zero2);
  9595. }
  9596. break;
  9597. case 1:
  9598. for (int index = 0; index < maidCnt; ++index)
  9599. {
  9600. Vector3 zero1 = Vector3.zero;
  9601. Vector3 zero2 = Vector3.zero;
  9602. if (maidCnt < 9)
  9603. {
  9604. switch (index)
  9605. {
  9606. case 1:
  9607. zero1.x = -0.6f;
  9608. break;
  9609. case 2:
  9610. zero1.x = 0.6f;
  9611. break;
  9612. case 3:
  9613. zero1.x = -1.2f;
  9614. break;
  9615. case 4:
  9616. zero1.x = 1.2f;
  9617. break;
  9618. case 5:
  9619. zero1.x = -1.8f;
  9620. break;
  9621. case 6:
  9622. zero1.x = 1.8f;
  9623. break;
  9624. case 7:
  9625. zero1.x = -2.4f;
  9626. break;
  9627. case 8:
  9628. zero1.x = 2.4f;
  9629. break;
  9630. case 9:
  9631. zero1.x = -3f;
  9632. break;
  9633. case 10:
  9634. zero1.x = 3f;
  9635. break;
  9636. }
  9637. }
  9638. else
  9639. {
  9640. switch (index)
  9641. {
  9642. case 1:
  9643. zero1.x = -0.5f;
  9644. break;
  9645. case 2:
  9646. zero1.x = 0.5f;
  9647. break;
  9648. case 3:
  9649. zero1.x = -1f;
  9650. break;
  9651. case 4:
  9652. zero1.x = 1f;
  9653. break;
  9654. case 5:
  9655. zero1.x = -1.5f;
  9656. break;
  9657. case 6:
  9658. zero1.x = 1.5f;
  9659. break;
  9660. case 7:
  9661. zero1.x = -2f;
  9662. break;
  9663. case 8:
  9664. zero1.x = 2f;
  9665. break;
  9666. case 9:
  9667. zero1.x = -2.5f;
  9668. break;
  9669. case 10:
  9670. zero1.x = 2.5f;
  9671. break;
  9672. case 11:
  9673. zero1.x = -3f;
  9674. break;
  9675. case 12:
  9676. zero1.x = 3f;
  9677. break;
  9678. case 13:
  9679. zero1.x = -3.5f;
  9680. break;
  9681. }
  9682. }
  9683. maidArray[index].SetPos(zero1);
  9684. maidArray[index].SetRot(zero2);
  9685. if (index >= 14)
  9686. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
  9687. }
  9688. break;
  9689. case 2:
  9690. for (int index = 0; index < maidCnt; ++index)
  9691. {
  9692. Vector3 zero1 = Vector3.zero;
  9693. Vector3 zero2 = Vector3.zero;
  9694. if (maidCnt < 9)
  9695. {
  9696. switch (index)
  9697. {
  9698. case 1:
  9699. zero1.z = 0.6f;
  9700. break;
  9701. case 2:
  9702. zero1.z = -0.6f;
  9703. break;
  9704. case 3:
  9705. zero1.z = 1.2f;
  9706. break;
  9707. case 4:
  9708. zero1.z = -1.2f;
  9709. break;
  9710. case 5:
  9711. zero1.z = 1.8f;
  9712. break;
  9713. case 6:
  9714. zero1.z = -1.8f;
  9715. break;
  9716. case 7:
  9717. zero1.z = 2.4f;
  9718. break;
  9719. case 8:
  9720. zero1.z = -2.4f;
  9721. break;
  9722. case 9:
  9723. zero1.z = 3f;
  9724. break;
  9725. case 10:
  9726. zero1.z = -3f;
  9727. break;
  9728. }
  9729. }
  9730. else
  9731. {
  9732. switch (index)
  9733. {
  9734. case 1:
  9735. zero1.z = 0.5f;
  9736. break;
  9737. case 2:
  9738. zero1.z = -0.5f;
  9739. break;
  9740. case 3:
  9741. zero1.z = 1f;
  9742. break;
  9743. case 4:
  9744. zero1.z = -1f;
  9745. break;
  9746. case 5:
  9747. zero1.z = 1.5f;
  9748. break;
  9749. case 6:
  9750. zero1.z = -1.5f;
  9751. break;
  9752. case 7:
  9753. zero1.z = 2f;
  9754. break;
  9755. case 8:
  9756. zero1.z = -2f;
  9757. break;
  9758. case 9:
  9759. zero1.z = 2.5f;
  9760. break;
  9761. case 10:
  9762. zero1.z = -2.5f;
  9763. break;
  9764. case 11:
  9765. zero1.z = 3f;
  9766. break;
  9767. case 12:
  9768. zero1.z = -3f;
  9769. break;
  9770. case 13:
  9771. zero1.z = 3.5f;
  9772. break;
  9773. }
  9774. }
  9775. maidArray[index].SetPos(zero1);
  9776. maidArray[index].SetRot(zero2);
  9777. if (index >= 14)
  9778. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
  9779. }
  9780. break;
  9781. case 3:
  9782. for (int index = 0; index < maidCnt; ++index)
  9783. {
  9784. Vector3 zero1 = Vector3.zero;
  9785. Vector3 zero2 = Vector3.zero;
  9786. float num = 0.5f;
  9787. if (maidCnt > 11)
  9788. num = 0.25f;
  9789. else if (maidCnt > 9)
  9790. num = 0.32f;
  9791. else if (maidCnt > 7)
  9792. num = 0.4f;
  9793. switch (index)
  9794. {
  9795. case 1:
  9796. zero1.x = -num;
  9797. zero1.z = num;
  9798. break;
  9799. case 2:
  9800. zero1.x = num;
  9801. zero1.z = -num;
  9802. break;
  9803. case 3:
  9804. zero1.x = (float) (-(double) num * 2.0);
  9805. zero1.z = num * 2f;
  9806. break;
  9807. case 4:
  9808. zero1.x = num * 2f;
  9809. zero1.z = (float) (-(double) num * 2.0);
  9810. break;
  9811. case 5:
  9812. zero1.x = (float) (-(double) num * 3.0);
  9813. zero1.z = num * 3f;
  9814. break;
  9815. case 6:
  9816. zero1.x = num * 3f;
  9817. zero1.z = (float) (-(double) num * 3.0);
  9818. break;
  9819. case 7:
  9820. zero1.x = (float) (-(double) num * 4.0);
  9821. zero1.z = num * 4f;
  9822. break;
  9823. case 8:
  9824. zero1.x = num * 4f;
  9825. zero1.z = (float) (-(double) num * 4.0);
  9826. break;
  9827. case 9:
  9828. zero1.x = (float) (-(double) num * 5.0);
  9829. zero1.z = num * 5f;
  9830. break;
  9831. case 10:
  9832. zero1.x = num * 5f;
  9833. zero1.z = (float) (-(double) num * 5.0);
  9834. break;
  9835. case 11:
  9836. zero1.x = (float) (-(double) num * 6.0);
  9837. zero1.z = num * 6f;
  9838. break;
  9839. case 12:
  9840. zero1.x = num * 6f;
  9841. zero1.z = (float) (-(double) num * 6.0);
  9842. break;
  9843. case 13:
  9844. zero1.x = (float) (-(double) num * 7.0);
  9845. zero1.z = num * 7f;
  9846. break;
  9847. }
  9848. maidArray[index].SetPos(zero1);
  9849. maidArray[index].SetRot(zero2);
  9850. if (index >= 14)
  9851. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
  9852. }
  9853. break;
  9854. case 4:
  9855. for (int index = 0; index < maidCnt; ++index)
  9856. {
  9857. Vector3 zero1 = Vector3.zero;
  9858. Vector3 zero2 = Vector3.zero;
  9859. float num = (float) (0.400000005960464 + 0.0799999982118607 * (double) maidCnt);
  9860. zero1.x = num * (float) Math.Cos(Math.PI / 180.0 * (double) (90 + 360 * index / maidCnt));
  9861. zero1.z = num * (float) Math.Sin(Math.PI / 180.0 * (double) (90 + 360 * index / maidCnt));
  9862. maidArray[index].SetPos(zero1);
  9863. zero2.y = (float) (Math.Atan2((double) zero1.x, (double) zero1.z) * 180.0 / Math.PI);
  9864. maidArray[index].SetRot(zero2);
  9865. }
  9866. break;
  9867. case 5:
  9868. for (int index = 0; index < maidCnt; ++index)
  9869. {
  9870. Vector3 zero1 = Vector3.zero;
  9871. Vector3 zero2 = Vector3.zero;
  9872. float num = (float) (0.400000005960464 + 0.0799999982118607 * (double) maidCnt);
  9873. zero1.x = num * (float) Math.Cos(Math.PI / 180.0 * (double) (90 + 360 * index / maidCnt));
  9874. zero1.z = num * (float) Math.Sin(Math.PI / 180.0 * (double) (90 + 360 * index / maidCnt));
  9875. maidArray[index].SetPos(zero1);
  9876. zero2.y = (float) (Math.Atan2((double) zero1.x, (double) zero1.z) * 180.0 / Math.PI) + 180f;
  9877. maidArray[index].SetRot(zero2);
  9878. }
  9879. break;
  9880. case 6:
  9881. for (int index = 0; index < maidCnt; ++index)
  9882. {
  9883. Vector3 zero1 = Vector3.zero;
  9884. Vector3 zero2 = Vector3.zero;
  9885. float num = 0.0f;
  9886. if (maidCnt > 9)
  9887. num = -0.4f;
  9888. else if (maidCnt > 7)
  9889. num = -0.2f;
  9890. switch (index)
  9891. {
  9892. case 0:
  9893. zero1.z = 0.3f;
  9894. break;
  9895. case 1:
  9896. zero1.x = -0.9f;
  9897. zero1.z = -0.4f;
  9898. zero2.y = 40f;
  9899. break;
  9900. case 2:
  9901. zero1.x = 0.9f;
  9902. zero1.z = -0.4f;
  9903. zero2.y = -40f;
  9904. break;
  9905. case 3:
  9906. zero1.x = -0.4f;
  9907. zero1.z = -0.8f;
  9908. zero2.y = 20f;
  9909. break;
  9910. case 4:
  9911. zero1.x = 0.4f;
  9912. zero1.z = -0.8f;
  9913. zero2.y = -20f;
  9914. break;
  9915. case 5:
  9916. zero1.x = -1.2f;
  9917. zero1.z = 0.1f;
  9918. zero2.y = 60f;
  9919. break;
  9920. case 6:
  9921. zero1.x = 1.2f;
  9922. zero1.z = 0.1f;
  9923. zero2.y = -60f;
  9924. break;
  9925. case 7:
  9926. zero1.x = -1.5f;
  9927. zero1.z = 0.6f;
  9928. zero2.y = 80f;
  9929. break;
  9930. case 8:
  9931. zero1.x = 1.5f;
  9932. zero1.z = 0.6f;
  9933. zero2.y = -80f;
  9934. break;
  9935. case 9:
  9936. zero1.x = -1.6f;
  9937. zero1.z = 1.15f;
  9938. zero2.y = 100f;
  9939. break;
  9940. case 10:
  9941. zero1.x = 1.6f;
  9942. zero1.z = 1.15f;
  9943. zero2.y = -100f;
  9944. break;
  9945. case 11:
  9946. zero1.x = -1.6f;
  9947. zero1.z = 1.65f;
  9948. zero2.y = 110f;
  9949. break;
  9950. case 12:
  9951. zero1.x = 1.65f;
  9952. zero1.z = 1.65f;
  9953. zero2.y = -110f;
  9954. break;
  9955. case 13:
  9956. zero1.x = -1.65f;
  9957. zero1.z = 2.15f;
  9958. zero2.y = 120f;
  9959. break;
  9960. }
  9961. if (index > 0)
  9962. zero1.z += num;
  9963. else
  9964. zero1.z -= num;
  9965. maidArray[index].SetPos(zero1);
  9966. maidArray[index].SetRot(zero2);
  9967. if (index >= 14)
  9968. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
  9969. }
  9970. break;
  9971. case 7:
  9972. for (int index = 0; index < maidCnt; ++index)
  9973. {
  9974. Vector3 zero1 = Vector3.zero;
  9975. Vector3 zero2 = Vector3.zero;
  9976. float num = 0.0f;
  9977. if (maidCnt > 11)
  9978. num = 0.6f;
  9979. else if (maidCnt > 9)
  9980. num = 0.4f;
  9981. else if (maidCnt > 7)
  9982. num = 0.2f;
  9983. switch (index)
  9984. {
  9985. case 0:
  9986. zero1.z = 0.8f;
  9987. break;
  9988. case 1:
  9989. zero1.x = -0.45f;
  9990. zero1.z = 0.3f;
  9991. zero2.y = -10f;
  9992. break;
  9993. case 2:
  9994. zero1.x = 0.45f;
  9995. zero1.z = 0.3f;
  9996. zero2.y = 10f;
  9997. break;
  9998. case 3:
  9999. zero1.x = -0.8f;
  10000. zero1.z = -0.2f;
  10001. zero2.y = -20f;
  10002. break;
  10003. case 4:
  10004. zero1.x = 0.8f;
  10005. zero1.z = -0.2f;
  10006. zero2.y = 20f;
  10007. break;
  10008. case 5:
  10009. zero1.x = -1.2f;
  10010. zero1.z = -0.75f;
  10011. zero2.y = -30f;
  10012. break;
  10013. case 6:
  10014. zero1.x = 1.2f;
  10015. zero1.z = -0.75f;
  10016. zero2.y = 30f;
  10017. break;
  10018. case 7:
  10019. zero1.x = -1.6f;
  10020. zero1.z = -1.25f;
  10021. zero2.y = -40f;
  10022. break;
  10023. case 8:
  10024. zero1.x = 1.6f;
  10025. zero1.z = -1.25f;
  10026. zero2.y = 40f;
  10027. break;
  10028. case 9:
  10029. zero1.x = -2f;
  10030. zero1.z = -1.75f;
  10031. zero2.y = -50f;
  10032. break;
  10033. case 10:
  10034. zero1.x = 2f;
  10035. zero1.z = -1.75f;
  10036. zero2.y = 50f;
  10037. break;
  10038. case 11:
  10039. zero1.x = -2.4f;
  10040. zero1.z = -2.25f;
  10041. zero2.y = -60f;
  10042. break;
  10043. case 12:
  10044. zero1.x = 2.4f;
  10045. zero1.z = -2.25f;
  10046. zero2.y = 60f;
  10047. break;
  10048. case 13:
  10049. zero1.x = -2.8f;
  10050. zero1.z = -2.75f;
  10051. zero2.y = -70f;
  10052. break;
  10053. }
  10054. zero1.z += num;
  10055. maidArray[index].SetPos(zero1);
  10056. maidArray[index].SetRot(zero2);
  10057. if (index >= 14)
  10058. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
  10059. }
  10060. break;
  10061. case 8:
  10062. for (int index = 0; index < maidCnt; ++index)
  10063. {
  10064. Vector3 zero1 = Vector3.zero;
  10065. Vector3 zero2 = Vector3.zero;
  10066. float num = 0.0f;
  10067. if (maidCnt > 11)
  10068. num = -0.6f;
  10069. else if (maidCnt > 9)
  10070. num = -0.4f;
  10071. else if (maidCnt > 7)
  10072. num = -0.2f;
  10073. switch (index)
  10074. {
  10075. case 0:
  10076. zero1.z = -0.75f;
  10077. break;
  10078. case 1:
  10079. zero1.x = -0.45f;
  10080. zero1.z = -0.2f;
  10081. zero2.y = 20f;
  10082. break;
  10083. case 2:
  10084. zero1.x = 0.45f;
  10085. zero1.z = -0.2f;
  10086. zero2.y = -20f;
  10087. break;
  10088. case 3:
  10089. zero1.x = -0.8f;
  10090. zero1.z = 0.3f;
  10091. zero2.y = 35f;
  10092. break;
  10093. case 4:
  10094. zero1.x = 0.8f;
  10095. zero1.z = 0.3f;
  10096. zero2.y = -35f;
  10097. break;
  10098. case 5:
  10099. zero1.x = -1.2f;
  10100. zero1.z = 0.8f;
  10101. zero2.y = 50f;
  10102. break;
  10103. case 6:
  10104. zero1.x = 1.2f;
  10105. zero1.z = 0.8f;
  10106. zero2.y = -50f;
  10107. break;
  10108. case 7:
  10109. zero1.x = -1.6f;
  10110. zero1.z = 1.3f;
  10111. zero2.y = 65f;
  10112. break;
  10113. case 8:
  10114. zero1.x = 1.6f;
  10115. zero1.z = 1.3f;
  10116. zero2.y = -65f;
  10117. break;
  10118. case 9:
  10119. zero1.x = -2f;
  10120. zero1.z = 1.8f;
  10121. zero2.y = 80f;
  10122. break;
  10123. case 10:
  10124. zero1.x = 2f;
  10125. zero1.z = 1.8f;
  10126. zero2.y = -80f;
  10127. break;
  10128. case 11:
  10129. zero1.x = -2.4f;
  10130. zero1.z = 2.3f;
  10131. zero2.y = 90f;
  10132. break;
  10133. case 12:
  10134. zero1.x = 2.4f;
  10135. zero1.z = 2.3f;
  10136. zero2.y = -90f;
  10137. break;
  10138. case 13:
  10139. zero1.x = -2.8f;
  10140. zero1.z = 2.8f;
  10141. zero2.y = 100f;
  10142. break;
  10143. }
  10144. zero1.z += num;
  10145. maidArray[index].SetPos(zero1);
  10146. maidArray[index].SetRot(zero2);
  10147. if (index >= 14)
  10148. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
  10149. }
  10150. break;
  10151. case 9:
  10152. for (int index = 0; index < maidCnt; ++index)
  10153. {
  10154. Vector3 zero1 = Vector3.zero;
  10155. Vector3 zero2 = Vector3.zero;
  10156. float num = 1f;
  10157. if (maidCnt > 9)
  10158. num = 0.84f;
  10159. else if (maidCnt > 7)
  10160. num = 0.92f;
  10161. switch (index)
  10162. {
  10163. case 0:
  10164. zero1.z = 0.0f;
  10165. break;
  10166. case 1:
  10167. zero1.x = -0.5f;
  10168. zero1.z = -0.5f;
  10169. break;
  10170. case 2:
  10171. zero1.x = 0.5f;
  10172. zero1.z = -0.5f;
  10173. break;
  10174. case 3:
  10175. zero1.x = -1f;
  10176. zero1.z = 0.2f;
  10177. break;
  10178. case 4:
  10179. zero1.x = 1f;
  10180. zero1.z = 0.2f;
  10181. break;
  10182. case 5:
  10183. zero1.x = -1.5f;
  10184. zero1.z = -0.5f;
  10185. break;
  10186. case 6:
  10187. zero1.x = 1.5f;
  10188. zero1.z = -0.5f;
  10189. break;
  10190. case 7:
  10191. zero1.x = -2f;
  10192. zero1.z = 0.2f;
  10193. break;
  10194. case 8:
  10195. zero1.x = 2f;
  10196. zero1.z = 0.2f;
  10197. break;
  10198. case 9:
  10199. zero1.x = -2.5f;
  10200. zero1.z = -0.5f;
  10201. break;
  10202. case 10:
  10203. zero1.x = 2.5f;
  10204. zero1.z = -0.5f;
  10205. break;
  10206. case 11:
  10207. zero1.x = -3f;
  10208. zero1.z = 0.2f;
  10209. break;
  10210. case 12:
  10211. zero1.x = 3f;
  10212. zero1.z = 0.2f;
  10213. break;
  10214. case 13:
  10215. zero1.x = -3.5f;
  10216. zero1.z = -0.5f;
  10217. break;
  10218. }
  10219. zero1.x *= num;
  10220. maidArray[index].SetPos(zero1);
  10221. maidArray[index].SetRot(zero2);
  10222. if (index >= 14)
  10223. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
  10224. }
  10225. break;
  10226. case 10:
  10227. for (int index = 0; index < maidCnt; ++index)
  10228. {
  10229. Vector3 zero1 = Vector3.zero;
  10230. Vector3 zero2 = Vector3.zero;
  10231. float num = 1f;
  10232. if (maidCnt > 9)
  10233. num = 0.84f;
  10234. else if (maidCnt > 7)
  10235. num = 0.92f;
  10236. switch (index)
  10237. {
  10238. case 0:
  10239. zero1.z = -0.4f;
  10240. break;
  10241. case 1:
  10242. zero1.x = -0.5f;
  10243. zero1.z = 0.2f;
  10244. break;
  10245. case 2:
  10246. zero1.x = 0.5f;
  10247. zero1.z = 0.2f;
  10248. break;
  10249. case 3:
  10250. zero1.x = -1f;
  10251. zero1.z = -0.5f;
  10252. break;
  10253. case 4:
  10254. zero1.x = 1f;
  10255. zero1.z = -0.5f;
  10256. break;
  10257. case 5:
  10258. zero1.x = -1.5f;
  10259. zero1.z = 0.2f;
  10260. break;
  10261. case 6:
  10262. zero1.x = 1.5f;
  10263. zero1.z = 0.2f;
  10264. break;
  10265. case 7:
  10266. zero1.x = -2f;
  10267. zero1.z = -0.5f;
  10268. break;
  10269. case 8:
  10270. zero1.x = 2f;
  10271. zero1.z = -0.5f;
  10272. break;
  10273. case 9:
  10274. zero1.x = -2.5f;
  10275. zero1.z = 0.2f;
  10276. break;
  10277. case 10:
  10278. zero1.x = 2.5f;
  10279. zero1.z = 0.2f;
  10280. break;
  10281. case 11:
  10282. zero1.x = -3f;
  10283. zero1.z = -0.5f;
  10284. break;
  10285. case 12:
  10286. zero1.x = 3f;
  10287. zero1.z = -0.5f;
  10288. break;
  10289. case 13:
  10290. zero1.x = -3.5f;
  10291. zero1.z = 0.2f;
  10292. break;
  10293. }
  10294. zero1.x *= num;
  10295. maidArray[index].SetPos(zero1);
  10296. maidArray[index].SetRot(zero2);
  10297. if (index >= 14)
  10298. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
  10299. }
  10300. break;
  10301. }
  10302. for (int index = 0; index < maxMaidCnt; ++index)
  10303. {
  10304. if (!isLock[index] && ((Object) maidArray[index] != (Object) null && maidArray[index].Visible))
  10305. {
  10306. maidArray[index].CrossFade(poseArray[0] + ".anm", false, true, false, 0.0f, 1f);
  10307. maidArray[index].SetAutoTwistAll(true);
  10308. }
  10309. }
  10310. }
  10311. private void GuiFunc3(int winID)
  10312. {
  10313. GUIStyle style1 = (GUIStyle) "label";
  10314. style1.fontSize = this.GetPix(12);
  10315. style1.alignment = TextAnchor.UpperLeft;
  10316. GUIStyle style2 = (GUIStyle) "button";
  10317. style2.fontSize = this.GetPix(16);
  10318. GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(4), (float) this.GetPix(80), (float) this.GetPix(25)),
  10319. "名前",
  10320. style1);
  10321. inName = GUI.TextField(new Rect((float) this.GetPix(35),
  10322. (float) this.GetPix(4),
  10323. (float) this.GetPix(120),
  10324. (float) this.GetPix(20)),
  10325. inName);
  10326. GUI.Label(new Rect((float) this.GetPix(180), (float) this.GetPix(4), (float) this.GetPix(100), (float) this.GetPix(25)),
  10327. "サイズ",
  10328. style1);
  10329. fontSize = (int) GUI.HorizontalSlider(new Rect((float) this.GetPix(220),
  10330. (float) this.GetPix(9),
  10331. (float) this.GetPix(100),
  10332. (float) this.GetPix(20)),
  10333. (float) fontSize,
  10334. 25f,
  10335. 60f);
  10336. if (fontSize != mFontSize)
  10337. {
  10338. mFontSize = fontSize;
  10339. GameObject gameObject = GameObject.Find("__GameMain__/SystemUI Root").transform.Find("MessageWindowPanel").gameObject;
  10340. MessageClass messageClass = new MessageClass(gameObject, GameMain.Instance.ScriptMgr.adv_kag.MessageWindowMgr);
  10341. SetFieldValue2<UILabel, int>(UTY.GetChildObject(gameObject, "MessageViewer/MsgParent/Message", false)
  10342. .GetComponent<UILabel>(),
  10343. "mFontSize",
  10344. fontSize);
  10345. }
  10346. GUI.Label(new Rect((float) this.GetPix(325), (float) this.GetPix(4), (float) this.GetPix(100), (float) this.GetPix(25)),
  10347. fontSize.ToString() + "pt",
  10348. style1);
  10349. inText = GUI.TextArea(new Rect((float) this.GetPix(8),
  10350. (float) this.GetPix(26),
  10351. rectWin2.width - (float) this.GetPix(15),
  10352. (float) this.GetPix(52)),
  10353. inText,
  10354. 300);
  10355. if (!GUI.Button(new Rect((float) this.GetPix(8), (float) this.GetPix(82), (float) this.GetPix(60), (float) this.GetPix(20)),
  10356. "決定",
  10357. style2))
  10358. return;
  10359. isMessage = true;
  10360. bGuiMessage = false;
  10361. GameObject gameObject1 = GameObject.Find("__GameMain__/SystemUI Root").transform.Find("MessageWindowPanel").gameObject;
  10362. MessageWindowMgr messageWindowMgr = GameMain.Instance.ScriptMgr.adv_kag.MessageWindowMgr;
  10363. messageWindowMgr.OpenMessageWindowPanel();
  10364. MessageClass inst = new MessageClass(gameObject1, messageWindowMgr);
  10365. UILabel component = UTY.GetChildObject(gameObject1, "MessageViewer/MsgParent/Message", false).GetComponent<UILabel>();
  10366. component.ProcessText();
  10367. SetFieldValue2<UILabel, int>(component, "mFontSize", fontSize);
  10368. SetFieldValue5<MessageClass, UILabel>(inst, "message_label_", component);
  10369. inst.SetText(inName, inText, "", 0);
  10370. inst.FinishChAnime();
  10371. }
  10372. }
  10373. }