MultipleMaids.Gui.cs 561 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735
  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 "HeroineRoom_D1":
  555. bgCombo2List[index] = new GUIContent("Bookworm Room");
  556. break;
  557. case "HeroineRoom_D1_Night":
  558. bgCombo2List[index] = new GUIContent("Bookworm Room (Night)");
  559. break;
  560. case "HeroineRoom_D":
  561. bgCombo2List[index] = new GUIContent("Oneechan Room");
  562. break;
  563. case "HeroineRoom_D_Night":
  564. bgCombo2List[index] = new GUIContent("Oneechan Room (Night)");
  565. break;
  566. case "HeroineRoom_E":
  567. bgCombo2List[index] = new GUIContent("Sadist Room");
  568. break;
  569. case "HeroineRoom_E_Night":
  570. bgCombo2List[index] = new GUIContent("Sadist Room (Night)");
  571. break;
  572. case "HoneymoonRoom":
  573. bgCombo2List[index] = new GUIContent("ハネムーンルーム");
  574. break;
  575. case "Kitchen":
  576. bgCombo2List[index] = new GUIContent("キッチン");
  577. break;
  578. case "Kitchen_Night":
  579. bgCombo2List[index] = new GUIContent("キッチン(夜)");
  580. break;
  581. case "LargeBathRoom":
  582. bgCombo2List[index] = new GUIContent("大浴場");
  583. break;
  584. case "LiveStage":
  585. bgCombo2List[index] = new GUIContent("ステージ");
  586. break;
  587. case "LiveStage_Side":
  588. bgCombo2List[index] = new GUIContent("ステージ(ライト)");
  589. break;
  590. case "LiveStage_use_dance":
  591. bgCombo2List[index] = new GUIContent("ステージ(オフ)");
  592. break;
  593. case "LockerRoom":
  594. bgCombo2List[index] = new GUIContent("ロッカールーム");
  595. break;
  596. case "MaidRoom":
  597. bgCombo2List[index] = new GUIContent("メイド部屋");
  598. break;
  599. case "MainKitchen":
  600. bgCombo2List[index] = new GUIContent("キッチン");
  601. break;
  602. case "MainKitchen_LightOff":
  603. bgCombo2List[index] = new GUIContent("キッチン(オフ)");
  604. break;
  605. case "MainKitchen_Night":
  606. bgCombo2List[index] = new GUIContent("キッチン(夜)");
  607. break;
  608. case "MusicShop":
  609. bgCombo2List[index] = new GUIContent("ミュージックショップ");
  610. break;
  611. case "MyBedRoom":
  612. bgCombo2List[index] = new GUIContent("自室");
  613. break;
  614. case "MyBedRoom_Night":
  615. bgCombo2List[index] = new GUIContent("自室(夜)");
  616. break;
  617. case "MyBedRoom_NightOff":
  618. bgCombo2List[index] = new GUIContent("自室(消灯)");
  619. break;
  620. case "MyRoom":
  621. bgCombo2List[index] = new GUIContent("主人公部屋");
  622. break;
  623. case "MyRoom_Night":
  624. bgCombo2List[index] = new GUIContent("主人公部屋(夜)");
  625. break;
  626. case "Oheya":
  627. bgCombo2List[index] = new GUIContent("四畳半部屋");
  628. break;
  629. case "OiranRoom":
  630. bgCombo2List[index] = new GUIContent("花魁ルーム");
  631. break;
  632. case "OpemCafe":
  633. bgCombo2List[index] = new GUIContent("カフェ");
  634. break;
  635. case "OpemCafe_Night":
  636. bgCombo2List[index] = new GUIContent("カフェ(夜)");
  637. break;
  638. case "OutletPark":
  639. bgCombo2List[index] = new GUIContent("アウトレットパーク");
  640. break;
  641. case "Penthouse":
  642. bgCombo2List[index] = new GUIContent("ペントハウス");
  643. break;
  644. case "PlayRoom":
  645. bgCombo2List[index] = new GUIContent("プレイルーム");
  646. break;
  647. case "PlayRoom2":
  648. bgCombo2List[index] = new GUIContent("プレイルーム2");
  649. break;
  650. case "Pool":
  651. bgCombo2List[index] = new GUIContent("プール");
  652. break;
  653. case "PrivateRoom":
  654. bgCombo2List[index] = new GUIContent("プライベートルーム");
  655. break;
  656. case "PrivateRoom_Night":
  657. bgCombo2List[index] = new GUIContent("プライベートルーム(夜)");
  658. break;
  659. case "Restaurant":
  660. bgCombo2List[index] = new GUIContent("レストラン");
  661. break;
  662. case "Restaurant_Night":
  663. bgCombo2List[index] = new GUIContent("レストラン(夜)");
  664. break;
  665. case "SMClub":
  666. bgCombo2List[index] = new GUIContent("SMクラブ");
  667. break;
  668. case "SMRoom":
  669. bgCombo2List[index] = new GUIContent("SMルーム");
  670. break;
  671. case "SMRoom2":
  672. bgCombo2List[index] = new GUIContent("地下室");
  673. break;
  674. case "Salon":
  675. bgCombo2List[index] = new GUIContent("サロン");
  676. break;
  677. case "Salon_Day":
  678. bgCombo2List[index] = new GUIContent("サロン(昼)");
  679. break;
  680. case "Salon_Entrance":
  681. bgCombo2List[index] = new GUIContent("エントランス");
  682. break;
  683. case "Salon_Garden":
  684. bgCombo2List[index] = new GUIContent("サロン(中庭)");
  685. break;
  686. case "Sea":
  687. bgCombo2List[index] = new GUIContent("海");
  688. break;
  689. case "Sea_Night":
  690. bgCombo2List[index] = new GUIContent("海(夜)");
  691. break;
  692. case "ShinShitsumu":
  693. bgCombo2List[index] = new GUIContent("執務室");
  694. break;
  695. case "ShinShitsumu_ChairRot":
  696. bgCombo2List[index] = new GUIContent("執務室(椅子)");
  697. break;
  698. case "ShinShitsumu_Night":
  699. bgCombo2List[index] = new GUIContent("執務室(夜)");
  700. break;
  701. case "Shitsumu":
  702. bgCombo2List[index] = new GUIContent("執務室");
  703. break;
  704. case "Shitsumu_Night":
  705. bgCombo2List[index] = new GUIContent("執務室(夜)");
  706. break;
  707. case "ShoppingMall":
  708. bgCombo2List[index] = new GUIContent("ショッピングモール");
  709. break;
  710. case "ShoppingMall_Night":
  711. bgCombo2List[index] = new GUIContent("ショッピングモール(夜)");
  712. break;
  713. case "Shukuhakubeya_BedRoom":
  714. bgCombo2List[index] = new GUIContent("宿泊-ベッドルーム");
  715. break;
  716. case "Shukuhakubeya_BedRoom_Night":
  717. bgCombo2List[index] = new GUIContent("宿泊-ベッドルーム(夜)");
  718. break;
  719. case "Shukuhakubeya_Living":
  720. bgCombo2List[index] = new GUIContent("宿泊-リビング");
  721. break;
  722. case "Shukuhakubeya_Living_Night":
  723. bgCombo2List[index] = new GUIContent("宿泊-リビング(夜)");
  724. break;
  725. case "Shukuhakubeya_Other_BedRoom":
  726. bgCombo2List[index] = new GUIContent("宿泊-他ベッドルーム(夜)");
  727. break;
  728. case "Shukuhakubeya_Toilet":
  729. bgCombo2List[index] = new GUIContent("宿泊-トイレ");
  730. break;
  731. case "Shukuhakubeya_Toilet_Night":
  732. bgCombo2List[index] = new GUIContent("宿泊-トイレ(夜)");
  733. break;
  734. case "Shukuhakubeya_WashRoom":
  735. bgCombo2List[index] = new GUIContent("宿泊-洗面所");
  736. break;
  737. case "Shukuhakubeya_WashRoom_Night":
  738. bgCombo2List[index] = new GUIContent("宿泊-洗面所(夜)");
  739. break;
  740. case "Soap":
  741. bgCombo2List[index] = new GUIContent("ソープ");
  742. break;
  743. case "Spa":
  744. bgCombo2List[index] = new GUIContent("スパ");
  745. break;
  746. case "Spa_Night":
  747. bgCombo2List[index] = new GUIContent("スパ(夜)");
  748. break;
  749. case "Syosai":
  750. bgCombo2List[index] = new GUIContent("書斎");
  751. break;
  752. case "Syosai_Night":
  753. bgCombo2List[index] = new GUIContent("書斎(夜)");
  754. break;
  755. case "Theater":
  756. bgCombo2List[index] = new GUIContent("劇場");
  757. break;
  758. case "Theater_LightOff":
  759. bgCombo2List[index] = new GUIContent("劇場(夜)");
  760. break;
  761. case "Toilet":
  762. bgCombo2List[index] = new GUIContent("Neightlet");
  763. break;
  764. case "Town":
  765. bgCombo2List[index] = new GUIContent("街");
  766. break;
  767. case "Train":
  768. bgCombo2List[index] = new GUIContent("電車");
  769. break;
  770. case "Yashiki":
  771. bgCombo2List[index] = new GUIContent("屋敷(夜)");
  772. break;
  773. case "Yashiki_Day":
  774. bgCombo2List[index] = new GUIContent("屋敷");
  775. break;
  776. case "Yashiki_Pillow":
  777. bgCombo2List[index] = new GUIContent("屋敷(夜・枕)");
  778. break;
  779. case "karaokeroom":
  780. bgCombo2List[index] = new GUIContent("カラオケルーム");
  781. break;
  782. case "rotenburo":
  783. bgCombo2List[index] = new GUIContent("露天風呂");
  784. break;
  785. case "rotenburo_night":
  786. bgCombo2List[index] = new GUIContent("露天風呂(夜)");
  787. break;
  788. case "villa":
  789. bgCombo2List[index] = new GUIContent("ヴィラ1F");
  790. break;
  791. case "villa_bedroom":
  792. bgCombo2List[index] = new GUIContent("ヴィラ2F");
  793. break;
  794. case "villa_bedroom_night":
  795. bgCombo2List[index] = new GUIContent("ヴィラ2F(夜)");
  796. break;
  797. case "villa_farm":
  798. bgCombo2List[index] = new GUIContent("畑");
  799. break;
  800. case "villa_farm_night":
  801. bgCombo2List[index] = new GUIContent("畑(夜)");
  802. break;
  803. case "villa_night":
  804. bgCombo2List[index] = new GUIContent("ヴィラ1F(夜)");
  805. break;
  806. default:
  807. bgCombo2List[index] = new GUIContent(bgArray[index]);
  808. break;
  809. }
  810. Dictionary<string, string> saveDataDic = CreativeRoomManager.GetSaveDataDic();
  811. if (saveDataDic != null)
  812. {
  813. foreach (KeyValuePair<string, string> keyValuePair in saveDataDic)
  814. {
  815. if (bgArray[index] == keyValuePair.Key)
  816. bgCombo2List[index] = new GUIContent(keyValuePair.Value);
  817. }
  818. }
  819. }
  820. slotCombo.selectedItemIndex = 0;
  821. slotComboList = new GUIContent[slotArray.Length];
  822. for (int index = 0; index < slotArray.Length; ++index)
  823. {
  824. switch (slotArray[index])
  825. {
  826. case "accashi":
  827. slotComboList[index] = new GUIContent("足首");
  828. break;
  829. case "acchana":
  830. slotComboList[index] = new GUIContent("鼻");
  831. break;
  832. case "acchat":
  833. slotComboList[index] = new GUIContent("帽子");
  834. break;
  835. case "acchead":
  836. slotComboList[index] = new GUIContent("アイマスク");
  837. break;
  838. case "accheso":
  839. slotComboList[index] = new GUIContent("へそ");
  840. break;
  841. case "acckami":
  842. slotComboList[index] = new GUIContent("前髪");
  843. break;
  844. case "acckamisub":
  845. slotComboList[index] = new GUIContent("リボン");
  846. break;
  847. case "acckubi":
  848. slotComboList[index] = new GUIContent("ネックレス");
  849. break;
  850. case "acckubiwa":
  851. slotComboList[index] = new GUIContent("チョーカー");
  852. break;
  853. case "accmimi":
  854. slotComboList[index] = new GUIContent("耳");
  855. break;
  856. case "accnip":
  857. slotComboList[index] = new GUIContent("乳首");
  858. break;
  859. case "accsenaka":
  860. slotComboList[index] = new GUIContent("背中");
  861. break;
  862. case "accshippo":
  863. slotComboList[index] = new GUIContent("しっぽ");
  864. break;
  865. case "accude":
  866. slotComboList[index] = new GUIContent("腕");
  867. break;
  868. case "accxxx":
  869. slotComboList[index] = new GUIContent("前穴");
  870. break;
  871. case "bra":
  872. slotComboList[index] = new GUIContent("ブラジャー");
  873. break;
  874. case "glove":
  875. slotComboList[index] = new GUIContent("手袋");
  876. break;
  877. case "headset":
  878. slotComboList[index] = new GUIContent("ヘッドドレス");
  879. break;
  880. case "megane":
  881. slotComboList[index] = new GUIContent("メガネ");
  882. break;
  883. case "mizugi":
  884. slotComboList[index] = new GUIContent("水着");
  885. break;
  886. case "onepiece":
  887. slotComboList[index] = new GUIContent("ワンピース");
  888. break;
  889. case "panz":
  890. slotComboList[index] = new GUIContent("パンツ");
  891. break;
  892. case "shoes":
  893. slotComboList[index] = new GUIContent("靴");
  894. break;
  895. case "skirt":
  896. slotComboList[index] = new GUIContent("ボトムス");
  897. break;
  898. case "stkg":
  899. slotComboList[index] = new GUIContent("靴下");
  900. break;
  901. case "wear":
  902. slotComboList[index] = new GUIContent("トップス");
  903. break;
  904. default:
  905. slotComboList[index] = new GUIContent(slotArray[index]);
  906. break;
  907. }
  908. }
  909. itemCombo2.selectedItemIndex = 0;
  910. itemCombo2List = new GUIContent[itemBArray.Length];
  911. for (int index = 0; index < itemBArray.Length; ++index)
  912. {
  913. switch (itemBArray[index])
  914. {
  915. case "accanl,accAnl_AnalVibe_I_.menu":
  916. itemCombo2List[index] = new GUIContent("後:アナルバイブ");
  917. break;
  918. case "accanl,accAnl_Photo_NomalVibe_I_.menu":
  919. itemCombo2List[index] = new GUIContent("後:バイブ");
  920. break;
  921. case "accanl,accAnl_Photo_VibeBig_I_.menu":
  922. itemCombo2List[index] = new GUIContent("後:太バイブ");
  923. break;
  924. case "accanl,accAnl_Photo_VibePink_I_.menu":
  925. itemCombo2List[index] = new GUIContent("後:ピンクバイブ");
  926. break;
  927. case "accvag,accVag_VibeBig_I_.menu":
  928. itemCombo2List[index] = new GUIContent("前:太バイブ");
  929. break;
  930. case "accvag,accVag_VibePink_I_.menu":
  931. itemCombo2List[index] = new GUIContent("前:ピンクバイブ");
  932. break;
  933. case "accvag,accVag_Vibe_I_.menu":
  934. itemCombo2List[index] = new GUIContent("前:バイブ");
  935. break;
  936. case "handitem,HandItemH_SoutouVibe_I_.menu":
  937. itemCombo2List[index] = new GUIContent("双頭バイブ");
  938. break;
  939. case "handitem,HandItemL_Cracker_I_.menu":
  940. itemCombo2List[index] = new GUIContent("クラッカー");
  941. break;
  942. case "handitem,HandItemL_Dance_Hataki_I_.menu":
  943. itemCombo2List[index] = new GUIContent("ダンスハタキ");
  944. break;
  945. case "handitem,HandItemL_Dance_Mop_I_.menu":
  946. itemCombo2List[index] = new GUIContent("ダンスモップ");
  947. break;
  948. case "handitem,HandItemL_Dance_Zoukin_I_.menu":
  949. itemCombo2List[index] = new GUIContent("ダンス雑巾");
  950. break;
  951. case "handitem,HandItemL_Etoile_Saucer_I_.menu":
  952. itemCombo2List[index] = new GUIContent("ティーソーサー");
  953. break;
  954. case "handitem,HandItemL_Karaoke_Mike_I_.menu":
  955. itemCombo2List[index] = new GUIContent("カラオケマイク");
  956. break;
  957. case "handitem,HandItemL_Karte_I_.menu":
  958. itemCombo2List[index] = new GUIContent("カルテ");
  959. break;
  960. case "handitem,HandItemL_Katuramuki_Daikon_I_.menu":
  961. itemCombo2List[index] = new GUIContent("桂むき大根");
  962. break;
  963. case "handitem,HandItemL_Kozara_I_.menu":
  964. itemCombo2List[index] = new GUIContent("小皿");
  965. break;
  966. case "handitem,HandItemL_Sara_I_.menu":
  967. itemCombo2List[index] = new GUIContent("皿");
  968. break;
  969. case "handitem,HandItemL_Shisyuu_I_.menu":
  970. itemCombo2List[index] = new GUIContent("刺繍");
  971. break;
  972. case "handitem,HandItemL_Teasaucer_I_.menu":
  973. itemCombo2List[index] = new GUIContent("ティーソーサー");
  974. break;
  975. case "handitem,HandItemR_AnalVibe_I_.menu":
  976. itemCombo2List[index] = new GUIContent("アナルバイブ");
  977. break;
  978. case "handitem,HandItemR_BeerBottle(cap_off)_I_.menu":
  979. itemCombo2List[index] = new GUIContent("ビールボトル(開)");
  980. break;
  981. case "handitem,HandItemR_BeerBottle(cap_on)_I_.menu":
  982. itemCombo2List[index] = new GUIContent("ビールボトル");
  983. break;
  984. case "handitem,HandItemR_BeerGlass_I_.menu":
  985. itemCombo2List[index] = new GUIContent("ビールグラス");
  986. break;
  987. case "handitem,HandItemR_Book_I_.menu":
  988. itemCombo2List[index] = new GUIContent("本");
  989. break;
  990. case "handitem,HandItemR_Chu-B_Lip_I_.menu":
  991. itemCombo2List[index] = new GUIContent("Chu-B Lip");
  992. break;
  993. case "handitem,HandItemR_Chusyaki_I_.menu":
  994. itemCombo2List[index] = new GUIContent("注射器");
  995. break;
  996. case "handitem,HandItemR_Crops_Suika_I_.menu":
  997. itemCombo2List[index] = new GUIContent("スイカ");
  998. break;
  999. case "handitem,HandItemR_Curry_I_.menu":
  1000. itemCombo2List[index] = new GUIContent("カレー");
  1001. break;
  1002. case "handitem,HandItemR_DVD1_I_.menu":
  1003. itemCombo2List[index] = new GUIContent("DVD1");
  1004. break;
  1005. case "handitem,HandItemR_DVD2_I_.menu":
  1006. itemCombo2List[index] = new GUIContent("DVD2");
  1007. break;
  1008. case "handitem,HandItemR_DVD3_I_.menu":
  1009. itemCombo2List[index] = new GUIContent("DVD3");
  1010. break;
  1011. case "handitem,HandItemR_DVD4_I_.menu":
  1012. itemCombo2List[index] = new GUIContent("DVD4");
  1013. break;
  1014. case "handitem,HandItemR_DVD5_I_.menu":
  1015. itemCombo2List[index] = new GUIContent("DVD5");
  1016. break;
  1017. case "handitem,HandItemR_Diary_I_.menu":
  1018. itemCombo2List[index] = new GUIContent("日記");
  1019. break;
  1020. case "handitem,HandItemR_Etoile_Teacup_I_.menu":
  1021. itemCombo2List[index] = new GUIContent("ティーカップ");
  1022. break;
  1023. case "handitem,HandItemR_Folk_I_.menu":
  1024. itemCombo2List[index] = new GUIContent("フォーク");
  1025. break;
  1026. case "handitem,HandItemR_Furaidopoteto_I_.menu":
  1027. itemCombo2List[index] = new GUIContent("フライドポテト1本");
  1028. break;
  1029. case "handitem,HandItemR_Hanabi_I_.menu":
  1030. itemCombo2List[index] = new GUIContent("手持ち花火");
  1031. break;
  1032. case "handitem,HandItemR_Hari_I_.menu":
  1033. itemCombo2List[index] = new GUIContent("針");
  1034. break;
  1035. case "handitem,HandItemR_Hataki_I_.menu":
  1036. itemCombo2List[index] = new GUIContent("ハタキ");
  1037. break;
  1038. case "handitem,HandItemR_Houchou_I_.menu":
  1039. itemCombo2List[index] = new GUIContent("包丁");
  1040. break;
  1041. case "handitem,HandItemR_Houki_I_.menu":
  1042. itemCombo2List[index] = new GUIContent("ほうき");
  1043. break;
  1044. case "handitem,HandItemR_Jyouro_I_.menu":
  1045. itemCombo2List[index] = new GUIContent("じょうろ");
  1046. break;
  1047. case "handitem,HandItemR_Ketchup_I_.menu":
  1048. itemCombo2List[index] = new GUIContent("ケチャップ");
  1049. break;
  1050. case "handitem,HandItemR_Kobin_I_.menu":
  1051. itemCombo2List[index] = new GUIContent("小瓶");
  1052. break;
  1053. case "handitem,HandItemR_Kushiyaki_I_.menu":
  1054. itemCombo2List[index] = new GUIContent("串焼き");
  1055. break;
  1056. case "handitem,HandItemR_MelonSoda_I_.menu":
  1057. itemCombo2List[index] = new GUIContent("メロンソーダ");
  1058. break;
  1059. case "handitem,HandItemR_Menu_I_.menu":
  1060. itemCombo2List[index] = new GUIContent("メニュー表");
  1061. break;
  1062. case "handitem,HandItemR_MilkBottle(cap_off)_I_.menu":
  1063. itemCombo2List[index] = new GUIContent("牛乳(開)");
  1064. break;
  1065. case "handitem,HandItemR_MilkBottle(cap_on)_I_.menu":
  1066. itemCombo2List[index] = new GUIContent("牛乳");
  1067. break;
  1068. case "handitem,HandItemR_Mimikaki_I_.menu":
  1069. itemCombo2List[index] = new GUIContent("耳かき");
  1070. break;
  1071. case "handitem,HandItemR_Mop_I_.menu":
  1072. itemCombo2List[index] = new GUIContent("モップ");
  1073. break;
  1074. case "handitem,HandItemR_Mugcup_I_.menu":
  1075. itemCombo2List[index] = new GUIContent("マグカップ");
  1076. break;
  1077. case "handitem,HandItemR_Natumikan_I_.menu":
  1078. itemCombo2List[index] = new GUIContent("夏みかん");
  1079. break;
  1080. case "handitem,HandItemR_Nei_Heartful_I_.menu":
  1081. itemCombo2List[index] = new GUIContent("ハートフルねい人形");
  1082. break;
  1083. case "handitem,HandItemR_Ninjin_I_.menu":
  1084. itemCombo2List[index] = new GUIContent("ニンジン");
  1085. break;
  1086. case "handitem,HandItemR_Ochoko_I_.menu":
  1087. itemCombo2List[index] = new GUIContent("お猪口");
  1088. break;
  1089. case "handitem,HandItemR_Omurice1_I_.menu":
  1090. itemCombo2List[index] = new GUIContent("オムライス1");
  1091. break;
  1092. case "handitem,HandItemR_Omurice2_I_.menu":
  1093. itemCombo2List[index] = new GUIContent("オムライス2");
  1094. break;
  1095. case "handitem,HandItemR_Omurice3_I_.menu":
  1096. itemCombo2List[index] = new GUIContent("オムライス3");
  1097. break;
  1098. case "handitem,HandItemR_Otama_I_.menu":
  1099. itemCombo2List[index] = new GUIContent("おたま");
  1100. break;
  1101. case "handitem,HandItemR_Pasta_I_.menu":
  1102. itemCombo2List[index] = new GUIContent("パスタ");
  1103. break;
  1104. case "handitem,HandItemR_Pen_I_.menu":
  1105. itemCombo2List[index] = new GUIContent("ペン");
  1106. break;
  1107. case "handitem,HandItemR_Puff_I_.menu":
  1108. itemCombo2List[index] = new GUIContent("パフ");
  1109. break;
  1110. case "handitem,HandItemR_Rip_I_.menu":
  1111. itemCombo2List[index] = new GUIContent("リップ");
  1112. break;
  1113. case "handitem,HandItemR_Satumaimo_I_.menu":
  1114. itemCombo2List[index] = new GUIContent("さつまいも");
  1115. break;
  1116. case "handitem,HandItemR_Scoop_I_.menu":
  1117. itemCombo2List[index] = new GUIContent("スコップ");
  1118. break;
  1119. case "handitem,HandItemR_Senkouhanabi_I_.menu":
  1120. itemCombo2List[index] = new GUIContent("線香花火");
  1121. break;
  1122. case "handitem,HandItemR_Shaker_I_.menu":
  1123. itemCombo2List[index] = new GUIContent("シェイカー");
  1124. break;
  1125. case "handitem,HandItemR_Shell_I_.menu":
  1126. itemCombo2List[index] = new GUIContent("貝殻");
  1127. break;
  1128. case "handitem,HandItemR_Shihen_I_.menu":
  1129. itemCombo2List[index] = new GUIContent("紙片");
  1130. break;
  1131. case "handitem,HandItemR_SmartPhone_I_.menu":
  1132. itemCombo2List[index] = new GUIContent("スマートフォン");
  1133. break;
  1134. case "handitem,HandItemR_Sponge_I_.menu":
  1135. itemCombo2List[index] = new GUIContent("スポンジ");
  1136. break;
  1137. case "handitem,HandItemR_Spoon_Curry_I_.menu":
  1138. itemCombo2List[index] = new GUIContent("スプーン(カレー)");
  1139. break;
  1140. case "handitem,HandItemR_Spoon_Omurice_I_.menu":
  1141. itemCombo2List[index] = new GUIContent("スプーン(オムライス)");
  1142. break;
  1143. case "handitem,HandItemR_Spoon_Pafe_I_.menu":
  1144. itemCombo2List[index] = new GUIContent("パフェスプーン");
  1145. break;
  1146. case "handitem,HandItemR_Suika_I_.menu":
  1147. itemCombo2List[index] = new GUIContent("スイカ2");
  1148. break;
  1149. case "handitem,HandItemR_Teacup_I_.menu":
  1150. itemCombo2List[index] = new GUIContent("ティーカップ");
  1151. break;
  1152. case "handitem,HandItemR_Tomato_I_.menu":
  1153. itemCombo2List[index] = new GUIContent("トマト");
  1154. break;
  1155. case "handitem,HandItemR_Tomorokoshi_I_.menu":
  1156. itemCombo2List[index] = new GUIContent("トウモロコシ");
  1157. break;
  1158. case "handitem,HandItemR_Tomorokoshi_yaki_I_.menu":
  1159. itemCombo2List[index] = new GUIContent("焼きトウモロコシ");
  1160. break;
  1161. case "handitem,HandItemR_TropicalGlass_I_.menu":
  1162. itemCombo2List[index] = new GUIContent("トロピカルグラス");
  1163. break;
  1164. case "handitem,HandItemR_Uchiwa_I_.menu":
  1165. itemCombo2List[index] = new GUIContent("うちわ");
  1166. break;
  1167. case "handitem,HandItemR_Ukiwa_I_.menu":
  1168. itemCombo2List[index] = new GUIContent("浮き輪");
  1169. break;
  1170. case "handitem,HandItemR_Usuba_Houchou_I_.menu":
  1171. itemCombo2List[index] = new GUIContent("薄刃包丁");
  1172. break;
  1173. case "handitem,HandItemR_VibeBig_I_.menu":
  1174. itemCombo2List[index] = new GUIContent("太バイブ");
  1175. break;
  1176. case "handitem,HandItemR_VibePink_I_.menu":
  1177. itemCombo2List[index] = new GUIContent("ピンクバイブ");
  1178. break;
  1179. case "handitem,HandItemR_Vibe_I_.menu":
  1180. itemCombo2List[index] = new GUIContent("バイブ");
  1181. break;
  1182. case "handitem,HandItemR_Wholecake_I_.menu":
  1183. itemCombo2List[index] = new GUIContent("ホールケーキ");
  1184. break;
  1185. case "handitem,HandItemR_WineBottle_I_.menu":
  1186. itemCombo2List[index] = new GUIContent("ワインボトル");
  1187. break;
  1188. case "handitem,HandItemR_WineGlass_I_.menu":
  1189. itemCombo2List[index] = new GUIContent("ワイングラス");
  1190. break;
  1191. case "handitem,HandItemR_Zoukin2_I_.menu":
  1192. itemCombo2List[index] = new GUIContent("雑巾");
  1193. break;
  1194. case "handitem,HandItemR_cocktail_blue_I_.menu":
  1195. itemCombo2List[index] = new GUIContent("カクテル・青");
  1196. break;
  1197. case "handitem,HandItemR_cocktail_red_I_.menu":
  1198. itemCombo2List[index] = new GUIContent("カクテル・赤");
  1199. break;
  1200. case "handitem,HandItemR_cocktail_yellow_I_.menu":
  1201. itemCombo2List[index] = new GUIContent("カクテル・黄");
  1202. break;
  1203. case "handitem,HandItemR_karaoke_maracas_I_.menu":
  1204. itemCombo2List[index] = new GUIContent("マラカス");
  1205. break;
  1206. case "handitem,HandItemR_karaoke_sensu_I_.menu":
  1207. itemCombo2List[index] = new GUIContent("扇子");
  1208. break;
  1209. case "handitem,HandItemR_pretzel_I_.menu":
  1210. itemCombo2List[index] = new GUIContent("ポッキー");
  1211. break;
  1212. case "handitem,HandItemR_smoothie_green_I_.menu":
  1213. itemCombo2List[index] = new GUIContent("スムージー・緑");
  1214. break;
  1215. case "handitem,HandItemR_smoothie_red_I_.menu":
  1216. itemCombo2List[index] = new GUIContent("スムージー・赤");
  1217. break;
  1218. case "handitem,handitemr_racket_I_.menu":
  1219. itemCombo2List[index] = new GUIContent("ラケット");
  1220. break;
  1221. case "kousoku_lower,KousokuL_BathTowel_I_.menu":
  1222. itemCombo2List[index] = new GUIContent("バストレイ");
  1223. break;
  1224. case "kousoku_upper,KousokuU_SMRoom2_Haritsuke_I_.menu":
  1225. itemCombo2List[index] = new GUIContent("磔台2");
  1226. break;
  1227. case "kousoku_upper,KousokuU_SMRoom_Haritsuke_I_.menu":
  1228. itemCombo2List[index] = new GUIContent("磔台");
  1229. break;
  1230. case "kousoku_upper,KousokuU_TekaseOne_I_.menu":
  1231. itemCombo2List[index] = new GUIContent("手枷1");
  1232. break;
  1233. case "kousoku_upper,KousokuU_TekaseTwo_I_.menu":
  1234. itemCombo2List[index] = new GUIContent("手枷2");
  1235. break;
  1236. case "kousoku_upper,KousokuU_Ushirode_I_.menu":
  1237. itemCombo2List[index] = new GUIContent("後ろ手拘束具");
  1238. break;
  1239. default:
  1240. itemCombo2List[index] = new GUIContent(itemBArray[index]);
  1241. break;
  1242. }
  1243. }
  1244. kankyoCombo.selectedItemIndex = 0;
  1245. kankyoComboList = new GUIContent[kankyoMax];
  1246. for (int index = 0; index < kankyoMax; ++index)
  1247. {
  1248. IniKey iniKey = this.Preferences["kankyo"]["kankyo" + (object) (index + 1)];
  1249. kankyoComboList[index] = new GUIContent(iniKey.Value);
  1250. }
  1251. kankyo2InitFlg = true;
  1252. }
  1253. listStyle3.padding.top = this.GetPix(1);
  1254. listStyle3.padding.bottom = this.GetPix(0);
  1255. listStyle3.fontSize = this.GetPix(13);
  1256. if (poseCombo.isClickedComboButton)
  1257. GUI.enabled = false;
  1258. if (poseGroupCombo.isClickedComboButton)
  1259. GUI.enabled = false;
  1260. if (sceneLevel == 3 || sceneLevel == 5 || isF6)
  1261. {
  1262. if (!isF6)
  1263. {
  1264. bool flag = true;
  1265. if (faceFlg || poseFlg || (sceneFlg || kankyoFlg) || kankyo2Flg)
  1266. flag = false;
  1267. if (GUI.Toggle(new Rect((float) this.GetPix(2),
  1268. (float) this.GetPix(2),
  1269. (float) this.GetPix(39),
  1270. (float) this.GetPix(20)),
  1271. flag,
  1272. "配置",
  1273. style3))
  1274. {
  1275. faceFlg = false;
  1276. poseFlg = false;
  1277. sceneFlg = false;
  1278. kankyoFlg = false;
  1279. kankyo2Flg = false;
  1280. bGui = true;
  1281. isGuiInit = true;
  1282. }
  1283. }
  1284. if (!yotogiFlg && GUI.Toggle(new Rect((float) this.GetPix(42),
  1285. (float) this.GetPix(2),
  1286. (float) this.GetPix(39),
  1287. (float) this.GetPix(20)),
  1288. poseFlg,
  1289. "操作",
  1290. style3))
  1291. {
  1292. poseFlg = true;
  1293. faceFlg = false;
  1294. sceneFlg = false;
  1295. kankyoFlg = false;
  1296. kankyo2Flg = false;
  1297. }
  1298. if (GUI.Toggle(new Rect((float) this.GetPix(82), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
  1299. faceFlg,
  1300. "表情",
  1301. style3))
  1302. {
  1303. faceFlg = true;
  1304. poseFlg = false;
  1305. sceneFlg = false;
  1306. kankyoFlg = false;
  1307. kankyo2Flg = false;
  1308. if (!faceFlg2)
  1309. {
  1310. isFaceInit = true;
  1311. faceFlg2 = true;
  1312. maidArray[selectMaidIndex].boMabataki = false;
  1313. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  1314. }
  1315. isFaceInit = true;
  1316. }
  1317. if (GUI.Toggle(new Rect((float) this.GetPix(122), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
  1318. kankyoFlg,
  1319. "環境",
  1320. style3))
  1321. {
  1322. poseFlg = false;
  1323. faceFlg = false;
  1324. sceneFlg = false;
  1325. kankyoFlg = true;
  1326. kankyo2Flg = false;
  1327. }
  1328. if (GUI.Toggle(new Rect((float) this.GetPix(162), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
  1329. kankyo2Flg,
  1330. "環2",
  1331. style3))
  1332. {
  1333. poseFlg = false;
  1334. faceFlg = false;
  1335. sceneFlg = false;
  1336. kankyoFlg = false;
  1337. kankyo2Flg = true;
  1338. }
  1339. if (!(bool) ((Object) line1))
  1340. {
  1341. line1 = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.3f));
  1342. line2 = this.MakeTex(2, 2, new Color(0.7f, 0.7f, 0.7f, 0.6f));
  1343. }
  1344. GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(20), (float) this.GetPix(200), 2f), (Texture) line1);
  1345. GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(20), (float) this.GetPix(200), 1f), (Texture) line2);
  1346. }
  1347. if (isDanceStop)
  1348. {
  1349. isStop[selectMaidIndex] = true;
  1350. isDanceStop = false;
  1351. }
  1352. if (kankyoCombo.isClickedComboButton || slotCombo.isClickedComboButton
  1353. || (itemCombo2.isClickedComboButton || bgCombo2.isClickedComboButton))
  1354. GUI.enabled = false;
  1355. characterMgr.GetStockMaidCount();
  1356. float pix = (float) this.GetPix(45);
  1357. Rect position1;
  1358. Rect viewRect;
  1359. if (sceneLevel != 5)
  1360. {
  1361. position1 = new Rect((float) this.GetPix(7),
  1362. (float) this.GetPix(138),
  1363. (float) (this.GetPix(44) * 4 + this.GetPix(20)),
  1364. rectWin.height * 0.785f);
  1365. viewRect = new Rect(0.0f,
  1366. 0.0f,
  1367. position1.width * 0.845f,
  1368. pix * (float) Math.Ceiling((double) sortList.Count / 4.0) + (float) this.GetPix(5));
  1369. }
  1370. else
  1371. {
  1372. position1 = new Rect((float) this.GetPix(7),
  1373. (float) this.GetPix(138),
  1374. (float) (this.GetPix(44) * 4 + this.GetPix(20)),
  1375. (float) ((double) rectWin.height * 0.785000026226044 * 0.959999978542328));
  1376. viewRect = new Rect(0.0f,
  1377. 0.0f,
  1378. position1.width * 0.845f,
  1379. (float) ((double) pix * Math.Ceiling((double) sortList.Count / 4.0)
  1380. + (double) this.GetPix(5) * 0.920000016689301));
  1381. }
  1382. scrollPos = GUI.BeginScrollView(position1, scrollPos, viewRect);
  1383. for (int index = 0; index < sortList.Count; ++index)
  1384. {
  1385. Rect position2 = new Rect((float) this.GetPix(index % 4 * 45),
  1386. (float) this.GetPix(index / 4 * 45),
  1387. (float) this.GetPix(44),
  1388. (float) this.GetPix(44));
  1389. if (GUI.Button(position2, (Texture) sortList[index].tex))
  1390. {
  1391. string menu = sortList[index].menu;
  1392. byte[] f_byBuf = (byte[]) null;
  1393. using (AFileBase afileBase = GameUty.FileOpen(menu, (AFileSystemBase) null))
  1394. {
  1395. NDebug.Assert(afileBase.IsValid(), "メニューファイルが存在しません。 :" + menu);
  1396. if (f_byBuf == null || f_byBuf.Length < afileBase.GetSize())
  1397. f_byBuf = new byte[afileBase.GetSize()];
  1398. afileBase.Read(ref f_byBuf, afileBase.GetSize());
  1399. }
  1400. string[] filename2 = ProcScriptBin(maidArray[0], f_byBuf, menu, false);
  1401. GameObject gameObject = ImportCM2.LoadSkinMesh_R(filename2[0], filename2, "", maidArray[0].body0.goSlot[8], 1);
  1402. doguBObject.Add(gameObject);
  1403. gameObject.name = menu;
  1404. Vector3 zero1 = Vector3.zero;
  1405. Vector3 zero2 = Vector3.zero;
  1406. zero1.z = 0.4f;
  1407. gameObject.transform.localPosition = zero1;
  1408. gameObject.transform.localRotation = Quaternion.Euler(zero2);
  1409. doguCnt = doguBObject.Count - 1;
  1410. gDogu[doguCnt] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  1411. gDogu[doguCnt].GetComponent<Renderer>().material = m_material;
  1412. gDogu[doguCnt].layer = 8;
  1413. gDogu[doguCnt].GetComponent<Renderer>().enabled = false;
  1414. gDogu[doguCnt].SetActive(false);
  1415. gDogu[doguCnt].transform.position = gameObject.transform.position;
  1416. mDogu[doguCnt] = gDogu[doguCnt].AddComponent<MouseDrag6>();
  1417. mDogu[doguCnt].isScale = false;
  1418. mDogu[doguCnt].obj = gDogu[doguCnt];
  1419. mDogu[doguCnt].maid = gameObject;
  1420. mDogu[doguCnt].angles = gameObject.transform.eulerAngles;
  1421. gDogu[doguCnt].transform.localScale = new Vector3(cubeSize, cubeSize, cubeSize);
  1422. mDogu[doguCnt].ido = 1;
  1423. }
  1424. GUI.DrawTexture(position2, (Texture) sortList[index].tex);
  1425. }
  1426. GUI.EndScrollView();
  1427. GUI.enabled = true;
  1428. GUI.Label(new Rect((float) this.GetPix(3), (float) this.GetPix(108), (float) this.GetPix(100), (float) this.GetPix(25)),
  1429. "服装",
  1430. style1);
  1431. style1.fontSize = this.GetPix(9);
  1432. GUI.Label(new Rect((float) this.GetPix(3), (float) this.GetPix(119), (float) this.GetPix(100), (float) this.GetPix(25)),
  1433. "アクセサリ",
  1434. style1);
  1435. style1.fontSize = this.GetPix(11);
  1436. GUI.Label(new Rect((float) this.GetPix(3), (float) this.GetPix(58), (float) this.GetPix(100), (float) this.GetPix(25)),
  1437. "アイテム",
  1438. style1);
  1439. GUI.Label(new Rect((float) this.GetPix(3), (float) this.GetPix(86), (float) this.GetPix(100), (float) this.GetPix(24)),
  1440. "背景(小)",
  1441. style1);
  1442. if (kankyoCombo.isClickedComboButton || itemCombo2.isClickedComboButton || bgCombo2.isClickedComboButton)
  1443. GUI.enabled = false;
  1444. int num1 =
  1445. slotCombo.List(new Rect((float) this.GetPix(51),
  1446. (float) this.GetPix(111),
  1447. (float) this.GetPix(100),
  1448. (float) this.GetPix(23)),
  1449. slotComboList[slotIndex].text,
  1450. slotComboList,
  1451. buttonStyle,
  1452. (GUIStyle) "box",
  1453. listStyle3);
  1454. GUI.enabled = true;
  1455. if (kankyoCombo.isClickedComboButton || itemCombo2.isClickedComboButton)
  1456. GUI.enabled = false;
  1457. bgIndexB =
  1458. bgCombo2.List(new Rect((float) this.GetPix(51),
  1459. (float) this.GetPix(83),
  1460. (float) this.GetPix(100),
  1461. (float) this.GetPix(23)),
  1462. bgCombo2List[bgIndexB].text,
  1463. bgCombo2List,
  1464. buttonStyle,
  1465. (GUIStyle) "box",
  1466. listStyle3);
  1467. if (GUI.Button(new Rect((float) this.GetPix(156), (float) this.GetPix(83), (float) this.GetPix(38), (float) this.GetPix(23)),
  1468. "追加",
  1469. style2))
  1470. {
  1471. Object original = (Object) GameMain.Instance.BgMgr.CreateAssetBundle(bgArray[bgIndexB]);
  1472. if (original == (Object) null)
  1473. original = Resources.Load("BG/" + bgArray[bgIndexB]);
  1474. GameObject gameObject = Instantiate(original) as GameObject;
  1475. doguBObject.Add(gameObject);
  1476. gameObject.name = "BG_" + bgArray[bgIndexB];
  1477. Vector3 zero1 = Vector3.zero;
  1478. Vector3 zero2 = Vector3.zero;
  1479. zero1.z = 0.4f;
  1480. gameObject.transform.localScale = new Vector3(0.1f, 0.1f, 0.1f);
  1481. gameObject.transform.localPosition = zero1;
  1482. gameObject.transform.localRotation = Quaternion.Euler(zero2);
  1483. doguCnt = doguBObject.Count - 1;
  1484. gDogu[doguCnt] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  1485. gDogu[doguCnt].GetComponent<Renderer>().material = m_material;
  1486. gDogu[doguCnt].layer = 8;
  1487. gDogu[doguCnt].GetComponent<Renderer>().enabled = false;
  1488. gDogu[doguCnt].SetActive(false);
  1489. gDogu[doguCnt].transform.position = gameObject.transform.position;
  1490. mDogu[doguCnt] = gDogu[doguCnt].AddComponent<MouseDrag6>();
  1491. mDogu[doguCnt].isScale = false;
  1492. mDogu[doguCnt].obj = gDogu[doguCnt];
  1493. mDogu[doguCnt].maid = gameObject;
  1494. mDogu[doguCnt].angles = gameObject.transform.eulerAngles;
  1495. gDogu[doguCnt].transform.localScale = new Vector3(cubeSize, cubeSize, cubeSize);
  1496. mDogu[doguCnt].ido = 1;
  1497. }
  1498. GUI.enabled = true;
  1499. if (kankyoCombo.isClickedComboButton)
  1500. GUI.enabled = false;
  1501. itemIndexB =
  1502. itemCombo2.List(new Rect((float) this.GetPix(51),
  1503. (float) this.GetPix(55),
  1504. (float) this.GetPix(100),
  1505. (float) this.GetPix(23)),
  1506. itemCombo2List[itemIndexB].text,
  1507. itemCombo2List,
  1508. buttonStyle,
  1509. (GUIStyle) "box",
  1510. listStyle3);
  1511. if (GUI.Button(new Rect((float) this.GetPix(156), (float) this.GetPix(55), (float) this.GetPix(38), (float) this.GetPix(23)),
  1512. "追加",
  1513. style2))
  1514. {
  1515. string str = itemBArray[itemIndexB].Split(',')[1];
  1516. byte[] f_byBuf = (byte[]) null;
  1517. using (AFileBase afileBase = GameUty.FileOpen(str, (AFileSystemBase) null))
  1518. {
  1519. NDebug.Assert(afileBase.IsValid(), "メニューファイルが存在しません。 :" + str);
  1520. if (f_byBuf == null || f_byBuf.Length < afileBase.GetSize())
  1521. f_byBuf = new byte[afileBase.GetSize()];
  1522. afileBase.Read(ref f_byBuf, afileBase.GetSize());
  1523. }
  1524. string[] filename2 = ProcScriptBin(maidArray[0], f_byBuf, str, false);
  1525. GameObject gameObject = ImportCM2.LoadSkinMesh_R(filename2[0], filename2, "", maidArray[0].body0.goSlot[8], 1);
  1526. doguBObject.Add(gameObject);
  1527. gameObject.name = str;
  1528. Vector3 zero1 = Vector3.zero;
  1529. Vector3 zero2 = Vector3.zero;
  1530. zero1.z = 0.4f;
  1531. switch (itemIndexB)
  1532. {
  1533. case 0:
  1534. zero2.z = 90f;
  1535. zero1.y = 0.04f;
  1536. goto case 19;
  1537. case 1:
  1538. zero2.z = 90f;
  1539. goto case 19;
  1540. case 4:
  1541. zero2.x = 90f;
  1542. goto case 19;
  1543. case 19:
  1544. case 20:
  1545. case 21:
  1546. case 22:
  1547. case 23:
  1548. switch (gameObject.name)
  1549. {
  1550. case "HandItemL_Etoile_Saucer_I_.menu":
  1551. case "HandItemL_Karte_I_.menu":
  1552. case "HandItemL_Katuramuki_Daikon_I_.menu":
  1553. case "HandItemR_BeerBottle(cap_off)_I_.menu":
  1554. case "HandItemR_BeerBottle(cap_on)_I_.menu":
  1555. case "HandItemR_BeerGlass_I_.menu":
  1556. case "HandItemR_Etoile_Teacup_I_.menu":
  1557. case "HandItemR_Jyouro_I_.menu":
  1558. case "HandItemR_Ketchup_I_.menu":
  1559. case "HandItemR_Kobin_I_.menu":
  1560. case "HandItemR_MelonSoda_I_.menu":
  1561. case "HandItemR_MilkBottle(cap_off)_I_.menu":
  1562. case "HandItemR_MilkBottle(cap_on)_I_.menu":
  1563. case "HandItemR_Mugcup_I_.menu":
  1564. case "HandItemR_Natumikan_I_.menu":
  1565. case "HandItemR_Nei_Heartful_I_.menu":
  1566. case "HandItemR_Ochoko_I_.menu":
  1567. case "HandItemR_Shaker_I_.menu":
  1568. case "HandItemR_SmartPhone_I_.menu":
  1569. case "HandItemR_Suika_I_.menu":
  1570. case "HandItemR_Tomato_I_.menu":
  1571. case "HandItemR_TropicalGlass_I_.menu":
  1572. case "HandItemR_cocktail_blue_I_.menu":
  1573. case "HandItemR_cocktail_red_I_.menu":
  1574. case "HandItemR_cocktail_yellow_I_.menu":
  1575. case "HandItemR_smoothie_green_I_.menu":
  1576. case "HandItemR_smoothie_red_I_.menu":
  1577. zero2.x = 0.0f;
  1578. zero2.z = 90f;
  1579. break;
  1580. case "HandItemL_Karaoke_Mike_I_.menu":
  1581. case "HandItemR_Crops_Suika_I_.menu":
  1582. case "HandItemR_Curry_I_.menu":
  1583. case "HandItemR_DVD1_I_.menu":
  1584. case "HandItemR_DVD2_I_.menu":
  1585. case "HandItemR_DVD3_I_.menu":
  1586. case "HandItemR_DVD4_I_.menu":
  1587. case "HandItemR_DVD5_I_.menu":
  1588. case "HandItemR_Folk_I_.menu":
  1589. case "HandItemR_Hanabi_I_.menu":
  1590. case "HandItemR_Kushiyaki_I_.menu":
  1591. case "HandItemR_Ninjin_I_.menu":
  1592. case "HandItemR_Omurice1_I_.menu":
  1593. case "HandItemR_Omurice2_I_.menu":
  1594. case "HandItemR_Omurice3_I_.menu":
  1595. case "HandItemR_Pasta_I_.menu":
  1596. case "HandItemR_Satumaimo_I_.menu":
  1597. case "HandItemR_Scoop_I_.menu":
  1598. case "HandItemR_Senkouhanabi_I_.menu":
  1599. case "HandItemR_Shell_I_.menu":
  1600. case "HandItemR_Spoon_Curry_I_.menu":
  1601. case "HandItemR_Spoon_Omurice_I_.menu":
  1602. case "HandItemR_Tomorokoshi_I_.menu":
  1603. case "HandItemR_Tomorokoshi_yaki_I_.menu":
  1604. case "HandItemR_Uchiwa_I_.menu":
  1605. zero2.z = 90f;
  1606. break;
  1607. }
  1608. gameObject.transform.localPosition = zero1;
  1609. gameObject.transform.localRotation = Quaternion.Euler(zero2);
  1610. doguCnt = doguBObject.Count - 1;
  1611. gDogu[doguCnt] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  1612. gDogu[doguCnt].GetComponent<Renderer>().material = m_material;
  1613. gDogu[doguCnt].layer = 8;
  1614. gDogu[doguCnt].GetComponent<Renderer>().enabled = false;
  1615. gDogu[doguCnt].SetActive(false);
  1616. gDogu[doguCnt].transform.position = gameObject.transform.position;
  1617. mDogu[doguCnt] = gDogu[doguCnt].AddComponent<MouseDrag6>();
  1618. mDogu[doguCnt].isScale = false;
  1619. mDogu[doguCnt].obj = gDogu[doguCnt];
  1620. mDogu[doguCnt].maid = gameObject;
  1621. mDogu[doguCnt].angles = gameObject.transform.eulerAngles;
  1622. gDogu[doguCnt].transform.localScale = new Vector3(cubeSize, cubeSize, cubeSize);
  1623. mDogu[doguCnt].ido = 1;
  1624. break;
  1625. case 25:
  1626. zero2.z = 90f;
  1627. goto case 19;
  1628. case 26:
  1629. zero2.z = 90f;
  1630. goto case 19;
  1631. case 27:
  1632. zero2.z = 90f;
  1633. goto case 19;
  1634. default:
  1635. zero2.x = -90f;
  1636. goto case 19;
  1637. }
  1638. }
  1639. GUI.enabled = true;
  1640. if (nameFlg)
  1641. {
  1642. inName2 = GUI.TextField(new Rect((float) this.GetPix(5),
  1643. (float) this.GetPix(27),
  1644. (float) this.GetPix(100),
  1645. (float) this.GetPix(20)),
  1646. inName2);
  1647. if (GUI.Button(new Rect((float) this.GetPix(110),
  1648. (float) this.GetPix(27),
  1649. (float) this.GetPix(35),
  1650. (float) this.GetPix(20)),
  1651. "更新",
  1652. style2))
  1653. {
  1654. nameFlg = false;
  1655. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  1656. this.Preferences["kankyo"]["kankyo" + (object) (kankyoCombo.selectedItemIndex + 1)].Value = inName2;
  1657. this.SaveConfig();
  1658. kankyoComboList = new GUIContent[kankyoMax];
  1659. for (int index = 0; index < kankyoMax; ++index)
  1660. {
  1661. IniKey iniKey = this.Preferences["kankyo"]["kankyo" + (object) (index + 1)];
  1662. kankyoComboList[index] = new GUIContent(iniKey.Value);
  1663. }
  1664. }
  1665. }
  1666. else
  1667. {
  1668. if (GUI.Button(new Rect((float) this.GetPix(180),
  1669. (float) this.GetPix(27),
  1670. (float) this.GetPix(24),
  1671. (float) this.GetPix(20)),
  1672. "名",
  1673. style2))
  1674. {
  1675. nameFlg = true;
  1676. inName2 = kankyoComboList[kankyoIndex].text;
  1677. }
  1678. kankyoIndex =
  1679. kankyoCombo.List(new Rect((float) this.GetPix(4),
  1680. (float) this.GetPix(27),
  1681. (float) this.GetPix(91),
  1682. (float) this.GetPix(23)),
  1683. kankyoComboList[kankyoIndex].text,
  1684. kankyoComboList,
  1685. buttonStyle,
  1686. (GUIStyle) "box",
  1687. listStyle3);
  1688. if (GUI.Button(new Rect((float) this.GetPix(100),
  1689. (float) this.GetPix(27),
  1690. (float) this.GetPix(35),
  1691. (float) this.GetPix(20)),
  1692. "保存",
  1693. style2))
  1694. {
  1695. saveScene = 10000 + kankyoIndex;
  1696. saveScene2 = saveScene;
  1697. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  1698. try
  1699. {
  1700. thum_byte_to_base64_ = string.Empty;
  1701. thum_file_path_ = Path.Combine(Path.GetTempPath(), "cm3d2_" + Guid.NewGuid().ToString() + ".png");
  1702. GameMain.Instance.MainCamera.ScreenShot(thum_file_path_, 1, false);
  1703. }
  1704. catch { }
  1705. }
  1706. GUI.enabled = false;
  1707. IniKey iniKey = this.Preferences["scene"]["s" + (object) (10000 + kankyoIndex)];
  1708. if (iniKey.Value != null && iniKey.Value.ToString() != "")
  1709. GUI.enabled = true;
  1710. if (GUI.Button(new Rect((float) this.GetPix(140),
  1711. (float) this.GetPix(27),
  1712. (float) this.GetPix(35),
  1713. (float) this.GetPix(20)),
  1714. "読込",
  1715. style2))
  1716. {
  1717. loadScene = 10000 + kankyoIndex;
  1718. kankyoLoadFlg = true;
  1719. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  1720. }
  1721. }
  1722. GUI.enabled = true;
  1723. if (num1 == slotIndex)
  1724. return;
  1725. slotIndex = num1;
  1726. sortList.Clear();
  1727. scrollPos = new Vector2(0.0f, 0.0f);
  1728. if (itemDataList.Count == 0)
  1729. {
  1730. foreach (string menuFile in GameUty.MenuFiles)
  1731. {
  1732. string fileName = Path.GetFileNameWithoutExtension(menuFile) + ".menu";
  1733. byte[] f_byBuf = (byte[]) null;
  1734. using (AFileBase afileBase = GameUty.FileOpen(fileName, (AFileSystemBase) null))
  1735. {
  1736. NDebug.Assert(afileBase.IsValid(), "メニューファイルが存在しません。 :" + fileName);
  1737. if (f_byBuf == null || f_byBuf.Length < afileBase.GetSize())
  1738. f_byBuf = new byte[afileBase.GetSize()];
  1739. afileBase.Read(ref f_byBuf, afileBase.GetSize());
  1740. }
  1741. BinaryReader binaryReader = new BinaryReader((Stream) new MemoryStream(f_byBuf), Encoding.UTF8);
  1742. if (binaryReader.ReadString() != "CM3D2_MENU")
  1743. {
  1744. binaryReader.Close();
  1745. }
  1746. else
  1747. {
  1748. binaryReader.ReadInt32();
  1749. binaryReader.ReadString();
  1750. binaryReader.ReadString();
  1751. string str1 = binaryReader.ReadString();
  1752. string s = "";
  1753. binaryReader.ReadString();
  1754. binaryReader.ReadInt32();
  1755. string str2 = "";
  1756. try
  1757. {
  1758. do
  1759. {
  1760. int num2;
  1761. do
  1762. {
  1763. num2 = (int) binaryReader.ReadByte();
  1764. } while (num2 == 0);
  1765. for (int index = 0; index < num2; ++index)
  1766. {
  1767. string str3 = binaryReader.ReadString();
  1768. if (str3 == "icons")
  1769. {
  1770. str2 = binaryReader.ReadString();
  1771. break;
  1772. }
  1773. if (str3 == "priority")
  1774. {
  1775. s = binaryReader.ReadString();
  1776. break;
  1777. }
  1778. }
  1779. } while (!(str2 != ""));
  1780. int result = 0;
  1781. int.TryParse(s, out result);
  1782. itemDataList.Add(new ItemData() {info = str1, name = str2, menu = fileName, order = result, cd = f_byBuf});
  1783. }
  1784. catch { }
  1785. binaryReader.Close();
  1786. }
  1787. }
  1788. }
  1789. foreach (ItemData itemData in itemDataList)
  1790. {
  1791. if (slotIndex != 0 && !(itemData.info != slotArray[slotIndex]) && itemData.order > 0)
  1792. sortList.Add(new SortItem() {order = itemData.order, name = itemData.name, menu = itemData.menu, tex = itemData.tex});
  1793. }
  1794. IOrderedEnumerable<SortItem> orderedEnumerable = sortList
  1795. .OrderBy<SortItem, int>((Func<SortItem, int>) (p => p.order))
  1796. .ThenBy<SortItem, string>((Func<SortItem, string>) (p => p.name));
  1797. List<SortItem> sortItemList = new List<SortItem>();
  1798. string str4 = "";
  1799. foreach (SortItem sortItem in (IEnumerable<SortItem>) orderedEnumerable)
  1800. {
  1801. try
  1802. {
  1803. if ((Object) sortItem.tex == (Object) null)
  1804. {
  1805. byte[] data = ImportCM.LoadTexture(GameUty.FileSystem, sortItem.name, false).data;
  1806. Texture2D texture2D = new Texture2D(50, 50, TextureFormat.RGBA32, false);
  1807. texture2D.LoadImage(data);
  1808. sortItem.tex = texture2D;
  1809. }
  1810. if (!(sortItem.menu == str4))
  1811. {
  1812. str4 = sortItem.menu;
  1813. sortItemList.Add(sortItem);
  1814. }
  1815. }
  1816. catch { }
  1817. }
  1818. sortList = sortItemList;
  1819. }
  1820. private void GuiFunc6(int winID)
  1821. {
  1822. GUIStyle guistyle = "label";
  1823. guistyle.fontSize = this.GetPix(12);
  1824. guistyle.alignment = TextAnchor.UpperLeft;
  1825. GUIStyle guistyle2 = "label";
  1826. guistyle2.fontSize = this.GetPix(11);
  1827. guistyle2.alignment = TextAnchor.UpperLeft;
  1828. GUIStyle guistyle3 = "button";
  1829. guistyle3.fontSize = this.GetPix(20);
  1830. GUIStyle guistyle4 = "button";
  1831. guistyle4.fontSize = this.GetPix(14);
  1832. guistyle4.alignment = TextAnchor.MiddleLeft;
  1833. GUIStyle guistyle5 = "button";
  1834. guistyle5.fontSize = this.GetPix(12);
  1835. guistyle5.alignment = TextAnchor.MiddleLeft;
  1836. GUIStyle guistyle6 = new GUIStyle("toggle");
  1837. guistyle6.fontSize = this.GetPix(13);
  1838. CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
  1839. Maid maid = maidArray[selectMaidIndex];
  1840. if (!kankyoInitFlg)
  1841. {
  1842. listStyle2.normal.textColor = Color.white;
  1843. listStyle2.normal.background = this.MakeTex(2, 2, new Color(0f, 0f, 0f, 0.5f));
  1844. listStyle2.onHover.background = (listStyle2.hover.background = new Texture2D(2, 2));
  1845. RectOffset padding = listStyle2.padding;
  1846. RectOffset padding2 = listStyle2.padding;
  1847. RectOffset padding3 = listStyle2.padding;
  1848. int num = listStyle2.padding.bottom = this.GetPix(0);
  1849. num = (padding3.top = num);
  1850. num = (padding2.right = num);
  1851. padding.left = num;
  1852. listStyle2.fontSize = this.GetPix(11);
  1853. listStyle3.normal.textColor = Color.white;
  1854. listStyle3.normal.background = this.MakeTex(2, 2, new Color(0f, 0f, 0f, 0.5f));
  1855. listStyle3.onHover.background = (listStyle3.hover.background = new Texture2D(2, 2));
  1856. RectOffset padding4 = listStyle3.padding;
  1857. RectOffset padding5 = listStyle3.padding;
  1858. num = (listStyle3.padding.top = this.GetPix(0));
  1859. num = (padding5.right = num);
  1860. padding4.left = num;
  1861. listStyle3.padding.bottom = this.GetPix(0);
  1862. listStyle3.fontSize = this.GetPix(12);
  1863. bgmCombo.selectedItemIndex = bgmIndex;
  1864. if (sceneLevel == 5)
  1865. {
  1866. bgmCombo.selectedItemIndex = 2;
  1867. }
  1868. bgmComboList = new GUIContent[bgmArray.Length];
  1869. int i = 0;
  1870. while (i < bgmArray.Length)
  1871. {
  1872. string text = bgmArray[i];
  1873. if (text == null)
  1874. {
  1875. goto IL_501;
  1876. }
  1877. if (dicts[0] == null)
  1878. {
  1879. dicts[0] = new Dictionary<string, int>(11)
  1880. {
  1881. {"dokidokifallinlove_short", 0},
  1882. {"entrancetoyou_short", 1},
  1883. {"scarlet leap_short", 2},
  1884. {"stellarmytears_short", 3},
  1885. {"stellarmytears_short2", 4},
  1886. {"stellarmytears_short3", 5},
  1887. {"RhythmixToYou", 6},
  1888. {"happy_happy_scandal1", 7},
  1889. {"happy_happy_scandal2", 8},
  1890. {"happy_happy_scandal3", 9},
  1891. {"can_know_two_close", 10}
  1892. };
  1893. }
  1894. if (!dicts[0].TryGetValue(text, out num))
  1895. {
  1896. goto IL_501;
  1897. }
  1898. switch (num)
  1899. {
  1900. case 0:
  1901. bgmComboList[i] = new GUIContent("ドキドキ☆Fallin' Love");
  1902. break;
  1903. case 1:
  1904. bgmComboList[i] = new GUIContent("entrance to you");
  1905. break;
  1906. case 2:
  1907. bgmComboList[i] = new GUIContent("scarlet leap");
  1908. break;
  1909. case 3:
  1910. bgmComboList[i] = new GUIContent("stellar my tears1");
  1911. break;
  1912. case 4:
  1913. bgmComboList[i] = new GUIContent("stellar my tears2");
  1914. break;
  1915. case 5:
  1916. bgmComboList[i] = new GUIContent("stellar my tears3");
  1917. break;
  1918. case 6:
  1919. bgmComboList[i] = new GUIContent("rhythmix to you");
  1920. break;
  1921. case 7:
  1922. bgmComboList[i] = new GUIContent("happy!happy!スキャンダル!! 1");
  1923. break;
  1924. case 8:
  1925. bgmComboList[i] = new GUIContent("happy!happy!スキャンダル!! 2");
  1926. break;
  1927. case 9:
  1928. bgmComboList[i] = new GUIContent("happy!happy!スキャンダル!! 3");
  1929. break;
  1930. case 10:
  1931. bgmComboList[i] = new GUIContent("Can Know Two Close");
  1932. break;
  1933. default: goto IL_501;
  1934. }
  1935. IL_51A:
  1936. i++;
  1937. continue;
  1938. IL_501:
  1939. bgmComboList[i] = new GUIContent(bgmArray[i]);
  1940. goto IL_51A;
  1941. }
  1942. bgCombo.selectedItemIndex = bgIndex;
  1943. bgComboList = new GUIContent[bgArray.Length];
  1944. i = 0;
  1945. while (i < bgArray.Length)
  1946. {
  1947. string text = bgArray[i];
  1948. if (text == null)
  1949. {
  1950. goto IL_1692;
  1951. }
  1952. switch (text)
  1953. {
  1954. case "Salon":
  1955. bgComboList[i] = new GUIContent("Salon");
  1956. break;
  1957. case "Syosai":
  1958. bgComboList[i] = new GUIContent("Study");
  1959. break;
  1960. case "Syosai_Night":
  1961. bgComboList[i] = new GUIContent("Study (Night)");
  1962. break;
  1963. case "DressRoom_NoMirror":
  1964. bgComboList[i] = new GUIContent("Dress Room");
  1965. break;
  1966. case "MyBedRoom":
  1967. bgComboList[i] = new GUIContent("MC's Room");
  1968. break;
  1969. case "MyBedRoom_Night":
  1970. bgComboList[i] = new GUIContent("MC's Room (Night)");
  1971. break;
  1972. case "MyBedRoom_NightOff":
  1973. bgComboList[i] = new GUIContent("MC's Room (Dark)");
  1974. break;
  1975. case "Bathroom":
  1976. bgComboList[i] = new GUIContent("Bathroom");
  1977. break;
  1978. case "PlayRoom":
  1979. bgComboList[i] = new GUIContent("Play Room");
  1980. break;
  1981. case "Pool":
  1982. bgComboList[i] = new GUIContent("Pool");
  1983. break;
  1984. case "SMRoom":
  1985. bgComboList[i] = new GUIContent("SM Room");
  1986. break;
  1987. case "PlayRoom2":
  1988. bgComboList[i] = new GUIContent("Play Room 2");
  1989. break;
  1990. case "Salon_Garden":
  1991. bgComboList[i] = new GUIContent("Courtyard");
  1992. break;
  1993. case "LargeBathRoom":
  1994. bgComboList[i] = new GUIContent("Big Bath");
  1995. break;
  1996. case "MaidRoom":
  1997. bgComboList[i] = new GUIContent("Maid Room");
  1998. break;
  1999. case "OiranRoom":
  2000. bgComboList[i] = new GUIContent("Cortesan Room");
  2001. break;
  2002. case "Penthouse":
  2003. bgComboList[i] = new GUIContent("Penthouse");
  2004. break;
  2005. case "Town":
  2006. bgComboList[i] = new GUIContent("Town");
  2007. break;
  2008. case "Kitchen":
  2009. bgComboList[i] = new GUIContent("Kitchen");
  2010. break;
  2011. case "Kitchen_Night":
  2012. bgComboList[i] = new GUIContent("Kitchen (Night)");
  2013. break;
  2014. case "Shitsumu":
  2015. bgComboList[i] = new GUIContent("執務室");
  2016. break;
  2017. case "Shitsumu_Night":
  2018. bgComboList[i] = new GUIContent("執務室(夜)");
  2019. break;
  2020. case "Salon_Entrance":
  2021. bgComboList[i] = new GUIContent("エントランス");
  2022. break;
  2023. case "Bar":
  2024. bgComboList[i] = new GUIContent("バー");
  2025. break;
  2026. case "Toilet":
  2027. bgComboList[i] = new GUIContent("トイレ");
  2028. break;
  2029. case "Train":
  2030. bgComboList[i] = new GUIContent("電車");
  2031. break;
  2032. case "SMRoom2":
  2033. bgComboList[i] = new GUIContent("地下室");
  2034. break;
  2035. case "LockerRoom":
  2036. bgComboList[i] = new GUIContent("ロッカールーム");
  2037. break;
  2038. case "Oheya":
  2039. bgComboList[i] = new GUIContent("四畳半部屋");
  2040. break;
  2041. case "Salon_Day":
  2042. bgComboList[i] = new GUIContent("サロン(昼)");
  2043. break;
  2044. case "ClassRoom":
  2045. bgComboList[i] = new GUIContent("教室");
  2046. break;
  2047. case "ClassRoom_Play":
  2048. bgComboList[i] = new GUIContent("教室(夜伽)");
  2049. break;
  2050. case "HoneymoonRoom":
  2051. bgComboList[i] = new GUIContent("ハネムーンルーム");
  2052. break;
  2053. case "OutletPark":
  2054. bgComboList[i] = new GUIContent("アウトレットパーク");
  2055. break;
  2056. case "BigSight":
  2057. bgComboList[i] = new GUIContent("ビッグサイト");
  2058. break;
  2059. case "BigSight_Night":
  2060. bgComboList[i] = new GUIContent("ビッグサイト(夜)");
  2061. break;
  2062. case "PrivateRoom":
  2063. bgComboList[i] = new GUIContent("プライベートルーム");
  2064. break;
  2065. case "PrivateRoom_Night":
  2066. bgComboList[i] = new GUIContent("プライベートルーム(夜)");
  2067. break;
  2068. case "Sea":
  2069. bgComboList[i] = new GUIContent("海");
  2070. break;
  2071. case "Sea_Night":
  2072. bgComboList[i] = new GUIContent("海(夜)");
  2073. break;
  2074. case "Yashiki":
  2075. bgComboList[i] = new GUIContent("屋敷(夜)");
  2076. break;
  2077. case "Yashiki_Day":
  2078. bgComboList[i] = new GUIContent("屋敷");
  2079. break;
  2080. case "Yashiki_Pillow":
  2081. bgComboList[i] = new GUIContent("屋敷(夜・枕)");
  2082. break;
  2083. case "rotenburo":
  2084. bgComboList[i] = new GUIContent("露天風呂");
  2085. break;
  2086. case "rotenburo_night":
  2087. bgComboList[i] = new GUIContent("露天風呂(夜)");
  2088. break;
  2089. case "villa":
  2090. bgComboList[i] = new GUIContent("ヴィラ1F");
  2091. break;
  2092. case "villa_night":
  2093. bgComboList[i] = new GUIContent("ヴィラ1F(夜)");
  2094. break;
  2095. case "villa_bedroom":
  2096. bgComboList[i] = new GUIContent("ヴィラ2F");
  2097. break;
  2098. case "villa_bedroom_night":
  2099. bgComboList[i] = new GUIContent("ヴィラ2F(夜)");
  2100. break;
  2101. case "villa_farm":
  2102. bgComboList[i] = new GUIContent("畑");
  2103. break;
  2104. case "villa_farm_night":
  2105. bgComboList[i] = new GUIContent("畑(夜)");
  2106. break;
  2107. case "karaokeroom":
  2108. bgComboList[i] = new GUIContent("カラオケルーム");
  2109. break;
  2110. case "Theater":
  2111. bgComboList[i] = new GUIContent("劇場");
  2112. break;
  2113. case "Theater_LightOff":
  2114. bgComboList[i] = new GUIContent("劇場(夜)");
  2115. break;
  2116. case "LiveStage":
  2117. bgComboList[i] = new GUIContent("ステージ");
  2118. break;
  2119. case "LiveStage_Side":
  2120. bgComboList[i] = new GUIContent("ステージ(ライト)");
  2121. break;
  2122. case "LiveStage_use_dance":
  2123. bgComboList[i] = new GUIContent("ステージ(オフ)");
  2124. break;
  2125. case "BackStage":
  2126. bgComboList[i] = new GUIContent("ステージ裏");
  2127. break;
  2128. case "DanceRoom":
  2129. bgComboList[i] = new GUIContent("トレーニングルーム");
  2130. break;
  2131. case "EmpireClub_Rotary":
  2132. bgComboList[i] = new GUIContent("ロータリー");
  2133. break;
  2134. case "EmpireClub_Rotary_Night":
  2135. bgComboList[i] = new GUIContent("ロータリー(夜)");
  2136. break;
  2137. case "EmpireClub_Entrance":
  2138. bgComboList[i] = new GUIContent("エントランス");
  2139. break;
  2140. case "ShinShitsumu":
  2141. bgComboList[i] = new GUIContent("執務室");
  2142. break;
  2143. case "ShinShitsumu_ChairRot":
  2144. bgComboList[i] = new GUIContent("執務室(椅子)");
  2145. break;
  2146. case "ShinShitsumu_Night":
  2147. bgComboList[i] = new GUIContent("執務室(夜)");
  2148. break;
  2149. case "MyRoom":
  2150. bgComboList[i] = new GUIContent("主人公部屋");
  2151. break;
  2152. case "MyRoom_Night":
  2153. bgComboList[i] = new GUIContent("主人公部屋(夜)");
  2154. break;
  2155. case "OpemCafe":
  2156. bgComboList[i] = new GUIContent("カフェ");
  2157. break;
  2158. case "OpemCafe_Night":
  2159. bgComboList[i] = new GUIContent("カフェ(夜)");
  2160. break;
  2161. case "Restaurant":
  2162. bgComboList[i] = new GUIContent("レストラン");
  2163. break;
  2164. case "Restaurant_Night":
  2165. bgComboList[i] = new GUIContent("レストラン(夜)");
  2166. break;
  2167. case "MainKitchen":
  2168. bgComboList[i] = new GUIContent("キッチン");
  2169. break;
  2170. case "MainKitchen_Night":
  2171. bgComboList[i] = new GUIContent("キッチン(夜)");
  2172. break;
  2173. case "MainKitchen_LightOff":
  2174. bgComboList[i] = new GUIContent("キッチン(オフ)");
  2175. break;
  2176. case "BarLounge":
  2177. bgComboList[i] = new GUIContent("バー");
  2178. break;
  2179. case "Casino":
  2180. bgComboList[i] = new GUIContent("カジノ");
  2181. break;
  2182. case "CasinoMini":
  2183. bgComboList[i] = new GUIContent("カジノミニ");
  2184. break;
  2185. case "SMClub":
  2186. bgComboList[i] = new GUIContent("SMクラブ");
  2187. break;
  2188. case "Soap":
  2189. bgComboList[i] = new GUIContent("ソープ");
  2190. break;
  2191. case "Spa":
  2192. bgComboList[i] = new GUIContent("スパ");
  2193. break;
  2194. case "Spa_Night":
  2195. bgComboList[i] = new GUIContent("スパ(夜)");
  2196. break;
  2197. case "ShoppingMall":
  2198. bgComboList[i] = new GUIContent("ショッピングモール");
  2199. break;
  2200. case "ShoppingMall_Night":
  2201. bgComboList[i] = new GUIContent("ショッピングモール(夜)");
  2202. break;
  2203. case "GameShop":
  2204. bgComboList[i] = new GUIContent("ゲームショップ");
  2205. break;
  2206. case "MusicShop":
  2207. bgComboList[i] = new GUIContent("ミュージックショップ");
  2208. break;
  2209. case "HeroineRoom_A1":
  2210. bgComboList[i] = new GUIContent("無垢部屋");
  2211. break;
  2212. case "HeroineRoom_A1_Night":
  2213. bgComboList[i] = new GUIContent("無垢部屋(夜)");
  2214. break;
  2215. case "HeroineRoom_B1":
  2216. bgComboList[i] = new GUIContent("真面目部屋");
  2217. break;
  2218. case "HeroineRoom_B1_Night":
  2219. bgComboList[i] = new GUIContent("真面目部屋(夜)");
  2220. break;
  2221. case "HeroineRoom_C1":
  2222. bgComboList[i] = new GUIContent("凜デレ部屋");
  2223. break;
  2224. case "HeroineRoom_C1_Night":
  2225. bgComboList[i] = new GUIContent("凜デレ部屋(夜)");
  2226. break;
  2227. case "HeroineRoom_A":
  2228. bgComboList[i] = new GUIContent("ツンデレ部屋");
  2229. break;
  2230. case "HeroineRoom_A_Night":
  2231. bgComboList[i] = new GUIContent("ツンデレ部屋(夜)");
  2232. break;
  2233. case "HeroineRoom_B":
  2234. bgComboList[i] = new GUIContent("クーデレ部屋");
  2235. break;
  2236. case "HeroineRoom_B_Night":
  2237. bgComboList[i] = new GUIContent("クーデレ部屋(夜)");
  2238. break;
  2239. case "HeroineRoom_C":
  2240. bgComboList[i] = new GUIContent("純真部屋");
  2241. break;
  2242. case "HeroineRoom_C_Night":
  2243. bgComboList[i] = new GUIContent("純真部屋(夜)");
  2244. break;
  2245. case "Shukuhakubeya_BedRoom":
  2246. bgComboList[i] = new GUIContent("宿泊-ベッドルーム");
  2247. break;
  2248. case "Shukuhakubeya_BedRoom_Night":
  2249. bgComboList[i] = new GUIContent("宿泊-ベッドルーム(夜)");
  2250. break;
  2251. case "Shukuhakubeya_Other_BedRoom":
  2252. bgComboList[i] = new GUIContent("宿泊-他ベッドルーム(夜)");
  2253. break;
  2254. case "Shukuhakubeya_Living":
  2255. bgComboList[i] = new GUIContent("宿泊-リビング");
  2256. break;
  2257. case "Shukuhakubeya_Living_Night":
  2258. bgComboList[i] = new GUIContent("宿泊-リビング(夜)");
  2259. break;
  2260. case "Shukuhakubeya_Toilet":
  2261. bgComboList[i] = new GUIContent("宿泊-トイレ");
  2262. break;
  2263. case "Shukuhakubeya_Toilet_Night":
  2264. bgComboList[i] = new GUIContent("宿泊-トイレ(夜)");
  2265. break;
  2266. case "Shukuhakubeya_WashRoom":
  2267. bgComboList[i] = new GUIContent("宿泊-洗面所");
  2268. break;
  2269. case "Shukuhakubeya_WashRoom_Night":
  2270. bgComboList[i] = new GUIContent("宿泊-洗面所(夜)");
  2271. break;
  2272. case "HeroineRoom_D1":
  2273. bgComboList[i] = new GUIContent("Bookworm Room");
  2274. break;
  2275. case "HeroineRoom_D1_Night":
  2276. bgComboList[i] = new GUIContent("Bookworm Room (Night)");
  2277. break;
  2278. case "HeroineRoom_D":
  2279. bgComboList[i] = new GUIContent("Oneechan Room");
  2280. break;
  2281. case "HeroineRoom_D_Night":
  2282. bgComboList[i] = new GUIContent("Oneechan Room (Night)");
  2283. break;
  2284. case "HeroineRoom_E":
  2285. bgComboList[i] = new GUIContent("Sadist Room");
  2286. break;
  2287. case "HeroineRoom_E_Night":
  2288. bgComboList[i] = new GUIContent("Sadist Room (Night)");
  2289. break;
  2290. case "opemcafe_rance10":
  2291. bgComboList[i] = new GUIContent("RanceCafe");
  2292. break;
  2293. case "opemcafe_rance10_night":
  2294. bgComboList[i] = new GUIContent("RanceCafe (Night)");
  2295. break;
  2296. case "opemcafe_riddlejoker":
  2297. bgComboList[i] = new GUIContent("RiddleCafe");
  2298. break;
  2299. case "opemcafe_riddlejoker_night":
  2300. bgComboList[i] = new GUIContent("RiddleCafe (Night)");
  2301. break;
  2302. case "SeaCafe":
  2303. bgComboList[i] = new GUIContent("SeaCafe");
  2304. break;
  2305. case "SeaCafe_Night":
  2306. bgComboList[i] = new GUIContent("SeaCafe (Night)");
  2307. break;
  2308. case "com3d2pool":
  2309. bgComboList[i] = new GUIContent("ClubPool");
  2310. break;
  2311. case "com3d2pool_night":
  2312. bgComboList[i] = new GUIContent("ClubPool (Night)");
  2313. break;
  2314. default: goto IL_1692;
  2315. }
  2316. IL_16AB:
  2317. Dictionary<string, string> saveDataDic = CreativeRoomManager.GetSaveDataDic();
  2318. if (saveDataDic != null)
  2319. {
  2320. foreach (KeyValuePair<string, string> keyValuePair in saveDataDic)
  2321. {
  2322. if (bgArray[i] == keyValuePair.Key)
  2323. {
  2324. bgComboList[i] = new GUIContent(keyValuePair.Value);
  2325. }
  2326. }
  2327. }
  2328. i++;
  2329. continue;
  2330. IL_1692:
  2331. string tmp = null;
  2332. if (bgDict.TryGetValue(text, out tmp))
  2333. bgComboList[i] = new GUIContent(tmp);
  2334. else
  2335. bgComboList[i] = new GUIContent(bgArray[i]);
  2336. goto IL_16AB;
  2337. }
  2338. doguCombo.selectedItemIndex = 0;
  2339. doguComboList = new GUIContent[doguBArray.Length];
  2340. i = 0;
  2341. while (i < doguBArray.Length)
  2342. {
  2343. string text = doguBArray[i];
  2344. if (text == null)
  2345. {
  2346. goto IL_40C6;
  2347. }
  2348. if (dicts[2] == null)
  2349. {
  2350. dicts[2] = new Dictionary<string, int>(248)
  2351. {
  2352. {"Odogu_KousokuKijyouiChair_photo_ver", 0},
  2353. {"Odogu_VirginRoad_photo_ver", 1},
  2354. {"neirobo", 2},
  2355. {"Odogu_ClassRoomDesk_photo_ver", 3},
  2356. {"Odogu_ClassRoomChair_photo_ver", 4},
  2357. {"Odogu_TrumpTowerSmall_photo_ver", 5},
  2358. {"Odogu_TrumpTowerBig_photo_ver", 6},
  2359. {"Odogu_VVLight_photo_ver", 7},
  2360. {"Odogu_OXCamera_photo_ver", 8},
  2361. {"Odogu_HandCameraVV_photo_ver", 9},
  2362. {"Odogu_PC_photo_ver", 10},
  2363. {"Odogu_PC_Monitor_photo_ver", 11},
  2364. {"Odogu_PC_Keyboard_photo_ver", 12},
  2365. {"Odogu_PC_Mouse_photo_ver", 13},
  2366. {"Odogu_MaidRoomBook001_photo_ver", 14},
  2367. {"Odogu_MaidRoomBook002_photo_ver", 15},
  2368. {"Odogu_MaidRoomBook003_photo_ver", 16},
  2369. {"Odogu_MaidRoomBook004_photo_ver", 17},
  2370. {"Odogu_MaidRoomBook005_photo_ver", 18},
  2371. {"Odogu_Pen_photo_ver", 19},
  2372. {"Odogu_Pen_Black_photo_ver", 20},
  2373. {"Odogu_Pen_Brown_photo_ver", 21},
  2374. {"Odogu_Pen_Green_photo_ver", 22},
  2375. {"Odogu_Enpitsu_photo_ver", 23},
  2376. {"Odogu_Enpitsu_Black_photo_ver", 24},
  2377. {"Odogu_Enpitsu_Red_photo_ver", 25},
  2378. {"Odogu_Keshigomu_photo_ver", 26},
  2379. {"Odogu_Keshigomu_Purple_photo_ver", 27},
  2380. {"Odogu_Keshigomu_Yellow_photo_ver", 28},
  2381. {"Odogu_StickNori_photo_ver", 29},
  2382. {"Odogu_Condom_Close_photo_ver", 30},
  2383. {"Odogu_Condom_Open_photo_ver", 31},
  2384. {"Odogu_Condom_Pack_photo_ver", 32},
  2385. {"Odogu_SalonSofa_long_photo_ver", 33},
  2386. {"Odogu_SalonSofa_4P_photo_ver", 34},
  2387. {"Odogu_Girochin_A_photo_ver", 35},
  2388. {"Odogu_SankakuMokuba_photo_ver", 36},
  2389. {"Odogu_SMRoom2_SankakuMokuba_photo_ver", 37},
  2390. {"Odogu_Kousokudai_photo_ver", 38},
  2391. {"Odogu_XmasTreeMini_photo_ver", 39},
  2392. {"Odogu_KadomatsuMini_photo_ver", 40},
  2393. {"Odogu_Kitchen_photo_ver", 41},
  2394. {"Odogu_TableFlower_photo_ver", 42},
  2395. {"Odogu_Kadou_photo_ver", 43},
  2396. {"Odogu_Dresser_photo_ver", 44},
  2397. {"Odogu_ClassRoomDesk", 45},
  2398. {"Odogu_KadouChair_photo_ver", 46},
  2399. {"Odogu_DresserChair_photo_ver", 47},
  2400. {"Odogu_MaidRoomChair_photo_ver", 48},
  2401. {"Odogu_PublicToiletBenki_photo_ver", 49},
  2402. {"Odogu_Sukebeisu_photo_ver", 50},
  2403. {"Odogu_Mat_photo_ver", 51},
  2404. {"Odogu_Seikaku_Tsundere", 52},
  2405. {"Odogu_Seikaku_Jyunshin", 53},
  2406. {"Odogu_Seikaku_Cool", 54},
  2407. {"Odogu_Manaita_photo_ver", 55},
  2408. {"Odogu_Nabe_photo_ver", 56},
  2409. {"Odogu_NoteBook_photo_ver", 57},
  2410. {"Odogu_Sankousyo_photo_ver", 58},
  2411. {"Odogu_Sentaku_Kago_photo_ver", 59},
  2412. {"Odogu_Sentaku_Towel_photo_ver", 60},
  2413. {"Odogu_Sentakumono_photo_ver", 61},
  2414. {"Odogu_SalonScreen_photo_ver", 62},
  2415. {"Odogu_WineGlass_photo_ver", 63},
  2416. {"Odogu_SalonSofa_small_photo_ver", 64},
  2417. {"Odogu_Seikaku_Tsundere_photo_ver", 65},
  2418. {"Odogu_Seikaku_Jyunshin_photo_ver", 66},
  2419. {"Odogu_Seikaku_Cool_photo_ver", 67},
  2420. {"Megane001_z2_Scenario_Model", 68},
  2421. {"nei_photo_ver", 69},
  2422. {"neirobo_photo_ver", 70},
  2423. {"Odogu_SimpleTable", 71},
  2424. {"Odogu_DildoBox", 72},
  2425. {"PlayAreaOut", 73},
  2426. {"DesktopScreen", 74},
  2427. {"Odogu_ChuukaSet_chahan_photo_ver", 75},
  2428. {"Odogu_ChuukaSet_gyouza_photo_ver", 76},
  2429. {"Odogu_ChuukaSet_mabo_photo_ver", 77},
  2430. {"Odogu_ChuukaSet_tea_photo_ver", 78},
  2431. {"Odogu_WasyokuSet_gohan_photo_ver", 79},
  2432. {"Odogu_WasyokuSet_hashi_photo_ver", 80},
  2433. {"Odogu_WasyokuSet_misoshiru_photo_ver", 81},
  2434. {"Odogu_WasyokuSet_nimono_photo_ver", 82},
  2435. {"Odogu_WasyokuSet_ocha_photo_ver", 83},
  2436. {"Odogu_YousyokuSet_ChickenRice_photo_ver", 84},
  2437. {"Odogu_YousyokuSet_Coffee_photo_ver", 85},
  2438. {"Odogu_YousyokuSet_CornSoup_photo_ver", 86},
  2439. {"Odogu_YousyokuSet_Hamburg_photo_ver", 87},
  2440. {"Odogu_YousyokuSet_SakiwareSpoon_photo_ver", 88},
  2441. {"Odogu_PR_Table_photo_ver", 89},
  2442. {"Odogu_PR_Table_Chuuka_photo_ver", 90},
  2443. {"Odogu_PR_Table_Wasyoku_photo_ver", 91},
  2444. {"Odogu_PR_Table_Yousyoku_photo_ver", 92},
  2445. {"Odogu_LongDaiza_photo_ver", 93},
  2446. {"BGanimal_cat", 94},
  2447. {"BGanimal_dog", 95},
  2448. {"BGanimal_niwatori", 96},
  2449. {"BGanimal_suzume", 97},
  2450. {"BGodogu_bbqgrill", 98},
  2451. {"BGodogu_bucket", 99},
  2452. {"BGodogu_coolerbox", 100},
  2453. {"BGodogu_game_darts", 101},
  2454. {"BGodogu_game_dartsboard", 102},
  2455. {"BGodogu_nabe_huta", 103},
  2456. {"BGodogu_nabe_water", 104},
  2457. {"BGodogu_natumikan", 105},
  2458. {"BGodogu_rb_chair", 106},
  2459. {"BGodogu_rb_duck", 107},
  2460. {"BGodogu_rb_obon", 108},
  2461. {"BGodogu_rb_tokkuri", 109},
  2462. {"BGodogu_saracorn", 110},
  2463. {"BGodogu_saraimo", 111},
  2464. {"BGodogu_saratomato", 112},
  2465. {"BGodogu_sunanoshiro", 113},
  2466. {"BGodogu_sunanoyama", 114},
  2467. {"BGodogu_tsutsuhanabi", 115},
  2468. {"BGodogu_ukiwa", 116},
  2469. {"BGodogu_vf_crops_corn", 117},
  2470. {"BGodogu_vf_crops_gekkabijin", 118},
  2471. {"BGodogu_vf_crops_gekkabijinflower", 119},
  2472. {"BGodogu_vf_crops_himawari", 120},
  2473. {"BGodogu_vf_crops_natsumikan", 121},
  2474. {"BGodogu_vf_crops_suika", 122},
  2475. {"BGodogu_vf_crops_zakuro", 123},
  2476. {"BGodogu_vf_kanban_ok", 124},
  2477. {"BGodogu_vf_kanban_saibai", 125},
  2478. {"BGodogu_vf_kanban_taiki", 126},
  2479. {"BGodogu_vf_radio", 127},
  2480. {"BGodogu_villa_coffeemaker", 128},
  2481. {"BGodogu_villa_reizouko", 129},
  2482. {"BGodogu_villa_table", 130},
  2483. {"BGodogu_villa_tvrimocon", 131},
  2484. {"BGodogu_villa_winecellar", 132},
  2485. {"BGodogu_villabr_sideboard", 133},
  2486. {"BGOdogu_Game_Nei_USB", 134},
  2487. {"BGOdogu_Game_Wanage", 135},
  2488. {"BGOdogu_Game_Wa", 136},
  2489. {"BGodogu_pafe", 137},
  2490. {"BGodogu_furaidopoteto", 138},
  2491. {"BGodogu_karaoketable", 139},
  2492. {"BGodogu_omuriceh", 140},
  2493. {"BGodogu_omuricekao1", 141},
  2494. {"BGodogu_omuricekao2", 142},
  2495. {"BGodogu_omuriceoppai", 143},
  2496. {"BGodogu_kakigori", 144},
  2497. {"BGodogu_pretzel_sara", 145},
  2498. {"BGodogu_karaoke_box", 146},
  2499. {"Odogu_StandMike", 147},
  2500. {"Odogu_StandMikeBase", 148},
  2501. {"photo_ver/Odogu_Umeko_Mike_photo_ver", 149},
  2502. {"Odogu_HeroineChair_muku", 150},
  2503. {"Odogu_HeroineChair_mazime", 151},
  2504. {"Odogu_HeroineChair_rindere", 152},
  2505. {"Odogu_HeroineChair_tsumdere", 153},
  2506. {"Odogu_HeroineChair_cooldere", 154},
  2507. {"Odogu_HeroineChair_junshin", 155},
  2508. {"photo_ver/Odogu_Etoile_Chair_photo_ver", 156},
  2509. {"Odogu_LoveSofa", 157},
  2510. {"Odogu_TabletPC", 158},
  2511. {"Odogu_Styluspen_black", 159},
  2512. {"Odogu_Styluspen_white", 160},
  2513. {"Odogu_Styluspen_red", 161},
  2514. {"Odogu_Styluspen_blue", 162},
  2515. {"Odogu_Styluspen_yellow", 163},
  2516. {"Odogu_Styluspen_green", 164},
  2517. {"Odogu_Omurice1", 165},
  2518. {"Odogu_Omurice3", 166},
  2519. {"Odogu_OmuriceH", 167},
  2520. {"Odogu_OmuriceKao1", 168},
  2521. {"Odogu_OmuriceKao2", 169},
  2522. {"Odogu_OmuriceOppai", 170},
  2523. {"Odogu_AcquaPazza", 171},
  2524. {"Odogu_Sandwich", 172},
  2525. {"Odogu_vichyssoise", 173},
  2526. {"Odogu_BirthdayCake", 174},
  2527. {"Odogu_Shortcake", 175},
  2528. {"Odogu_MontBlanc", 176},
  2529. {"Odogu_Pafe", 177},
  2530. {"Odogu_Smoothie_Red", 178},
  2531. {"Odogu_Smoothie_Green", 179},
  2532. {"Odogu_Cocktail_Red", 180},
  2533. {"Odogu_Cocktail_Blue", 181},
  2534. {"Odogu_Cocktail_Yellow", 182},
  2535. {"Odogu_Coffiecup", 183},
  2536. {"Odogu_WineBottle(cap_off)", 184},
  2537. {"Odogu_WineBottle(cap_on)", 185},
  2538. {"Odogu_Jyouro", 186},
  2539. {"Odogu_Planter_Red", 187},
  2540. {"Odogu_Planter_Lightblue", 188},
  2541. {"Odogu_MariGold", 189},
  2542. {"Odogu_CasinoChip_10", 190},
  2543. {"Odogu_CasinoChip_100", 191},
  2544. {"Odogu_CasinoChip_1000", 192},
  2545. {"Odogu_CardShooter", 193},
  2546. {"Odogu_CardsDeck", 194},
  2547. {"Odogu_Card_s1", 195},
  2548. {"Odogu_Card_s2", 196},
  2549. {"Odogu_Card_s3", 197},
  2550. {"Odogu_Card_s4", 198},
  2551. {"Odogu_Card_s5", 199},
  2552. {"Odogu_Card_s6", 200},
  2553. {"Odogu_Card_s7", 201},
  2554. {"Odogu_Card_s8", 202},
  2555. {"Odogu_Card_s9", 203},
  2556. {"Odogu_Card_s10", 204},
  2557. {"Odogu_Card_s11", 205},
  2558. {"Odogu_Card_s12", 206},
  2559. {"Odogu_Card_s13", 207},
  2560. {"Odogu_Card_h1", 208},
  2561. {"Odogu_Card_h2", 209},
  2562. {"Odogu_Card_h3", 210},
  2563. {"Odogu_Card_h4", 211},
  2564. {"Odogu_Card_h5", 212},
  2565. {"Odogu_Card_h6", 213},
  2566. {"Odogu_Card_h7", 214},
  2567. {"Odogu_Card_h8", 215},
  2568. {"Odogu_Card_h9", 216},
  2569. {"Odogu_Card_h10", 217},
  2570. {"Odogu_Card_h11", 218},
  2571. {"Odogu_Card_h12", 219},
  2572. {"Odogu_Card_h13", 220},
  2573. {"Odogu_Card_d1", 221},
  2574. {"Odogu_Card_d2", 222},
  2575. {"Odogu_Card_d3", 223},
  2576. {"Odogu_Card_d4", 224},
  2577. {"Odogu_Card_d5", 225},
  2578. {"Odogu_Card_d6", 226},
  2579. {"Odogu_Card_d7", 227},
  2580. {"Odogu_Card_d8", 228},
  2581. {"Odogu_Card_d9", 229},
  2582. {"Odogu_Card_d10", 230},
  2583. {"Odogu_Card_d11", 231},
  2584. {"Odogu_Card_d12", 232},
  2585. {"Odogu_Card_d13", 233},
  2586. {"Odogu_Card_c1", 234},
  2587. {"Odogu_Card_c2", 235},
  2588. {"Odogu_Card_c3", 236},
  2589. {"Odogu_Card_c4", 237},
  2590. {"Odogu_Card_c5", 238},
  2591. {"Odogu_Card_c6", 239},
  2592. {"Odogu_Card_c7", 240},
  2593. {"Odogu_Card_c8", 241},
  2594. {"Odogu_Card_c9", 242},
  2595. {"Odogu_Card_c10", 243},
  2596. {"Odogu_Card_c11", 244},
  2597. {"Odogu_Card_c12", 245},
  2598. {"Odogu_Card_c13", 246},
  2599. {"Odogu_Card_joker", 247}
  2600. };
  2601. }
  2602. if (!dicts[2].TryGetValue(text, out num))
  2603. {
  2604. goto IL_40C6;
  2605. }
  2606. switch (num)
  2607. {
  2608. case 0:
  2609. doguComboList[i] = new GUIContent("拘束椅子");
  2610. break;
  2611. case 1:
  2612. doguComboList[i] = new GUIContent("バージンロード");
  2613. break;
  2614. case 2:
  2615. doguComboList[i] = new GUIContent("ロボねい人形");
  2616. break;
  2617. case 3:
  2618. doguComboList[i] = new GUIContent("教室机");
  2619. break;
  2620. case 4:
  2621. doguComboList[i] = new GUIContent("教室椅子");
  2622. break;
  2623. case 5:
  2624. doguComboList[i] = new GUIContent("トランプタワー(小)");
  2625. break;
  2626. case 6:
  2627. doguComboList[i] = new GUIContent("トランプタワー");
  2628. break;
  2629. case 7:
  2630. doguComboList[i] = new GUIContent("Wライト");
  2631. break;
  2632. case 8:
  2633. doguComboList[i] = new GUIContent("OXカメラ");
  2634. break;
  2635. case 9:
  2636. doguComboList[i] = new GUIContent("レトロカメラ");
  2637. break;
  2638. case 10:
  2639. doguComboList[i] = new GUIContent("PC");
  2640. break;
  2641. case 11:
  2642. doguComboList[i] = new GUIContent("モニター");
  2643. break;
  2644. case 12:
  2645. doguComboList[i] = new GUIContent("キーボード");
  2646. break;
  2647. case 13:
  2648. doguComboList[i] = new GUIContent("マウス");
  2649. break;
  2650. case 14:
  2651. doguComboList[i] = new GUIContent("参考書A");
  2652. break;
  2653. case 15:
  2654. doguComboList[i] = new GUIContent("参考書B");
  2655. break;
  2656. case 16:
  2657. doguComboList[i] = new GUIContent("参考書C");
  2658. break;
  2659. case 17:
  2660. doguComboList[i] = new GUIContent("参考書D");
  2661. break;
  2662. case 18:
  2663. doguComboList[i] = new GUIContent("参考書E");
  2664. break;
  2665. case 19:
  2666. doguComboList[i] = new GUIContent("ペン(桃)");
  2667. break;
  2668. case 20:
  2669. doguComboList[i] = new GUIContent("ペン(黒)");
  2670. break;
  2671. case 21:
  2672. doguComboList[i] = new GUIContent("ペン(茶)");
  2673. break;
  2674. case 22:
  2675. doguComboList[i] = new GUIContent("ペン(緑)");
  2676. break;
  2677. case 23:
  2678. doguComboList[i] = new GUIContent("鉛筆(緑)");
  2679. break;
  2680. case 24:
  2681. doguComboList[i] = new GUIContent("鉛筆(黒)");
  2682. break;
  2683. case 25:
  2684. doguComboList[i] = new GUIContent("鉛筆(赤)");
  2685. break;
  2686. case 26:
  2687. doguComboList[i] = new GUIContent("消しゴム(青)");
  2688. break;
  2689. case 27:
  2690. doguComboList[i] = new GUIContent("消しゴム(紫)");
  2691. break;
  2692. case 28:
  2693. doguComboList[i] = new GUIContent("消しゴム(黄)");
  2694. break;
  2695. case 29:
  2696. doguComboList[i] = new GUIContent("スティック糊");
  2697. break;
  2698. case 30:
  2699. doguComboList[i] = new GUIContent("コンドーム(閉)");
  2700. break;
  2701. case 31:
  2702. doguComboList[i] = new GUIContent("コンドーム(開)");
  2703. break;
  2704. case 32:
  2705. doguComboList[i] = new GUIContent("コンドーム(袋)");
  2706. break;
  2707. case 33:
  2708. doguComboList[i] = new GUIContent("ソファー");
  2709. break;
  2710. case 34:
  2711. doguComboList[i] = new GUIContent("ソファー(大)");
  2712. break;
  2713. case 35:
  2714. doguComboList[i] = new GUIContent("ギロチン");
  2715. break;
  2716. case 36:
  2717. doguComboList[i] = new GUIContent("三角木馬");
  2718. break;
  2719. case 37:
  2720. doguComboList[i] = new GUIContent("三角木馬2");
  2721. break;
  2722. case 38:
  2723. doguComboList[i] = new GUIContent("拘束台");
  2724. break;
  2725. case 39:
  2726. doguComboList[i] = new GUIContent("クリスマスツリー");
  2727. break;
  2728. case 40:
  2729. doguComboList[i] = new GUIContent("門松");
  2730. break;
  2731. case 41:
  2732. doguComboList[i] = new GUIContent("キッチン");
  2733. break;
  2734. case 42:
  2735. doguComboList[i] = new GUIContent("花とテーブル");
  2736. break;
  2737. case 43:
  2738. doguComboList[i] = new GUIContent("華道");
  2739. break;
  2740. case 44:
  2741. doguComboList[i] = new GUIContent("ドレッサー");
  2742. break;
  2743. case 45:
  2744. doguComboList[i] = new GUIContent("教室机");
  2745. break;
  2746. case 46:
  2747. doguComboList[i] = new GUIContent("華道椅子");
  2748. break;
  2749. case 47:
  2750. doguComboList[i] = new GUIContent("ドレッサー椅子");
  2751. break;
  2752. case 48:
  2753. doguComboList[i] = new GUIContent("メイド部屋椅子");
  2754. break;
  2755. case 49:
  2756. doguComboList[i] = new GUIContent("ベンキ");
  2757. break;
  2758. case 50:
  2759. doguComboList[i] = new GUIContent("スケベ椅子");
  2760. break;
  2761. case 51:
  2762. doguComboList[i] = new GUIContent("マット");
  2763. break;
  2764. case 52:
  2765. doguComboList[i] = new GUIContent("ツンデレ");
  2766. break;
  2767. case 53:
  2768. doguComboList[i] = new GUIContent("純真");
  2769. break;
  2770. case 54:
  2771. doguComboList[i] = new GUIContent("クール");
  2772. break;
  2773. case 55:
  2774. doguComboList[i] = new GUIContent("まな板");
  2775. break;
  2776. case 56:
  2777. doguComboList[i] = new GUIContent("鍋");
  2778. break;
  2779. case 57:
  2780. doguComboList[i] = new GUIContent("ノート");
  2781. break;
  2782. case 58:
  2783. doguComboList[i] = new GUIContent("参考書");
  2784. break;
  2785. case 59:
  2786. doguComboList[i] = new GUIContent("洗濯かご");
  2787. break;
  2788. case 60:
  2789. doguComboList[i] = new GUIContent("重ねたタオル");
  2790. break;
  2791. case 61:
  2792. doguComboList[i] = new GUIContent("洗濯物");
  2793. break;
  2794. case 62:
  2795. doguComboList[i] = new GUIContent("スクリーン");
  2796. break;
  2797. case 63:
  2798. doguComboList[i] = new GUIContent("ワイングラス");
  2799. break;
  2800. case 64:
  2801. doguComboList[i] = new GUIContent("ソファー(小)");
  2802. break;
  2803. case 65:
  2804. doguComboList[i] = new GUIContent("ツンデレ");
  2805. break;
  2806. case 66:
  2807. doguComboList[i] = new GUIContent("純真");
  2808. break;
  2809. case 67:
  2810. doguComboList[i] = new GUIContent("クール");
  2811. break;
  2812. case 68:
  2813. doguComboList[i] = new GUIContent("メガネ");
  2814. break;
  2815. case 69:
  2816. doguComboList[i] = new GUIContent("ねい人形");
  2817. break;
  2818. case 70:
  2819. doguComboList[i] = new GUIContent("ロボねい人形");
  2820. break;
  2821. case 71:
  2822. doguComboList[i] = new GUIContent("テーブル");
  2823. break;
  2824. case 72:
  2825. doguComboList[i] = new GUIContent("ディルドボックス");
  2826. break;
  2827. case 73:
  2828. doguComboList[i] = new GUIContent("プレイエリア外");
  2829. break;
  2830. case 74:
  2831. doguComboList[i] = new GUIContent("デスクトップスクリーン");
  2832. break;
  2833. case 75:
  2834. doguComboList[i] = new GUIContent("チャーハン");
  2835. break;
  2836. case 76:
  2837. doguComboList[i] = new GUIContent("餃子");
  2838. break;
  2839. case 77:
  2840. doguComboList[i] = new GUIContent("麻婆豆腐");
  2841. break;
  2842. case 78:
  2843. doguComboList[i] = new GUIContent("お茶");
  2844. break;
  2845. case 79:
  2846. doguComboList[i] = new GUIContent("ご飯");
  2847. break;
  2848. case 80:
  2849. doguComboList[i] = new GUIContent("箸");
  2850. break;
  2851. case 81:
  2852. doguComboList[i] = new GUIContent("味噌汁");
  2853. break;
  2854. case 82:
  2855. doguComboList[i] = new GUIContent("煮物");
  2856. break;
  2857. case 83:
  2858. doguComboList[i] = new GUIContent("緑茶");
  2859. break;
  2860. case 84:
  2861. doguComboList[i] = new GUIContent("チキンライス");
  2862. break;
  2863. case 85:
  2864. doguComboList[i] = new GUIContent("コーヒー");
  2865. break;
  2866. case 86:
  2867. doguComboList[i] = new GUIContent("コーンスープ");
  2868. break;
  2869. case 87:
  2870. doguComboList[i] = new GUIContent("ハンバーグ");
  2871. break;
  2872. case 88:
  2873. doguComboList[i] = new GUIContent("先割れスプーン");
  2874. break;
  2875. case 89:
  2876. doguComboList[i] = new GUIContent("テーブル");
  2877. break;
  2878. case 90:
  2879. doguComboList[i] = new GUIContent("中華テーブル");
  2880. break;
  2881. case 91:
  2882. doguComboList[i] = new GUIContent("和食テーブル");
  2883. break;
  2884. case 92:
  2885. doguComboList[i] = new GUIContent("洋食テーブル");
  2886. break;
  2887. case 93:
  2888. doguComboList[i] = new GUIContent("エッチする時の台");
  2889. break;
  2890. case 94:
  2891. doguComboList[i] = new GUIContent("猫");
  2892. break;
  2893. case 95:
  2894. doguComboList[i] = new GUIContent("犬");
  2895. break;
  2896. case 96:
  2897. doguComboList[i] = new GUIContent("ニワトリ");
  2898. break;
  2899. case 97:
  2900. doguComboList[i] = new GUIContent("スズメ");
  2901. break;
  2902. case 98:
  2903. doguComboList[i] = new GUIContent("バーベキューグリル");
  2904. break;
  2905. case 99:
  2906. doguComboList[i] = new GUIContent("バケツ");
  2907. break;
  2908. case 100:
  2909. doguComboList[i] = new GUIContent("クーラーボックス");
  2910. break;
  2911. case 101:
  2912. doguComboList[i] = new GUIContent("ダーツ");
  2913. break;
  2914. case 102:
  2915. doguComboList[i] = new GUIContent("ダーツボード");
  2916. break;
  2917. case 103:
  2918. doguComboList[i] = new GUIContent("鍋");
  2919. break;
  2920. case 104:
  2921. doguComboList[i] = new GUIContent("鍋");
  2922. break;
  2923. case 105:
  2924. doguComboList[i] = new GUIContent("夏みかん");
  2925. break;
  2926. case 106:
  2927. doguComboList[i] = new GUIContent("風呂椅子");
  2928. break;
  2929. case 107:
  2930. doguComboList[i] = new GUIContent("アヒル");
  2931. break;
  2932. case 108:
  2933. doguComboList[i] = new GUIContent("おぼん");
  2934. break;
  2935. case 109:
  2936. doguComboList[i] = new GUIContent("とっくり");
  2937. break;
  2938. case 110:
  2939. doguComboList[i] = new GUIContent("コーン皿");
  2940. break;
  2941. case 111:
  2942. doguComboList[i] = new GUIContent("イモ皿");
  2943. break;
  2944. case 112:
  2945. doguComboList[i] = new GUIContent("トマト皿");
  2946. break;
  2947. case 113:
  2948. doguComboList[i] = new GUIContent("砂の城");
  2949. break;
  2950. case 114:
  2951. doguComboList[i] = new GUIContent("砂山");
  2952. break;
  2953. case 115:
  2954. doguComboList[i] = new GUIContent("筒花火");
  2955. break;
  2956. case 116:
  2957. doguComboList[i] = new GUIContent("浮き輪");
  2958. break;
  2959. case 117:
  2960. doguComboList[i] = new GUIContent("作物(コーン)");
  2961. break;
  2962. case 118:
  2963. doguComboList[i] = new GUIContent("作物(月下美人)");
  2964. break;
  2965. case 119:
  2966. doguComboList[i] = new GUIContent("作物(月下美人・咲)");
  2967. break;
  2968. case 120:
  2969. doguComboList[i] = new GUIContent("作物(向日葵)");
  2970. break;
  2971. case 121:
  2972. doguComboList[i] = new GUIContent("作物(夏みかん)");
  2973. break;
  2974. case 122:
  2975. doguComboList[i] = new GUIContent("作物(スイカ)");
  2976. break;
  2977. case 123:
  2978. doguComboList[i] = new GUIContent("作物(ザクロ)");
  2979. break;
  2980. case 124:
  2981. doguComboList[i] = new GUIContent("");
  2982. break;
  2983. case 125:
  2984. doguComboList[i] = new GUIContent("");
  2985. break;
  2986. case 126:
  2987. doguComboList[i] = new GUIContent("");
  2988. break;
  2989. case 127:
  2990. doguComboList[i] = new GUIContent("ラジオ");
  2991. break;
  2992. case 128:
  2993. doguComboList[i] = new GUIContent("コーヒーメーカー");
  2994. break;
  2995. case 129:
  2996. doguComboList[i] = new GUIContent("冷蔵庫");
  2997. break;
  2998. case 130:
  2999. doguComboList[i] = new GUIContent("テーブル");
  3000. break;
  3001. case 131:
  3002. doguComboList[i] = new GUIContent("テレビリモコン");
  3003. break;
  3004. case 132:
  3005. doguComboList[i] = new GUIContent("ワインセラー");
  3006. break;
  3007. case 133:
  3008. doguComboList[i] = new GUIContent("サイドボード");
  3009. break;
  3010. case 134:
  3011. doguComboList[i] = new GUIContent("ねい人形USB");
  3012. break;
  3013. case 135:
  3014. doguComboList[i] = new GUIContent("輪投げ");
  3015. break;
  3016. case 136:
  3017. doguComboList[i] = new GUIContent("輪");
  3018. break;
  3019. case 137:
  3020. doguComboList[i] = new GUIContent("パフェ");
  3021. break;
  3022. case 138:
  3023. doguComboList[i] = new GUIContent("フライドポテト");
  3024. break;
  3025. case 139:
  3026. doguComboList[i] = new GUIContent("カラオケテーブル");
  3027. break;
  3028. case 140:
  3029. doguComboList[i] = new GUIContent("オムライスH");
  3030. break;
  3031. case 141:
  3032. doguComboList[i] = new GUIContent("オムライス顔1");
  3033. break;
  3034. case 142:
  3035. doguComboList[i] = new GUIContent("オムライス顔2");
  3036. break;
  3037. case 143:
  3038. doguComboList[i] = new GUIContent("オムライスおっぱい");
  3039. break;
  3040. case 144:
  3041. doguComboList[i] = new GUIContent("かき氷");
  3042. break;
  3043. case 145:
  3044. doguComboList[i] = new GUIContent("スナックプレート");
  3045. break;
  3046. case 146:
  3047. doguComboList[i] = new GUIContent("箱");
  3048. break;
  3049. case 147:
  3050. doguComboList[i] = new GUIContent("スタンドマイク");
  3051. break;
  3052. case 148:
  3053. doguComboList[i] = new GUIContent("スタンドマイクベース");
  3054. break;
  3055. case 149:
  3056. doguComboList[i] = new GUIContent("コアラマイク");
  3057. break;
  3058. case 150:
  3059. doguComboList[i] = new GUIContent("無垢椅子");
  3060. break;
  3061. case 151:
  3062. doguComboList[i] = new GUIContent("真面目椅子");
  3063. break;
  3064. case 152:
  3065. doguComboList[i] = new GUIContent("凛デレ椅子");
  3066. break;
  3067. case 153:
  3068. doguComboList[i] = new GUIContent("ツンデレ椅子");
  3069. break;
  3070. case 154:
  3071. doguComboList[i] = new GUIContent("クーデレ椅子");
  3072. break;
  3073. case 155:
  3074. doguComboList[i] = new GUIContent("純真椅子");
  3075. break;
  3076. case 156:
  3077. doguComboList[i] = new GUIContent("ふかふかチェア");
  3078. break;
  3079. case 157:
  3080. doguComboList[i] = new GUIContent("ラブソファー");
  3081. break;
  3082. case 158:
  3083. doguComboList[i] = new GUIContent("タブレットPC");
  3084. break;
  3085. case 159:
  3086. doguComboList[i] = new GUIContent("スタイラスペン(黒)");
  3087. break;
  3088. case 160:
  3089. doguComboList[i] = new GUIContent("スタイラスペン(白)");
  3090. break;
  3091. case 161:
  3092. doguComboList[i] = new GUIContent("スタイラスペン(赤)");
  3093. break;
  3094. case 162:
  3095. doguComboList[i] = new GUIContent("スタイラスペン(青)");
  3096. break;
  3097. case 163:
  3098. doguComboList[i] = new GUIContent("スタイラスペン(黄)");
  3099. break;
  3100. case 164:
  3101. doguComboList[i] = new GUIContent("スタイラスペン(緑)");
  3102. break;
  3103. case 165:
  3104. doguComboList[i] = new GUIContent("オムライス1");
  3105. break;
  3106. case 166:
  3107. doguComboList[i] = new GUIContent("オムライス3");
  3108. break;
  3109. case 167:
  3110. doguComboList[i] = new GUIContent("オムライスH");
  3111. break;
  3112. case 168:
  3113. doguComboList[i] = new GUIContent("オムライス顔1");
  3114. break;
  3115. case 169:
  3116. doguComboList[i] = new GUIContent("オムライス顔2");
  3117. break;
  3118. case 170:
  3119. doguComboList[i] = new GUIContent("オムライスおっぱい");
  3120. break;
  3121. case 171:
  3122. doguComboList[i] = new GUIContent("アクアパッザ");
  3123. break;
  3124. case 172:
  3125. doguComboList[i] = new GUIContent("サンドイッチ");
  3126. break;
  3127. case 173:
  3128. doguComboList[i] = new GUIContent("スープ");
  3129. break;
  3130. case 174:
  3131. doguComboList[i] = new GUIContent("バースデーケーキ");
  3132. break;
  3133. case 175:
  3134. doguComboList[i] = new GUIContent("ショートケーキ");
  3135. break;
  3136. case 176:
  3137. doguComboList[i] = new GUIContent("モンブラン");
  3138. break;
  3139. case 177:
  3140. doguComboList[i] = new GUIContent("パフェ");
  3141. break;
  3142. case 178:
  3143. doguComboList[i] = new GUIContent("スムージー・赤");
  3144. break;
  3145. case 179:
  3146. doguComboList[i] = new GUIContent("スムージー・緑");
  3147. break;
  3148. case 180:
  3149. doguComboList[i] = new GUIContent("カクテル・赤");
  3150. break;
  3151. case 181:
  3152. doguComboList[i] = new GUIContent("カクテル・青");
  3153. break;
  3154. case 182:
  3155. doguComboList[i] = new GUIContent("カクテル・黄");
  3156. break;
  3157. case 183:
  3158. doguComboList[i] = new GUIContent("コーヒーカップ");
  3159. break;
  3160. case 184:
  3161. doguComboList[i] = new GUIContent("ワインボトル");
  3162. break;
  3163. case 185:
  3164. doguComboList[i] = new GUIContent("ワインボトル(蓋)");
  3165. break;
  3166. case 186:
  3167. doguComboList[i] = new GUIContent("如雨露");
  3168. break;
  3169. case 187:
  3170. doguComboList[i] = new GUIContent("プランター(赤)");
  3171. break;
  3172. case 188:
  3173. doguComboList[i] = new GUIContent("プランター(青)");
  3174. break;
  3175. case 189:
  3176. doguComboList[i] = new GUIContent("マリーゴールド");
  3177. break;
  3178. case 190:
  3179. doguComboList[i] = new GUIContent("カジノチップ10");
  3180. break;
  3181. case 191:
  3182. doguComboList[i] = new GUIContent("カジノチップ100");
  3183. break;
  3184. case 192:
  3185. doguComboList[i] = new GUIContent("カジノチップ1000");
  3186. break;
  3187. case 193:
  3188. doguComboList[i] = new GUIContent("カードシューター");
  3189. break;
  3190. case 194:
  3191. doguComboList[i] = new GUIContent("カードデッキ");
  3192. break;
  3193. case 195:
  3194. doguComboList[i] = new GUIContent("カード・スペードA");
  3195. break;
  3196. case 196:
  3197. doguComboList[i] = new GUIContent("カード・スペード2");
  3198. break;
  3199. case 197:
  3200. doguComboList[i] = new GUIContent("カード・スペード3");
  3201. break;
  3202. case 198:
  3203. doguComboList[i] = new GUIContent("カード・スペード4");
  3204. break;
  3205. case 199:
  3206. doguComboList[i] = new GUIContent("カード・スペード5");
  3207. break;
  3208. case 200:
  3209. doguComboList[i] = new GUIContent("カード・スペード6");
  3210. break;
  3211. case 201:
  3212. doguComboList[i] = new GUIContent("カード・スペード7");
  3213. break;
  3214. case 202:
  3215. doguComboList[i] = new GUIContent("カード・スペード8");
  3216. break;
  3217. case 203:
  3218. doguComboList[i] = new GUIContent("カード・スペード9");
  3219. break;
  3220. case 204:
  3221. doguComboList[i] = new GUIContent("カード・スペード10");
  3222. break;
  3223. case 205:
  3224. doguComboList[i] = new GUIContent("カード・スペードJ");
  3225. break;
  3226. case 206:
  3227. doguComboList[i] = new GUIContent("カード・スペードQ");
  3228. break;
  3229. case 207:
  3230. doguComboList[i] = new GUIContent("カード・スペードK");
  3231. break;
  3232. case 208:
  3233. doguComboList[i] = new GUIContent("カード・ハートA");
  3234. break;
  3235. case 209:
  3236. doguComboList[i] = new GUIContent("カード・ハート2");
  3237. break;
  3238. case 210:
  3239. doguComboList[i] = new GUIContent("カード・ハート3");
  3240. break;
  3241. case 211:
  3242. doguComboList[i] = new GUIContent("カード・ハート4");
  3243. break;
  3244. case 212:
  3245. doguComboList[i] = new GUIContent("カード・ハート5");
  3246. break;
  3247. case 213:
  3248. doguComboList[i] = new GUIContent("カード・ハート6");
  3249. break;
  3250. case 214:
  3251. doguComboList[i] = new GUIContent("カード・ハート7");
  3252. break;
  3253. case 215:
  3254. doguComboList[i] = new GUIContent("カード・ハート8");
  3255. break;
  3256. case 216:
  3257. doguComboList[i] = new GUIContent("カード・ハート9");
  3258. break;
  3259. case 217:
  3260. doguComboList[i] = new GUIContent("カード・ハート10");
  3261. break;
  3262. case 218:
  3263. doguComboList[i] = new GUIContent("カード・ハートJ");
  3264. break;
  3265. case 219:
  3266. doguComboList[i] = new GUIContent("カード・ハートQ");
  3267. break;
  3268. case 220:
  3269. doguComboList[i] = new GUIContent("カード・ハートK");
  3270. break;
  3271. case 221:
  3272. doguComboList[i] = new GUIContent("カード・ダイヤA");
  3273. break;
  3274. case 222:
  3275. doguComboList[i] = new GUIContent("カード・ダイヤ2");
  3276. break;
  3277. case 223:
  3278. doguComboList[i] = new GUIContent("カード・ダイヤ3");
  3279. break;
  3280. case 224:
  3281. doguComboList[i] = new GUIContent("カード・ダイヤ4");
  3282. break;
  3283. case 225:
  3284. doguComboList[i] = new GUIContent("カード・ダイヤ5");
  3285. break;
  3286. case 226:
  3287. doguComboList[i] = new GUIContent("カード・ダイヤ6");
  3288. break;
  3289. case 227:
  3290. doguComboList[i] = new GUIContent("カード・ダイヤ7");
  3291. break;
  3292. case 228:
  3293. doguComboList[i] = new GUIContent("カード・ダイヤ8");
  3294. break;
  3295. case 229:
  3296. doguComboList[i] = new GUIContent("カード・ダイヤ9");
  3297. break;
  3298. case 230:
  3299. doguComboList[i] = new GUIContent("カード・ダイヤ10");
  3300. break;
  3301. case 231:
  3302. doguComboList[i] = new GUIContent("カード・ダイヤJ");
  3303. break;
  3304. case 232:
  3305. doguComboList[i] = new GUIContent("カード・ダイヤQ");
  3306. break;
  3307. case 233:
  3308. doguComboList[i] = new GUIContent("カード・ダイヤK");
  3309. break;
  3310. case 234:
  3311. doguComboList[i] = new GUIContent("カード・クラブA");
  3312. break;
  3313. case 235:
  3314. doguComboList[i] = new GUIContent("カード・クラブ2");
  3315. break;
  3316. case 236:
  3317. doguComboList[i] = new GUIContent("カード・クラブ3");
  3318. break;
  3319. case 237:
  3320. doguComboList[i] = new GUIContent("カード・クラブ4");
  3321. break;
  3322. case 238:
  3323. doguComboList[i] = new GUIContent("カード・クラブ5");
  3324. break;
  3325. case 239:
  3326. doguComboList[i] = new GUIContent("カード・クラブ6");
  3327. break;
  3328. case 240:
  3329. doguComboList[i] = new GUIContent("カード・クラブ7");
  3330. break;
  3331. case 241:
  3332. doguComboList[i] = new GUIContent("カード・クラブ8");
  3333. break;
  3334. case 242:
  3335. doguComboList[i] = new GUIContent("カード・クラブ9");
  3336. break;
  3337. case 243:
  3338. doguComboList[i] = new GUIContent("カード・クラブ10");
  3339. break;
  3340. case 244:
  3341. doguComboList[i] = new GUIContent("カード・クラブJ");
  3342. break;
  3343. case 245:
  3344. doguComboList[i] = new GUIContent("カード・クラブQ");
  3345. break;
  3346. case 246:
  3347. doguComboList[i] = new GUIContent("カード・クラブK");
  3348. break;
  3349. case 247:
  3350. doguComboList[i] = new GUIContent("カード・ジョーカー");
  3351. break;
  3352. default: goto IL_40C6;
  3353. }
  3354. IL_40DF:
  3355. i++;
  3356. continue;
  3357. IL_40C6:
  3358. PhotoBGObjectData tmp = null;
  3359. if (doguDict.TryGetValue(text, out tmp))
  3360. doguComboList[i] = new GUIContent(tmp.name);
  3361. else
  3362. doguComboList[i] = new GUIContent(doguBArray[i]);
  3363. goto IL_40DF;
  3364. }
  3365. parCombo.selectedItemIndex = 0;
  3366. parComboList = new GUIContent[parArray.Length];
  3367. i = 0;
  3368. while (i < parArray.Length)
  3369. {
  3370. string text = parArray[i];
  3371. if (text == null)
  3372. {
  3373. goto IL_48B6;
  3374. }
  3375. if (dicts[3] == null)
  3376. {
  3377. dicts[3] = new Dictionary<string, int>(46)
  3378. {
  3379. {"Salon:63", 0},
  3380. {"Salon:65", 1},
  3381. {"Salon:69", 2},
  3382. {"Salon_Entrance:3", 3},
  3383. {"Salon_Entrance:4", 4},
  3384. {"Salon_Entrance:1", 5},
  3385. {"Salon_Entrance:2", 6},
  3386. {"Salon_Entrance:0", 7},
  3387. {"Pool:26", 8},
  3388. {"Shitsumu:23", 9},
  3389. {"Shitsumu_Night:23", 10},
  3390. {"OutletPark:54", 11},
  3391. {"HoneymoonRoom:102", 12},
  3392. {"mirror1", 13},
  3393. {"mirror2", 14},
  3394. {"mirror3", 15},
  3395. {"Mob_Man_Stand001", 16},
  3396. {"Mob_Man_Stand002", 17},
  3397. {"Mob_Man_Stand003", 18},
  3398. {"Mob_Man_Sit001", 19},
  3399. {"Mob_Man_Sit002", 20},
  3400. {"Mob_Man_Sit003", 21},
  3401. {"Mob_Girl_Stand001", 22},
  3402. {"Mob_Girl_Stand002", 23},
  3403. {"Mob_Girl_Stand003", 24},
  3404. {"Mob_Girl_Sit001", 25},
  3405. {"Mob_Girl_Sit002", 26},
  3406. {"Mob_Girl_Sit003", 27},
  3407. {"p_dance_star_photo_ver", 28},
  3408. {"p_kamihubuki_photo_ver", 29},
  3409. {"p_mizu001_photo_ver", 30},
  3410. {"p_powder_snow2_photo_ver", 31},
  3411. {"p_powder_snow_photo_ver", 32},
  3412. {"p_smoke_dance_photo_ver", 33},
  3413. {"p_soap_bubble01_photo_ver", 34},
  3414. {"p_soap_bukubuku_photo_ver", 35},
  3415. {"p_soap_photo_ver", 36},
  3416. {"p_steam001_photo_ver", 37},
  3417. {"p_steam002_photo_ver", 38},
  3418. {"p_steam_black_photo_ver", 39},
  3419. {"p_yuge_large_photo_ver", 40},
  3420. {"Particle/pLineP02", 41},
  3421. {"Particle/pLineY", 42},
  3422. {"Particle/pLine_act2", 43},
  3423. {"Particle/pstarY_act2", 44},
  3424. {"Particle/pHeart01", 45}
  3425. };
  3426. }
  3427. if (!dicts[3].TryGetValue(text, out num))
  3428. {
  3429. goto IL_48B6;
  3430. }
  3431. switch (num)
  3432. {
  3433. case 0:
  3434. parComboList[i] = new GUIContent("ステージライト(赤)");
  3435. break;
  3436. case 1:
  3437. parComboList[i] = new GUIContent("ステージライト(黄)");
  3438. break;
  3439. case 2:
  3440. parComboList[i] = new GUIContent("ステージライト(青)");
  3441. break;
  3442. case 3:
  3443. parComboList[i] = new GUIContent("ドア(左)");
  3444. break;
  3445. case 4:
  3446. parComboList[i] = new GUIContent("ドア(右)");
  3447. break;
  3448. case 5:
  3449. parComboList[i] = new GUIContent("ホールドア(左)");
  3450. break;
  3451. case 6:
  3452. parComboList[i] = new GUIContent("ホールドア(右)");
  3453. break;
  3454. case 7:
  3455. parComboList[i] = new GUIContent("エントランス(扉無し)");
  3456. break;
  3457. case 8:
  3458. parComboList[i] = new GUIContent("水面");
  3459. break;
  3460. case 9:
  3461. parComboList[i] = new GUIContent("執務室(外・昼)");
  3462. break;
  3463. case 10:
  3464. parComboList[i] = new GUIContent("執務室(外・夜)");
  3465. break;
  3466. case 11:
  3467. parComboList[i] = new GUIContent("青空");
  3468. break;
  3469. case 12:
  3470. parComboList[i] = new GUIContent("夜景");
  3471. break;
  3472. case 13:
  3473. parComboList[i] = new GUIContent("鏡");
  3474. break;
  3475. case 14:
  3476. parComboList[i] = new GUIContent("鏡(縦長)");
  3477. break;
  3478. case 15:
  3479. parComboList[i] = new GUIContent("鏡(メイド部屋用)");
  3480. break;
  3481. case 16:
  3482. parComboList[i] = new GUIContent("モブ男1");
  3483. break;
  3484. case 17:
  3485. parComboList[i] = new GUIContent("モブ男2");
  3486. break;
  3487. case 18:
  3488. parComboList[i] = new GUIContent("モブ男3");
  3489. break;
  3490. case 19:
  3491. parComboList[i] = new GUIContent("モブ男1 座り");
  3492. break;
  3493. case 20:
  3494. parComboList[i] = new GUIContent("モブ男2 座り");
  3495. break;
  3496. case 21:
  3497. parComboList[i] = new GUIContent("モブ男3 座り");
  3498. break;
  3499. case 22:
  3500. parComboList[i] = new GUIContent("モブ女1");
  3501. break;
  3502. case 23:
  3503. parComboList[i] = new GUIContent("モブ女2");
  3504. break;
  3505. case 24:
  3506. parComboList[i] = new GUIContent("モブ女3");
  3507. break;
  3508. case 25:
  3509. parComboList[i] = new GUIContent("モブ女1 座り");
  3510. break;
  3511. case 26:
  3512. parComboList[i] = new GUIContent("モブ女2 座り");
  3513. break;
  3514. case 27:
  3515. parComboList[i] = new GUIContent("モブ女3 座り");
  3516. break;
  3517. case 28:
  3518. parComboList[i] = new GUIContent("星");
  3519. break;
  3520. case 29:
  3521. parComboList[i] = new GUIContent("紙吹雪");
  3522. break;
  3523. case 30:
  3524. parComboList[i] = new GUIContent("水");
  3525. break;
  3526. case 31:
  3527. parComboList[i] = new GUIContent("粉雪2");
  3528. break;
  3529. case 32:
  3530. parComboList[i] = new GUIContent("粉雪");
  3531. break;
  3532. case 33:
  3533. parComboList[i] = new GUIContent("煙");
  3534. break;
  3535. case 34:
  3536. parComboList[i] = new GUIContent("泡(空間)");
  3537. break;
  3538. case 35:
  3539. parComboList[i] = new GUIContent("泡");
  3540. break;
  3541. case 36:
  3542. parComboList[i] = new GUIContent("手元の泡");
  3543. break;
  3544. case 37:
  3545. parComboList[i] = new GUIContent("湯気1");
  3546. break;
  3547. case 38:
  3548. parComboList[i] = new GUIContent("スチーム");
  3549. break;
  3550. case 39:
  3551. parComboList[i] = new GUIContent("スチーム(黒)");
  3552. break;
  3553. case 40:
  3554. parComboList[i] = new GUIContent("湯気2");
  3555. break;
  3556. case 41:
  3557. parComboList[i] = new GUIContent("ライン:ハート");
  3558. break;
  3559. case 42:
  3560. parComboList[i] = new GUIContent("ライン:星");
  3561. break;
  3562. case 43:
  3563. parComboList[i] = new GUIContent("星2");
  3564. break;
  3565. case 44:
  3566. parComboList[i] = new GUIContent("流れ星");
  3567. break;
  3568. case 45:
  3569. parComboList[i] = new GUIContent("ハート");
  3570. break;
  3571. default: goto IL_48B6;
  3572. }
  3573. IL_48CF:
  3574. i++;
  3575. continue;
  3576. IL_48B6:
  3577. parComboList[i] = new GUIContent(parArray[i]);
  3578. goto IL_48CF;
  3579. }
  3580. lightCombo.selectedItemIndex = 0;
  3581. lightList = new List<GameObject>();
  3582. lightList.Add(GameMain.Instance.MainLight.gameObject);
  3583. lightComboList = new GUIContent[lightList.Count];
  3584. for (i = 0; i < lightList.Count; i++)
  3585. {
  3586. if (i == 0)
  3587. {
  3588. lightComboList[i] = new GUIContent("メイン");
  3589. }
  3590. else
  3591. {
  3592. lightComboList[i] = new GUIContent("追加" + i);
  3593. }
  3594. }
  3595. kankyoInitFlg = true;
  3596. }
  3597. listStyle3.padding.top = this.GetPix(1);
  3598. listStyle3.padding.bottom = this.GetPix(0);
  3599. listStyle3.fontSize = this.GetPix(12);
  3600. if (poseCombo.isClickedComboButton)
  3601. {
  3602. GUI.enabled = false;
  3603. }
  3604. if (poseGroupCombo.isClickedComboButton)
  3605. {
  3606. GUI.enabled = false;
  3607. }
  3608. if (sceneLevel == 3 || sceneLevel == 5 || isF6)
  3609. {
  3610. if (!isF6)
  3611. {
  3612. bool value = true;
  3613. if (faceFlg || poseFlg || sceneFlg || kankyoFlg || kankyo2Flg)
  3614. {
  3615. value = false;
  3616. }
  3617. if (GUI.Toggle(new Rect((float) this.GetPix(2),
  3618. (float) this.GetPix(2),
  3619. (float) this.GetPix(39),
  3620. (float) this.GetPix(20)),
  3621. value,
  3622. "配置",
  3623. guistyle6))
  3624. {
  3625. faceFlg = false;
  3626. poseFlg = false;
  3627. sceneFlg = false;
  3628. kankyoFlg = false;
  3629. kankyo2Flg = false;
  3630. bGui = true;
  3631. isGuiInit = true;
  3632. }
  3633. }
  3634. if (!yotogiFlg)
  3635. {
  3636. if (GUI.Toggle(new Rect((float) this.GetPix(42),
  3637. (float) this.GetPix(2),
  3638. (float) this.GetPix(39),
  3639. (float) this.GetPix(20)),
  3640. poseFlg,
  3641. "操作",
  3642. guistyle6))
  3643. {
  3644. poseFlg = true;
  3645. faceFlg = false;
  3646. sceneFlg = false;
  3647. kankyoFlg = false;
  3648. kankyo2Flg = false;
  3649. }
  3650. }
  3651. if (GUI.Toggle(new Rect((float) this.GetPix(82), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
  3652. faceFlg,
  3653. "表情",
  3654. guistyle6))
  3655. {
  3656. faceFlg = true;
  3657. poseFlg = false;
  3658. sceneFlg = false;
  3659. kankyoFlg = false;
  3660. kankyo2Flg = false;
  3661. if (!faceFlg2)
  3662. {
  3663. isFaceInit = true;
  3664. faceFlg2 = true;
  3665. maidArray[selectMaidIndex].boMabataki = false;
  3666. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  3667. }
  3668. isFaceInit = true;
  3669. }
  3670. if (GUI.Toggle(new Rect((float) this.GetPix(122), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
  3671. kankyoFlg,
  3672. "環境",
  3673. guistyle6))
  3674. {
  3675. poseFlg = false;
  3676. faceFlg = false;
  3677. sceneFlg = false;
  3678. kankyoFlg = true;
  3679. kankyo2Flg = false;
  3680. }
  3681. if (GUI.Toggle(new Rect((float) this.GetPix(162), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
  3682. kankyo2Flg,
  3683. "環2",
  3684. guistyle6))
  3685. {
  3686. poseFlg = false;
  3687. faceFlg = false;
  3688. sceneFlg = false;
  3689. kankyoFlg = false;
  3690. kankyo2Flg = true;
  3691. }
  3692. if (!line1)
  3693. {
  3694. line1 = this.MakeTex(2, 2, new Color(0f, 0f, 0f, 0.3f));
  3695. line2 = this.MakeTex(2, 2, new Color(0.7f, 0.7f, 0.7f, 0.6f));
  3696. }
  3697. GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(20), (float) this.GetPix(200), 2f), line1);
  3698. GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(20), (float) this.GetPix(200), 1f), line2);
  3699. }
  3700. if (isDanceStop)
  3701. {
  3702. isStop[selectMaidIndex] = true;
  3703. isDanceStop = false;
  3704. }
  3705. yotogiFlg = false;
  3706. if (sceneLevel == 14)
  3707. {
  3708. if (GameObject.Find("/UI Root/YotogiPlayPanel/CommandViewer/SkillViewer/MaskGroup/SkillGroup/CommandParent/CommandUnit"))
  3709. {
  3710. yotogiFlg = true;
  3711. }
  3712. }
  3713. if (!isF6)
  3714. {
  3715. if (GUI.Button(new Rect((float) this.GetPix(157),
  3716. (float) this.GetPix(32),
  3717. (float) this.GetPix(46),
  3718. (float) this.GetPix(35)),
  3719. "シーン\n 管 理",
  3720. guistyle3))
  3721. {
  3722. sceneFlg = true;
  3723. faceFlg = false;
  3724. poseFlg = false;
  3725. kankyoFlg = false;
  3726. kankyo2Flg = false;
  3727. bGui = true;
  3728. int i = 0;
  3729. while (i < 10)
  3730. {
  3731. date[i] = "未保存";
  3732. ninzu[i] = "";
  3733. IniKey iniKey = base.Preferences["scene"]["s" + (page * 10 + i + 1)];
  3734. if (iniKey.Value != null && iniKey.Value.ToString() != "")
  3735. {
  3736. string[] array = iniKey.Value.Split(new char[] {'_'});
  3737. if (array.Length >= 2)
  3738. {
  3739. string[] array2 = array[0].Split(new char[] {','});
  3740. date[i] = array2[0];
  3741. ninzu[i] = array2[1] + "人";
  3742. }
  3743. }
  3744. IL_4FA1:
  3745. i++;
  3746. continue;
  3747. goto IL_4FA1;
  3748. }
  3749. }
  3750. }
  3751. if (doguCombo.isClickedComboButton || parCombo.isClickedComboButton || bgCombo.isClickedComboButton
  3752. || bgmCombo.isClickedComboButton || lightCombo.isClickedComboButton)
  3753. {
  3754. GUI.enabled = false;
  3755. }
  3756. int num2 = -1;
  3757. if (lightIndex[selectLightIndex] == 0)
  3758. {
  3759. isIdx1 = true;
  3760. }
  3761. if (lightIndex[selectLightIndex] == 1)
  3762. {
  3763. isIdx2 = true;
  3764. }
  3765. if (lightIndex[selectLightIndex] == 2)
  3766. {
  3767. isIdx3 = true;
  3768. }
  3769. if (lightIndex[selectLightIndex] == 3)
  3770. {
  3771. isIdx4 = true;
  3772. }
  3773. if (GUI.Toggle(new Rect((float) this.GetPix(5), (float) this.GetPix(215), (float) this.GetPix(45), (float) this.GetPix(20)),
  3774. isIdx1,
  3775. "通常",
  3776. guistyle6))
  3777. {
  3778. if (lightIndex[selectLightIndex] != 0)
  3779. {
  3780. isIdx1 = true;
  3781. isIdx2 = false;
  3782. isIdx3 = false;
  3783. isIdx4 = false;
  3784. num2 = 0;
  3785. }
  3786. }
  3787. if (GUI.Toggle(new Rect((float) this.GetPix(50), (float) this.GetPix(215), (float) this.GetPix(45), (float) this.GetPix(20)),
  3788. isIdx2,
  3789. "Spot",
  3790. guistyle6))
  3791. {
  3792. if (lightIndex[selectLightIndex] != 1)
  3793. {
  3794. isIdx1 = false;
  3795. isIdx2 = true;
  3796. isIdx3 = false;
  3797. isIdx4 = false;
  3798. num2 = 1;
  3799. }
  3800. }
  3801. if (GUI.Toggle(new Rect((float) this.GetPix(99), (float) this.GetPix(215), (float) this.GetPix(45), (float) this.GetPix(20)),
  3802. isIdx3,
  3803. "Point",
  3804. guistyle6))
  3805. {
  3806. if (lightIndex[selectLightIndex] != 2)
  3807. {
  3808. isIdx1 = false;
  3809. isIdx2 = false;
  3810. isIdx3 = true;
  3811. isIdx4 = false;
  3812. num2 = 2;
  3813. }
  3814. }
  3815. if (selectLightIndex == 0)
  3816. {
  3817. if (GUI.Toggle(new Rect((float) this.GetPix(150),
  3818. (float) this.GetPix(215),
  3819. (float) this.GetPix(45),
  3820. (float) this.GetPix(20)),
  3821. isIdx4,
  3822. "単色",
  3823. guistyle6))
  3824. {
  3825. if (lightIndex[selectLightIndex] != 3)
  3826. {
  3827. isIdx1 = false;
  3828. isIdx2 = false;
  3829. isIdx3 = false;
  3830. isIdx4 = true;
  3831. num2 = 3;
  3832. }
  3833. }
  3834. }
  3835. else if (GUI.Toggle(new Rect((float) this.GetPix(150),
  3836. (float) this.GetPix(215),
  3837. (float) this.GetPix(45),
  3838. (float) this.GetPix(20)),
  3839. isIdx4,
  3840. "無効",
  3841. guistyle6))
  3842. {
  3843. if (lightIndex[selectLightIndex] != 3)
  3844. {
  3845. isIdx1 = false;
  3846. isIdx2 = false;
  3847. isIdx3 = false;
  3848. isIdx4 = true;
  3849. num2 = 3;
  3850. }
  3851. }
  3852. if (num2 >= 0)
  3853. {
  3854. lightIndex[selectLightIndex] = num2;
  3855. if (selectLightIndex == 0)
  3856. {
  3857. GameMain.Instance.MainLight.Reset();
  3858. GameMain.Instance.MainLight.SetIntensity(0.95f);
  3859. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle = 50f;
  3860. GameMain.Instance.MainLight.GetComponent<Light>().range = 10f;
  3861. GameMain.Instance.MainLight.gameObject.transform.position = new Vector3(0f, 2f, 0f);
  3862. if (lightIndex[selectLightIndex] == 0)
  3863. {
  3864. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  3865. bgObject.SetActive(true);
  3866. mainCamera.GetComponent<Camera>().backgroundColor = new Color(0f, 0f, 0f);
  3867. }
  3868. else if (lightIndex[selectLightIndex] == 1)
  3869. {
  3870. GameMain.Instance.MainLight.transform.eulerAngles += Vector3.right * 40f;
  3871. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Spot;
  3872. bgObject.SetActive(true);
  3873. mainCamera.GetComponent<Camera>().backgroundColor = new Color(0f, 0f, 0f);
  3874. }
  3875. else if (lightIndex[selectLightIndex] == 2)
  3876. {
  3877. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Point;
  3878. bgObject.SetActive(true);
  3879. mainCamera.GetComponent<Camera>().backgroundColor = new Color(0f, 0f, 0f);
  3880. }
  3881. else if (lightIndex[selectLightIndex] == 3)
  3882. {
  3883. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  3884. mainCamera.GetComponent<Camera>().backgroundColor = new Color(lightColorR[0], lightColorG[0], lightColorB[0]);
  3885. bgObject.SetActive(false);
  3886. }
  3887. }
  3888. else
  3889. {
  3890. lightList[selectLightIndex].SetActive(true);
  3891. if (lightIndex[selectLightIndex] == 0)
  3892. {
  3893. lightList[selectLightIndex].GetComponent<Light>().type = LightType.Directional;
  3894. }
  3895. else if (lightIndex[selectLightIndex] == 1)
  3896. {
  3897. lightList[selectLightIndex].transform.eulerAngles += Vector3.right * 40f;
  3898. lightList[selectLightIndex].GetComponent<Light>().type = LightType.Spot;
  3899. }
  3900. else if (lightIndex[selectLightIndex] == 2)
  3901. {
  3902. lightList[selectLightIndex].GetComponent<Light>().type = LightType.Point;
  3903. }
  3904. else if (lightIndex[selectLightIndex] == 3)
  3905. {
  3906. lightList[selectLightIndex].GetComponent<Light>().type = LightType.Directional;
  3907. lightList[selectLightIndex].SetActive(false);
  3908. }
  3909. }
  3910. lightColorR[selectLightIndex] = 1f;
  3911. lightColorG[selectLightIndex] = 1f;
  3912. lightColorB[selectLightIndex] = 1f;
  3913. lightX[selectLightIndex] = 40f;
  3914. lightY[selectLightIndex] = 180f;
  3915. lightAkarusa[selectLightIndex] = 0.95f;
  3916. lightKage[selectLightIndex] = 0.098f;
  3917. lightRange[selectLightIndex] = 50f;
  3918. if (lightIndex[selectLightIndex] == 1)
  3919. {
  3920. lightX[selectLightIndex] = 90f;
  3921. }
  3922. }
  3923. GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(138), (float) this.GetPix(100), (float) this.GetPix(25)),
  3924. "キューブ表示",
  3925. guistyle2);
  3926. guistyle6.fontSize = this.GetPix(12);
  3927. isCube2 = GUI.Toggle(new Rect((float) this.GetPix(5),
  3928. (float) this.GetPix(153),
  3929. (float) this.GetPix(55),
  3930. (float) this.GetPix(20)),
  3931. isCube2,
  3932. "大道具(",
  3933. guistyle6);
  3934. if (!isF6)
  3935. {
  3936. isCube = GUI.Toggle(new Rect((float) this.GetPix(102),
  3937. (float) this.GetPix(153),
  3938. (float) this.GetPix(54),
  3939. (float) this.GetPix(20)),
  3940. isCube,
  3941. "メイド",
  3942. guistyle6);
  3943. }
  3944. bool flag = GUI.Toggle(new Rect((float) this.GetPix(160),
  3945. (float) this.GetPix(153),
  3946. (float) this.GetPix(44),
  3947. (float) this.GetPix(20)),
  3948. isCube3,
  3949. "背景",
  3950. guistyle6);
  3951. guistyle6.fontSize = this.GetPix(13);
  3952. bool flag2 = GUI.Toggle(new Rect((float) this.GetPix(61),
  3953. (float) this.GetPix(153),
  3954. (float) this.GetPix(38),
  3955. (float) this.GetPix(20)),
  3956. isCubeS,
  3957. "小)",
  3958. guistyle6);
  3959. if (isCubeS != flag2)
  3960. {
  3961. isCubeS = flag2;
  3962. if (isCubeS)
  3963. {
  3964. cubeSize = 0.05f;
  3965. }
  3966. else
  3967. {
  3968. cubeSize = 0.12f;
  3969. }
  3970. for (int i = 0; i < doguBObject.Count; i++)
  3971. {
  3972. gDogu[i].transform.localScale = new Vector3(cubeSize, cubeSize, cubeSize);
  3973. }
  3974. }
  3975. if (isCube3 != flag)
  3976. {
  3977. isCube3 = flag;
  3978. if (gBg == null)
  3979. {
  3980. gBg = GameObject.CreatePrimitive(PrimitiveType.Cube);
  3981. gBg.GetComponent<Renderer>().material = m_material;
  3982. gBg.layer = 8;
  3983. gBg.GetComponent<Renderer>().enabled = false;
  3984. gBg.SetActive(false);
  3985. gBg.transform.position = bgObject.transform.position;
  3986. mBg = gBg.AddComponent<MouseDrag6>();
  3987. mBg.obj = gBg;
  3988. mBg.maid = bgObject;
  3989. mBg.angles = bg.eulerAngles;
  3990. gBg.transform.localScale = new Vector3(0.12f, 0.12f, 0.12f);
  3991. mBg.ido = 1;
  3992. mBg.isScale = false;
  3993. }
  3994. if (isCube3)
  3995. {
  3996. gBg.SetActive(true);
  3997. }
  3998. else
  3999. {
  4000. gBg.SetActive(false);
  4001. }
  4002. }
  4003. int num3 = 0;
  4004. if (lightIndex[selectLightIndex] == 0 || lightIndex[selectLightIndex] == 1
  4005. || (selectLightIndex == 0 && lightIndex[selectLightIndex] == 3))
  4006. {
  4007. GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(237), (float) this.GetPix(100), (float) this.GetPix(25)),
  4008. "向きX",
  4009. guistyle2);
  4010. lightX[selectLightIndex] =
  4011. GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4012. (float) this.GetPix(251),
  4013. (float) this.GetPix(192),
  4014. (float) this.GetPix(20)),
  4015. lightX[selectLightIndex],
  4016. 220f,
  4017. -140f);
  4018. GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(261), (float) this.GetPix(100), (float) this.GetPix(25)),
  4019. "向きY",
  4020. guistyle2);
  4021. lightY[selectLightIndex] =
  4022. GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4023. (float) this.GetPix(275),
  4024. (float) this.GetPix(192),
  4025. (float) this.GetPix(20)),
  4026. lightY[selectLightIndex],
  4027. 0f,
  4028. 360f);
  4029. }
  4030. else
  4031. {
  4032. num3 = 50;
  4033. }
  4034. if (lightIndex[selectLightIndex] != 3 || selectLightIndex <= 0)
  4035. {
  4036. GUI.Label(new Rect((float) this.GetPix(10),
  4037. (float) this.GetPix(285 - num3),
  4038. (float) this.GetPix(100),
  4039. (float) this.GetPix(25)),
  4040. "明るさ",
  4041. guistyle2);
  4042. lightAkarusa[selectLightIndex] =
  4043. GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4044. (float) this.GetPix(299 - num3),
  4045. (float) this.GetPix(192),
  4046. (float) this.GetPix(20)),
  4047. lightAkarusa[selectLightIndex],
  4048. 0f,
  4049. 1.9f);
  4050. if (lightIndex[selectLightIndex] == 0 || lightIndex[selectLightIndex] == 3)
  4051. {
  4052. if (selectLightIndex == 0)
  4053. {
  4054. GUI.Label(new Rect((float) this.GetPix(10),
  4055. (float) this.GetPix(309 - num3),
  4056. (float) this.GetPix(100),
  4057. (float) this.GetPix(25)),
  4058. "影",
  4059. guistyle2);
  4060. lightKage[selectLightIndex] =
  4061. GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4062. (float) this.GetPix(323 - num3),
  4063. (float) this.GetPix(192),
  4064. (float) this.GetPix(20)),
  4065. lightKage[selectLightIndex],
  4066. 0f,
  4067. 1f);
  4068. }
  4069. else
  4070. {
  4071. num3 = 25;
  4072. }
  4073. }
  4074. else if (lightIndex[selectLightIndex] == 1 || lightIndex[selectLightIndex] == 2)
  4075. {
  4076. GUI.Label(new Rect((float) this.GetPix(10),
  4077. (float) this.GetPix(311 - num3),
  4078. (float) this.GetPix(100),
  4079. (float) this.GetPix(25)),
  4080. "範囲",
  4081. guistyle2);
  4082. lightRange[selectLightIndex] =
  4083. GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4084. (float) this.GetPix(325 - num3),
  4085. (float) this.GetPix(192),
  4086. (float) this.GetPix(20)),
  4087. lightRange[selectLightIndex],
  4088. 0f,
  4089. 150f);
  4090. }
  4091. else
  4092. {
  4093. num3 = 75;
  4094. }
  4095. GUI.Label(new Rect((float) this.GetPix(10),
  4096. (float) this.GetPix(333 - num3),
  4097. (float) this.GetPix(100),
  4098. (float) this.GetPix(25)),
  4099. "赤",
  4100. guistyle2);
  4101. lightColorR[selectLightIndex] =
  4102. GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4103. (float) this.GetPix(347 - num3),
  4104. (float) this.GetPix(92),
  4105. (float) this.GetPix(20)),
  4106. lightColorR[selectLightIndex],
  4107. 0f,
  4108. 1f);
  4109. GUI.Label(new Rect((float) this.GetPix(108),
  4110. (float) this.GetPix(333 - num3),
  4111. (float) this.GetPix(100),
  4112. (float) this.GetPix(25)),
  4113. "緑",
  4114. guistyle2);
  4115. lightColorG[selectLightIndex] =
  4116. GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
  4117. (float) this.GetPix(347 - num3),
  4118. (float) this.GetPix(92),
  4119. (float) this.GetPix(20)),
  4120. lightColorG[selectLightIndex],
  4121. 0f,
  4122. 1f);
  4123. GUI.Label(new Rect((float) this.GetPix(10),
  4124. (float) this.GetPix(357 - num3),
  4125. (float) this.GetPix(100),
  4126. (float) this.GetPix(25)),
  4127. "青",
  4128. guistyle2);
  4129. lightColorB[selectLightIndex] =
  4130. GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4131. (float) this.GetPix(371 - num3),
  4132. (float) this.GetPix(92),
  4133. (float) this.GetPix(20)),
  4134. lightColorB[selectLightIndex],
  4135. 0f,
  4136. 1f);
  4137. }
  4138. if (GUI.Toggle(new Rect((float) this.GetPix(5), (float) this.GetPix(391), (float) this.GetPix(67), (float) this.GetPix(20)),
  4139. isBloomS,
  4140. "ブルーム",
  4141. guistyle6))
  4142. {
  4143. isBloomS = true;
  4144. isDepthS = false;
  4145. isBlurS = false;
  4146. isFogS = false;
  4147. }
  4148. if (isBloomS)
  4149. {
  4150. isBloom = GUI.Toggle(new Rect((float) this.GetPix(8),
  4151. (float) this.GetPix(412),
  4152. (float) this.GetPix(40),
  4153. (float) this.GetPix(20)),
  4154. isBloom,
  4155. "有効",
  4156. guistyle6);
  4157. if (!isBloom)
  4158. {
  4159. GUI.enabled = false;
  4160. }
  4161. GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(430), (float) this.GetPix(100), (float) this.GetPix(25)),
  4162. "強さ",
  4163. guistyle2);
  4164. bloom1 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4165. (float) this.GetPix(445),
  4166. (float) this.GetPix(92),
  4167. (float) this.GetPix(20)),
  4168. bloom1,
  4169. 0f,
  4170. 5.7f);
  4171. GUI.Label(new Rect((float) this.GetPix(110), (float) this.GetPix(430), (float) this.GetPix(100), (float) this.GetPix(25)),
  4172. "広さ",
  4173. guistyle2);
  4174. bloom2 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
  4175. (float) this.GetPix(445),
  4176. (float) this.GetPix(92),
  4177. (float) this.GetPix(20)),
  4178. bloom2,
  4179. 0f,
  4180. 15f);
  4181. GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(455), (float) this.GetPix(100), (float) this.GetPix(25)),
  4182. "赤",
  4183. guistyle2);
  4184. bloom3 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4185. (float) this.GetPix(470),
  4186. (float) this.GetPix(92),
  4187. (float) this.GetPix(20)),
  4188. bloom3,
  4189. 0f,
  4190. 0.5f);
  4191. GUI.Label(new Rect((float) this.GetPix(110), (float) this.GetPix(455), (float) this.GetPix(100), (float) this.GetPix(25)),
  4192. "緑",
  4193. guistyle2);
  4194. bloom4 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
  4195. (float) this.GetPix(470),
  4196. (float) this.GetPix(92),
  4197. (float) this.GetPix(20)),
  4198. bloom4,
  4199. 0f,
  4200. 0.5f);
  4201. GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(480), (float) this.GetPix(100), (float) this.GetPix(25)),
  4202. "青",
  4203. guistyle2);
  4204. bloom5 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4205. (float) this.GetPix(495),
  4206. (float) this.GetPix(92),
  4207. (float) this.GetPix(20)),
  4208. bloom5,
  4209. 0f,
  4210. 0.5f);
  4211. isBloomA = GUI.Toggle(new Rect((float) this.GetPix(110),
  4212. (float) this.GetPix(491),
  4213. (float) this.GetPix(50),
  4214. (float) this.GetPix(20)),
  4215. isBloomA,
  4216. "HDR",
  4217. guistyle6);
  4218. if (!doguCombo.isClickedComboButton && !parCombo.isClickedComboButton && !bgCombo.isClickedComboButton
  4219. && !bgmCombo.isClickedComboButton)
  4220. {
  4221. GUI.enabled = true;
  4222. }
  4223. }
  4224. if (GUI.Toggle(new Rect((float) this.GetPix(73), (float) this.GetPix(391), (float) this.GetPix(40), (float) this.GetPix(20)),
  4225. isDepthS,
  4226. "深度",
  4227. guistyle6))
  4228. {
  4229. isBloomS = false;
  4230. isDepthS = true;
  4231. isBlurS = false;
  4232. isFogS = false;
  4233. }
  4234. if (isDepthS)
  4235. {
  4236. isDepth = GUI.Toggle(new Rect((float) this.GetPix(8),
  4237. (float) this.GetPix(412),
  4238. (float) this.GetPix(40),
  4239. (float) this.GetPix(20)),
  4240. isDepth,
  4241. "有効",
  4242. guistyle6);
  4243. if (!isDepth)
  4244. {
  4245. GUI.enabled = false;
  4246. }
  4247. GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(430), (float) this.GetPix(100), (float) this.GetPix(25)),
  4248. "焦点距離",
  4249. guistyle2);
  4250. depth1 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4251. (float) this.GetPix(445),
  4252. (float) this.GetPix(192),
  4253. (float) this.GetPix(20)),
  4254. depth1,
  4255. 0f,
  4256. 10f);
  4257. GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(455), (float) this.GetPix(100), (float) this.GetPix(25)),
  4258. "焦点領域サイズ",
  4259. guistyle2);
  4260. depth2 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4261. (float) this.GetPix(470),
  4262. (float) this.GetPix(92),
  4263. (float) this.GetPix(20)),
  4264. depth2,
  4265. 0f,
  4266. 2f);
  4267. GUI.Label(new Rect((float) this.GetPix(110), (float) this.GetPix(455), (float) this.GetPix(100), (float) this.GetPix(25)),
  4268. "カメラ絞り",
  4269. guistyle2);
  4270. depth3 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
  4271. (float) this.GetPix(470),
  4272. (float) this.GetPix(92),
  4273. (float) this.GetPix(20)),
  4274. depth3,
  4275. 0f,
  4276. 60f);
  4277. GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(480), (float) this.GetPix(100), (float) this.GetPix(25)),
  4278. "ブレ",
  4279. guistyle2);
  4280. depth4 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4281. (float) this.GetPix(495),
  4282. (float) this.GetPix(92),
  4283. (float) this.GetPix(20)),
  4284. depth4,
  4285. 0f,
  4286. 10f);
  4287. isDepthA = GUI.Toggle(new Rect((float) this.GetPix(110),
  4288. (float) this.GetPix(491),
  4289. (float) this.GetPix(100),
  4290. (float) this.GetPix(20)),
  4291. isDepthA,
  4292. "深度表示",
  4293. guistyle6);
  4294. if (!doguCombo.isClickedComboButton && !parCombo.isClickedComboButton && !bgCombo.isClickedComboButton
  4295. && !bgmCombo.isClickedComboButton)
  4296. {
  4297. GUI.enabled = true;
  4298. }
  4299. }
  4300. if (GUI.Toggle(new Rect((float) this.GetPix(114), (float) this.GetPix(391), (float) this.GetPix(40), (float) this.GetPix(20)),
  4301. isBlurS,
  4302. "光学",
  4303. guistyle6))
  4304. {
  4305. isBloomS = false;
  4306. isDepthS = false;
  4307. isBlurS = true;
  4308. isFogS = false;
  4309. }
  4310. if (isBlurS)
  4311. {
  4312. isBlur = GUI.Toggle(new Rect((float) this.GetPix(8),
  4313. (float) this.GetPix(412),
  4314. (float) this.GetPix(40),
  4315. (float) this.GetPix(20)),
  4316. isBlur,
  4317. "有効",
  4318. guistyle6);
  4319. if (!isBlur)
  4320. {
  4321. GUI.enabled = false;
  4322. }
  4323. GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(430), (float) this.GetPix(100), (float) this.GetPix(25)),
  4324. "強さ",
  4325. guistyle2);
  4326. blur1 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4327. (float) this.GetPix(445),
  4328. (float) this.GetPix(92),
  4329. (float) this.GetPix(20)),
  4330. blur1,
  4331. -40f,
  4332. 70f);
  4333. GUI.Label(new Rect((float) this.GetPix(108), (float) this.GetPix(430), (float) this.GetPix(100), (float) this.GetPix(25)),
  4334. "ブラー",
  4335. guistyle2);
  4336. blur2 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
  4337. (float) this.GetPix(445),
  4338. (float) this.GetPix(92),
  4339. (float) this.GetPix(20)),
  4340. blur2,
  4341. 0f,
  4342. 5f);
  4343. GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(455), (float) this.GetPix(100), (float) this.GetPix(25)),
  4344. "ブレ",
  4345. guistyle2);
  4346. blur3 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4347. (float) this.GetPix(470),
  4348. (float) this.GetPix(92),
  4349. (float) this.GetPix(20)),
  4350. blur3,
  4351. 0f,
  4352. 40f);
  4353. GUI.Label(new Rect((float) this.GetPix(108), (float) this.GetPix(455), (float) this.GetPix(100), (float) this.GetPix(25)),
  4354. "色収差",
  4355. guistyle2);
  4356. blur4 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
  4357. (float) this.GetPix(470),
  4358. (float) this.GetPix(92),
  4359. (float) this.GetPix(20)),
  4360. blur4,
  4361. -30f,
  4362. 30f);
  4363. if (!doguCombo.isClickedComboButton && !parCombo.isClickedComboButton && !bgCombo.isClickedComboButton
  4364. && !bgmCombo.isClickedComboButton)
  4365. {
  4366. GUI.enabled = true;
  4367. }
  4368. }
  4369. if (GUI.Toggle(new Rect((float) this.GetPix(155), (float) this.GetPix(391), (float) this.GetPix(60), (float) this.GetPix(20)),
  4370. isFogS,
  4371. "フォグ",
  4372. guistyle6))
  4373. {
  4374. isBloomS = false;
  4375. isDepthS = false;
  4376. isBlurS = false;
  4377. isFogS = true;
  4378. }
  4379. if (isFogS)
  4380. {
  4381. isFog = GUI.Toggle(new Rect((float) this.GetPix(8),
  4382. (float) this.GetPix(412),
  4383. (float) this.GetPix(40),
  4384. (float) this.GetPix(20)),
  4385. isFog,
  4386. "有効",
  4387. guistyle6);
  4388. if (!isFog)
  4389. {
  4390. GUI.enabled = false;
  4391. }
  4392. GUI.Label(new Rect((float) this.GetPix(110), (float) this.GetPix(406), (float) this.GetPix(100), (float) this.GetPix(24)),
  4393. "発生距離",
  4394. guistyle2);
  4395. fog1 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
  4396. (float) this.GetPix(420),
  4397. (float) this.GetPix(92),
  4398. (float) this.GetPix(20)),
  4399. fog1,
  4400. 0f,
  4401. 30f);
  4402. GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(430), (float) this.GetPix(100), (float) this.GetPix(25)),
  4403. "密度",
  4404. guistyle2);
  4405. fog2 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4406. (float) this.GetPix(445),
  4407. (float) this.GetPix(92),
  4408. (float) this.GetPix(20)),
  4409. fog2,
  4410. 0f,
  4411. 10f);
  4412. GUI.Label(new Rect((float) this.GetPix(110), (float) this.GetPix(430), (float) this.GetPix(100), (float) this.GetPix(25)),
  4413. "強度",
  4414. guistyle2);
  4415. fog3 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
  4416. (float) this.GetPix(445),
  4417. (float) this.GetPix(92),
  4418. (float) this.GetPix(20)),
  4419. fog3,
  4420. -5f,
  4421. 20f);
  4422. GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(455), (float) this.GetPix(100), (float) this.GetPix(25)),
  4423. "高さ",
  4424. guistyle2);
  4425. fog4 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4426. (float) this.GetPix(470),
  4427. (float) this.GetPix(92),
  4428. (float) this.GetPix(20)),
  4429. fog4,
  4430. -10f,
  4431. 10f);
  4432. GUI.Label(new Rect((float) this.GetPix(110), (float) this.GetPix(455), (float) this.GetPix(100), (float) this.GetPix(25)),
  4433. "赤",
  4434. guistyle2);
  4435. fog5 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
  4436. (float) this.GetPix(470),
  4437. (float) this.GetPix(92),
  4438. (float) this.GetPix(20)),
  4439. fog5,
  4440. 0f,
  4441. 1f);
  4442. GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(480), (float) this.GetPix(100), (float) this.GetPix(25)),
  4443. "緑",
  4444. guistyle2);
  4445. fog6 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4446. (float) this.GetPix(495),
  4447. (float) this.GetPix(92),
  4448. (float) this.GetPix(20)),
  4449. fog6,
  4450. 0f,
  4451. 1f);
  4452. GUI.Label(new Rect((float) this.GetPix(110), (float) this.GetPix(480), (float) this.GetPix(100), (float) this.GetPix(25)),
  4453. "青",
  4454. guistyle2);
  4455. fog7 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
  4456. (float) this.GetPix(495),
  4457. (float) this.GetPix(92),
  4458. (float) this.GetPix(20)),
  4459. fog7,
  4460. 0f,
  4461. 1f);
  4462. if (!doguCombo.isClickedComboButton && !parCombo.isClickedComboButton && !bgCombo.isClickedComboButton
  4463. && !bgmCombo.isClickedComboButton)
  4464. {
  4465. GUI.enabled = true;
  4466. }
  4467. }
  4468. isSepian = GUI.Toggle(new Rect((float) this.GetPix(5),
  4469. (float) this.GetPix(515),
  4470. (float) this.GetPix(80),
  4471. (float) this.GetPix(20)),
  4472. isSepian,
  4473. "セピア",
  4474. guistyle6);
  4475. GUI.Label(new Rect((float) this.GetPix(108), (float) this.GetPix(512), (float) this.GetPix(100), (float) this.GetPix(25)),
  4476. "ぼかし",
  4477. guistyle2);
  4478. bokashi = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
  4479. (float) this.GetPix(527),
  4480. (float) this.GetPix(92),
  4481. (float) this.GetPix(20)),
  4482. bokashi,
  4483. 0f,
  4484. 18f);
  4485. if (GUI.Toggle(new Rect((float) this.GetPix(5), (float) this.GetPix(545), (float) this.GetPix(80), (float) this.GetPix(20)),
  4486. isHairSetting,
  4487. "髪の設定",
  4488. guistyle6))
  4489. {
  4490. isHairSetting = true;
  4491. isSkirtSetting = false;
  4492. }
  4493. if (isHairSetting)
  4494. {
  4495. bool flag3 = GUI.Toggle(new Rect((float) this.GetPix(5),
  4496. (float) this.GetPix(566),
  4497. (float) this.GetPix(40),
  4498. (float) this.GetPix(20)),
  4499. isKamiyure,
  4500. "有効",
  4501. guistyle6);
  4502. if (isKamiyure != flag3)
  4503. {
  4504. isKamiyure = flag3;
  4505. if (isKamiyure)
  4506. {
  4507. base.Preferences["config"]["hair_setting"].Value = "true";
  4508. base.Preferences["config"]["hair_radius"].Value = kamiyure4.ToString();
  4509. base.Preferences["config"]["hair_elasticity"].Value = kamiyure3.ToString();
  4510. base.Preferences["config"]["hair_damping"].Value = kamiyure2.ToString();
  4511. base.SaveConfig();
  4512. }
  4513. else
  4514. {
  4515. base.Preferences["config"]["hair_setting"].Value = "false";
  4516. base.SaveConfig();
  4517. for (int j = 0; j < maidCnt; j++)
  4518. {
  4519. for (int k = 0; k < maidArray[j].body0.goSlot.Count; k++)
  4520. {
  4521. if (k >= 3 && k <= 6)
  4522. {
  4523. if (maidArray[j].body0.goSlot[k].obj != null)
  4524. {
  4525. DynamicBone component = maidArray[j].body0.goSlot[k].obj.GetComponent<DynamicBone>();
  4526. if (component != null)
  4527. {
  4528. component.m_Damping = 0.6f;
  4529. component.m_Elasticity = 1f;
  4530. if (k == 5)
  4531. {
  4532. component.m_Elasticity = 0.05f;
  4533. }
  4534. component.m_Radius = 0.02f;
  4535. component.UpdateParameters();
  4536. }
  4537. }
  4538. }
  4539. }
  4540. }
  4541. }
  4542. }
  4543. if (!isKamiyure)
  4544. {
  4545. GUI.enabled = false;
  4546. }
  4547. GUI.Label(new Rect((float) this.GetPix(108), (float) this.GetPix(565), (float) this.GetPix(100), (float) this.GetPix(25)),
  4548. "当たり判定半径",
  4549. guistyle2);
  4550. float num4 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
  4551. (float) this.GetPix(579),
  4552. (float) this.GetPix(92),
  4553. (float) this.GetPix(20)),
  4554. kamiyure4,
  4555. 0f,
  4556. 0.04f);
  4557. if (kamiyure4 != num4)
  4558. {
  4559. kamiyure4 = num4;
  4560. base.Preferences["config"]["hair_radius"].Value = kamiyure4.ToString();
  4561. base.SaveConfig();
  4562. }
  4563. GUI.Label(new Rect((float) this.GetPix(108), (float) this.GetPix(590), (float) this.GetPix(100), (float) this.GetPix(25)),
  4564. "減衰率",
  4565. guistyle2);
  4566. float num5 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
  4567. (float) this.GetPix(604),
  4568. (float) this.GetPix(92),
  4569. (float) this.GetPix(20)),
  4570. kamiyure2,
  4571. 0.2f,
  4572. 1f);
  4573. if (kamiyure2 != num5)
  4574. {
  4575. kamiyure2 = num5;
  4576. base.Preferences["config"]["hair_damping"].Value = kamiyure2.ToString();
  4577. base.SaveConfig();
  4578. }
  4579. GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(590), (float) this.GetPix(100), (float) this.GetPix(25)),
  4580. "復元率",
  4581. guistyle2);
  4582. float num6 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4583. (float) this.GetPix(604),
  4584. (float) this.GetPix(92),
  4585. (float) this.GetPix(20)),
  4586. kamiyure3,
  4587. 0f,
  4588. 2f);
  4589. if (kamiyure3 != num6)
  4590. {
  4591. kamiyure3 = num6;
  4592. base.Preferences["config"]["hair_elasticity"].Value = kamiyure3.ToString();
  4593. base.SaveConfig();
  4594. }
  4595. GUI.enabled = true;
  4596. }
  4597. if (GUI.Toggle(new Rect((float) this.GetPix(105), (float) this.GetPix(545), (float) this.GetPix(100), (float) this.GetPix(20)),
  4598. isSkirtSetting,
  4599. "スカート設定",
  4600. guistyle6))
  4601. {
  4602. isHairSetting = false;
  4603. isSkirtSetting = true;
  4604. }
  4605. if (isSkirtSetting)
  4606. {
  4607. bool flag4 = GUI.Toggle(new Rect((float) this.GetPix(5),
  4608. (float) this.GetPix(566),
  4609. (float) this.GetPix(40),
  4610. (float) this.GetPix(20)),
  4611. isSkirtyure,
  4612. "有効",
  4613. guistyle6);
  4614. if (isSkirtyure != flag4)
  4615. {
  4616. isSkirtyure = flag4;
  4617. if (isSkirtyure)
  4618. {
  4619. base.Preferences["config"]["skirt_setting"].Value = "true";
  4620. base.Preferences["config"]["skirt_radius"].Value = skirtyure4.ToString();
  4621. base.Preferences["config"]["skirt_elasticity"].Value = skirtyure3.ToString();
  4622. base.Preferences["config"]["skirt_damping"].Value = skirtyure2.ToString();
  4623. base.SaveConfig();
  4624. }
  4625. else
  4626. {
  4627. base.Preferences["config"]["skirt_setting"].Value = "false";
  4628. base.SaveConfig();
  4629. for (int j = 0; j < maidCnt; j++)
  4630. {
  4631. for (int k = 0; k < maidArray[j].body0.goSlot.Count; k++)
  4632. {
  4633. if (maidArray[j].body0.goSlot[k].obj != null)
  4634. {
  4635. DynamicSkirtBone fieldValue =
  4636. GetFieldValue<BoneHair3, DynamicSkirtBone>(maidArray[j].body0.goSlot[k].bonehair3,
  4637. "m_SkirtBone");
  4638. if (fieldValue != null)
  4639. {
  4640. fieldValue.m_fPanierForce = 0.05f;
  4641. fieldValue.m_fPanierForceDistanceThreshold = 0.1f;
  4642. fieldValue.m_fRegDefaultRadius = 0.1f;
  4643. }
  4644. }
  4645. }
  4646. }
  4647. }
  4648. }
  4649. if (!isSkirtyure)
  4650. {
  4651. GUI.enabled = false;
  4652. }
  4653. GUI.Label(new Rect((float) this.GetPix(108), (float) this.GetPix(565), (float) this.GetPix(100), (float) this.GetPix(25)),
  4654. "足側カプセル半径",
  4655. guistyle2);
  4656. float num4 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
  4657. (float) this.GetPix(579),
  4658. (float) this.GetPix(92),
  4659. (float) this.GetPix(20)),
  4660. skirtyure4,
  4661. 0f,
  4662. 0.2f);
  4663. if (skirtyure4 != num4)
  4664. {
  4665. skirtyure4 = num4;
  4666. base.Preferences["config"]["skirt_radius"].Value = skirtyure4.ToString();
  4667. base.SaveConfig();
  4668. }
  4669. GUI.Label(new Rect((float) this.GetPix(108), (float) this.GetPix(590), (float) this.GetPix(100), (float) this.GetPix(25)),
  4670. "足との距離パニエ力",
  4671. guistyle2);
  4672. float num5 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
  4673. (float) this.GetPix(604),
  4674. (float) this.GetPix(92),
  4675. (float) this.GetPix(20)),
  4676. skirtyure2,
  4677. 0f,
  4678. 0.2f);
  4679. if (skirtyure2 != num5)
  4680. {
  4681. skirtyure2 = num5;
  4682. base.Preferences["config"]["skirt_damping"].Value = skirtyure2.ToString();
  4683. base.SaveConfig();
  4684. }
  4685. GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(590), (float) this.GetPix(100), (float) this.GetPix(25)),
  4686. "パニエ力",
  4687. guistyle2);
  4688. float num6 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  4689. (float) this.GetPix(604),
  4690. (float) this.GetPix(92),
  4691. (float) this.GetPix(20)),
  4692. skirtyure3,
  4693. 0f,
  4694. 0.1f);
  4695. if (skirtyure3 != num6)
  4696. {
  4697. skirtyure3 = num6;
  4698. base.Preferences["config"]["skirt_elasticity"].Value = skirtyure3.ToString();
  4699. base.SaveConfig();
  4700. }
  4701. GUI.enabled = true;
  4702. }
  4703. GUI.enabled = true;
  4704. GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(389), (float) this.GetPix(195), 2f), line1);
  4705. GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(389), (float) this.GetPix(195), 1f), line2);
  4706. if (doguCombo.isClickedComboButton || parCombo.isClickedComboButton || bgCombo.isClickedComboButton
  4707. || bgmCombo.isClickedComboButton)
  4708. {
  4709. GUI.enabled = false;
  4710. }
  4711. GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(176), (float) this.GetPix(195), 2f), line1);
  4712. GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(176), (float) this.GetPix(195), 1f), line2);
  4713. GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(187), (float) this.GetPix(100), (float) this.GetPix(25)),
  4714. "照明",
  4715. guistyle2);
  4716. listStyle3.padding.top = this.GetPix(3);
  4717. listStyle3.padding.bottom = this.GetPix(2);
  4718. listStyle3.fontSize = this.GetPix(13);
  4719. int num7 = lightCombo.List(new Rect((float) this.GetPix(34),
  4720. (float) this.GetPix(185),
  4721. (float) this.GetPix(78),
  4722. (float) this.GetPix(23)),
  4723. lightComboList[selectLightIndex].text,
  4724. lightComboList,
  4725. guistyle4,
  4726. "box",
  4727. listStyle3);
  4728. if (num7 != selectLightIndex)
  4729. {
  4730. selectLightIndex = num7;
  4731. isIdx1 = false;
  4732. isIdx2 = false;
  4733. isIdx3 = false;
  4734. isIdx4 = false;
  4735. }
  4736. if (GUI.Button(new Rect((float) this.GetPix(115), (float) this.GetPix(185), (float) this.GetPix(35), (float) this.GetPix(23)),
  4737. "追加",
  4738. guistyle3))
  4739. {
  4740. GameObject gameObject = new GameObject("Light");
  4741. gameObject.AddComponent<Light>();
  4742. lightList.Add(gameObject);
  4743. lightColorR.Add(1f);
  4744. lightColorG.Add(1f);
  4745. lightColorB.Add(1f);
  4746. lightIndex.Add(0);
  4747. lightX.Add(40f);
  4748. lightY.Add(180f);
  4749. lightAkarusa.Add(0.95f);
  4750. lightKage.Add(0.098f);
  4751. lightRange.Add(50f);
  4752. gameObject.transform.position = GameMain.Instance.MainLight.transform.position;
  4753. selectLightIndex = lightList.Count - 1;
  4754. lightComboList = new GUIContent[lightList.Count];
  4755. for (int i = 0; i < lightList.Count; i++)
  4756. {
  4757. if (i == 0)
  4758. {
  4759. lightComboList[i] = new GUIContent("メイン");
  4760. }
  4761. else
  4762. {
  4763. lightComboList[i] = new GUIContent("追加" + i);
  4764. }
  4765. }
  4766. lightCombo.selectedItemIndex = selectLightIndex;
  4767. gameObject.GetComponent<Light>().intensity = 0.95f;
  4768. gameObject.GetComponent<Light>().spotAngle = 50f;
  4769. gameObject.GetComponent<Light>().range = 10f;
  4770. gameObject.GetComponent<Light>().type = LightType.Directional;
  4771. gameObject.GetComponent<Light>().color = new Color(0.5f, 1f, 0f);
  4772. if (gLight[selectLightIndex] == null)
  4773. {
  4774. gLight[selectLightIndex] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  4775. Material material = new Material(Shader.Find("Transparent/Diffuse"));
  4776. material.color = new Color(0.5f, 0.5f, 1f, 0.8f);
  4777. gLight[selectLightIndex].GetComponent<Renderer>().material = material;
  4778. gLight[selectLightIndex].layer = 8;
  4779. gLight[selectLightIndex].GetComponent<Renderer>().enabled = false;
  4780. gLight[selectLightIndex].SetActive(false);
  4781. gLight[selectLightIndex].transform.position = gameObject.transform.position;
  4782. mLight[selectLightIndex] = gLight[selectLightIndex].AddComponent<MouseDrag6>();
  4783. mLight[selectLightIndex].obj = gLight[selectLightIndex];
  4784. mLight[selectLightIndex].maid = gameObject.gameObject;
  4785. mLight[selectLightIndex].angles = gameObject.gameObject.transform.eulerAngles;
  4786. gLight[selectLightIndex].transform.localScale = new Vector3(0.12f, 0.12f, 0.12f);
  4787. mLight[selectLightIndex].ido = 1;
  4788. mLight[selectLightIndex].isScale = false;
  4789. }
  4790. }
  4791. if (GUI.Button(new Rect((float) this.GetPix(153), (float) this.GetPix(185), (float) this.GetPix(23), (float) this.GetPix(23)),
  4792. "R",
  4793. guistyle3))
  4794. {
  4795. for (int i = 1; i < lightList.Count; i++)
  4796. {
  4797. Destroy(lightList[i]);
  4798. }
  4799. lightIndex = new List<int>();
  4800. lightIndex.Add(0);
  4801. lightColorR = new List<float>();
  4802. lightColorR.Add(1f);
  4803. lightColorG = new List<float>();
  4804. lightColorG.Add(1f);
  4805. lightColorB = new List<float>();
  4806. lightColorB.Add(1f);
  4807. lightX = new List<float>();
  4808. lightX.Add(40f);
  4809. lightY = new List<float>();
  4810. lightY.Add(180f);
  4811. lightAkarusa = new List<float>();
  4812. lightAkarusa.Add(0.95f);
  4813. lightKage = new List<float>();
  4814. lightKage.Add(0.098f);
  4815. lightRange = new List<float>();
  4816. lightRange.Add(50f);
  4817. lightCombo.selectedItemIndex = 0;
  4818. lightList = new List<GameObject>();
  4819. lightList.Add(GameMain.Instance.MainLight.gameObject);
  4820. lightComboList = new GUIContent[lightList.Count];
  4821. for (int i = 0; i < lightList.Count; i++)
  4822. {
  4823. if (i == 0)
  4824. {
  4825. lightComboList[i] = new GUIContent("メイン");
  4826. }
  4827. else
  4828. {
  4829. lightComboList[i] = new GUIContent("追加" + i);
  4830. }
  4831. }
  4832. selectLightIndex = 0;
  4833. GameMain.Instance.MainLight.Reset();
  4834. GameMain.Instance.MainLight.SetIntensity(0.95f);
  4835. GameMain.Instance.MainLight.GetComponent<Light>().spotAngle = 50f;
  4836. GameMain.Instance.MainLight.GetComponent<Light>().range = 10f;
  4837. GameMain.Instance.MainLight.gameObject.transform.position = new Vector3(0f, 2f, 0f);
  4838. GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
  4839. bgObject.SetActive(true);
  4840. mainCamera.GetComponent<Camera>().backgroundColor = new Color(0f, 0f, 0f);
  4841. isIdx1 = false;
  4842. isIdx2 = false;
  4843. isIdx3 = false;
  4844. isIdx4 = false;
  4845. }
  4846. GUI.enabled = true;
  4847. if (doguCombo.isClickedComboButton || bgCombo.isClickedComboButton || bgmCombo.isClickedComboButton)
  4848. {
  4849. GUI.enabled = false;
  4850. }
  4851. listStyle3.padding.top = this.GetPix(0);
  4852. listStyle3.padding.bottom = this.GetPix(0);
  4853. listStyle3.fontSize = this.GetPix(12);
  4854. GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(116), (float) this.GetPix(150), (float) this.GetPix(25)),
  4855. "大道具2",
  4856. guistyle2);
  4857. parIndex = parCombo.List(new Rect((float) this.GetPix(51),
  4858. (float) this.GetPix(113),
  4859. (float) this.GetPix(100),
  4860. (float) this.GetPix(23)),
  4861. parComboList[parIndex].text,
  4862. parComboList,
  4863. guistyle4,
  4864. "box",
  4865. listStyle3);
  4866. if (GUI.Button(new Rect((float) this.GetPix(156), (float) this.GetPix(113), (float) this.GetPix(38), (float) this.GetPix(23)),
  4867. "追加",
  4868. guistyle3))
  4869. {
  4870. GameObject gameObject2 = null;
  4871. bool flag5 = false;
  4872. bool flag6 = false;
  4873. if (parArray[parIndex].Contains("#"))
  4874. {
  4875. string[] array3 = parArray[parIndex].Split(new char[] {'#'});
  4876. gameObject2 = GameMain.Instance.BgMgr.CreateAssetBundle(array3[1]);
  4877. if (gameObject2 != null)
  4878. {
  4879. gameObject2 = Instantiate<GameObject>(gameObject2);
  4880. MeshRenderer[] componentsInChildren = gameObject2.GetComponentsInChildren<MeshRenderer>();
  4881. for (int k = 0; k < componentsInChildren.Length; k++)
  4882. {
  4883. if (componentsInChildren[k] != null)
  4884. {
  4885. componentsInChildren[k].shadowCastingMode = ShadowCastingMode.Off;
  4886. }
  4887. }
  4888. }
  4889. flag5 = true;
  4890. if (!parArray[parIndex].Contains("Odogu_"))
  4891. {
  4892. flag6 = true;
  4893. }
  4894. doguBObject.Add(gameObject2);
  4895. }
  4896. else if (!parArray[parIndex].StartsWith("mirror") && parArray[parIndex].IndexOf(":") < 0)
  4897. {
  4898. Object @object = Resources.Load("Prefab/" + parArray[parIndex]);
  4899. gameObject2 = (Instantiate(@object) as GameObject);
  4900. doguBObject.Add(gameObject2);
  4901. }
  4902. else if (parArray[parIndex].StartsWith("mirror"))
  4903. {
  4904. Material material2 = new Material(Shader.Find("Mirror"));
  4905. GameObject gameObject3 = GameObject.CreatePrimitive(PrimitiveType.Plane);
  4906. gameObject3.GetComponent<Renderer>().material = material2;
  4907. gameObject3.AddComponent<MirrorReflection2>();
  4908. MirrorReflection2 component2 = gameObject3.GetComponent<MirrorReflection2>();
  4909. component2.m_TextureSize = 2048;
  4910. component2.m_ClipPlaneOffset = 0.07f;
  4911. gameObject3.GetComponent<Renderer>().enabled = true;
  4912. gameObject2 = gameObject3;
  4913. doguBObject.Add(gameObject2);
  4914. }
  4915. else
  4916. {
  4917. string[] array3 = parArray[parIndex].Split(new char[] {':'});
  4918. Object @object = GameMain.Instance.BgMgr.CreateAssetBundle(array3[0]);
  4919. if (@object == null)
  4920. {
  4921. @object = Resources.Load("BG/" + array3[0]);
  4922. }
  4923. GameObject gameObject4 = Instantiate(@object) as GameObject;
  4924. int num8 = 0;
  4925. int num9 = 0;
  4926. int.TryParse(array3[1], out num9);
  4927. foreach (object obj in gameObject4.transform)
  4928. {
  4929. Transform transform = (Transform) obj;
  4930. if (num9 == num8)
  4931. {
  4932. gameObject2 = transform.gameObject;
  4933. break;
  4934. }
  4935. num8++;
  4936. }
  4937. doguBObject.Add(gameObject2);
  4938. gameObject2.transform.parent = null;
  4939. Destroy(gameObject4);
  4940. gameObject4.SetActive(false);
  4941. }
  4942. gameObject2.name = parArray[parIndex];
  4943. Vector3 zero = Vector3.zero;
  4944. Vector3 zero2 = Vector3.zero;
  4945. switch (parIndex)
  4946. {
  4947. case 0:
  4948. zero.z = -0.6f;
  4949. zero.y = 0.96f;
  4950. zero2.z = 180f;
  4951. zero2.x = -90f;
  4952. gameObject2.transform.localScale = new Vector3(0.2f, 0.4f, 0.2f);
  4953. break;
  4954. case 1:
  4955. zero.z = -0.6f;
  4956. zero.y = 0.96f;
  4957. zero2.z = 180f;
  4958. zero2.x = -90f;
  4959. gameObject2.transform.localScale = new Vector3(0.1f, 0.4f, 0.2f);
  4960. break;
  4961. case 2:
  4962. zero.z = -0.6f;
  4963. zero.y = 0.85f;
  4964. zero2.z = 180f;
  4965. zero2.x = -90f;
  4966. gameObject2.transform.localScale = new Vector3(0.03f, 0.18f, 0.124f);
  4967. break;
  4968. case 3:
  4969. case 4:
  4970. case 5:
  4971. case 6:
  4972. case 7:
  4973. case 8:
  4974. case 9:
  4975. case 10:
  4976. case 11:
  4977. case 12:
  4978. case 13:
  4979. case 14:
  4980. case 15:
  4981. case 16:
  4982. case 17:
  4983. zero.z = 0.5f;
  4984. zero2.x = -90f;
  4985. break;
  4986. }
  4987. if (flag5)
  4988. {
  4989. zero.z = 0.4f;
  4990. if (flag6)
  4991. {
  4992. zero2.x = -90f;
  4993. }
  4994. }
  4995. if (gameObject2.name == "Salon_Entrance:3" || gameObject2.name == "Salon_Entrance:4"
  4996. || gameObject2.name == "Salon_Entrance:1"
  4997. || gameObject2.name == "Salon_Entrance:2"
  4998. || gameObject2.name == "Salon_Entrance:0" || gameObject2.name == "Shitsumu:23"
  4999. || gameObject2.name == "Shitsumu_Night:23")
  5000. {
  5001. zero.z = 0.5f;
  5002. zero2.x = -90f;
  5003. }
  5004. if (gameObject2.name == "Pool:26")
  5005. {
  5006. zero.z = 0.5f;
  5007. zero2.x = -90f;
  5008. zero2.z = 90f;
  5009. zero.y = 0.15f;
  5010. }
  5011. if (gameObject2.name == "Particle/pstarY_act2")
  5012. {
  5013. zero2.y = 90f;
  5014. }
  5015. gameObject2.transform.localPosition = zero;
  5016. gameObject2.transform.localRotation = Quaternion.Euler(zero2);
  5017. doguCnt = doguBObject.Count - 1;
  5018. gDogu[doguCnt] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  5019. gDogu[doguCnt].GetComponent<Renderer>().material = m_material;
  5020. gDogu[doguCnt].layer = 8;
  5021. gDogu[doguCnt].GetComponent<Renderer>().enabled = false;
  5022. gDogu[doguCnt].SetActive(false);
  5023. gDogu[doguCnt].transform.position = gameObject2.transform.position;
  5024. mDogu[doguCnt] = gDogu[doguCnt].AddComponent<MouseDrag6>();
  5025. mDogu[doguCnt].obj = gDogu[doguCnt];
  5026. mDogu[doguCnt].maid = gameObject2;
  5027. mDogu[doguCnt].angles = gameObject2.transform.eulerAngles;
  5028. gDogu[doguCnt].transform.localScale = new Vector3(cubeSize, cubeSize, cubeSize);
  5029. mDogu[doguCnt].ido = 1;
  5030. mDogu[doguCnt].isScale = false;
  5031. if (gameObject2.name == "Particle/pLineY")
  5032. {
  5033. mDogu[doguCnt].count = 180;
  5034. gameObject2.transform.localScale = new Vector3(3f, 3f, 3f);
  5035. }
  5036. if (gameObject2.name == "Particle/pLineP02")
  5037. {
  5038. mDogu[doguCnt].count = 115;
  5039. gameObject2.transform.localScale = new Vector3(3f, 3f, 3f);
  5040. }
  5041. if (gameObject2.name == "Particle/pLine_act2")
  5042. {
  5043. mDogu[doguCnt].count = 90;
  5044. gameObject2.transform.localScale = new Vector3(3f, 3f, 3f);
  5045. }
  5046. if (gameObject2.name == "Particle/pHeart01")
  5047. {
  5048. mDogu[doguCnt].count = 77;
  5049. }
  5050. if (parIndex < 3)
  5051. {
  5052. mDogu[doguCnt].isScale = true;
  5053. mDogu[doguCnt].isScale2 = true;
  5054. mDogu[doguCnt].scale2 = gameObject2.transform.localScale;
  5055. if (parIndex == 0)
  5056. {
  5057. mDogu[doguCnt].scale = new Vector3(gameObject2.transform.localScale.x * 5f,
  5058. gameObject2.transform.localScale.y * 5f,
  5059. gameObject2.transform.localScale.z * 5f);
  5060. }
  5061. if (parIndex == 1)
  5062. {
  5063. mDogu[doguCnt].scale = new Vector3(gameObject2.transform.localScale.x * 10f,
  5064. gameObject2.transform.localScale.y * 10f,
  5065. gameObject2.transform.localScale.z * 10f);
  5066. }
  5067. if (parIndex == 2)
  5068. {
  5069. mDogu[doguCnt].scale = new Vector3(gameObject2.transform.localScale.x * 33f,
  5070. gameObject2.transform.localScale.y * 33f,
  5071. gameObject2.transform.localScale.z * 33f);
  5072. }
  5073. }
  5074. if (gameObject2.GetComponent<Collider>() != null)
  5075. {
  5076. gameObject2.GetComponent<Collider>().enabled = false;
  5077. }
  5078. }
  5079. GUI.enabled = true;
  5080. if (bgCombo.isClickedComboButton || bgmCombo.isClickedComboButton)
  5081. {
  5082. GUI.enabled = false;
  5083. }
  5084. GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(88), (float) this.GetPix(100), (float) this.GetPix(25)),
  5085. "大道具1",
  5086. guistyle2);
  5087. doguBIndex =
  5088. doguCombo.List(new Rect((float) this.GetPix(51),
  5089. (float) this.GetPix(85),
  5090. (float) this.GetPix(100),
  5091. (float) this.GetPix(23)),
  5092. doguComboList[doguBIndex].text,
  5093. doguComboList,
  5094. guistyle4,
  5095. "box",
  5096. listStyle3);
  5097. if (GUI.Button(new Rect((float) this.GetPix(156), (float) this.GetPix(85), (float) this.GetPix(38), (float) this.GetPix(23)),
  5098. "追加",
  5099. guistyle3))
  5100. {
  5101. PhotoBGObjectData objResult = null;
  5102. GameObject gameObject2 = null;
  5103. if (doguDict.TryGetValue(doguBArray[doguBIndex], out objResult))
  5104. {
  5105. if (!string.IsNullOrEmpty(objResult.create_prefab_name))
  5106. {
  5107. var tmpObj = Resources.Load("Prefab/" + objResult.create_prefab_name);
  5108. if (tmpObj == null)
  5109. gameObject2 = null;
  5110. else
  5111. gameObject2 = (Instantiate(tmpObj) as GameObject);
  5112. }
  5113. else if (!string.IsNullOrEmpty(objResult.create_asset_bundle_name))
  5114. {
  5115. GameObject gameObject3 = GameMain.Instance.BgMgr.CreateAssetBundle(objResult.create_asset_bundle_name);
  5116. if (gameObject3 == null)
  5117. gameObject2 = null;
  5118. else
  5119. gameObject2 = Instantiate<GameObject>(gameObject3);
  5120. }
  5121. else if (!string.IsNullOrEmpty(objResult.direct_file))
  5122. {
  5123. BasePhotoCustomObject basePhotoCustomObject =
  5124. BasePhotoCustomObject.InstantiateFromFile(transform.gameObject, objResult.direct_file);
  5125. gameObject2 = basePhotoCustomObject.gameObject;
  5126. }
  5127. if (gameObject2 != null)
  5128. doguBObject.Add(gameObject2);
  5129. }
  5130. else if (!doguBArray[doguBIndex].StartsWith("mirror"))
  5131. {
  5132. Object @object;
  5133. if (doguBArray[doguBIndex].StartsWith("BG"))
  5134. {
  5135. string text2 = doguBArray[doguBIndex].Replace("BG", "");
  5136. @object = GameMain.Instance.BgMgr.CreateAssetBundle(text2);
  5137. if (@object == null)
  5138. {
  5139. @object = Resources.Load("BG/" + text2);
  5140. }
  5141. }
  5142. else
  5143. {
  5144. @object = Resources.Load("Prefab/" + doguBArray[doguBIndex]);
  5145. }
  5146. gameObject2 = (Instantiate(@object) as GameObject);
  5147. doguBObject.Add(gameObject2);
  5148. }
  5149. else
  5150. {
  5151. Material material2 = new Material(Shader.Find("Mirror"));
  5152. GameObject gameObject3 = GameObject.CreatePrimitive(PrimitiveType.Plane);
  5153. gameObject3.transform.localScale = new Vector3(0.3f, 1f, 0.3f);
  5154. gameObject3.GetComponent<Renderer>().material = material2;
  5155. gameObject3.AddComponent<MirrorReflection2>();
  5156. MirrorReflection2 component2 = gameObject3.GetComponent<MirrorReflection2>();
  5157. component2.m_TextureSize = 2048;
  5158. component2.m_ClipPlaneOffset = 0f;
  5159. gameObject3.GetComponent<Renderer>().enabled = true;
  5160. gameObject2 = gameObject3;
  5161. doguBObject.Add(gameObject2);
  5162. }
  5163. gameObject2.name = doguBArray[doguBIndex];
  5164. Vector3 zero = Vector3.zero;
  5165. Vector3 zero2 = Vector3.zero;
  5166. string text = gameObject2.name;
  5167. switch (text)
  5168. {
  5169. case "Odogu_XmasTreeMini_photo_ver":
  5170. zero.z = 0.6f;
  5171. gameObject2.transform.localScale = new Vector3(4.5f, 4.5f, 4.5f);
  5172. foreach (object obj2 in gameObject2.transform)
  5173. {
  5174. Transform transform2 = (Transform) obj2;
  5175. if (transform2.GetComponent<Collider>() != null)
  5176. {
  5177. transform2.GetComponent<Collider>().enabled = false;
  5178. }
  5179. }
  5180. goto IL_A0BF;
  5181. case "Odogu_KadomatsuMini_photo_ver":
  5182. zero.z = 0.6f;
  5183. gameObject2.transform.localScale = new Vector3(3.5f, 3.5f, 3.5f);
  5184. foreach (object obj3 in gameObject2.transform)
  5185. {
  5186. Transform transform2 = (Transform) obj3;
  5187. if (transform2.GetComponent<Collider>() != null)
  5188. {
  5189. transform2.GetComponent<Collider>().enabled = false;
  5190. }
  5191. }
  5192. goto IL_A0BF;
  5193. case "Odogu_ClassRoomDesk":
  5194. zero.z = 0.5f;
  5195. zero2.x = -90f;
  5196. goto IL_A0BF;
  5197. case "Odogu_SimpleTable":
  5198. zero.z = 0.5f;
  5199. zero2.x = -90f;
  5200. goto IL_A0BF;
  5201. case "Odogu_DildoBox":
  5202. zero.z = 0.5f;
  5203. zero2.x = -90f;
  5204. goto IL_A0BF;
  5205. case "PlayAreaOut":
  5206. zero.z = 0.5f;
  5207. zero.y = 0.2f;
  5208. goto IL_A0BF;
  5209. case "Odogu_Dresser_photo_ver":
  5210. GameObject.Find("Prim.00000000").GetComponent<Collider>().enabled = false;
  5211. GameObject.Find("Prim.00000001").GetComponent<Collider>().enabled = false;
  5212. GameObject.Find("Prim.00000002").GetComponent<Collider>().enabled = false;
  5213. GameObject.Find("Prim.00000004").GetComponent<Collider>().enabled = false;
  5214. goto IL_A0BF;
  5215. case "BGodogu_bbqgrill":
  5216. case "BGodogu_bucket":
  5217. case "BGodogu_coolerbox":
  5218. case "BGodogu_game_darts":
  5219. case "BGodogu_game_dartsboard":
  5220. case "BGodogu_nabe_huta":
  5221. case "BGodogu_nabe_water":
  5222. case "BGodogu_natumikan":
  5223. case "BGodogu_rb_chair":
  5224. case "BGodogu_rb_duck":
  5225. case "BGodogu_rb_obon":
  5226. case "BGodogu_rb_tokkuri":
  5227. case "BGodogu_saracorn":
  5228. case "BGodogu_saraimo":
  5229. case "BGodogu_saratomato":
  5230. case "BGodogu_sunanoshiro":
  5231. case "BGodogu_sunanoyama":
  5232. case "BGodogu_tsutsuhanabi":
  5233. case "BGodogu_ukiwa":
  5234. case "BGodogu_vf_crops_corn":
  5235. case "BGodogu_vf_crops_gekkabijin":
  5236. case "BGodogu_vf_crops_gekkabijinflower":
  5237. case "BGodogu_vf_crops_himawari":
  5238. case "BGodogu_vf_crops_natsumikan":
  5239. case "BGodogu_vf_crops_suika":
  5240. case "BGodogu_vf_crops_zakuro":
  5241. case "BGodogu_villa_table":
  5242. case "BGodogu_villa_tvrimocon":
  5243. case "BGodogu_villabr_sideboard":
  5244. case "BGOdogu_Game_Nei_USB":
  5245. case "BGOdogu_Game_Wanage":
  5246. case "BGOdogu_Game_Wa":
  5247. case "BGodogu_pafe":
  5248. case "BGodogu_furaidopoteto":
  5249. case "BGodogu_karaoketable":
  5250. case "BGodogu_omuriceh":
  5251. case "BGodogu_omuricekao1":
  5252. case "BGodogu_omuricekao2":
  5253. case "BGodogu_omuriceoppai":
  5254. case "BGodogu_kakigori":
  5255. case "BGodogu_pretzel_sara":
  5256. case "BGodogu_karaoke_box":
  5257. case "Odogu_StandMike":
  5258. case "Odogu_StandMikeBase":
  5259. case "Odogu_HeroineChair_muku":
  5260. case "Odogu_HeroineChair_mazime":
  5261. case "Odogu_HeroineChair_rindere":
  5262. case "Odogu_HeroineChair_tsumdere":
  5263. case "Odogu_HeroineChair_cooldere":
  5264. case "Odogu_HeroineChair_junshin":
  5265. case "Odogu_TabletPC":
  5266. case "Odogu_Styluspen_black":
  5267. case "Odogu_Styluspen_white":
  5268. case "Odogu_Styluspen_red":
  5269. case "Odogu_Styluspen_blue":
  5270. case "Odogu_Styluspen_yellow":
  5271. case "Odogu_Styluspen_green":
  5272. case "Odogu_Omurice1":
  5273. case "Odogu_Omurice3":
  5274. case "Odogu_OmuriceH":
  5275. case "Odogu_OmuriceKao1":
  5276. case "Odogu_OmuriceKao2":
  5277. case "Odogu_OmuriceOppai":
  5278. case "Odogu_AcquaPazza":
  5279. case "Odogu_Sandwich":
  5280. case "Odogu_vichyssoise":
  5281. case "Odogu_BirthdayCake":
  5282. case "Odogu_Shortcake":
  5283. case "Odogu_MontBlanc":
  5284. case "Odogu_Pafe":
  5285. case "Odogu_Smoothie_Red":
  5286. case "Odogu_Smoothie_Green":
  5287. case "Odogu_Cocktail_Red":
  5288. case "Odogu_Cocktail_Blue":
  5289. case "Odogu_Cocktail_Yellow":
  5290. case "Odogu_Coffiecup":
  5291. case "Odogu_WineBottle(cap_off)":
  5292. case "Odogu_WineBottle(cap_on)":
  5293. case "Odogu_Jyouro":
  5294. case "Odogu_Planter_Red":
  5295. case "Odogu_Planter_Lightblue":
  5296. case "Odogu_MariGold":
  5297. case "Odogu_CasinoChip_10":
  5298. case "Odogu_CasinoChip_100":
  5299. case "Odogu_CasinoChip_1000":
  5300. case "Odogu_CardShooter":
  5301. case "Odogu_CardsDeck":
  5302. case "Odogu_Card_s1":
  5303. case "Odogu_Card_s2":
  5304. case "Odogu_Card_s3":
  5305. case "Odogu_Card_s4":
  5306. case "Odogu_Card_s5":
  5307. case "Odogu_Card_s6":
  5308. case "Odogu_Card_s7":
  5309. case "Odogu_Card_s8":
  5310. case "Odogu_Card_s9":
  5311. case "Odogu_Card_s10":
  5312. case "Odogu_Card_s11":
  5313. case "Odogu_Card_s12":
  5314. case "Odogu_Card_s13":
  5315. case "Odogu_Card_h1":
  5316. case "Odogu_Card_h2":
  5317. case "Odogu_Card_h3":
  5318. case "Odogu_Card_h4":
  5319. case "Odogu_Card_h5":
  5320. case "Odogu_Card_h6":
  5321. case "Odogu_Card_h7":
  5322. case "Odogu_Card_h8":
  5323. case "Odogu_Card_h9":
  5324. case "Odogu_Card_h10":
  5325. case "Odogu_Card_h11":
  5326. case "Odogu_Card_h12":
  5327. case "Odogu_Card_h13":
  5328. case "Odogu_Card_d1":
  5329. case "Odogu_Card_d2":
  5330. case "Odogu_Card_d3":
  5331. case "Odogu_Card_d4":
  5332. case "Odogu_Card_d5":
  5333. case "Odogu_Card_d6":
  5334. case "Odogu_Card_d7":
  5335. case "Odogu_Card_d8":
  5336. case "Odogu_Card_d9":
  5337. case "Odogu_Card_d10":
  5338. case "Odogu_Card_d11":
  5339. case "Odogu_Card_d12":
  5340. case "Odogu_Card_d13":
  5341. case "Odogu_Card_c1":
  5342. case "Odogu_Card_c2":
  5343. case "Odogu_Card_c3":
  5344. case "Odogu_Card_c4":
  5345. case "Odogu_Card_c5":
  5346. case "Odogu_Card_c6":
  5347. case "Odogu_Card_c7":
  5348. case "Odogu_Card_c8":
  5349. case "Odogu_Card_c9":
  5350. case "Odogu_Card_c10":
  5351. case "Odogu_Card_c11":
  5352. case "Odogu_Card_c12":
  5353. case "Odogu_Card_c13":
  5354. case "Odogu_Card_joker":
  5355. zero.z = 0.5f;
  5356. zero2.x = -90f;
  5357. goto IL_A0BF;
  5358. }
  5359. zero.z = 0.5f;
  5360. if (gameObject2.name.StartsWith("Odogu_"))
  5361. {
  5362. foreach (object obj4 in gameObject2.transform)
  5363. {
  5364. Transform transform2 = (Transform) obj4;
  5365. if (transform2.GetComponent<Collider>() != null)
  5366. {
  5367. transform2.GetComponent<Collider>().enabled = false;
  5368. }
  5369. }
  5370. }
  5371. else if (gameObject2.GetComponent<Collider>() != null)
  5372. {
  5373. gameObject2.GetComponent<Collider>().enabled = false;
  5374. }
  5375. IL_A0BF:
  5376. gameObject2.transform.localPosition = zero;
  5377. gameObject2.transform.localRotation = Quaternion.Euler(zero2);
  5378. doguCnt = doguBObject.Count - 1;
  5379. gDogu[doguCnt] = GameObject.CreatePrimitive(PrimitiveType.Cube);
  5380. gDogu[doguCnt].GetComponent<Renderer>().material = m_material;
  5381. gDogu[doguCnt].layer = 8;
  5382. gDogu[doguCnt].GetComponent<Renderer>().enabled = false;
  5383. gDogu[doguCnt].SetActive(false);
  5384. gDogu[doguCnt].transform.position = gameObject2.transform.position;
  5385. mDogu[doguCnt] = gDogu[doguCnt].AddComponent<MouseDrag6>();
  5386. mDogu[doguCnt].isScale = false;
  5387. mDogu[doguCnt].obj = gDogu[doguCnt];
  5388. mDogu[doguCnt].maid = gameObject2;
  5389. mDogu[doguCnt].angles = gameObject2.transform.eulerAngles;
  5390. gDogu[doguCnt].transform.localScale = new Vector3(cubeSize, cubeSize, cubeSize);
  5391. mDogu[doguCnt].ido = 1;
  5392. if (doguBIndex == 6 || doguBIndex == 7)
  5393. {
  5394. mDogu[doguCnt].isScale2 = true;
  5395. mDogu[doguCnt].scale2 = gameObject2.transform.localScale;
  5396. }
  5397. }
  5398. GUI.enabled = true;
  5399. if (bgmCombo.isClickedComboButton)
  5400. {
  5401. GUI.enabled = false;
  5402. }
  5403. listStyle3.padding.top = this.GetPix(1);
  5404. listStyle3.padding.bottom = this.GetPix(0);
  5405. listStyle3.fontSize = this.GetPix(12);
  5406. int num10 = bgCombo.List(new Rect((float) this.GetPix(31),
  5407. (float) this.GetPix(53),
  5408. (float) this.GetPix(95),
  5409. (float) this.GetPix(23)),
  5410. bgComboList[bgIndex].text,
  5411. bgComboList,
  5412. guistyle4,
  5413. "box",
  5414. listStyle3);
  5415. if (GUI.Button(new Rect((float) this.GetPix(5), (float) this.GetPix(53), (float) this.GetPix(23), (float) this.GetPix(23)),
  5416. "<",
  5417. guistyle3))
  5418. {
  5419. num10--;
  5420. if (num10 <= -1)
  5421. {
  5422. num10 = bgArray.Length - 1;
  5423. }
  5424. }
  5425. if (GUI.Button(new Rect((float) this.GetPix(129), (float) this.GetPix(53), (float) this.GetPix(23), (float) this.GetPix(23)),
  5426. ">",
  5427. guistyle3))
  5428. {
  5429. num10++;
  5430. if (num10 == bgArray.Length)
  5431. {
  5432. num10 = 0;
  5433. }
  5434. }
  5435. if (bgIndex != num10)
  5436. {
  5437. bgIndex = num10;
  5438. bg.localScale = new Vector3(1f, 1f, 1f);
  5439. if (bgArray[bgIndex].Length == 36)
  5440. {
  5441. GameMain.Instance.BgMgr.ChangeBgMyRoom(bgArray[bgIndex]);
  5442. }
  5443. else
  5444. {
  5445. GameMain.Instance.BgMgr.ChangeBg(bgArray[bgIndex]);
  5446. }
  5447. bgCombo.selectedItemIndex = bgIndex;
  5448. if (bgArray[bgIndex] == "karaokeroom")
  5449. {
  5450. bg.transform.position = bgObject.transform.position;
  5451. Vector3 zero = Vector3.zero;
  5452. Vector3 zero2 = Vector3.zero;
  5453. zero2.y = 90f;
  5454. zero.z = 4f;
  5455. zero.x = 1f;
  5456. bg.transform.localPosition = zero;
  5457. bg.transform.localRotation = Quaternion.Euler(zero2);
  5458. }
  5459. }
  5460. GUI.enabled = true;
  5461. int num11 = bgmCombo.List(new Rect((float) this.GetPix(31),
  5462. (float) this.GetPix(25),
  5463. (float) this.GetPix(95),
  5464. (float) this.GetPix(23)),
  5465. bgmComboList[bgmIndex].text,
  5466. bgmComboList,
  5467. guistyle4,
  5468. "box",
  5469. listStyle3);
  5470. if (GUI.Button(new Rect((float) this.GetPix(5), (float) this.GetPix(25), (float) this.GetPix(23), (float) this.GetPix(23)),
  5471. "<",
  5472. guistyle3))
  5473. {
  5474. num11--;
  5475. if (num11 <= -1)
  5476. {
  5477. num11 = bgmArray.Length - 1;
  5478. }
  5479. }
  5480. if (GUI.Button(new Rect((float) this.GetPix(129), (float) this.GetPix(25), (float) this.GetPix(23), (float) this.GetPix(23)),
  5481. ">",
  5482. guistyle3))
  5483. {
  5484. num11++;
  5485. if (num11 == bgmArray.Length)
  5486. {
  5487. num11 = 0;
  5488. }
  5489. }
  5490. if (bgmIndex != num11)
  5491. {
  5492. bgmIndex = num11;
  5493. GameMain.Instance.SoundMgr.PlayBGM(bgmArray[bgmIndex] + ".ogg", 0f, true);
  5494. bgmCombo.selectedItemIndex = bgmIndex;
  5495. }
  5496. if (bgmCombo.isClickedComboButton)
  5497. {
  5498. GUI.enabled = false;
  5499. }
  5500. }
  5501. private void GuiFunc4(int winID)
  5502. {
  5503. GUIStyle style1 = (GUIStyle) "label";
  5504. style1.fontSize = this.GetPix(12);
  5505. style1.alignment = TextAnchor.UpperLeft;
  5506. GUIStyle style2 = (GUIStyle) "label";
  5507. style2.fontSize = this.GetPix(11);
  5508. style2.alignment = TextAnchor.UpperLeft;
  5509. GUIStyle style3 = (GUIStyle) "button";
  5510. style3.fontSize = this.GetPix(20);
  5511. GUIStyle buttonStyle1 = (GUIStyle) "button";
  5512. buttonStyle1.fontSize = this.GetPix(14);
  5513. buttonStyle1.alignment = TextAnchor.MiddleLeft;
  5514. GUIStyle buttonStyle2 = (GUIStyle) "button";
  5515. buttonStyle2.fontSize = this.GetPix(12);
  5516. buttonStyle2.alignment = TextAnchor.MiddleLeft;
  5517. GUIStyle style4 = new GUIStyle((GUIStyle) "toggle");
  5518. style4.fontSize = this.GetPix(13);
  5519. CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
  5520. Maid maid = maidArray[selectMaidIndex];
  5521. if (!poseInitFlg)
  5522. {
  5523. listStyle2.normal.textColor = Color.white;
  5524. listStyle2.normal.background = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.5f));
  5525. listStyle2.onHover.background = listStyle2.hover.background = new Texture2D(2, 2);
  5526. listStyle2.padding.left = listStyle2.padding.right = listStyle2.padding.top = listStyle2.padding.bottom = this.GetPix(0);
  5527. listStyle2.fontSize = this.GetPix(12);
  5528. listStyle3.normal.textColor = Color.white;
  5529. listStyle3.normal.background = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.5f));
  5530. listStyle3.onHover.background = listStyle3.hover.background = new Texture2D(2, 2);
  5531. listStyle3.padding.left = listStyle3.padding.right = listStyle3.padding.top = this.GetPix(1);
  5532. listStyle3.padding.bottom = this.GetPix(0);
  5533. listStyle3.fontSize = this.GetPix(12);
  5534. listStyle4.normal.textColor = Color.white;
  5535. listStyle4.normal.background = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.5f));
  5536. listStyle4.onHover.background = listStyle4.hover.background = new Texture2D(2, 2);
  5537. listStyle4.padding.left = listStyle4.padding.right = listStyle4.padding.top = 3;
  5538. listStyle4.padding.bottom = 3;
  5539. listStyle4.fontSize = this.GetPix(13);
  5540. poseCombo.selectedItemIndex = 0;
  5541. int group = (int) groupList[0];
  5542. poseComboList = new GUIContent[group];
  5543. for (int index = 0; index < group; ++index)
  5544. poseComboList[index] = new GUIContent((index + 1).ToString() + ":" + poseArray[index]);
  5545. poseGroupCombo.selectedItemIndex = 0;
  5546. poseGroupComboList = new GUIContent[poseGroupArray.Length + 1];
  5547. poseGroupComboList[0] = new GUIContent("1:通常");
  5548. for (int index = 0; index < poseGroupArray.Length; ++index)
  5549. {
  5550. if (poseGroupArray[index] == "maid_dressroom01")
  5551. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":立ち");
  5552. if (poseGroupArray[index] == "tennis_kamae_f")
  5553. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":中腰");
  5554. if (poseGroupArray[index] == "senakanagasi_f")
  5555. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":膝をつく");
  5556. if (poseGroupArray[index] == "work_hansei")
  5557. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":座り");
  5558. if (poseGroupArray[index] == "inu_taiki_f")
  5559. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":四つん這い");
  5560. if (poseGroupArray[index] == "syagami_pose_f")
  5561. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":床座り");
  5562. if (poseGroupArray[index] == "densyasuwari_taiki_f")
  5563. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":椅子座り");
  5564. if (poseGroupArray[index] == "work_kaiwa")
  5565. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":ソファー座り");
  5566. if (poseGroupArray[index] == "dance_cm3d2_001_f1,14.14")
  5567. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":ドキドキ☆Fallin' Love");
  5568. if (poseGroupArray[index] == "dance_cm3d_001_f1,39.25")
  5569. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":entrance to you");
  5570. if (poseGroupArray[index] == "dance_cm3d_002_end_f1,50.71")
  5571. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":scarlet leap");
  5572. if (poseGroupArray[index] == "dance_cm3d2_002_smt_f,7.76,")
  5573. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":stellar my tears");
  5574. if (poseGroupArray[index] == "dance_cm3d_003_sp2_f1,90.15")
  5575. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":rhythmix to you");
  5576. if (poseGroupArray[index] == "dance_cm3d2_003_hs_f1,0.01,")
  5577. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":happy!happy!スキャンダル!!");
  5578. if (poseGroupArray[index] == "dance_cm3d_004_kano_f1,124.93")
  5579. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":Can Know Two Close");
  5580. if (poseGroupArray[index] == "dance_cm3d2_004_sse_f1,0.01")
  5581. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":sweet sweet everyday");
  5582. if (poseGroupArray[index] == "turusi_sex_in_taiki_f")
  5583. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":拘束");
  5584. if (poseGroupArray[index] == "rosyutu_pose01_f")
  5585. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":エロ");
  5586. if (poseGroupArray[index] == "rosyutu_aruki_f_once_,1.37")
  5587. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":歩き");
  5588. if (poseGroupArray[index] == "stand_desk1")
  5589. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":その他");
  5590. if (poseGroupArray[index] == poseArray5[0])
  5591. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":ダンスMC");
  5592. if (poseGroupArray[index] == poseArray6[0])
  5593. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":ダンス");
  5594. if (existPose && strS != "")
  5595. {
  5596. if (index == poseGroupArray.Length - 4)
  5597. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":通常2");
  5598. if (index == poseGroupArray.Length - 3)
  5599. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":エロ2");
  5600. if (index == poseGroupArray.Length - 2)
  5601. poseGroupComboList[index + 1] = new GUIContent("98:撮影モード");
  5602. if (index == poseGroupArray.Length - 1)
  5603. poseGroupComboList[index + 1] = new GUIContent("99:登録ポーズ");
  5604. }
  5605. else if (existPose && strS == "")
  5606. {
  5607. if (index == poseGroupArray.Length - 3)
  5608. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":通常2");
  5609. if (index == poseGroupArray.Length - 2)
  5610. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":エロ2");
  5611. if (index == poseGroupArray.Length - 1)
  5612. poseGroupComboList[index + 1] = new GUIContent("99:登録ポーズ");
  5613. }
  5614. else if (!existPose && strS != "")
  5615. {
  5616. if (index == poseGroupArray.Length - 3)
  5617. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":通常2");
  5618. if (index == poseGroupArray.Length - 2)
  5619. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":エロ2");
  5620. if (index == poseGroupArray.Length - 1)
  5621. poseGroupComboList[index + 1] = new GUIContent("98:撮影モード");
  5622. }
  5623. else
  5624. {
  5625. if (index == poseGroupArray.Length - 2)
  5626. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":通常2");
  5627. if (index == poseGroupArray.Length - 1)
  5628. poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":エロ2");
  5629. }
  5630. }
  5631. poseInitFlg = true;
  5632. itemCombo.selectedItemIndex = 0;
  5633. int length = itemArray.Length;
  5634. itemComboList = new GUIContent[length - 1];
  5635. for (int index = 0; index < length; ++index)
  5636. {
  5637. if (index == 0)
  5638. {
  5639. itemComboList[index] = new GUIContent("アイテム無し");
  5640. }
  5641. else
  5642. {
  5643. switch (itemArray[index])
  5644. {
  5645. case "handitem,HandItemR_WineGlass_I_.menu":
  5646. itemComboList[index] = new GUIContent(index.ToString() + ":ワイングラス");
  5647. break;
  5648. case "handitem,HandItemR_WineBottle_I_.menu":
  5649. itemComboList[index] = new GUIContent(index.ToString() + ":ワインボトル");
  5650. break;
  5651. case "handitem,handitemr_racket_I_.menu":
  5652. itemComboList[index] = new GUIContent(index.ToString() + ":ラケット");
  5653. break;
  5654. case "handitem,HandItemR_Hataki_I_.menu":
  5655. itemComboList[index] = new GUIContent(index.ToString() + ":ハタキ");
  5656. break;
  5657. case "handitem,HandItemR_Mop_I_.menu":
  5658. itemComboList[index] = new GUIContent(index.ToString() + ":モップ");
  5659. break;
  5660. case "handitem,HandItemR_Houki_I_.menu":
  5661. itemComboList[index] = new GUIContent(index.ToString() + ":ほうき");
  5662. break;
  5663. case "handitem,HandItemR_Zoukin2_I_.menu":
  5664. itemComboList[index] = new GUIContent(index.ToString() + ":雑巾");
  5665. break;
  5666. case "handitem,HandItemR_Chu-B_Lip_I_.menu":
  5667. itemComboList[index] = new GUIContent(index.ToString() + ":Chu-B Lip");
  5668. break;
  5669. case "handitem,HandItemR_Mimikaki_I_.menu":
  5670. itemComboList[index] = new GUIContent(index.ToString() + ":耳かき");
  5671. break;
  5672. case "handitem,HandItemR_Pen_I_.menu":
  5673. itemComboList[index] = new GUIContent(index.ToString() + ":ペン");
  5674. break;
  5675. case "handitem,HandItemR_Otama_I_.menu":
  5676. itemComboList[index] = new GUIContent(index.ToString() + ":おたま");
  5677. break;
  5678. case "handitem,HandItemR_Houchou_I_.menu":
  5679. itemComboList[index] = new GUIContent(index.ToString() + ":包丁");
  5680. break;
  5681. case "handitem,HandItemR_Book_I_.menu":
  5682. itemComboList[index] = new GUIContent(index.ToString() + ":本");
  5683. break;
  5684. case "handitem,HandItemR_Puff_I_.menu":
  5685. itemComboList[index] = new GUIContent(index.ToString() + ":パフ");
  5686. break;
  5687. case "handitem,HandItemR_Rip_I_.menu":
  5688. itemComboList[index] = new GUIContent(index.ToString() + ":リップ");
  5689. break;
  5690. case "handitem,HandItemD_Shisyuu_Hari_I_.menu":
  5691. itemComboList[index] = new GUIContent(index.ToString() + ":刺繍");
  5692. break;
  5693. case "handitem,HandItemD_Sara_Sponge_I_.menu":
  5694. itemComboList[index] = new GUIContent(index.ToString() + ":皿・スポンジ");
  5695. break;
  5696. case "kousoku_upper,KousokuU_TekaseOne_I_.menu":
  5697. itemComboList[index] = new GUIContent(index.ToString() + ":手枷1");
  5698. break;
  5699. case "kousoku_upper,KousokuU_TekaseTwo_I_.menu":
  5700. itemComboList[index] = new GUIContent(index.ToString() + ":手枷2");
  5701. break;
  5702. case "kousoku_lower,KousokuL_AshikaseUp_I_.menu":
  5703. itemComboList[index] = new GUIContent(index.ToString() + ":足枷");
  5704. break;
  5705. case "handitem,HandItemR_Usuba_Houchou_I_.menu":
  5706. itemComboList[index] = new GUIContent(index.ToString() + "薄刃包丁");
  5707. break;
  5708. case "handitem,HandItemR_Chusyaki_I_.menu":
  5709. itemComboList[index] = new GUIContent(index.ToString() + "注射器");
  5710. break;
  5711. case "handitem,HandItemR_Nei_Heartful_I_.menu":
  5712. itemComboList[index] = new GUIContent(index.ToString() + "ハートフルねい人形");
  5713. break;
  5714. case "handitem,HandItemR_Shaker_I_.menu":
  5715. itemComboList[index] = new GUIContent(index.ToString() + "シェイカー");
  5716. break;
  5717. case "handitem,HandItemR_SmartPhone_I_.menu":
  5718. itemComboList[index] = new GUIContent(index.ToString() + "スマートフォン");
  5719. break;
  5720. case "kousoku_upper,KousokuU_Ushirode_I_.menu":
  5721. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":後ろ手拘束具");
  5722. break;
  5723. case "kousoku_upper,KousokuU_SMRoom_Haritsuke_I_.menu":
  5724. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":磔台・手枷足枷");
  5725. break;
  5726. case "kousoku_upper,KousokuU_SMRoom2_Haritsuke_I_.menu":
  5727. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":磔台・手枷足枷2");
  5728. break;
  5729. case "handitem,HandItemL_Dance_Hataki_I_.menu":
  5730. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":ダンスハタキ");
  5731. break;
  5732. case "handitem,HandItemL_Dance_Mop_I_.menu":
  5733. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":ダンスモップ");
  5734. break;
  5735. case "handitem,HandItemL_Dance_Zoukin_I_.menu":
  5736. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":ダンス雑巾");
  5737. break;
  5738. case "handitem,HandItemL_Kozara_I_.menu":
  5739. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":小皿");
  5740. break;
  5741. case "handitem,HandItemR_Teacup_I_.menu":
  5742. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":ティーカップ");
  5743. break;
  5744. case "handitem,HandItemL_Teasaucer_I_.menu":
  5745. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":ティーソーサー");
  5746. break;
  5747. case "handitem,HandItemR_Wholecake_I_.menu":
  5748. itemComboList[index - 1] = new GUIContent("ホールケーキ");
  5749. break;
  5750. case "handitem,HandItemR_Menu_I_.menu":
  5751. itemComboList[index - 1] = new GUIContent("メニュー表");
  5752. break;
  5753. case "handitem,HandItemR_Vibe_I_.menu":
  5754. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":バイブ");
  5755. break;
  5756. case "handitem,HandItemR_VibePink_I_.menu":
  5757. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":ピンクバイブ");
  5758. break;
  5759. case "handitem,HandItemR_VibeBig_I_.menu":
  5760. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":太バイブ");
  5761. break;
  5762. case "handitem,HandItemR_AnalVibe_I_.menu":
  5763. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":アナルバイブ");
  5764. break;
  5765. case "handitem,HandItemH_SoutouVibe_I_.menu":
  5766. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":前:双頭バイブ");
  5767. break;
  5768. case "accvag,accVag_Vibe_I_.menu":
  5769. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":前:バイブ");
  5770. break;
  5771. case "accvag,accVag_VibeBig_I_.menu":
  5772. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":前:太バイブ");
  5773. break;
  5774. case "accvag,accVag_VibePink_I_.menu":
  5775. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":前:ピンクバイブ");
  5776. break;
  5777. case "accanl,accAnl_AnalVibe_I_.menu":
  5778. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":後:アナルバイブ");
  5779. break;
  5780. case "accanl,accAnl_Photo_NomalVibe_I_.menu":
  5781. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":後:バイブ");
  5782. break;
  5783. case "accanl,accAnl_Photo_VibeBig_I_.menu":
  5784. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":後:太バイブ");
  5785. break;
  5786. case "accanl,accAnl_Photo_VibePink_I_.menu":
  5787. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":後:ピンクバイブ");
  5788. break;
  5789. case "handitem,HandItemL_Etoile_Saucer_I_.menu":
  5790. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + "ティーソーサー");
  5791. break;
  5792. case "handitem,HandItemR_Etoile_Teacup_I_.menu":
  5793. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + "ティーカップ");
  5794. break;
  5795. case "handitem,HandItemL_Katuramuki_Daikon_I_.menu":
  5796. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + "桂むき大根");
  5797. break;
  5798. case "handitem,HandItemL_Karte_I_.menu":
  5799. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + "カルテ");
  5800. break;
  5801. case "handitem,HandItemL_Cracker_I_.menu":
  5802. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + "クラッカー");
  5803. break;
  5804. }
  5805. if (index == 12)
  5806. itemComboList[index] = new GUIContent(index.ToString() + ":手枷・足枷");
  5807. if (index == 13)
  5808. itemComboList[index] = new GUIContent(index.ToString() + ":手枷・足枷(下)");
  5809. if (index == 24)
  5810. itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":カップ&ソーサー");
  5811. }
  5812. }
  5813. }
  5814. if (poseCombo.isClickedComboButton)
  5815. GUI.enabled = false;
  5816. if (poseGroupCombo.isClickedComboButton)
  5817. GUI.enabled = false;
  5818. if (sceneLevel == 3 || sceneLevel == 5 || isF6)
  5819. {
  5820. if (!isF6)
  5821. {
  5822. bool flag = true;
  5823. if (faceFlg || poseFlg || (sceneFlg || kankyoFlg) || kankyo2Flg)
  5824. flag = false;
  5825. if (GUI.Toggle(new Rect((float) this.GetPix(2),
  5826. (float) this.GetPix(2),
  5827. (float) this.GetPix(39),
  5828. (float) this.GetPix(20)),
  5829. flag,
  5830. "配置",
  5831. style4))
  5832. {
  5833. faceFlg = false;
  5834. poseFlg = false;
  5835. sceneFlg = false;
  5836. kankyoFlg = false;
  5837. kankyo2Flg = false;
  5838. bGui = true;
  5839. isGuiInit = true;
  5840. }
  5841. }
  5842. if (!yotogiFlg && GUI.Toggle(new Rect((float) this.GetPix(41),
  5843. (float) this.GetPix(2),
  5844. (float) this.GetPix(39),
  5845. (float) this.GetPix(20)),
  5846. poseFlg,
  5847. "操作",
  5848. style4))
  5849. {
  5850. poseFlg = true;
  5851. faceFlg = false;
  5852. sceneFlg = false;
  5853. kankyoFlg = false;
  5854. kankyo2Flg = false;
  5855. }
  5856. if (GUI.Toggle(new Rect((float) this.GetPix(80), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
  5857. faceFlg,
  5858. "表情",
  5859. style4))
  5860. {
  5861. faceFlg = true;
  5862. poseFlg = false;
  5863. sceneFlg = false;
  5864. kankyoFlg = false;
  5865. kankyo2Flg = false;
  5866. if (!faceFlg2)
  5867. {
  5868. isFaceInit = true;
  5869. faceFlg2 = true;
  5870. maidArray[selectMaidIndex].boMabataki = false;
  5871. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  5872. }
  5873. isFaceInit = true;
  5874. }
  5875. if (GUI.Toggle(new Rect((float) this.GetPix(119), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
  5876. kankyoFlg,
  5877. "環境",
  5878. style4))
  5879. {
  5880. poseFlg = false;
  5881. faceFlg = false;
  5882. sceneFlg = false;
  5883. kankyoFlg = true;
  5884. kankyo2Flg = false;
  5885. }
  5886. if (!(bool) ((Object) line1))
  5887. {
  5888. line1 = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.3f));
  5889. line2 = this.MakeTex(2, 2, new Color(0.7f, 0.7f, 0.7f, 0.6f));
  5890. }
  5891. GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(20), (float) this.GetPix(160), 2f), (Texture) line1);
  5892. GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(20), (float) this.GetPix(160), 1f), (Texture) line2);
  5893. style1.fontSize = this.GetPix(13);
  5894. style1.alignment = TextAnchor.MiddleCenter;
  5895. GUI.Label(new Rect((float) this.GetPix(125), (float) this.GetPix(25), (float) this.GetPix(40), (float) this.GetPix(25)),
  5896. string.Concat((object) (selectMaidIndex + 1)),
  5897. style1);
  5898. style1.fontSize = this.GetPix(11);
  5899. style1.alignment = TextAnchor.UpperLeft;
  5900. }
  5901. if (sceneLevel > 0)
  5902. {
  5903. int selectMaidIndex = this.selectMaidIndex;
  5904. if (sceneLevel == 3 || sceneLevel == 5 && (isF7 || maidCnt > 1))
  5905. {
  5906. if (GUI.Button(new Rect((float) this.GetPix(5),
  5907. (float) this.GetPix(53),
  5908. (float) this.GetPix(23),
  5909. (float) this.GetPix(32)),
  5910. "<",
  5911. style3))
  5912. {
  5913. --this.selectMaidIndex;
  5914. if (this.selectMaidIndex < 0)
  5915. this.selectMaidIndex = selectList.Count - 1;
  5916. isPoseInit = true;
  5917. poseFlg = true;
  5918. copyIndex = 0;
  5919. poseCombo.selectedItemIndex = poseIndex[this.selectMaidIndex];
  5920. faceCombo.selectedItemIndex = faceIndex[this.selectMaidIndex];
  5921. }
  5922. if (GUI.Button(new Rect((float) this.GetPix(135),
  5923. (float) this.GetPix(53),
  5924. (float) this.GetPix(23),
  5925. (float) this.GetPix(32)),
  5926. ">",
  5927. style3))
  5928. {
  5929. ++this.selectMaidIndex;
  5930. if (selectList.Count <= this.selectMaidIndex)
  5931. this.selectMaidIndex = 0;
  5932. isPoseInit = true;
  5933. poseFlg = true;
  5934. copyIndex = 0;
  5935. poseCombo.selectedItemIndex = poseIndex[this.selectMaidIndex];
  5936. faceCombo.selectedItemIndex = faceIndex[this.selectMaidIndex];
  5937. }
  5938. }
  5939. if ((bool) ((Object) maidArray[this.selectMaidIndex].GetThumIcon()))
  5940. GUI.DrawTexture(new Rect((float) this.GetPix(30),
  5941. (float) this.GetPix(25),
  5942. (float) this.GetPix(60),
  5943. (float) this.GetPix(60)),
  5944. (Texture) maidArray[this.selectMaidIndex].GetThumIcon());
  5945. GUI.Label(new Rect((float) this.GetPix(90), (float) this.GetPix(50), (float) this.GetPix(140), (float) this.GetPix(210)),
  5946. maidArray[this.selectMaidIndex].status.lastName + "\n" + maidArray[this.selectMaidIndex].status.firstName,
  5947. style1);
  5948. }
  5949. if (!isF6)
  5950. {
  5951. if (isDanceStop)
  5952. {
  5953. isStop[selectMaidIndex] = true;
  5954. isDanceStop = false;
  5955. }
  5956. if (sceneLevel == 5 && maidCnt > 1)
  5957. {
  5958. bool flag = false;
  5959. if (selectMaidIndex == isEditNo)
  5960. flag = true;
  5961. isEdit[selectMaidIndex] =
  5962. GUI.Toggle(new Rect((float) this.GetPix(5),
  5963. (float) this.GetPix(25),
  5964. (float) this.GetPix(50),
  5965. (float) this.GetPix(16)),
  5966. flag,
  5967. "Edit",
  5968. style4);
  5969. if (isEdit[selectMaidIndex] && selectMaidIndex != isEditNo)
  5970. {
  5971. isEditNo = selectMaidIndex;
  5972. for (int index = 0; index < maidCnt; ++index)
  5973. {
  5974. if (index != isEditNo)
  5975. isEdit[index] = false;
  5976. }
  5977. SceneEdit component = GameObject.Find("__SceneEdit__").GetComponent<SceneEdit>();
  5978. SetFieldValue<SceneEdit, Maid>(component, "m_maid", maidArray[selectMaidIndex]);
  5979. component.PartsTypeCamera(MPN.stkg);
  5980. editSelectMaid = maidArray[selectMaidIndex];
  5981. if (selectList[selectMaidIndex] != null && goSlot[(int) selectList[selectMaidIndex]] != null)
  5982. {
  5983. maidArray[selectMaidIndex].body0.goSlot =
  5984. new List<TBodySkin>((IEnumerable<TBodySkin>) goSlot[(int) selectList[selectMaidIndex]]);
  5985. for (int index = 0; index < bodyHit[(int) selectList[selectMaidIndex]].Count; ++index)
  5986. maidArray[selectMaidIndex].body0.goSlot[index].bonehair.bodyhit =
  5987. bodyHit[(int) selectList[selectMaidIndex]][index];
  5988. }
  5989. }
  5990. }
  5991. GUI.enabled = !poseGroupCombo.isClickedComboButton;
  5992. if (isLock[selectMaidIndex])
  5993. GUI.enabled = false;
  5994. int result;
  5995. Transform transform;
  5996. if (GUI.Button(new Rect((float) this.GetPix(5), (float) this.GetPix(125), (float) this.GetPix(23), (float) this.GetPix(23)),
  5997. "<",
  5998. style3))
  5999. {
  6000. --poseIndex[selectMaidIndex];
  6001. if (poseGroupIndex > 0)
  6002. {
  6003. if ((int) groupList[poseGroupIndex - 1] > poseIndex[selectMaidIndex])
  6004. poseIndex[selectMaidIndex] = poseGroupIndex < groupList.Count
  6005. ? (int) groupList[poseGroupIndex] - 1
  6006. : poseArray.Length - 1;
  6007. }
  6008. else if (poseIndex[selectMaidIndex] < 0)
  6009. poseIndex[selectMaidIndex] = (int) groupList[poseGroupIndex] - 1;
  6010. isPoseInit = true;
  6011. poseCombo.selectedItemIndex = poseGroupIndex <= 0
  6012. ? poseIndex[selectMaidIndex]
  6013. : poseIndex[selectMaidIndex] - (int) groupList[poseGroupIndex - 1];
  6014. if (!isLock[selectMaidIndex] && ((bool) ((Object) maid) && maid.Visible))
  6015. {
  6016. string[] strArray = poseArray[poseIndex[selectMaidIndex]].Split(',');
  6017. isStop[selectMaidIndex] = false;
  6018. poseCount[selectMaidIndex] = 20;
  6019. if (strArray[0].Contains("_momi") || strArray[0].Contains("paizuri_"))
  6020. {
  6021. maid.body0.MuneYureL(0.0f);
  6022. maid.body0.MuneYureR(0.0f);
  6023. }
  6024. else
  6025. {
  6026. maid.body0.MuneYureL(1f);
  6027. maid.body0.MuneYureR(1f);
  6028. }
  6029. if (strArray[0].Contains("MultipleMaidsPose"))
  6030. {
  6031. string path = strArray[0].Split('/')[1];
  6032. byte[] numArray = new byte[0];
  6033. try
  6034. {
  6035. using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
  6036. {
  6037. numArray = new byte[fileStream.Length];
  6038. fileStream.Read(numArray, 0, numArray.Length);
  6039. }
  6040. }
  6041. catch { }
  6042. if (0 < numArray.Length)
  6043. {
  6044. long hashCode = (long) Path.GetFileName(path).GetHashCode();
  6045. maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
  6046. Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
  6047. {
  6048. Maid.AutoTwist.ShoulderL, Maid.AutoTwist.ShoulderR, Maid.AutoTwist.WristL, Maid.AutoTwist.WristR,
  6049. Maid.AutoTwist.ThighL, Maid.AutoTwist.ThighR
  6050. };
  6051. foreach (Maid.AutoTwist f_eType in autoTwistArray)
  6052. maid.SetAutoTwist(f_eType, true);
  6053. }
  6054. }
  6055. else if (strArray[0].StartsWith("p") && int.TryParse(strArray[0].Substring(1), out result))
  6056. loadPose[selectMaidIndex] = strArray[0];
  6057. else if (!strArray[0].StartsWith("dance_"))
  6058. {
  6059. maidArray[selectMaidIndex].CrossFade(strArray[0] + ".anm", false, true, false, 0.0f, 1f);
  6060. }
  6061. else
  6062. {
  6063. if (!(bool) ((Object) maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray[0] + ".anm")))
  6064. maid.body0.LoadAnime(strArray[0] + ".anm", GameUty.FileSystem, strArray[0] + ".anm", false, false);
  6065. maid.body0.m_Bones.GetComponent<Animation>().Play(strArray[0] + ".anm");
  6066. }
  6067. if (strArray.Length > 1)
  6068. {
  6069. maid.body0.m_Bones.GetComponent<Animation>()[strArray[0] + ".anm"].time = float.Parse(strArray[1]);
  6070. isDanceStop = true;
  6071. if (strArray.Length > 2)
  6072. {
  6073. transform = CMT.SearchObjName(maidArray[selectMaidIndex].body0.m_Bones.transform, "Bip01", true);
  6074. isPoseIti[selectMaidIndex] = true;
  6075. poseIti[selectMaidIndex] = maidArray[selectMaidIndex].transform.position;
  6076. maidArray[selectMaidIndex].transform.position = new Vector3(100f, 100f, 100f);
  6077. }
  6078. }
  6079. }
  6080. }
  6081. if (GUI.Button(new Rect((float) this.GetPix(135),
  6082. (float) this.GetPix(125),
  6083. (float) this.GetPix(23),
  6084. (float) this.GetPix(23)),
  6085. ">",
  6086. style3))
  6087. {
  6088. ++poseIndex[selectMaidIndex];
  6089. if (poseIndex[selectMaidIndex] > (int) groupList[groupList.Count - 1])
  6090. {
  6091. if (poseIndex[selectMaidIndex] >= poseArray.Length)
  6092. poseIndex[selectMaidIndex] = (int) groupList[poseGroupIndex - 1];
  6093. }
  6094. else if (poseIndex[selectMaidIndex] >= (int) groupList[poseGroupIndex])
  6095. poseIndex[selectMaidIndex] = poseGroupIndex <= 0 ? 0 : (int) groupList[poseGroupIndex - 1];
  6096. isPoseInit = true;
  6097. poseCombo.selectedItemIndex = poseGroupIndex <= 0
  6098. ? poseIndex[selectMaidIndex]
  6099. : poseIndex[selectMaidIndex] - (int) groupList[poseGroupIndex - 1];
  6100. if (!isLock[selectMaidIndex] && ((bool) ((Object) maid) && maid.Visible))
  6101. {
  6102. string[] strArray = poseArray[poseIndex[selectMaidIndex]].Split(',');
  6103. isStop[selectMaidIndex] = false;
  6104. poseCount[selectMaidIndex] = 20;
  6105. if (strArray[0].Contains("_momi") || strArray[0].Contains("paizuri_"))
  6106. {
  6107. maid.body0.MuneYureL(0.0f);
  6108. maid.body0.MuneYureR(0.0f);
  6109. }
  6110. else
  6111. {
  6112. maid.body0.MuneYureL(1f);
  6113. maid.body0.MuneYureR(1f);
  6114. }
  6115. if (strArray[0].Contains("MultipleMaidsPose"))
  6116. {
  6117. string path = strArray[0].Split('/')[1];
  6118. byte[] numArray = new byte[0];
  6119. try
  6120. {
  6121. using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
  6122. {
  6123. numArray = new byte[fileStream.Length];
  6124. fileStream.Read(numArray, 0, numArray.Length);
  6125. }
  6126. }
  6127. catch { }
  6128. if (0 < numArray.Length)
  6129. {
  6130. long hashCode = (long) Path.GetFileName(path).GetHashCode();
  6131. maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
  6132. Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
  6133. {
  6134. Maid.AutoTwist.ShoulderL, Maid.AutoTwist.ShoulderR, Maid.AutoTwist.WristL, Maid.AutoTwist.WristR,
  6135. Maid.AutoTwist.ThighL, Maid.AutoTwist.ThighR
  6136. };
  6137. foreach (Maid.AutoTwist f_eType in autoTwistArray)
  6138. maid.SetAutoTwist(f_eType, true);
  6139. }
  6140. }
  6141. else if (strArray[0].StartsWith("p") && int.TryParse(strArray[0].Substring(1), out result))
  6142. loadPose[selectMaidIndex] = strArray[0];
  6143. else if (!strArray[0].StartsWith("dance_"))
  6144. {
  6145. maidArray[selectMaidIndex].CrossFade(strArray[0] + ".anm", false, true, false, 0.0f, 1f);
  6146. }
  6147. else
  6148. {
  6149. if (!(bool) ((Object) maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray[0] + ".anm")))
  6150. maid.body0.LoadAnime(strArray[0] + ".anm", GameUty.FileSystem, strArray[0] + ".anm", false, false);
  6151. maid.body0.m_Bones.GetComponent<Animation>().Play(strArray[0] + ".anm");
  6152. }
  6153. if (strArray.Length > 1)
  6154. {
  6155. maid.body0.m_Bones.GetComponent<Animation>()[strArray[0] + ".anm"].time = float.Parse(strArray[1]);
  6156. isDanceStop = true;
  6157. if (strArray.Length > 2)
  6158. {
  6159. transform = CMT.SearchObjName(maidArray[selectMaidIndex].body0.m_Bones.transform, "Bip01", true);
  6160. isPoseIti[selectMaidIndex] = true;
  6161. poseIti[selectMaidIndex] = maidArray[selectMaidIndex].transform.position;
  6162. maidArray[selectMaidIndex].transform.position = new Vector3(100f, 100f, 100f);
  6163. }
  6164. }
  6165. }
  6166. }
  6167. GUI.enabled = true;
  6168. int index1 = -1;
  6169. for (int index2 = 0; index2 < groupList.Count; ++index2)
  6170. {
  6171. if (poseIndex[selectMaidIndex] < (int) groupList[index2])
  6172. {
  6173. index1 = index2;
  6174. break;
  6175. }
  6176. }
  6177. int length1 = (int) groupList[0];
  6178. int num1 = 0;
  6179. if (index1 > 0)
  6180. {
  6181. length1 = (int) groupList[index1] - (int) groupList[index1 - 1];
  6182. num1 = (int) groupList[index1 - 1];
  6183. }
  6184. if (index1 < 0)
  6185. {
  6186. index1 = groupList.Count;
  6187. length1 = poseArray.Length - (int) groupList[index1 - 1];
  6188. num1 = (int) groupList[index1 - 1];
  6189. }
  6190. if (poseGroupCombo.selectedItemIndex != index1)
  6191. {
  6192. poseComboList = new GUIContent[length1];
  6193. int index2 = 0;
  6194. for (int index3 = num1; index3 < num1 + length1; ++index3)
  6195. {
  6196. bool flag = false;
  6197. foreach (IniKey key in this.Preferences["pose"].Keys)
  6198. {
  6199. if (poseArray[index3] == key.Key)
  6200. {
  6201. IniKey iniKey = this.Preferences["pose"][key.Key];
  6202. if (iniKey.Value != null && iniKey.Value.ToString() != "" && iniKey.Value.ToString() != "del")
  6203. {
  6204. poseComboList[index2] =
  6205. new GUIContent((index2 + 1).ToString() + ":" + iniKey.Value.Split('_')[0]
  6206. + "                    " + key.Key);
  6207. flag = true;
  6208. }
  6209. }
  6210. }
  6211. if (!flag)
  6212. poseComboList[index2] = new GUIContent((index2 + 1).ToString() + ":" + poseArray[index3]);
  6213. ++index2;
  6214. }
  6215. poseGroupCombo.selectedItemIndex = index1;
  6216. poseGroupIndex = index1;
  6217. poseCombo.selectedItemIndex = 0;
  6218. }
  6219. GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton;
  6220. isLook[selectMaidIndex] =
  6221. GUI.Toggle(new Rect((float) this.GetPix(8),
  6222. (float) this.GetPix(155),
  6223. (float) this.GetPix(65),
  6224. (float) this.GetPix(16)),
  6225. isLook[selectMaidIndex],
  6226. "顔の向き",
  6227. style4);
  6228. isPoseEdit = GUI.Toggle(new Rect((float) this.GetPix(86),
  6229. (float) this.GetPix(155),
  6230. (float) this.GetPix(90),
  6231. (float) this.GetPix(16)),
  6232. isPoseEdit,
  6233. "ポーズ登録",
  6234. style4);
  6235. if (isPoseEdit)
  6236. {
  6237. inName3 = GUI.TextField(new Rect((float) this.GetPix(5),
  6238. (float) this.GetPix(180),
  6239. (float) this.GetPix(100),
  6240. (float) this.GetPix(20)),
  6241. inName3);
  6242. if (GUI.Button(new Rect((float) this.GetPix(107),
  6243. (float) this.GetPix(180),
  6244. (float) this.GetPix(35),
  6245. (float) this.GetPix(20)),
  6246. "追加",
  6247. style3))
  6248. {
  6249. isSavePose = true;
  6250. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  6251. existPose = true;
  6252. GUI.FocusControl("");
  6253. }
  6254. if (poseGroupComboList[poseGroupCombo.selectedItemIndex].text != "99:登録ポーズ")
  6255. GUI.enabled = false;
  6256. if (GUI.Button(new Rect((float) this.GetPix(144),
  6257. (float) this.GetPix(180),
  6258. (float) this.GetPix(24),
  6259. (float) this.GetPix(20)),
  6260. "削",
  6261. style3))
  6262. {
  6263. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  6264. List<string> stringList1 = new List<string>();
  6265. stringList1.AddRange((IEnumerable<string>) poseArray);
  6266. if (poseComboList[poseCombo.selectedItemIndex].text.Contains("MultipleMaidsPose"))
  6267. {
  6268. string pose = poseArray[poseIndex[selectMaidIndex]];
  6269. stringList1.Remove(pose);
  6270. string path = poseArray[poseIndex[selectMaidIndex]].Split('/')[1].Replace("                    ", "");
  6271. if (File.Exists(path))
  6272. File.Delete(path);
  6273. }
  6274. else
  6275. {
  6276. string[] strArray = poseComboList[poseCombo.selectedItemIndex].text.Split('p');
  6277. string str = strArray[strArray.Length - 1];
  6278. IniKey iniKey = this.Preferences["pose"]["p" + str];
  6279. if (iniKey.Value != "" || iniKey.Value != "del")
  6280. {
  6281. this.Preferences["pose"]["p" + str].Value = "del";
  6282. this.SaveConfig();
  6283. }
  6284. stringList1.Remove("p" + str);
  6285. }
  6286. GUI.FocusControl("");
  6287. poseArray = stringList1.ToArray();
  6288. int index2 = -1;
  6289. for (int index3 = 0; index3 < groupList.Count; ++index3)
  6290. {
  6291. if (poseIndex[selectMaidIndex] < (int) groupList[index3])
  6292. {
  6293. index2 = index3;
  6294. break;
  6295. }
  6296. }
  6297. int length2 = (int) groupList[0];
  6298. int num2 = 0;
  6299. if (index2 > 0)
  6300. {
  6301. length2 = (int) groupList[index2] - (int) groupList[index2 - 1];
  6302. num2 = (int) groupList[index2 - 1];
  6303. }
  6304. if (index2 < 0)
  6305. {
  6306. index2 = groupList.Count;
  6307. length2 = poseArray.Length - (int) groupList[index2 - 1];
  6308. num2 = (int) groupList[index2 - 1];
  6309. }
  6310. poseComboList = new GUIContent[length2];
  6311. int index4 = 0;
  6312. bool existEdit = false;
  6313. for (int index3 = num2; index3 < num2 + length2; ++index3)
  6314. {
  6315. bool flag = false;
  6316. foreach (IniKey key in this.Preferences["pose"].Keys)
  6317. {
  6318. if (poseArray[index3] == key.Key)
  6319. {
  6320. IniKey iniKey = this.Preferences["pose"][key.Key];
  6321. if (iniKey.Value != null && iniKey.Value.ToString() != "" && iniKey.Value.ToString() != "del")
  6322. {
  6323. poseComboList[index4] =
  6324. new GUIContent((index4 + 1).ToString() + ":" + iniKey.Value.Split('_')[0]
  6325. + "                    " + key.Key);
  6326. flag = true;
  6327. existEdit = true;
  6328. }
  6329. }
  6330. }
  6331. if (!flag)
  6332. poseComboList[index4] = new GUIContent((index4 + 1).ToString() + ":" + poseArray[index3]);
  6333. ++index4;
  6334. }
  6335. ((Action<string, List<string>>) ((path, result_list) =>
  6336. {
  6337. string[] files = Directory.GetFiles(path);
  6338. countS = 0;
  6339. for (int index = 0; index < files.Length; ++index)
  6340. {
  6341. if (Path.GetExtension(files[index]) == ".anm")
  6342. {
  6343. existEdit = true;
  6344. break;
  6345. }
  6346. }
  6347. }))(Path.GetFullPath(".\\") + "Mod\\MultipleMaidsPose", new List<string>());
  6348. if (!existEdit)
  6349. {
  6350. poseIniStr = "";
  6351. List<string> stringList2 = new List<string>(50 + poseGroupArray2.Length);
  6352. stringList2.AddRange((IEnumerable<string>) poseGroupArray2);
  6353. stringList2.AddRange((IEnumerable<string>) poseGroupArrayVP);
  6354. stringList2.AddRange((IEnumerable<string>) poseGroupArrayFB);
  6355. stringList2.AddRange((IEnumerable<string>) poseGroupArray3);
  6356. stringList2.Add(poseArray5[0]);
  6357. stringList2.Add(poseArray6[0]);
  6358. stringList2.Add(strList2[0]);
  6359. stringList2.Add(strListE2[0]);
  6360. existPose = false;
  6361. poseGroupArray = stringList2.ToArray();
  6362. groupList = new ArrayList();
  6363. for (int index3 = 0; index3 < poseArray.Length; ++index3)
  6364. {
  6365. for (int index5 = 0; index5 < poseGroupArray.Length; ++index5)
  6366. {
  6367. if (poseGroupArray[index5] == poseArray[index3])
  6368. {
  6369. groupList.Add((object) index3);
  6370. if (poseGroupArray[index5] == strList2[0])
  6371. sPoseCount = index3;
  6372. }
  6373. }
  6374. }
  6375. poseIndex[selectMaidIndex] = 0;
  6376. poseGroupComboList = new GUIContent[poseGroupArray.Length + 1];
  6377. poseGroupComboList[0] = new GUIContent("1:通常");
  6378. for (int index3 = 0; index3 < poseGroupArray.Length; ++index3)
  6379. {
  6380. if (poseGroupArray[index3] == "maid_dressroom01")
  6381. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":立ち");
  6382. if (poseGroupArray[index3] == "tennis_kamae_f")
  6383. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":中腰");
  6384. if (poseGroupArray[index3] == "senakanagasi_f")
  6385. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":膝をつく");
  6386. if (poseGroupArray[index3] == "work_hansei")
  6387. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":座り");
  6388. if (poseGroupArray[index3] == "inu_taiki_f")
  6389. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":四つん這い");
  6390. if (poseGroupArray[index3] == "syagami_pose_f")
  6391. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":床座り");
  6392. if (poseGroupArray[index3] == "densyasuwari_taiki_f")
  6393. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":椅子座り");
  6394. if (poseGroupArray[index3] == "work_kaiwa")
  6395. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":ソファー座り");
  6396. if (poseGroupArray[index3] == "dance_cm3d2_001_f1,14.14")
  6397. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":ドキドキ☆Fallin' Love");
  6398. if (poseGroupArray[index3] == "dance_cm3d_001_f1,39.25")
  6399. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":entrance to you");
  6400. if (poseGroupArray[index3] == "dance_cm3d_002_end_f1,50.71")
  6401. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":scarlet leap");
  6402. if (poseGroupArray[index3] == "dance_cm3d2_002_smt_f,7.76,")
  6403. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":stellar my tears");
  6404. if (poseGroupArray[index3] == "dance_cm3d_003_sp2_f1,90.15")
  6405. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":rhythmix to you");
  6406. if (poseGroupArray[index3] == "dance_cm3d2_003_hs_f1,0.01,")
  6407. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":happy!happy!スキャンダル!!");
  6408. if (poseGroupArray[index3] == "dance_cm3d_004_kano_f1,124.93")
  6409. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":Can Know Two Close");
  6410. if (poseGroupArray[index3] == "dance_cm3d2_004_sse_f1,0.01")
  6411. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":sweet sweet everyday");
  6412. if (poseGroupArray[index3] == "turusi_sex_in_taiki_f")
  6413. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":拘束");
  6414. if (poseGroupArray[index3] == "rosyutu_pose01_f")
  6415. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":エロ");
  6416. if (poseGroupArray[index3] == "rosyutu_aruki_f_once_,1.37")
  6417. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":歩き");
  6418. if (poseGroupArray[index3] == "stand_desk1")
  6419. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":その他");
  6420. if (poseGroupArray[index3] == poseArray5[0])
  6421. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":ダンスMC");
  6422. if (poseGroupArray[index3] == poseArray6[0])
  6423. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":ダンス");
  6424. if (index3 == poseGroupArray.Length - 2)
  6425. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":通常2");
  6426. if (index3 == poseGroupArray.Length - 1)
  6427. poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":エロ2");
  6428. }
  6429. }
  6430. else
  6431. {
  6432. poseGroupCombo.selectedItemIndex = index2;
  6433. poseGroupIndex = index2;
  6434. poseCombo.selectedItemIndex = 0;
  6435. poseIndex[selectMaidIndex] = (int) groupList[groupList.Count - 1];
  6436. if (poseArray.Length <= poseIndex[selectMaidIndex])
  6437. --poseIndex[selectMaidIndex];
  6438. }
  6439. }
  6440. GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton;
  6441. }
  6442. else
  6443. {
  6444. if (!isLook[selectMaidIndex])
  6445. GUI.enabled = false;
  6446. GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(175), (float) this.GetPix(100), (float) this.GetPix(25)),
  6447. "顔の向きX",
  6448. style2);
  6449. lookX[selectMaidIndex] =
  6450. GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  6451. (float) this.GetPix(191),
  6452. (float) this.GetPix(70),
  6453. (float) this.GetPix(20)),
  6454. lookX[selectMaidIndex],
  6455. -0.6f,
  6456. 0.6f);
  6457. GUI.Label(new Rect((float) this.GetPix(88),
  6458. (float) this.GetPix(175),
  6459. (float) this.GetPix(100),
  6460. (float) this.GetPix(25)),
  6461. "顔の向きY",
  6462. style2);
  6463. lookY[selectMaidIndex] =
  6464. GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  6465. (float) this.GetPix(191),
  6466. (float) this.GetPix(70),
  6467. (float) this.GetPix(20)),
  6468. lookY[selectMaidIndex],
  6469. 0.5f,
  6470. -0.55f);
  6471. GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton;
  6472. }
  6473. int index6 = poseGroupIndex <= 0
  6474. ? poseIndex[selectMaidIndex]
  6475. : poseIndex[selectMaidIndex] - (int) groupList[poseGroupIndex - 1];
  6476. string[] strArray1;
  6477. if (GUI.Button(new Rect((float) this.GetPix(5), (float) this.GetPix(215), (float) this.GetPix(23), (float) this.GetPix(23)),
  6478. "<",
  6479. style3))
  6480. {
  6481. --itemIndex[selectMaidIndex];
  6482. if (itemIndex[selectMaidIndex] <= -1)
  6483. itemIndex[selectMaidIndex] = itemArray.Length - 2;
  6484. strArray1 = new string[2];
  6485. string[] strArray2 = itemArray[itemIndex[selectMaidIndex]].Split(',');
  6486. if (itemIndex[selectMaidIndex] > 13)
  6487. strArray2 = itemArray[itemIndex[selectMaidIndex] + 1].Split(',');
  6488. maid.DelProp(MPN.handitem, true);
  6489. maid.DelProp(MPN.accvag, true);
  6490. maid.DelProp(MPN.accanl, true);
  6491. bool flag = false;
  6492. if (itemIndex[selectMaidIndex] == 12 || itemIndex[selectMaidIndex] == 13 || itemIndex[selectMaidIndex] == 23)
  6493. flag = true;
  6494. if (!flag)
  6495. {
  6496. maid.DelProp(MPN.kousoku_upper, true);
  6497. maid.DelProp(MPN.kousoku_lower, true);
  6498. }
  6499. if (strArray2[0] != "")
  6500. maid.SetProp(strArray2[0], strArray2[1], 0, true, false);
  6501. if (itemIndex[selectMaidIndex] == 12)
  6502. {
  6503. string[] strArray3 = itemArray[itemIndex[selectMaidIndex] - 1].Split(',');
  6504. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  6505. }
  6506. if (itemIndex[selectMaidIndex] == 13)
  6507. {
  6508. string[] strArray3 = itemArray[itemIndex[selectMaidIndex] + 1].Split(',');
  6509. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  6510. }
  6511. if (itemIndex[selectMaidIndex] == 23)
  6512. {
  6513. string[] strArray3 = itemArray[itemIndex[selectMaidIndex]].Split(',');
  6514. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  6515. cafeFlg[selectMaidIndex] = true;
  6516. }
  6517. maid.AllProcPropSeqStart();
  6518. itemCombo.selectedItemIndex = itemIndex[selectMaidIndex];
  6519. }
  6520. if (GUI.Button(new Rect((float) this.GetPix(135),
  6521. (float) this.GetPix(215),
  6522. (float) this.GetPix(23),
  6523. (float) this.GetPix(23)),
  6524. ">",
  6525. style3))
  6526. {
  6527. ++itemIndex[selectMaidIndex];
  6528. if (itemIndex[selectMaidIndex] >= itemArray.Length - 1)
  6529. itemIndex[selectMaidIndex] = 0;
  6530. strArray1 = new string[2];
  6531. string[] strArray2 = itemArray[itemIndex[selectMaidIndex]].Split(',');
  6532. if (itemIndex[selectMaidIndex] > 13)
  6533. strArray2 = itemArray[itemIndex[selectMaidIndex] + 1].Split(',');
  6534. maid.DelProp(MPN.handitem, true);
  6535. maid.DelProp(MPN.accvag, true);
  6536. maid.DelProp(MPN.accanl, true);
  6537. bool flag = false;
  6538. if (itemIndex[selectMaidIndex] == 12 || itemIndex[selectMaidIndex] == 13)
  6539. flag = true;
  6540. if (!flag)
  6541. {
  6542. maid.DelProp(MPN.kousoku_upper, true);
  6543. maid.DelProp(MPN.kousoku_lower, true);
  6544. }
  6545. if (strArray2[0] != "")
  6546. maid.SetProp(strArray2[0], strArray2[1], 0, true, false);
  6547. if (itemIndex[selectMaidIndex] == 12)
  6548. {
  6549. string[] strArray3 = itemArray[itemIndex[selectMaidIndex] - 1].Split(',');
  6550. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  6551. }
  6552. if (itemIndex[selectMaidIndex] == 13)
  6553. {
  6554. string[] strArray3 = itemArray[itemIndex[selectMaidIndex] + 1].Split(',');
  6555. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  6556. }
  6557. if (itemIndex[selectMaidIndex] == 23)
  6558. {
  6559. string[] strArray3 = itemArray[itemIndex[selectMaidIndex]].Split(',');
  6560. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  6561. cafeFlg[selectMaidIndex] = true;
  6562. }
  6563. maid.AllProcPropSeqStart();
  6564. itemCombo.selectedItemIndex = itemIndex[selectMaidIndex];
  6565. }
  6566. if (itemCombo.isClickedComboButton)
  6567. GUI.enabled = false;
  6568. isWear = GUI.Toggle(new Rect((float) this.GetPix(5),
  6569. (float) this.GetPix(248),
  6570. (float) this.GetPix(70),
  6571. (float) this.GetPix(20)),
  6572. isWear,
  6573. "トップス",
  6574. style4);
  6575. isSkirt = GUI.Toggle(new Rect((float) this.GetPix(90),
  6576. (float) this.GetPix(248),
  6577. (float) this.GetPix(70),
  6578. (float) this.GetPix(20)),
  6579. isSkirt,
  6580. "ボトムス",
  6581. style4);
  6582. isBra = GUI.Toggle(new Rect((float) this.GetPix(5),
  6583. (float) this.GetPix(273),
  6584. (float) this.GetPix(80),
  6585. (float) this.GetPix(20)),
  6586. isBra,
  6587. "ブラジャー",
  6588. style4);
  6589. isPanz = GUI.Toggle(new Rect((float) this.GetPix(90),
  6590. (float) this.GetPix(273),
  6591. (float) this.GetPix(60),
  6592. (float) this.GetPix(20)),
  6593. isPanz,
  6594. "パンツ",
  6595. style4);
  6596. isHeadset = GUI.Toggle(new Rect((float) this.GetPix(5),
  6597. (float) this.GetPix(298),
  6598. (float) this.GetPix(70),
  6599. (float) this.GetPix(20)),
  6600. isHeadset,
  6601. "ヘッド",
  6602. style4);
  6603. isMegane = GUI.Toggle(new Rect((float) this.GetPix(95),
  6604. (float) this.GetPix(298),
  6605. (float) this.GetPix(70),
  6606. (float) this.GetPix(20)),
  6607. isMegane,
  6608. "メガネ",
  6609. style4);
  6610. isAccUde = GUI.Toggle(new Rect((float) this.GetPix(5),
  6611. (float) this.GetPix(323),
  6612. (float) this.GetPix(40),
  6613. (float) this.GetPix(20)),
  6614. isAccUde,
  6615. "腕",
  6616. style4);
  6617. isGlove = GUI.Toggle(new Rect((float) this.GetPix(50),
  6618. (float) this.GetPix(323),
  6619. (float) this.GetPix(40),
  6620. (float) this.GetPix(20)),
  6621. isGlove,
  6622. "手袋",
  6623. style4);
  6624. isAccSenaka = GUI.Toggle(new Rect((float) this.GetPix(95),
  6625. (float) this.GetPix(323),
  6626. (float) this.GetPix(40),
  6627. (float) this.GetPix(20)),
  6628. isAccSenaka,
  6629. "背中",
  6630. style4);
  6631. isStkg = GUI.Toggle(new Rect((float) this.GetPix(5),
  6632. (float) this.GetPix(348),
  6633. (float) this.GetPix(40),
  6634. (float) this.GetPix(20)),
  6635. isStkg,
  6636. "靴下",
  6637. style4);
  6638. isShoes = GUI.Toggle(new Rect((float) this.GetPix(50),
  6639. (float) this.GetPix(348),
  6640. (float) this.GetPix(40),
  6641. (float) this.GetPix(20)),
  6642. isShoes,
  6643. "靴",
  6644. style4);
  6645. isMaid = GUI.Toggle(new Rect((float) this.GetPix(95),
  6646. (float) this.GetPix(348),
  6647. (float) this.GetPix(70),
  6648. (float) this.GetPix(20)),
  6649. isMaid,
  6650. "メイド",
  6651. style4);
  6652. mekure1[selectMaidIndex] =
  6653. GUI.Toggle(new Rect((float) this.GetPix(5),
  6654. (float) this.GetPix(373),
  6655. (float) this.GetPix(62),
  6656. (float) this.GetPix(20)),
  6657. mekure1[selectMaidIndex],
  6658. "めくれ前",
  6659. style4);
  6660. mekure2[selectMaidIndex] =
  6661. GUI.Toggle(new Rect((float) this.GetPix(67),
  6662. (float) this.GetPix(373),
  6663. (float) this.GetPix(40),
  6664. (float) this.GetPix(20)),
  6665. mekure2[selectMaidIndex],
  6666. "後ろ",
  6667. style4);
  6668. zurasi[selectMaidIndex] =
  6669. GUI.Toggle(new Rect((float) this.GetPix(105),
  6670. (float) this.GetPix(373),
  6671. (float) this.GetPix(50),
  6672. (float) this.GetPix(20)),
  6673. zurasi[selectMaidIndex],
  6674. "ずらし",
  6675. style4);
  6676. voice1[selectMaidIndex] =
  6677. GUI.Toggle(new Rect((float) this.GetPix(5),
  6678. (float) this.GetPix(530),
  6679. (float) this.GetPix(70),
  6680. (float) this.GetPix(20)),
  6681. zFlg[selectMaidIndex],
  6682. "ボイス",
  6683. style4);
  6684. voice2[selectMaidIndex] =
  6685. GUI.Toggle(new Rect((float) this.GetPix(70),
  6686. (float) this.GetPix(530),
  6687. (float) this.GetPix(70),
  6688. (float) this.GetPix(20)),
  6689. xFlg[selectMaidIndex],
  6690. "Hボイス",
  6691. style4);
  6692. GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton && !itemCombo.isClickedComboButton;
  6693. GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(402), (float) this.GetPix(160), 2f), (Texture) line1);
  6694. GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(402), (float) this.GetPix(160), 1f), (Texture) line2);
  6695. isIK[selectMaidIndex] =
  6696. GUI.Toggle(new Rect((float) this.GetPix(5),
  6697. (float) this.GetPix(411),
  6698. (float) this.GetPix(30),
  6699. (float) this.GetPix(20)),
  6700. isIK[selectMaidIndex],
  6701. "IK",
  6702. style4);
  6703. if (!isLock[selectMaidIndex])
  6704. GUI.enabled = false;
  6705. isLock[selectMaidIndex] =
  6706. GUI.Toggle(new Rect((float) this.GetPix(45),
  6707. (float) this.GetPix(411),
  6708. (float) this.GetPix(40),
  6709. (float) this.GetPix(20)),
  6710. isLock[selectMaidIndex],
  6711. "解除",
  6712. style4);
  6713. GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton && !itemCombo.isClickedComboButton;
  6714. if (!isIK[selectMaidIndex])
  6715. GUI.enabled = false;
  6716. isBone[selectMaidIndex] =
  6717. GUI.Toggle(new Rect((float) this.GetPix(100),
  6718. (float) this.GetPix(411),
  6719. (float) this.GetPix(60),
  6720. (float) this.GetPix(20)),
  6721. isBone[selectMaidIndex],
  6722. "ボーン",
  6723. style4);
  6724. GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton;
  6725. if (isBone[selectMaidIndex] != isBoneN[selectMaidIndex])
  6726. {
  6727. isBoneN[selectMaidIndex] = isBone[selectMaidIndex];
  6728. isChange[selectMaidIndex] = true;
  6729. }
  6730. if (!isLock[selectMaidIndex] && unLockFlg != isLock[selectMaidIndex])
  6731. {
  6732. string[] strArray2 = poseArray[poseIndex[selectMaidIndex]].Split(',');
  6733. isStop[selectMaidIndex] = false;
  6734. poseCount[selectMaidIndex] = 20;
  6735. if (strArray2[0].Contains("_momi") || strArray2[0].Contains("paizuri_"))
  6736. {
  6737. maid.body0.MuneYureL(0.0f);
  6738. maid.body0.MuneYureR(0.0f);
  6739. }
  6740. else
  6741. {
  6742. maid.body0.MuneYureL(1f);
  6743. maid.body0.MuneYureR(1f);
  6744. }
  6745. if (strArray2[0].Contains("MultipleMaidsPose"))
  6746. {
  6747. string path = strArray2[0].Split('/')[1];
  6748. byte[] numArray = new byte[0];
  6749. try
  6750. {
  6751. using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
  6752. {
  6753. numArray = new byte[fileStream.Length];
  6754. fileStream.Read(numArray, 0, numArray.Length);
  6755. }
  6756. }
  6757. catch { }
  6758. if (0 < numArray.Length)
  6759. {
  6760. long hashCode = (long) Path.GetFileName(path).GetHashCode();
  6761. maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
  6762. Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
  6763. {
  6764. Maid.AutoTwist.ShoulderL, Maid.AutoTwist.ShoulderR, Maid.AutoTwist.WristL, Maid.AutoTwist.WristR,
  6765. Maid.AutoTwist.ThighL, Maid.AutoTwist.ThighR
  6766. };
  6767. foreach (Maid.AutoTwist f_eType in autoTwistArray)
  6768. maid.SetAutoTwist(f_eType, true);
  6769. }
  6770. }
  6771. else if (strArray2[0].StartsWith("p") && int.TryParse(strArray2[0].Substring(1), out result))
  6772. loadPose[selectMaidIndex] = strArray2[0];
  6773. else if (!strArray2[0].StartsWith("dance_"))
  6774. {
  6775. maidArray[selectMaidIndex].CrossFade(strArray2[0] + ".anm", false, true, false, 0.0f, 1f);
  6776. }
  6777. else
  6778. {
  6779. if (!(bool) ((Object) maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm")))
  6780. maid.body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
  6781. maid.body0.m_Bones.GetComponent<Animation>().Play(strArray2[0] + ".anm");
  6782. }
  6783. if (strArray2.Length > 1)
  6784. {
  6785. maid.body0.m_Bones.GetComponent<Animation>()[strArray2[0] + ".anm"].time = float.Parse(strArray2[1]);
  6786. isDanceStop = true;
  6787. if (strArray2.Length > 2)
  6788. {
  6789. transform = CMT.SearchObjName(maidArray[selectMaidIndex].body0.m_Bones.transform, "Bip01", true);
  6790. isPoseIti[selectMaidIndex] = true;
  6791. poseIti[selectMaidIndex] = maidArray[selectMaidIndex].transform.position;
  6792. maidArray[selectMaidIndex].transform.position = new Vector3(100f, 100f, 100f);
  6793. }
  6794. }
  6795. mHandL[selectMaidIndex].initFlg = false;
  6796. mHandR[selectMaidIndex].initFlg = false;
  6797. mFootL[selectMaidIndex].initFlg = false;
  6798. mFootR[selectMaidIndex].initFlg = false;
  6799. pHandL[selectMaidIndex] = 0;
  6800. pHandR[selectMaidIndex] = 0;
  6801. hanten[selectMaidIndex] = false;
  6802. hantenn[selectMaidIndex] = false;
  6803. muneIKL[selectMaidIndex] = false;
  6804. muneIKR[selectMaidIndex] = false;
  6805. if (!GameMain.Instance.VRMode)
  6806. {
  6807. maidArray[selectMaidIndex].body0.quaDefEyeL.eulerAngles = eyeL[(int) selectList[selectMaidIndex]];
  6808. maidArray[selectMaidIndex].body0.quaDefEyeR.eulerAngles = eyeR[(int) selectList[selectMaidIndex]];
  6809. }
  6810. }
  6811. unLockFlg = isLock[selectMaidIndex];
  6812. GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton && !itemCombo.isClickedComboButton;
  6813. if (!isIK[selectMaidIndex])
  6814. GUI.enabled = false;
  6815. hanten[selectMaidIndex] =
  6816. GUI.Toggle(new Rect((float) this.GetPix(5),
  6817. (float) this.GetPix(479),
  6818. (float) this.GetPix(70),
  6819. (float) this.GetPix(20)),
  6820. hanten[selectMaidIndex],
  6821. "左右反転",
  6822. style4);
  6823. bool flag1 = GUI.Toggle(new Rect((float) this.GetPix(80),
  6824. (float) this.GetPix(479),
  6825. (float) this.GetPix(100),
  6826. (float) this.GetPix(20)),
  6827. kotei[selectMaidIndex],
  6828. "スカート固定",
  6829. style4);
  6830. if (kotei[selectMaidIndex] != flag1)
  6831. {
  6832. kotei[selectMaidIndex] = flag1;
  6833. if (flag1)
  6834. {
  6835. SkirtListArray[selectMaidIndex] = new DynamicSkirtBone[100];
  6836. for (int index2 = 0; index2 < maid.body0.goSlot.Count; ++index2)
  6837. {
  6838. DynamicSkirtBone fieldValue =
  6839. GetFieldValue<BoneHair3, DynamicSkirtBone>(maid.body0.goSlot[index2].bonehair3, "m_SkirtBone");
  6840. SkirtListArray[selectMaidIndex][index2] = fieldValue;
  6841. SetFieldValue8<BoneHair3, DynamicSkirtBone>(maid.body0.goSlot[index2].bonehair3,
  6842. "m_SkirtBone",
  6843. (DynamicSkirtBone) null);
  6844. }
  6845. }
  6846. else
  6847. {
  6848. for (int index2 = 0; index2 < maid.body0.goSlot.Count; ++index2)
  6849. SetFieldValue8<BoneHair3, DynamicSkirtBone>(maid.body0.goSlot[index2].bonehair3,
  6850. "m_SkirtBone",
  6851. SkirtListArray[selectMaidIndex][index2]);
  6852. }
  6853. }
  6854. GUI.Label(new Rect((float) this.GetPix(29), (float) this.GetPix(433), (float) this.GetPix(100), (float) this.GetPix(25)),
  6855. "右手",
  6856. style1);
  6857. GUI.Label(new Rect((float) this.GetPix(109), (float) this.GetPix(433), (float) this.GetPix(100), (float) this.GetPix(25)),
  6858. "左手",
  6859. style1);
  6860. string text = "未選択";
  6861. if (copyIndex > 0)
  6862. text = copyIndex.ToString() + ":" + maidArray[copyIndex - 1].status.firstName;
  6863. if (maidCnt <= 1)
  6864. GUI.enabled = false;
  6865. GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(505), (float) this.GetPix(100), (float) this.GetPix(25)),
  6866. "コピー",
  6867. style1);
  6868. GUI.Label(new Rect((float) this.GetPix(70), (float) this.GetPix(505), (float) this.GetPix(100), (float) this.GetPix(25)),
  6869. text,
  6870. style1);
  6871. GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton && !itemCombo.isClickedComboButton
  6872. && isIK[selectMaidIndex];
  6873. style1.fontSize = this.GetPix(13);
  6874. style1.alignment = TextAnchor.UpperCenter;
  6875. GUI.Label(new Rect((float) this.GetPix(-10), (float) this.GetPix(449), (float) this.GetPix(100), (float) this.GetPix(25)),
  6876. pHandR[selectMaidIndex].ToString(),
  6877. style1);
  6878. GUI.Label(new Rect((float) this.GetPix(70), (float) this.GetPix(449), (float) this.GetPix(100), (float) this.GetPix(25)),
  6879. pHandL[selectMaidIndex].ToString(),
  6880. style1);
  6881. style1.fontSize = this.GetPix(11);
  6882. style1.alignment = TextAnchor.UpperLeft;
  6883. if (GUI.Button(new Rect((float) this.GetPix(5), (float) this.GetPix(448), (float) this.GetPix(23), (float) this.GetPix(23)),
  6884. "<",
  6885. style3))
  6886. {
  6887. --pHandR[selectMaidIndex];
  6888. if (pHandR[selectMaidIndex] < 1)
  6889. pHandR[selectMaidIndex] = fingerRArray.GetLength(0);
  6890. for (int index2 = 0; index2 < 20; ++index2)
  6891. {
  6892. string[] strArray2 = fingerRArray[pHandR[selectMaidIndex] - 1, index2].Split(',');
  6893. Finger[selectMaidIndex, index2 + 20].localEulerAngles =
  6894. new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  6895. }
  6896. isStop[selectMaidIndex] = true;
  6897. isLock[selectMaidIndex] = true;
  6898. for (int index2 = 0; index2 < 10; ++index2)
  6899. {
  6900. if ((index2 == 0 || index2 == 5) && (bool) ((Object) mFinger[selectMaidIndex, index2 * 3]))
  6901. mFinger[selectMaidIndex, index2 * 3].reset = true;
  6902. }
  6903. }
  6904. if (GUI.Button(new Rect((float) this.GetPix(55),
  6905. (float) this.GetPix(448),
  6906. (float) this.GetPix(23),
  6907. (float) this.GetPix(23)),
  6908. ">",
  6909. style3))
  6910. {
  6911. ++pHandR[selectMaidIndex];
  6912. if (pHandR[selectMaidIndex] > fingerRArray.GetLength(0))
  6913. pHandR[selectMaidIndex] = 1;
  6914. for (int index2 = 0; index2 < 20; ++index2)
  6915. {
  6916. string[] strArray2 = fingerRArray[pHandR[selectMaidIndex] - 1, index2].Split(',');
  6917. Finger[selectMaidIndex, index2 + 20].localEulerAngles =
  6918. new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  6919. }
  6920. isStop[selectMaidIndex] = true;
  6921. isLock[selectMaidIndex] = true;
  6922. for (int index2 = 0; index2 < 10; ++index2)
  6923. {
  6924. if ((index2 == 0 || index2 == 5) && (bool) ((Object) mFinger[selectMaidIndex, index2 * 3]))
  6925. mFinger[selectMaidIndex, index2 * 3].reset = true;
  6926. }
  6927. }
  6928. if (GUI.Button(new Rect((float) this.GetPix(85),
  6929. (float) this.GetPix(448),
  6930. (float) this.GetPix(23),
  6931. (float) this.GetPix(23)),
  6932. "<",
  6933. style3))
  6934. {
  6935. --pHandL[selectMaidIndex];
  6936. if (pHandL[selectMaidIndex] < 1)
  6937. pHandL[selectMaidIndex] = fingerLArray.GetLength(0);
  6938. for (int index2 = 0; index2 < 20; ++index2)
  6939. {
  6940. string[] strArray2 = fingerLArray[pHandL[selectMaidIndex] - 1, index2].Split(',');
  6941. Finger[selectMaidIndex, index2].localEulerAngles =
  6942. new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  6943. }
  6944. isStop[selectMaidIndex] = true;
  6945. isLock[selectMaidIndex] = true;
  6946. }
  6947. if (GUI.Button(new Rect((float) this.GetPix(135),
  6948. (float) this.GetPix(448),
  6949. (float) this.GetPix(23),
  6950. (float) this.GetPix(23)),
  6951. ">",
  6952. style3))
  6953. {
  6954. ++pHandL[selectMaidIndex];
  6955. if (pHandL[selectMaidIndex] > fingerRArray.GetLength(0))
  6956. pHandL[selectMaidIndex] = 1;
  6957. for (int index2 = 0; index2 < 20; ++index2)
  6958. {
  6959. string[] strArray2 = fingerLArray[pHandL[selectMaidIndex] - 1, index2].Split(',');
  6960. Finger[selectMaidIndex, index2].localEulerAngles =
  6961. new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
  6962. }
  6963. isStop[selectMaidIndex] = true;
  6964. isLock[selectMaidIndex] = true;
  6965. }
  6966. if (maidCnt <= 1)
  6967. GUI.enabled = false;
  6968. if (GUI.Button(new Rect((float) this.GetPix(45),
  6969. (float) this.GetPix(504),
  6970. (float) this.GetPix(22),
  6971. (float) this.GetPix(20)),
  6972. ">",
  6973. style3))
  6974. {
  6975. ++copyIndex;
  6976. if (copyIndex - 1 == selectMaidIndex)
  6977. ++copyIndex;
  6978. if (copyIndex > maidCnt)
  6979. copyIndex = 0;
  6980. }
  6981. if (isCopy)
  6982. {
  6983. isCopy = false;
  6984. this.CopyIK2(maidArray[selectMaidIndex], selectMaidIndex, maidArray[copyIndex - 1], copyIndex - 1);
  6985. }
  6986. if (copyIndex == 0)
  6987. GUI.enabled = false;
  6988. if (GUI.Button(new Rect((float) this.GetPix(123),
  6989. (float) this.GetPix(504),
  6990. (float) this.GetPix(35),
  6991. (float) this.GetPix(20)),
  6992. "決定",
  6993. style3))
  6994. {
  6995. this.CopyIK(maidArray[selectMaidIndex], selectMaidIndex, maidArray[copyIndex - 1], copyIndex - 1);
  6996. isCopy = true;
  6997. pHandL[selectMaidIndex] = pHandL[copyIndex - 1];
  6998. pHandR[selectMaidIndex] = pHandR[copyIndex - 1];
  6999. hanten[selectMaidIndex] = hanten[copyIndex - 1];
  7000. hantenn[selectMaidIndex] = hantenn[copyIndex - 1];
  7001. }
  7002. GUI.enabled = true;
  7003. if (poseCombo.isClickedComboButton || poseGroupCombo.isClickedComboButton)
  7004. GUI.enabled = false;
  7005. itemIndex2[selectMaidIndex] =
  7006. itemCombo.List(new Rect((float) this.GetPix(35),
  7007. (float) this.GetPix(215),
  7008. (float) this.GetPix(95),
  7009. (float) this.GetPix(23)),
  7010. itemComboList[itemIndex[selectMaidIndex]].text,
  7011. itemComboList,
  7012. buttonStyle1,
  7013. (GUIStyle) "box",
  7014. listStyle3);
  7015. GUI.enabled = true;
  7016. if (poseGroupCombo.isClickedComboButton || isLock[selectMaidIndex])
  7017. GUI.enabled = false;
  7018. poseCombo.List(new Rect((float) this.GetPix(35),
  7019. (float) this.GetPix(125),
  7020. (float) this.GetPix(95),
  7021. (float) this.GetPix(23)),
  7022. poseComboList[index6].text,
  7023. poseComboList,
  7024. buttonStyle1,
  7025. (GUIStyle) "box",
  7026. listStyle2);
  7027. if (!isLock[selectMaidIndex])
  7028. GUI.enabled = true;
  7029. int index7 = -1;
  7030. for (int index2 = 0; index2 < groupList.Count; ++index2)
  7031. {
  7032. if (poseIndex[selectMaidIndex] < (int) groupList[index2])
  7033. {
  7034. index7 = index2;
  7035. break;
  7036. }
  7037. }
  7038. if (index7 < 0)
  7039. index7 = groupList.Count;
  7040. if (GUI.Button(new Rect((float) this.GetPix(5), (float) this.GetPix(95), (float) this.GetPix(23), (float) this.GetPix(23)),
  7041. "<",
  7042. style3))
  7043. {
  7044. isPoseInit = true;
  7045. if (!isLock[selectMaidIndex])
  7046. {
  7047. for (int index2 = 0; index2 < groupList.Count; ++index2)
  7048. {
  7049. if (index2 == 0 && poseIndex[selectMaidIndex] <= (int) groupList[index2])
  7050. {
  7051. poseIndex[selectMaidIndex] = poseIndex[selectMaidIndex] != 0 ? 0 : (int) groupList[groupList.Count - 1];
  7052. break;
  7053. }
  7054. if (index2 > 0 && poseIndex[selectMaidIndex] > (int) groupList[index2 - 1]
  7055. && poseIndex[selectMaidIndex] <= (int) groupList[index2])
  7056. {
  7057. poseIndex[selectMaidIndex] = (int) groupList[index2 - 1];
  7058. break;
  7059. }
  7060. }
  7061. if (poseIndex[selectMaidIndex] > (int) groupList[groupList.Count - 1])
  7062. poseIndex[selectMaidIndex] = (int) groupList[groupList.Count - 1];
  7063. if ((bool) ((Object) maid) && maid.Visible)
  7064. {
  7065. string[] strArray2 = poseArray[poseIndex[selectMaidIndex]].Split(',');
  7066. isStop[selectMaidIndex] = false;
  7067. poseCount[selectMaidIndex] = 20;
  7068. if (strArray2[0].Contains("_momi") || strArray2[0].Contains("paizuri_"))
  7069. {
  7070. maid.body0.MuneYureL(0.0f);
  7071. maid.body0.MuneYureR(0.0f);
  7072. }
  7073. else
  7074. {
  7075. maid.body0.MuneYureL(1f);
  7076. maid.body0.MuneYureR(1f);
  7077. }
  7078. if (strArray2[0].Contains("MultipleMaidsPose"))
  7079. {
  7080. string path = strArray2[0].Split('/')[1];
  7081. byte[] numArray = new byte[0];
  7082. try
  7083. {
  7084. using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
  7085. {
  7086. numArray = new byte[fileStream.Length];
  7087. fileStream.Read(numArray, 0, numArray.Length);
  7088. }
  7089. }
  7090. catch { }
  7091. if (0 < numArray.Length)
  7092. {
  7093. long hashCode = (long) Path.GetFileName(path).GetHashCode();
  7094. maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
  7095. Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
  7096. {
  7097. Maid.AutoTwist.ShoulderL, Maid.AutoTwist.ShoulderR, Maid.AutoTwist.WristL,
  7098. Maid.AutoTwist.WristR, Maid.AutoTwist.ThighL, Maid.AutoTwist.ThighR
  7099. };
  7100. foreach (Maid.AutoTwist f_eType in autoTwistArray)
  7101. maid.SetAutoTwist(f_eType, true);
  7102. }
  7103. }
  7104. else if (strArray2[0].StartsWith("p") && int.TryParse(strArray2[0].Substring(1), out result))
  7105. loadPose[selectMaidIndex] = strArray2[0];
  7106. else if (!strArray2[0].StartsWith("dance_"))
  7107. {
  7108. maidArray[selectMaidIndex].CrossFade(strArray2[0] + ".anm", false, true, false, 0.0f, 1f);
  7109. }
  7110. else
  7111. {
  7112. if (!(bool) ((Object) maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm")))
  7113. maid.body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
  7114. maid.body0.m_Bones.GetComponent<Animation>().Play(strArray2[0] + ".anm");
  7115. }
  7116. if (strArray2.Length > 1)
  7117. {
  7118. maid.body0.m_Bones.GetComponent<Animation>()[strArray2[0] + ".anm"].time = float.Parse(strArray2[1]);
  7119. isDanceStop = true;
  7120. if (strArray2.Length > 2)
  7121. {
  7122. transform = CMT.SearchObjName(maidArray[selectMaidIndex].body0.m_Bones.transform, "Bip01", true);
  7123. isPoseIti[selectMaidIndex] = true;
  7124. poseIti[selectMaidIndex] = maidArray[selectMaidIndex].transform.position;
  7125. maidArray[selectMaidIndex].transform.position = new Vector3(100f, 100f, 100f);
  7126. }
  7127. }
  7128. }
  7129. }
  7130. int index3 = -1;
  7131. for (int index2 = 0; index2 < groupList.Count; ++index2)
  7132. {
  7133. if (poseIndex[selectMaidIndex] < (int) groupList[index2])
  7134. {
  7135. index3 = index2;
  7136. break;
  7137. }
  7138. }
  7139. int length2 = (int) groupList[0];
  7140. int num2 = 0;
  7141. if (index3 > 0)
  7142. {
  7143. length2 = (int) groupList[index3] - (int) groupList[index3 - 1];
  7144. num2 = (int) groupList[index3 - 1];
  7145. }
  7146. if (index3 < 0)
  7147. {
  7148. index3 = groupList.Count;
  7149. length2 = poseArray.Length - (int) groupList[index3 - 1];
  7150. num2 = (int) groupList[index3 - 1];
  7151. }
  7152. poseComboList = new GUIContent[length2];
  7153. int index4 = 0;
  7154. for (int index2 = num2; index2 < num2 + length2; ++index2)
  7155. {
  7156. bool flag2 = false;
  7157. foreach (IniKey key in this.Preferences["pose"].Keys)
  7158. {
  7159. if (poseArray[index2] == key.Key)
  7160. {
  7161. IniKey iniKey = this.Preferences["pose"][key.Key];
  7162. if (iniKey.Value != null && iniKey.Value.ToString() != "" && iniKey.Value.ToString() != "del")
  7163. {
  7164. poseComboList[index4] =
  7165. new GUIContent((index4 + 1).ToString() + ":" + iniKey.Value.Split('_')[0]
  7166. + "                    " + key.Key);
  7167. flag2 = true;
  7168. }
  7169. }
  7170. }
  7171. if (!flag2)
  7172. poseComboList[index4] = new GUIContent((index4 + 1).ToString() + ":" + poseArray[index2]);
  7173. ++index4;
  7174. }
  7175. poseCombo.scrollPos = new Vector2(0.0f, 0.0f);
  7176. poseGroupCombo.selectedItemIndex = index3;
  7177. poseCombo.selectedItemIndex = 0;
  7178. }
  7179. if (GUI.Button(new Rect((float) this.GetPix(135),
  7180. (float) this.GetPix(95),
  7181. (float) this.GetPix(23),
  7182. (float) this.GetPix(23)),
  7183. ">",
  7184. style3))
  7185. {
  7186. isPoseInit = true;
  7187. if (!isLock[selectMaidIndex])
  7188. {
  7189. int num2 = poseIndex[selectMaidIndex];
  7190. for (int index2 = 0; index2 < groupList.Count; ++index2)
  7191. {
  7192. if (poseIndex[selectMaidIndex] < (int) groupList[index2])
  7193. {
  7194. poseIndex[selectMaidIndex] = (int) groupList[index2];
  7195. break;
  7196. }
  7197. }
  7198. if (num2 == poseIndex[selectMaidIndex] && poseIndex[selectMaidIndex] >= (int) groupList[groupList.Count - 1])
  7199. poseIndex[selectMaidIndex] = 0;
  7200. if ((bool) ((Object) maid) && maid.Visible)
  7201. {
  7202. string[] strArray2 = poseArray[poseIndex[selectMaidIndex]].Split(',');
  7203. isStop[selectMaidIndex] = false;
  7204. poseCount[selectMaidIndex] = 20;
  7205. if (strArray2[0].Contains("_momi") || strArray2[0].Contains("paizuri_"))
  7206. {
  7207. maid.body0.MuneYureL(0.0f);
  7208. maid.body0.MuneYureR(0.0f);
  7209. }
  7210. else
  7211. {
  7212. maid.body0.MuneYureL(1f);
  7213. maid.body0.MuneYureR(1f);
  7214. }
  7215. if (strArray2[0].Contains("MultipleMaidsPose"))
  7216. {
  7217. string path = strArray2[0].Split('/')[1];
  7218. byte[] numArray = new byte[0];
  7219. try
  7220. {
  7221. using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
  7222. {
  7223. numArray = new byte[fileStream.Length];
  7224. fileStream.Read(numArray, 0, numArray.Length);
  7225. }
  7226. }
  7227. catch { }
  7228. if (0 < numArray.Length)
  7229. {
  7230. long hashCode = (long) Path.GetFileName(path).GetHashCode();
  7231. maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
  7232. Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
  7233. {
  7234. Maid.AutoTwist.ShoulderL, Maid.AutoTwist.ShoulderR, Maid.AutoTwist.WristL,
  7235. Maid.AutoTwist.WristR, Maid.AutoTwist.ThighL, Maid.AutoTwist.ThighR
  7236. };
  7237. foreach (Maid.AutoTwist f_eType in autoTwistArray)
  7238. maid.SetAutoTwist(f_eType, true);
  7239. }
  7240. }
  7241. else if (strArray2[0].StartsWith("p") && int.TryParse(strArray2[0].Substring(1), out result))
  7242. loadPose[selectMaidIndex] = strArray2[0];
  7243. else if (!strArray2[0].StartsWith("dance_"))
  7244. {
  7245. maidArray[selectMaidIndex].CrossFade(strArray2[0] + ".anm", false, true, false, 0.0f, 1f);
  7246. }
  7247. else
  7248. {
  7249. if (!(bool) ((Object) maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm")))
  7250. maid.body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
  7251. maid.body0.m_Bones.GetComponent<Animation>().Play(strArray2[0] + ".anm");
  7252. }
  7253. if (strArray2.Length > 1)
  7254. {
  7255. maid.body0.m_Bones.GetComponent<Animation>()[strArray2[0] + ".anm"].time = float.Parse(strArray2[1]);
  7256. isDanceStop = true;
  7257. if (strArray2.Length > 2)
  7258. {
  7259. transform = CMT.SearchObjName(maidArray[selectMaidIndex].body0.m_Bones.transform, "Bip01", true);
  7260. isPoseIti[selectMaidIndex] = true;
  7261. poseIti[selectMaidIndex] = maidArray[selectMaidIndex].transform.position;
  7262. maidArray[selectMaidIndex].transform.position = new Vector3(100f, 100f, 100f);
  7263. }
  7264. }
  7265. }
  7266. }
  7267. int index3 = -1;
  7268. for (int index2 = 0; index2 < groupList.Count; ++index2)
  7269. {
  7270. if (poseIndex[selectMaidIndex] < (int) groupList[index2])
  7271. {
  7272. index3 = index2;
  7273. break;
  7274. }
  7275. }
  7276. int length2 = (int) groupList[0];
  7277. int num3 = 0;
  7278. if (index3 > 0)
  7279. {
  7280. length2 = (int) groupList[index3] - (int) groupList[index3 - 1];
  7281. num3 = (int) groupList[index3 - 1];
  7282. }
  7283. if (index3 < 0)
  7284. {
  7285. index3 = groupList.Count;
  7286. length2 = poseArray.Length - (int) groupList[index3 - 1];
  7287. num3 = (int) groupList[index3 - 1];
  7288. }
  7289. poseComboList = new GUIContent[length2];
  7290. int index4 = 0;
  7291. for (int index2 = num3; index2 < num3 + length2; ++index2)
  7292. {
  7293. bool flag2 = false;
  7294. foreach (IniKey key in this.Preferences["pose"].Keys)
  7295. {
  7296. if (poseArray[index2] == key.Key)
  7297. {
  7298. IniKey iniKey = this.Preferences["pose"][key.Key];
  7299. if (iniKey.Value != null && iniKey.Value.ToString() != "" && iniKey.Value.ToString() != "del")
  7300. {
  7301. poseComboList[index4] =
  7302. new GUIContent((index4 + 1).ToString() + ":" + iniKey.Value.Split('_')[0]
  7303. + "                    " + key.Key);
  7304. flag2 = true;
  7305. }
  7306. }
  7307. }
  7308. if (!flag2)
  7309. poseComboList[index4] = new GUIContent((index4 + 1).ToString() + ":" + poseArray[index2]);
  7310. ++index4;
  7311. }
  7312. poseCombo.scrollPos = new Vector2(0.0f, 0.0f);
  7313. poseGroupCombo.selectedItemIndex = index3;
  7314. poseCombo.selectedItemIndex = 0;
  7315. }
  7316. poseGroupIndex =
  7317. poseGroupCombo.List(new Rect((float) this.GetPix(35),
  7318. (float) this.GetPix(95),
  7319. (float) this.GetPix(95),
  7320. (float) this.GetPix(23)),
  7321. poseGroupComboList[index7].text,
  7322. poseGroupComboList,
  7323. buttonStyle2,
  7324. (GUIStyle) "box",
  7325. listStyle4);
  7326. if (poseGroupCombo.isClickedComboButton)
  7327. isCombo2 = true;
  7328. else if (isCombo2)
  7329. {
  7330. isCombo2 = false;
  7331. isPoseInit = true;
  7332. poseIndex[selectMaidIndex] = poseGroupIndex <= 0 ? 0 : (int) groupList[poseGroupIndex - 1];
  7333. if (!isLock[selectMaidIndex] && ((bool) ((Object) maid) && maid.Visible))
  7334. {
  7335. string[] strArray2 = poseArray[poseIndex[selectMaidIndex]].Split(',');
  7336. isStop[selectMaidIndex] = false;
  7337. poseCount[selectMaidIndex] = 20;
  7338. if (strArray2[0].Contains("_momi") || strArray2[0].Contains("paizuri_"))
  7339. {
  7340. maid.body0.MuneYureL(0.0f);
  7341. maid.body0.MuneYureR(0.0f);
  7342. }
  7343. else
  7344. {
  7345. maid.body0.MuneYureL(1f);
  7346. maid.body0.MuneYureR(1f);
  7347. }
  7348. if (strArray2[0].Contains("MultipleMaidsPose"))
  7349. {
  7350. string path = strArray2[0].Split('/')[1];
  7351. byte[] numArray = new byte[0];
  7352. try
  7353. {
  7354. using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
  7355. {
  7356. numArray = new byte[fileStream.Length];
  7357. fileStream.Read(numArray, 0, numArray.Length);
  7358. }
  7359. }
  7360. catch { }
  7361. if (0 < numArray.Length)
  7362. {
  7363. long hashCode = (long) Path.GetFileName(path).GetHashCode();
  7364. maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
  7365. Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
  7366. {
  7367. Maid.AutoTwist.ShoulderL, Maid.AutoTwist.ShoulderR, Maid.AutoTwist.WristL, Maid.AutoTwist.WristR,
  7368. Maid.AutoTwist.ThighL, Maid.AutoTwist.ThighR
  7369. };
  7370. foreach (Maid.AutoTwist f_eType in autoTwistArray)
  7371. maid.SetAutoTwist(f_eType, true);
  7372. }
  7373. }
  7374. else if (strArray2[0].StartsWith("p") && int.TryParse(strArray2[0].Substring(1), out result))
  7375. loadPose[selectMaidIndex] = strArray2[0];
  7376. else if (!strArray2[0].StartsWith("dance_"))
  7377. {
  7378. maidArray[selectMaidIndex].CrossFade(strArray2[0] + ".anm", false, true, false, 0.0f, 1f);
  7379. }
  7380. else
  7381. {
  7382. if (!(bool) ((Object) maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm")))
  7383. maid.body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
  7384. maid.body0.m_Bones.GetComponent<Animation>().Play(strArray2[0] + ".anm");
  7385. }
  7386. if (strArray2.Length > 1)
  7387. {
  7388. maid.body0.m_Bones.GetComponent<Animation>()[strArray2[0] + ".anm"].time = float.Parse(strArray2[1]);
  7389. isDanceStop = true;
  7390. if (strArray2.Length > 2)
  7391. {
  7392. transform = CMT.SearchObjName(maidArray[selectMaidIndex].body0.m_Bones.transform, "Bip01", true);
  7393. isPoseIti[selectMaidIndex] = true;
  7394. poseIti[selectMaidIndex] = maidArray[selectMaidIndex].transform.position;
  7395. maidArray[selectMaidIndex].transform.position = new Vector3(100f, 100f, 100f);
  7396. }
  7397. }
  7398. }
  7399. int index2 = -1;
  7400. for (int index3 = 0; index3 < groupList.Count; ++index3)
  7401. {
  7402. if (poseIndex[selectMaidIndex] < (int) groupList[index3])
  7403. {
  7404. index2 = index3;
  7405. break;
  7406. }
  7407. }
  7408. int length2 = (int) groupList[0];
  7409. int num2 = 0;
  7410. if (index2 > 0)
  7411. {
  7412. length2 = (int) groupList[index2] - (int) groupList[index2 - 1];
  7413. num2 = (int) groupList[index2 - 1];
  7414. }
  7415. if (index2 < 0)
  7416. {
  7417. index2 = groupList.Count;
  7418. length2 = poseArray.Length - (int) groupList[index2 - 1];
  7419. num2 = (int) groupList[index2 - 1];
  7420. }
  7421. poseComboList = new GUIContent[length2];
  7422. int index4 = 0;
  7423. for (int index3 = num2; index3 < num2 + length2; ++index3)
  7424. {
  7425. bool flag2 = false;
  7426. foreach (IniKey key in this.Preferences["pose"].Keys)
  7427. {
  7428. if (poseArray[index3] == key.Key)
  7429. {
  7430. IniKey iniKey = this.Preferences["pose"][key.Key];
  7431. if (iniKey.Value != null && iniKey.Value.ToString() != "" && iniKey.Value.ToString() != "del")
  7432. {
  7433. poseComboList[index4] =
  7434. new GUIContent((index4 + 1).ToString() + ":" + iniKey.Value.Split('_')[0]
  7435. + "                    " + key.Key);
  7436. flag2 = true;
  7437. }
  7438. }
  7439. }
  7440. if (!flag2)
  7441. poseComboList[index4] = new GUIContent((index4 + 1).ToString() + ":" + poseArray[index3]);
  7442. ++index4;
  7443. }
  7444. poseCombo.scrollPos = new Vector2(0.0f, 0.0f);
  7445. poseGroupCombo.selectedItemIndex = index2;
  7446. poseCombo.selectedItemIndex = 0;
  7447. }
  7448. if (poseCombo.isClickedComboButton)
  7449. isCombo = true;
  7450. else if (isCombo)
  7451. {
  7452. isCombo = false;
  7453. isPoseInit = true;
  7454. poseIndex[selectMaidIndex] = poseGroupIndex <= 0
  7455. ? poseCombo.selectedItemIndex
  7456. : (int) groupList[poseGroupIndex - 1] + poseCombo.selectedItemIndex;
  7457. if (poseIndex[selectMaidIndex] == poseArray.Length)
  7458. poseIndex[selectMaidIndex] = 0;
  7459. if (!isLock[selectMaidIndex] && ((bool) ((Object) maid) && maid.Visible))
  7460. {
  7461. string[] strArray2 = poseArray[poseIndex[selectMaidIndex]].Split(',');
  7462. isStop[selectMaidIndex] = false;
  7463. poseCount[selectMaidIndex] = 20;
  7464. if (strArray2[0].Contains("_momi") || strArray2[0].Contains("paizuri_"))
  7465. {
  7466. maid.body0.MuneYureL(0.0f);
  7467. maid.body0.MuneYureR(0.0f);
  7468. }
  7469. else
  7470. {
  7471. maid.body0.MuneYureL(1f);
  7472. maid.body0.MuneYureR(1f);
  7473. }
  7474. if (strArray2[0].Contains("MultipleMaidsPose"))
  7475. {
  7476. string path = strArray2[0].Split('/')[1];
  7477. byte[] numArray = new byte[0];
  7478. try
  7479. {
  7480. using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
  7481. {
  7482. numArray = new byte[fileStream.Length];
  7483. fileStream.Read(numArray, 0, numArray.Length);
  7484. }
  7485. }
  7486. catch { }
  7487. if (0 < numArray.Length)
  7488. {
  7489. long hashCode = (long) Path.GetFileName(path).GetHashCode();
  7490. maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
  7491. Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
  7492. {
  7493. Maid.AutoTwist.ShoulderL, Maid.AutoTwist.ShoulderR, Maid.AutoTwist.WristL, Maid.AutoTwist.WristR,
  7494. Maid.AutoTwist.ThighL, Maid.AutoTwist.ThighR
  7495. };
  7496. foreach (Maid.AutoTwist f_eType in autoTwistArray)
  7497. maid.SetAutoTwist(f_eType, true);
  7498. }
  7499. }
  7500. else if (strArray2[0].StartsWith("p") && int.TryParse(strArray2[0].Substring(1), out result))
  7501. loadPose[selectMaidIndex] = strArray2[0];
  7502. else if (!strArray2[0].StartsWith("dance_"))
  7503. {
  7504. maidArray[selectMaidIndex].CrossFade(strArray2[0] + ".anm", false, true, false, 0.0f, 1f);
  7505. }
  7506. else
  7507. {
  7508. if (!(bool) ((Object) maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm")))
  7509. maid.body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
  7510. maid.body0.m_Bones.GetComponent<Animation>().Play(strArray2[0] + ".anm");
  7511. }
  7512. if (strArray2.Length > 1)
  7513. {
  7514. maid.body0.m_Bones.GetComponent<Animation>()[strArray2[0] + ".anm"].time = float.Parse(strArray2[1]);
  7515. isDanceStop = true;
  7516. if (strArray2.Length > 2)
  7517. {
  7518. transform = CMT.SearchObjName(maidArray[selectMaidIndex].body0.m_Bones.transform, "Bip01", true);
  7519. isPoseIti[selectMaidIndex] = true;
  7520. poseIti[selectMaidIndex] = maidArray[selectMaidIndex].transform.position;
  7521. maidArray[selectMaidIndex].transform.position = new Vector3(100f, 100f, 100f);
  7522. }
  7523. }
  7524. }
  7525. }
  7526. if (itemCombo.isClickedComboButton)
  7527. {
  7528. isCombo3 = true;
  7529. }
  7530. else
  7531. {
  7532. if (!isCombo3)
  7533. return;
  7534. isCombo3 = false;
  7535. strArray1 = new string[2];
  7536. string[] strArray2 = itemArray[itemIndex2[selectMaidIndex]].Split(',');
  7537. if (itemIndex2[selectMaidIndex] > 13)
  7538. strArray2 = itemArray[itemIndex2[selectMaidIndex] + 1].Split(',');
  7539. maid.DelProp(MPN.handitem, true);
  7540. bool flag2 = false;
  7541. if (itemIndex2[selectMaidIndex] == 0)
  7542. {
  7543. maid.DelProp(MPN.accvag, true);
  7544. maid.DelProp(MPN.accanl, true);
  7545. }
  7546. if (itemIndex2[selectMaidIndex] == 12 || itemIndex2[selectMaidIndex] == 13)
  7547. flag2 = true;
  7548. if (!flag2)
  7549. {
  7550. maid.DelProp(MPN.kousoku_upper, true);
  7551. maid.DelProp(MPN.kousoku_lower, true);
  7552. }
  7553. if (strArray2[0] != "")
  7554. maid.SetProp(strArray2[0], strArray2[1], 0, true, false);
  7555. if (itemIndex2[selectMaidIndex] == 12)
  7556. {
  7557. string[] strArray3 = itemArray[itemIndex2[selectMaidIndex] - 1].Split(',');
  7558. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  7559. }
  7560. if (itemIndex2[selectMaidIndex] == 13)
  7561. {
  7562. string[] strArray3 = itemArray[itemIndex2[selectMaidIndex] + 1].Split(',');
  7563. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  7564. }
  7565. if (itemIndex2[selectMaidIndex] == 23)
  7566. {
  7567. string[] strArray3 = itemArray[itemIndex2[selectMaidIndex]].Split(',');
  7568. maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
  7569. cafeFlg[selectMaidIndex] = true;
  7570. }
  7571. maid.AllProcPropSeqStart();
  7572. itemCombo.selectedItemIndex = itemIndex2[selectMaidIndex];
  7573. itemIndex[selectMaidIndex] = itemIndex2[selectMaidIndex];
  7574. }
  7575. }
  7576. else
  7577. {
  7578. isWear = GUI.Toggle(new Rect((float) this.GetPix(5),
  7579. (float) this.GetPix(98),
  7580. (float) this.GetPix(70),
  7581. (float) this.GetPix(20)),
  7582. isWear,
  7583. "トップス",
  7584. style4);
  7585. isSkirt = GUI.Toggle(new Rect((float) this.GetPix(90),
  7586. (float) this.GetPix(98),
  7587. (float) this.GetPix(70),
  7588. (float) this.GetPix(20)),
  7589. isSkirt,
  7590. "ボトムス",
  7591. style4);
  7592. isBra = GUI.Toggle(new Rect((float) this.GetPix(5),
  7593. (float) this.GetPix(123),
  7594. (float) this.GetPix(80),
  7595. (float) this.GetPix(20)),
  7596. isBra,
  7597. "ブラジャー",
  7598. style4);
  7599. isPanz = GUI.Toggle(new Rect((float) this.GetPix(90),
  7600. (float) this.GetPix(123),
  7601. (float) this.GetPix(60),
  7602. (float) this.GetPix(20)),
  7603. isPanz,
  7604. "パンツ",
  7605. style4);
  7606. isHeadset = GUI.Toggle(new Rect((float) this.GetPix(5),
  7607. (float) this.GetPix(148),
  7608. (float) this.GetPix(70),
  7609. (float) this.GetPix(20)),
  7610. isHeadset,
  7611. "ヘッド",
  7612. style4);
  7613. isMegane = GUI.Toggle(new Rect((float) this.GetPix(90),
  7614. (float) this.GetPix(148),
  7615. (float) this.GetPix(70),
  7616. (float) this.GetPix(20)),
  7617. isMegane,
  7618. "メガネ",
  7619. style4);
  7620. isAccUde = GUI.Toggle(new Rect((float) this.GetPix(5),
  7621. (float) this.GetPix(173),
  7622. (float) this.GetPix(40),
  7623. (float) this.GetPix(20)),
  7624. isAccUde,
  7625. "腕",
  7626. style4);
  7627. isGlove = GUI.Toggle(new Rect((float) this.GetPix(45),
  7628. (float) this.GetPix(173),
  7629. (float) this.GetPix(40),
  7630. (float) this.GetPix(20)),
  7631. isGlove,
  7632. "手袋",
  7633. style4);
  7634. isAccSenaka = GUI.Toggle(new Rect((float) this.GetPix(97),
  7635. (float) this.GetPix(173),
  7636. (float) this.GetPix(40),
  7637. (float) this.GetPix(20)),
  7638. isAccSenaka,
  7639. "背中",
  7640. style4);
  7641. isStkg = GUI.Toggle(new Rect((float) this.GetPix(5),
  7642. (float) this.GetPix(198),
  7643. (float) this.GetPix(70),
  7644. (float) this.GetPix(20)),
  7645. isStkg,
  7646. "ソックス",
  7647. style4);
  7648. isShoes = GUI.Toggle(new Rect((float) this.GetPix(90),
  7649. (float) this.GetPix(198),
  7650. (float) this.GetPix(70),
  7651. (float) this.GetPix(20)),
  7652. isShoes,
  7653. "シューズ",
  7654. style4);
  7655. mekure1[selectMaidIndex] =
  7656. GUI.Toggle(new Rect((float) this.GetPix(5),
  7657. (float) this.GetPix(223),
  7658. (float) this.GetPix(62),
  7659. (float) this.GetPix(20)),
  7660. mekure1[selectMaidIndex],
  7661. "めくれ前",
  7662. style4);
  7663. mekure2[selectMaidIndex] =
  7664. GUI.Toggle(new Rect((float) this.GetPix(67),
  7665. (float) this.GetPix(223),
  7666. (float) this.GetPix(40),
  7667. (float) this.GetPix(20)),
  7668. mekure2[selectMaidIndex],
  7669. "後ろ",
  7670. style4);
  7671. zurasi[selectMaidIndex] =
  7672. GUI.Toggle(new Rect((float) this.GetPix(105),
  7673. (float) this.GetPix(223),
  7674. (float) this.GetPix(50),
  7675. (float) this.GetPix(20)),
  7676. zurasi[selectMaidIndex],
  7677. "ずらし",
  7678. style4);
  7679. }
  7680. }
  7681. private void GuiFunc2(int winID)
  7682. {
  7683. GUIStyle style1 = (GUIStyle) "label";
  7684. style1.fontSize = this.GetPix(12);
  7685. style1.alignment = TextAnchor.UpperLeft;
  7686. GUIStyle style2 = (GUIStyle) "label";
  7687. style2.fontSize = this.GetPix(11);
  7688. style2.alignment = TextAnchor.UpperLeft;
  7689. GUIStyle style3 = (GUIStyle) "button";
  7690. style3.fontSize = this.GetPix(20);
  7691. GUIStyle buttonStyle = (GUIStyle) "button";
  7692. buttonStyle.fontSize = this.GetPix(12);
  7693. buttonStyle.alignment = TextAnchor.MiddleLeft;
  7694. GUIStyle style4 = new GUIStyle((GUIStyle) "toggle");
  7695. style4.fontSize = this.GetPix(13);
  7696. CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
  7697. if (!faceInitFlg)
  7698. {
  7699. listStyle2.normal.textColor = Color.white;
  7700. listStyle2.normal.background = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.5f));
  7701. listStyle2.onHover.background = listStyle2.hover.background = new Texture2D(2, 2);
  7702. listStyle2.padding.left = listStyle2.padding.right = listStyle2.padding.top = listStyle2.padding.bottom = this.GetPix(0);
  7703. listStyle2.fontSize = this.GetPix(12);
  7704. faceCombo.selectedItemIndex = 0;
  7705. List<string> stringList = new List<string>(300);
  7706. stringList.AddRange((IEnumerable<string>) faceArray);
  7707. for (int index = 1; index < 300; ++index)
  7708. {
  7709. IniKey iniKey = this.Preferences["face"]["f" + (object) index];
  7710. if (iniKey.Value != null)
  7711. {
  7712. string[] strArray = iniKey.Value.Split(':');
  7713. if (strArray.Length > 1)
  7714. stringList.Add(strArray[0] + "               :" + (object) index + ":" + strArray[1]);
  7715. }
  7716. else
  7717. break;
  7718. }
  7719. faceCombo.selectedItemIndex = 0;
  7720. faceComboList = new GUIContent[stringList.ToArray().Length];
  7721. for (int index = 0; index < stringList.ToArray().Length; ++index)
  7722. faceComboList[index] = new GUIContent(stringList.ToArray()[index]);
  7723. faceInitFlg = true;
  7724. }
  7725. if (faceCombo.isClickedComboButton)
  7726. GUI.enabled = false;
  7727. if (sceneLevel == 3 || sceneLevel == 5 || isF6)
  7728. {
  7729. if (!isF6)
  7730. {
  7731. bool flag = true;
  7732. if (faceFlg || poseFlg || (sceneFlg || kankyoFlg) || kankyo2Flg)
  7733. flag = false;
  7734. if (GUI.Toggle(new Rect((float) this.GetPix(2),
  7735. (float) this.GetPix(2),
  7736. (float) this.GetPix(39),
  7737. (float) this.GetPix(20)),
  7738. flag,
  7739. "配置",
  7740. style4))
  7741. {
  7742. faceFlg = false;
  7743. poseFlg = false;
  7744. sceneFlg = false;
  7745. kankyoFlg = false;
  7746. kankyo2Flg = false;
  7747. bGui = true;
  7748. isGuiInit = true;
  7749. }
  7750. }
  7751. if (!yotogiFlg && GUI.Toggle(new Rect((float) this.GetPix(41),
  7752. (float) this.GetPix(2),
  7753. (float) this.GetPix(39),
  7754. (float) this.GetPix(20)),
  7755. poseFlg,
  7756. "操作",
  7757. style4))
  7758. {
  7759. poseFlg = true;
  7760. faceFlg = false;
  7761. sceneFlg = false;
  7762. kankyoFlg = false;
  7763. kankyo2Flg = false;
  7764. }
  7765. if (GUI.Toggle(new Rect((float) this.GetPix(80), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
  7766. faceFlg,
  7767. "表情",
  7768. style4))
  7769. {
  7770. faceFlg = true;
  7771. poseFlg = false;
  7772. sceneFlg = false;
  7773. kankyoFlg = false;
  7774. kankyo2Flg = false;
  7775. if (!faceFlg2)
  7776. {
  7777. isFaceInit = true;
  7778. faceFlg2 = true;
  7779. maidArray[selectMaidIndex].boMabataki = false;
  7780. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  7781. }
  7782. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  7783. }
  7784. if (GUI.Toggle(new Rect((float) this.GetPix(119), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
  7785. kankyoFlg,
  7786. "環境",
  7787. style4))
  7788. {
  7789. poseFlg = false;
  7790. faceFlg = false;
  7791. sceneFlg = false;
  7792. kankyoFlg = true;
  7793. kankyo2Flg = false;
  7794. }
  7795. if (!(bool) ((Object) line1))
  7796. {
  7797. line1 = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.3f));
  7798. line2 = this.MakeTex(2, 2, new Color(0.7f, 0.7f, 0.7f, 0.6f));
  7799. }
  7800. GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(20), (float) this.GetPix(160), 2f), (Texture) line1);
  7801. GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(20), (float) this.GetPix(160), 1f), (Texture) line2);
  7802. style1.fontSize = this.GetPix(13);
  7803. style1.alignment = TextAnchor.MiddleCenter;
  7804. GUI.Label(new Rect((float) this.GetPix(125), (float) this.GetPix(25), (float) this.GetPix(40), (float) this.GetPix(25)),
  7805. string.Concat((object) (selectMaidIndex + 1)),
  7806. style1);
  7807. style1.fontSize = this.GetPix(11);
  7808. style1.alignment = TextAnchor.UpperLeft;
  7809. }
  7810. if (sceneLevel > 0)
  7811. {
  7812. int selectMaidIndex = this.selectMaidIndex;
  7813. if (sceneLevel == 3 || sceneLevel == 5 && (isF7 || maidCnt > 1))
  7814. {
  7815. if (GUI.Button(new Rect((float) this.GetPix(5),
  7816. (float) this.GetPix(53),
  7817. (float) this.GetPix(23),
  7818. (float) this.GetPix(32)),
  7819. "<",
  7820. style3))
  7821. {
  7822. --this.selectMaidIndex;
  7823. if (this.selectMaidIndex < 0)
  7824. this.selectMaidIndex = selectList.Count - 1;
  7825. isFaceInit = true;
  7826. faceFlg = true;
  7827. copyIndex = 0;
  7828. faceCombo.selectedItemIndex = faceIndex[this.selectMaidIndex];
  7829. }
  7830. if (GUI.Button(new Rect((float) this.GetPix(135),
  7831. (float) this.GetPix(53),
  7832. (float) this.GetPix(23),
  7833. (float) this.GetPix(32)),
  7834. ">",
  7835. style3))
  7836. {
  7837. ++this.selectMaidIndex;
  7838. if (selectList.Count <= this.selectMaidIndex)
  7839. this.selectMaidIndex = 0;
  7840. isFaceInit = true;
  7841. faceFlg = true;
  7842. copyIndex = 0;
  7843. faceCombo.selectedItemIndex = faceIndex[this.selectMaidIndex];
  7844. }
  7845. }
  7846. if ((bool) ((Object) maidArray[this.selectMaidIndex].GetThumIcon()))
  7847. GUI.DrawTexture(new Rect((float) this.GetPix(30),
  7848. (float) this.GetPix(25),
  7849. (float) this.GetPix(60),
  7850. (float) this.GetPix(60)),
  7851. (Texture) maidArray[this.selectMaidIndex].GetThumIcon());
  7852. GUI.Label(new Rect((float) this.GetPix(90), (float) this.GetPix(50), (float) this.GetPix(140), (float) this.GetPix(210)),
  7853. maidArray[this.selectMaidIndex].status.lastName + "\n" + maidArray[this.selectMaidIndex].status.firstName,
  7854. style1);
  7855. bool flag = GUI.Toggle(new Rect((float) this.GetPix(90),
  7856. (float) this.GetPix(25),
  7857. (float) this.GetPix(50),
  7858. (float) this.GetPix(16)),
  7859. isShosai,
  7860. "詳細",
  7861. style4);
  7862. if (flag != isShosai)
  7863. {
  7864. isShosai = flag;
  7865. if (isShosai)
  7866. this.Preferences["config"]["hair_details"].Value = "true";
  7867. else
  7868. this.Preferences["config"]["hair_details"].Value = "false";
  7869. this.SaveConfig();
  7870. }
  7871. if (isFace[selectMaidIndex])
  7872. {
  7873. if (GUI.Button(new Rect((float) this.GetPix(5),
  7874. (float) this.GetPix(25),
  7875. (float) this.GetPix(23),
  7876. (float) this.GetPix(23)),
  7877. "有",
  7878. style3))
  7879. {
  7880. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  7881. maidArray[selectMaidIndex].boMabataki = false;
  7882. isFace[selectMaidIndex] = false;
  7883. }
  7884. maidArray[selectMaidIndex].boMabataki = false;
  7885. }
  7886. else
  7887. {
  7888. if (GUI.Button(new Rect((float) this.GetPix(5),
  7889. (float) this.GetPix(25),
  7890. (float) this.GetPix(23),
  7891. (float) this.GetPix(23)),
  7892. "無",
  7893. style3))
  7894. {
  7895. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  7896. maidArray[selectMaidIndex].boMabataki = false;
  7897. morph.EyeMabataki = 0.0f;
  7898. isFaceInit = true;
  7899. isFace[selectMaidIndex] = true;
  7900. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  7901. }
  7902. GUI.enabled = false;
  7903. maidArray[selectMaidIndex].boMabataki = true;
  7904. }
  7905. }
  7906. if (GUI.Button(new Rect((float) this.GetPix(5), (float) this.GetPix(95), (float) this.GetPix(23), (float) this.GetPix(23)),
  7907. "<",
  7908. style3))
  7909. {
  7910. --faceIndex[selectMaidIndex];
  7911. if (faceIndex[selectMaidIndex] <= -1)
  7912. faceIndex[selectMaidIndex] = faceComboList.Length - 1;
  7913. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  7914. maidArray[selectMaidIndex].boMabataki = false;
  7915. morph.EyeMabataki = 0.0f;
  7916. if (faceIndex[selectMaidIndex] < faceArray.Length)
  7917. {
  7918. morph.MulBlendValues(faceArray[faceIndex[selectMaidIndex]], 1f);
  7919. }
  7920. else
  7921. {
  7922. float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  7923. float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  7924. if (!isVR)
  7925. maidArray[selectMaidIndex].boMabataki = false;
  7926. string[] strArray = faceComboList[faceIndex[selectMaidIndex]].text.Split(':')[2].Split(',');
  7927. fieldValue2[(int) morph.hash[(object) "eyeclose"]] = float.Parse(strArray[0]);
  7928. fieldValue2[(int) morph.hash[(object) "eyeclose2"]] = float.Parse(strArray[1]);
  7929. fieldValue2[(int) morph.hash[(object) "eyeclose3"]] = float.Parse(strArray[2]);
  7930. fieldValue2[(int) morph.hash[(object) "eyeclose6"]] = float.Parse(strArray[3]);
  7931. fieldValue1[(int) morph.hash[(object) "hitomih"]] = float.Parse(strArray[4]);
  7932. fieldValue1[(int) morph.hash[(object) "hitomis"]] = float.Parse(strArray[5]);
  7933. fieldValue1[(int) morph.hash[(object) "mayuha"]] = float.Parse(strArray[6]);
  7934. fieldValue1[(int) morph.hash[(object) "mayuup"]] = float.Parse(strArray[7]);
  7935. fieldValue1[(int) morph.hash[(object) "mayuv"]] = float.Parse(strArray[8]);
  7936. fieldValue1[(int) morph.hash[(object) "mayuvhalf"]] = float.Parse(strArray[9]);
  7937. fieldValue1[(int) morph.hash[(object) "moutha"]] = float.Parse(strArray[10]);
  7938. fieldValue1[(int) morph.hash[(object) "mouths"]] = float.Parse(strArray[11]);
  7939. fieldValue1[(int) morph.hash[(object) "mouthdw"]] = float.Parse(strArray[12]);
  7940. fieldValue1[(int) morph.hash[(object) "mouthup"]] = float.Parse(strArray[13]);
  7941. fieldValue1[(int) morph.hash[(object) "tangout"]] = float.Parse(strArray[14]);
  7942. fieldValue1[(int) morph.hash[(object) "tangup"]] = float.Parse(strArray[15]);
  7943. fieldValue1[(int) morph.hash[(object) "eyebig"]] = float.Parse(strArray[16]);
  7944. fieldValue2[(int) morph.hash[(object) "eyeclose5"]] = float.Parse(strArray[17]);
  7945. fieldValue1[(int) morph.hash[(object) "mayuw"]] = float.Parse(strArray[18]);
  7946. fieldValue1[(int) morph.hash[(object) "mouthhe"]] = float.Parse(strArray[19]);
  7947. fieldValue1[(int) morph.hash[(object) "mouthc"]] = float.Parse(strArray[20]);
  7948. fieldValue1[(int) morph.hash[(object) "mouthi"]] = float.Parse(strArray[21]);
  7949. fieldValue1[(int) morph.hash[(object) "mouthuphalf"]] = float.Parse(strArray[22]) + 0.01f;
  7950. try
  7951. {
  7952. fieldValue1[(int) morph.hash[(object) "tangopen"]] = float.Parse(strArray[23]);
  7953. }
  7954. catch { }
  7955. if ((double) float.Parse(strArray[24]) == 1.0)
  7956. fieldValue1[(int) morph.hash[(object) "namida"]] = 1f;
  7957. else
  7958. fieldValue1[(int) morph.hash[(object) "namida"]] = 0.0f;
  7959. if ((double) float.Parse(strArray[25]) == 1.0)
  7960. fieldValue1[(int) morph.hash[(object) "tear1"]] = 1f;
  7961. else
  7962. fieldValue1[(int) morph.hash[(object) "tear1"]] = 0.0f;
  7963. if ((double) float.Parse(strArray[26]) == 1.0)
  7964. fieldValue1[(int) morph.hash[(object) "tear2"]] = 1f;
  7965. else
  7966. fieldValue1[(int) morph.hash[(object) "tear2"]] = 0.0f;
  7967. if ((double) float.Parse(strArray[27]) == 1.0)
  7968. fieldValue1[(int) morph.hash[(object) "tear3"]] = 1f;
  7969. else
  7970. fieldValue1[(int) morph.hash[(object) "tear3"]] = 0.0f;
  7971. if ((double) float.Parse(strArray[28]) == 1.0)
  7972. fieldValue1[(int) morph.hash[(object) "shock"]] = 1f;
  7973. else
  7974. fieldValue1[(int) morph.hash[(object) "shock"]] = 0.0f;
  7975. if ((double) float.Parse(strArray[29]) == 1.0)
  7976. fieldValue1[(int) morph.hash[(object) "yodare"]] = 1f;
  7977. else
  7978. fieldValue1[(int) morph.hash[(object) "yodare"]] = 0.0f;
  7979. if ((double) float.Parse(strArray[30]) == 1.0)
  7980. fieldValue1[(int) morph.hash[(object) "hoho"]] = 0.5f;
  7981. else
  7982. fieldValue1[(int) morph.hash[(object) "hoho"]] = 0.0f;
  7983. if ((double) float.Parse(strArray[31]) == 1.0)
  7984. fieldValue1[(int) morph.hash[(object) "hoho2"]] = 0.5f;
  7985. else
  7986. fieldValue1[(int) morph.hash[(object) "hoho2"]] = 0.0f;
  7987. if ((double) float.Parse(strArray[32]) == 1.0)
  7988. fieldValue1[(int) morph.hash[(object) "hohos"]] = 1f;
  7989. else
  7990. fieldValue1[(int) morph.hash[(object) "hohos"]] = 0.0f;
  7991. if ((double) float.Parse(strArray[33]) == 1.0)
  7992. fieldValue1[(int) morph.hash[(object) "hohol"]] = 1f;
  7993. else
  7994. fieldValue1[(int) morph.hash[(object) "hohol"]] = 0.0f;
  7995. if ((double) float.Parse(strArray[34]) == 1.0)
  7996. fieldValue1[(int) morph.hash[(object) "toothoff"]] = 1f;
  7997. else
  7998. fieldValue1[(int) morph.hash[(object) "toothoff"]] = 0.0f;
  7999. if (strArray.Length > 35)
  8000. morph.boNoseFook = (double) float.Parse(strArray[35]) == 1.0;
  8001. }
  8002. maidArray[selectMaidIndex].body0.Face.morph.FixBlendValues_Face();
  8003. isFaceInit = true;
  8004. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  8005. }
  8006. if (GUI.Button(new Rect((float) this.GetPix(135), (float) this.GetPix(95), (float) this.GetPix(23), (float) this.GetPix(23)),
  8007. ">",
  8008. style3))
  8009. {
  8010. ++faceIndex[selectMaidIndex];
  8011. if (faceIndex[selectMaidIndex] == faceComboList.Length)
  8012. faceIndex[selectMaidIndex] = 0;
  8013. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  8014. maidArray[selectMaidIndex].boMabataki = false;
  8015. morph.EyeMabataki = 0.0f;
  8016. if (faceIndex[selectMaidIndex] < faceArray.Length)
  8017. {
  8018. morph.MulBlendValues(faceArray[faceIndex[selectMaidIndex]], 1f);
  8019. }
  8020. else
  8021. {
  8022. float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  8023. float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  8024. if (!isVR)
  8025. maidArray[selectMaidIndex].boMabataki = false;
  8026. string[] strArray = faceComboList[faceIndex[selectMaidIndex]].text.Split(':')[2].Split(',');
  8027. fieldValue2[(int) morph.hash[(object) "eyeclose"]] = float.Parse(strArray[0]);
  8028. fieldValue2[(int) morph.hash[(object) "eyeclose2"]] = float.Parse(strArray[1]);
  8029. fieldValue2[(int) morph.hash[(object) "eyeclose3"]] = float.Parse(strArray[2]);
  8030. fieldValue2[(int) morph.hash[(object) "eyeclose6"]] = float.Parse(strArray[3]);
  8031. fieldValue1[(int) morph.hash[(object) "hitomih"]] = float.Parse(strArray[4]);
  8032. fieldValue1[(int) morph.hash[(object) "hitomis"]] = float.Parse(strArray[5]);
  8033. fieldValue1[(int) morph.hash[(object) "mayuha"]] = float.Parse(strArray[6]);
  8034. fieldValue1[(int) morph.hash[(object) "mayuup"]] = float.Parse(strArray[7]);
  8035. fieldValue1[(int) morph.hash[(object) "mayuv"]] = float.Parse(strArray[8]);
  8036. fieldValue1[(int) morph.hash[(object) "mayuvhalf"]] = float.Parse(strArray[9]);
  8037. fieldValue1[(int) morph.hash[(object) "moutha"]] = float.Parse(strArray[10]);
  8038. fieldValue1[(int) morph.hash[(object) "mouths"]] = float.Parse(strArray[11]);
  8039. fieldValue1[(int) morph.hash[(object) "mouthdw"]] = float.Parse(strArray[12]);
  8040. fieldValue1[(int) morph.hash[(object) "mouthup"]] = float.Parse(strArray[13]);
  8041. fieldValue1[(int) morph.hash[(object) "tangout"]] = float.Parse(strArray[14]);
  8042. fieldValue1[(int) morph.hash[(object) "tangup"]] = float.Parse(strArray[15]);
  8043. fieldValue1[(int) morph.hash[(object) "eyebig"]] = float.Parse(strArray[16]);
  8044. fieldValue2[(int) morph.hash[(object) "eyeclose5"]] = float.Parse(strArray[17]);
  8045. fieldValue1[(int) morph.hash[(object) "mayuw"]] = float.Parse(strArray[18]);
  8046. fieldValue1[(int) morph.hash[(object) "mouthhe"]] = float.Parse(strArray[19]);
  8047. fieldValue1[(int) morph.hash[(object) "mouthc"]] = float.Parse(strArray[20]);
  8048. fieldValue1[(int) morph.hash[(object) "mouthi"]] = float.Parse(strArray[21]);
  8049. fieldValue1[(int) morph.hash[(object) "mouthuphalf"]] = float.Parse(strArray[22]) + 0.01f;
  8050. try
  8051. {
  8052. fieldValue1[(int) morph.hash[(object) "tangopen"]] = float.Parse(strArray[23]);
  8053. }
  8054. catch { }
  8055. if ((double) float.Parse(strArray[24]) == 1.0)
  8056. fieldValue1[(int) morph.hash[(object) "namida"]] = 1f;
  8057. else
  8058. fieldValue1[(int) morph.hash[(object) "namida"]] = 0.0f;
  8059. if ((double) float.Parse(strArray[25]) == 1.0)
  8060. fieldValue1[(int) morph.hash[(object) "tear1"]] = 1f;
  8061. else
  8062. fieldValue1[(int) morph.hash[(object) "tear1"]] = 0.0f;
  8063. if ((double) float.Parse(strArray[26]) == 1.0)
  8064. fieldValue1[(int) morph.hash[(object) "tear2"]] = 1f;
  8065. else
  8066. fieldValue1[(int) morph.hash[(object) "tear2"]] = 0.0f;
  8067. if ((double) float.Parse(strArray[27]) == 1.0)
  8068. fieldValue1[(int) morph.hash[(object) "tear3"]] = 1f;
  8069. else
  8070. fieldValue1[(int) morph.hash[(object) "tear3"]] = 0.0f;
  8071. if ((double) float.Parse(strArray[28]) == 1.0)
  8072. fieldValue1[(int) morph.hash[(object) "shock"]] = 1f;
  8073. else
  8074. fieldValue1[(int) morph.hash[(object) "shock"]] = 0.0f;
  8075. if ((double) float.Parse(strArray[29]) == 1.0)
  8076. fieldValue1[(int) morph.hash[(object) "yodare"]] = 1f;
  8077. else
  8078. fieldValue1[(int) morph.hash[(object) "yodare"]] = 0.0f;
  8079. if ((double) float.Parse(strArray[30]) == 1.0)
  8080. fieldValue1[(int) morph.hash[(object) "hoho"]] = 0.5f;
  8081. else
  8082. fieldValue1[(int) morph.hash[(object) "hoho"]] = 0.0f;
  8083. if ((double) float.Parse(strArray[31]) == 1.0)
  8084. fieldValue1[(int) morph.hash[(object) "hoho2"]] = 0.5f;
  8085. else
  8086. fieldValue1[(int) morph.hash[(object) "hoho2"]] = 0.0f;
  8087. if ((double) float.Parse(strArray[32]) == 1.0)
  8088. fieldValue1[(int) morph.hash[(object) "hohos"]] = 1f;
  8089. else
  8090. fieldValue1[(int) morph.hash[(object) "hohos"]] = 0.0f;
  8091. if ((double) float.Parse(strArray[33]) == 1.0)
  8092. fieldValue1[(int) morph.hash[(object) "hohol"]] = 1f;
  8093. else
  8094. fieldValue1[(int) morph.hash[(object) "hohol"]] = 0.0f;
  8095. if ((double) float.Parse(strArray[34]) == 1.0)
  8096. fieldValue1[(int) morph.hash[(object) "toothoff"]] = 1f;
  8097. else
  8098. fieldValue1[(int) morph.hash[(object) "toothoff"]] = 0.0f;
  8099. if (strArray.Length > 35)
  8100. morph.boNoseFook = (double) float.Parse(strArray[35]) == 1.0;
  8101. }
  8102. maidArray[selectMaidIndex].body0.Face.morph.FixBlendValues_Face();
  8103. isFaceInit = true;
  8104. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  8105. }
  8106. if (!isShosai)
  8107. {
  8108. GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(130), (float) this.GetPix(100), (float) this.GetPix(25)),
  8109. "目の開閉",
  8110. style1);
  8111. eyeclose = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8112. (float) this.GetPix(150),
  8113. (float) this.GetPix(70),
  8114. (float) this.GetPix(20)),
  8115. eyeclose,
  8116. 0.0f,
  8117. 1f);
  8118. GUI.Label(new Rect((float) this.GetPix(88), (float) this.GetPix(130), (float) this.GetPix(100), (float) this.GetPix(25)),
  8119. "にっこり",
  8120. style1);
  8121. eyeclose2 = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8122. (float) this.GetPix(150),
  8123. (float) this.GetPix(70),
  8124. (float) this.GetPix(20)),
  8125. eyeclose2,
  8126. 0.0f,
  8127. 1f);
  8128. GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(170), (float) this.GetPix(100), (float) this.GetPix(25)),
  8129. "ジト目",
  8130. style1);
  8131. eyeclose3 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8132. (float) this.GetPix(190),
  8133. (float) this.GetPix(70),
  8134. (float) this.GetPix(20)),
  8135. eyeclose3,
  8136. 0.0f,
  8137. 1f);
  8138. GUI.Label(new Rect((float) this.GetPix(88), (float) this.GetPix(170), (float) this.GetPix(100), (float) this.GetPix(25)),
  8139. "ウインク",
  8140. style1);
  8141. eyeclose6 = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8142. (float) this.GetPix(190),
  8143. (float) this.GetPix(70),
  8144. (float) this.GetPix(20)),
  8145. eyeclose6,
  8146. 0.0f,
  8147. 1f);
  8148. GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(210), (float) this.GetPix(100), (float) this.GetPix(25)),
  8149. "ハイライト",
  8150. style1);
  8151. hitomih = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8152. (float) this.GetPix(230),
  8153. (float) this.GetPix(70),
  8154. (float) this.GetPix(20)),
  8155. hitomih,
  8156. 0.0f,
  8157. 2f);
  8158. GUI.Label(new Rect((float) this.GetPix(88), (float) this.GetPix(210), (float) this.GetPix(100), (float) this.GetPix(25)),
  8159. "瞳サイズ",
  8160. style1);
  8161. hitomis = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8162. (float) this.GetPix(230),
  8163. (float) this.GetPix(70),
  8164. (float) this.GetPix(20)),
  8165. hitomis,
  8166. 0.0f,
  8167. 1f);
  8168. GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(250), (float) this.GetPix(100), (float) this.GetPix(25)),
  8169. "眉角度",
  8170. style1);
  8171. mayuha = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8172. (float) this.GetPix(270),
  8173. (float) this.GetPix(70),
  8174. (float) this.GetPix(20)),
  8175. mayuha,
  8176. 0.0f,
  8177. 1f);
  8178. GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(290), (float) this.GetPix(100), (float) this.GetPix(25)),
  8179. "眉上げ",
  8180. style1);
  8181. mayuup = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8182. (float) this.GetPix(310),
  8183. (float) this.GetPix(70),
  8184. (float) this.GetPix(20)),
  8185. mayuup,
  8186. 0.0f,
  8187. 0.8f);
  8188. GUI.Label(new Rect((float) this.GetPix(88), (float) this.GetPix(290), (float) this.GetPix(100), (float) this.GetPix(25)),
  8189. "眉下げ",
  8190. style1);
  8191. mayuv = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8192. (float) this.GetPix(310),
  8193. (float) this.GetPix(70),
  8194. (float) this.GetPix(20)),
  8195. mayuv,
  8196. 0.0f,
  8197. 0.8f);
  8198. GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(330), (float) this.GetPix(100), (float) this.GetPix(25)),
  8199. "口開け1",
  8200. style1);
  8201. moutha = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8202. (float) this.GetPix(350),
  8203. (float) this.GetPix(70),
  8204. (float) this.GetPix(20)),
  8205. moutha,
  8206. 0.0f,
  8207. 1f);
  8208. GUI.Label(new Rect((float) this.GetPix(88), (float) this.GetPix(330), (float) this.GetPix(100), (float) this.GetPix(25)),
  8209. "口開け2",
  8210. style1);
  8211. mouths = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8212. (float) this.GetPix(350),
  8213. (float) this.GetPix(70),
  8214. (float) this.GetPix(20)),
  8215. mouths,
  8216. 0.0f,
  8217. 0.9f);
  8218. GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(370), (float) this.GetPix(100), (float) this.GetPix(25)),
  8219. "口角上げ",
  8220. style1);
  8221. mouthup = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8222. (float) this.GetPix(390),
  8223. (float) this.GetPix(70),
  8224. (float) this.GetPix(20)),
  8225. mouthup,
  8226. 0.0f,
  8227. 1.4f);
  8228. GUI.Label(new Rect((float) this.GetPix(88), (float) this.GetPix(370), (float) this.GetPix(100), (float) this.GetPix(25)),
  8229. "口角下げ",
  8230. style1);
  8231. mouthdw = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8232. (float) this.GetPix(390),
  8233. (float) this.GetPix(70),
  8234. (float) this.GetPix(20)),
  8235. mouthdw,
  8236. 0.0f,
  8237. 1f);
  8238. GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(410), (float) this.GetPix(100), (float) this.GetPix(25)),
  8239. "舌出し",
  8240. style1);
  8241. tangout = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8242. (float) this.GetPix(430),
  8243. (float) this.GetPix(70),
  8244. (float) this.GetPix(20)),
  8245. tangout,
  8246. 0.0f,
  8247. 1f);
  8248. GUI.Label(new Rect((float) this.GetPix(88), (float) this.GetPix(410), (float) this.GetPix(100), (float) this.GetPix(25)),
  8249. "舌上げ",
  8250. style1);
  8251. tangup = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8252. (float) this.GetPix(430),
  8253. (float) this.GetPix(70),
  8254. (float) this.GetPix(20)),
  8255. tangup,
  8256. 0.0f,
  8257. 0.7f);
  8258. isHoho2 = GUI.Toggle(new Rect((float) this.GetPix(5),
  8259. (float) this.GetPix(455),
  8260. (float) this.GetPix(50),
  8261. (float) this.GetPix(20)),
  8262. isHoho2,
  8263. "赤面",
  8264. style4);
  8265. isShock = GUI.Toggle(new Rect((float) this.GetPix(60),
  8266. (float) this.GetPix(455),
  8267. (float) this.GetPix(70),
  8268. (float) this.GetPix(20)),
  8269. isShock,
  8270. "ショック",
  8271. style4);
  8272. isNamida = GUI.Toggle(new Rect((float) this.GetPix(5),
  8273. (float) this.GetPix(480),
  8274. (float) this.GetPix(50),
  8275. (float) this.GetPix(20)),
  8276. isNamida,
  8277. "涙",
  8278. style4);
  8279. isYodare = GUI.Toggle(new Rect((float) this.GetPix(60),
  8280. (float) this.GetPix(480),
  8281. (float) this.GetPix(50),
  8282. (float) this.GetPix(20)),
  8283. isYodare,
  8284. "涎",
  8285. style4);
  8286. isTear1 = GUI.Toggle(new Rect((float) this.GetPix(5),
  8287. (float) this.GetPix(505),
  8288. (float) this.GetPix(50),
  8289. (float) this.GetPix(20)),
  8290. isTear1,
  8291. "涙1",
  8292. style4);
  8293. isTear2 = GUI.Toggle(new Rect((float) this.GetPix(60),
  8294. (float) this.GetPix(505),
  8295. (float) this.GetPix(50),
  8296. (float) this.GetPix(20)),
  8297. isTear2,
  8298. "涙2",
  8299. style4);
  8300. isTear3 = GUI.Toggle(new Rect((float) this.GetPix(115),
  8301. (float) this.GetPix(505),
  8302. (float) this.GetPix(50),
  8303. (float) this.GetPix(20)),
  8304. isTear3,
  8305. "涙3",
  8306. style4);
  8307. isHohos = GUI.Toggle(new Rect((float) this.GetPix(5),
  8308. (float) this.GetPix(530),
  8309. (float) this.GetPix(50),
  8310. (float) this.GetPix(20)),
  8311. isHohos,
  8312. "頬1",
  8313. style4);
  8314. isHoho = GUI.Toggle(new Rect((float) this.GetPix(60),
  8315. (float) this.GetPix(530),
  8316. (float) this.GetPix(50),
  8317. (float) this.GetPix(20)),
  8318. isHoho,
  8319. "頬2",
  8320. style4);
  8321. isHohol = GUI.Toggle(new Rect((float) this.GetPix(115),
  8322. (float) this.GetPix(530),
  8323. (float) this.GetPix(50),
  8324. (float) this.GetPix(20)),
  8325. isHohol,
  8326. "頬3",
  8327. style4);
  8328. }
  8329. else
  8330. {
  8331. int i1 = 120;
  8332. int i2 = 135;
  8333. int num = 28;
  8334. GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(i1), (float) this.GetPix(100), (float) this.GetPix(25)),
  8335. "目の開閉",
  8336. style2);
  8337. eyeclose = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8338. (float) this.GetPix(i2),
  8339. (float) this.GetPix(70),
  8340. (float) this.GetPix(20)),
  8341. eyeclose,
  8342. 0.0f,
  8343. 1f);
  8344. GUI.Label(new Rect((float) this.GetPix(88), (float) this.GetPix(i1), (float) this.GetPix(100), (float) this.GetPix(25)),
  8345. "にっこり",
  8346. style2);
  8347. eyeclose2 = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8348. (float) this.GetPix(i2),
  8349. (float) this.GetPix(70),
  8350. (float) this.GetPix(20)),
  8351. eyeclose2,
  8352. 0.0f,
  8353. 1f);
  8354. GUI.Label(new Rect((float) this.GetPix(8),
  8355. (float) this.GetPix(i1 + num),
  8356. (float) this.GetPix(100),
  8357. (float) this.GetPix(25)),
  8358. "ジト目",
  8359. style2);
  8360. eyeclose3 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8361. (float) this.GetPix(i2 + num),
  8362. (float) this.GetPix(70),
  8363. (float) this.GetPix(20)),
  8364. eyeclose3,
  8365. 0.0f,
  8366. 1f);
  8367. GUI.Label(new Rect((float) this.GetPix(88),
  8368. (float) this.GetPix(i1 + num),
  8369. (float) this.GetPix(100),
  8370. (float) this.GetPix(25)),
  8371. "見開く",
  8372. style2);
  8373. eyebig = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8374. (float) this.GetPix(i2 + num),
  8375. (float) this.GetPix(70),
  8376. (float) this.GetPix(20)),
  8377. eyebig,
  8378. 0.0f,
  8379. 1f);
  8380. GUI.Label(new Rect((float) this.GetPix(8),
  8381. (float) this.GetPix(i1 + num * 2),
  8382. (float) this.GetPix(100),
  8383. (float) this.GetPix(25)),
  8384. "ウインク1",
  8385. style2);
  8386. eyeclose6 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8387. (float) this.GetPix(i2 + num * 2),
  8388. (float) this.GetPix(70),
  8389. (float) this.GetPix(20)),
  8390. eyeclose6,
  8391. 0.0f,
  8392. 1f);
  8393. GUI.Label(new Rect((float) this.GetPix(88),
  8394. (float) this.GetPix(i1 + num * 2),
  8395. (float) this.GetPix(100),
  8396. (float) this.GetPix(25)),
  8397. "ウインク2",
  8398. style2);
  8399. eyeclose5 = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8400. (float) this.GetPix(i2 + num * 2),
  8401. (float) this.GetPix(70),
  8402. (float) this.GetPix(20)),
  8403. eyeclose5,
  8404. 0.0f,
  8405. 1f);
  8406. GUI.Label(new Rect((float) this.GetPix(8),
  8407. (float) this.GetPix(i1 + num * 3),
  8408. (float) this.GetPix(100),
  8409. (float) this.GetPix(25)),
  8410. "ハイライト",
  8411. style2);
  8412. hitomih = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8413. (float) this.GetPix(i2 + num * 3),
  8414. (float) this.GetPix(70),
  8415. (float) this.GetPix(20)),
  8416. hitomih,
  8417. 0.0f,
  8418. 2f);
  8419. GUI.Label(new Rect((float) this.GetPix(88),
  8420. (float) this.GetPix(i1 + num * 3),
  8421. (float) this.GetPix(100),
  8422. (float) this.GetPix(25)),
  8423. "瞳サイズ",
  8424. style2);
  8425. hitomis = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8426. (float) this.GetPix(i2 + num * 3),
  8427. (float) this.GetPix(70),
  8428. (float) this.GetPix(20)),
  8429. hitomis,
  8430. 0.0f,
  8431. 1f);
  8432. GUI.Label(new Rect((float) this.GetPix(8),
  8433. (float) this.GetPix(i1 + num * 4),
  8434. (float) this.GetPix(100),
  8435. (float) this.GetPix(25)),
  8436. "眉角度1",
  8437. style2);
  8438. mayuha = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8439. (float) this.GetPix(i2 + num * 4),
  8440. (float) this.GetPix(70),
  8441. (float) this.GetPix(20)),
  8442. mayuha,
  8443. 0.0f,
  8444. 1f);
  8445. GUI.Label(new Rect((float) this.GetPix(88),
  8446. (float) this.GetPix(i1 + num * 4),
  8447. (float) this.GetPix(100),
  8448. (float) this.GetPix(25)),
  8449. "眉角度2",
  8450. style2);
  8451. mayuw = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8452. (float) this.GetPix(i2 + num * 4),
  8453. (float) this.GetPix(70),
  8454. (float) this.GetPix(20)),
  8455. mayuw,
  8456. 0.0f,
  8457. 1f);
  8458. GUI.Label(new Rect((float) this.GetPix(8),
  8459. (float) this.GetPix(i1 + num * 5),
  8460. (float) this.GetPix(100),
  8461. (float) this.GetPix(25)),
  8462. "眉上げ",
  8463. style2);
  8464. mayuup = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8465. (float) this.GetPix(i2 + num * 5),
  8466. (float) this.GetPix(70),
  8467. (float) this.GetPix(20)),
  8468. mayuup,
  8469. 0.0f,
  8470. 0.8f);
  8471. GUI.Label(new Rect((float) this.GetPix(88),
  8472. (float) this.GetPix(i1 + num * 5),
  8473. (float) this.GetPix(100),
  8474. (float) this.GetPix(25)),
  8475. "眉下げ1",
  8476. style2);
  8477. mayuv = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8478. (float) this.GetPix(i2 + num * 5),
  8479. (float) this.GetPix(70),
  8480. (float) this.GetPix(20)),
  8481. mayuv,
  8482. 0.0f,
  8483. 0.8f);
  8484. GUI.Label(new Rect((float) this.GetPix(8),
  8485. (float) this.GetPix(i1 + num * 6),
  8486. (float) this.GetPix(100),
  8487. (float) this.GetPix(25)),
  8488. "眉下げ2",
  8489. style2);
  8490. mayuvhalf = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8491. (float) this.GetPix(i2 + num * 6),
  8492. (float) this.GetPix(70),
  8493. (float) this.GetPix(20)),
  8494. mayuvhalf,
  8495. 0.0f,
  8496. 0.9f);
  8497. GUI.Label(new Rect((float) this.GetPix(8),
  8498. (float) this.GetPix(i1 + num * 7),
  8499. (float) this.GetPix(100),
  8500. (float) this.GetPix(25)),
  8501. "口開け1",
  8502. style2);
  8503. moutha = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8504. (float) this.GetPix(i2 + num * 7),
  8505. (float) this.GetPix(70),
  8506. (float) this.GetPix(20)),
  8507. moutha,
  8508. 0.0f,
  8509. 1f);
  8510. GUI.Label(new Rect((float) this.GetPix(88),
  8511. (float) this.GetPix(i1 + num * 7),
  8512. (float) this.GetPix(100),
  8513. (float) this.GetPix(25)),
  8514. "口開け2",
  8515. style2);
  8516. mouths = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8517. (float) this.GetPix(i2 + num * 7),
  8518. (float) this.GetPix(70),
  8519. (float) this.GetPix(20)),
  8520. mouths,
  8521. 0.0f,
  8522. 0.9f);
  8523. GUI.Label(new Rect((float) this.GetPix(8),
  8524. (float) this.GetPix(i1 + num * 8),
  8525. (float) this.GetPix(100),
  8526. (float) this.GetPix(25)),
  8527. "口幅狭く",
  8528. style2);
  8529. mouthc = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8530. (float) this.GetPix(i2 + num * 8),
  8531. (float) this.GetPix(70),
  8532. (float) this.GetPix(20)),
  8533. mouthc,
  8534. 0.0f,
  8535. 1f);
  8536. GUI.Label(new Rect((float) this.GetPix(88),
  8537. (float) this.GetPix(i1 + num * 8),
  8538. (float) this.GetPix(100),
  8539. (float) this.GetPix(25)),
  8540. "口幅広く",
  8541. style2);
  8542. mouthi = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8543. (float) this.GetPix(i2 + num * 8),
  8544. (float) this.GetPix(70),
  8545. (float) this.GetPix(20)),
  8546. mouthi,
  8547. 0.0f,
  8548. 1f);
  8549. GUI.Label(new Rect((float) this.GetPix(8),
  8550. (float) this.GetPix(i1 + num * 9),
  8551. (float) this.GetPix(100),
  8552. (float) this.GetPix(25)),
  8553. "口角上げ",
  8554. style2);
  8555. mouthup = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8556. (float) this.GetPix(i2 + num * 9),
  8557. (float) this.GetPix(70),
  8558. (float) this.GetPix(20)),
  8559. mouthup,
  8560. 0.0f,
  8561. 1.4f);
  8562. GUI.Label(new Rect((float) this.GetPix(88),
  8563. (float) this.GetPix(i1 + num * 9),
  8564. (float) this.GetPix(100),
  8565. (float) this.GetPix(25)),
  8566. "口角下げ",
  8567. style2);
  8568. mouthdw = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8569. (float) this.GetPix(i2 + num * 9),
  8570. (float) this.GetPix(70),
  8571. (float) this.GetPix(20)),
  8572. mouthdw,
  8573. 0.0f,
  8574. 1f);
  8575. GUI.Label(new Rect((float) this.GetPix(8),
  8576. (float) this.GetPix(i1 + num * 10),
  8577. (float) this.GetPix(100),
  8578. (float) this.GetPix(25)),
  8579. "口中央上げ",
  8580. style2);
  8581. mouthhe = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8582. (float) this.GetPix(i2 + num * 10),
  8583. (float) this.GetPix(70),
  8584. (float) this.GetPix(20)),
  8585. mouthhe,
  8586. 0.0f,
  8587. 1f);
  8588. GUI.Label(new Rect((float) this.GetPix(88),
  8589. (float) this.GetPix(i1 + num * 10),
  8590. (float) this.GetPix(100),
  8591. (float) this.GetPix(25)),
  8592. "左口角上げ",
  8593. style2);
  8594. mouthuphalf = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8595. (float) this.GetPix(i2 + num * 10),
  8596. (float) this.GetPix(70),
  8597. (float) this.GetPix(20)),
  8598. mouthuphalf,
  8599. 0.0f,
  8600. 2f);
  8601. GUI.Label(new Rect((float) this.GetPix(8),
  8602. (float) this.GetPix(i1 + num * 11),
  8603. (float) this.GetPix(100),
  8604. (float) this.GetPix(25)),
  8605. "舌出し",
  8606. style2);
  8607. tangout = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8608. (float) this.GetPix(i2 + num * 11),
  8609. (float) this.GetPix(70),
  8610. (float) this.GetPix(20)),
  8611. tangout,
  8612. 0.0f,
  8613. 1f);
  8614. GUI.Label(new Rect((float) this.GetPix(88),
  8615. (float) this.GetPix(i1 + num * 11),
  8616. (float) this.GetPix(100),
  8617. (float) this.GetPix(25)),
  8618. "舌上げ",
  8619. style2);
  8620. tangup = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
  8621. (float) this.GetPix(i2 + num * 11),
  8622. (float) this.GetPix(70),
  8623. (float) this.GetPix(20)),
  8624. tangup,
  8625. 0.0f,
  8626. 0.7f);
  8627. GUI.Label(new Rect((float) this.GetPix(8),
  8628. (float) this.GetPix(i1 + num * 12),
  8629. (float) this.GetPix(100),
  8630. (float) this.GetPix(25)),
  8631. "舌根上げ",
  8632. style2);
  8633. tangopen = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
  8634. (float) this.GetPix(i2 + num * 12),
  8635. (float) this.GetPix(70),
  8636. (float) this.GetPix(20)),
  8637. tangopen,
  8638. 0.0f,
  8639. 1f);
  8640. bool enabled = GUI.enabled;
  8641. if (!faceCombo.isClickedComboButton)
  8642. GUI.enabled = true;
  8643. GUI.enabled = enabled;
  8644. isHoho2 = GUI.Toggle(new Rect((float) this.GetPix(5),
  8645. (float) this.GetPix(489),
  8646. (float) this.GetPix(50),
  8647. (float) this.GetPix(16)),
  8648. isHoho2,
  8649. "赤面",
  8650. style4);
  8651. isShock = GUI.Toggle(new Rect((float) this.GetPix(60),
  8652. (float) this.GetPix(489),
  8653. (float) this.GetPix(58),
  8654. (float) this.GetPix(16)),
  8655. isShock,
  8656. "ショック",
  8657. style4);
  8658. isNosefook = GUI.Toggle(new Rect((float) this.GetPix(115),
  8659. (float) this.GetPix(489),
  8660. (float) this.GetPix(62),
  8661. (float) this.GetPix(16)),
  8662. isNosefook,
  8663. "鼻フック",
  8664. style4);
  8665. isNamida = GUI.Toggle(new Rect((float) this.GetPix(5),
  8666. (float) this.GetPix(511),
  8667. (float) this.GetPix(50),
  8668. (float) this.GetPix(16)),
  8669. isNamida,
  8670. "涙",
  8671. style4);
  8672. isYodare = GUI.Toggle(new Rect((float) this.GetPix(60),
  8673. (float) this.GetPix(511),
  8674. (float) this.GetPix(50),
  8675. (float) this.GetPix(16)),
  8676. isYodare,
  8677. "涎",
  8678. style4);
  8679. isToothoff = !GUI.Toggle(new Rect((float) this.GetPix(115),
  8680. (float) this.GetPix(511),
  8681. (float) this.GetPix(50),
  8682. (float) this.GetPix(16)),
  8683. !isToothoff,
  8684. "歯",
  8685. style4);
  8686. isTear1 = GUI.Toggle(new Rect((float) this.GetPix(5),
  8687. (float) this.GetPix(533),
  8688. (float) this.GetPix(50),
  8689. (float) this.GetPix(16)),
  8690. isTear1,
  8691. "涙1",
  8692. style4);
  8693. isTear2 = GUI.Toggle(new Rect((float) this.GetPix(60),
  8694. (float) this.GetPix(533),
  8695. (float) this.GetPix(50),
  8696. (float) this.GetPix(16)),
  8697. isTear2,
  8698. "涙2",
  8699. style4);
  8700. isTear3 = GUI.Toggle(new Rect((float) this.GetPix(115),
  8701. (float) this.GetPix(533),
  8702. (float) this.GetPix(50),
  8703. (float) this.GetPix(16)),
  8704. isTear3,
  8705. "涙3",
  8706. style4);
  8707. isHohos = GUI.Toggle(new Rect((float) this.GetPix(5),
  8708. (float) this.GetPix(555),
  8709. (float) this.GetPix(50),
  8710. (float) this.GetPix(16)),
  8711. isHohos,
  8712. "頬1",
  8713. style4);
  8714. isHoho = GUI.Toggle(new Rect((float) this.GetPix(60),
  8715. (float) this.GetPix(555),
  8716. (float) this.GetPix(50),
  8717. (float) this.GetPix(16)),
  8718. isHoho,
  8719. "頬2",
  8720. style4);
  8721. isHohol = GUI.Toggle(new Rect((float) this.GetPix(115),
  8722. (float) this.GetPix(555),
  8723. (float) this.GetPix(50),
  8724. (float) this.GetPix(16)),
  8725. isHohol,
  8726. "頬3",
  8727. style4);
  8728. }
  8729. int num1 = 0;
  8730. if (isShosai)
  8731. num1 = 22;
  8732. isFaceEdit = GUI.Toggle(new Rect((float) this.GetPix(5),
  8733. (float) this.GetPix(555 + num1),
  8734. (float) this.GetPix(50),
  8735. (float) this.GetPix(16)),
  8736. isFaceEdit,
  8737. "登録",
  8738. style4);
  8739. if (isFaceEdit)
  8740. {
  8741. inName4 = GUI.TextField(new Rect((float) this.GetPix(5),
  8742. (float) this.GetPix(575 + num1),
  8743. (float) this.GetPix(100),
  8744. (float) this.GetPix(20)),
  8745. inName4);
  8746. if (GUI.Button(new Rect((float) this.GetPix(107),
  8747. (float) this.GetPix(575 + num1),
  8748. (float) this.GetPix(35),
  8749. (float) this.GetPix(20)),
  8750. "追加",
  8751. style3))
  8752. {
  8753. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  8754. GUI.FocusControl("");
  8755. int num2 = 1;
  8756. for (int index = 1; index < 1000; ++index)
  8757. {
  8758. if (this.Preferences["face"]["f" + (object) index].Value == null)
  8759. {
  8760. num2 = index;
  8761. break;
  8762. }
  8763. }
  8764. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  8765. float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  8766. float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  8767. string str1 = inName4 + ":" + (object) fieldValue2[(int) morph.hash[(object) "eyeclose"]] + ","
  8768. + (object) fieldValue2[(int) morph.hash[(object) "eyeclose2"]] + ","
  8769. + (object) fieldValue2[(int) morph.hash[(object) "eyeclose3"]] + ","
  8770. + (object) fieldValue2[(int) morph.hash[(object) "eyeclose6"]] + ","
  8771. + (object) fieldValue1[(int) morph.hash[(object) "hitomih"]] + ","
  8772. + (object) fieldValue1[(int) morph.hash[(object) "hitomis"]] + ","
  8773. + (object) fieldValue1[(int) morph.hash[(object) "mayuha"]] + ","
  8774. + (object) fieldValue1[(int) morph.hash[(object) "mayuup"]] + ","
  8775. + (object) fieldValue1[(int) morph.hash[(object) "mayuv"]] + ","
  8776. + (object) fieldValue1[(int) morph.hash[(object) "mayuvhalf"]] + ","
  8777. + (object) fieldValue1[(int) morph.hash[(object) "moutha"]] + ","
  8778. + (object) fieldValue1[(int) morph.hash[(object) "mouths"]] + ","
  8779. + (object) fieldValue1[(int) morph.hash[(object) "mouthdw"]] + ","
  8780. + (object) fieldValue1[(int) morph.hash[(object) "mouthup"]] + ","
  8781. + (object) fieldValue1[(int) morph.hash[(object) "tangout"]] + ","
  8782. + (object) fieldValue1[(int) morph.hash[(object) "tangup"]] + ","
  8783. + (object) fieldValue1[(int) morph.hash[(object) "eyebig"]] + ","
  8784. + (object) fieldValue2[(int) morph.hash[(object) "eyeclose5"]] + ","
  8785. + (object) fieldValue1[(int) morph.hash[(object) "mayuw"]] + ","
  8786. + (object) fieldValue1[(int) morph.hash[(object) "mouthhe"]] + ","
  8787. + (object) fieldValue1[(int) morph.hash[(object) "mouthc"]] + ","
  8788. + (object) fieldValue1[(int) morph.hash[(object) "mouthi"]] + ","
  8789. + (object) fieldValue1[(int) morph.hash[(object) "mouthuphalf"]] + ",";
  8790. string str2;
  8791. try
  8792. {
  8793. str2 = str1 + (object) fieldValue1[(int) morph.hash[(object) "tangopen"]] + ",";
  8794. }
  8795. catch
  8796. {
  8797. str2 = str1 + "0,";
  8798. }
  8799. string str3 = (double) fieldValue1[(int) morph.hash[(object) "namida"]] <= 0.0
  8800. ? str2 + (object) 0 + ","
  8801. : str2 + (object) 1 + ",";
  8802. string str4 = (double) fieldValue1[(int) morph.hash[(object) "tear1"]] <= 0.0
  8803. ? str3 + (object) 0 + ","
  8804. : str3 + (object) 1 + ",";
  8805. string str5 = (double) fieldValue1[(int) morph.hash[(object) "tear2"]] <= 0.0
  8806. ? str4 + (object) 0 + ","
  8807. : str4 + (object) 1 + ",";
  8808. string str6 = (double) fieldValue1[(int) morph.hash[(object) "tear3"]] <= 0.0
  8809. ? str5 + (object) 0 + ","
  8810. : str5 + (object) 1 + ",";
  8811. string str7 = (double) fieldValue1[(int) morph.hash[(object) "shock"]] <= 0.0
  8812. ? str6 + (object) 0 + ","
  8813. : str6 + (object) 1 + ",";
  8814. string str8 = (double) fieldValue1[(int) morph.hash[(object) "yodare"]] <= 0.0
  8815. ? str7 + (object) 0 + ","
  8816. : str7 + (object) 1 + ",";
  8817. string str9 = (double) fieldValue1[(int) morph.hash[(object) "hoho"]] <= 0.0
  8818. ? str8 + (object) 0 + ","
  8819. : str8 + (object) 1 + ",";
  8820. string str10 = (double) fieldValue1[(int) morph.hash[(object) "hoho2"]] <= 0.0
  8821. ? str9 + (object) 0 + ","
  8822. : str9 + (object) 1 + ",";
  8823. string str11 = (double) fieldValue1[(int) morph.hash[(object) "hohos"]] <= 0.0
  8824. ? str10 + (object) 0 + ","
  8825. : str10 + (object) 1 + ",";
  8826. string str12 = (double) fieldValue1[(int) morph.hash[(object) "hohol"]] <= 0.0
  8827. ? str11 + (object) 0 + ","
  8828. : str11 + (object) 1 + ",";
  8829. string str13 = (double) fieldValue1[(int) morph.hash[(object) "toothoff"]] <= 0.0
  8830. ? str12 + (object) 0 + ","
  8831. : str12 + (object) 1 + ",";
  8832. string str14 = (double) fieldValue1[(int) morph.hash[(object) "nosefook"]] <= 0.0
  8833. ? str13 + (object) 0 + ":"
  8834. : str13 + (object) 1 + ":";
  8835. this.Preferences["face"]["f" + (object) num2].Value = str14;
  8836. this.SaveConfig();
  8837. List<string> stringList = new List<string>(300);
  8838. stringList.AddRange((IEnumerable<string>) faceArray);
  8839. for (int index = 1; index < 300; ++index)
  8840. {
  8841. IniKey iniKey = this.Preferences["face"]["f" + (object) index];
  8842. if (iniKey.Value != null)
  8843. {
  8844. string[] strArray = iniKey.Value.Split(':');
  8845. if (strArray.Length > 1)
  8846. stringList.Add(strArray[0] + "               :" + (object) index + ":" + strArray[1]);
  8847. }
  8848. else
  8849. break;
  8850. }
  8851. faceCombo.selectedItemIndex = 0;
  8852. faceComboList = new GUIContent[stringList.ToArray().Length];
  8853. for (int index = 0; index < stringList.ToArray().Length; ++index)
  8854. faceComboList[index] = new GUIContent(stringList.ToArray()[index]);
  8855. faceCombo.selectedItemIndex = stringList.ToArray().Length - 1;
  8856. inName4 = "";
  8857. }
  8858. if (faceIndex[selectMaidIndex] < faceArray.Length)
  8859. GUI.enabled = false;
  8860. if (GUI.Button(new Rect((float) this.GetPix(144),
  8861. (float) this.GetPix(575 + num1),
  8862. (float) this.GetPix(24),
  8863. (float) this.GetPix(20)),
  8864. "削",
  8865. style3))
  8866. {
  8867. GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
  8868. this.Preferences["face"]["f" + faceComboList[faceIndex[selectMaidIndex]].text.Split(':')[1]].Value = "del";
  8869. this.SaveConfig();
  8870. List<string> stringList = new List<string>(300);
  8871. stringList.AddRange((IEnumerable<string>) faceArray);
  8872. for (int index = 1; index < 300; ++index)
  8873. {
  8874. IniKey iniKey = this.Preferences["face"]["f" + (object) index];
  8875. if (iniKey.Value != null)
  8876. {
  8877. string[] strArray = iniKey.Value.Split(':');
  8878. if (strArray.Length > 1)
  8879. stringList.Add(strArray[0] + "               :" + (object) index + ":" + strArray[1]);
  8880. }
  8881. else
  8882. break;
  8883. }
  8884. faceCombo.selectedItemIndex = 0;
  8885. faceComboList = new GUIContent[stringList.ToArray().Length];
  8886. for (int index = 0; index < stringList.ToArray().Length; ++index)
  8887. faceComboList[index] = new GUIContent(stringList.ToArray()[index]);
  8888. faceCombo.selectedItemIndex = 0;
  8889. for (int index = 0; index < maidCnt; ++index)
  8890. {
  8891. if ((bool) ((Object) maidArray[index]) && maidArray[index].Visible
  8892. && stringList.ToArray().Length <= faceIndex[index])
  8893. faceIndex[index] = 0;
  8894. }
  8895. }
  8896. GUI.enabled = true;
  8897. }
  8898. if (faceCombo.isClickedComboButton)
  8899. GUI.enabled = true;
  8900. if (isFace[selectMaidIndex])
  8901. faceIndex[selectMaidIndex] =
  8902. faceCombo.List(new Rect((float) this.GetPix(35),
  8903. (float) this.GetPix(95),
  8904. (float) this.GetPix(95),
  8905. (float) this.GetPix(23)),
  8906. faceComboList[faceIndex[selectMaidIndex]].text,
  8907. faceComboList,
  8908. buttonStyle,
  8909. (GUIStyle) "box",
  8910. listStyle2);
  8911. else
  8912. faceCombo.List(new Rect((float) this.GetPix(35), (float) this.GetPix(95), (float) this.GetPix(95), (float) this.GetPix(23)),
  8913. faceComboList[faceIndex[selectMaidIndex]].text,
  8914. faceComboList,
  8915. buttonStyle,
  8916. (GUIStyle) "box",
  8917. listStyle2);
  8918. if (faceCombo.isClickedComboButton)
  8919. isCombo = true;
  8920. else if (isCombo)
  8921. {
  8922. isCombo = false;
  8923. TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
  8924. float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
  8925. morph.EyeMabataki = 0.0f;
  8926. if (faceIndex[selectMaidIndex] < faceArray.Length)
  8927. {
  8928. morph.MulBlendValues(faceArray[faceIndex[selectMaidIndex]], 1f);
  8929. }
  8930. else
  8931. {
  8932. float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
  8933. if (!isVR)
  8934. maidArray[selectMaidIndex].boMabataki = false;
  8935. string[] strArray = faceComboList[faceIndex[selectMaidIndex]].text.Split(':')[2].Split(',');
  8936. fieldValue2[(int) morph.hash[(object) "eyeclose"]] = float.Parse(strArray[0]);
  8937. fieldValue2[(int) morph.hash[(object) "eyeclose2"]] = float.Parse(strArray[1]);
  8938. fieldValue2[(int) morph.hash[(object) "eyeclose3"]] = float.Parse(strArray[2]);
  8939. fieldValue2[(int) morph.hash[(object) "eyeclose6"]] = float.Parse(strArray[3]);
  8940. fieldValue1[(int) morph.hash[(object) "hitomih"]] = float.Parse(strArray[4]);
  8941. fieldValue1[(int) morph.hash[(object) "hitomis"]] = float.Parse(strArray[5]);
  8942. fieldValue1[(int) morph.hash[(object) "mayuha"]] = float.Parse(strArray[6]);
  8943. fieldValue1[(int) morph.hash[(object) "mayuup"]] = float.Parse(strArray[7]);
  8944. fieldValue1[(int) morph.hash[(object) "mayuv"]] = float.Parse(strArray[8]);
  8945. fieldValue1[(int) morph.hash[(object) "mayuvhalf"]] = float.Parse(strArray[9]);
  8946. fieldValue1[(int) morph.hash[(object) "moutha"]] = float.Parse(strArray[10]);
  8947. fieldValue1[(int) morph.hash[(object) "mouths"]] = float.Parse(strArray[11]);
  8948. fieldValue1[(int) morph.hash[(object) "mouthdw"]] = float.Parse(strArray[12]);
  8949. fieldValue1[(int) morph.hash[(object) "mouthup"]] = float.Parse(strArray[13]);
  8950. fieldValue1[(int) morph.hash[(object) "tangout"]] = float.Parse(strArray[14]);
  8951. fieldValue1[(int) morph.hash[(object) "tangup"]] = float.Parse(strArray[15]);
  8952. fieldValue1[(int) morph.hash[(object) "eyebig"]] = float.Parse(strArray[16]);
  8953. fieldValue2[(int) morph.hash[(object) "eyeclose5"]] = float.Parse(strArray[17]);
  8954. fieldValue1[(int) morph.hash[(object) "mayuw"]] = float.Parse(strArray[18]);
  8955. fieldValue1[(int) morph.hash[(object) "mouthhe"]] = float.Parse(strArray[19]);
  8956. fieldValue1[(int) morph.hash[(object) "mouthc"]] = float.Parse(strArray[20]);
  8957. fieldValue1[(int) morph.hash[(object) "mouthi"]] = float.Parse(strArray[21]);
  8958. fieldValue1[(int) morph.hash[(object) "mouthuphalf"]] = float.Parse(strArray[22]) + 0.01f;
  8959. try
  8960. {
  8961. fieldValue1[(int) morph.hash[(object) "tangopen"]] = float.Parse(strArray[23]);
  8962. }
  8963. catch { }
  8964. if ((double) float.Parse(strArray[24]) == 1.0)
  8965. fieldValue1[(int) morph.hash[(object) "namida"]] = 1f;
  8966. else
  8967. fieldValue1[(int) morph.hash[(object) "namida"]] = 0.0f;
  8968. if ((double) float.Parse(strArray[25]) == 1.0)
  8969. fieldValue1[(int) morph.hash[(object) "tear1"]] = 1f;
  8970. else
  8971. fieldValue1[(int) morph.hash[(object) "tear1"]] = 0.0f;
  8972. if ((double) float.Parse(strArray[26]) == 1.0)
  8973. fieldValue1[(int) morph.hash[(object) "tear2"]] = 1f;
  8974. else
  8975. fieldValue1[(int) morph.hash[(object) "tear2"]] = 0.0f;
  8976. if ((double) float.Parse(strArray[27]) == 1.0)
  8977. fieldValue1[(int) morph.hash[(object) "tear3"]] = 1f;
  8978. else
  8979. fieldValue1[(int) morph.hash[(object) "tear3"]] = 0.0f;
  8980. if ((double) float.Parse(strArray[28]) == 1.0)
  8981. fieldValue1[(int) morph.hash[(object) "shock"]] = 1f;
  8982. else
  8983. fieldValue1[(int) morph.hash[(object) "shock"]] = 0.0f;
  8984. if ((double) float.Parse(strArray[29]) == 1.0)
  8985. fieldValue1[(int) morph.hash[(object) "yodare"]] = 1f;
  8986. else
  8987. fieldValue1[(int) morph.hash[(object) "yodare"]] = 0.0f;
  8988. if ((double) float.Parse(strArray[30]) == 1.0)
  8989. fieldValue1[(int) morph.hash[(object) "hoho"]] = 0.5f;
  8990. else
  8991. fieldValue1[(int) morph.hash[(object) "hoho"]] = 0.0f;
  8992. if ((double) float.Parse(strArray[31]) == 1.0)
  8993. fieldValue1[(int) morph.hash[(object) "hoho2"]] = 0.5f;
  8994. else
  8995. fieldValue1[(int) morph.hash[(object) "hoho2"]] = 0.0f;
  8996. if ((double) float.Parse(strArray[32]) == 1.0)
  8997. fieldValue1[(int) morph.hash[(object) "hohos"]] = 1f;
  8998. else
  8999. fieldValue1[(int) morph.hash[(object) "hohos"]] = 0.0f;
  9000. if ((double) float.Parse(strArray[33]) == 1.0)
  9001. fieldValue1[(int) morph.hash[(object) "hohol"]] = 1f;
  9002. else
  9003. fieldValue1[(int) morph.hash[(object) "hohol"]] = 0.0f;
  9004. if ((double) float.Parse(strArray[34]) == 1.0)
  9005. fieldValue1[(int) morph.hash[(object) "toothoff"]] = 1f;
  9006. else
  9007. fieldValue1[(int) morph.hash[(object) "toothoff"]] = 0.0f;
  9008. if (strArray.Length > 35)
  9009. morph.boNoseFook = (double) float.Parse(strArray[35]) == 1.0;
  9010. }
  9011. maidArray[selectMaidIndex].body0.Face.morph.FixBlendValues_Face();
  9012. isFaceInit = true;
  9013. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  9014. }
  9015. GUI.enabled = !faceCombo.isClickedComboButton;
  9016. yotogiFlg = false;
  9017. if (sceneLevel != 14
  9018. || !(bool)
  9019. ((Object)
  9020. GameObject
  9021. .Find("/UI Root/YotogiPlayPanel/CommandViewer/SkillViewer/MaskGroup/SkillGroup/CommandParent/CommandUnit")
  9022. ))
  9023. return;
  9024. yotogiFlg = true;
  9025. }
  9026. private void GuiFunc(int winID)
  9027. {
  9028. CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
  9029. GUIStyle style1 = (GUIStyle) "label";
  9030. style1.fontSize = this.GetPix(14);
  9031. style1.alignment = TextAnchor.UpperLeft;
  9032. GUIStyle style2 = (GUIStyle) "button";
  9033. style2.fontSize = this.GetPix(16);
  9034. style2.alignment = TextAnchor.MiddleCenter;
  9035. GUIStyle style3 = new GUIStyle((GUIStyle) "toggle");
  9036. style3.fontSize = this.GetPix(13);
  9037. float pix = (float) this.GetPix(70);
  9038. if (comboBoxList == null)
  9039. {
  9040. comboBoxControl.selectedItemIndex = 0;
  9041. comboBoxList = new GUIContent[11];
  9042. comboBoxList[0] = new GUIContent("通常");
  9043. comboBoxList[1] = new GUIContent("横一列");
  9044. comboBoxList[2] = new GUIContent("縦一列");
  9045. comboBoxList[3] = new GUIContent("斜め");
  9046. comboBoxList[4] = new GUIContent("円(外向き)");
  9047. comboBoxList[5] = new GUIContent("円(内向き)");
  9048. comboBoxList[6] = new GUIContent("扇");
  9049. comboBoxList[7] = new GUIContent("V");
  9050. comboBoxList[8] = new GUIContent("^");
  9051. comboBoxList[9] = new GUIContent("M");
  9052. comboBoxList[10] = new GUIContent("W");
  9053. }
  9054. bool flag1 = true;
  9055. if (faceFlg || poseFlg || (sceneFlg || kankyoFlg) || kankyo2Flg)
  9056. flag1 = false;
  9057. if (!isF6 && GUI.Toggle(new Rect((float) this.GetPix(2),
  9058. (float) this.GetPix(2),
  9059. (float) this.GetPix(39),
  9060. (float) this.GetPix(20)),
  9061. flag1,
  9062. "配置",
  9063. style3))
  9064. {
  9065. faceFlg = false;
  9066. poseFlg = false;
  9067. sceneFlg = false;
  9068. kankyoFlg = false;
  9069. kankyo2Flg = false;
  9070. bGui = true;
  9071. isGuiInit = true;
  9072. }
  9073. if (!yotogiFlg && GUI.Toggle(new Rect((float) this.GetPix(41),
  9074. (float) this.GetPix(2),
  9075. (float) this.GetPix(39),
  9076. (float) this.GetPix(20)),
  9077. poseFlg,
  9078. "操作",
  9079. style3))
  9080. {
  9081. poseFlg = true;
  9082. faceFlg = false;
  9083. sceneFlg = false;
  9084. kankyoFlg = false;
  9085. kankyo2Flg = false;
  9086. }
  9087. if (GUI.Toggle(new Rect((float) this.GetPix(80), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
  9088. faceFlg,
  9089. "表情",
  9090. style3))
  9091. {
  9092. faceFlg = true;
  9093. poseFlg = false;
  9094. sceneFlg = false;
  9095. kankyoFlg = false;
  9096. kankyo2Flg = false;
  9097. if (!faceFlg2)
  9098. {
  9099. isFaceInit = true;
  9100. faceFlg2 = true;
  9101. maidArray[selectMaidIndex].boMabataki = false;
  9102. faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
  9103. }
  9104. }
  9105. if (GUI.Toggle(new Rect((float) this.GetPix(119), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
  9106. kankyoFlg,
  9107. "環境",
  9108. style3))
  9109. {
  9110. poseFlg = false;
  9111. faceFlg = false;
  9112. sceneFlg = false;
  9113. kankyoFlg = true;
  9114. kankyo2Flg = false;
  9115. }
  9116. if (!(bool) ((Object) line1))
  9117. {
  9118. line1 = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.3f));
  9119. line2 = this.MakeTex(2, 2, new Color(0.7f, 0.7f, 0.7f, 0.6f));
  9120. }
  9121. GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(20), (float) this.GetPix(160), 2f), (Texture) line1);
  9122. GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(20), (float) this.GetPix(160), 1f), (Texture) line2);
  9123. int stockMaidCount1 = characterMgr.GetStockMaidCount();
  9124. Rect position;
  9125. Rect viewRect;
  9126. if (sceneLevel != 5)
  9127. {
  9128. position = new Rect((float) this.GetPix(7),
  9129. (float) this.GetPix(110),
  9130. rectWin.width - (float) this.GetPix(14),
  9131. rectWin.height * 0.83f);
  9132. viewRect = new Rect(0.0f,
  9133. 0.0f,
  9134. position.width * 0.85f,
  9135. (pix + (float) this.GetPix(5)) * (float) stockMaidCount1 + (float) this.GetPix(15));
  9136. }
  9137. else
  9138. {
  9139. position = new Rect((float) this.GetPix(7),
  9140. (float) this.GetPix(110),
  9141. rectWin.width - (float) this.GetPix(14),
  9142. (float) ((double) rectWin.height * 0.829999983310699 * 0.980000019073486));
  9143. viewRect = new Rect(0.0f,
  9144. 0.0f,
  9145. position.width * 0.85f,
  9146. (float) (((double) pix + (double) this.GetPix(5)) * (double) stockMaidCount1
  9147. + (double) this.GetPix(15) * 0.920000016689301));
  9148. }
  9149. float y = 0.0f;
  9150. if (comboBoxControl.isClickedComboButton)
  9151. GUI.enabled = false;
  9152. if (GUI.Button(new Rect((float) this.GetPix(10), (float) this.GetPix(78), rectWin.width * 0.85f, (float) this.GetPix(28)),
  9153. "呼び出す",
  9154. style2))
  9155. {
  9156. isYobidashi = true;
  9157. selectMaidIndex = 0;
  9158. copyIndex = 0;
  9159. for (int index = 0; index < maxMaidCnt; ++index)
  9160. {
  9161. if (!isLock[index] && ((bool) ((Object) maidArray[index]) && maidArray[index].Visible))
  9162. {
  9163. maidArray[index].CrossFade(poseArray[0] + ".anm", false, true, false, 0.0f, 1f);
  9164. maidArray[index].SetAutoTwistAll(true);
  9165. }
  9166. maidArray[index] = (Maid) null;
  9167. }
  9168. for (int index = 0; index < maxMaidCnt; ++index)
  9169. isStop[index] = false;
  9170. bGui = false;
  9171. isFadeOut = true;
  9172. GameMain.Instance.MainCamera.FadeOut(0.0f, false, (CameraMain.dgOnCompleteFade) null, true, new Color());
  9173. for (int index = 0; index < characterMgr.GetStockMaidCount(); ++index)
  9174. characterMgr.GetStockMaidList()[index].Visible = false;
  9175. }
  9176. GUIStyle style4 = (GUIStyle) "button";
  9177. style4.fontSize = this.GetPix(13);
  9178. GUIStyleState guiStyleState = new GUIStyleState();
  9179. if (GUI.Button(new Rect((float) this.GetPix(10), (float) this.GetPix(52), rectWin.width * 0.4f, (float) this.GetPix(23)),
  9180. "7人選択",
  9181. style4))
  9182. {
  9183. if (sceneLevel != 5)
  9184. {
  9185. selectList = new ArrayList();
  9186. selectList.Add((object) 0);
  9187. selectList.Add((object) 1);
  9188. selectList.Add((object) 2);
  9189. selectList.Add((object) 3);
  9190. selectList.Add((object) 4);
  9191. selectList.Add((object) 5);
  9192. selectList.Add((object) 6);
  9193. }
  9194. else
  9195. {
  9196. int stockMaidCount2 = characterMgr.GetStockMaidCount();
  9197. selectList = new ArrayList();
  9198. selectList.Add((object) editMaid);
  9199. if (stockMaidCount2 > 1)
  9200. {
  9201. if (editMaid >= 1)
  9202. selectList.Add((object) 0);
  9203. else if (stockMaidCount2 > 2)
  9204. selectList.Add((object) 1);
  9205. }
  9206. if (stockMaidCount2 > 2)
  9207. {
  9208. if (editMaid >= 2)
  9209. selectList.Add((object) 1);
  9210. else if (stockMaidCount2 > 3)
  9211. selectList.Add((object) 2);
  9212. }
  9213. if (stockMaidCount2 > 3)
  9214. {
  9215. if (editMaid >= 3)
  9216. selectList.Add((object) 2);
  9217. else if (stockMaidCount2 > 4)
  9218. selectList.Add((object) 3);
  9219. }
  9220. if (stockMaidCount2 > 4)
  9221. {
  9222. if (editMaid >= 4)
  9223. selectList.Add((object) 3);
  9224. else if (stockMaidCount2 > 5)
  9225. selectList.Add((object) 4);
  9226. }
  9227. if (stockMaidCount2 > 5)
  9228. {
  9229. if (editMaid >= 5)
  9230. selectList.Add((object) 4);
  9231. else if (stockMaidCount2 > 6)
  9232. selectList.Add((object) 5);
  9233. }
  9234. if (stockMaidCount2 > 6)
  9235. {
  9236. if (editMaid >= 6)
  9237. selectList.Add((object) 5);
  9238. else if (stockMaidCount2 > 7)
  9239. selectList.Add((object) 6);
  9240. }
  9241. }
  9242. }
  9243. if (GUI.Button(new Rect(rectWin.width * 0.5f, (float) this.GetPix(52), rectWin.width * 0.4f, (float) this.GetPix(23)),
  9244. "選択解除",
  9245. style4))
  9246. {
  9247. selectList = new ArrayList();
  9248. if (sceneLevel == 5)
  9249. selectList.Add((object) editMaid);
  9250. }
  9251. GUI.enabled = true;
  9252. scrollPos = GUI.BeginScrollView(position, scrollPos, viewRect);
  9253. for (int nStockNo = 0; nStockNo < characterMgr.GetStockMaidCount(); ++nStockNo)
  9254. {
  9255. GUI.enabled = true;
  9256. GUI.DrawTexture(new Rect(2f, y + 2f, (float) ((double) rectWin.width * 0.829999983310699 - 4.0), pix - 4f),
  9257. (Texture) Texture2D.whiteTexture);
  9258. bool flag2 = false;
  9259. for (int index = 0; index < selectList.Count; ++index)
  9260. {
  9261. if ((int) selectList[index] == nStockNo)
  9262. {
  9263. flag2 = true;
  9264. break;
  9265. }
  9266. }
  9267. if (comboBoxControl.isClickedComboButton)
  9268. {
  9269. GUI.enabled = false;
  9270. GUI.Button(new Rect(0.0f, y, rectWin.width * 0.83f, pix), "", style2);
  9271. GUI.Button(new Rect(0.0f, y, rectWin.width * 0.83f, pix), "", style2);
  9272. }
  9273. if (GUI.Button(new Rect(0.0f, y, rectWin.width * 0.83f, pix), "", style2))
  9274. {
  9275. if (flag2)
  9276. {
  9277. for (int index = 0; index < selectList.Count; ++index)
  9278. {
  9279. if ((int) selectList[index] == nStockNo && (sceneLevel != 5 || (int) selectList[index] != editMaid))
  9280. {
  9281. selectList.Remove((object) nStockNo);
  9282. break;
  9283. }
  9284. }
  9285. }
  9286. else
  9287. {
  9288. if (selectList.Count > maxMaidCnt - 1)
  9289. selectList.Remove(selectList[maxMaidCnt - 1]);
  9290. selectList.Add((object) nStockNo);
  9291. }
  9292. }
  9293. GUI.enabled = true;
  9294. if (flag2)
  9295. GUI.DrawTexture(new Rect(5f, y + 5f, (float) ((double) rectWin.width * 0.829999983310699 - 10.0), pix - 10f),
  9296. (Texture) Texture2D.whiteTexture);
  9297. if ((bool) ((Object) characterMgr.GetStockMaid(nStockNo).GetThumIcon()))
  9298. GUI.DrawTexture(new Rect(0.0f, y - 5f, pix, pix), (Texture) characterMgr.GetStockMaid(nStockNo).GetThumIcon());
  9299. string text = characterMgr.GetStockMaid(nStockNo).status.lastName + "\n"
  9300. + characterMgr.GetStockMaid(nStockNo).status.firstName;
  9301. guiStyleState.textColor = Color.black;
  9302. style1.normal = guiStyleState;
  9303. GUI.Label(new Rect((float) this.GetPix(65), y + pix / 4f, pix * 2f, pix * 3f), text, style1);
  9304. if (flag2)
  9305. {
  9306. for (int index = 0; index < selectList.Count; ++index)
  9307. {
  9308. if ((int) selectList[index] == nStockNo)
  9309. {
  9310. GUI.Label(new Rect(rectWin.width * 0.7f, y + 6f, pix, pix), (index + 1).ToString(), style1);
  9311. break;
  9312. }
  9313. }
  9314. }
  9315. y += pix + (float) this.GetPix(5);
  9316. }
  9317. GUI.EndScrollView();
  9318. guiStyleState.textColor = Color.white;
  9319. style1.normal = guiStyleState;
  9320. comboBoxControl.List(new Rect((float) this.GetPix(10), (float) this.GetPix(25), rectWin.width * 0.56f, (float) this.GetPix(24)),
  9321. comboBoxList[comboBoxControl.GetSelectedItemIndex()].text,
  9322. comboBoxList,
  9323. listStyle);
  9324. if (!GUI.Button(new Rect(rectWin.width * 0.66f, (float) this.GetPix(25), rectWin.width * 0.24f, (float) this.GetPix(24)),
  9325. "決定",
  9326. style4))
  9327. return;
  9328. for (int index = 0; index < maxMaidCnt; ++index)
  9329. isStop[index] = false;
  9330. switch (comboBoxControl.GetSelectedItemIndex())
  9331. {
  9332. case 0:
  9333. for (int index = 0; index < maidCnt; ++index)
  9334. {
  9335. Vector3 zero1 = Vector3.zero;
  9336. Vector3 zero2 = Vector3.zero;
  9337. if (selectList.Count <= 7)
  9338. {
  9339. if (selectList.Count % 2 == 1)
  9340. {
  9341. switch (index)
  9342. {
  9343. case 0:
  9344. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.0f));
  9345. break;
  9346. case 1:
  9347. maidArray[index].SetPos(new Vector3(-0.6f, 0.0f, 0.26f));
  9348. break;
  9349. case 2:
  9350. maidArray[index].SetPos(new Vector3(0.6f, 0.0f, 0.26f));
  9351. break;
  9352. case 3:
  9353. maidArray[index].SetPos(new Vector3(-1.1f, 0.0f, 0.69f));
  9354. break;
  9355. case 4:
  9356. maidArray[index].SetPos(new Vector3(1.1f, 0.0f, 0.69f));
  9357. break;
  9358. case 5:
  9359. maidArray[index].SetPos(new Vector3(-1.47f, 0.0f, 1.1f));
  9360. break;
  9361. case 6:
  9362. maidArray[index].SetPos(new Vector3(1.47f, 0.0f, 1.1f));
  9363. break;
  9364. }
  9365. }
  9366. else
  9367. {
  9368. switch (index)
  9369. {
  9370. case 0:
  9371. maidArray[index].SetPos(new Vector3(0.3f, 0.0f, 0.0f));
  9372. break;
  9373. case 1:
  9374. maidArray[index].SetPos(new Vector3(-0.3f, 0.0f, 0.0f));
  9375. break;
  9376. case 2:
  9377. maidArray[index].SetPos(new Vector3(0.7f, 0.0f, 0.4f));
  9378. break;
  9379. case 3:
  9380. maidArray[index].SetPos(new Vector3(-0.7f, 0.0f, 0.4f));
  9381. break;
  9382. case 4:
  9383. maidArray[index].SetPos(new Vector3(1f, 0.0f, 0.9f));
  9384. break;
  9385. case 5:
  9386. maidArray[index].SetPos(new Vector3(-1f, 0.0f, 0.9f));
  9387. break;
  9388. }
  9389. }
  9390. }
  9391. else
  9392. {
  9393. float num1 = 0.0f;
  9394. if (selectList.Count >= 11)
  9395. {
  9396. float num2 = -0.4f;
  9397. if (selectList.Count % 2 == 1)
  9398. {
  9399. switch (index)
  9400. {
  9401. case 0:
  9402. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.0f + num2));
  9403. break;
  9404. case 1:
  9405. maidArray[index].SetPos(new Vector3(-0.5f, 0.0f, 0.2f + num2));
  9406. break;
  9407. case 2:
  9408. maidArray[index].SetPos(new Vector3(0.5f, 0.0f, 0.2f + num2));
  9409. break;
  9410. case 3:
  9411. maidArray[index].SetPos(new Vector3(-0.9f, 0.0f, 0.55f + num2));
  9412. break;
  9413. case 4:
  9414. maidArray[index].SetPos(new Vector3(0.9f, 0.0f, 0.55f + num2));
  9415. break;
  9416. case 5:
  9417. maidArray[index].SetPos(new Vector3(-1.25f, 0.0f, 0.9f + num2));
  9418. break;
  9419. case 6:
  9420. maidArray[index].SetPos(new Vector3(1.25f, 0.0f, 0.9f + num2));
  9421. break;
  9422. case 7:
  9423. maidArray[index].SetPos(new Vector3(-1.57f, 0.0f, 1.3f + num2));
  9424. break;
  9425. case 8:
  9426. maidArray[index].SetPos(new Vector3(1.57f, 0.0f, 1.3f + num2));
  9427. break;
  9428. case 9:
  9429. maidArray[index].SetPos(new Vector3(-1.77f, 0.0f, 1.72f + num2));
  9430. break;
  9431. case 10:
  9432. maidArray[index].SetPos(new Vector3(1.77f, 0.0f, 1.72f + num2));
  9433. break;
  9434. case 11:
  9435. maidArray[index].SetPos(new Vector3(-1.85f, 0.0f, 2.17f + num2));
  9436. break;
  9437. case 12:
  9438. maidArray[index].SetPos(new Vector3(1.85f, 0.0f, 2.17f + num2));
  9439. break;
  9440. default:
  9441. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f + num2));
  9442. break;
  9443. }
  9444. }
  9445. else
  9446. {
  9447. switch (index)
  9448. {
  9449. case 0:
  9450. maidArray[index].SetPos(new Vector3(0.25f, 0.0f, 0.0f + num2));
  9451. break;
  9452. case 1:
  9453. maidArray[index].SetPos(new Vector3(-0.25f, 0.0f, 0.0f + num2));
  9454. break;
  9455. case 2:
  9456. maidArray[index].SetPos(new Vector3(0.7f, 0.0f, 0.25f + num2));
  9457. break;
  9458. case 3:
  9459. maidArray[index].SetPos(new Vector3(-0.7f, 0.0f, 0.25f + num2));
  9460. break;
  9461. case 4:
  9462. maidArray[index].SetPos(new Vector3(1.05f, 0.0f, 0.6f + num2));
  9463. break;
  9464. case 5:
  9465. maidArray[index].SetPos(new Vector3(-1.05f, 0.0f, 0.6f + num2));
  9466. break;
  9467. case 6:
  9468. maidArray[index].SetPos(new Vector3(1.35f, 0.0f, 0.9f + num2));
  9469. break;
  9470. case 7:
  9471. maidArray[index].SetPos(new Vector3(-1.35f, 0.0f, 0.9f + num2));
  9472. break;
  9473. case 8:
  9474. maidArray[index].SetPos(new Vector3(1.6f, 0.0f, 1.3f + num2));
  9475. break;
  9476. case 9:
  9477. maidArray[index].SetPos(new Vector3(-1.6f, 0.0f, 1.3f + num2));
  9478. break;
  9479. case 10:
  9480. maidArray[index].SetPos(new Vector3(1.8f, 0.0f, 1.72f + num2));
  9481. break;
  9482. case 11:
  9483. maidArray[index].SetPos(new Vector3(-1.8f, 0.0f, 1.72f + num2));
  9484. break;
  9485. case 12:
  9486. maidArray[index].SetPos(new Vector3(1.9f, 0.0f, 2.17f + num2));
  9487. break;
  9488. case 13:
  9489. maidArray[index].SetPos(new Vector3(-1.9f, 0.0f, 2.17f + num2));
  9490. break;
  9491. default:
  9492. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f + num2));
  9493. break;
  9494. }
  9495. }
  9496. }
  9497. else if (selectList.Count >= 8)
  9498. {
  9499. if (selectList.Count >= 9)
  9500. num1 = -0.2f;
  9501. if (selectList.Count % 2 == 1)
  9502. {
  9503. switch (index)
  9504. {
  9505. case 0:
  9506. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.0f + num1));
  9507. break;
  9508. case 1:
  9509. maidArray[index].SetPos(new Vector3(-0.55f, 0.0f, 0.2f + num1));
  9510. break;
  9511. case 2:
  9512. maidArray[index].SetPos(new Vector3(0.55f, 0.0f, 0.2f + num1));
  9513. break;
  9514. case 3:
  9515. maidArray[index].SetPos(new Vector3(-1f, 0.0f, 0.6f + num1));
  9516. break;
  9517. case 4:
  9518. maidArray[index].SetPos(new Vector3(1f, 0.0f, 0.6f + num1));
  9519. break;
  9520. case 5:
  9521. maidArray[index].SetPos(new Vector3(-1.35f, 0.0f, 1f + num1));
  9522. break;
  9523. case 6:
  9524. maidArray[index].SetPos(new Vector3(1.35f, 0.0f, 1f + num1));
  9525. break;
  9526. case 7:
  9527. maidArray[index].SetPos(new Vector3(-1.6f, 0.0f, 1.4f + num1));
  9528. break;
  9529. case 8:
  9530. maidArray[index].SetPos(new Vector3(1.6f, 0.0f, 1.4f + num1));
  9531. break;
  9532. }
  9533. }
  9534. else
  9535. {
  9536. switch (index)
  9537. {
  9538. case 0:
  9539. maidArray[index].SetPos(new Vector3(0.28f, 0.0f, 0.0f + num1));
  9540. break;
  9541. case 1:
  9542. maidArray[index].SetPos(new Vector3(-0.28f, 0.0f, 0.0f + num1));
  9543. break;
  9544. case 2:
  9545. maidArray[index].SetPos(new Vector3(0.78f, 0.0f, 0.3f + num1));
  9546. break;
  9547. case 3:
  9548. maidArray[index].SetPos(new Vector3(-0.78f, 0.0f, 0.3f + num1));
  9549. break;
  9550. case 4:
  9551. maidArray[index].SetPos(new Vector3(1.22f, 0.0f, 0.7f + num1));
  9552. break;
  9553. case 5:
  9554. maidArray[index].SetPos(new Vector3(-1.22f, 0.0f, 0.7f + num1));
  9555. break;
  9556. case 6:
  9557. maidArray[index].SetPos(new Vector3(1.55f, 0.0f, 1.1f + num1));
  9558. break;
  9559. case 7:
  9560. maidArray[index].SetPos(new Vector3(-1.55f, 0.0f, 1.1f + num1));
  9561. break;
  9562. case 8:
  9563. maidArray[index].SetPos(new Vector3(1.77f, 0.0f, 1.58f + num1));
  9564. break;
  9565. case 9:
  9566. maidArray[index].SetPos(new Vector3(-1.77f, 0.0f, 1.58f + num1));
  9567. break;
  9568. }
  9569. }
  9570. }
  9571. }
  9572. zero2.y = (float) (Math.Atan2((double) maidArray[index].transform.position.x,
  9573. (double) maidArray[index].transform.position.z - 1.5) * 180.0 / Math.PI) + 180f;
  9574. maidArray[index].SetRot(zero2);
  9575. }
  9576. break;
  9577. case 1:
  9578. for (int index = 0; index < maidCnt; ++index)
  9579. {
  9580. Vector3 zero1 = Vector3.zero;
  9581. Vector3 zero2 = Vector3.zero;
  9582. if (maidCnt < 9)
  9583. {
  9584. switch (index)
  9585. {
  9586. case 1:
  9587. zero1.x = -0.6f;
  9588. break;
  9589. case 2:
  9590. zero1.x = 0.6f;
  9591. break;
  9592. case 3:
  9593. zero1.x = -1.2f;
  9594. break;
  9595. case 4:
  9596. zero1.x = 1.2f;
  9597. break;
  9598. case 5:
  9599. zero1.x = -1.8f;
  9600. break;
  9601. case 6:
  9602. zero1.x = 1.8f;
  9603. break;
  9604. case 7:
  9605. zero1.x = -2.4f;
  9606. break;
  9607. case 8:
  9608. zero1.x = 2.4f;
  9609. break;
  9610. case 9:
  9611. zero1.x = -3f;
  9612. break;
  9613. case 10:
  9614. zero1.x = 3f;
  9615. break;
  9616. }
  9617. }
  9618. else
  9619. {
  9620. switch (index)
  9621. {
  9622. case 1:
  9623. zero1.x = -0.5f;
  9624. break;
  9625. case 2:
  9626. zero1.x = 0.5f;
  9627. break;
  9628. case 3:
  9629. zero1.x = -1f;
  9630. break;
  9631. case 4:
  9632. zero1.x = 1f;
  9633. break;
  9634. case 5:
  9635. zero1.x = -1.5f;
  9636. break;
  9637. case 6:
  9638. zero1.x = 1.5f;
  9639. break;
  9640. case 7:
  9641. zero1.x = -2f;
  9642. break;
  9643. case 8:
  9644. zero1.x = 2f;
  9645. break;
  9646. case 9:
  9647. zero1.x = -2.5f;
  9648. break;
  9649. case 10:
  9650. zero1.x = 2.5f;
  9651. break;
  9652. case 11:
  9653. zero1.x = -3f;
  9654. break;
  9655. case 12:
  9656. zero1.x = 3f;
  9657. break;
  9658. case 13:
  9659. zero1.x = -3.5f;
  9660. break;
  9661. }
  9662. }
  9663. maidArray[index].SetPos(zero1);
  9664. maidArray[index].SetRot(zero2);
  9665. if (index >= 14)
  9666. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
  9667. }
  9668. break;
  9669. case 2:
  9670. for (int index = 0; index < maidCnt; ++index)
  9671. {
  9672. Vector3 zero1 = Vector3.zero;
  9673. Vector3 zero2 = Vector3.zero;
  9674. if (maidCnt < 9)
  9675. {
  9676. switch (index)
  9677. {
  9678. case 1:
  9679. zero1.z = 0.6f;
  9680. break;
  9681. case 2:
  9682. zero1.z = -0.6f;
  9683. break;
  9684. case 3:
  9685. zero1.z = 1.2f;
  9686. break;
  9687. case 4:
  9688. zero1.z = -1.2f;
  9689. break;
  9690. case 5:
  9691. zero1.z = 1.8f;
  9692. break;
  9693. case 6:
  9694. zero1.z = -1.8f;
  9695. break;
  9696. case 7:
  9697. zero1.z = 2.4f;
  9698. break;
  9699. case 8:
  9700. zero1.z = -2.4f;
  9701. break;
  9702. case 9:
  9703. zero1.z = 3f;
  9704. break;
  9705. case 10:
  9706. zero1.z = -3f;
  9707. break;
  9708. }
  9709. }
  9710. else
  9711. {
  9712. switch (index)
  9713. {
  9714. case 1:
  9715. zero1.z = 0.5f;
  9716. break;
  9717. case 2:
  9718. zero1.z = -0.5f;
  9719. break;
  9720. case 3:
  9721. zero1.z = 1f;
  9722. break;
  9723. case 4:
  9724. zero1.z = -1f;
  9725. break;
  9726. case 5:
  9727. zero1.z = 1.5f;
  9728. break;
  9729. case 6:
  9730. zero1.z = -1.5f;
  9731. break;
  9732. case 7:
  9733. zero1.z = 2f;
  9734. break;
  9735. case 8:
  9736. zero1.z = -2f;
  9737. break;
  9738. case 9:
  9739. zero1.z = 2.5f;
  9740. break;
  9741. case 10:
  9742. zero1.z = -2.5f;
  9743. break;
  9744. case 11:
  9745. zero1.z = 3f;
  9746. break;
  9747. case 12:
  9748. zero1.z = -3f;
  9749. break;
  9750. case 13:
  9751. zero1.z = 3.5f;
  9752. break;
  9753. }
  9754. }
  9755. maidArray[index].SetPos(zero1);
  9756. maidArray[index].SetRot(zero2);
  9757. if (index >= 14)
  9758. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
  9759. }
  9760. break;
  9761. case 3:
  9762. for (int index = 0; index < maidCnt; ++index)
  9763. {
  9764. Vector3 zero1 = Vector3.zero;
  9765. Vector3 zero2 = Vector3.zero;
  9766. float num = 0.5f;
  9767. if (maidCnt > 11)
  9768. num = 0.25f;
  9769. else if (maidCnt > 9)
  9770. num = 0.32f;
  9771. else if (maidCnt > 7)
  9772. num = 0.4f;
  9773. switch (index)
  9774. {
  9775. case 1:
  9776. zero1.x = -num;
  9777. zero1.z = num;
  9778. break;
  9779. case 2:
  9780. zero1.x = num;
  9781. zero1.z = -num;
  9782. break;
  9783. case 3:
  9784. zero1.x = (float) (-(double) num * 2.0);
  9785. zero1.z = num * 2f;
  9786. break;
  9787. case 4:
  9788. zero1.x = num * 2f;
  9789. zero1.z = (float) (-(double) num * 2.0);
  9790. break;
  9791. case 5:
  9792. zero1.x = (float) (-(double) num * 3.0);
  9793. zero1.z = num * 3f;
  9794. break;
  9795. case 6:
  9796. zero1.x = num * 3f;
  9797. zero1.z = (float) (-(double) num * 3.0);
  9798. break;
  9799. case 7:
  9800. zero1.x = (float) (-(double) num * 4.0);
  9801. zero1.z = num * 4f;
  9802. break;
  9803. case 8:
  9804. zero1.x = num * 4f;
  9805. zero1.z = (float) (-(double) num * 4.0);
  9806. break;
  9807. case 9:
  9808. zero1.x = (float) (-(double) num * 5.0);
  9809. zero1.z = num * 5f;
  9810. break;
  9811. case 10:
  9812. zero1.x = num * 5f;
  9813. zero1.z = (float) (-(double) num * 5.0);
  9814. break;
  9815. case 11:
  9816. zero1.x = (float) (-(double) num * 6.0);
  9817. zero1.z = num * 6f;
  9818. break;
  9819. case 12:
  9820. zero1.x = num * 6f;
  9821. zero1.z = (float) (-(double) num * 6.0);
  9822. break;
  9823. case 13:
  9824. zero1.x = (float) (-(double) num * 7.0);
  9825. zero1.z = num * 7f;
  9826. break;
  9827. }
  9828. maidArray[index].SetPos(zero1);
  9829. maidArray[index].SetRot(zero2);
  9830. if (index >= 14)
  9831. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
  9832. }
  9833. break;
  9834. case 4:
  9835. for (int index = 0; index < maidCnt; ++index)
  9836. {
  9837. Vector3 zero1 = Vector3.zero;
  9838. Vector3 zero2 = Vector3.zero;
  9839. float num = (float) (0.400000005960464 + 0.0799999982118607 * (double) maidCnt);
  9840. zero1.x = num * (float) Math.Cos(Math.PI / 180.0 * (double) (90 + 360 * index / maidCnt));
  9841. zero1.z = num * (float) Math.Sin(Math.PI / 180.0 * (double) (90 + 360 * index / maidCnt));
  9842. maidArray[index].SetPos(zero1);
  9843. zero2.y = (float) (Math.Atan2((double) zero1.x, (double) zero1.z) * 180.0 / Math.PI);
  9844. maidArray[index].SetRot(zero2);
  9845. }
  9846. break;
  9847. case 5:
  9848. for (int index = 0; index < maidCnt; ++index)
  9849. {
  9850. Vector3 zero1 = Vector3.zero;
  9851. Vector3 zero2 = Vector3.zero;
  9852. float num = (float) (0.400000005960464 + 0.0799999982118607 * (double) maidCnt);
  9853. zero1.x = num * (float) Math.Cos(Math.PI / 180.0 * (double) (90 + 360 * index / maidCnt));
  9854. zero1.z = num * (float) Math.Sin(Math.PI / 180.0 * (double) (90 + 360 * index / maidCnt));
  9855. maidArray[index].SetPos(zero1);
  9856. zero2.y = (float) (Math.Atan2((double) zero1.x, (double) zero1.z) * 180.0 / Math.PI) + 180f;
  9857. maidArray[index].SetRot(zero2);
  9858. }
  9859. break;
  9860. case 6:
  9861. for (int index = 0; index < maidCnt; ++index)
  9862. {
  9863. Vector3 zero1 = Vector3.zero;
  9864. Vector3 zero2 = Vector3.zero;
  9865. float num = 0.0f;
  9866. if (maidCnt > 9)
  9867. num = -0.4f;
  9868. else if (maidCnt > 7)
  9869. num = -0.2f;
  9870. switch (index)
  9871. {
  9872. case 0:
  9873. zero1.z = 0.3f;
  9874. break;
  9875. case 1:
  9876. zero1.x = -0.9f;
  9877. zero1.z = -0.4f;
  9878. zero2.y = 40f;
  9879. break;
  9880. case 2:
  9881. zero1.x = 0.9f;
  9882. zero1.z = -0.4f;
  9883. zero2.y = -40f;
  9884. break;
  9885. case 3:
  9886. zero1.x = -0.4f;
  9887. zero1.z = -0.8f;
  9888. zero2.y = 20f;
  9889. break;
  9890. case 4:
  9891. zero1.x = 0.4f;
  9892. zero1.z = -0.8f;
  9893. zero2.y = -20f;
  9894. break;
  9895. case 5:
  9896. zero1.x = -1.2f;
  9897. zero1.z = 0.1f;
  9898. zero2.y = 60f;
  9899. break;
  9900. case 6:
  9901. zero1.x = 1.2f;
  9902. zero1.z = 0.1f;
  9903. zero2.y = -60f;
  9904. break;
  9905. case 7:
  9906. zero1.x = -1.5f;
  9907. zero1.z = 0.6f;
  9908. zero2.y = 80f;
  9909. break;
  9910. case 8:
  9911. zero1.x = 1.5f;
  9912. zero1.z = 0.6f;
  9913. zero2.y = -80f;
  9914. break;
  9915. case 9:
  9916. zero1.x = -1.6f;
  9917. zero1.z = 1.15f;
  9918. zero2.y = 100f;
  9919. break;
  9920. case 10:
  9921. zero1.x = 1.6f;
  9922. zero1.z = 1.15f;
  9923. zero2.y = -100f;
  9924. break;
  9925. case 11:
  9926. zero1.x = -1.6f;
  9927. zero1.z = 1.65f;
  9928. zero2.y = 110f;
  9929. break;
  9930. case 12:
  9931. zero1.x = 1.65f;
  9932. zero1.z = 1.65f;
  9933. zero2.y = -110f;
  9934. break;
  9935. case 13:
  9936. zero1.x = -1.65f;
  9937. zero1.z = 2.15f;
  9938. zero2.y = 120f;
  9939. break;
  9940. }
  9941. if (index > 0)
  9942. zero1.z += num;
  9943. else
  9944. zero1.z -= num;
  9945. maidArray[index].SetPos(zero1);
  9946. maidArray[index].SetRot(zero2);
  9947. if (index >= 14)
  9948. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
  9949. }
  9950. break;
  9951. case 7:
  9952. for (int index = 0; index < maidCnt; ++index)
  9953. {
  9954. Vector3 zero1 = Vector3.zero;
  9955. Vector3 zero2 = Vector3.zero;
  9956. float num = 0.0f;
  9957. if (maidCnt > 11)
  9958. num = 0.6f;
  9959. else if (maidCnt > 9)
  9960. num = 0.4f;
  9961. else if (maidCnt > 7)
  9962. num = 0.2f;
  9963. switch (index)
  9964. {
  9965. case 0:
  9966. zero1.z = 0.8f;
  9967. break;
  9968. case 1:
  9969. zero1.x = -0.45f;
  9970. zero1.z = 0.3f;
  9971. zero2.y = -10f;
  9972. break;
  9973. case 2:
  9974. zero1.x = 0.45f;
  9975. zero1.z = 0.3f;
  9976. zero2.y = 10f;
  9977. break;
  9978. case 3:
  9979. zero1.x = -0.8f;
  9980. zero1.z = -0.2f;
  9981. zero2.y = -20f;
  9982. break;
  9983. case 4:
  9984. zero1.x = 0.8f;
  9985. zero1.z = -0.2f;
  9986. zero2.y = 20f;
  9987. break;
  9988. case 5:
  9989. zero1.x = -1.2f;
  9990. zero1.z = -0.75f;
  9991. zero2.y = -30f;
  9992. break;
  9993. case 6:
  9994. zero1.x = 1.2f;
  9995. zero1.z = -0.75f;
  9996. zero2.y = 30f;
  9997. break;
  9998. case 7:
  9999. zero1.x = -1.6f;
  10000. zero1.z = -1.25f;
  10001. zero2.y = -40f;
  10002. break;
  10003. case 8:
  10004. zero1.x = 1.6f;
  10005. zero1.z = -1.25f;
  10006. zero2.y = 40f;
  10007. break;
  10008. case 9:
  10009. zero1.x = -2f;
  10010. zero1.z = -1.75f;
  10011. zero2.y = -50f;
  10012. break;
  10013. case 10:
  10014. zero1.x = 2f;
  10015. zero1.z = -1.75f;
  10016. zero2.y = 50f;
  10017. break;
  10018. case 11:
  10019. zero1.x = -2.4f;
  10020. zero1.z = -2.25f;
  10021. zero2.y = -60f;
  10022. break;
  10023. case 12:
  10024. zero1.x = 2.4f;
  10025. zero1.z = -2.25f;
  10026. zero2.y = 60f;
  10027. break;
  10028. case 13:
  10029. zero1.x = -2.8f;
  10030. zero1.z = -2.75f;
  10031. zero2.y = -70f;
  10032. break;
  10033. }
  10034. zero1.z += num;
  10035. maidArray[index].SetPos(zero1);
  10036. maidArray[index].SetRot(zero2);
  10037. if (index >= 14)
  10038. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
  10039. }
  10040. break;
  10041. case 8:
  10042. for (int index = 0; index < maidCnt; ++index)
  10043. {
  10044. Vector3 zero1 = Vector3.zero;
  10045. Vector3 zero2 = Vector3.zero;
  10046. float num = 0.0f;
  10047. if (maidCnt > 11)
  10048. num = -0.6f;
  10049. else if (maidCnt > 9)
  10050. num = -0.4f;
  10051. else if (maidCnt > 7)
  10052. num = -0.2f;
  10053. switch (index)
  10054. {
  10055. case 0:
  10056. zero1.z = -0.75f;
  10057. break;
  10058. case 1:
  10059. zero1.x = -0.45f;
  10060. zero1.z = -0.2f;
  10061. zero2.y = 20f;
  10062. break;
  10063. case 2:
  10064. zero1.x = 0.45f;
  10065. zero1.z = -0.2f;
  10066. zero2.y = -20f;
  10067. break;
  10068. case 3:
  10069. zero1.x = -0.8f;
  10070. zero1.z = 0.3f;
  10071. zero2.y = 35f;
  10072. break;
  10073. case 4:
  10074. zero1.x = 0.8f;
  10075. zero1.z = 0.3f;
  10076. zero2.y = -35f;
  10077. break;
  10078. case 5:
  10079. zero1.x = -1.2f;
  10080. zero1.z = 0.8f;
  10081. zero2.y = 50f;
  10082. break;
  10083. case 6:
  10084. zero1.x = 1.2f;
  10085. zero1.z = 0.8f;
  10086. zero2.y = -50f;
  10087. break;
  10088. case 7:
  10089. zero1.x = -1.6f;
  10090. zero1.z = 1.3f;
  10091. zero2.y = 65f;
  10092. break;
  10093. case 8:
  10094. zero1.x = 1.6f;
  10095. zero1.z = 1.3f;
  10096. zero2.y = -65f;
  10097. break;
  10098. case 9:
  10099. zero1.x = -2f;
  10100. zero1.z = 1.8f;
  10101. zero2.y = 80f;
  10102. break;
  10103. case 10:
  10104. zero1.x = 2f;
  10105. zero1.z = 1.8f;
  10106. zero2.y = -80f;
  10107. break;
  10108. case 11:
  10109. zero1.x = -2.4f;
  10110. zero1.z = 2.3f;
  10111. zero2.y = 90f;
  10112. break;
  10113. case 12:
  10114. zero1.x = 2.4f;
  10115. zero1.z = 2.3f;
  10116. zero2.y = -90f;
  10117. break;
  10118. case 13:
  10119. zero1.x = -2.8f;
  10120. zero1.z = 2.8f;
  10121. zero2.y = 100f;
  10122. break;
  10123. }
  10124. zero1.z += num;
  10125. maidArray[index].SetPos(zero1);
  10126. maidArray[index].SetRot(zero2);
  10127. if (index >= 14)
  10128. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
  10129. }
  10130. break;
  10131. case 9:
  10132. for (int index = 0; index < maidCnt; ++index)
  10133. {
  10134. Vector3 zero1 = Vector3.zero;
  10135. Vector3 zero2 = Vector3.zero;
  10136. float num = 1f;
  10137. if (maidCnt > 9)
  10138. num = 0.84f;
  10139. else if (maidCnt > 7)
  10140. num = 0.92f;
  10141. switch (index)
  10142. {
  10143. case 0:
  10144. zero1.z = 0.0f;
  10145. break;
  10146. case 1:
  10147. zero1.x = -0.5f;
  10148. zero1.z = -0.5f;
  10149. break;
  10150. case 2:
  10151. zero1.x = 0.5f;
  10152. zero1.z = -0.5f;
  10153. break;
  10154. case 3:
  10155. zero1.x = -1f;
  10156. zero1.z = 0.2f;
  10157. break;
  10158. case 4:
  10159. zero1.x = 1f;
  10160. zero1.z = 0.2f;
  10161. break;
  10162. case 5:
  10163. zero1.x = -1.5f;
  10164. zero1.z = -0.5f;
  10165. break;
  10166. case 6:
  10167. zero1.x = 1.5f;
  10168. zero1.z = -0.5f;
  10169. break;
  10170. case 7:
  10171. zero1.x = -2f;
  10172. zero1.z = 0.2f;
  10173. break;
  10174. case 8:
  10175. zero1.x = 2f;
  10176. zero1.z = 0.2f;
  10177. break;
  10178. case 9:
  10179. zero1.x = -2.5f;
  10180. zero1.z = -0.5f;
  10181. break;
  10182. case 10:
  10183. zero1.x = 2.5f;
  10184. zero1.z = -0.5f;
  10185. break;
  10186. case 11:
  10187. zero1.x = -3f;
  10188. zero1.z = 0.2f;
  10189. break;
  10190. case 12:
  10191. zero1.x = 3f;
  10192. zero1.z = 0.2f;
  10193. break;
  10194. case 13:
  10195. zero1.x = -3.5f;
  10196. zero1.z = -0.5f;
  10197. break;
  10198. }
  10199. zero1.x *= num;
  10200. maidArray[index].SetPos(zero1);
  10201. maidArray[index].SetRot(zero2);
  10202. if (index >= 14)
  10203. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
  10204. }
  10205. break;
  10206. case 10:
  10207. for (int index = 0; index < maidCnt; ++index)
  10208. {
  10209. Vector3 zero1 = Vector3.zero;
  10210. Vector3 zero2 = Vector3.zero;
  10211. float num = 1f;
  10212. if (maidCnt > 9)
  10213. num = 0.84f;
  10214. else if (maidCnt > 7)
  10215. num = 0.92f;
  10216. switch (index)
  10217. {
  10218. case 0:
  10219. zero1.z = -0.4f;
  10220. break;
  10221. case 1:
  10222. zero1.x = -0.5f;
  10223. zero1.z = 0.2f;
  10224. break;
  10225. case 2:
  10226. zero1.x = 0.5f;
  10227. zero1.z = 0.2f;
  10228. break;
  10229. case 3:
  10230. zero1.x = -1f;
  10231. zero1.z = -0.5f;
  10232. break;
  10233. case 4:
  10234. zero1.x = 1f;
  10235. zero1.z = -0.5f;
  10236. break;
  10237. case 5:
  10238. zero1.x = -1.5f;
  10239. zero1.z = 0.2f;
  10240. break;
  10241. case 6:
  10242. zero1.x = 1.5f;
  10243. zero1.z = 0.2f;
  10244. break;
  10245. case 7:
  10246. zero1.x = -2f;
  10247. zero1.z = -0.5f;
  10248. break;
  10249. case 8:
  10250. zero1.x = 2f;
  10251. zero1.z = -0.5f;
  10252. break;
  10253. case 9:
  10254. zero1.x = -2.5f;
  10255. zero1.z = 0.2f;
  10256. break;
  10257. case 10:
  10258. zero1.x = 2.5f;
  10259. zero1.z = 0.2f;
  10260. break;
  10261. case 11:
  10262. zero1.x = -3f;
  10263. zero1.z = -0.5f;
  10264. break;
  10265. case 12:
  10266. zero1.x = 3f;
  10267. zero1.z = -0.5f;
  10268. break;
  10269. case 13:
  10270. zero1.x = -3.5f;
  10271. zero1.z = 0.2f;
  10272. break;
  10273. }
  10274. zero1.x *= num;
  10275. maidArray[index].SetPos(zero1);
  10276. maidArray[index].SetRot(zero2);
  10277. if (index >= 14)
  10278. maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
  10279. }
  10280. break;
  10281. }
  10282. for (int index = 0; index < maxMaidCnt; ++index)
  10283. {
  10284. if (!isLock[index] && ((Object) maidArray[index] != (Object) null && maidArray[index].Visible))
  10285. {
  10286. maidArray[index].CrossFade(poseArray[0] + ".anm", false, true, false, 0.0f, 1f);
  10287. maidArray[index].SetAutoTwistAll(true);
  10288. }
  10289. }
  10290. }
  10291. private void GuiFunc3(int winID)
  10292. {
  10293. GUIStyle style1 = (GUIStyle) "label";
  10294. style1.fontSize = this.GetPix(12);
  10295. style1.alignment = TextAnchor.UpperLeft;
  10296. GUIStyle style2 = (GUIStyle) "button";
  10297. style2.fontSize = this.GetPix(16);
  10298. GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(4), (float) this.GetPix(80), (float) this.GetPix(25)),
  10299. "名前",
  10300. style1);
  10301. inName = GUI.TextField(new Rect((float) this.GetPix(35),
  10302. (float) this.GetPix(4),
  10303. (float) this.GetPix(120),
  10304. (float) this.GetPix(20)),
  10305. inName);
  10306. GUI.Label(new Rect((float) this.GetPix(180), (float) this.GetPix(4), (float) this.GetPix(100), (float) this.GetPix(25)),
  10307. "サイズ",
  10308. style1);
  10309. fontSize = (int) GUI.HorizontalSlider(new Rect((float) this.GetPix(220),
  10310. (float) this.GetPix(9),
  10311. (float) this.GetPix(100),
  10312. (float) this.GetPix(20)),
  10313. (float) fontSize,
  10314. 25f,
  10315. 60f);
  10316. if (fontSize != mFontSize)
  10317. {
  10318. mFontSize = fontSize;
  10319. GameObject gameObject = GameObject.Find("__GameMain__/SystemUI Root").transform.Find("MessageWindowPanel").gameObject;
  10320. MessageClass messageClass = new MessageClass(gameObject, GameMain.Instance.ScriptMgr.adv_kag.MessageWindowMgr);
  10321. SetFieldValue2<UILabel, int>(UTY.GetChildObject(gameObject, "MessageViewer/MsgParent/Message", false)
  10322. .GetComponent<UILabel>(),
  10323. "mFontSize",
  10324. fontSize);
  10325. }
  10326. GUI.Label(new Rect((float) this.GetPix(325), (float) this.GetPix(4), (float) this.GetPix(100), (float) this.GetPix(25)),
  10327. fontSize.ToString() + "pt",
  10328. style1);
  10329. inText = GUI.TextArea(new Rect((float) this.GetPix(8),
  10330. (float) this.GetPix(26),
  10331. rectWin2.width - (float) this.GetPix(15),
  10332. (float) this.GetPix(52)),
  10333. inText,
  10334. 300);
  10335. if (!GUI.Button(new Rect((float) this.GetPix(8), (float) this.GetPix(82), (float) this.GetPix(60), (float) this.GetPix(20)),
  10336. "決定",
  10337. style2))
  10338. return;
  10339. isMessage = true;
  10340. bGuiMessage = false;
  10341. GameObject gameObject1 = GameObject.Find("__GameMain__/SystemUI Root").transform.Find("MessageWindowPanel").gameObject;
  10342. MessageWindowMgr messageWindowMgr = GameMain.Instance.ScriptMgr.adv_kag.MessageWindowMgr;
  10343. messageWindowMgr.OpenMessageWindowPanel();
  10344. MessageClass inst = new MessageClass(gameObject1, messageWindowMgr);
  10345. UILabel component = UTY.GetChildObject(gameObject1, "MessageViewer/MsgParent/Message", false).GetComponent<UILabel>();
  10346. component.ProcessText();
  10347. SetFieldValue2<UILabel, int>(component, "mFontSize", fontSize);
  10348. SetFieldValue5<MessageClass, UILabel>(inst, "message_label_", component);
  10349. inst.SetText(inName, inText, "", 0);
  10350. inst.FinishChAnime();
  10351. }
  10352. }
  10353. }