12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735 |
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.IO;
- using System.Linq;
- using System.Text;
- using ExIni;
- using MyRoomCustom;
- using UnityEngine;
- using UnityEngine.Rendering;
- using Object = UnityEngine.Object;
- namespace CM3D2.MultipleMaids.Plugin
- {
- public partial class MultipleMaids
- {
- private Dictionary<string, int>[] dicts = new Dictionary<string, int>[4];
- public void OnGUI()
- {
- for (int index1 = 0; index1 < maidCnt; ++index1)
- {
- if (isPoseIti[index1])
- {
- Maid maid = maidArray[index1];
- isPoseIti[index1] = false;
- maid.transform.position = poseIti[index1];
- Vector3 eulerAngles = maid.transform.eulerAngles;
- for (int index2 = 0; index2 < 10; ++index2)
- {
- Transform transform1 = maid.transform;
- Vector3 position1 = maid.transform.position;
- Vector3 right = Vector3.right;
- Quaternion rotation = maid.transform.rotation;
- double num1 = -(double) rotation.eulerAngles.x;
- transform1.RotateAround(position1, right, (float) num1);
- Transform transform2 = maid.transform;
- Vector3 position2 = maid.transform.position;
- Vector3 forward = Vector3.forward;
- rotation = maid.transform.rotation;
- double num2 = -(double) rotation.eulerAngles.z;
- transform2.RotateAround(position2, forward, (float) num2);
- }
- Transform transform = CMT.SearchObjName(maid.body0.m_Bones.transform, "Bip01", true);
- transform.position = new Vector3(poseIti[index1].x, transform.position.y, poseIti[index1].z);
- maid.transform.eulerAngles = eulerAngles;
- }
- }
- GUIStyle style = (GUIStyle) "box";
- style.fontSize = this.GetPix(11);
- style.alignment = TextAnchor.UpperRight;
- if (bGui)
- {
- if (isGuiInit || screenSize != new Vector2((float) Screen.width, (float) Screen.height))
- {
- isGuiInit = false;
- screenSize = new Vector2((float) Screen.width, (float) Screen.height);
- }
- if (sceneLevel != 5 && sceneLevel != 14)
- {
- if (kankyoFlg || kankyo2Flg)
- rectWin.Set(0.0f, 0.0f, (float) this.GetPix(210), (float) Screen.height * 0.9f);
- else
- rectWin.Set(0.0f, 0.0f, (float) this.GetPix(170), (float) Screen.height * 0.9f);
- }
- else if (kankyoFlg || kankyo2Flg)
- rectWin.Set(0.0f,
- 0.0f,
- (float) this.GetPix(210),
- (float) ((double) Screen.height * 0.899999976158142 * 0.850000023841858));
- else
- rectWin.Set(0.0f,
- 0.0f,
- (float) this.GetPix(170),
- (float) ((double) Screen.height * 0.899999976158142 * 0.850000023841858));
- rectWin.x = screenSize.x - rectWin.width;
- rectWin.y = (float) this.GetPix(65);
- if (sceneLevel == 14)
- rectWin.x = screenSize.x - rectWin.width - (float) this.GetPix(23);
- comboBoxControl.height = rectWin.height;
- faceCombo.height = rectWin.height;
- poseCombo.height = rectWin.height;
- poseGroupCombo.height = rectWin.height;
- itemCombo.height = rectWin.height;
- bgmCombo.height = rectWin.height;
- itemCombo2.height = rectWin.height;
- bgCombo2.height = rectWin.height;
- kankyoCombo.height = rectWin.height;
- bgCombo.height = rectWin.height;
- slotCombo.height = rectWin.height;
- doguCombo.height = rectWin.height;
- parCombo.height = rectWin.height;
- lightCombo.height = rectWin.height;
- GameMain.Instance.MainCamera.SetControl(true);
- if (!sceneFlg && !faceFlg && (!poseFlg && !kankyoFlg) && (!kankyo2Flg && !isF6) && okFlg)
- {
- if ((double) Input.GetAxis("Mouse ScrollWheel") != 0.0)
- GameMain.Instance.MainCamera.SetControl(!rectWin.Contains(new Vector2(Input.mousePosition.x,
- (float) Screen.height
- - Input.mousePosition.y)));
- rectWin = GUI.Window(129, rectWin, new GUI.WindowFunction(this.GuiFunc), "", style);
- }
- else if (sceneFlg)
- {
- rectWin = GUI.Window(129, rectWin, new GUI.WindowFunction(this.GuiFunc5), "", style);
- Rect rect = new Rect(0.0f, 0.0f, 0.0f, 0.0f);
- dispNo = 0;
- for (int index = 0; index < 10; ++index)
- {
- rect = new Rect(0.0f, 0.0f, (float) this.GetPix(170), (float) this.GetPix(36));
- rect.x = screenSize.x - rect.width;
- rect.y = rectWin.y + (float) this.GetPix(64 + 50 * index);
- if (rect.Contains(new Vector2(Input.mousePosition.x, (float) Screen.height - Input.mousePosition.y)))
- {
- dispNo = index + 1;
- break;
- }
- }
- if (saveScene2 > 0)
- dispNo = 0;
- if (dispNo == 0)
- {
- texture2D = (Texture2D) null;
- dispNoOld = 0;
- }
- else if (dispNo != dispNoOld)
- {
- dispNoOld = dispNo;
- texture2D = (Texture2D) null;
- try
- {
- IniKey iniKey = this.Preferences["scene"]["ss" + (object) (page * 10 + dispNo)];
- if (iniKey.Value != null && iniKey.Value != "")
- {
- byte[] data = Convert.FromBase64String(iniKey.Value);
- texture2D = new Texture2D(1, 1, TextureFormat.ARGB32, false);
- texture2D.LoadImage(data);
- }
- }
- catch { }
- }
- if ((Object) texture2D != (Object) null)
- {
- if ((Object) waku == (Object) null)
- {
- waku = this.MakeTex(2, 2, new Color(1f, 1f, 1f, 1f));
- waku2 = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.4f));
- }
- Rect position1 = new Rect(rect.x - (float) texture2D.width - (float) this.GetPix(18),
- rect.y - (float) (texture2D.height / 2) + (float) this.GetPix(12),
- (float) (texture2D.width + this.GetPix(12)),
- (float) (texture2D.height + this.GetPix(12)));
- Rect position2 = new Rect(rect.x - (float) texture2D.width - (float) this.GetPix(12),
- rect.y - (float) (texture2D.height / 2) + (float) this.GetPix(18),
- (float) texture2D.width,
- (float) texture2D.height);
- Rect position3 = new Rect(rect.x - (float) texture2D.width - (float) this.GetPix(16),
- rect.y - (float) (texture2D.height / 2) + (float) this.GetPix(14),
- (float) (texture2D.width + this.GetPix(12)),
- (float) (texture2D.height + this.GetPix(12)));
- if ((double) position1.y + (double) position1.height > (double) Screen.height)
- {
- float num = position3.y + position3.height - (float) Screen.height;
- position1.y -= num;
- position2.y -= num;
- position3.y -= num;
- }
- GUI.DrawTexture(position3, (Texture) waku2);
- GUI.DrawTexture(position1, (Texture) waku);
- GUI.DrawTexture(position2, (Texture) texture2D);
- }
- }
- else if (kankyoFlg)
- {
- if (bgmCombo.isClickedComboButton || bgCombo.isClickedComboButton || doguCombo.isClickedComboButton
- || parCombo.isClickedComboButton)
- {
- if ((double) Input.GetAxis("Mouse ScrollWheel") != 0.0)
- GameMain.Instance.MainCamera.SetControl(!rectWin.Contains(new Vector2(Input.mousePosition.x,
- (float) Screen.height
- - Input.mousePosition.y)));
- }
- else if (!yotogiFlg && sceneLevel != 3 && sceneLevel != 5
- && rectWin.Contains(new Vector2(Input.mousePosition.x, (float) Screen.height - Input.mousePosition.y))
- && Input.GetMouseButtonDown(0))
- Input.ResetInputAxes();
- rectWin = GUI.Window(129, rectWin, new GUI.WindowFunction(this.GuiFunc6), "", style);
- }
- else if (kankyo2Flg)
- {
- if ((double) Input.GetAxis("Mouse ScrollWheel") != 0.0)
- GameMain.Instance.MainCamera.SetControl(!rectWin.Contains(new Vector2(Input.mousePosition.x,
- (float) Screen.height
- - Input.mousePosition.y)));
- if (!yotogiFlg && sceneLevel != 3 && sceneLevel != 5
- && rectWin.Contains(new Vector2(Input.mousePosition.x, (float) Screen.height - Input.mousePosition.y))
- && Input.GetMouseButtonDown(0))
- Input.ResetInputAxes();
- rectWin = GUI.Window(129, rectWin, new GUI.WindowFunction(this.GuiFunc7), "", style);
- }
- else if (poseFlg)
- {
- if (poseGroupCombo.isClickedComboButton || poseCombo.isClickedComboButton || itemCombo.isClickedComboButton)
- {
- if ((double) Input.GetAxis("Mouse ScrollWheel") != 0.0)
- GameMain.Instance.MainCamera.SetControl(!rectWin.Contains(new Vector2(Input.mousePosition.x,
- (float) Screen.height
- - Input.mousePosition.y)));
- }
- else if (!yotogiFlg && sceneLevel != 3 && sceneLevel != 5
- && rectWin.Contains(new Vector2(Input.mousePosition.x, (float) Screen.height - Input.mousePosition.y))
- && Input.GetMouseButtonDown(0))
- Input.ResetInputAxes();
- rectWin = GUI.Window(129, rectWin, new GUI.WindowFunction(this.GuiFunc4), "", style);
- }
- else
- {
- if (faceCombo.isClickedComboButton)
- {
- if ((double) Input.GetAxis("Mouse ScrollWheel") != 0.0)
- GameMain.Instance.MainCamera.SetControl(!rectWin.Contains(new Vector2(Input.mousePosition.x,
- (float) Screen.height
- - Input.mousePosition.y)));
- }
- else if (!yotogiFlg && sceneLevel != 3 && sceneLevel != 5
- && rectWin.Contains(new Vector2(Input.mousePosition.x, (float) Screen.height - Input.mousePosition.y))
- && Input.GetMouseButtonDown(0))
- Input.ResetInputAxes();
- rectWin = GUI.Window(129, rectWin, new GUI.WindowFunction(this.GuiFunc2), "", style);
- }
- }
- if (!bGuiMessage)
- return;
- screenSize = new Vector2((float) Screen.width, (float) Screen.height);
- rectWin2.Set(0.0f, 0.0f, (float) Screen.width * 0.4f, (float) Screen.height * 0.15f);
- rectWin2.x = (float) ((double) screenSize.x / 2.0 - (double) rectWin2.width / 2.0);
- rectWin2.y = sceneLevel != 5 ? screenSize.y - rectWin2.height : screenSize.y * 0.94f - rectWin2.height;
- rectWin2 = GUI.Window(129, rectWin2, new GUI.WindowFunction(this.GuiFunc3), "", style);
- }
- private void GuiFunc5(int winID)
- {
- GUIStyle style1 = (GUIStyle) "label";
- style1.fontSize = this.GetPix(12);
- style1.alignment = TextAnchor.UpperLeft;
- GUIStyle style2 = (GUIStyle) "button";
- style2.fontSize = this.GetPix(12);
- style2.alignment = TextAnchor.MiddleCenter;
- GUI.Label(new Rect((float) this.GetPix(50), (float) this.GetPix(6), (float) this.GetPix(100), (float) this.GetPix(25)),
- "シーン管理",
- style1);
- if (GUI.Button(new Rect((float) this.GetPix(135), (float) this.GetPix(3), (float) this.GetPix(23), (float) this.GetPix(23)),
- "→",
- style2))
- {
- faceFlg = false;
- poseFlg = false;
- sceneFlg = false;
- kankyoFlg = true;
- kankyo2Flg = false;
- bGui = true;
- isGuiInit = true;
- copyIndex = 0;
- }
- int num1 = 50;
- if (GUI.Button(new Rect((float) this.GetPix(25), (float) this.GetPix(31), (float) this.GetPix(23), (float) this.GetPix(23)),
- "<",
- style2))
- {
- --page;
- if (page < 0)
- page = maxPage - 1;
- for (int index = 0; index < 10; ++index)
- {
- date[index] = "未保存";
- ninzu[index] = "";
- IniKey iniKey = this.Preferences["scene"]["s" + (object) (page * 10 + index + 1)];
- if (iniKey.Value != null && iniKey.Value.ToString() != "")
- {
- string[] strArray1 = iniKey.Value.Split('_');
- if (strArray1.Length >= 2)
- {
- string[] strArray2 = strArray1[0].Split(',');
- date[index] = strArray2[0];
- ninzu[index] = strArray2[1] + "人";
- }
- }
- }
- }
- if (GUI.Button(new Rect((float) this.GetPix(115), (float) this.GetPix(31), (float) this.GetPix(23), (float) this.GetPix(23)),
- ">",
- style2))
- {
- ++page;
- if (page >= maxPage)
- page = 0;
- for (int index = 0; index < 10; ++index)
- {
- date[index] = "未保存";
- ninzu[index] = "";
- IniKey iniKey = this.Preferences["scene"]["s" + (object) (page * 10 + index + 1)];
- if (iniKey.Value != null && iniKey.Value.ToString() != "")
- {
- string[] strArray1 = iniKey.Value.Split('_');
- if (strArray1.Length >= 2)
- {
- string[] strArray2 = strArray1[0].Split(',');
- date[index] = strArray2[0];
- ninzu[index] = strArray2[1] + "人";
- }
- }
- }
- }
- GUI.Label(new Rect((float) this.GetPix(60), (float) this.GetPix(32), (float) this.GetPix(100), (float) this.GetPix(25)),
- (page * 10 + 1).ToString() + " ~ " + (object) (page * 10 + 10),
- style1);
- if (saveScene2 > 0 && string.IsNullOrEmpty(thum_byte_to_base64_) && File.Exists(thum_file_path_))
- {
- try
- {
- Texture2D tex = new Texture2D(1, 1, TextureFormat.ARGB32, false);
- tex.LoadImage(File.ReadAllBytes(thum_file_path_));
- float num2 = (float) tex.width / (float) tex.height;
- Vector2 vector2 = new Vector2(480f, 270f);
- int newWidth = tex.width;
- int newHeight = tex.height;
- if ((double) vector2.x < (double) tex.width && (double) vector2.y < (double) tex.height)
- {
- newWidth = (int) vector2.x;
- newHeight = Mathf.RoundToInt((float) newWidth / num2);
- if ((double) vector2.y < (double) newHeight)
- {
- newHeight = (int) vector2.y;
- newWidth = Mathf.RoundToInt((float) newHeight * num2);
- }
- }
- else if ((double) vector2.x < (double) tex.width)
- {
- newWidth = (int) vector2.x;
- newHeight = Mathf.RoundToInt((float) newWidth / num2);
- }
- else if ((double) vector2.y < (double) tex.height)
- {
- newHeight = (int) vector2.y;
- newWidth = Mathf.RoundToInt((float) newHeight * num2);
- }
- TextureScale.Bilinear(tex, newWidth, newHeight);
- thum_byte_to_base64_ = Convert.ToBase64String(tex.EncodeToPNG());
- DestroyImmediate((Object) tex);
- this.Preferences["scene"]["ss" + (object) saveScene2].Value = thum_byte_to_base64_;
- this.SaveConfig();
- thum_file_path_ = "";
- saveScene2 = 0;
- }
- catch { }
- }
- for (int index = 0; index < 10; ++index)
- {
- GUI.Label(new Rect((float) this.GetPix(5),
- (float) this.GetPix(60 + num1 * index),
- (float) this.GetPix(25),
- (float) this.GetPix(25)),
- string.Concat((object) (page * 10 + index + 1)),
- style1);
- if (GUI.Button(new Rect((float) this.GetPix(20),
- (float) this.GetPix(78 + num1 * index),
- (float) this.GetPix(50),
- (float) this.GetPix(20)),
- "保存",
- style2))
- {
- saveScene = page * 10 + index + 1;
- saveScene2 = saveScene;
- GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
- isScreen2 = true;
- if (!isMessage)
- {
- ui_cam_hide_list_.Clear();
- foreach (UICamera uiCamera in NGUITools.FindActive<UICamera>())
- {
- if (uiCamera.GetComponent<Camera>().enabled)
- {
- uiCamera.GetComponent<Camera>().enabled = false;
- ui_cam_hide_list_.Add(uiCamera);
- }
- }
- }
- else
- {
- editUI = GameObject.Find("/UI Root/Camera");
- if ((Object) editUI != (Object) null)
- editUI.SetActive(false);
- if (GameMain.Instance.CMSystem.ViewFps)
- UTY.GetChildObject(GameMain.Instance.gameObject, "SystemUI Root/FpsCounter", false).SetActive(false);
- GameObject childObject1 = UTY.GetChildObject(GameMain.Instance.gameObject, "SystemUI Root/SystemDialog", false);
- GameObject childObject2 = UTY.GetChildObject(GameMain.Instance.gameObject, "SystemUI Root/SystemShortcut", false);
- childObject1.SetActive(false);
- childObject2.SetActive(false);
- }
- isGui = bGui;
- bGui = false;
- try
- {
- thum_byte_to_base64_ = string.Empty;
- thum_file_path_ = Path.Combine(Path.GetTempPath(), "cm3d2_" + Guid.NewGuid().ToString() + ".png");
- GameMain.Instance.MainCamera.ScreenShot(thum_file_path_, 1, true);
- }
- catch { }
- }
- GUI.Label(new Rect((float) this.GetPix(25),
- (float) this.GetPix(60 + num1 * index),
- (float) this.GetPix(100),
- (float) this.GetPix(25)),
- date[index],
- style1);
- GUI.Label(new Rect((float) this.GetPix(130),
- (float) this.GetPix(60 + num1 * index),
- (float) this.GetPix(100),
- (float) this.GetPix(25)),
- ninzu[index],
- style1);
- if (date[index] != "未保存" && GUI.Button(new Rect((float) this.GetPix(100),
- (float) this.GetPix(78 + num1 * index),
- (float) this.GetPix(50),
- (float) this.GetPix(20)),
- "読込",
- style2))
- {
- loadScene = page * 10 + index + 1;
- GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
- }
- }
- }
- private void GuiFunc7(int winID)
- {
- GUIStyle guiStyle1 = (GUIStyle) "label";
- guiStyle1.fontSize = this.GetPix(12);
- guiStyle1.alignment = TextAnchor.UpperLeft;
- GUIStyle style1 = (GUIStyle) "label";
- style1.fontSize = this.GetPix(11);
- style1.alignment = TextAnchor.UpperLeft;
- GUIStyle style2 = (GUIStyle) "button";
- style2.fontSize = this.GetPix(20);
- GUIStyle buttonStyle = (GUIStyle) "button";
- buttonStyle.fontSize = this.GetPix(14);
- buttonStyle.alignment = TextAnchor.MiddleLeft;
- GUIStyle guiStyle2 = (GUIStyle) "button";
- guiStyle2.fontSize = this.GetPix(12);
- guiStyle2.alignment = TextAnchor.MiddleLeft;
- GUIStyle style3 = new GUIStyle((GUIStyle) "toggle");
- style3.fontSize = this.GetPix(13);
- CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
- Maid maid = maidArray[selectMaidIndex];
- if (!kankyo2InitFlg)
- {
- listStyle2.normal.textColor = Color.white;
- listStyle2.normal.background = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.5f));
- listStyle2.onHover.background = listStyle2.hover.background = new Texture2D(2, 2);
- listStyle2.padding.left = listStyle2.padding.right = listStyle2.padding.top = listStyle2.padding.bottom = this.GetPix(0);
- listStyle2.fontSize = this.GetPix(11);
- listStyle3.normal.textColor = Color.white;
- listStyle3.normal.background = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.5f));
- listStyle3.onHover.background = listStyle3.hover.background = new Texture2D(2, 2);
- listStyle3.padding.left = listStyle3.padding.right = listStyle3.padding.top = this.GetPix(0);
- listStyle3.padding.bottom = this.GetPix(0);
- listStyle3.fontSize = this.GetPix(14);
- bgCombo2.selectedItemIndex = bgIndexB;
- bgCombo2List = new GUIContent[bgArray.Length];
- for (int index = 0; index < bgArray.Length; ++index)
- {
- switch (bgArray[index])
- {
- case "BackStage":
- bgCombo2List[index] = new GUIContent("ステージ裏");
- break;
- case "Bar":
- bgCombo2List[index] = new GUIContent("バー");
- break;
- case "BarLounge":
- bgCombo2List[index] = new GUIContent("バー");
- break;
- case "Bathroom":
- bgCombo2List[index] = new GUIContent("風呂");
- break;
- case "BigSight":
- bgCombo2List[index] = new GUIContent("ビッグサイト");
- break;
- case "BigSight_Night":
- bgCombo2List[index] = new GUIContent("ビッグサイト(夜)");
- break;
- case "Casino":
- bgCombo2List[index] = new GUIContent("カジノ");
- break;
- case "CasinoMini":
- bgCombo2List[index] = new GUIContent("カジノミニ");
- break;
- case "ClassRoom":
- bgCombo2List[index] = new GUIContent("教室");
- break;
- case "ClassRoom_Play":
- bgCombo2List[index] = new GUIContent("教室(夜伽)");
- break;
- case "DanceRoom":
- bgCombo2List[index] = new GUIContent("トレーニングルーム");
- break;
- case "DressRoom_NoMirror":
- bgCombo2List[index] = new GUIContent("ドレスルーム");
- break;
- case "EmpireClub_Entrance":
- bgCombo2List[index] = new GUIContent("エントランス");
- break;
- case "EmpireClub_Rotary":
- bgCombo2List[index] = new GUIContent("ロータリー");
- break;
- case "EmpireClub_Rotary_Night":
- bgCombo2List[index] = new GUIContent("ロータリー(夜)");
- break;
- case "GameShop":
- bgCombo2List[index] = new GUIContent("ゲームショップ");
- break;
- case "HeroineRoom_A":
- bgCombo2List[index] = new GUIContent("ツンデレ部屋");
- break;
- case "HeroineRoom_A1":
- bgCombo2List[index] = new GUIContent("無垢部屋");
- break;
- case "HeroineRoom_A1_Night":
- bgCombo2List[index] = new GUIContent("無垢部屋(夜)");
- break;
- case "HeroineRoom_A_Night":
- bgCombo2List[index] = new GUIContent("ツンデレ部屋(夜)");
- break;
- case "HeroineRoom_B":
- bgCombo2List[index] = new GUIContent("クーデレ部屋");
- break;
- case "HeroineRoom_B1":
- bgCombo2List[index] = new GUIContent("真面目部屋");
- break;
- case "HeroineRoom_B1_Night":
- bgCombo2List[index] = new GUIContent("真面目部屋(夜)");
- break;
- case "HeroineRoom_B_Night":
- bgCombo2List[index] = new GUIContent("クーデレ部屋(夜)");
- break;
- case "HeroineRoom_C":
- bgCombo2List[index] = new GUIContent("純真部屋");
- break;
- case "HeroineRoom_C1":
- bgCombo2List[index] = new GUIContent("凜デレ部屋");
- break;
- case "HeroineRoom_C1_Night":
- bgCombo2List[index] = new GUIContent("凜デレ部屋(夜)");
- break;
- case "HeroineRoom_C_Night":
- bgCombo2List[index] = new GUIContent("純真部屋(夜)");
- break;
- case "HeroineRoom_D1":
- bgCombo2List[index] = new GUIContent("Bookworm Room");
- break;
- case "HeroineRoom_D1_Night":
- bgCombo2List[index] = new GUIContent("Bookworm Room (Night)");
- break;
- case "HeroineRoom_D":
- bgCombo2List[index] = new GUIContent("Oneechan Room");
- break;
- case "HeroineRoom_D_Night":
- bgCombo2List[index] = new GUIContent("Oneechan Room (Night)");
- break;
- case "HeroineRoom_E":
- bgCombo2List[index] = new GUIContent("Sadist Room");
- break;
- case "HeroineRoom_E_Night":
- bgCombo2List[index] = new GUIContent("Sadist Room (Night)");
- break;
- case "HoneymoonRoom":
- bgCombo2List[index] = new GUIContent("ハネムーンルーム");
- break;
- case "Kitchen":
- bgCombo2List[index] = new GUIContent("キッチン");
- break;
- case "Kitchen_Night":
- bgCombo2List[index] = new GUIContent("キッチン(夜)");
- break;
- case "LargeBathRoom":
- bgCombo2List[index] = new GUIContent("大浴場");
- break;
- case "LiveStage":
- bgCombo2List[index] = new GUIContent("ステージ");
- break;
- case "LiveStage_Side":
- bgCombo2List[index] = new GUIContent("ステージ(ライト)");
- break;
- case "LiveStage_use_dance":
- bgCombo2List[index] = new GUIContent("ステージ(オフ)");
- break;
- case "LockerRoom":
- bgCombo2List[index] = new GUIContent("ロッカールーム");
- break;
- case "MaidRoom":
- bgCombo2List[index] = new GUIContent("メイド部屋");
- break;
- case "MainKitchen":
- bgCombo2List[index] = new GUIContent("キッチン");
- break;
- case "MainKitchen_LightOff":
- bgCombo2List[index] = new GUIContent("キッチン(オフ)");
- break;
- case "MainKitchen_Night":
- bgCombo2List[index] = new GUIContent("キッチン(夜)");
- break;
- case "MusicShop":
- bgCombo2List[index] = new GUIContent("ミュージックショップ");
- break;
- case "MyBedRoom":
- bgCombo2List[index] = new GUIContent("自室");
- break;
- case "MyBedRoom_Night":
- bgCombo2List[index] = new GUIContent("自室(夜)");
- break;
- case "MyBedRoom_NightOff":
- bgCombo2List[index] = new GUIContent("自室(消灯)");
- break;
- case "MyRoom":
- bgCombo2List[index] = new GUIContent("主人公部屋");
- break;
- case "MyRoom_Night":
- bgCombo2List[index] = new GUIContent("主人公部屋(夜)");
- break;
- case "Oheya":
- bgCombo2List[index] = new GUIContent("四畳半部屋");
- break;
- case "OiranRoom":
- bgCombo2List[index] = new GUIContent("花魁ルーム");
- break;
- case "OpemCafe":
- bgCombo2List[index] = new GUIContent("カフェ");
- break;
- case "OpemCafe_Night":
- bgCombo2List[index] = new GUIContent("カフェ(夜)");
- break;
- case "OutletPark":
- bgCombo2List[index] = new GUIContent("アウトレットパーク");
- break;
- case "Penthouse":
- bgCombo2List[index] = new GUIContent("ペントハウス");
- break;
- case "PlayRoom":
- bgCombo2List[index] = new GUIContent("プレイルーム");
- break;
- case "PlayRoom2":
- bgCombo2List[index] = new GUIContent("プレイルーム2");
- break;
- case "Pool":
- bgCombo2List[index] = new GUIContent("プール");
- break;
- case "PrivateRoom":
- bgCombo2List[index] = new GUIContent("プライベートルーム");
- break;
- case "PrivateRoom_Night":
- bgCombo2List[index] = new GUIContent("プライベートルーム(夜)");
- break;
- case "Restaurant":
- bgCombo2List[index] = new GUIContent("レストラン");
- break;
- case "Restaurant_Night":
- bgCombo2List[index] = new GUIContent("レストラン(夜)");
- break;
- case "SMClub":
- bgCombo2List[index] = new GUIContent("SMクラブ");
- break;
- case "SMRoom":
- bgCombo2List[index] = new GUIContent("SMルーム");
- break;
- case "SMRoom2":
- bgCombo2List[index] = new GUIContent("地下室");
- break;
- case "Salon":
- bgCombo2List[index] = new GUIContent("サロン");
- break;
- case "Salon_Day":
- bgCombo2List[index] = new GUIContent("サロン(昼)");
- break;
- case "Salon_Entrance":
- bgCombo2List[index] = new GUIContent("エントランス");
- break;
- case "Salon_Garden":
- bgCombo2List[index] = new GUIContent("サロン(中庭)");
- break;
- case "Sea":
- bgCombo2List[index] = new GUIContent("海");
- break;
- case "Sea_Night":
- bgCombo2List[index] = new GUIContent("海(夜)");
- break;
- case "ShinShitsumu":
- bgCombo2List[index] = new GUIContent("執務室");
- break;
- case "ShinShitsumu_ChairRot":
- bgCombo2List[index] = new GUIContent("執務室(椅子)");
- break;
- case "ShinShitsumu_Night":
- bgCombo2List[index] = new GUIContent("執務室(夜)");
- break;
- case "Shitsumu":
- bgCombo2List[index] = new GUIContent("執務室");
- break;
- case "Shitsumu_Night":
- bgCombo2List[index] = new GUIContent("執務室(夜)");
- break;
- case "ShoppingMall":
- bgCombo2List[index] = new GUIContent("ショッピングモール");
- break;
- case "ShoppingMall_Night":
- bgCombo2List[index] = new GUIContent("ショッピングモール(夜)");
- break;
- case "Shukuhakubeya_BedRoom":
- bgCombo2List[index] = new GUIContent("宿泊-ベッドルーム");
- break;
- case "Shukuhakubeya_BedRoom_Night":
- bgCombo2List[index] = new GUIContent("宿泊-ベッドルーム(夜)");
- break;
- case "Shukuhakubeya_Living":
- bgCombo2List[index] = new GUIContent("宿泊-リビング");
- break;
- case "Shukuhakubeya_Living_Night":
- bgCombo2List[index] = new GUIContent("宿泊-リビング(夜)");
- break;
- case "Shukuhakubeya_Other_BedRoom":
- bgCombo2List[index] = new GUIContent("宿泊-他ベッドルーム(夜)");
- break;
- case "Shukuhakubeya_Toilet":
- bgCombo2List[index] = new GUIContent("宿泊-トイレ");
- break;
- case "Shukuhakubeya_Toilet_Night":
- bgCombo2List[index] = new GUIContent("宿泊-トイレ(夜)");
- break;
- case "Shukuhakubeya_WashRoom":
- bgCombo2List[index] = new GUIContent("宿泊-洗面所");
- break;
- case "Shukuhakubeya_WashRoom_Night":
- bgCombo2List[index] = new GUIContent("宿泊-洗面所(夜)");
- break;
- case "Soap":
- bgCombo2List[index] = new GUIContent("ソープ");
- break;
- case "Spa":
- bgCombo2List[index] = new GUIContent("スパ");
- break;
- case "Spa_Night":
- bgCombo2List[index] = new GUIContent("スパ(夜)");
- break;
- case "Syosai":
- bgCombo2List[index] = new GUIContent("書斎");
- break;
- case "Syosai_Night":
- bgCombo2List[index] = new GUIContent("書斎(夜)");
- break;
- case "Theater":
- bgCombo2List[index] = new GUIContent("劇場");
- break;
- case "Theater_LightOff":
- bgCombo2List[index] = new GUIContent("劇場(夜)");
- break;
- case "Toilet":
- bgCombo2List[index] = new GUIContent("Neightlet");
- break;
- case "Town":
- bgCombo2List[index] = new GUIContent("街");
- break;
- case "Train":
- bgCombo2List[index] = new GUIContent("電車");
- break;
- case "Yashiki":
- bgCombo2List[index] = new GUIContent("屋敷(夜)");
- break;
- case "Yashiki_Day":
- bgCombo2List[index] = new GUIContent("屋敷");
- break;
- case "Yashiki_Pillow":
- bgCombo2List[index] = new GUIContent("屋敷(夜・枕)");
- break;
- case "karaokeroom":
- bgCombo2List[index] = new GUIContent("カラオケルーム");
- break;
- case "rotenburo":
- bgCombo2List[index] = new GUIContent("露天風呂");
- break;
- case "rotenburo_night":
- bgCombo2List[index] = new GUIContent("露天風呂(夜)");
- break;
- case "villa":
- bgCombo2List[index] = new GUIContent("ヴィラ1F");
- break;
- case "villa_bedroom":
- bgCombo2List[index] = new GUIContent("ヴィラ2F");
- break;
- case "villa_bedroom_night":
- bgCombo2List[index] = new GUIContent("ヴィラ2F(夜)");
- break;
- case "villa_farm":
- bgCombo2List[index] = new GUIContent("畑");
- break;
- case "villa_farm_night":
- bgCombo2List[index] = new GUIContent("畑(夜)");
- break;
- case "villa_night":
- bgCombo2List[index] = new GUIContent("ヴィラ1F(夜)");
- break;
- default:
- bgCombo2List[index] = new GUIContent(bgArray[index]);
- break;
- }
- Dictionary<string, string> saveDataDic = CreativeRoomManager.GetSaveDataDic();
- if (saveDataDic != null)
- {
- foreach (KeyValuePair<string, string> keyValuePair in saveDataDic)
- {
- if (bgArray[index] == keyValuePair.Key)
- bgCombo2List[index] = new GUIContent(keyValuePair.Value);
- }
- }
- }
- slotCombo.selectedItemIndex = 0;
- slotComboList = new GUIContent[slotArray.Length];
- for (int index = 0; index < slotArray.Length; ++index)
- {
- switch (slotArray[index])
- {
- case "accashi":
- slotComboList[index] = new GUIContent("足首");
- break;
- case "acchana":
- slotComboList[index] = new GUIContent("鼻");
- break;
- case "acchat":
- slotComboList[index] = new GUIContent("帽子");
- break;
- case "acchead":
- slotComboList[index] = new GUIContent("アイマスク");
- break;
- case "accheso":
- slotComboList[index] = new GUIContent("へそ");
- break;
- case "acckami":
- slotComboList[index] = new GUIContent("前髪");
- break;
- case "acckamisub":
- slotComboList[index] = new GUIContent("リボン");
- break;
- case "acckubi":
- slotComboList[index] = new GUIContent("ネックレス");
- break;
- case "acckubiwa":
- slotComboList[index] = new GUIContent("チョーカー");
- break;
- case "accmimi":
- slotComboList[index] = new GUIContent("耳");
- break;
- case "accnip":
- slotComboList[index] = new GUIContent("乳首");
- break;
- case "accsenaka":
- slotComboList[index] = new GUIContent("背中");
- break;
- case "accshippo":
- slotComboList[index] = new GUIContent("しっぽ");
- break;
- case "accude":
- slotComboList[index] = new GUIContent("腕");
- break;
- case "accxxx":
- slotComboList[index] = new GUIContent("前穴");
- break;
- case "bra":
- slotComboList[index] = new GUIContent("ブラジャー");
- break;
- case "glove":
- slotComboList[index] = new GUIContent("手袋");
- break;
- case "headset":
- slotComboList[index] = new GUIContent("ヘッドドレス");
- break;
- case "megane":
- slotComboList[index] = new GUIContent("メガネ");
- break;
- case "mizugi":
- slotComboList[index] = new GUIContent("水着");
- break;
- case "onepiece":
- slotComboList[index] = new GUIContent("ワンピース");
- break;
- case "panz":
- slotComboList[index] = new GUIContent("パンツ");
- break;
- case "shoes":
- slotComboList[index] = new GUIContent("靴");
- break;
- case "skirt":
- slotComboList[index] = new GUIContent("ボトムス");
- break;
- case "stkg":
- slotComboList[index] = new GUIContent("靴下");
- break;
- case "wear":
- slotComboList[index] = new GUIContent("トップス");
- break;
- default:
- slotComboList[index] = new GUIContent(slotArray[index]);
- break;
- }
- }
- itemCombo2.selectedItemIndex = 0;
- itemCombo2List = new GUIContent[itemBArray.Length];
- for (int index = 0; index < itemBArray.Length; ++index)
- {
- switch (itemBArray[index])
- {
- case "accanl,accAnl_AnalVibe_I_.menu":
- itemCombo2List[index] = new GUIContent("後:アナルバイブ");
- break;
- case "accanl,accAnl_Photo_NomalVibe_I_.menu":
- itemCombo2List[index] = new GUIContent("後:バイブ");
- break;
- case "accanl,accAnl_Photo_VibeBig_I_.menu":
- itemCombo2List[index] = new GUIContent("後:太バイブ");
- break;
- case "accanl,accAnl_Photo_VibePink_I_.menu":
- itemCombo2List[index] = new GUIContent("後:ピンクバイブ");
- break;
- case "accvag,accVag_VibeBig_I_.menu":
- itemCombo2List[index] = new GUIContent("前:太バイブ");
- break;
- case "accvag,accVag_VibePink_I_.menu":
- itemCombo2List[index] = new GUIContent("前:ピンクバイブ");
- break;
- case "accvag,accVag_Vibe_I_.menu":
- itemCombo2List[index] = new GUIContent("前:バイブ");
- break;
- case "handitem,HandItemH_SoutouVibe_I_.menu":
- itemCombo2List[index] = new GUIContent("双頭バイブ");
- break;
- case "handitem,HandItemL_Cracker_I_.menu":
- itemCombo2List[index] = new GUIContent("クラッカー");
- break;
- case "handitem,HandItemL_Dance_Hataki_I_.menu":
- itemCombo2List[index] = new GUIContent("ダンスハタキ");
- break;
- case "handitem,HandItemL_Dance_Mop_I_.menu":
- itemCombo2List[index] = new GUIContent("ダンスモップ");
- break;
- case "handitem,HandItemL_Dance_Zoukin_I_.menu":
- itemCombo2List[index] = new GUIContent("ダンス雑巾");
- break;
- case "handitem,HandItemL_Etoile_Saucer_I_.menu":
- itemCombo2List[index] = new GUIContent("ティーソーサー");
- break;
- case "handitem,HandItemL_Karaoke_Mike_I_.menu":
- itemCombo2List[index] = new GUIContent("カラオケマイク");
- break;
- case "handitem,HandItemL_Karte_I_.menu":
- itemCombo2List[index] = new GUIContent("カルテ");
- break;
- case "handitem,HandItemL_Katuramuki_Daikon_I_.menu":
- itemCombo2List[index] = new GUIContent("桂むき大根");
- break;
- case "handitem,HandItemL_Kozara_I_.menu":
- itemCombo2List[index] = new GUIContent("小皿");
- break;
- case "handitem,HandItemL_Sara_I_.menu":
- itemCombo2List[index] = new GUIContent("皿");
- break;
- case "handitem,HandItemL_Shisyuu_I_.menu":
- itemCombo2List[index] = new GUIContent("刺繍");
- break;
- case "handitem,HandItemL_Teasaucer_I_.menu":
- itemCombo2List[index] = new GUIContent("ティーソーサー");
- break;
- case "handitem,HandItemR_AnalVibe_I_.menu":
- itemCombo2List[index] = new GUIContent("アナルバイブ");
- break;
- case "handitem,HandItemR_BeerBottle(cap_off)_I_.menu":
- itemCombo2List[index] = new GUIContent("ビールボトル(開)");
- break;
- case "handitem,HandItemR_BeerBottle(cap_on)_I_.menu":
- itemCombo2List[index] = new GUIContent("ビールボトル");
- break;
- case "handitem,HandItemR_BeerGlass_I_.menu":
- itemCombo2List[index] = new GUIContent("ビールグラス");
- break;
- case "handitem,HandItemR_Book_I_.menu":
- itemCombo2List[index] = new GUIContent("本");
- break;
- case "handitem,HandItemR_Chu-B_Lip_I_.menu":
- itemCombo2List[index] = new GUIContent("Chu-B Lip");
- break;
- case "handitem,HandItemR_Chusyaki_I_.menu":
- itemCombo2List[index] = new GUIContent("注射器");
- break;
- case "handitem,HandItemR_Crops_Suika_I_.menu":
- itemCombo2List[index] = new GUIContent("スイカ");
- break;
- case "handitem,HandItemR_Curry_I_.menu":
- itemCombo2List[index] = new GUIContent("カレー");
- break;
- case "handitem,HandItemR_DVD1_I_.menu":
- itemCombo2List[index] = new GUIContent("DVD1");
- break;
- case "handitem,HandItemR_DVD2_I_.menu":
- itemCombo2List[index] = new GUIContent("DVD2");
- break;
- case "handitem,HandItemR_DVD3_I_.menu":
- itemCombo2List[index] = new GUIContent("DVD3");
- break;
- case "handitem,HandItemR_DVD4_I_.menu":
- itemCombo2List[index] = new GUIContent("DVD4");
- break;
- case "handitem,HandItemR_DVD5_I_.menu":
- itemCombo2List[index] = new GUIContent("DVD5");
- break;
- case "handitem,HandItemR_Diary_I_.menu":
- itemCombo2List[index] = new GUIContent("日記");
- break;
- case "handitem,HandItemR_Etoile_Teacup_I_.menu":
- itemCombo2List[index] = new GUIContent("ティーカップ");
- break;
- case "handitem,HandItemR_Folk_I_.menu":
- itemCombo2List[index] = new GUIContent("フォーク");
- break;
- case "handitem,HandItemR_Furaidopoteto_I_.menu":
- itemCombo2List[index] = new GUIContent("フライドポテト1本");
- break;
- case "handitem,HandItemR_Hanabi_I_.menu":
- itemCombo2List[index] = new GUIContent("手持ち花火");
- break;
- case "handitem,HandItemR_Hari_I_.menu":
- itemCombo2List[index] = new GUIContent("針");
- break;
- case "handitem,HandItemR_Hataki_I_.menu":
- itemCombo2List[index] = new GUIContent("ハタキ");
- break;
- case "handitem,HandItemR_Houchou_I_.menu":
- itemCombo2List[index] = new GUIContent("包丁");
- break;
- case "handitem,HandItemR_Houki_I_.menu":
- itemCombo2List[index] = new GUIContent("ほうき");
- break;
- case "handitem,HandItemR_Jyouro_I_.menu":
- itemCombo2List[index] = new GUIContent("じょうろ");
- break;
- case "handitem,HandItemR_Ketchup_I_.menu":
- itemCombo2List[index] = new GUIContent("ケチャップ");
- break;
- case "handitem,HandItemR_Kobin_I_.menu":
- itemCombo2List[index] = new GUIContent("小瓶");
- break;
- case "handitem,HandItemR_Kushiyaki_I_.menu":
- itemCombo2List[index] = new GUIContent("串焼き");
- break;
- case "handitem,HandItemR_MelonSoda_I_.menu":
- itemCombo2List[index] = new GUIContent("メロンソーダ");
- break;
- case "handitem,HandItemR_Menu_I_.menu":
- itemCombo2List[index] = new GUIContent("メニュー表");
- break;
- case "handitem,HandItemR_MilkBottle(cap_off)_I_.menu":
- itemCombo2List[index] = new GUIContent("牛乳(開)");
- break;
- case "handitem,HandItemR_MilkBottle(cap_on)_I_.menu":
- itemCombo2List[index] = new GUIContent("牛乳");
- break;
- case "handitem,HandItemR_Mimikaki_I_.menu":
- itemCombo2List[index] = new GUIContent("耳かき");
- break;
- case "handitem,HandItemR_Mop_I_.menu":
- itemCombo2List[index] = new GUIContent("モップ");
- break;
- case "handitem,HandItemR_Mugcup_I_.menu":
- itemCombo2List[index] = new GUIContent("マグカップ");
- break;
- case "handitem,HandItemR_Natumikan_I_.menu":
- itemCombo2List[index] = new GUIContent("夏みかん");
- break;
- case "handitem,HandItemR_Nei_Heartful_I_.menu":
- itemCombo2List[index] = new GUIContent("ハートフルねい人形");
- break;
- case "handitem,HandItemR_Ninjin_I_.menu":
- itemCombo2List[index] = new GUIContent("ニンジン");
- break;
- case "handitem,HandItemR_Ochoko_I_.menu":
- itemCombo2List[index] = new GUIContent("お猪口");
- break;
- case "handitem,HandItemR_Omurice1_I_.menu":
- itemCombo2List[index] = new GUIContent("オムライス1");
- break;
- case "handitem,HandItemR_Omurice2_I_.menu":
- itemCombo2List[index] = new GUIContent("オムライス2");
- break;
- case "handitem,HandItemR_Omurice3_I_.menu":
- itemCombo2List[index] = new GUIContent("オムライス3");
- break;
- case "handitem,HandItemR_Otama_I_.menu":
- itemCombo2List[index] = new GUIContent("おたま");
- break;
- case "handitem,HandItemR_Pasta_I_.menu":
- itemCombo2List[index] = new GUIContent("パスタ");
- break;
- case "handitem,HandItemR_Pen_I_.menu":
- itemCombo2List[index] = new GUIContent("ペン");
- break;
- case "handitem,HandItemR_Puff_I_.menu":
- itemCombo2List[index] = new GUIContent("パフ");
- break;
- case "handitem,HandItemR_Rip_I_.menu":
- itemCombo2List[index] = new GUIContent("リップ");
- break;
- case "handitem,HandItemR_Satumaimo_I_.menu":
- itemCombo2List[index] = new GUIContent("さつまいも");
- break;
- case "handitem,HandItemR_Scoop_I_.menu":
- itemCombo2List[index] = new GUIContent("スコップ");
- break;
- case "handitem,HandItemR_Senkouhanabi_I_.menu":
- itemCombo2List[index] = new GUIContent("線香花火");
- break;
- case "handitem,HandItemR_Shaker_I_.menu":
- itemCombo2List[index] = new GUIContent("シェイカー");
- break;
- case "handitem,HandItemR_Shell_I_.menu":
- itemCombo2List[index] = new GUIContent("貝殻");
- break;
- case "handitem,HandItemR_Shihen_I_.menu":
- itemCombo2List[index] = new GUIContent("紙片");
- break;
- case "handitem,HandItemR_SmartPhone_I_.menu":
- itemCombo2List[index] = new GUIContent("スマートフォン");
- break;
- case "handitem,HandItemR_Sponge_I_.menu":
- itemCombo2List[index] = new GUIContent("スポンジ");
- break;
- case "handitem,HandItemR_Spoon_Curry_I_.menu":
- itemCombo2List[index] = new GUIContent("スプーン(カレー)");
- break;
- case "handitem,HandItemR_Spoon_Omurice_I_.menu":
- itemCombo2List[index] = new GUIContent("スプーン(オムライス)");
- break;
- case "handitem,HandItemR_Spoon_Pafe_I_.menu":
- itemCombo2List[index] = new GUIContent("パフェスプーン");
- break;
- case "handitem,HandItemR_Suika_I_.menu":
- itemCombo2List[index] = new GUIContent("スイカ2");
- break;
- case "handitem,HandItemR_Teacup_I_.menu":
- itemCombo2List[index] = new GUIContent("ティーカップ");
- break;
- case "handitem,HandItemR_Tomato_I_.menu":
- itemCombo2List[index] = new GUIContent("トマト");
- break;
- case "handitem,HandItemR_Tomorokoshi_I_.menu":
- itemCombo2List[index] = new GUIContent("トウモロコシ");
- break;
- case "handitem,HandItemR_Tomorokoshi_yaki_I_.menu":
- itemCombo2List[index] = new GUIContent("焼きトウモロコシ");
- break;
- case "handitem,HandItemR_TropicalGlass_I_.menu":
- itemCombo2List[index] = new GUIContent("トロピカルグラス");
- break;
- case "handitem,HandItemR_Uchiwa_I_.menu":
- itemCombo2List[index] = new GUIContent("うちわ");
- break;
- case "handitem,HandItemR_Ukiwa_I_.menu":
- itemCombo2List[index] = new GUIContent("浮き輪");
- break;
- case "handitem,HandItemR_Usuba_Houchou_I_.menu":
- itemCombo2List[index] = new GUIContent("薄刃包丁");
- break;
- case "handitem,HandItemR_VibeBig_I_.menu":
- itemCombo2List[index] = new GUIContent("太バイブ");
- break;
- case "handitem,HandItemR_VibePink_I_.menu":
- itemCombo2List[index] = new GUIContent("ピンクバイブ");
- break;
- case "handitem,HandItemR_Vibe_I_.menu":
- itemCombo2List[index] = new GUIContent("バイブ");
- break;
- case "handitem,HandItemR_Wholecake_I_.menu":
- itemCombo2List[index] = new GUIContent("ホールケーキ");
- break;
- case "handitem,HandItemR_WineBottle_I_.menu":
- itemCombo2List[index] = new GUIContent("ワインボトル");
- break;
- case "handitem,HandItemR_WineGlass_I_.menu":
- itemCombo2List[index] = new GUIContent("ワイングラス");
- break;
- case "handitem,HandItemR_Zoukin2_I_.menu":
- itemCombo2List[index] = new GUIContent("雑巾");
- break;
- case "handitem,HandItemR_cocktail_blue_I_.menu":
- itemCombo2List[index] = new GUIContent("カクテル・青");
- break;
- case "handitem,HandItemR_cocktail_red_I_.menu":
- itemCombo2List[index] = new GUIContent("カクテル・赤");
- break;
- case "handitem,HandItemR_cocktail_yellow_I_.menu":
- itemCombo2List[index] = new GUIContent("カクテル・黄");
- break;
- case "handitem,HandItemR_karaoke_maracas_I_.menu":
- itemCombo2List[index] = new GUIContent("マラカス");
- break;
- case "handitem,HandItemR_karaoke_sensu_I_.menu":
- itemCombo2List[index] = new GUIContent("扇子");
- break;
- case "handitem,HandItemR_pretzel_I_.menu":
- itemCombo2List[index] = new GUIContent("ポッキー");
- break;
- case "handitem,HandItemR_smoothie_green_I_.menu":
- itemCombo2List[index] = new GUIContent("スムージー・緑");
- break;
- case "handitem,HandItemR_smoothie_red_I_.menu":
- itemCombo2List[index] = new GUIContent("スムージー・赤");
- break;
- case "handitem,handitemr_racket_I_.menu":
- itemCombo2List[index] = new GUIContent("ラケット");
- break;
- case "kousoku_lower,KousokuL_BathTowel_I_.menu":
- itemCombo2List[index] = new GUIContent("バストレイ");
- break;
- case "kousoku_upper,KousokuU_SMRoom2_Haritsuke_I_.menu":
- itemCombo2List[index] = new GUIContent("磔台2");
- break;
- case "kousoku_upper,KousokuU_SMRoom_Haritsuke_I_.menu":
- itemCombo2List[index] = new GUIContent("磔台");
- break;
- case "kousoku_upper,KousokuU_TekaseOne_I_.menu":
- itemCombo2List[index] = new GUIContent("手枷1");
- break;
- case "kousoku_upper,KousokuU_TekaseTwo_I_.menu":
- itemCombo2List[index] = new GUIContent("手枷2");
- break;
- case "kousoku_upper,KousokuU_Ushirode_I_.menu":
- itemCombo2List[index] = new GUIContent("後ろ手拘束具");
- break;
- default:
- itemCombo2List[index] = new GUIContent(itemBArray[index]);
- break;
- }
- }
- kankyoCombo.selectedItemIndex = 0;
- kankyoComboList = new GUIContent[kankyoMax];
- for (int index = 0; index < kankyoMax; ++index)
- {
- IniKey iniKey = this.Preferences["kankyo"]["kankyo" + (object) (index + 1)];
- kankyoComboList[index] = new GUIContent(iniKey.Value);
- }
- kankyo2InitFlg = true;
- }
- listStyle3.padding.top = this.GetPix(1);
- listStyle3.padding.bottom = this.GetPix(0);
- listStyle3.fontSize = this.GetPix(13);
- if (poseCombo.isClickedComboButton)
- GUI.enabled = false;
- if (poseGroupCombo.isClickedComboButton)
- GUI.enabled = false;
- if (sceneLevel == 3 || sceneLevel == 5 || isF6)
- {
- if (!isF6)
- {
- bool flag = true;
- if (faceFlg || poseFlg || (sceneFlg || kankyoFlg) || kankyo2Flg)
- flag = false;
- if (GUI.Toggle(new Rect((float) this.GetPix(2),
- (float) this.GetPix(2),
- (float) this.GetPix(39),
- (float) this.GetPix(20)),
- flag,
- "配置",
- style3))
- {
- faceFlg = false;
- poseFlg = false;
- sceneFlg = false;
- kankyoFlg = false;
- kankyo2Flg = false;
- bGui = true;
- isGuiInit = true;
- }
- }
- if (!yotogiFlg && GUI.Toggle(new Rect((float) this.GetPix(42),
- (float) this.GetPix(2),
- (float) this.GetPix(39),
- (float) this.GetPix(20)),
- poseFlg,
- "操作",
- style3))
- {
- poseFlg = true;
- faceFlg = false;
- sceneFlg = false;
- kankyoFlg = false;
- kankyo2Flg = false;
- }
- if (GUI.Toggle(new Rect((float) this.GetPix(82), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
- faceFlg,
- "表情",
- style3))
- {
- faceFlg = true;
- poseFlg = false;
- sceneFlg = false;
- kankyoFlg = false;
- kankyo2Flg = false;
- if (!faceFlg2)
- {
- isFaceInit = true;
- faceFlg2 = true;
- maidArray[selectMaidIndex].boMabataki = false;
- faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
- }
- isFaceInit = true;
- }
- if (GUI.Toggle(new Rect((float) this.GetPix(122), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
- kankyoFlg,
- "環境",
- style3))
- {
- poseFlg = false;
- faceFlg = false;
- sceneFlg = false;
- kankyoFlg = true;
- kankyo2Flg = false;
- }
- if (GUI.Toggle(new Rect((float) this.GetPix(162), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
- kankyo2Flg,
- "環2",
- style3))
- {
- poseFlg = false;
- faceFlg = false;
- sceneFlg = false;
- kankyoFlg = false;
- kankyo2Flg = true;
- }
- if (!(bool) ((Object) line1))
- {
- line1 = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.3f));
- line2 = this.MakeTex(2, 2, new Color(0.7f, 0.7f, 0.7f, 0.6f));
- }
- GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(20), (float) this.GetPix(200), 2f), (Texture) line1);
- GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(20), (float) this.GetPix(200), 1f), (Texture) line2);
- }
- if (isDanceStop)
- {
- isStop[selectMaidIndex] = true;
- isDanceStop = false;
- }
- if (kankyoCombo.isClickedComboButton || slotCombo.isClickedComboButton
- || (itemCombo2.isClickedComboButton || bgCombo2.isClickedComboButton))
- GUI.enabled = false;
- characterMgr.GetStockMaidCount();
- float pix = (float) this.GetPix(45);
- Rect position1;
- Rect viewRect;
- if (sceneLevel != 5)
- {
- position1 = new Rect((float) this.GetPix(7),
- (float) this.GetPix(138),
- (float) (this.GetPix(44) * 4 + this.GetPix(20)),
- rectWin.height * 0.785f);
- viewRect = new Rect(0.0f,
- 0.0f,
- position1.width * 0.845f,
- pix * (float) Math.Ceiling((double) sortList.Count / 4.0) + (float) this.GetPix(5));
- }
- else
- {
- position1 = new Rect((float) this.GetPix(7),
- (float) this.GetPix(138),
- (float) (this.GetPix(44) * 4 + this.GetPix(20)),
- (float) ((double) rectWin.height * 0.785000026226044 * 0.959999978542328));
- viewRect = new Rect(0.0f,
- 0.0f,
- position1.width * 0.845f,
- (float) ((double) pix * Math.Ceiling((double) sortList.Count / 4.0)
- + (double) this.GetPix(5) * 0.920000016689301));
- }
- scrollPos = GUI.BeginScrollView(position1, scrollPos, viewRect);
- for (int index = 0; index < sortList.Count; ++index)
- {
- Rect position2 = new Rect((float) this.GetPix(index % 4 * 45),
- (float) this.GetPix(index / 4 * 45),
- (float) this.GetPix(44),
- (float) this.GetPix(44));
- if (GUI.Button(position2, (Texture) sortList[index].tex))
- {
- string menu = sortList[index].menu;
- byte[] f_byBuf = (byte[]) null;
- using (AFileBase afileBase = GameUty.FileOpen(menu, (AFileSystemBase) null))
- {
- NDebug.Assert(afileBase.IsValid(), "メニューファイルが存在しません。 :" + menu);
- if (f_byBuf == null || f_byBuf.Length < afileBase.GetSize())
- f_byBuf = new byte[afileBase.GetSize()];
- afileBase.Read(ref f_byBuf, afileBase.GetSize());
- }
- string[] filename2 = ProcScriptBin(maidArray[0], f_byBuf, menu, false);
- GameObject gameObject = ImportCM2.LoadSkinMesh_R(filename2[0], filename2, "", maidArray[0].body0.goSlot[8], 1);
- doguBObject.Add(gameObject);
- gameObject.name = menu;
- Vector3 zero1 = Vector3.zero;
- Vector3 zero2 = Vector3.zero;
- zero1.z = 0.4f;
- gameObject.transform.localPosition = zero1;
- gameObject.transform.localRotation = Quaternion.Euler(zero2);
- doguCnt = doguBObject.Count - 1;
- gDogu[doguCnt] = GameObject.CreatePrimitive(PrimitiveType.Cube);
- gDogu[doguCnt].GetComponent<Renderer>().material = m_material;
- gDogu[doguCnt].layer = 8;
- gDogu[doguCnt].GetComponent<Renderer>().enabled = false;
- gDogu[doguCnt].SetActive(false);
- gDogu[doguCnt].transform.position = gameObject.transform.position;
- mDogu[doguCnt] = gDogu[doguCnt].AddComponent<MouseDrag6>();
- mDogu[doguCnt].isScale = false;
- mDogu[doguCnt].obj = gDogu[doguCnt];
- mDogu[doguCnt].maid = gameObject;
- mDogu[doguCnt].angles = gameObject.transform.eulerAngles;
- gDogu[doguCnt].transform.localScale = new Vector3(cubeSize, cubeSize, cubeSize);
- mDogu[doguCnt].ido = 1;
- }
- GUI.DrawTexture(position2, (Texture) sortList[index].tex);
- }
- GUI.EndScrollView();
- GUI.enabled = true;
- GUI.Label(new Rect((float) this.GetPix(3), (float) this.GetPix(108), (float) this.GetPix(100), (float) this.GetPix(25)),
- "服装",
- style1);
- style1.fontSize = this.GetPix(9);
- GUI.Label(new Rect((float) this.GetPix(3), (float) this.GetPix(119), (float) this.GetPix(100), (float) this.GetPix(25)),
- "アクセサリ",
- style1);
- style1.fontSize = this.GetPix(11);
- GUI.Label(new Rect((float) this.GetPix(3), (float) this.GetPix(58), (float) this.GetPix(100), (float) this.GetPix(25)),
- "アイテム",
- style1);
- GUI.Label(new Rect((float) this.GetPix(3), (float) this.GetPix(86), (float) this.GetPix(100), (float) this.GetPix(24)),
- "背景(小)",
- style1);
- if (kankyoCombo.isClickedComboButton || itemCombo2.isClickedComboButton || bgCombo2.isClickedComboButton)
- GUI.enabled = false;
- int num1 =
- slotCombo.List(new Rect((float) this.GetPix(51),
- (float) this.GetPix(111),
- (float) this.GetPix(100),
- (float) this.GetPix(23)),
- slotComboList[slotIndex].text,
- slotComboList,
- buttonStyle,
- (GUIStyle) "box",
- listStyle3);
- GUI.enabled = true;
- if (kankyoCombo.isClickedComboButton || itemCombo2.isClickedComboButton)
- GUI.enabled = false;
- bgIndexB =
- bgCombo2.List(new Rect((float) this.GetPix(51),
- (float) this.GetPix(83),
- (float) this.GetPix(100),
- (float) this.GetPix(23)),
- bgCombo2List[bgIndexB].text,
- bgCombo2List,
- buttonStyle,
- (GUIStyle) "box",
- listStyle3);
- if (GUI.Button(new Rect((float) this.GetPix(156), (float) this.GetPix(83), (float) this.GetPix(38), (float) this.GetPix(23)),
- "追加",
- style2))
- {
- Object original = (Object) GameMain.Instance.BgMgr.CreateAssetBundle(bgArray[bgIndexB]);
- if (original == (Object) null)
- original = Resources.Load("BG/" + bgArray[bgIndexB]);
- GameObject gameObject = Instantiate(original) as GameObject;
- doguBObject.Add(gameObject);
- gameObject.name = "BG_" + bgArray[bgIndexB];
- Vector3 zero1 = Vector3.zero;
- Vector3 zero2 = Vector3.zero;
- zero1.z = 0.4f;
- gameObject.transform.localScale = new Vector3(0.1f, 0.1f, 0.1f);
- gameObject.transform.localPosition = zero1;
- gameObject.transform.localRotation = Quaternion.Euler(zero2);
- doguCnt = doguBObject.Count - 1;
- gDogu[doguCnt] = GameObject.CreatePrimitive(PrimitiveType.Cube);
- gDogu[doguCnt].GetComponent<Renderer>().material = m_material;
- gDogu[doguCnt].layer = 8;
- gDogu[doguCnt].GetComponent<Renderer>().enabled = false;
- gDogu[doguCnt].SetActive(false);
- gDogu[doguCnt].transform.position = gameObject.transform.position;
- mDogu[doguCnt] = gDogu[doguCnt].AddComponent<MouseDrag6>();
- mDogu[doguCnt].isScale = false;
- mDogu[doguCnt].obj = gDogu[doguCnt];
- mDogu[doguCnt].maid = gameObject;
- mDogu[doguCnt].angles = gameObject.transform.eulerAngles;
- gDogu[doguCnt].transform.localScale = new Vector3(cubeSize, cubeSize, cubeSize);
- mDogu[doguCnt].ido = 1;
- }
- GUI.enabled = true;
- if (kankyoCombo.isClickedComboButton)
- GUI.enabled = false;
- itemIndexB =
- itemCombo2.List(new Rect((float) this.GetPix(51),
- (float) this.GetPix(55),
- (float) this.GetPix(100),
- (float) this.GetPix(23)),
- itemCombo2List[itemIndexB].text,
- itemCombo2List,
- buttonStyle,
- (GUIStyle) "box",
- listStyle3);
- if (GUI.Button(new Rect((float) this.GetPix(156), (float) this.GetPix(55), (float) this.GetPix(38), (float) this.GetPix(23)),
- "追加",
- style2))
- {
- string str = itemBArray[itemIndexB].Split(',')[1];
- byte[] f_byBuf = (byte[]) null;
- using (AFileBase afileBase = GameUty.FileOpen(str, (AFileSystemBase) null))
- {
- NDebug.Assert(afileBase.IsValid(), "メニューファイルが存在しません。 :" + str);
- if (f_byBuf == null || f_byBuf.Length < afileBase.GetSize())
- f_byBuf = new byte[afileBase.GetSize()];
- afileBase.Read(ref f_byBuf, afileBase.GetSize());
- }
- string[] filename2 = ProcScriptBin(maidArray[0], f_byBuf, str, false);
- GameObject gameObject = ImportCM2.LoadSkinMesh_R(filename2[0], filename2, "", maidArray[0].body0.goSlot[8], 1);
- doguBObject.Add(gameObject);
- gameObject.name = str;
- Vector3 zero1 = Vector3.zero;
- Vector3 zero2 = Vector3.zero;
- zero1.z = 0.4f;
- switch (itemIndexB)
- {
- case 0:
- zero2.z = 90f;
- zero1.y = 0.04f;
- goto case 19;
- case 1:
- zero2.z = 90f;
- goto case 19;
- case 4:
- zero2.x = 90f;
- goto case 19;
- case 19:
- case 20:
- case 21:
- case 22:
- case 23:
- switch (gameObject.name)
- {
- case "HandItemL_Etoile_Saucer_I_.menu":
- case "HandItemL_Karte_I_.menu":
- case "HandItemL_Katuramuki_Daikon_I_.menu":
- case "HandItemR_BeerBottle(cap_off)_I_.menu":
- case "HandItemR_BeerBottle(cap_on)_I_.menu":
- case "HandItemR_BeerGlass_I_.menu":
- case "HandItemR_Etoile_Teacup_I_.menu":
- case "HandItemR_Jyouro_I_.menu":
- case "HandItemR_Ketchup_I_.menu":
- case "HandItemR_Kobin_I_.menu":
- case "HandItemR_MelonSoda_I_.menu":
- case "HandItemR_MilkBottle(cap_off)_I_.menu":
- case "HandItemR_MilkBottle(cap_on)_I_.menu":
- case "HandItemR_Mugcup_I_.menu":
- case "HandItemR_Natumikan_I_.menu":
- case "HandItemR_Nei_Heartful_I_.menu":
- case "HandItemR_Ochoko_I_.menu":
- case "HandItemR_Shaker_I_.menu":
- case "HandItemR_SmartPhone_I_.menu":
- case "HandItemR_Suika_I_.menu":
- case "HandItemR_Tomato_I_.menu":
- case "HandItemR_TropicalGlass_I_.menu":
- case "HandItemR_cocktail_blue_I_.menu":
- case "HandItemR_cocktail_red_I_.menu":
- case "HandItemR_cocktail_yellow_I_.menu":
- case "HandItemR_smoothie_green_I_.menu":
- case "HandItemR_smoothie_red_I_.menu":
- zero2.x = 0.0f;
- zero2.z = 90f;
- break;
- case "HandItemL_Karaoke_Mike_I_.menu":
- case "HandItemR_Crops_Suika_I_.menu":
- case "HandItemR_Curry_I_.menu":
- case "HandItemR_DVD1_I_.menu":
- case "HandItemR_DVD2_I_.menu":
- case "HandItemR_DVD3_I_.menu":
- case "HandItemR_DVD4_I_.menu":
- case "HandItemR_DVD5_I_.menu":
- case "HandItemR_Folk_I_.menu":
- case "HandItemR_Hanabi_I_.menu":
- case "HandItemR_Kushiyaki_I_.menu":
- case "HandItemR_Ninjin_I_.menu":
- case "HandItemR_Omurice1_I_.menu":
- case "HandItemR_Omurice2_I_.menu":
- case "HandItemR_Omurice3_I_.menu":
- case "HandItemR_Pasta_I_.menu":
- case "HandItemR_Satumaimo_I_.menu":
- case "HandItemR_Scoop_I_.menu":
- case "HandItemR_Senkouhanabi_I_.menu":
- case "HandItemR_Shell_I_.menu":
- case "HandItemR_Spoon_Curry_I_.menu":
- case "HandItemR_Spoon_Omurice_I_.menu":
- case "HandItemR_Tomorokoshi_I_.menu":
- case "HandItemR_Tomorokoshi_yaki_I_.menu":
- case "HandItemR_Uchiwa_I_.menu":
- zero2.z = 90f;
- break;
- }
- gameObject.transform.localPosition = zero1;
- gameObject.transform.localRotation = Quaternion.Euler(zero2);
- doguCnt = doguBObject.Count - 1;
- gDogu[doguCnt] = GameObject.CreatePrimitive(PrimitiveType.Cube);
- gDogu[doguCnt].GetComponent<Renderer>().material = m_material;
- gDogu[doguCnt].layer = 8;
- gDogu[doguCnt].GetComponent<Renderer>().enabled = false;
- gDogu[doguCnt].SetActive(false);
- gDogu[doguCnt].transform.position = gameObject.transform.position;
- mDogu[doguCnt] = gDogu[doguCnt].AddComponent<MouseDrag6>();
- mDogu[doguCnt].isScale = false;
- mDogu[doguCnt].obj = gDogu[doguCnt];
- mDogu[doguCnt].maid = gameObject;
- mDogu[doguCnt].angles = gameObject.transform.eulerAngles;
- gDogu[doguCnt].transform.localScale = new Vector3(cubeSize, cubeSize, cubeSize);
- mDogu[doguCnt].ido = 1;
- break;
- case 25:
- zero2.z = 90f;
- goto case 19;
- case 26:
- zero2.z = 90f;
- goto case 19;
- case 27:
- zero2.z = 90f;
- goto case 19;
- default:
- zero2.x = -90f;
- goto case 19;
- }
- }
- GUI.enabled = true;
- if (nameFlg)
- {
- inName2 = GUI.TextField(new Rect((float) this.GetPix(5),
- (float) this.GetPix(27),
- (float) this.GetPix(100),
- (float) this.GetPix(20)),
- inName2);
- if (GUI.Button(new Rect((float) this.GetPix(110),
- (float) this.GetPix(27),
- (float) this.GetPix(35),
- (float) this.GetPix(20)),
- "更新",
- style2))
- {
- nameFlg = false;
- GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
- this.Preferences["kankyo"]["kankyo" + (object) (kankyoCombo.selectedItemIndex + 1)].Value = inName2;
- this.SaveConfig();
- kankyoComboList = new GUIContent[kankyoMax];
- for (int index = 0; index < kankyoMax; ++index)
- {
- IniKey iniKey = this.Preferences["kankyo"]["kankyo" + (object) (index + 1)];
- kankyoComboList[index] = new GUIContent(iniKey.Value);
- }
- }
- }
- else
- {
- if (GUI.Button(new Rect((float) this.GetPix(180),
- (float) this.GetPix(27),
- (float) this.GetPix(24),
- (float) this.GetPix(20)),
- "名",
- style2))
- {
- nameFlg = true;
- inName2 = kankyoComboList[kankyoIndex].text;
- }
- kankyoIndex =
- kankyoCombo.List(new Rect((float) this.GetPix(4),
- (float) this.GetPix(27),
- (float) this.GetPix(91),
- (float) this.GetPix(23)),
- kankyoComboList[kankyoIndex].text,
- kankyoComboList,
- buttonStyle,
- (GUIStyle) "box",
- listStyle3);
- if (GUI.Button(new Rect((float) this.GetPix(100),
- (float) this.GetPix(27),
- (float) this.GetPix(35),
- (float) this.GetPix(20)),
- "保存",
- style2))
- {
- saveScene = 10000 + kankyoIndex;
- saveScene2 = saveScene;
- GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
- try
- {
- thum_byte_to_base64_ = string.Empty;
- thum_file_path_ = Path.Combine(Path.GetTempPath(), "cm3d2_" + Guid.NewGuid().ToString() + ".png");
- GameMain.Instance.MainCamera.ScreenShot(thum_file_path_, 1, false);
- }
- catch { }
- }
- GUI.enabled = false;
- IniKey iniKey = this.Preferences["scene"]["s" + (object) (10000 + kankyoIndex)];
- if (iniKey.Value != null && iniKey.Value.ToString() != "")
- GUI.enabled = true;
- if (GUI.Button(new Rect((float) this.GetPix(140),
- (float) this.GetPix(27),
- (float) this.GetPix(35),
- (float) this.GetPix(20)),
- "読込",
- style2))
- {
- loadScene = 10000 + kankyoIndex;
- kankyoLoadFlg = true;
- GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
- }
- }
- GUI.enabled = true;
- if (num1 == slotIndex)
- return;
- slotIndex = num1;
- sortList.Clear();
- scrollPos = new Vector2(0.0f, 0.0f);
- if (itemDataList.Count == 0)
- {
- foreach (string menuFile in GameUty.MenuFiles)
- {
- string fileName = Path.GetFileNameWithoutExtension(menuFile) + ".menu";
- byte[] f_byBuf = (byte[]) null;
- using (AFileBase afileBase = GameUty.FileOpen(fileName, (AFileSystemBase) null))
- {
- NDebug.Assert(afileBase.IsValid(), "メニューファイルが存在しません。 :" + fileName);
- if (f_byBuf == null || f_byBuf.Length < afileBase.GetSize())
- f_byBuf = new byte[afileBase.GetSize()];
- afileBase.Read(ref f_byBuf, afileBase.GetSize());
- }
- BinaryReader binaryReader = new BinaryReader((Stream) new MemoryStream(f_byBuf), Encoding.UTF8);
- if (binaryReader.ReadString() != "CM3D2_MENU")
- {
- binaryReader.Close();
- }
- else
- {
- binaryReader.ReadInt32();
- binaryReader.ReadString();
- binaryReader.ReadString();
- string str1 = binaryReader.ReadString();
- string s = "";
- binaryReader.ReadString();
- binaryReader.ReadInt32();
- string str2 = "";
- try
- {
- do
- {
- int num2;
- do
- {
- num2 = (int) binaryReader.ReadByte();
- } while (num2 == 0);
- for (int index = 0; index < num2; ++index)
- {
- string str3 = binaryReader.ReadString();
- if (str3 == "icons")
- {
- str2 = binaryReader.ReadString();
- break;
- }
- if (str3 == "priority")
- {
- s = binaryReader.ReadString();
- break;
- }
- }
- } while (!(str2 != ""));
- int result = 0;
- int.TryParse(s, out result);
- itemDataList.Add(new ItemData() {info = str1, name = str2, menu = fileName, order = result, cd = f_byBuf});
- }
- catch { }
- binaryReader.Close();
- }
- }
- }
- foreach (ItemData itemData in itemDataList)
- {
- if (slotIndex != 0 && !(itemData.info != slotArray[slotIndex]) && itemData.order > 0)
- sortList.Add(new SortItem() {order = itemData.order, name = itemData.name, menu = itemData.menu, tex = itemData.tex});
- }
- IOrderedEnumerable<SortItem> orderedEnumerable = sortList
- .OrderBy<SortItem, int>((Func<SortItem, int>) (p => p.order))
- .ThenBy<SortItem, string>((Func<SortItem, string>) (p => p.name));
- List<SortItem> sortItemList = new List<SortItem>();
- string str4 = "";
- foreach (SortItem sortItem in (IEnumerable<SortItem>) orderedEnumerable)
- {
- try
- {
- if ((Object) sortItem.tex == (Object) null)
- {
- byte[] data = ImportCM.LoadTexture(GameUty.FileSystem, sortItem.name, false).data;
- Texture2D texture2D = new Texture2D(50, 50, TextureFormat.RGBA32, false);
- texture2D.LoadImage(data);
- sortItem.tex = texture2D;
- }
- if (!(sortItem.menu == str4))
- {
- str4 = sortItem.menu;
- sortItemList.Add(sortItem);
- }
- }
- catch { }
- }
- sortList = sortItemList;
- }
- private void GuiFunc6(int winID)
- {
- GUIStyle guistyle = "label";
- guistyle.fontSize = this.GetPix(12);
- guistyle.alignment = TextAnchor.UpperLeft;
- GUIStyle guistyle2 = "label";
- guistyle2.fontSize = this.GetPix(11);
- guistyle2.alignment = TextAnchor.UpperLeft;
- GUIStyle guistyle3 = "button";
- guistyle3.fontSize = this.GetPix(20);
- GUIStyle guistyle4 = "button";
- guistyle4.fontSize = this.GetPix(14);
- guistyle4.alignment = TextAnchor.MiddleLeft;
- GUIStyle guistyle5 = "button";
- guistyle5.fontSize = this.GetPix(12);
- guistyle5.alignment = TextAnchor.MiddleLeft;
- GUIStyle guistyle6 = new GUIStyle("toggle");
- guistyle6.fontSize = this.GetPix(13);
- CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
- Maid maid = maidArray[selectMaidIndex];
- if (!kankyoInitFlg)
- {
- listStyle2.normal.textColor = Color.white;
- listStyle2.normal.background = this.MakeTex(2, 2, new Color(0f, 0f, 0f, 0.5f));
- listStyle2.onHover.background = (listStyle2.hover.background = new Texture2D(2, 2));
- RectOffset padding = listStyle2.padding;
- RectOffset padding2 = listStyle2.padding;
- RectOffset padding3 = listStyle2.padding;
- int num = listStyle2.padding.bottom = this.GetPix(0);
- num = (padding3.top = num);
- num = (padding2.right = num);
- padding.left = num;
- listStyle2.fontSize = this.GetPix(11);
- listStyle3.normal.textColor = Color.white;
- listStyle3.normal.background = this.MakeTex(2, 2, new Color(0f, 0f, 0f, 0.5f));
- listStyle3.onHover.background = (listStyle3.hover.background = new Texture2D(2, 2));
- RectOffset padding4 = listStyle3.padding;
- RectOffset padding5 = listStyle3.padding;
- num = (listStyle3.padding.top = this.GetPix(0));
- num = (padding5.right = num);
- padding4.left = num;
- listStyle3.padding.bottom = this.GetPix(0);
- listStyle3.fontSize = this.GetPix(12);
- bgmCombo.selectedItemIndex = bgmIndex;
- if (sceneLevel == 5)
- {
- bgmCombo.selectedItemIndex = 2;
- }
- bgmComboList = new GUIContent[bgmArray.Length];
- int i = 0;
- while (i < bgmArray.Length)
- {
- string text = bgmArray[i];
- if (text == null)
- {
- goto IL_501;
- }
- if (dicts[0] == null)
- {
- dicts[0] = new Dictionary<string, int>(11)
- {
- {"dokidokifallinlove_short", 0},
- {"entrancetoyou_short", 1},
- {"scarlet leap_short", 2},
- {"stellarmytears_short", 3},
- {"stellarmytears_short2", 4},
- {"stellarmytears_short3", 5},
- {"RhythmixToYou", 6},
- {"happy_happy_scandal1", 7},
- {"happy_happy_scandal2", 8},
- {"happy_happy_scandal3", 9},
- {"can_know_two_close", 10}
- };
- }
- if (!dicts[0].TryGetValue(text, out num))
- {
- goto IL_501;
- }
- switch (num)
- {
- case 0:
- bgmComboList[i] = new GUIContent("ドキドキ☆Fallin' Love");
- break;
- case 1:
- bgmComboList[i] = new GUIContent("entrance to you");
- break;
- case 2:
- bgmComboList[i] = new GUIContent("scarlet leap");
- break;
- case 3:
- bgmComboList[i] = new GUIContent("stellar my tears1");
- break;
- case 4:
- bgmComboList[i] = new GUIContent("stellar my tears2");
- break;
- case 5:
- bgmComboList[i] = new GUIContent("stellar my tears3");
- break;
- case 6:
- bgmComboList[i] = new GUIContent("rhythmix to you");
- break;
- case 7:
- bgmComboList[i] = new GUIContent("happy!happy!スキャンダル!! 1");
- break;
- case 8:
- bgmComboList[i] = new GUIContent("happy!happy!スキャンダル!! 2");
- break;
- case 9:
- bgmComboList[i] = new GUIContent("happy!happy!スキャンダル!! 3");
- break;
- case 10:
- bgmComboList[i] = new GUIContent("Can Know Two Close");
- break;
- default: goto IL_501;
- }
- IL_51A:
- i++;
- continue;
- IL_501:
- bgmComboList[i] = new GUIContent(bgmArray[i]);
- goto IL_51A;
- }
- bgCombo.selectedItemIndex = bgIndex;
- bgComboList = new GUIContent[bgArray.Length];
- i = 0;
- while (i < bgArray.Length)
- {
- string text = bgArray[i];
- if (text == null)
- {
- goto IL_1692;
- }
- switch (text)
- {
- case "Salon":
- bgComboList[i] = new GUIContent("Salon");
- break;
- case "Syosai":
- bgComboList[i] = new GUIContent("Study");
- break;
- case "Syosai_Night":
- bgComboList[i] = new GUIContent("Study (Night)");
- break;
- case "DressRoom_NoMirror":
- bgComboList[i] = new GUIContent("Dress Room");
- break;
- case "MyBedRoom":
- bgComboList[i] = new GUIContent("MC's Room");
- break;
- case "MyBedRoom_Night":
- bgComboList[i] = new GUIContent("MC's Room (Night)");
- break;
- case "MyBedRoom_NightOff":
- bgComboList[i] = new GUIContent("MC's Room (Dark)");
- break;
- case "Bathroom":
- bgComboList[i] = new GUIContent("Bathroom");
- break;
- case "PlayRoom":
- bgComboList[i] = new GUIContent("Play Room");
- break;
- case "Pool":
- bgComboList[i] = new GUIContent("Pool");
- break;
- case "SMRoom":
- bgComboList[i] = new GUIContent("SM Room");
- break;
- case "PlayRoom2":
- bgComboList[i] = new GUIContent("Play Room 2");
- break;
- case "Salon_Garden":
- bgComboList[i] = new GUIContent("Courtyard");
- break;
- case "LargeBathRoom":
- bgComboList[i] = new GUIContent("Big Bath");
- break;
- case "MaidRoom":
- bgComboList[i] = new GUIContent("Maid Room");
- break;
- case "OiranRoom":
- bgComboList[i] = new GUIContent("Cortesan Room");
- break;
- case "Penthouse":
- bgComboList[i] = new GUIContent("Penthouse");
- break;
- case "Town":
- bgComboList[i] = new GUIContent("Town");
- break;
- case "Kitchen":
- bgComboList[i] = new GUIContent("Kitchen");
- break;
- case "Kitchen_Night":
- bgComboList[i] = new GUIContent("Kitchen (Night)");
- break;
- case "Shitsumu":
- bgComboList[i] = new GUIContent("執務室");
- break;
- case "Shitsumu_Night":
- bgComboList[i] = new GUIContent("執務室(夜)");
- break;
- case "Salon_Entrance":
- bgComboList[i] = new GUIContent("エントランス");
- break;
- case "Bar":
- bgComboList[i] = new GUIContent("バー");
- break;
- case "Toilet":
- bgComboList[i] = new GUIContent("トイレ");
- break;
- case "Train":
- bgComboList[i] = new GUIContent("電車");
- break;
- case "SMRoom2":
- bgComboList[i] = new GUIContent("地下室");
- break;
- case "LockerRoom":
- bgComboList[i] = new GUIContent("ロッカールーム");
- break;
- case "Oheya":
- bgComboList[i] = new GUIContent("四畳半部屋");
- break;
- case "Salon_Day":
- bgComboList[i] = new GUIContent("サロン(昼)");
- break;
- case "ClassRoom":
- bgComboList[i] = new GUIContent("教室");
- break;
- case "ClassRoom_Play":
- bgComboList[i] = new GUIContent("教室(夜伽)");
- break;
- case "HoneymoonRoom":
- bgComboList[i] = new GUIContent("ハネムーンルーム");
- break;
- case "OutletPark":
- bgComboList[i] = new GUIContent("アウトレットパーク");
- break;
- case "BigSight":
- bgComboList[i] = new GUIContent("ビッグサイト");
- break;
- case "BigSight_Night":
- bgComboList[i] = new GUIContent("ビッグサイト(夜)");
- break;
- case "PrivateRoom":
- bgComboList[i] = new GUIContent("プライベートルーム");
- break;
- case "PrivateRoom_Night":
- bgComboList[i] = new GUIContent("プライベートルーム(夜)");
- break;
- case "Sea":
- bgComboList[i] = new GUIContent("海");
- break;
- case "Sea_Night":
- bgComboList[i] = new GUIContent("海(夜)");
- break;
- case "Yashiki":
- bgComboList[i] = new GUIContent("屋敷(夜)");
- break;
- case "Yashiki_Day":
- bgComboList[i] = new GUIContent("屋敷");
- break;
- case "Yashiki_Pillow":
- bgComboList[i] = new GUIContent("屋敷(夜・枕)");
- break;
- case "rotenburo":
- bgComboList[i] = new GUIContent("露天風呂");
- break;
- case "rotenburo_night":
- bgComboList[i] = new GUIContent("露天風呂(夜)");
- break;
- case "villa":
- bgComboList[i] = new GUIContent("ヴィラ1F");
- break;
- case "villa_night":
- bgComboList[i] = new GUIContent("ヴィラ1F(夜)");
- break;
- case "villa_bedroom":
- bgComboList[i] = new GUIContent("ヴィラ2F");
- break;
- case "villa_bedroom_night":
- bgComboList[i] = new GUIContent("ヴィラ2F(夜)");
- break;
- case "villa_farm":
- bgComboList[i] = new GUIContent("畑");
- break;
- case "villa_farm_night":
- bgComboList[i] = new GUIContent("畑(夜)");
- break;
- case "karaokeroom":
- bgComboList[i] = new GUIContent("カラオケルーム");
- break;
- case "Theater":
- bgComboList[i] = new GUIContent("劇場");
- break;
- case "Theater_LightOff":
- bgComboList[i] = new GUIContent("劇場(夜)");
- break;
- case "LiveStage":
- bgComboList[i] = new GUIContent("ステージ");
- break;
- case "LiveStage_Side":
- bgComboList[i] = new GUIContent("ステージ(ライト)");
- break;
- case "LiveStage_use_dance":
- bgComboList[i] = new GUIContent("ステージ(オフ)");
- break;
- case "BackStage":
- bgComboList[i] = new GUIContent("ステージ裏");
- break;
- case "DanceRoom":
- bgComboList[i] = new GUIContent("トレーニングルーム");
- break;
- case "EmpireClub_Rotary":
- bgComboList[i] = new GUIContent("ロータリー");
- break;
- case "EmpireClub_Rotary_Night":
- bgComboList[i] = new GUIContent("ロータリー(夜)");
- break;
- case "EmpireClub_Entrance":
- bgComboList[i] = new GUIContent("エントランス");
- break;
- case "ShinShitsumu":
- bgComboList[i] = new GUIContent("執務室");
- break;
- case "ShinShitsumu_ChairRot":
- bgComboList[i] = new GUIContent("執務室(椅子)");
- break;
- case "ShinShitsumu_Night":
- bgComboList[i] = new GUIContent("執務室(夜)");
- break;
- case "MyRoom":
- bgComboList[i] = new GUIContent("主人公部屋");
- break;
- case "MyRoom_Night":
- bgComboList[i] = new GUIContent("主人公部屋(夜)");
- break;
- case "OpemCafe":
- bgComboList[i] = new GUIContent("カフェ");
- break;
- case "OpemCafe_Night":
- bgComboList[i] = new GUIContent("カフェ(夜)");
- break;
- case "Restaurant":
- bgComboList[i] = new GUIContent("レストラン");
- break;
- case "Restaurant_Night":
- bgComboList[i] = new GUIContent("レストラン(夜)");
- break;
- case "MainKitchen":
- bgComboList[i] = new GUIContent("キッチン");
- break;
- case "MainKitchen_Night":
- bgComboList[i] = new GUIContent("キッチン(夜)");
- break;
- case "MainKitchen_LightOff":
- bgComboList[i] = new GUIContent("キッチン(オフ)");
- break;
- case "BarLounge":
- bgComboList[i] = new GUIContent("バー");
- break;
- case "Casino":
- bgComboList[i] = new GUIContent("カジノ");
- break;
- case "CasinoMini":
- bgComboList[i] = new GUIContent("カジノミニ");
- break;
- case "SMClub":
- bgComboList[i] = new GUIContent("SMクラブ");
- break;
- case "Soap":
- bgComboList[i] = new GUIContent("ソープ");
- break;
- case "Spa":
- bgComboList[i] = new GUIContent("スパ");
- break;
- case "Spa_Night":
- bgComboList[i] = new GUIContent("スパ(夜)");
- break;
- case "ShoppingMall":
- bgComboList[i] = new GUIContent("ショッピングモール");
- break;
- case "ShoppingMall_Night":
- bgComboList[i] = new GUIContent("ショッピングモール(夜)");
- break;
- case "GameShop":
- bgComboList[i] = new GUIContent("ゲームショップ");
- break;
- case "MusicShop":
- bgComboList[i] = new GUIContent("ミュージックショップ");
- break;
- case "HeroineRoom_A1":
- bgComboList[i] = new GUIContent("無垢部屋");
- break;
- case "HeroineRoom_A1_Night":
- bgComboList[i] = new GUIContent("無垢部屋(夜)");
- break;
- case "HeroineRoom_B1":
- bgComboList[i] = new GUIContent("真面目部屋");
- break;
- case "HeroineRoom_B1_Night":
- bgComboList[i] = new GUIContent("真面目部屋(夜)");
- break;
- case "HeroineRoom_C1":
- bgComboList[i] = new GUIContent("凜デレ部屋");
- break;
- case "HeroineRoom_C1_Night":
- bgComboList[i] = new GUIContent("凜デレ部屋(夜)");
- break;
- case "HeroineRoom_A":
- bgComboList[i] = new GUIContent("ツンデレ部屋");
- break;
- case "HeroineRoom_A_Night":
- bgComboList[i] = new GUIContent("ツンデレ部屋(夜)");
- break;
- case "HeroineRoom_B":
- bgComboList[i] = new GUIContent("クーデレ部屋");
- break;
- case "HeroineRoom_B_Night":
- bgComboList[i] = new GUIContent("クーデレ部屋(夜)");
- break;
- case "HeroineRoom_C":
- bgComboList[i] = new GUIContent("純真部屋");
- break;
- case "HeroineRoom_C_Night":
- bgComboList[i] = new GUIContent("純真部屋(夜)");
- break;
- case "Shukuhakubeya_BedRoom":
- bgComboList[i] = new GUIContent("宿泊-ベッドルーム");
- break;
- case "Shukuhakubeya_BedRoom_Night":
- bgComboList[i] = new GUIContent("宿泊-ベッドルーム(夜)");
- break;
- case "Shukuhakubeya_Other_BedRoom":
- bgComboList[i] = new GUIContent("宿泊-他ベッドルーム(夜)");
- break;
- case "Shukuhakubeya_Living":
- bgComboList[i] = new GUIContent("宿泊-リビング");
- break;
- case "Shukuhakubeya_Living_Night":
- bgComboList[i] = new GUIContent("宿泊-リビング(夜)");
- break;
- case "Shukuhakubeya_Toilet":
- bgComboList[i] = new GUIContent("宿泊-トイレ");
- break;
- case "Shukuhakubeya_Toilet_Night":
- bgComboList[i] = new GUIContent("宿泊-トイレ(夜)");
- break;
- case "Shukuhakubeya_WashRoom":
- bgComboList[i] = new GUIContent("宿泊-洗面所");
- break;
- case "Shukuhakubeya_WashRoom_Night":
- bgComboList[i] = new GUIContent("宿泊-洗面所(夜)");
- break;
- case "HeroineRoom_D1":
- bgComboList[i] = new GUIContent("Bookworm Room");
- break;
- case "HeroineRoom_D1_Night":
- bgComboList[i] = new GUIContent("Bookworm Room (Night)");
- break;
- case "HeroineRoom_D":
- bgComboList[i] = new GUIContent("Oneechan Room");
- break;
- case "HeroineRoom_D_Night":
- bgComboList[i] = new GUIContent("Oneechan Room (Night)");
- break;
- case "HeroineRoom_E":
- bgComboList[i] = new GUIContent("Sadist Room");
- break;
- case "HeroineRoom_E_Night":
- bgComboList[i] = new GUIContent("Sadist Room (Night)");
- break;
- case "opemcafe_rance10":
- bgComboList[i] = new GUIContent("RanceCafe");
- break;
- case "opemcafe_rance10_night":
- bgComboList[i] = new GUIContent("RanceCafe (Night)");
- break;
- case "opemcafe_riddlejoker":
- bgComboList[i] = new GUIContent("RiddleCafe");
- break;
- case "opemcafe_riddlejoker_night":
- bgComboList[i] = new GUIContent("RiddleCafe (Night)");
- break;
- case "SeaCafe":
- bgComboList[i] = new GUIContent("SeaCafe");
- break;
- case "SeaCafe_Night":
- bgComboList[i] = new GUIContent("SeaCafe (Night)");
- break;
- case "com3d2pool":
- bgComboList[i] = new GUIContent("ClubPool");
- break;
- case "com3d2pool_night":
- bgComboList[i] = new GUIContent("ClubPool (Night)");
- break;
- default: goto IL_1692;
- }
- IL_16AB:
- Dictionary<string, string> saveDataDic = CreativeRoomManager.GetSaveDataDic();
- if (saveDataDic != null)
- {
- foreach (KeyValuePair<string, string> keyValuePair in saveDataDic)
- {
- if (bgArray[i] == keyValuePair.Key)
- {
- bgComboList[i] = new GUIContent(keyValuePair.Value);
- }
- }
- }
- i++;
- continue;
- IL_1692:
- string tmp = null;
- if (bgDict.TryGetValue(text, out tmp))
- bgComboList[i] = new GUIContent(tmp);
- else
- bgComboList[i] = new GUIContent(bgArray[i]);
- goto IL_16AB;
- }
- doguCombo.selectedItemIndex = 0;
- doguComboList = new GUIContent[doguBArray.Length];
- i = 0;
- while (i < doguBArray.Length)
- {
- string text = doguBArray[i];
- if (text == null)
- {
- goto IL_40C6;
- }
- if (dicts[2] == null)
- {
- dicts[2] = new Dictionary<string, int>(248)
- {
- {"Odogu_KousokuKijyouiChair_photo_ver", 0},
- {"Odogu_VirginRoad_photo_ver", 1},
- {"neirobo", 2},
- {"Odogu_ClassRoomDesk_photo_ver", 3},
- {"Odogu_ClassRoomChair_photo_ver", 4},
- {"Odogu_TrumpTowerSmall_photo_ver", 5},
- {"Odogu_TrumpTowerBig_photo_ver", 6},
- {"Odogu_VVLight_photo_ver", 7},
- {"Odogu_OXCamera_photo_ver", 8},
- {"Odogu_HandCameraVV_photo_ver", 9},
- {"Odogu_PC_photo_ver", 10},
- {"Odogu_PC_Monitor_photo_ver", 11},
- {"Odogu_PC_Keyboard_photo_ver", 12},
- {"Odogu_PC_Mouse_photo_ver", 13},
- {"Odogu_MaidRoomBook001_photo_ver", 14},
- {"Odogu_MaidRoomBook002_photo_ver", 15},
- {"Odogu_MaidRoomBook003_photo_ver", 16},
- {"Odogu_MaidRoomBook004_photo_ver", 17},
- {"Odogu_MaidRoomBook005_photo_ver", 18},
- {"Odogu_Pen_photo_ver", 19},
- {"Odogu_Pen_Black_photo_ver", 20},
- {"Odogu_Pen_Brown_photo_ver", 21},
- {"Odogu_Pen_Green_photo_ver", 22},
- {"Odogu_Enpitsu_photo_ver", 23},
- {"Odogu_Enpitsu_Black_photo_ver", 24},
- {"Odogu_Enpitsu_Red_photo_ver", 25},
- {"Odogu_Keshigomu_photo_ver", 26},
- {"Odogu_Keshigomu_Purple_photo_ver", 27},
- {"Odogu_Keshigomu_Yellow_photo_ver", 28},
- {"Odogu_StickNori_photo_ver", 29},
- {"Odogu_Condom_Close_photo_ver", 30},
- {"Odogu_Condom_Open_photo_ver", 31},
- {"Odogu_Condom_Pack_photo_ver", 32},
- {"Odogu_SalonSofa_long_photo_ver", 33},
- {"Odogu_SalonSofa_4P_photo_ver", 34},
- {"Odogu_Girochin_A_photo_ver", 35},
- {"Odogu_SankakuMokuba_photo_ver", 36},
- {"Odogu_SMRoom2_SankakuMokuba_photo_ver", 37},
- {"Odogu_Kousokudai_photo_ver", 38},
- {"Odogu_XmasTreeMini_photo_ver", 39},
- {"Odogu_KadomatsuMini_photo_ver", 40},
- {"Odogu_Kitchen_photo_ver", 41},
- {"Odogu_TableFlower_photo_ver", 42},
- {"Odogu_Kadou_photo_ver", 43},
- {"Odogu_Dresser_photo_ver", 44},
- {"Odogu_ClassRoomDesk", 45},
- {"Odogu_KadouChair_photo_ver", 46},
- {"Odogu_DresserChair_photo_ver", 47},
- {"Odogu_MaidRoomChair_photo_ver", 48},
- {"Odogu_PublicToiletBenki_photo_ver", 49},
- {"Odogu_Sukebeisu_photo_ver", 50},
- {"Odogu_Mat_photo_ver", 51},
- {"Odogu_Seikaku_Tsundere", 52},
- {"Odogu_Seikaku_Jyunshin", 53},
- {"Odogu_Seikaku_Cool", 54},
- {"Odogu_Manaita_photo_ver", 55},
- {"Odogu_Nabe_photo_ver", 56},
- {"Odogu_NoteBook_photo_ver", 57},
- {"Odogu_Sankousyo_photo_ver", 58},
- {"Odogu_Sentaku_Kago_photo_ver", 59},
- {"Odogu_Sentaku_Towel_photo_ver", 60},
- {"Odogu_Sentakumono_photo_ver", 61},
- {"Odogu_SalonScreen_photo_ver", 62},
- {"Odogu_WineGlass_photo_ver", 63},
- {"Odogu_SalonSofa_small_photo_ver", 64},
- {"Odogu_Seikaku_Tsundere_photo_ver", 65},
- {"Odogu_Seikaku_Jyunshin_photo_ver", 66},
- {"Odogu_Seikaku_Cool_photo_ver", 67},
- {"Megane001_z2_Scenario_Model", 68},
- {"nei_photo_ver", 69},
- {"neirobo_photo_ver", 70},
- {"Odogu_SimpleTable", 71},
- {"Odogu_DildoBox", 72},
- {"PlayAreaOut", 73},
- {"DesktopScreen", 74},
- {"Odogu_ChuukaSet_chahan_photo_ver", 75},
- {"Odogu_ChuukaSet_gyouza_photo_ver", 76},
- {"Odogu_ChuukaSet_mabo_photo_ver", 77},
- {"Odogu_ChuukaSet_tea_photo_ver", 78},
- {"Odogu_WasyokuSet_gohan_photo_ver", 79},
- {"Odogu_WasyokuSet_hashi_photo_ver", 80},
- {"Odogu_WasyokuSet_misoshiru_photo_ver", 81},
- {"Odogu_WasyokuSet_nimono_photo_ver", 82},
- {"Odogu_WasyokuSet_ocha_photo_ver", 83},
- {"Odogu_YousyokuSet_ChickenRice_photo_ver", 84},
- {"Odogu_YousyokuSet_Coffee_photo_ver", 85},
- {"Odogu_YousyokuSet_CornSoup_photo_ver", 86},
- {"Odogu_YousyokuSet_Hamburg_photo_ver", 87},
- {"Odogu_YousyokuSet_SakiwareSpoon_photo_ver", 88},
- {"Odogu_PR_Table_photo_ver", 89},
- {"Odogu_PR_Table_Chuuka_photo_ver", 90},
- {"Odogu_PR_Table_Wasyoku_photo_ver", 91},
- {"Odogu_PR_Table_Yousyoku_photo_ver", 92},
- {"Odogu_LongDaiza_photo_ver", 93},
- {"BGanimal_cat", 94},
- {"BGanimal_dog", 95},
- {"BGanimal_niwatori", 96},
- {"BGanimal_suzume", 97},
- {"BGodogu_bbqgrill", 98},
- {"BGodogu_bucket", 99},
- {"BGodogu_coolerbox", 100},
- {"BGodogu_game_darts", 101},
- {"BGodogu_game_dartsboard", 102},
- {"BGodogu_nabe_huta", 103},
- {"BGodogu_nabe_water", 104},
- {"BGodogu_natumikan", 105},
- {"BGodogu_rb_chair", 106},
- {"BGodogu_rb_duck", 107},
- {"BGodogu_rb_obon", 108},
- {"BGodogu_rb_tokkuri", 109},
- {"BGodogu_saracorn", 110},
- {"BGodogu_saraimo", 111},
- {"BGodogu_saratomato", 112},
- {"BGodogu_sunanoshiro", 113},
- {"BGodogu_sunanoyama", 114},
- {"BGodogu_tsutsuhanabi", 115},
- {"BGodogu_ukiwa", 116},
- {"BGodogu_vf_crops_corn", 117},
- {"BGodogu_vf_crops_gekkabijin", 118},
- {"BGodogu_vf_crops_gekkabijinflower", 119},
- {"BGodogu_vf_crops_himawari", 120},
- {"BGodogu_vf_crops_natsumikan", 121},
- {"BGodogu_vf_crops_suika", 122},
- {"BGodogu_vf_crops_zakuro", 123},
- {"BGodogu_vf_kanban_ok", 124},
- {"BGodogu_vf_kanban_saibai", 125},
- {"BGodogu_vf_kanban_taiki", 126},
- {"BGodogu_vf_radio", 127},
- {"BGodogu_villa_coffeemaker", 128},
- {"BGodogu_villa_reizouko", 129},
- {"BGodogu_villa_table", 130},
- {"BGodogu_villa_tvrimocon", 131},
- {"BGodogu_villa_winecellar", 132},
- {"BGodogu_villabr_sideboard", 133},
- {"BGOdogu_Game_Nei_USB", 134},
- {"BGOdogu_Game_Wanage", 135},
- {"BGOdogu_Game_Wa", 136},
- {"BGodogu_pafe", 137},
- {"BGodogu_furaidopoteto", 138},
- {"BGodogu_karaoketable", 139},
- {"BGodogu_omuriceh", 140},
- {"BGodogu_omuricekao1", 141},
- {"BGodogu_omuricekao2", 142},
- {"BGodogu_omuriceoppai", 143},
- {"BGodogu_kakigori", 144},
- {"BGodogu_pretzel_sara", 145},
- {"BGodogu_karaoke_box", 146},
- {"Odogu_StandMike", 147},
- {"Odogu_StandMikeBase", 148},
- {"photo_ver/Odogu_Umeko_Mike_photo_ver", 149},
- {"Odogu_HeroineChair_muku", 150},
- {"Odogu_HeroineChair_mazime", 151},
- {"Odogu_HeroineChair_rindere", 152},
- {"Odogu_HeroineChair_tsumdere", 153},
- {"Odogu_HeroineChair_cooldere", 154},
- {"Odogu_HeroineChair_junshin", 155},
- {"photo_ver/Odogu_Etoile_Chair_photo_ver", 156},
- {"Odogu_LoveSofa", 157},
- {"Odogu_TabletPC", 158},
- {"Odogu_Styluspen_black", 159},
- {"Odogu_Styluspen_white", 160},
- {"Odogu_Styluspen_red", 161},
- {"Odogu_Styluspen_blue", 162},
- {"Odogu_Styluspen_yellow", 163},
- {"Odogu_Styluspen_green", 164},
- {"Odogu_Omurice1", 165},
- {"Odogu_Omurice3", 166},
- {"Odogu_OmuriceH", 167},
- {"Odogu_OmuriceKao1", 168},
- {"Odogu_OmuriceKao2", 169},
- {"Odogu_OmuriceOppai", 170},
- {"Odogu_AcquaPazza", 171},
- {"Odogu_Sandwich", 172},
- {"Odogu_vichyssoise", 173},
- {"Odogu_BirthdayCake", 174},
- {"Odogu_Shortcake", 175},
- {"Odogu_MontBlanc", 176},
- {"Odogu_Pafe", 177},
- {"Odogu_Smoothie_Red", 178},
- {"Odogu_Smoothie_Green", 179},
- {"Odogu_Cocktail_Red", 180},
- {"Odogu_Cocktail_Blue", 181},
- {"Odogu_Cocktail_Yellow", 182},
- {"Odogu_Coffiecup", 183},
- {"Odogu_WineBottle(cap_off)", 184},
- {"Odogu_WineBottle(cap_on)", 185},
- {"Odogu_Jyouro", 186},
- {"Odogu_Planter_Red", 187},
- {"Odogu_Planter_Lightblue", 188},
- {"Odogu_MariGold", 189},
- {"Odogu_CasinoChip_10", 190},
- {"Odogu_CasinoChip_100", 191},
- {"Odogu_CasinoChip_1000", 192},
- {"Odogu_CardShooter", 193},
- {"Odogu_CardsDeck", 194},
- {"Odogu_Card_s1", 195},
- {"Odogu_Card_s2", 196},
- {"Odogu_Card_s3", 197},
- {"Odogu_Card_s4", 198},
- {"Odogu_Card_s5", 199},
- {"Odogu_Card_s6", 200},
- {"Odogu_Card_s7", 201},
- {"Odogu_Card_s8", 202},
- {"Odogu_Card_s9", 203},
- {"Odogu_Card_s10", 204},
- {"Odogu_Card_s11", 205},
- {"Odogu_Card_s12", 206},
- {"Odogu_Card_s13", 207},
- {"Odogu_Card_h1", 208},
- {"Odogu_Card_h2", 209},
- {"Odogu_Card_h3", 210},
- {"Odogu_Card_h4", 211},
- {"Odogu_Card_h5", 212},
- {"Odogu_Card_h6", 213},
- {"Odogu_Card_h7", 214},
- {"Odogu_Card_h8", 215},
- {"Odogu_Card_h9", 216},
- {"Odogu_Card_h10", 217},
- {"Odogu_Card_h11", 218},
- {"Odogu_Card_h12", 219},
- {"Odogu_Card_h13", 220},
- {"Odogu_Card_d1", 221},
- {"Odogu_Card_d2", 222},
- {"Odogu_Card_d3", 223},
- {"Odogu_Card_d4", 224},
- {"Odogu_Card_d5", 225},
- {"Odogu_Card_d6", 226},
- {"Odogu_Card_d7", 227},
- {"Odogu_Card_d8", 228},
- {"Odogu_Card_d9", 229},
- {"Odogu_Card_d10", 230},
- {"Odogu_Card_d11", 231},
- {"Odogu_Card_d12", 232},
- {"Odogu_Card_d13", 233},
- {"Odogu_Card_c1", 234},
- {"Odogu_Card_c2", 235},
- {"Odogu_Card_c3", 236},
- {"Odogu_Card_c4", 237},
- {"Odogu_Card_c5", 238},
- {"Odogu_Card_c6", 239},
- {"Odogu_Card_c7", 240},
- {"Odogu_Card_c8", 241},
- {"Odogu_Card_c9", 242},
- {"Odogu_Card_c10", 243},
- {"Odogu_Card_c11", 244},
- {"Odogu_Card_c12", 245},
- {"Odogu_Card_c13", 246},
- {"Odogu_Card_joker", 247}
- };
- }
- if (!dicts[2].TryGetValue(text, out num))
- {
- goto IL_40C6;
- }
- switch (num)
- {
- case 0:
- doguComboList[i] = new GUIContent("拘束椅子");
- break;
- case 1:
- doguComboList[i] = new GUIContent("バージンロード");
- break;
- case 2:
- doguComboList[i] = new GUIContent("ロボねい人形");
- break;
- case 3:
- doguComboList[i] = new GUIContent("教室机");
- break;
- case 4:
- doguComboList[i] = new GUIContent("教室椅子");
- break;
- case 5:
- doguComboList[i] = new GUIContent("トランプタワー(小)");
- break;
- case 6:
- doguComboList[i] = new GUIContent("トランプタワー");
- break;
- case 7:
- doguComboList[i] = new GUIContent("Wライト");
- break;
- case 8:
- doguComboList[i] = new GUIContent("OXカメラ");
- break;
- case 9:
- doguComboList[i] = new GUIContent("レトロカメラ");
- break;
- case 10:
- doguComboList[i] = new GUIContent("PC");
- break;
- case 11:
- doguComboList[i] = new GUIContent("モニター");
- break;
- case 12:
- doguComboList[i] = new GUIContent("キーボード");
- break;
- case 13:
- doguComboList[i] = new GUIContent("マウス");
- break;
- case 14:
- doguComboList[i] = new GUIContent("参考書A");
- break;
- case 15:
- doguComboList[i] = new GUIContent("参考書B");
- break;
- case 16:
- doguComboList[i] = new GUIContent("参考書C");
- break;
- case 17:
- doguComboList[i] = new GUIContent("参考書D");
- break;
- case 18:
- doguComboList[i] = new GUIContent("参考書E");
- break;
- case 19:
- doguComboList[i] = new GUIContent("ペン(桃)");
- break;
- case 20:
- doguComboList[i] = new GUIContent("ペン(黒)");
- break;
- case 21:
- doguComboList[i] = new GUIContent("ペン(茶)");
- break;
- case 22:
- doguComboList[i] = new GUIContent("ペン(緑)");
- break;
- case 23:
- doguComboList[i] = new GUIContent("鉛筆(緑)");
- break;
- case 24:
- doguComboList[i] = new GUIContent("鉛筆(黒)");
- break;
- case 25:
- doguComboList[i] = new GUIContent("鉛筆(赤)");
- break;
- case 26:
- doguComboList[i] = new GUIContent("消しゴム(青)");
- break;
- case 27:
- doguComboList[i] = new GUIContent("消しゴム(紫)");
- break;
- case 28:
- doguComboList[i] = new GUIContent("消しゴム(黄)");
- break;
- case 29:
- doguComboList[i] = new GUIContent("スティック糊");
- break;
- case 30:
- doguComboList[i] = new GUIContent("コンドーム(閉)");
- break;
- case 31:
- doguComboList[i] = new GUIContent("コンドーム(開)");
- break;
- case 32:
- doguComboList[i] = new GUIContent("コンドーム(袋)");
- break;
- case 33:
- doguComboList[i] = new GUIContent("ソファー");
- break;
- case 34:
- doguComboList[i] = new GUIContent("ソファー(大)");
- break;
- case 35:
- doguComboList[i] = new GUIContent("ギロチン");
- break;
- case 36:
- doguComboList[i] = new GUIContent("三角木馬");
- break;
- case 37:
- doguComboList[i] = new GUIContent("三角木馬2");
- break;
- case 38:
- doguComboList[i] = new GUIContent("拘束台");
- break;
- case 39:
- doguComboList[i] = new GUIContent("クリスマスツリー");
- break;
- case 40:
- doguComboList[i] = new GUIContent("門松");
- break;
- case 41:
- doguComboList[i] = new GUIContent("キッチン");
- break;
- case 42:
- doguComboList[i] = new GUIContent("花とテーブル");
- break;
- case 43:
- doguComboList[i] = new GUIContent("華道");
- break;
- case 44:
- doguComboList[i] = new GUIContent("ドレッサー");
- break;
- case 45:
- doguComboList[i] = new GUIContent("教室机");
- break;
- case 46:
- doguComboList[i] = new GUIContent("華道椅子");
- break;
- case 47:
- doguComboList[i] = new GUIContent("ドレッサー椅子");
- break;
- case 48:
- doguComboList[i] = new GUIContent("メイド部屋椅子");
- break;
- case 49:
- doguComboList[i] = new GUIContent("ベンキ");
- break;
- case 50:
- doguComboList[i] = new GUIContent("スケベ椅子");
- break;
- case 51:
- doguComboList[i] = new GUIContent("マット");
- break;
- case 52:
- doguComboList[i] = new GUIContent("ツンデレ");
- break;
- case 53:
- doguComboList[i] = new GUIContent("純真");
- break;
- case 54:
- doguComboList[i] = new GUIContent("クール");
- break;
- case 55:
- doguComboList[i] = new GUIContent("まな板");
- break;
- case 56:
- doguComboList[i] = new GUIContent("鍋");
- break;
- case 57:
- doguComboList[i] = new GUIContent("ノート");
- break;
- case 58:
- doguComboList[i] = new GUIContent("参考書");
- break;
- case 59:
- doguComboList[i] = new GUIContent("洗濯かご");
- break;
- case 60:
- doguComboList[i] = new GUIContent("重ねたタオル");
- break;
- case 61:
- doguComboList[i] = new GUIContent("洗濯物");
- break;
- case 62:
- doguComboList[i] = new GUIContent("スクリーン");
- break;
- case 63:
- doguComboList[i] = new GUIContent("ワイングラス");
- break;
- case 64:
- doguComboList[i] = new GUIContent("ソファー(小)");
- break;
- case 65:
- doguComboList[i] = new GUIContent("ツンデレ");
- break;
- case 66:
- doguComboList[i] = new GUIContent("純真");
- break;
- case 67:
- doguComboList[i] = new GUIContent("クール");
- break;
- case 68:
- doguComboList[i] = new GUIContent("メガネ");
- break;
- case 69:
- doguComboList[i] = new GUIContent("ねい人形");
- break;
- case 70:
- doguComboList[i] = new GUIContent("ロボねい人形");
- break;
- case 71:
- doguComboList[i] = new GUIContent("テーブル");
- break;
- case 72:
- doguComboList[i] = new GUIContent("ディルドボックス");
- break;
- case 73:
- doguComboList[i] = new GUIContent("プレイエリア外");
- break;
- case 74:
- doguComboList[i] = new GUIContent("デスクトップスクリーン");
- break;
- case 75:
- doguComboList[i] = new GUIContent("チャーハン");
- break;
- case 76:
- doguComboList[i] = new GUIContent("餃子");
- break;
- case 77:
- doguComboList[i] = new GUIContent("麻婆豆腐");
- break;
- case 78:
- doguComboList[i] = new GUIContent("お茶");
- break;
- case 79:
- doguComboList[i] = new GUIContent("ご飯");
- break;
- case 80:
- doguComboList[i] = new GUIContent("箸");
- break;
- case 81:
- doguComboList[i] = new GUIContent("味噌汁");
- break;
- case 82:
- doguComboList[i] = new GUIContent("煮物");
- break;
- case 83:
- doguComboList[i] = new GUIContent("緑茶");
- break;
- case 84:
- doguComboList[i] = new GUIContent("チキンライス");
- break;
- case 85:
- doguComboList[i] = new GUIContent("コーヒー");
- break;
- case 86:
- doguComboList[i] = new GUIContent("コーンスープ");
- break;
- case 87:
- doguComboList[i] = new GUIContent("ハンバーグ");
- break;
- case 88:
- doguComboList[i] = new GUIContent("先割れスプーン");
- break;
- case 89:
- doguComboList[i] = new GUIContent("テーブル");
- break;
- case 90:
- doguComboList[i] = new GUIContent("中華テーブル");
- break;
- case 91:
- doguComboList[i] = new GUIContent("和食テーブル");
- break;
- case 92:
- doguComboList[i] = new GUIContent("洋食テーブル");
- break;
- case 93:
- doguComboList[i] = new GUIContent("エッチする時の台");
- break;
- case 94:
- doguComboList[i] = new GUIContent("猫");
- break;
- case 95:
- doguComboList[i] = new GUIContent("犬");
- break;
- case 96:
- doguComboList[i] = new GUIContent("ニワトリ");
- break;
- case 97:
- doguComboList[i] = new GUIContent("スズメ");
- break;
- case 98:
- doguComboList[i] = new GUIContent("バーベキューグリル");
- break;
- case 99:
- doguComboList[i] = new GUIContent("バケツ");
- break;
- case 100:
- doguComboList[i] = new GUIContent("クーラーボックス");
- break;
- case 101:
- doguComboList[i] = new GUIContent("ダーツ");
- break;
- case 102:
- doguComboList[i] = new GUIContent("ダーツボード");
- break;
- case 103:
- doguComboList[i] = new GUIContent("鍋");
- break;
- case 104:
- doguComboList[i] = new GUIContent("鍋");
- break;
- case 105:
- doguComboList[i] = new GUIContent("夏みかん");
- break;
- case 106:
- doguComboList[i] = new GUIContent("風呂椅子");
- break;
- case 107:
- doguComboList[i] = new GUIContent("アヒル");
- break;
- case 108:
- doguComboList[i] = new GUIContent("おぼん");
- break;
- case 109:
- doguComboList[i] = new GUIContent("とっくり");
- break;
- case 110:
- doguComboList[i] = new GUIContent("コーン皿");
- break;
- case 111:
- doguComboList[i] = new GUIContent("イモ皿");
- break;
- case 112:
- doguComboList[i] = new GUIContent("トマト皿");
- break;
- case 113:
- doguComboList[i] = new GUIContent("砂の城");
- break;
- case 114:
- doguComboList[i] = new GUIContent("砂山");
- break;
- case 115:
- doguComboList[i] = new GUIContent("筒花火");
- break;
- case 116:
- doguComboList[i] = new GUIContent("浮き輪");
- break;
- case 117:
- doguComboList[i] = new GUIContent("作物(コーン)");
- break;
- case 118:
- doguComboList[i] = new GUIContent("作物(月下美人)");
- break;
- case 119:
- doguComboList[i] = new GUIContent("作物(月下美人・咲)");
- break;
- case 120:
- doguComboList[i] = new GUIContent("作物(向日葵)");
- break;
- case 121:
- doguComboList[i] = new GUIContent("作物(夏みかん)");
- break;
- case 122:
- doguComboList[i] = new GUIContent("作物(スイカ)");
- break;
- case 123:
- doguComboList[i] = new GUIContent("作物(ザクロ)");
- break;
- case 124:
- doguComboList[i] = new GUIContent("");
- break;
- case 125:
- doguComboList[i] = new GUIContent("");
- break;
- case 126:
- doguComboList[i] = new GUIContent("");
- break;
- case 127:
- doguComboList[i] = new GUIContent("ラジオ");
- break;
- case 128:
- doguComboList[i] = new GUIContent("コーヒーメーカー");
- break;
- case 129:
- doguComboList[i] = new GUIContent("冷蔵庫");
- break;
- case 130:
- doguComboList[i] = new GUIContent("テーブル");
- break;
- case 131:
- doguComboList[i] = new GUIContent("テレビリモコン");
- break;
- case 132:
- doguComboList[i] = new GUIContent("ワインセラー");
- break;
- case 133:
- doguComboList[i] = new GUIContent("サイドボード");
- break;
- case 134:
- doguComboList[i] = new GUIContent("ねい人形USB");
- break;
- case 135:
- doguComboList[i] = new GUIContent("輪投げ");
- break;
- case 136:
- doguComboList[i] = new GUIContent("輪");
- break;
- case 137:
- doguComboList[i] = new GUIContent("パフェ");
- break;
- case 138:
- doguComboList[i] = new GUIContent("フライドポテト");
- break;
- case 139:
- doguComboList[i] = new GUIContent("カラオケテーブル");
- break;
- case 140:
- doguComboList[i] = new GUIContent("オムライスH");
- break;
- case 141:
- doguComboList[i] = new GUIContent("オムライス顔1");
- break;
- case 142:
- doguComboList[i] = new GUIContent("オムライス顔2");
- break;
- case 143:
- doguComboList[i] = new GUIContent("オムライスおっぱい");
- break;
- case 144:
- doguComboList[i] = new GUIContent("かき氷");
- break;
- case 145:
- doguComboList[i] = new GUIContent("スナックプレート");
- break;
- case 146:
- doguComboList[i] = new GUIContent("箱");
- break;
- case 147:
- doguComboList[i] = new GUIContent("スタンドマイク");
- break;
- case 148:
- doguComboList[i] = new GUIContent("スタンドマイクベース");
- break;
- case 149:
- doguComboList[i] = new GUIContent("コアラマイク");
- break;
- case 150:
- doguComboList[i] = new GUIContent("無垢椅子");
- break;
- case 151:
- doguComboList[i] = new GUIContent("真面目椅子");
- break;
- case 152:
- doguComboList[i] = new GUIContent("凛デレ椅子");
- break;
- case 153:
- doguComboList[i] = new GUIContent("ツンデレ椅子");
- break;
- case 154:
- doguComboList[i] = new GUIContent("クーデレ椅子");
- break;
- case 155:
- doguComboList[i] = new GUIContent("純真椅子");
- break;
- case 156:
- doguComboList[i] = new GUIContent("ふかふかチェア");
- break;
- case 157:
- doguComboList[i] = new GUIContent("ラブソファー");
- break;
- case 158:
- doguComboList[i] = new GUIContent("タブレットPC");
- break;
- case 159:
- doguComboList[i] = new GUIContent("スタイラスペン(黒)");
- break;
- case 160:
- doguComboList[i] = new GUIContent("スタイラスペン(白)");
- break;
- case 161:
- doguComboList[i] = new GUIContent("スタイラスペン(赤)");
- break;
- case 162:
- doguComboList[i] = new GUIContent("スタイラスペン(青)");
- break;
- case 163:
- doguComboList[i] = new GUIContent("スタイラスペン(黄)");
- break;
- case 164:
- doguComboList[i] = new GUIContent("スタイラスペン(緑)");
- break;
- case 165:
- doguComboList[i] = new GUIContent("オムライス1");
- break;
- case 166:
- doguComboList[i] = new GUIContent("オムライス3");
- break;
- case 167:
- doguComboList[i] = new GUIContent("オムライスH");
- break;
- case 168:
- doguComboList[i] = new GUIContent("オムライス顔1");
- break;
- case 169:
- doguComboList[i] = new GUIContent("オムライス顔2");
- break;
- case 170:
- doguComboList[i] = new GUIContent("オムライスおっぱい");
- break;
- case 171:
- doguComboList[i] = new GUIContent("アクアパッザ");
- break;
- case 172:
- doguComboList[i] = new GUIContent("サンドイッチ");
- break;
- case 173:
- doguComboList[i] = new GUIContent("スープ");
- break;
- case 174:
- doguComboList[i] = new GUIContent("バースデーケーキ");
- break;
- case 175:
- doguComboList[i] = new GUIContent("ショートケーキ");
- break;
- case 176:
- doguComboList[i] = new GUIContent("モンブラン");
- break;
- case 177:
- doguComboList[i] = new GUIContent("パフェ");
- break;
- case 178:
- doguComboList[i] = new GUIContent("スムージー・赤");
- break;
- case 179:
- doguComboList[i] = new GUIContent("スムージー・緑");
- break;
- case 180:
- doguComboList[i] = new GUIContent("カクテル・赤");
- break;
- case 181:
- doguComboList[i] = new GUIContent("カクテル・青");
- break;
- case 182:
- doguComboList[i] = new GUIContent("カクテル・黄");
- break;
- case 183:
- doguComboList[i] = new GUIContent("コーヒーカップ");
- break;
- case 184:
- doguComboList[i] = new GUIContent("ワインボトル");
- break;
- case 185:
- doguComboList[i] = new GUIContent("ワインボトル(蓋)");
- break;
- case 186:
- doguComboList[i] = new GUIContent("如雨露");
- break;
- case 187:
- doguComboList[i] = new GUIContent("プランター(赤)");
- break;
- case 188:
- doguComboList[i] = new GUIContent("プランター(青)");
- break;
- case 189:
- doguComboList[i] = new GUIContent("マリーゴールド");
- break;
- case 190:
- doguComboList[i] = new GUIContent("カジノチップ10");
- break;
- case 191:
- doguComboList[i] = new GUIContent("カジノチップ100");
- break;
- case 192:
- doguComboList[i] = new GUIContent("カジノチップ1000");
- break;
- case 193:
- doguComboList[i] = new GUIContent("カードシューター");
- break;
- case 194:
- doguComboList[i] = new GUIContent("カードデッキ");
- break;
- case 195:
- doguComboList[i] = new GUIContent("カード・スペードA");
- break;
- case 196:
- doguComboList[i] = new GUIContent("カード・スペード2");
- break;
- case 197:
- doguComboList[i] = new GUIContent("カード・スペード3");
- break;
- case 198:
- doguComboList[i] = new GUIContent("カード・スペード4");
- break;
- case 199:
- doguComboList[i] = new GUIContent("カード・スペード5");
- break;
- case 200:
- doguComboList[i] = new GUIContent("カード・スペード6");
- break;
- case 201:
- doguComboList[i] = new GUIContent("カード・スペード7");
- break;
- case 202:
- doguComboList[i] = new GUIContent("カード・スペード8");
- break;
- case 203:
- doguComboList[i] = new GUIContent("カード・スペード9");
- break;
- case 204:
- doguComboList[i] = new GUIContent("カード・スペード10");
- break;
- case 205:
- doguComboList[i] = new GUIContent("カード・スペードJ");
- break;
- case 206:
- doguComboList[i] = new GUIContent("カード・スペードQ");
- break;
- case 207:
- doguComboList[i] = new GUIContent("カード・スペードK");
- break;
- case 208:
- doguComboList[i] = new GUIContent("カード・ハートA");
- break;
- case 209:
- doguComboList[i] = new GUIContent("カード・ハート2");
- break;
- case 210:
- doguComboList[i] = new GUIContent("カード・ハート3");
- break;
- case 211:
- doguComboList[i] = new GUIContent("カード・ハート4");
- break;
- case 212:
- doguComboList[i] = new GUIContent("カード・ハート5");
- break;
- case 213:
- doguComboList[i] = new GUIContent("カード・ハート6");
- break;
- case 214:
- doguComboList[i] = new GUIContent("カード・ハート7");
- break;
- case 215:
- doguComboList[i] = new GUIContent("カード・ハート8");
- break;
- case 216:
- doguComboList[i] = new GUIContent("カード・ハート9");
- break;
- case 217:
- doguComboList[i] = new GUIContent("カード・ハート10");
- break;
- case 218:
- doguComboList[i] = new GUIContent("カード・ハートJ");
- break;
- case 219:
- doguComboList[i] = new GUIContent("カード・ハートQ");
- break;
- case 220:
- doguComboList[i] = new GUIContent("カード・ハートK");
- break;
- case 221:
- doguComboList[i] = new GUIContent("カード・ダイヤA");
- break;
- case 222:
- doguComboList[i] = new GUIContent("カード・ダイヤ2");
- break;
- case 223:
- doguComboList[i] = new GUIContent("カード・ダイヤ3");
- break;
- case 224:
- doguComboList[i] = new GUIContent("カード・ダイヤ4");
- break;
- case 225:
- doguComboList[i] = new GUIContent("カード・ダイヤ5");
- break;
- case 226:
- doguComboList[i] = new GUIContent("カード・ダイヤ6");
- break;
- case 227:
- doguComboList[i] = new GUIContent("カード・ダイヤ7");
- break;
- case 228:
- doguComboList[i] = new GUIContent("カード・ダイヤ8");
- break;
- case 229:
- doguComboList[i] = new GUIContent("カード・ダイヤ9");
- break;
- case 230:
- doguComboList[i] = new GUIContent("カード・ダイヤ10");
- break;
- case 231:
- doguComboList[i] = new GUIContent("カード・ダイヤJ");
- break;
- case 232:
- doguComboList[i] = new GUIContent("カード・ダイヤQ");
- break;
- case 233:
- doguComboList[i] = new GUIContent("カード・ダイヤK");
- break;
- case 234:
- doguComboList[i] = new GUIContent("カード・クラブA");
- break;
- case 235:
- doguComboList[i] = new GUIContent("カード・クラブ2");
- break;
- case 236:
- doguComboList[i] = new GUIContent("カード・クラブ3");
- break;
- case 237:
- doguComboList[i] = new GUIContent("カード・クラブ4");
- break;
- case 238:
- doguComboList[i] = new GUIContent("カード・クラブ5");
- break;
- case 239:
- doguComboList[i] = new GUIContent("カード・クラブ6");
- break;
- case 240:
- doguComboList[i] = new GUIContent("カード・クラブ7");
- break;
- case 241:
- doguComboList[i] = new GUIContent("カード・クラブ8");
- break;
- case 242:
- doguComboList[i] = new GUIContent("カード・クラブ9");
- break;
- case 243:
- doguComboList[i] = new GUIContent("カード・クラブ10");
- break;
- case 244:
- doguComboList[i] = new GUIContent("カード・クラブJ");
- break;
- case 245:
- doguComboList[i] = new GUIContent("カード・クラブQ");
- break;
- case 246:
- doguComboList[i] = new GUIContent("カード・クラブK");
- break;
- case 247:
- doguComboList[i] = new GUIContent("カード・ジョーカー");
- break;
- default: goto IL_40C6;
- }
- IL_40DF:
- i++;
- continue;
- IL_40C6:
- PhotoBGObjectData tmp = null;
- if (doguDict.TryGetValue(text, out tmp))
- doguComboList[i] = new GUIContent(tmp.name);
- else
- doguComboList[i] = new GUIContent(doguBArray[i]);
- goto IL_40DF;
- }
- parCombo.selectedItemIndex = 0;
- parComboList = new GUIContent[parArray.Length];
- i = 0;
- while (i < parArray.Length)
- {
- string text = parArray[i];
- if (text == null)
- {
- goto IL_48B6;
- }
- if (dicts[3] == null)
- {
- dicts[3] = new Dictionary<string, int>(46)
- {
- {"Salon:63", 0},
- {"Salon:65", 1},
- {"Salon:69", 2},
- {"Salon_Entrance:3", 3},
- {"Salon_Entrance:4", 4},
- {"Salon_Entrance:1", 5},
- {"Salon_Entrance:2", 6},
- {"Salon_Entrance:0", 7},
- {"Pool:26", 8},
- {"Shitsumu:23", 9},
- {"Shitsumu_Night:23", 10},
- {"OutletPark:54", 11},
- {"HoneymoonRoom:102", 12},
- {"mirror1", 13},
- {"mirror2", 14},
- {"mirror3", 15},
- {"Mob_Man_Stand001", 16},
- {"Mob_Man_Stand002", 17},
- {"Mob_Man_Stand003", 18},
- {"Mob_Man_Sit001", 19},
- {"Mob_Man_Sit002", 20},
- {"Mob_Man_Sit003", 21},
- {"Mob_Girl_Stand001", 22},
- {"Mob_Girl_Stand002", 23},
- {"Mob_Girl_Stand003", 24},
- {"Mob_Girl_Sit001", 25},
- {"Mob_Girl_Sit002", 26},
- {"Mob_Girl_Sit003", 27},
- {"p_dance_star_photo_ver", 28},
- {"p_kamihubuki_photo_ver", 29},
- {"p_mizu001_photo_ver", 30},
- {"p_powder_snow2_photo_ver", 31},
- {"p_powder_snow_photo_ver", 32},
- {"p_smoke_dance_photo_ver", 33},
- {"p_soap_bubble01_photo_ver", 34},
- {"p_soap_bukubuku_photo_ver", 35},
- {"p_soap_photo_ver", 36},
- {"p_steam001_photo_ver", 37},
- {"p_steam002_photo_ver", 38},
- {"p_steam_black_photo_ver", 39},
- {"p_yuge_large_photo_ver", 40},
- {"Particle/pLineP02", 41},
- {"Particle/pLineY", 42},
- {"Particle/pLine_act2", 43},
- {"Particle/pstarY_act2", 44},
- {"Particle/pHeart01", 45}
- };
- }
- if (!dicts[3].TryGetValue(text, out num))
- {
- goto IL_48B6;
- }
- switch (num)
- {
- case 0:
- parComboList[i] = new GUIContent("ステージライト(赤)");
- break;
- case 1:
- parComboList[i] = new GUIContent("ステージライト(黄)");
- break;
- case 2:
- parComboList[i] = new GUIContent("ステージライト(青)");
- break;
- case 3:
- parComboList[i] = new GUIContent("ドア(左)");
- break;
- case 4:
- parComboList[i] = new GUIContent("ドア(右)");
- break;
- case 5:
- parComboList[i] = new GUIContent("ホールドア(左)");
- break;
- case 6:
- parComboList[i] = new GUIContent("ホールドア(右)");
- break;
- case 7:
- parComboList[i] = new GUIContent("エントランス(扉無し)");
- break;
- case 8:
- parComboList[i] = new GUIContent("水面");
- break;
- case 9:
- parComboList[i] = new GUIContent("執務室(外・昼)");
- break;
- case 10:
- parComboList[i] = new GUIContent("執務室(外・夜)");
- break;
- case 11:
- parComboList[i] = new GUIContent("青空");
- break;
- case 12:
- parComboList[i] = new GUIContent("夜景");
- break;
- case 13:
- parComboList[i] = new GUIContent("鏡");
- break;
- case 14:
- parComboList[i] = new GUIContent("鏡(縦長)");
- break;
- case 15:
- parComboList[i] = new GUIContent("鏡(メイド部屋用)");
- break;
- case 16:
- parComboList[i] = new GUIContent("モブ男1");
- break;
- case 17:
- parComboList[i] = new GUIContent("モブ男2");
- break;
- case 18:
- parComboList[i] = new GUIContent("モブ男3");
- break;
- case 19:
- parComboList[i] = new GUIContent("モブ男1 座り");
- break;
- case 20:
- parComboList[i] = new GUIContent("モブ男2 座り");
- break;
- case 21:
- parComboList[i] = new GUIContent("モブ男3 座り");
- break;
- case 22:
- parComboList[i] = new GUIContent("モブ女1");
- break;
- case 23:
- parComboList[i] = new GUIContent("モブ女2");
- break;
- case 24:
- parComboList[i] = new GUIContent("モブ女3");
- break;
- case 25:
- parComboList[i] = new GUIContent("モブ女1 座り");
- break;
- case 26:
- parComboList[i] = new GUIContent("モブ女2 座り");
- break;
- case 27:
- parComboList[i] = new GUIContent("モブ女3 座り");
- break;
- case 28:
- parComboList[i] = new GUIContent("星");
- break;
- case 29:
- parComboList[i] = new GUIContent("紙吹雪");
- break;
- case 30:
- parComboList[i] = new GUIContent("水");
- break;
- case 31:
- parComboList[i] = new GUIContent("粉雪2");
- break;
- case 32:
- parComboList[i] = new GUIContent("粉雪");
- break;
- case 33:
- parComboList[i] = new GUIContent("煙");
- break;
- case 34:
- parComboList[i] = new GUIContent("泡(空間)");
- break;
- case 35:
- parComboList[i] = new GUIContent("泡");
- break;
- case 36:
- parComboList[i] = new GUIContent("手元の泡");
- break;
- case 37:
- parComboList[i] = new GUIContent("湯気1");
- break;
- case 38:
- parComboList[i] = new GUIContent("スチーム");
- break;
- case 39:
- parComboList[i] = new GUIContent("スチーム(黒)");
- break;
- case 40:
- parComboList[i] = new GUIContent("湯気2");
- break;
- case 41:
- parComboList[i] = new GUIContent("ライン:ハート");
- break;
- case 42:
- parComboList[i] = new GUIContent("ライン:星");
- break;
- case 43:
- parComboList[i] = new GUIContent("星2");
- break;
- case 44:
- parComboList[i] = new GUIContent("流れ星");
- break;
- case 45:
- parComboList[i] = new GUIContent("ハート");
- break;
- default: goto IL_48B6;
- }
- IL_48CF:
- i++;
- continue;
- IL_48B6:
- parComboList[i] = new GUIContent(parArray[i]);
- goto IL_48CF;
- }
- lightCombo.selectedItemIndex = 0;
- lightList = new List<GameObject>();
- lightList.Add(GameMain.Instance.MainLight.gameObject);
- lightComboList = new GUIContent[lightList.Count];
- for (i = 0; i < lightList.Count; i++)
- {
- if (i == 0)
- {
- lightComboList[i] = new GUIContent("メイン");
- }
- else
- {
- lightComboList[i] = new GUIContent("追加" + i);
- }
- }
- kankyoInitFlg = true;
- }
- listStyle3.padding.top = this.GetPix(1);
- listStyle3.padding.bottom = this.GetPix(0);
- listStyle3.fontSize = this.GetPix(12);
- if (poseCombo.isClickedComboButton)
- {
- GUI.enabled = false;
- }
- if (poseGroupCombo.isClickedComboButton)
- {
- GUI.enabled = false;
- }
- if (sceneLevel == 3 || sceneLevel == 5 || isF6)
- {
- if (!isF6)
- {
- bool value = true;
- if (faceFlg || poseFlg || sceneFlg || kankyoFlg || kankyo2Flg)
- {
- value = false;
- }
- if (GUI.Toggle(new Rect((float) this.GetPix(2),
- (float) this.GetPix(2),
- (float) this.GetPix(39),
- (float) this.GetPix(20)),
- value,
- "配置",
- guistyle6))
- {
- faceFlg = false;
- poseFlg = false;
- sceneFlg = false;
- kankyoFlg = false;
- kankyo2Flg = false;
- bGui = true;
- isGuiInit = true;
- }
- }
- if (!yotogiFlg)
- {
- if (GUI.Toggle(new Rect((float) this.GetPix(42),
- (float) this.GetPix(2),
- (float) this.GetPix(39),
- (float) this.GetPix(20)),
- poseFlg,
- "操作",
- guistyle6))
- {
- poseFlg = true;
- faceFlg = false;
- sceneFlg = false;
- kankyoFlg = false;
- kankyo2Flg = false;
- }
- }
- if (GUI.Toggle(new Rect((float) this.GetPix(82), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
- faceFlg,
- "表情",
- guistyle6))
- {
- faceFlg = true;
- poseFlg = false;
- sceneFlg = false;
- kankyoFlg = false;
- kankyo2Flg = false;
- if (!faceFlg2)
- {
- isFaceInit = true;
- faceFlg2 = true;
- maidArray[selectMaidIndex].boMabataki = false;
- faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
- }
- isFaceInit = true;
- }
- if (GUI.Toggle(new Rect((float) this.GetPix(122), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
- kankyoFlg,
- "環境",
- guistyle6))
- {
- poseFlg = false;
- faceFlg = false;
- sceneFlg = false;
- kankyoFlg = true;
- kankyo2Flg = false;
- }
- if (GUI.Toggle(new Rect((float) this.GetPix(162), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
- kankyo2Flg,
- "環2",
- guistyle6))
- {
- poseFlg = false;
- faceFlg = false;
- sceneFlg = false;
- kankyoFlg = false;
- kankyo2Flg = true;
- }
- if (!line1)
- {
- line1 = this.MakeTex(2, 2, new Color(0f, 0f, 0f, 0.3f));
- line2 = this.MakeTex(2, 2, new Color(0.7f, 0.7f, 0.7f, 0.6f));
- }
- GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(20), (float) this.GetPix(200), 2f), line1);
- GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(20), (float) this.GetPix(200), 1f), line2);
- }
- if (isDanceStop)
- {
- isStop[selectMaidIndex] = true;
- isDanceStop = false;
- }
- yotogiFlg = false;
- if (sceneLevel == 14)
- {
- if (GameObject.Find("/UI Root/YotogiPlayPanel/CommandViewer/SkillViewer/MaskGroup/SkillGroup/CommandParent/CommandUnit"))
- {
- yotogiFlg = true;
- }
- }
- if (!isF6)
- {
- if (GUI.Button(new Rect((float) this.GetPix(157),
- (float) this.GetPix(32),
- (float) this.GetPix(46),
- (float) this.GetPix(35)),
- "シーン\n 管 理",
- guistyle3))
- {
- sceneFlg = true;
- faceFlg = false;
- poseFlg = false;
- kankyoFlg = false;
- kankyo2Flg = false;
- bGui = true;
- int i = 0;
- while (i < 10)
- {
- date[i] = "未保存";
- ninzu[i] = "";
- IniKey iniKey = base.Preferences["scene"]["s" + (page * 10 + i + 1)];
- if (iniKey.Value != null && iniKey.Value.ToString() != "")
- {
- string[] array = iniKey.Value.Split(new char[] {'_'});
- if (array.Length >= 2)
- {
- string[] array2 = array[0].Split(new char[] {','});
- date[i] = array2[0];
- ninzu[i] = array2[1] + "人";
- }
- }
- IL_4FA1:
- i++;
- continue;
- goto IL_4FA1;
- }
- }
- }
- if (doguCombo.isClickedComboButton || parCombo.isClickedComboButton || bgCombo.isClickedComboButton
- || bgmCombo.isClickedComboButton || lightCombo.isClickedComboButton)
- {
- GUI.enabled = false;
- }
- int num2 = -1;
- if (lightIndex[selectLightIndex] == 0)
- {
- isIdx1 = true;
- }
- if (lightIndex[selectLightIndex] == 1)
- {
- isIdx2 = true;
- }
- if (lightIndex[selectLightIndex] == 2)
- {
- isIdx3 = true;
- }
- if (lightIndex[selectLightIndex] == 3)
- {
- isIdx4 = true;
- }
- if (GUI.Toggle(new Rect((float) this.GetPix(5), (float) this.GetPix(215), (float) this.GetPix(45), (float) this.GetPix(20)),
- isIdx1,
- "通常",
- guistyle6))
- {
- if (lightIndex[selectLightIndex] != 0)
- {
- isIdx1 = true;
- isIdx2 = false;
- isIdx3 = false;
- isIdx4 = false;
- num2 = 0;
- }
- }
- if (GUI.Toggle(new Rect((float) this.GetPix(50), (float) this.GetPix(215), (float) this.GetPix(45), (float) this.GetPix(20)),
- isIdx2,
- "Spot",
- guistyle6))
- {
- if (lightIndex[selectLightIndex] != 1)
- {
- isIdx1 = false;
- isIdx2 = true;
- isIdx3 = false;
- isIdx4 = false;
- num2 = 1;
- }
- }
- if (GUI.Toggle(new Rect((float) this.GetPix(99), (float) this.GetPix(215), (float) this.GetPix(45), (float) this.GetPix(20)),
- isIdx3,
- "Point",
- guistyle6))
- {
- if (lightIndex[selectLightIndex] != 2)
- {
- isIdx1 = false;
- isIdx2 = false;
- isIdx3 = true;
- isIdx4 = false;
- num2 = 2;
- }
- }
- if (selectLightIndex == 0)
- {
- if (GUI.Toggle(new Rect((float) this.GetPix(150),
- (float) this.GetPix(215),
- (float) this.GetPix(45),
- (float) this.GetPix(20)),
- isIdx4,
- "単色",
- guistyle6))
- {
- if (lightIndex[selectLightIndex] != 3)
- {
- isIdx1 = false;
- isIdx2 = false;
- isIdx3 = false;
- isIdx4 = true;
- num2 = 3;
- }
- }
- }
- else if (GUI.Toggle(new Rect((float) this.GetPix(150),
- (float) this.GetPix(215),
- (float) this.GetPix(45),
- (float) this.GetPix(20)),
- isIdx4,
- "無効",
- guistyle6))
- {
- if (lightIndex[selectLightIndex] != 3)
- {
- isIdx1 = false;
- isIdx2 = false;
- isIdx3 = false;
- isIdx4 = true;
- num2 = 3;
- }
- }
- if (num2 >= 0)
- {
- lightIndex[selectLightIndex] = num2;
- if (selectLightIndex == 0)
- {
- GameMain.Instance.MainLight.Reset();
- GameMain.Instance.MainLight.SetIntensity(0.95f);
- GameMain.Instance.MainLight.GetComponent<Light>().spotAngle = 50f;
- GameMain.Instance.MainLight.GetComponent<Light>().range = 10f;
- GameMain.Instance.MainLight.gameObject.transform.position = new Vector3(0f, 2f, 0f);
- if (lightIndex[selectLightIndex] == 0)
- {
- GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
- bgObject.SetActive(true);
- mainCamera.GetComponent<Camera>().backgroundColor = new Color(0f, 0f, 0f);
- }
- else if (lightIndex[selectLightIndex] == 1)
- {
- GameMain.Instance.MainLight.transform.eulerAngles += Vector3.right * 40f;
- GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Spot;
- bgObject.SetActive(true);
- mainCamera.GetComponent<Camera>().backgroundColor = new Color(0f, 0f, 0f);
- }
- else if (lightIndex[selectLightIndex] == 2)
- {
- GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Point;
- bgObject.SetActive(true);
- mainCamera.GetComponent<Camera>().backgroundColor = new Color(0f, 0f, 0f);
- }
- else if (lightIndex[selectLightIndex] == 3)
- {
- GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
- mainCamera.GetComponent<Camera>().backgroundColor = new Color(lightColorR[0], lightColorG[0], lightColorB[0]);
- bgObject.SetActive(false);
- }
- }
- else
- {
- lightList[selectLightIndex].SetActive(true);
- if (lightIndex[selectLightIndex] == 0)
- {
- lightList[selectLightIndex].GetComponent<Light>().type = LightType.Directional;
- }
- else if (lightIndex[selectLightIndex] == 1)
- {
- lightList[selectLightIndex].transform.eulerAngles += Vector3.right * 40f;
- lightList[selectLightIndex].GetComponent<Light>().type = LightType.Spot;
- }
- else if (lightIndex[selectLightIndex] == 2)
- {
- lightList[selectLightIndex].GetComponent<Light>().type = LightType.Point;
- }
- else if (lightIndex[selectLightIndex] == 3)
- {
- lightList[selectLightIndex].GetComponent<Light>().type = LightType.Directional;
- lightList[selectLightIndex].SetActive(false);
- }
- }
- lightColorR[selectLightIndex] = 1f;
- lightColorG[selectLightIndex] = 1f;
- lightColorB[selectLightIndex] = 1f;
- lightX[selectLightIndex] = 40f;
- lightY[selectLightIndex] = 180f;
- lightAkarusa[selectLightIndex] = 0.95f;
- lightKage[selectLightIndex] = 0.098f;
- lightRange[selectLightIndex] = 50f;
- if (lightIndex[selectLightIndex] == 1)
- {
- lightX[selectLightIndex] = 90f;
- }
- }
- GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(138), (float) this.GetPix(100), (float) this.GetPix(25)),
- "キューブ表示",
- guistyle2);
- guistyle6.fontSize = this.GetPix(12);
- isCube2 = GUI.Toggle(new Rect((float) this.GetPix(5),
- (float) this.GetPix(153),
- (float) this.GetPix(55),
- (float) this.GetPix(20)),
- isCube2,
- "大道具(",
- guistyle6);
- if (!isF6)
- {
- isCube = GUI.Toggle(new Rect((float) this.GetPix(102),
- (float) this.GetPix(153),
- (float) this.GetPix(54),
- (float) this.GetPix(20)),
- isCube,
- "メイド",
- guistyle6);
- }
- bool flag = GUI.Toggle(new Rect((float) this.GetPix(160),
- (float) this.GetPix(153),
- (float) this.GetPix(44),
- (float) this.GetPix(20)),
- isCube3,
- "背景",
- guistyle6);
- guistyle6.fontSize = this.GetPix(13);
- bool flag2 = GUI.Toggle(new Rect((float) this.GetPix(61),
- (float) this.GetPix(153),
- (float) this.GetPix(38),
- (float) this.GetPix(20)),
- isCubeS,
- "小)",
- guistyle6);
- if (isCubeS != flag2)
- {
- isCubeS = flag2;
- if (isCubeS)
- {
- cubeSize = 0.05f;
- }
- else
- {
- cubeSize = 0.12f;
- }
- for (int i = 0; i < doguBObject.Count; i++)
- {
- gDogu[i].transform.localScale = new Vector3(cubeSize, cubeSize, cubeSize);
- }
- }
- if (isCube3 != flag)
- {
- isCube3 = flag;
- if (gBg == null)
- {
- gBg = GameObject.CreatePrimitive(PrimitiveType.Cube);
- gBg.GetComponent<Renderer>().material = m_material;
- gBg.layer = 8;
- gBg.GetComponent<Renderer>().enabled = false;
- gBg.SetActive(false);
- gBg.transform.position = bgObject.transform.position;
- mBg = gBg.AddComponent<MouseDrag6>();
- mBg.obj = gBg;
- mBg.maid = bgObject;
- mBg.angles = bg.eulerAngles;
- gBg.transform.localScale = new Vector3(0.12f, 0.12f, 0.12f);
- mBg.ido = 1;
- mBg.isScale = false;
- }
- if (isCube3)
- {
- gBg.SetActive(true);
- }
- else
- {
- gBg.SetActive(false);
- }
- }
- int num3 = 0;
- if (lightIndex[selectLightIndex] == 0 || lightIndex[selectLightIndex] == 1
- || (selectLightIndex == 0 && lightIndex[selectLightIndex] == 3))
- {
- GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(237), (float) this.GetPix(100), (float) this.GetPix(25)),
- "向きX",
- guistyle2);
- lightX[selectLightIndex] =
- GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(251),
- (float) this.GetPix(192),
- (float) this.GetPix(20)),
- lightX[selectLightIndex],
- 220f,
- -140f);
- GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(261), (float) this.GetPix(100), (float) this.GetPix(25)),
- "向きY",
- guistyle2);
- lightY[selectLightIndex] =
- GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(275),
- (float) this.GetPix(192),
- (float) this.GetPix(20)),
- lightY[selectLightIndex],
- 0f,
- 360f);
- }
- else
- {
- num3 = 50;
- }
- if (lightIndex[selectLightIndex] != 3 || selectLightIndex <= 0)
- {
- GUI.Label(new Rect((float) this.GetPix(10),
- (float) this.GetPix(285 - num3),
- (float) this.GetPix(100),
- (float) this.GetPix(25)),
- "明るさ",
- guistyle2);
- lightAkarusa[selectLightIndex] =
- GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(299 - num3),
- (float) this.GetPix(192),
- (float) this.GetPix(20)),
- lightAkarusa[selectLightIndex],
- 0f,
- 1.9f);
- if (lightIndex[selectLightIndex] == 0 || lightIndex[selectLightIndex] == 3)
- {
- if (selectLightIndex == 0)
- {
- GUI.Label(new Rect((float) this.GetPix(10),
- (float) this.GetPix(309 - num3),
- (float) this.GetPix(100),
- (float) this.GetPix(25)),
- "影",
- guistyle2);
- lightKage[selectLightIndex] =
- GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(323 - num3),
- (float) this.GetPix(192),
- (float) this.GetPix(20)),
- lightKage[selectLightIndex],
- 0f,
- 1f);
- }
- else
- {
- num3 = 25;
- }
- }
- else if (lightIndex[selectLightIndex] == 1 || lightIndex[selectLightIndex] == 2)
- {
- GUI.Label(new Rect((float) this.GetPix(10),
- (float) this.GetPix(311 - num3),
- (float) this.GetPix(100),
- (float) this.GetPix(25)),
- "範囲",
- guistyle2);
- lightRange[selectLightIndex] =
- GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(325 - num3),
- (float) this.GetPix(192),
- (float) this.GetPix(20)),
- lightRange[selectLightIndex],
- 0f,
- 150f);
- }
- else
- {
- num3 = 75;
- }
- GUI.Label(new Rect((float) this.GetPix(10),
- (float) this.GetPix(333 - num3),
- (float) this.GetPix(100),
- (float) this.GetPix(25)),
- "赤",
- guistyle2);
- lightColorR[selectLightIndex] =
- GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(347 - num3),
- (float) this.GetPix(92),
- (float) this.GetPix(20)),
- lightColorR[selectLightIndex],
- 0f,
- 1f);
- GUI.Label(new Rect((float) this.GetPix(108),
- (float) this.GetPix(333 - num3),
- (float) this.GetPix(100),
- (float) this.GetPix(25)),
- "緑",
- guistyle2);
- lightColorG[selectLightIndex] =
- GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
- (float) this.GetPix(347 - num3),
- (float) this.GetPix(92),
- (float) this.GetPix(20)),
- lightColorG[selectLightIndex],
- 0f,
- 1f);
- GUI.Label(new Rect((float) this.GetPix(10),
- (float) this.GetPix(357 - num3),
- (float) this.GetPix(100),
- (float) this.GetPix(25)),
- "青",
- guistyle2);
- lightColorB[selectLightIndex] =
- GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(371 - num3),
- (float) this.GetPix(92),
- (float) this.GetPix(20)),
- lightColorB[selectLightIndex],
- 0f,
- 1f);
- }
- if (GUI.Toggle(new Rect((float) this.GetPix(5), (float) this.GetPix(391), (float) this.GetPix(67), (float) this.GetPix(20)),
- isBloomS,
- "ブルーム",
- guistyle6))
- {
- isBloomS = true;
- isDepthS = false;
- isBlurS = false;
- isFogS = false;
- }
- if (isBloomS)
- {
- isBloom = GUI.Toggle(new Rect((float) this.GetPix(8),
- (float) this.GetPix(412),
- (float) this.GetPix(40),
- (float) this.GetPix(20)),
- isBloom,
- "有効",
- guistyle6);
- if (!isBloom)
- {
- GUI.enabled = false;
- }
- GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(430), (float) this.GetPix(100), (float) this.GetPix(25)),
- "強さ",
- guistyle2);
- bloom1 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(445),
- (float) this.GetPix(92),
- (float) this.GetPix(20)),
- bloom1,
- 0f,
- 5.7f);
- GUI.Label(new Rect((float) this.GetPix(110), (float) this.GetPix(430), (float) this.GetPix(100), (float) this.GetPix(25)),
- "広さ",
- guistyle2);
- bloom2 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
- (float) this.GetPix(445),
- (float) this.GetPix(92),
- (float) this.GetPix(20)),
- bloom2,
- 0f,
- 15f);
- GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(455), (float) this.GetPix(100), (float) this.GetPix(25)),
- "赤",
- guistyle2);
- bloom3 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(470),
- (float) this.GetPix(92),
- (float) this.GetPix(20)),
- bloom3,
- 0f,
- 0.5f);
- GUI.Label(new Rect((float) this.GetPix(110), (float) this.GetPix(455), (float) this.GetPix(100), (float) this.GetPix(25)),
- "緑",
- guistyle2);
- bloom4 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
- (float) this.GetPix(470),
- (float) this.GetPix(92),
- (float) this.GetPix(20)),
- bloom4,
- 0f,
- 0.5f);
- GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(480), (float) this.GetPix(100), (float) this.GetPix(25)),
- "青",
- guistyle2);
- bloom5 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(495),
- (float) this.GetPix(92),
- (float) this.GetPix(20)),
- bloom5,
- 0f,
- 0.5f);
- isBloomA = GUI.Toggle(new Rect((float) this.GetPix(110),
- (float) this.GetPix(491),
- (float) this.GetPix(50),
- (float) this.GetPix(20)),
- isBloomA,
- "HDR",
- guistyle6);
- if (!doguCombo.isClickedComboButton && !parCombo.isClickedComboButton && !bgCombo.isClickedComboButton
- && !bgmCombo.isClickedComboButton)
- {
- GUI.enabled = true;
- }
- }
- if (GUI.Toggle(new Rect((float) this.GetPix(73), (float) this.GetPix(391), (float) this.GetPix(40), (float) this.GetPix(20)),
- isDepthS,
- "深度",
- guistyle6))
- {
- isBloomS = false;
- isDepthS = true;
- isBlurS = false;
- isFogS = false;
- }
- if (isDepthS)
- {
- isDepth = GUI.Toggle(new Rect((float) this.GetPix(8),
- (float) this.GetPix(412),
- (float) this.GetPix(40),
- (float) this.GetPix(20)),
- isDepth,
- "有効",
- guistyle6);
- if (!isDepth)
- {
- GUI.enabled = false;
- }
- GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(430), (float) this.GetPix(100), (float) this.GetPix(25)),
- "焦点距離",
- guistyle2);
- depth1 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(445),
- (float) this.GetPix(192),
- (float) this.GetPix(20)),
- depth1,
- 0f,
- 10f);
- GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(455), (float) this.GetPix(100), (float) this.GetPix(25)),
- "焦点領域サイズ",
- guistyle2);
- depth2 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(470),
- (float) this.GetPix(92),
- (float) this.GetPix(20)),
- depth2,
- 0f,
- 2f);
- GUI.Label(new Rect((float) this.GetPix(110), (float) this.GetPix(455), (float) this.GetPix(100), (float) this.GetPix(25)),
- "カメラ絞り",
- guistyle2);
- depth3 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
- (float) this.GetPix(470),
- (float) this.GetPix(92),
- (float) this.GetPix(20)),
- depth3,
- 0f,
- 60f);
- GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(480), (float) this.GetPix(100), (float) this.GetPix(25)),
- "ブレ",
- guistyle2);
- depth4 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(495),
- (float) this.GetPix(92),
- (float) this.GetPix(20)),
- depth4,
- 0f,
- 10f);
- isDepthA = GUI.Toggle(new Rect((float) this.GetPix(110),
- (float) this.GetPix(491),
- (float) this.GetPix(100),
- (float) this.GetPix(20)),
- isDepthA,
- "深度表示",
- guistyle6);
- if (!doguCombo.isClickedComboButton && !parCombo.isClickedComboButton && !bgCombo.isClickedComboButton
- && !bgmCombo.isClickedComboButton)
- {
- GUI.enabled = true;
- }
- }
- if (GUI.Toggle(new Rect((float) this.GetPix(114), (float) this.GetPix(391), (float) this.GetPix(40), (float) this.GetPix(20)),
- isBlurS,
- "光学",
- guistyle6))
- {
- isBloomS = false;
- isDepthS = false;
- isBlurS = true;
- isFogS = false;
- }
- if (isBlurS)
- {
- isBlur = GUI.Toggle(new Rect((float) this.GetPix(8),
- (float) this.GetPix(412),
- (float) this.GetPix(40),
- (float) this.GetPix(20)),
- isBlur,
- "有効",
- guistyle6);
- if (!isBlur)
- {
- GUI.enabled = false;
- }
- GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(430), (float) this.GetPix(100), (float) this.GetPix(25)),
- "強さ",
- guistyle2);
- blur1 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(445),
- (float) this.GetPix(92),
- (float) this.GetPix(20)),
- blur1,
- -40f,
- 70f);
- GUI.Label(new Rect((float) this.GetPix(108), (float) this.GetPix(430), (float) this.GetPix(100), (float) this.GetPix(25)),
- "ブラー",
- guistyle2);
- blur2 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
- (float) this.GetPix(445),
- (float) this.GetPix(92),
- (float) this.GetPix(20)),
- blur2,
- 0f,
- 5f);
- GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(455), (float) this.GetPix(100), (float) this.GetPix(25)),
- "ブレ",
- guistyle2);
- blur3 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(470),
- (float) this.GetPix(92),
- (float) this.GetPix(20)),
- blur3,
- 0f,
- 40f);
- GUI.Label(new Rect((float) this.GetPix(108), (float) this.GetPix(455), (float) this.GetPix(100), (float) this.GetPix(25)),
- "色収差",
- guistyle2);
- blur4 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
- (float) this.GetPix(470),
- (float) this.GetPix(92),
- (float) this.GetPix(20)),
- blur4,
- -30f,
- 30f);
- if (!doguCombo.isClickedComboButton && !parCombo.isClickedComboButton && !bgCombo.isClickedComboButton
- && !bgmCombo.isClickedComboButton)
- {
- GUI.enabled = true;
- }
- }
- if (GUI.Toggle(new Rect((float) this.GetPix(155), (float) this.GetPix(391), (float) this.GetPix(60), (float) this.GetPix(20)),
- isFogS,
- "フォグ",
- guistyle6))
- {
- isBloomS = false;
- isDepthS = false;
- isBlurS = false;
- isFogS = true;
- }
- if (isFogS)
- {
- isFog = GUI.Toggle(new Rect((float) this.GetPix(8),
- (float) this.GetPix(412),
- (float) this.GetPix(40),
- (float) this.GetPix(20)),
- isFog,
- "有効",
- guistyle6);
- if (!isFog)
- {
- GUI.enabled = false;
- }
- GUI.Label(new Rect((float) this.GetPix(110), (float) this.GetPix(406), (float) this.GetPix(100), (float) this.GetPix(24)),
- "発生距離",
- guistyle2);
- fog1 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
- (float) this.GetPix(420),
- (float) this.GetPix(92),
- (float) this.GetPix(20)),
- fog1,
- 0f,
- 30f);
- GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(430), (float) this.GetPix(100), (float) this.GetPix(25)),
- "密度",
- guistyle2);
- fog2 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(445),
- (float) this.GetPix(92),
- (float) this.GetPix(20)),
- fog2,
- 0f,
- 10f);
- GUI.Label(new Rect((float) this.GetPix(110), (float) this.GetPix(430), (float) this.GetPix(100), (float) this.GetPix(25)),
- "強度",
- guistyle2);
- fog3 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
- (float) this.GetPix(445),
- (float) this.GetPix(92),
- (float) this.GetPix(20)),
- fog3,
- -5f,
- 20f);
- GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(455), (float) this.GetPix(100), (float) this.GetPix(25)),
- "高さ",
- guistyle2);
- fog4 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(470),
- (float) this.GetPix(92),
- (float) this.GetPix(20)),
- fog4,
- -10f,
- 10f);
- GUI.Label(new Rect((float) this.GetPix(110), (float) this.GetPix(455), (float) this.GetPix(100), (float) this.GetPix(25)),
- "赤",
- guistyle2);
- fog5 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
- (float) this.GetPix(470),
- (float) this.GetPix(92),
- (float) this.GetPix(20)),
- fog5,
- 0f,
- 1f);
- GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(480), (float) this.GetPix(100), (float) this.GetPix(25)),
- "緑",
- guistyle2);
- fog6 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(495),
- (float) this.GetPix(92),
- (float) this.GetPix(20)),
- fog6,
- 0f,
- 1f);
- GUI.Label(new Rect((float) this.GetPix(110), (float) this.GetPix(480), (float) this.GetPix(100), (float) this.GetPix(25)),
- "青",
- guistyle2);
- fog7 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
- (float) this.GetPix(495),
- (float) this.GetPix(92),
- (float) this.GetPix(20)),
- fog7,
- 0f,
- 1f);
- if (!doguCombo.isClickedComboButton && !parCombo.isClickedComboButton && !bgCombo.isClickedComboButton
- && !bgmCombo.isClickedComboButton)
- {
- GUI.enabled = true;
- }
- }
- isSepian = GUI.Toggle(new Rect((float) this.GetPix(5),
- (float) this.GetPix(515),
- (float) this.GetPix(80),
- (float) this.GetPix(20)),
- isSepian,
- "セピア",
- guistyle6);
- GUI.Label(new Rect((float) this.GetPix(108), (float) this.GetPix(512), (float) this.GetPix(100), (float) this.GetPix(25)),
- "ぼかし",
- guistyle2);
- bokashi = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
- (float) this.GetPix(527),
- (float) this.GetPix(92),
- (float) this.GetPix(20)),
- bokashi,
- 0f,
- 18f);
- if (GUI.Toggle(new Rect((float) this.GetPix(5), (float) this.GetPix(545), (float) this.GetPix(80), (float) this.GetPix(20)),
- isHairSetting,
- "髪の設定",
- guistyle6))
- {
- isHairSetting = true;
- isSkirtSetting = false;
- }
- if (isHairSetting)
- {
- bool flag3 = GUI.Toggle(new Rect((float) this.GetPix(5),
- (float) this.GetPix(566),
- (float) this.GetPix(40),
- (float) this.GetPix(20)),
- isKamiyure,
- "有効",
- guistyle6);
- if (isKamiyure != flag3)
- {
- isKamiyure = flag3;
- if (isKamiyure)
- {
- base.Preferences["config"]["hair_setting"].Value = "true";
- base.Preferences["config"]["hair_radius"].Value = kamiyure4.ToString();
- base.Preferences["config"]["hair_elasticity"].Value = kamiyure3.ToString();
- base.Preferences["config"]["hair_damping"].Value = kamiyure2.ToString();
- base.SaveConfig();
- }
- else
- {
- base.Preferences["config"]["hair_setting"].Value = "false";
- base.SaveConfig();
- for (int j = 0; j < maidCnt; j++)
- {
- for (int k = 0; k < maidArray[j].body0.goSlot.Count; k++)
- {
- if (k >= 3 && k <= 6)
- {
- if (maidArray[j].body0.goSlot[k].obj != null)
- {
- DynamicBone component = maidArray[j].body0.goSlot[k].obj.GetComponent<DynamicBone>();
- if (component != null)
- {
- component.m_Damping = 0.6f;
- component.m_Elasticity = 1f;
- if (k == 5)
- {
- component.m_Elasticity = 0.05f;
- }
- component.m_Radius = 0.02f;
- component.UpdateParameters();
- }
- }
- }
- }
- }
- }
- }
- if (!isKamiyure)
- {
- GUI.enabled = false;
- }
- GUI.Label(new Rect((float) this.GetPix(108), (float) this.GetPix(565), (float) this.GetPix(100), (float) this.GetPix(25)),
- "当たり判定半径",
- guistyle2);
- float num4 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
- (float) this.GetPix(579),
- (float) this.GetPix(92),
- (float) this.GetPix(20)),
- kamiyure4,
- 0f,
- 0.04f);
- if (kamiyure4 != num4)
- {
- kamiyure4 = num4;
- base.Preferences["config"]["hair_radius"].Value = kamiyure4.ToString();
- base.SaveConfig();
- }
- GUI.Label(new Rect((float) this.GetPix(108), (float) this.GetPix(590), (float) this.GetPix(100), (float) this.GetPix(25)),
- "減衰率",
- guistyle2);
- float num5 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
- (float) this.GetPix(604),
- (float) this.GetPix(92),
- (float) this.GetPix(20)),
- kamiyure2,
- 0.2f,
- 1f);
- if (kamiyure2 != num5)
- {
- kamiyure2 = num5;
- base.Preferences["config"]["hair_damping"].Value = kamiyure2.ToString();
- base.SaveConfig();
- }
- GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(590), (float) this.GetPix(100), (float) this.GetPix(25)),
- "復元率",
- guistyle2);
- float num6 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(604),
- (float) this.GetPix(92),
- (float) this.GetPix(20)),
- kamiyure3,
- 0f,
- 2f);
- if (kamiyure3 != num6)
- {
- kamiyure3 = num6;
- base.Preferences["config"]["hair_elasticity"].Value = kamiyure3.ToString();
- base.SaveConfig();
- }
- GUI.enabled = true;
- }
- if (GUI.Toggle(new Rect((float) this.GetPix(105), (float) this.GetPix(545), (float) this.GetPix(100), (float) this.GetPix(20)),
- isSkirtSetting,
- "スカート設定",
- guistyle6))
- {
- isHairSetting = false;
- isSkirtSetting = true;
- }
- if (isSkirtSetting)
- {
- bool flag4 = GUI.Toggle(new Rect((float) this.GetPix(5),
- (float) this.GetPix(566),
- (float) this.GetPix(40),
- (float) this.GetPix(20)),
- isSkirtyure,
- "有効",
- guistyle6);
- if (isSkirtyure != flag4)
- {
- isSkirtyure = flag4;
- if (isSkirtyure)
- {
- base.Preferences["config"]["skirt_setting"].Value = "true";
- base.Preferences["config"]["skirt_radius"].Value = skirtyure4.ToString();
- base.Preferences["config"]["skirt_elasticity"].Value = skirtyure3.ToString();
- base.Preferences["config"]["skirt_damping"].Value = skirtyure2.ToString();
- base.SaveConfig();
- }
- else
- {
- base.Preferences["config"]["skirt_setting"].Value = "false";
- base.SaveConfig();
- for (int j = 0; j < maidCnt; j++)
- {
- for (int k = 0; k < maidArray[j].body0.goSlot.Count; k++)
- {
- if (maidArray[j].body0.goSlot[k].obj != null)
- {
- DynamicSkirtBone fieldValue =
- GetFieldValue<BoneHair3, DynamicSkirtBone>(maidArray[j].body0.goSlot[k].bonehair3,
- "m_SkirtBone");
- if (fieldValue != null)
- {
- fieldValue.m_fPanierForce = 0.05f;
- fieldValue.m_fPanierForceDistanceThreshold = 0.1f;
- fieldValue.m_fRegDefaultRadius = 0.1f;
- }
- }
- }
- }
- }
- }
- if (!isSkirtyure)
- {
- GUI.enabled = false;
- }
- GUI.Label(new Rect((float) this.GetPix(108), (float) this.GetPix(565), (float) this.GetPix(100), (float) this.GetPix(25)),
- "足側カプセル半径",
- guistyle2);
- float num4 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
- (float) this.GetPix(579),
- (float) this.GetPix(92),
- (float) this.GetPix(20)),
- skirtyure4,
- 0f,
- 0.2f);
- if (skirtyure4 != num4)
- {
- skirtyure4 = num4;
- base.Preferences["config"]["skirt_radius"].Value = skirtyure4.ToString();
- base.SaveConfig();
- }
- GUI.Label(new Rect((float) this.GetPix(108), (float) this.GetPix(590), (float) this.GetPix(100), (float) this.GetPix(25)),
- "足との距離パニエ力",
- guistyle2);
- float num5 = GUI.HorizontalSlider(new Rect((float) this.GetPix(108),
- (float) this.GetPix(604),
- (float) this.GetPix(92),
- (float) this.GetPix(20)),
- skirtyure2,
- 0f,
- 0.2f);
- if (skirtyure2 != num5)
- {
- skirtyure2 = num5;
- base.Preferences["config"]["skirt_damping"].Value = skirtyure2.ToString();
- base.SaveConfig();
- }
- GUI.Label(new Rect((float) this.GetPix(10), (float) this.GetPix(590), (float) this.GetPix(100), (float) this.GetPix(25)),
- "パニエ力",
- guistyle2);
- float num6 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(604),
- (float) this.GetPix(92),
- (float) this.GetPix(20)),
- skirtyure3,
- 0f,
- 0.1f);
- if (skirtyure3 != num6)
- {
- skirtyure3 = num6;
- base.Preferences["config"]["skirt_elasticity"].Value = skirtyure3.ToString();
- base.SaveConfig();
- }
- GUI.enabled = true;
- }
- GUI.enabled = true;
- GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(389), (float) this.GetPix(195), 2f), line1);
- GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(389), (float) this.GetPix(195), 1f), line2);
- if (doguCombo.isClickedComboButton || parCombo.isClickedComboButton || bgCombo.isClickedComboButton
- || bgmCombo.isClickedComboButton)
- {
- GUI.enabled = false;
- }
- GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(176), (float) this.GetPix(195), 2f), line1);
- GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(176), (float) this.GetPix(195), 1f), line2);
- GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(187), (float) this.GetPix(100), (float) this.GetPix(25)),
- "照明",
- guistyle2);
- listStyle3.padding.top = this.GetPix(3);
- listStyle3.padding.bottom = this.GetPix(2);
- listStyle3.fontSize = this.GetPix(13);
- int num7 = lightCombo.List(new Rect((float) this.GetPix(34),
- (float) this.GetPix(185),
- (float) this.GetPix(78),
- (float) this.GetPix(23)),
- lightComboList[selectLightIndex].text,
- lightComboList,
- guistyle4,
- "box",
- listStyle3);
- if (num7 != selectLightIndex)
- {
- selectLightIndex = num7;
- isIdx1 = false;
- isIdx2 = false;
- isIdx3 = false;
- isIdx4 = false;
- }
- if (GUI.Button(new Rect((float) this.GetPix(115), (float) this.GetPix(185), (float) this.GetPix(35), (float) this.GetPix(23)),
- "追加",
- guistyle3))
- {
- GameObject gameObject = new GameObject("Light");
- gameObject.AddComponent<Light>();
- lightList.Add(gameObject);
- lightColorR.Add(1f);
- lightColorG.Add(1f);
- lightColorB.Add(1f);
- lightIndex.Add(0);
- lightX.Add(40f);
- lightY.Add(180f);
- lightAkarusa.Add(0.95f);
- lightKage.Add(0.098f);
- lightRange.Add(50f);
- gameObject.transform.position = GameMain.Instance.MainLight.transform.position;
- selectLightIndex = lightList.Count - 1;
- lightComboList = new GUIContent[lightList.Count];
- for (int i = 0; i < lightList.Count; i++)
- {
- if (i == 0)
- {
- lightComboList[i] = new GUIContent("メイン");
- }
- else
- {
- lightComboList[i] = new GUIContent("追加" + i);
- }
- }
- lightCombo.selectedItemIndex = selectLightIndex;
- gameObject.GetComponent<Light>().intensity = 0.95f;
- gameObject.GetComponent<Light>().spotAngle = 50f;
- gameObject.GetComponent<Light>().range = 10f;
- gameObject.GetComponent<Light>().type = LightType.Directional;
- gameObject.GetComponent<Light>().color = new Color(0.5f, 1f, 0f);
- if (gLight[selectLightIndex] == null)
- {
- gLight[selectLightIndex] = GameObject.CreatePrimitive(PrimitiveType.Cube);
- Material material = new Material(Shader.Find("Transparent/Diffuse"));
- material.color = new Color(0.5f, 0.5f, 1f, 0.8f);
- gLight[selectLightIndex].GetComponent<Renderer>().material = material;
- gLight[selectLightIndex].layer = 8;
- gLight[selectLightIndex].GetComponent<Renderer>().enabled = false;
- gLight[selectLightIndex].SetActive(false);
- gLight[selectLightIndex].transform.position = gameObject.transform.position;
- mLight[selectLightIndex] = gLight[selectLightIndex].AddComponent<MouseDrag6>();
- mLight[selectLightIndex].obj = gLight[selectLightIndex];
- mLight[selectLightIndex].maid = gameObject.gameObject;
- mLight[selectLightIndex].angles = gameObject.gameObject.transform.eulerAngles;
- gLight[selectLightIndex].transform.localScale = new Vector3(0.12f, 0.12f, 0.12f);
- mLight[selectLightIndex].ido = 1;
- mLight[selectLightIndex].isScale = false;
- }
- }
- if (GUI.Button(new Rect((float) this.GetPix(153), (float) this.GetPix(185), (float) this.GetPix(23), (float) this.GetPix(23)),
- "R",
- guistyle3))
- {
- for (int i = 1; i < lightList.Count; i++)
- {
- Destroy(lightList[i]);
- }
- lightIndex = new List<int>();
- lightIndex.Add(0);
- lightColorR = new List<float>();
- lightColorR.Add(1f);
- lightColorG = new List<float>();
- lightColorG.Add(1f);
- lightColorB = new List<float>();
- lightColorB.Add(1f);
- lightX = new List<float>();
- lightX.Add(40f);
- lightY = new List<float>();
- lightY.Add(180f);
- lightAkarusa = new List<float>();
- lightAkarusa.Add(0.95f);
- lightKage = new List<float>();
- lightKage.Add(0.098f);
- lightRange = new List<float>();
- lightRange.Add(50f);
- lightCombo.selectedItemIndex = 0;
- lightList = new List<GameObject>();
- lightList.Add(GameMain.Instance.MainLight.gameObject);
- lightComboList = new GUIContent[lightList.Count];
- for (int i = 0; i < lightList.Count; i++)
- {
- if (i == 0)
- {
- lightComboList[i] = new GUIContent("メイン");
- }
- else
- {
- lightComboList[i] = new GUIContent("追加" + i);
- }
- }
- selectLightIndex = 0;
- GameMain.Instance.MainLight.Reset();
- GameMain.Instance.MainLight.SetIntensity(0.95f);
- GameMain.Instance.MainLight.GetComponent<Light>().spotAngle = 50f;
- GameMain.Instance.MainLight.GetComponent<Light>().range = 10f;
- GameMain.Instance.MainLight.gameObject.transform.position = new Vector3(0f, 2f, 0f);
- GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
- bgObject.SetActive(true);
- mainCamera.GetComponent<Camera>().backgroundColor = new Color(0f, 0f, 0f);
- isIdx1 = false;
- isIdx2 = false;
- isIdx3 = false;
- isIdx4 = false;
- }
- GUI.enabled = true;
- if (doguCombo.isClickedComboButton || bgCombo.isClickedComboButton || bgmCombo.isClickedComboButton)
- {
- GUI.enabled = false;
- }
- listStyle3.padding.top = this.GetPix(0);
- listStyle3.padding.bottom = this.GetPix(0);
- listStyle3.fontSize = this.GetPix(12);
- GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(116), (float) this.GetPix(150), (float) this.GetPix(25)),
- "大道具2",
- guistyle2);
- parIndex = parCombo.List(new Rect((float) this.GetPix(51),
- (float) this.GetPix(113),
- (float) this.GetPix(100),
- (float) this.GetPix(23)),
- parComboList[parIndex].text,
- parComboList,
- guistyle4,
- "box",
- listStyle3);
- if (GUI.Button(new Rect((float) this.GetPix(156), (float) this.GetPix(113), (float) this.GetPix(38), (float) this.GetPix(23)),
- "追加",
- guistyle3))
- {
- GameObject gameObject2 = null;
- bool flag5 = false;
- bool flag6 = false;
- if (parArray[parIndex].Contains("#"))
- {
- string[] array3 = parArray[parIndex].Split(new char[] {'#'});
- gameObject2 = GameMain.Instance.BgMgr.CreateAssetBundle(array3[1]);
- if (gameObject2 != null)
- {
- gameObject2 = Instantiate<GameObject>(gameObject2);
- MeshRenderer[] componentsInChildren = gameObject2.GetComponentsInChildren<MeshRenderer>();
- for (int k = 0; k < componentsInChildren.Length; k++)
- {
- if (componentsInChildren[k] != null)
- {
- componentsInChildren[k].shadowCastingMode = ShadowCastingMode.Off;
- }
- }
- }
- flag5 = true;
- if (!parArray[parIndex].Contains("Odogu_"))
- {
- flag6 = true;
- }
- doguBObject.Add(gameObject2);
- }
- else if (!parArray[parIndex].StartsWith("mirror") && parArray[parIndex].IndexOf(":") < 0)
- {
- Object @object = Resources.Load("Prefab/" + parArray[parIndex]);
- gameObject2 = (Instantiate(@object) as GameObject);
- doguBObject.Add(gameObject2);
- }
- else if (parArray[parIndex].StartsWith("mirror"))
- {
- Material material2 = new Material(Shader.Find("Mirror"));
- GameObject gameObject3 = GameObject.CreatePrimitive(PrimitiveType.Plane);
- gameObject3.GetComponent<Renderer>().material = material2;
- gameObject3.AddComponent<MirrorReflection2>();
- MirrorReflection2 component2 = gameObject3.GetComponent<MirrorReflection2>();
- component2.m_TextureSize = 2048;
- component2.m_ClipPlaneOffset = 0.07f;
- gameObject3.GetComponent<Renderer>().enabled = true;
- gameObject2 = gameObject3;
- doguBObject.Add(gameObject2);
- }
- else
- {
- string[] array3 = parArray[parIndex].Split(new char[] {':'});
- Object @object = GameMain.Instance.BgMgr.CreateAssetBundle(array3[0]);
- if (@object == null)
- {
- @object = Resources.Load("BG/" + array3[0]);
- }
- GameObject gameObject4 = Instantiate(@object) as GameObject;
- int num8 = 0;
- int num9 = 0;
- int.TryParse(array3[1], out num9);
- foreach (object obj in gameObject4.transform)
- {
- Transform transform = (Transform) obj;
- if (num9 == num8)
- {
- gameObject2 = transform.gameObject;
- break;
- }
- num8++;
- }
- doguBObject.Add(gameObject2);
- gameObject2.transform.parent = null;
- Destroy(gameObject4);
- gameObject4.SetActive(false);
- }
- gameObject2.name = parArray[parIndex];
- Vector3 zero = Vector3.zero;
- Vector3 zero2 = Vector3.zero;
- switch (parIndex)
- {
- case 0:
- zero.z = -0.6f;
- zero.y = 0.96f;
- zero2.z = 180f;
- zero2.x = -90f;
- gameObject2.transform.localScale = new Vector3(0.2f, 0.4f, 0.2f);
- break;
- case 1:
- zero.z = -0.6f;
- zero.y = 0.96f;
- zero2.z = 180f;
- zero2.x = -90f;
- gameObject2.transform.localScale = new Vector3(0.1f, 0.4f, 0.2f);
- break;
- case 2:
- zero.z = -0.6f;
- zero.y = 0.85f;
- zero2.z = 180f;
- zero2.x = -90f;
- gameObject2.transform.localScale = new Vector3(0.03f, 0.18f, 0.124f);
- break;
- case 3:
- case 4:
- case 5:
- case 6:
- case 7:
- case 8:
- case 9:
- case 10:
- case 11:
- case 12:
- case 13:
- case 14:
- case 15:
- case 16:
- case 17:
- zero.z = 0.5f;
- zero2.x = -90f;
- break;
- }
- if (flag5)
- {
- zero.z = 0.4f;
- if (flag6)
- {
- zero2.x = -90f;
- }
- }
- if (gameObject2.name == "Salon_Entrance:3" || gameObject2.name == "Salon_Entrance:4"
- || gameObject2.name == "Salon_Entrance:1"
- || gameObject2.name == "Salon_Entrance:2"
- || gameObject2.name == "Salon_Entrance:0" || gameObject2.name == "Shitsumu:23"
- || gameObject2.name == "Shitsumu_Night:23")
- {
- zero.z = 0.5f;
- zero2.x = -90f;
- }
- if (gameObject2.name == "Pool:26")
- {
- zero.z = 0.5f;
- zero2.x = -90f;
- zero2.z = 90f;
- zero.y = 0.15f;
- }
- if (gameObject2.name == "Particle/pstarY_act2")
- {
- zero2.y = 90f;
- }
- gameObject2.transform.localPosition = zero;
- gameObject2.transform.localRotation = Quaternion.Euler(zero2);
- doguCnt = doguBObject.Count - 1;
- gDogu[doguCnt] = GameObject.CreatePrimitive(PrimitiveType.Cube);
- gDogu[doguCnt].GetComponent<Renderer>().material = m_material;
- gDogu[doguCnt].layer = 8;
- gDogu[doguCnt].GetComponent<Renderer>().enabled = false;
- gDogu[doguCnt].SetActive(false);
- gDogu[doguCnt].transform.position = gameObject2.transform.position;
- mDogu[doguCnt] = gDogu[doguCnt].AddComponent<MouseDrag6>();
- mDogu[doguCnt].obj = gDogu[doguCnt];
- mDogu[doguCnt].maid = gameObject2;
- mDogu[doguCnt].angles = gameObject2.transform.eulerAngles;
- gDogu[doguCnt].transform.localScale = new Vector3(cubeSize, cubeSize, cubeSize);
- mDogu[doguCnt].ido = 1;
- mDogu[doguCnt].isScale = false;
- if (gameObject2.name == "Particle/pLineY")
- {
- mDogu[doguCnt].count = 180;
- gameObject2.transform.localScale = new Vector3(3f, 3f, 3f);
- }
- if (gameObject2.name == "Particle/pLineP02")
- {
- mDogu[doguCnt].count = 115;
- gameObject2.transform.localScale = new Vector3(3f, 3f, 3f);
- }
- if (gameObject2.name == "Particle/pLine_act2")
- {
- mDogu[doguCnt].count = 90;
- gameObject2.transform.localScale = new Vector3(3f, 3f, 3f);
- }
- if (gameObject2.name == "Particle/pHeart01")
- {
- mDogu[doguCnt].count = 77;
- }
- if (parIndex < 3)
- {
- mDogu[doguCnt].isScale = true;
- mDogu[doguCnt].isScale2 = true;
- mDogu[doguCnt].scale2 = gameObject2.transform.localScale;
- if (parIndex == 0)
- {
- mDogu[doguCnt].scale = new Vector3(gameObject2.transform.localScale.x * 5f,
- gameObject2.transform.localScale.y * 5f,
- gameObject2.transform.localScale.z * 5f);
- }
- if (parIndex == 1)
- {
- mDogu[doguCnt].scale = new Vector3(gameObject2.transform.localScale.x * 10f,
- gameObject2.transform.localScale.y * 10f,
- gameObject2.transform.localScale.z * 10f);
- }
- if (parIndex == 2)
- {
- mDogu[doguCnt].scale = new Vector3(gameObject2.transform.localScale.x * 33f,
- gameObject2.transform.localScale.y * 33f,
- gameObject2.transform.localScale.z * 33f);
- }
- }
- if (gameObject2.GetComponent<Collider>() != null)
- {
- gameObject2.GetComponent<Collider>().enabled = false;
- }
- }
- GUI.enabled = true;
- if (bgCombo.isClickedComboButton || bgmCombo.isClickedComboButton)
- {
- GUI.enabled = false;
- }
- GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(88), (float) this.GetPix(100), (float) this.GetPix(25)),
- "大道具1",
- guistyle2);
- doguBIndex =
- doguCombo.List(new Rect((float) this.GetPix(51),
- (float) this.GetPix(85),
- (float) this.GetPix(100),
- (float) this.GetPix(23)),
- doguComboList[doguBIndex].text,
- doguComboList,
- guistyle4,
- "box",
- listStyle3);
- if (GUI.Button(new Rect((float) this.GetPix(156), (float) this.GetPix(85), (float) this.GetPix(38), (float) this.GetPix(23)),
- "追加",
- guistyle3))
- {
- PhotoBGObjectData objResult = null;
- GameObject gameObject2 = null;
- if (doguDict.TryGetValue(doguBArray[doguBIndex], out objResult))
- {
- if (!string.IsNullOrEmpty(objResult.create_prefab_name))
- {
- var tmpObj = Resources.Load("Prefab/" + objResult.create_prefab_name);
- if (tmpObj == null)
- gameObject2 = null;
- else
- gameObject2 = (Instantiate(tmpObj) as GameObject);
- }
- else if (!string.IsNullOrEmpty(objResult.create_asset_bundle_name))
- {
- GameObject gameObject3 = GameMain.Instance.BgMgr.CreateAssetBundle(objResult.create_asset_bundle_name);
- if (gameObject3 == null)
- gameObject2 = null;
- else
- gameObject2 = Instantiate<GameObject>(gameObject3);
- }
- else if (!string.IsNullOrEmpty(objResult.direct_file))
- {
- BasePhotoCustomObject basePhotoCustomObject =
- BasePhotoCustomObject.InstantiateFromFile(transform.gameObject, objResult.direct_file);
- gameObject2 = basePhotoCustomObject.gameObject;
- }
- if (gameObject2 != null)
- doguBObject.Add(gameObject2);
- }
- else if (!doguBArray[doguBIndex].StartsWith("mirror"))
- {
- Object @object;
- if (doguBArray[doguBIndex].StartsWith("BG"))
- {
- string text2 = doguBArray[doguBIndex].Replace("BG", "");
- @object = GameMain.Instance.BgMgr.CreateAssetBundle(text2);
- if (@object == null)
- {
- @object = Resources.Load("BG/" + text2);
- }
- }
- else
- {
- @object = Resources.Load("Prefab/" + doguBArray[doguBIndex]);
- }
- gameObject2 = (Instantiate(@object) as GameObject);
- doguBObject.Add(gameObject2);
- }
- else
- {
- Material material2 = new Material(Shader.Find("Mirror"));
- GameObject gameObject3 = GameObject.CreatePrimitive(PrimitiveType.Plane);
- gameObject3.transform.localScale = new Vector3(0.3f, 1f, 0.3f);
- gameObject3.GetComponent<Renderer>().material = material2;
- gameObject3.AddComponent<MirrorReflection2>();
- MirrorReflection2 component2 = gameObject3.GetComponent<MirrorReflection2>();
- component2.m_TextureSize = 2048;
- component2.m_ClipPlaneOffset = 0f;
- gameObject3.GetComponent<Renderer>().enabled = true;
- gameObject2 = gameObject3;
- doguBObject.Add(gameObject2);
- }
- gameObject2.name = doguBArray[doguBIndex];
- Vector3 zero = Vector3.zero;
- Vector3 zero2 = Vector3.zero;
- string text = gameObject2.name;
- switch (text)
- {
- case "Odogu_XmasTreeMini_photo_ver":
- zero.z = 0.6f;
- gameObject2.transform.localScale = new Vector3(4.5f, 4.5f, 4.5f);
- foreach (object obj2 in gameObject2.transform)
- {
- Transform transform2 = (Transform) obj2;
- if (transform2.GetComponent<Collider>() != null)
- {
- transform2.GetComponent<Collider>().enabled = false;
- }
- }
- goto IL_A0BF;
- case "Odogu_KadomatsuMini_photo_ver":
- zero.z = 0.6f;
- gameObject2.transform.localScale = new Vector3(3.5f, 3.5f, 3.5f);
- foreach (object obj3 in gameObject2.transform)
- {
- Transform transform2 = (Transform) obj3;
- if (transform2.GetComponent<Collider>() != null)
- {
- transform2.GetComponent<Collider>().enabled = false;
- }
- }
- goto IL_A0BF;
- case "Odogu_ClassRoomDesk":
- zero.z = 0.5f;
- zero2.x = -90f;
- goto IL_A0BF;
- case "Odogu_SimpleTable":
- zero.z = 0.5f;
- zero2.x = -90f;
- goto IL_A0BF;
- case "Odogu_DildoBox":
- zero.z = 0.5f;
- zero2.x = -90f;
- goto IL_A0BF;
- case "PlayAreaOut":
- zero.z = 0.5f;
- zero.y = 0.2f;
- goto IL_A0BF;
- case "Odogu_Dresser_photo_ver":
- GameObject.Find("Prim.00000000").GetComponent<Collider>().enabled = false;
- GameObject.Find("Prim.00000001").GetComponent<Collider>().enabled = false;
- GameObject.Find("Prim.00000002").GetComponent<Collider>().enabled = false;
- GameObject.Find("Prim.00000004").GetComponent<Collider>().enabled = false;
- goto IL_A0BF;
- case "BGodogu_bbqgrill":
- case "BGodogu_bucket":
- case "BGodogu_coolerbox":
- case "BGodogu_game_darts":
- case "BGodogu_game_dartsboard":
- case "BGodogu_nabe_huta":
- case "BGodogu_nabe_water":
- case "BGodogu_natumikan":
- case "BGodogu_rb_chair":
- case "BGodogu_rb_duck":
- case "BGodogu_rb_obon":
- case "BGodogu_rb_tokkuri":
- case "BGodogu_saracorn":
- case "BGodogu_saraimo":
- case "BGodogu_saratomato":
- case "BGodogu_sunanoshiro":
- case "BGodogu_sunanoyama":
- case "BGodogu_tsutsuhanabi":
- case "BGodogu_ukiwa":
- case "BGodogu_vf_crops_corn":
- case "BGodogu_vf_crops_gekkabijin":
- case "BGodogu_vf_crops_gekkabijinflower":
- case "BGodogu_vf_crops_himawari":
- case "BGodogu_vf_crops_natsumikan":
- case "BGodogu_vf_crops_suika":
- case "BGodogu_vf_crops_zakuro":
- case "BGodogu_villa_table":
- case "BGodogu_villa_tvrimocon":
- case "BGodogu_villabr_sideboard":
- case "BGOdogu_Game_Nei_USB":
- case "BGOdogu_Game_Wanage":
- case "BGOdogu_Game_Wa":
- case "BGodogu_pafe":
- case "BGodogu_furaidopoteto":
- case "BGodogu_karaoketable":
- case "BGodogu_omuriceh":
- case "BGodogu_omuricekao1":
- case "BGodogu_omuricekao2":
- case "BGodogu_omuriceoppai":
- case "BGodogu_kakigori":
- case "BGodogu_pretzel_sara":
- case "BGodogu_karaoke_box":
- case "Odogu_StandMike":
- case "Odogu_StandMikeBase":
- case "Odogu_HeroineChair_muku":
- case "Odogu_HeroineChair_mazime":
- case "Odogu_HeroineChair_rindere":
- case "Odogu_HeroineChair_tsumdere":
- case "Odogu_HeroineChair_cooldere":
- case "Odogu_HeroineChair_junshin":
- case "Odogu_TabletPC":
- case "Odogu_Styluspen_black":
- case "Odogu_Styluspen_white":
- case "Odogu_Styluspen_red":
- case "Odogu_Styluspen_blue":
- case "Odogu_Styluspen_yellow":
- case "Odogu_Styluspen_green":
- case "Odogu_Omurice1":
- case "Odogu_Omurice3":
- case "Odogu_OmuriceH":
- case "Odogu_OmuriceKao1":
- case "Odogu_OmuriceKao2":
- case "Odogu_OmuriceOppai":
- case "Odogu_AcquaPazza":
- case "Odogu_Sandwich":
- case "Odogu_vichyssoise":
- case "Odogu_BirthdayCake":
- case "Odogu_Shortcake":
- case "Odogu_MontBlanc":
- case "Odogu_Pafe":
- case "Odogu_Smoothie_Red":
- case "Odogu_Smoothie_Green":
- case "Odogu_Cocktail_Red":
- case "Odogu_Cocktail_Blue":
- case "Odogu_Cocktail_Yellow":
- case "Odogu_Coffiecup":
- case "Odogu_WineBottle(cap_off)":
- case "Odogu_WineBottle(cap_on)":
- case "Odogu_Jyouro":
- case "Odogu_Planter_Red":
- case "Odogu_Planter_Lightblue":
- case "Odogu_MariGold":
- case "Odogu_CasinoChip_10":
- case "Odogu_CasinoChip_100":
- case "Odogu_CasinoChip_1000":
- case "Odogu_CardShooter":
- case "Odogu_CardsDeck":
- case "Odogu_Card_s1":
- case "Odogu_Card_s2":
- case "Odogu_Card_s3":
- case "Odogu_Card_s4":
- case "Odogu_Card_s5":
- case "Odogu_Card_s6":
- case "Odogu_Card_s7":
- case "Odogu_Card_s8":
- case "Odogu_Card_s9":
- case "Odogu_Card_s10":
- case "Odogu_Card_s11":
- case "Odogu_Card_s12":
- case "Odogu_Card_s13":
- case "Odogu_Card_h1":
- case "Odogu_Card_h2":
- case "Odogu_Card_h3":
- case "Odogu_Card_h4":
- case "Odogu_Card_h5":
- case "Odogu_Card_h6":
- case "Odogu_Card_h7":
- case "Odogu_Card_h8":
- case "Odogu_Card_h9":
- case "Odogu_Card_h10":
- case "Odogu_Card_h11":
- case "Odogu_Card_h12":
- case "Odogu_Card_h13":
- case "Odogu_Card_d1":
- case "Odogu_Card_d2":
- case "Odogu_Card_d3":
- case "Odogu_Card_d4":
- case "Odogu_Card_d5":
- case "Odogu_Card_d6":
- case "Odogu_Card_d7":
- case "Odogu_Card_d8":
- case "Odogu_Card_d9":
- case "Odogu_Card_d10":
- case "Odogu_Card_d11":
- case "Odogu_Card_d12":
- case "Odogu_Card_d13":
- case "Odogu_Card_c1":
- case "Odogu_Card_c2":
- case "Odogu_Card_c3":
- case "Odogu_Card_c4":
- case "Odogu_Card_c5":
- case "Odogu_Card_c6":
- case "Odogu_Card_c7":
- case "Odogu_Card_c8":
- case "Odogu_Card_c9":
- case "Odogu_Card_c10":
- case "Odogu_Card_c11":
- case "Odogu_Card_c12":
- case "Odogu_Card_c13":
- case "Odogu_Card_joker":
- zero.z = 0.5f;
- zero2.x = -90f;
- goto IL_A0BF;
- }
- zero.z = 0.5f;
- if (gameObject2.name.StartsWith("Odogu_"))
- {
- foreach (object obj4 in gameObject2.transform)
- {
- Transform transform2 = (Transform) obj4;
- if (transform2.GetComponent<Collider>() != null)
- {
- transform2.GetComponent<Collider>().enabled = false;
- }
- }
- }
- else if (gameObject2.GetComponent<Collider>() != null)
- {
- gameObject2.GetComponent<Collider>().enabled = false;
- }
- IL_A0BF:
- gameObject2.transform.localPosition = zero;
- gameObject2.transform.localRotation = Quaternion.Euler(zero2);
- doguCnt = doguBObject.Count - 1;
- gDogu[doguCnt] = GameObject.CreatePrimitive(PrimitiveType.Cube);
- gDogu[doguCnt].GetComponent<Renderer>().material = m_material;
- gDogu[doguCnt].layer = 8;
- gDogu[doguCnt].GetComponent<Renderer>().enabled = false;
- gDogu[doguCnt].SetActive(false);
- gDogu[doguCnt].transform.position = gameObject2.transform.position;
- mDogu[doguCnt] = gDogu[doguCnt].AddComponent<MouseDrag6>();
- mDogu[doguCnt].isScale = false;
- mDogu[doguCnt].obj = gDogu[doguCnt];
- mDogu[doguCnt].maid = gameObject2;
- mDogu[doguCnt].angles = gameObject2.transform.eulerAngles;
- gDogu[doguCnt].transform.localScale = new Vector3(cubeSize, cubeSize, cubeSize);
- mDogu[doguCnt].ido = 1;
- if (doguBIndex == 6 || doguBIndex == 7)
- {
- mDogu[doguCnt].isScale2 = true;
- mDogu[doguCnt].scale2 = gameObject2.transform.localScale;
- }
- }
- GUI.enabled = true;
- if (bgmCombo.isClickedComboButton)
- {
- GUI.enabled = false;
- }
- listStyle3.padding.top = this.GetPix(1);
- listStyle3.padding.bottom = this.GetPix(0);
- listStyle3.fontSize = this.GetPix(12);
- int num10 = bgCombo.List(new Rect((float) this.GetPix(31),
- (float) this.GetPix(53),
- (float) this.GetPix(95),
- (float) this.GetPix(23)),
- bgComboList[bgIndex].text,
- bgComboList,
- guistyle4,
- "box",
- listStyle3);
- if (GUI.Button(new Rect((float) this.GetPix(5), (float) this.GetPix(53), (float) this.GetPix(23), (float) this.GetPix(23)),
- "<",
- guistyle3))
- {
- num10--;
- if (num10 <= -1)
- {
- num10 = bgArray.Length - 1;
- }
- }
- if (GUI.Button(new Rect((float) this.GetPix(129), (float) this.GetPix(53), (float) this.GetPix(23), (float) this.GetPix(23)),
- ">",
- guistyle3))
- {
- num10++;
- if (num10 == bgArray.Length)
- {
- num10 = 0;
- }
- }
- if (bgIndex != num10)
- {
- bgIndex = num10;
- bg.localScale = new Vector3(1f, 1f, 1f);
- if (bgArray[bgIndex].Length == 36)
- {
- GameMain.Instance.BgMgr.ChangeBgMyRoom(bgArray[bgIndex]);
- }
- else
- {
- GameMain.Instance.BgMgr.ChangeBg(bgArray[bgIndex]);
- }
- bgCombo.selectedItemIndex = bgIndex;
- if (bgArray[bgIndex] == "karaokeroom")
- {
- bg.transform.position = bgObject.transform.position;
- Vector3 zero = Vector3.zero;
- Vector3 zero2 = Vector3.zero;
- zero2.y = 90f;
- zero.z = 4f;
- zero.x = 1f;
- bg.transform.localPosition = zero;
- bg.transform.localRotation = Quaternion.Euler(zero2);
- }
- }
- GUI.enabled = true;
- int num11 = bgmCombo.List(new Rect((float) this.GetPix(31),
- (float) this.GetPix(25),
- (float) this.GetPix(95),
- (float) this.GetPix(23)),
- bgmComboList[bgmIndex].text,
- bgmComboList,
- guistyle4,
- "box",
- listStyle3);
- if (GUI.Button(new Rect((float) this.GetPix(5), (float) this.GetPix(25), (float) this.GetPix(23), (float) this.GetPix(23)),
- "<",
- guistyle3))
- {
- num11--;
- if (num11 <= -1)
- {
- num11 = bgmArray.Length - 1;
- }
- }
- if (GUI.Button(new Rect((float) this.GetPix(129), (float) this.GetPix(25), (float) this.GetPix(23), (float) this.GetPix(23)),
- ">",
- guistyle3))
- {
- num11++;
- if (num11 == bgmArray.Length)
- {
- num11 = 0;
- }
- }
- if (bgmIndex != num11)
- {
- bgmIndex = num11;
- GameMain.Instance.SoundMgr.PlayBGM(bgmArray[bgmIndex] + ".ogg", 0f, true);
- bgmCombo.selectedItemIndex = bgmIndex;
- }
- if (bgmCombo.isClickedComboButton)
- {
- GUI.enabled = false;
- }
- }
- private void GuiFunc4(int winID)
- {
- GUIStyle style1 = (GUIStyle) "label";
- style1.fontSize = this.GetPix(12);
- style1.alignment = TextAnchor.UpperLeft;
- GUIStyle style2 = (GUIStyle) "label";
- style2.fontSize = this.GetPix(11);
- style2.alignment = TextAnchor.UpperLeft;
- GUIStyle style3 = (GUIStyle) "button";
- style3.fontSize = this.GetPix(20);
- GUIStyle buttonStyle1 = (GUIStyle) "button";
- buttonStyle1.fontSize = this.GetPix(14);
- buttonStyle1.alignment = TextAnchor.MiddleLeft;
- GUIStyle buttonStyle2 = (GUIStyle) "button";
- buttonStyle2.fontSize = this.GetPix(12);
- buttonStyle2.alignment = TextAnchor.MiddleLeft;
- GUIStyle style4 = new GUIStyle((GUIStyle) "toggle");
- style4.fontSize = this.GetPix(13);
- CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
- Maid maid = maidArray[selectMaidIndex];
- if (!poseInitFlg)
- {
- listStyle2.normal.textColor = Color.white;
- listStyle2.normal.background = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.5f));
- listStyle2.onHover.background = listStyle2.hover.background = new Texture2D(2, 2);
- listStyle2.padding.left = listStyle2.padding.right = listStyle2.padding.top = listStyle2.padding.bottom = this.GetPix(0);
- listStyle2.fontSize = this.GetPix(12);
- listStyle3.normal.textColor = Color.white;
- listStyle3.normal.background = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.5f));
- listStyle3.onHover.background = listStyle3.hover.background = new Texture2D(2, 2);
- listStyle3.padding.left = listStyle3.padding.right = listStyle3.padding.top = this.GetPix(1);
- listStyle3.padding.bottom = this.GetPix(0);
- listStyle3.fontSize = this.GetPix(12);
- listStyle4.normal.textColor = Color.white;
- listStyle4.normal.background = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.5f));
- listStyle4.onHover.background = listStyle4.hover.background = new Texture2D(2, 2);
- listStyle4.padding.left = listStyle4.padding.right = listStyle4.padding.top = 3;
- listStyle4.padding.bottom = 3;
- listStyle4.fontSize = this.GetPix(13);
- poseCombo.selectedItemIndex = 0;
- int group = (int) groupList[0];
- poseComboList = new GUIContent[group];
- for (int index = 0; index < group; ++index)
- poseComboList[index] = new GUIContent((index + 1).ToString() + ":" + poseArray[index]);
- poseGroupCombo.selectedItemIndex = 0;
- poseGroupComboList = new GUIContent[poseGroupArray.Length + 1];
- poseGroupComboList[0] = new GUIContent("1:通常");
- for (int index = 0; index < poseGroupArray.Length; ++index)
- {
- if (poseGroupArray[index] == "maid_dressroom01")
- poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":立ち");
- if (poseGroupArray[index] == "tennis_kamae_f")
- poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":中腰");
- if (poseGroupArray[index] == "senakanagasi_f")
- poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":膝をつく");
- if (poseGroupArray[index] == "work_hansei")
- poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":座り");
- if (poseGroupArray[index] == "inu_taiki_f")
- poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":四つん這い");
- if (poseGroupArray[index] == "syagami_pose_f")
- poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":床座り");
- if (poseGroupArray[index] == "densyasuwari_taiki_f")
- poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":椅子座り");
- if (poseGroupArray[index] == "work_kaiwa")
- poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":ソファー座り");
- if (poseGroupArray[index] == "dance_cm3d2_001_f1,14.14")
- poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":ドキドキ☆Fallin' Love");
- if (poseGroupArray[index] == "dance_cm3d_001_f1,39.25")
- poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":entrance to you");
- if (poseGroupArray[index] == "dance_cm3d_002_end_f1,50.71")
- poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":scarlet leap");
- if (poseGroupArray[index] == "dance_cm3d2_002_smt_f,7.76,")
- poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":stellar my tears");
- if (poseGroupArray[index] == "dance_cm3d_003_sp2_f1,90.15")
- poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":rhythmix to you");
- if (poseGroupArray[index] == "dance_cm3d2_003_hs_f1,0.01,")
- poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":happy!happy!スキャンダル!!");
- if (poseGroupArray[index] == "dance_cm3d_004_kano_f1,124.93")
- poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":Can Know Two Close");
- if (poseGroupArray[index] == "dance_cm3d2_004_sse_f1,0.01")
- poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":sweet sweet everyday");
- if (poseGroupArray[index] == "turusi_sex_in_taiki_f")
- poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":拘束");
- if (poseGroupArray[index] == "rosyutu_pose01_f")
- poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":エロ");
- if (poseGroupArray[index] == "rosyutu_aruki_f_once_,1.37")
- poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":歩き");
- if (poseGroupArray[index] == "stand_desk1")
- poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":その他");
- if (poseGroupArray[index] == poseArray5[0])
- poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":ダンスMC");
- if (poseGroupArray[index] == poseArray6[0])
- poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":ダンス");
- if (existPose && strS != "")
- {
- if (index == poseGroupArray.Length - 4)
- poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":通常2");
- if (index == poseGroupArray.Length - 3)
- poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":エロ2");
- if (index == poseGroupArray.Length - 2)
- poseGroupComboList[index + 1] = new GUIContent("98:撮影モード");
- if (index == poseGroupArray.Length - 1)
- poseGroupComboList[index + 1] = new GUIContent("99:登録ポーズ");
- }
- else if (existPose && strS == "")
- {
- if (index == poseGroupArray.Length - 3)
- poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":通常2");
- if (index == poseGroupArray.Length - 2)
- poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":エロ2");
- if (index == poseGroupArray.Length - 1)
- poseGroupComboList[index + 1] = new GUIContent("99:登録ポーズ");
- }
- else if (!existPose && strS != "")
- {
- if (index == poseGroupArray.Length - 3)
- poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":通常2");
- if (index == poseGroupArray.Length - 2)
- poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":エロ2");
- if (index == poseGroupArray.Length - 1)
- poseGroupComboList[index + 1] = new GUIContent("98:撮影モード");
- }
- else
- {
- if (index == poseGroupArray.Length - 2)
- poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":通常2");
- if (index == poseGroupArray.Length - 1)
- poseGroupComboList[index + 1] = new GUIContent((index + 2).ToString() + ":エロ2");
- }
- }
- poseInitFlg = true;
- itemCombo.selectedItemIndex = 0;
- int length = itemArray.Length;
- itemComboList = new GUIContent[length - 1];
- for (int index = 0; index < length; ++index)
- {
- if (index == 0)
- {
- itemComboList[index] = new GUIContent("アイテム無し");
- }
- else
- {
- switch (itemArray[index])
- {
- case "handitem,HandItemR_WineGlass_I_.menu":
- itemComboList[index] = new GUIContent(index.ToString() + ":ワイングラス");
- break;
- case "handitem,HandItemR_WineBottle_I_.menu":
- itemComboList[index] = new GUIContent(index.ToString() + ":ワインボトル");
- break;
- case "handitem,handitemr_racket_I_.menu":
- itemComboList[index] = new GUIContent(index.ToString() + ":ラケット");
- break;
- case "handitem,HandItemR_Hataki_I_.menu":
- itemComboList[index] = new GUIContent(index.ToString() + ":ハタキ");
- break;
- case "handitem,HandItemR_Mop_I_.menu":
- itemComboList[index] = new GUIContent(index.ToString() + ":モップ");
- break;
- case "handitem,HandItemR_Houki_I_.menu":
- itemComboList[index] = new GUIContent(index.ToString() + ":ほうき");
- break;
- case "handitem,HandItemR_Zoukin2_I_.menu":
- itemComboList[index] = new GUIContent(index.ToString() + ":雑巾");
- break;
- case "handitem,HandItemR_Chu-B_Lip_I_.menu":
- itemComboList[index] = new GUIContent(index.ToString() + ":Chu-B Lip");
- break;
- case "handitem,HandItemR_Mimikaki_I_.menu":
- itemComboList[index] = new GUIContent(index.ToString() + ":耳かき");
- break;
- case "handitem,HandItemR_Pen_I_.menu":
- itemComboList[index] = new GUIContent(index.ToString() + ":ペン");
- break;
- case "handitem,HandItemR_Otama_I_.menu":
- itemComboList[index] = new GUIContent(index.ToString() + ":おたま");
- break;
- case "handitem,HandItemR_Houchou_I_.menu":
- itemComboList[index] = new GUIContent(index.ToString() + ":包丁");
- break;
- case "handitem,HandItemR_Book_I_.menu":
- itemComboList[index] = new GUIContent(index.ToString() + ":本");
- break;
- case "handitem,HandItemR_Puff_I_.menu":
- itemComboList[index] = new GUIContent(index.ToString() + ":パフ");
- break;
- case "handitem,HandItemR_Rip_I_.menu":
- itemComboList[index] = new GUIContent(index.ToString() + ":リップ");
- break;
- case "handitem,HandItemD_Shisyuu_Hari_I_.menu":
- itemComboList[index] = new GUIContent(index.ToString() + ":刺繍");
- break;
- case "handitem,HandItemD_Sara_Sponge_I_.menu":
- itemComboList[index] = new GUIContent(index.ToString() + ":皿・スポンジ");
- break;
- case "kousoku_upper,KousokuU_TekaseOne_I_.menu":
- itemComboList[index] = new GUIContent(index.ToString() + ":手枷1");
- break;
- case "kousoku_upper,KousokuU_TekaseTwo_I_.menu":
- itemComboList[index] = new GUIContent(index.ToString() + ":手枷2");
- break;
- case "kousoku_lower,KousokuL_AshikaseUp_I_.menu":
- itemComboList[index] = new GUIContent(index.ToString() + ":足枷");
- break;
- case "handitem,HandItemR_Usuba_Houchou_I_.menu":
- itemComboList[index] = new GUIContent(index.ToString() + "薄刃包丁");
- break;
- case "handitem,HandItemR_Chusyaki_I_.menu":
- itemComboList[index] = new GUIContent(index.ToString() + "注射器");
- break;
- case "handitem,HandItemR_Nei_Heartful_I_.menu":
- itemComboList[index] = new GUIContent(index.ToString() + "ハートフルねい人形");
- break;
- case "handitem,HandItemR_Shaker_I_.menu":
- itemComboList[index] = new GUIContent(index.ToString() + "シェイカー");
- break;
- case "handitem,HandItemR_SmartPhone_I_.menu":
- itemComboList[index] = new GUIContent(index.ToString() + "スマートフォン");
- break;
- case "kousoku_upper,KousokuU_Ushirode_I_.menu":
- itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":後ろ手拘束具");
- break;
- case "kousoku_upper,KousokuU_SMRoom_Haritsuke_I_.menu":
- itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":磔台・手枷足枷");
- break;
- case "kousoku_upper,KousokuU_SMRoom2_Haritsuke_I_.menu":
- itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":磔台・手枷足枷2");
- break;
- case "handitem,HandItemL_Dance_Hataki_I_.menu":
- itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":ダンスハタキ");
- break;
- case "handitem,HandItemL_Dance_Mop_I_.menu":
- itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":ダンスモップ");
- break;
- case "handitem,HandItemL_Dance_Zoukin_I_.menu":
- itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":ダンス雑巾");
- break;
- case "handitem,HandItemL_Kozara_I_.menu":
- itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":小皿");
- break;
- case "handitem,HandItemR_Teacup_I_.menu":
- itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":ティーカップ");
- break;
- case "handitem,HandItemL_Teasaucer_I_.menu":
- itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":ティーソーサー");
- break;
- case "handitem,HandItemR_Wholecake_I_.menu":
- itemComboList[index - 1] = new GUIContent("ホールケーキ");
- break;
- case "handitem,HandItemR_Menu_I_.menu":
- itemComboList[index - 1] = new GUIContent("メニュー表");
- break;
- case "handitem,HandItemR_Vibe_I_.menu":
- itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":バイブ");
- break;
- case "handitem,HandItemR_VibePink_I_.menu":
- itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":ピンクバイブ");
- break;
- case "handitem,HandItemR_VibeBig_I_.menu":
- itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":太バイブ");
- break;
- case "handitem,HandItemR_AnalVibe_I_.menu":
- itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":アナルバイブ");
- break;
- case "handitem,HandItemH_SoutouVibe_I_.menu":
- itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":前:双頭バイブ");
- break;
- case "accvag,accVag_Vibe_I_.menu":
- itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":前:バイブ");
- break;
- case "accvag,accVag_VibeBig_I_.menu":
- itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":前:太バイブ");
- break;
- case "accvag,accVag_VibePink_I_.menu":
- itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":前:ピンクバイブ");
- break;
- case "accanl,accAnl_AnalVibe_I_.menu":
- itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":後:アナルバイブ");
- break;
- case "accanl,accAnl_Photo_NomalVibe_I_.menu":
- itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":後:バイブ");
- break;
- case "accanl,accAnl_Photo_VibeBig_I_.menu":
- itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":後:太バイブ");
- break;
- case "accanl,accAnl_Photo_VibePink_I_.menu":
- itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":後:ピンクバイブ");
- break;
- case "handitem,HandItemL_Etoile_Saucer_I_.menu":
- itemComboList[index - 1] = new GUIContent((index - 1).ToString() + "ティーソーサー");
- break;
- case "handitem,HandItemR_Etoile_Teacup_I_.menu":
- itemComboList[index - 1] = new GUIContent((index - 1).ToString() + "ティーカップ");
- break;
- case "handitem,HandItemL_Katuramuki_Daikon_I_.menu":
- itemComboList[index - 1] = new GUIContent((index - 1).ToString() + "桂むき大根");
- break;
- case "handitem,HandItemL_Karte_I_.menu":
- itemComboList[index - 1] = new GUIContent((index - 1).ToString() + "カルテ");
- break;
- case "handitem,HandItemL_Cracker_I_.menu":
- itemComboList[index - 1] = new GUIContent((index - 1).ToString() + "クラッカー");
- break;
- }
- if (index == 12)
- itemComboList[index] = new GUIContent(index.ToString() + ":手枷・足枷");
- if (index == 13)
- itemComboList[index] = new GUIContent(index.ToString() + ":手枷・足枷(下)");
- if (index == 24)
- itemComboList[index - 1] = new GUIContent((index - 1).ToString() + ":カップ&ソーサー");
- }
- }
- }
- if (poseCombo.isClickedComboButton)
- GUI.enabled = false;
- if (poseGroupCombo.isClickedComboButton)
- GUI.enabled = false;
- if (sceneLevel == 3 || sceneLevel == 5 || isF6)
- {
- if (!isF6)
- {
- bool flag = true;
- if (faceFlg || poseFlg || (sceneFlg || kankyoFlg) || kankyo2Flg)
- flag = false;
- if (GUI.Toggle(new Rect((float) this.GetPix(2),
- (float) this.GetPix(2),
- (float) this.GetPix(39),
- (float) this.GetPix(20)),
- flag,
- "配置",
- style4))
- {
- faceFlg = false;
- poseFlg = false;
- sceneFlg = false;
- kankyoFlg = false;
- kankyo2Flg = false;
- bGui = true;
- isGuiInit = true;
- }
- }
- if (!yotogiFlg && GUI.Toggle(new Rect((float) this.GetPix(41),
- (float) this.GetPix(2),
- (float) this.GetPix(39),
- (float) this.GetPix(20)),
- poseFlg,
- "操作",
- style4))
- {
- poseFlg = true;
- faceFlg = false;
- sceneFlg = false;
- kankyoFlg = false;
- kankyo2Flg = false;
- }
- if (GUI.Toggle(new Rect((float) this.GetPix(80), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
- faceFlg,
- "表情",
- style4))
- {
- faceFlg = true;
- poseFlg = false;
- sceneFlg = false;
- kankyoFlg = false;
- kankyo2Flg = false;
- if (!faceFlg2)
- {
- isFaceInit = true;
- faceFlg2 = true;
- maidArray[selectMaidIndex].boMabataki = false;
- faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
- }
- isFaceInit = true;
- }
- if (GUI.Toggle(new Rect((float) this.GetPix(119), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
- kankyoFlg,
- "環境",
- style4))
- {
- poseFlg = false;
- faceFlg = false;
- sceneFlg = false;
- kankyoFlg = true;
- kankyo2Flg = false;
- }
- if (!(bool) ((Object) line1))
- {
- line1 = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.3f));
- line2 = this.MakeTex(2, 2, new Color(0.7f, 0.7f, 0.7f, 0.6f));
- }
- GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(20), (float) this.GetPix(160), 2f), (Texture) line1);
- GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(20), (float) this.GetPix(160), 1f), (Texture) line2);
- style1.fontSize = this.GetPix(13);
- style1.alignment = TextAnchor.MiddleCenter;
- GUI.Label(new Rect((float) this.GetPix(125), (float) this.GetPix(25), (float) this.GetPix(40), (float) this.GetPix(25)),
- string.Concat((object) (selectMaidIndex + 1)),
- style1);
- style1.fontSize = this.GetPix(11);
- style1.alignment = TextAnchor.UpperLeft;
- }
- if (sceneLevel > 0)
- {
- int selectMaidIndex = this.selectMaidIndex;
- if (sceneLevel == 3 || sceneLevel == 5 && (isF7 || maidCnt > 1))
- {
- if (GUI.Button(new Rect((float) this.GetPix(5),
- (float) this.GetPix(53),
- (float) this.GetPix(23),
- (float) this.GetPix(32)),
- "<",
- style3))
- {
- --this.selectMaidIndex;
- if (this.selectMaidIndex < 0)
- this.selectMaidIndex = selectList.Count - 1;
- isPoseInit = true;
- poseFlg = true;
- copyIndex = 0;
- poseCombo.selectedItemIndex = poseIndex[this.selectMaidIndex];
- faceCombo.selectedItemIndex = faceIndex[this.selectMaidIndex];
- }
- if (GUI.Button(new Rect((float) this.GetPix(135),
- (float) this.GetPix(53),
- (float) this.GetPix(23),
- (float) this.GetPix(32)),
- ">",
- style3))
- {
- ++this.selectMaidIndex;
- if (selectList.Count <= this.selectMaidIndex)
- this.selectMaidIndex = 0;
- isPoseInit = true;
- poseFlg = true;
- copyIndex = 0;
- poseCombo.selectedItemIndex = poseIndex[this.selectMaidIndex];
- faceCombo.selectedItemIndex = faceIndex[this.selectMaidIndex];
- }
- }
- if ((bool) ((Object) maidArray[this.selectMaidIndex].GetThumIcon()))
- GUI.DrawTexture(new Rect((float) this.GetPix(30),
- (float) this.GetPix(25),
- (float) this.GetPix(60),
- (float) this.GetPix(60)),
- (Texture) maidArray[this.selectMaidIndex].GetThumIcon());
- GUI.Label(new Rect((float) this.GetPix(90), (float) this.GetPix(50), (float) this.GetPix(140), (float) this.GetPix(210)),
- maidArray[this.selectMaidIndex].status.lastName + "\n" + maidArray[this.selectMaidIndex].status.firstName,
- style1);
- }
- if (!isF6)
- {
- if (isDanceStop)
- {
- isStop[selectMaidIndex] = true;
- isDanceStop = false;
- }
- if (sceneLevel == 5 && maidCnt > 1)
- {
- bool flag = false;
- if (selectMaidIndex == isEditNo)
- flag = true;
- isEdit[selectMaidIndex] =
- GUI.Toggle(new Rect((float) this.GetPix(5),
- (float) this.GetPix(25),
- (float) this.GetPix(50),
- (float) this.GetPix(16)),
- flag,
- "Edit",
- style4);
- if (isEdit[selectMaidIndex] && selectMaidIndex != isEditNo)
- {
- isEditNo = selectMaidIndex;
- for (int index = 0; index < maidCnt; ++index)
- {
- if (index != isEditNo)
- isEdit[index] = false;
- }
- SceneEdit component = GameObject.Find("__SceneEdit__").GetComponent<SceneEdit>();
- SetFieldValue<SceneEdit, Maid>(component, "m_maid", maidArray[selectMaidIndex]);
- component.PartsTypeCamera(MPN.stkg);
- editSelectMaid = maidArray[selectMaidIndex];
- if (selectList[selectMaidIndex] != null && goSlot[(int) selectList[selectMaidIndex]] != null)
- {
- maidArray[selectMaidIndex].body0.goSlot =
- new List<TBodySkin>((IEnumerable<TBodySkin>) goSlot[(int) selectList[selectMaidIndex]]);
- for (int index = 0; index < bodyHit[(int) selectList[selectMaidIndex]].Count; ++index)
- maidArray[selectMaidIndex].body0.goSlot[index].bonehair.bodyhit =
- bodyHit[(int) selectList[selectMaidIndex]][index];
- }
- }
- }
- GUI.enabled = !poseGroupCombo.isClickedComboButton;
- if (isLock[selectMaidIndex])
- GUI.enabled = false;
- int result;
- Transform transform;
- if (GUI.Button(new Rect((float) this.GetPix(5), (float) this.GetPix(125), (float) this.GetPix(23), (float) this.GetPix(23)),
- "<",
- style3))
- {
- --poseIndex[selectMaidIndex];
- if (poseGroupIndex > 0)
- {
- if ((int) groupList[poseGroupIndex - 1] > poseIndex[selectMaidIndex])
- poseIndex[selectMaidIndex] = poseGroupIndex < groupList.Count
- ? (int) groupList[poseGroupIndex] - 1
- : poseArray.Length - 1;
- }
- else if (poseIndex[selectMaidIndex] < 0)
- poseIndex[selectMaidIndex] = (int) groupList[poseGroupIndex] - 1;
- isPoseInit = true;
- poseCombo.selectedItemIndex = poseGroupIndex <= 0
- ? poseIndex[selectMaidIndex]
- : poseIndex[selectMaidIndex] - (int) groupList[poseGroupIndex - 1];
- if (!isLock[selectMaidIndex] && ((bool) ((Object) maid) && maid.Visible))
- {
- string[] strArray = poseArray[poseIndex[selectMaidIndex]].Split(',');
- isStop[selectMaidIndex] = false;
- poseCount[selectMaidIndex] = 20;
- if (strArray[0].Contains("_momi") || strArray[0].Contains("paizuri_"))
- {
- maid.body0.MuneYureL(0.0f);
- maid.body0.MuneYureR(0.0f);
- }
- else
- {
- maid.body0.MuneYureL(1f);
- maid.body0.MuneYureR(1f);
- }
- if (strArray[0].Contains("MultipleMaidsPose"))
- {
- string path = strArray[0].Split('/')[1];
- byte[] numArray = new byte[0];
- try
- {
- using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
- {
- numArray = new byte[fileStream.Length];
- fileStream.Read(numArray, 0, numArray.Length);
- }
- }
- catch { }
- if (0 < numArray.Length)
- {
- long hashCode = (long) Path.GetFileName(path).GetHashCode();
- maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
- Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
- {
- Maid.AutoTwist.ShoulderL, Maid.AutoTwist.ShoulderR, Maid.AutoTwist.WristL, Maid.AutoTwist.WristR,
- Maid.AutoTwist.ThighL, Maid.AutoTwist.ThighR
- };
- foreach (Maid.AutoTwist f_eType in autoTwistArray)
- maid.SetAutoTwist(f_eType, true);
- }
- }
- else if (strArray[0].StartsWith("p") && int.TryParse(strArray[0].Substring(1), out result))
- loadPose[selectMaidIndex] = strArray[0];
- else if (!strArray[0].StartsWith("dance_"))
- {
- maidArray[selectMaidIndex].CrossFade(strArray[0] + ".anm", false, true, false, 0.0f, 1f);
- }
- else
- {
- if (!(bool) ((Object) maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray[0] + ".anm")))
- maid.body0.LoadAnime(strArray[0] + ".anm", GameUty.FileSystem, strArray[0] + ".anm", false, false);
- maid.body0.m_Bones.GetComponent<Animation>().Play(strArray[0] + ".anm");
- }
- if (strArray.Length > 1)
- {
- maid.body0.m_Bones.GetComponent<Animation>()[strArray[0] + ".anm"].time = float.Parse(strArray[1]);
- isDanceStop = true;
- if (strArray.Length > 2)
- {
- transform = CMT.SearchObjName(maidArray[selectMaidIndex].body0.m_Bones.transform, "Bip01", true);
- isPoseIti[selectMaidIndex] = true;
- poseIti[selectMaidIndex] = maidArray[selectMaidIndex].transform.position;
- maidArray[selectMaidIndex].transform.position = new Vector3(100f, 100f, 100f);
- }
- }
- }
- }
- if (GUI.Button(new Rect((float) this.GetPix(135),
- (float) this.GetPix(125),
- (float) this.GetPix(23),
- (float) this.GetPix(23)),
- ">",
- style3))
- {
- ++poseIndex[selectMaidIndex];
- if (poseIndex[selectMaidIndex] > (int) groupList[groupList.Count - 1])
- {
- if (poseIndex[selectMaidIndex] >= poseArray.Length)
- poseIndex[selectMaidIndex] = (int) groupList[poseGroupIndex - 1];
- }
- else if (poseIndex[selectMaidIndex] >= (int) groupList[poseGroupIndex])
- poseIndex[selectMaidIndex] = poseGroupIndex <= 0 ? 0 : (int) groupList[poseGroupIndex - 1];
- isPoseInit = true;
- poseCombo.selectedItemIndex = poseGroupIndex <= 0
- ? poseIndex[selectMaidIndex]
- : poseIndex[selectMaidIndex] - (int) groupList[poseGroupIndex - 1];
- if (!isLock[selectMaidIndex] && ((bool) ((Object) maid) && maid.Visible))
- {
- string[] strArray = poseArray[poseIndex[selectMaidIndex]].Split(',');
- isStop[selectMaidIndex] = false;
- poseCount[selectMaidIndex] = 20;
- if (strArray[0].Contains("_momi") || strArray[0].Contains("paizuri_"))
- {
- maid.body0.MuneYureL(0.0f);
- maid.body0.MuneYureR(0.0f);
- }
- else
- {
- maid.body0.MuneYureL(1f);
- maid.body0.MuneYureR(1f);
- }
- if (strArray[0].Contains("MultipleMaidsPose"))
- {
- string path = strArray[0].Split('/')[1];
- byte[] numArray = new byte[0];
- try
- {
- using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
- {
- numArray = new byte[fileStream.Length];
- fileStream.Read(numArray, 0, numArray.Length);
- }
- }
- catch { }
- if (0 < numArray.Length)
- {
- long hashCode = (long) Path.GetFileName(path).GetHashCode();
- maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
- Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
- {
- Maid.AutoTwist.ShoulderL, Maid.AutoTwist.ShoulderR, Maid.AutoTwist.WristL, Maid.AutoTwist.WristR,
- Maid.AutoTwist.ThighL, Maid.AutoTwist.ThighR
- };
- foreach (Maid.AutoTwist f_eType in autoTwistArray)
- maid.SetAutoTwist(f_eType, true);
- }
- }
- else if (strArray[0].StartsWith("p") && int.TryParse(strArray[0].Substring(1), out result))
- loadPose[selectMaidIndex] = strArray[0];
- else if (!strArray[0].StartsWith("dance_"))
- {
- maidArray[selectMaidIndex].CrossFade(strArray[0] + ".anm", false, true, false, 0.0f, 1f);
- }
- else
- {
- if (!(bool) ((Object) maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray[0] + ".anm")))
- maid.body0.LoadAnime(strArray[0] + ".anm", GameUty.FileSystem, strArray[0] + ".anm", false, false);
- maid.body0.m_Bones.GetComponent<Animation>().Play(strArray[0] + ".anm");
- }
- if (strArray.Length > 1)
- {
- maid.body0.m_Bones.GetComponent<Animation>()[strArray[0] + ".anm"].time = float.Parse(strArray[1]);
- isDanceStop = true;
- if (strArray.Length > 2)
- {
- transform = CMT.SearchObjName(maidArray[selectMaidIndex].body0.m_Bones.transform, "Bip01", true);
- isPoseIti[selectMaidIndex] = true;
- poseIti[selectMaidIndex] = maidArray[selectMaidIndex].transform.position;
- maidArray[selectMaidIndex].transform.position = new Vector3(100f, 100f, 100f);
- }
- }
- }
- }
- GUI.enabled = true;
- int index1 = -1;
- for (int index2 = 0; index2 < groupList.Count; ++index2)
- {
- if (poseIndex[selectMaidIndex] < (int) groupList[index2])
- {
- index1 = index2;
- break;
- }
- }
- int length1 = (int) groupList[0];
- int num1 = 0;
- if (index1 > 0)
- {
- length1 = (int) groupList[index1] - (int) groupList[index1 - 1];
- num1 = (int) groupList[index1 - 1];
- }
- if (index1 < 0)
- {
- index1 = groupList.Count;
- length1 = poseArray.Length - (int) groupList[index1 - 1];
- num1 = (int) groupList[index1 - 1];
- }
- if (poseGroupCombo.selectedItemIndex != index1)
- {
- poseComboList = new GUIContent[length1];
- int index2 = 0;
- for (int index3 = num1; index3 < num1 + length1; ++index3)
- {
- bool flag = false;
- foreach (IniKey key in this.Preferences["pose"].Keys)
- {
- if (poseArray[index3] == key.Key)
- {
- IniKey iniKey = this.Preferences["pose"][key.Key];
- if (iniKey.Value != null && iniKey.Value.ToString() != "" && iniKey.Value.ToString() != "del")
- {
- poseComboList[index2] =
- new GUIContent((index2 + 1).ToString() + ":" + iniKey.Value.Split('_')[0]
- + " " + key.Key);
- flag = true;
- }
- }
- }
- if (!flag)
- poseComboList[index2] = new GUIContent((index2 + 1).ToString() + ":" + poseArray[index3]);
- ++index2;
- }
- poseGroupCombo.selectedItemIndex = index1;
- poseGroupIndex = index1;
- poseCombo.selectedItemIndex = 0;
- }
- GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton;
- isLook[selectMaidIndex] =
- GUI.Toggle(new Rect((float) this.GetPix(8),
- (float) this.GetPix(155),
- (float) this.GetPix(65),
- (float) this.GetPix(16)),
- isLook[selectMaidIndex],
- "顔の向き",
- style4);
- isPoseEdit = GUI.Toggle(new Rect((float) this.GetPix(86),
- (float) this.GetPix(155),
- (float) this.GetPix(90),
- (float) this.GetPix(16)),
- isPoseEdit,
- "ポーズ登録",
- style4);
- if (isPoseEdit)
- {
- inName3 = GUI.TextField(new Rect((float) this.GetPix(5),
- (float) this.GetPix(180),
- (float) this.GetPix(100),
- (float) this.GetPix(20)),
- inName3);
- if (GUI.Button(new Rect((float) this.GetPix(107),
- (float) this.GetPix(180),
- (float) this.GetPix(35),
- (float) this.GetPix(20)),
- "追加",
- style3))
- {
- isSavePose = true;
- GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
- existPose = true;
- GUI.FocusControl("");
- }
- if (poseGroupComboList[poseGroupCombo.selectedItemIndex].text != "99:登録ポーズ")
- GUI.enabled = false;
- if (GUI.Button(new Rect((float) this.GetPix(144),
- (float) this.GetPix(180),
- (float) this.GetPix(24),
- (float) this.GetPix(20)),
- "削",
- style3))
- {
- GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
- List<string> stringList1 = new List<string>();
- stringList1.AddRange((IEnumerable<string>) poseArray);
- if (poseComboList[poseCombo.selectedItemIndex].text.Contains("MultipleMaidsPose"))
- {
- string pose = poseArray[poseIndex[selectMaidIndex]];
- stringList1.Remove(pose);
- string path = poseArray[poseIndex[selectMaidIndex]].Split('/')[1].Replace(" ", "");
- if (File.Exists(path))
- File.Delete(path);
- }
- else
- {
- string[] strArray = poseComboList[poseCombo.selectedItemIndex].text.Split('p');
- string str = strArray[strArray.Length - 1];
- IniKey iniKey = this.Preferences["pose"]["p" + str];
- if (iniKey.Value != "" || iniKey.Value != "del")
- {
- this.Preferences["pose"]["p" + str].Value = "del";
- this.SaveConfig();
- }
- stringList1.Remove("p" + str);
- }
- GUI.FocusControl("");
- poseArray = stringList1.ToArray();
- int index2 = -1;
- for (int index3 = 0; index3 < groupList.Count; ++index3)
- {
- if (poseIndex[selectMaidIndex] < (int) groupList[index3])
- {
- index2 = index3;
- break;
- }
- }
- int length2 = (int) groupList[0];
- int num2 = 0;
- if (index2 > 0)
- {
- length2 = (int) groupList[index2] - (int) groupList[index2 - 1];
- num2 = (int) groupList[index2 - 1];
- }
- if (index2 < 0)
- {
- index2 = groupList.Count;
- length2 = poseArray.Length - (int) groupList[index2 - 1];
- num2 = (int) groupList[index2 - 1];
- }
- poseComboList = new GUIContent[length2];
- int index4 = 0;
- bool existEdit = false;
- for (int index3 = num2; index3 < num2 + length2; ++index3)
- {
- bool flag = false;
- foreach (IniKey key in this.Preferences["pose"].Keys)
- {
- if (poseArray[index3] == key.Key)
- {
- IniKey iniKey = this.Preferences["pose"][key.Key];
- if (iniKey.Value != null && iniKey.Value.ToString() != "" && iniKey.Value.ToString() != "del")
- {
- poseComboList[index4] =
- new GUIContent((index4 + 1).ToString() + ":" + iniKey.Value.Split('_')[0]
- + " " + key.Key);
- flag = true;
- existEdit = true;
- }
- }
- }
- if (!flag)
- poseComboList[index4] = new GUIContent((index4 + 1).ToString() + ":" + poseArray[index3]);
- ++index4;
- }
- ((Action<string, List<string>>) ((path, result_list) =>
- {
- string[] files = Directory.GetFiles(path);
- countS = 0;
- for (int index = 0; index < files.Length; ++index)
- {
- if (Path.GetExtension(files[index]) == ".anm")
- {
- existEdit = true;
- break;
- }
- }
- }))(Path.GetFullPath(".\\") + "Mod\\MultipleMaidsPose", new List<string>());
- if (!existEdit)
- {
- poseIniStr = "";
- List<string> stringList2 = new List<string>(50 + poseGroupArray2.Length);
- stringList2.AddRange((IEnumerable<string>) poseGroupArray2);
- stringList2.AddRange((IEnumerable<string>) poseGroupArrayVP);
- stringList2.AddRange((IEnumerable<string>) poseGroupArrayFB);
- stringList2.AddRange((IEnumerable<string>) poseGroupArray3);
- stringList2.Add(poseArray5[0]);
- stringList2.Add(poseArray6[0]);
- stringList2.Add(strList2[0]);
- stringList2.Add(strListE2[0]);
- existPose = false;
- poseGroupArray = stringList2.ToArray();
- groupList = new ArrayList();
- for (int index3 = 0; index3 < poseArray.Length; ++index3)
- {
- for (int index5 = 0; index5 < poseGroupArray.Length; ++index5)
- {
- if (poseGroupArray[index5] == poseArray[index3])
- {
- groupList.Add((object) index3);
- if (poseGroupArray[index5] == strList2[0])
- sPoseCount = index3;
- }
- }
- }
- poseIndex[selectMaidIndex] = 0;
- poseGroupComboList = new GUIContent[poseGroupArray.Length + 1];
- poseGroupComboList[0] = new GUIContent("1:通常");
- for (int index3 = 0; index3 < poseGroupArray.Length; ++index3)
- {
- if (poseGroupArray[index3] == "maid_dressroom01")
- poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":立ち");
- if (poseGroupArray[index3] == "tennis_kamae_f")
- poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":中腰");
- if (poseGroupArray[index3] == "senakanagasi_f")
- poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":膝をつく");
- if (poseGroupArray[index3] == "work_hansei")
- poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":座り");
- if (poseGroupArray[index3] == "inu_taiki_f")
- poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":四つん這い");
- if (poseGroupArray[index3] == "syagami_pose_f")
- poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":床座り");
- if (poseGroupArray[index3] == "densyasuwari_taiki_f")
- poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":椅子座り");
- if (poseGroupArray[index3] == "work_kaiwa")
- poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":ソファー座り");
- if (poseGroupArray[index3] == "dance_cm3d2_001_f1,14.14")
- poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":ドキドキ☆Fallin' Love");
- if (poseGroupArray[index3] == "dance_cm3d_001_f1,39.25")
- poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":entrance to you");
- if (poseGroupArray[index3] == "dance_cm3d_002_end_f1,50.71")
- poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":scarlet leap");
- if (poseGroupArray[index3] == "dance_cm3d2_002_smt_f,7.76,")
- poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":stellar my tears");
- if (poseGroupArray[index3] == "dance_cm3d_003_sp2_f1,90.15")
- poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":rhythmix to you");
- if (poseGroupArray[index3] == "dance_cm3d2_003_hs_f1,0.01,")
- poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":happy!happy!スキャンダル!!");
- if (poseGroupArray[index3] == "dance_cm3d_004_kano_f1,124.93")
- poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":Can Know Two Close");
- if (poseGroupArray[index3] == "dance_cm3d2_004_sse_f1,0.01")
- poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":sweet sweet everyday");
- if (poseGroupArray[index3] == "turusi_sex_in_taiki_f")
- poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":拘束");
- if (poseGroupArray[index3] == "rosyutu_pose01_f")
- poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":エロ");
- if (poseGroupArray[index3] == "rosyutu_aruki_f_once_,1.37")
- poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":歩き");
- if (poseGroupArray[index3] == "stand_desk1")
- poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":その他");
- if (poseGroupArray[index3] == poseArray5[0])
- poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":ダンスMC");
- if (poseGroupArray[index3] == poseArray6[0])
- poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":ダンス");
- if (index3 == poseGroupArray.Length - 2)
- poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":通常2");
- if (index3 == poseGroupArray.Length - 1)
- poseGroupComboList[index3 + 1] = new GUIContent((index3 + 2).ToString() + ":エロ2");
- }
- }
- else
- {
- poseGroupCombo.selectedItemIndex = index2;
- poseGroupIndex = index2;
- poseCombo.selectedItemIndex = 0;
- poseIndex[selectMaidIndex] = (int) groupList[groupList.Count - 1];
- if (poseArray.Length <= poseIndex[selectMaidIndex])
- --poseIndex[selectMaidIndex];
- }
- }
- GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton;
- }
- else
- {
- if (!isLook[selectMaidIndex])
- GUI.enabled = false;
- GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(175), (float) this.GetPix(100), (float) this.GetPix(25)),
- "顔の向きX",
- style2);
- lookX[selectMaidIndex] =
- GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(191),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- lookX[selectMaidIndex],
- -0.6f,
- 0.6f);
- GUI.Label(new Rect((float) this.GetPix(88),
- (float) this.GetPix(175),
- (float) this.GetPix(100),
- (float) this.GetPix(25)),
- "顔の向きY",
- style2);
- lookY[selectMaidIndex] =
- GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
- (float) this.GetPix(191),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- lookY[selectMaidIndex],
- 0.5f,
- -0.55f);
- GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton;
- }
- int index6 = poseGroupIndex <= 0
- ? poseIndex[selectMaidIndex]
- : poseIndex[selectMaidIndex] - (int) groupList[poseGroupIndex - 1];
- string[] strArray1;
- if (GUI.Button(new Rect((float) this.GetPix(5), (float) this.GetPix(215), (float) this.GetPix(23), (float) this.GetPix(23)),
- "<",
- style3))
- {
- --itemIndex[selectMaidIndex];
- if (itemIndex[selectMaidIndex] <= -1)
- itemIndex[selectMaidIndex] = itemArray.Length - 2;
- strArray1 = new string[2];
- string[] strArray2 = itemArray[itemIndex[selectMaidIndex]].Split(',');
- if (itemIndex[selectMaidIndex] > 13)
- strArray2 = itemArray[itemIndex[selectMaidIndex] + 1].Split(',');
- maid.DelProp(MPN.handitem, true);
- maid.DelProp(MPN.accvag, true);
- maid.DelProp(MPN.accanl, true);
- bool flag = false;
- if (itemIndex[selectMaidIndex] == 12 || itemIndex[selectMaidIndex] == 13 || itemIndex[selectMaidIndex] == 23)
- flag = true;
- if (!flag)
- {
- maid.DelProp(MPN.kousoku_upper, true);
- maid.DelProp(MPN.kousoku_lower, true);
- }
- if (strArray2[0] != "")
- maid.SetProp(strArray2[0], strArray2[1], 0, true, false);
- if (itemIndex[selectMaidIndex] == 12)
- {
- string[] strArray3 = itemArray[itemIndex[selectMaidIndex] - 1].Split(',');
- maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
- }
- if (itemIndex[selectMaidIndex] == 13)
- {
- string[] strArray3 = itemArray[itemIndex[selectMaidIndex] + 1].Split(',');
- maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
- }
- if (itemIndex[selectMaidIndex] == 23)
- {
- string[] strArray3 = itemArray[itemIndex[selectMaidIndex]].Split(',');
- maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
- cafeFlg[selectMaidIndex] = true;
- }
- maid.AllProcPropSeqStart();
- itemCombo.selectedItemIndex = itemIndex[selectMaidIndex];
- }
- if (GUI.Button(new Rect((float) this.GetPix(135),
- (float) this.GetPix(215),
- (float) this.GetPix(23),
- (float) this.GetPix(23)),
- ">",
- style3))
- {
- ++itemIndex[selectMaidIndex];
- if (itemIndex[selectMaidIndex] >= itemArray.Length - 1)
- itemIndex[selectMaidIndex] = 0;
- strArray1 = new string[2];
- string[] strArray2 = itemArray[itemIndex[selectMaidIndex]].Split(',');
- if (itemIndex[selectMaidIndex] > 13)
- strArray2 = itemArray[itemIndex[selectMaidIndex] + 1].Split(',');
- maid.DelProp(MPN.handitem, true);
- maid.DelProp(MPN.accvag, true);
- maid.DelProp(MPN.accanl, true);
- bool flag = false;
- if (itemIndex[selectMaidIndex] == 12 || itemIndex[selectMaidIndex] == 13)
- flag = true;
- if (!flag)
- {
- maid.DelProp(MPN.kousoku_upper, true);
- maid.DelProp(MPN.kousoku_lower, true);
- }
- if (strArray2[0] != "")
- maid.SetProp(strArray2[0], strArray2[1], 0, true, false);
- if (itemIndex[selectMaidIndex] == 12)
- {
- string[] strArray3 = itemArray[itemIndex[selectMaidIndex] - 1].Split(',');
- maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
- }
- if (itemIndex[selectMaidIndex] == 13)
- {
- string[] strArray3 = itemArray[itemIndex[selectMaidIndex] + 1].Split(',');
- maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
- }
- if (itemIndex[selectMaidIndex] == 23)
- {
- string[] strArray3 = itemArray[itemIndex[selectMaidIndex]].Split(',');
- maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
- cafeFlg[selectMaidIndex] = true;
- }
- maid.AllProcPropSeqStart();
- itemCombo.selectedItemIndex = itemIndex[selectMaidIndex];
- }
- if (itemCombo.isClickedComboButton)
- GUI.enabled = false;
- isWear = GUI.Toggle(new Rect((float) this.GetPix(5),
- (float) this.GetPix(248),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- isWear,
- "トップス",
- style4);
- isSkirt = GUI.Toggle(new Rect((float) this.GetPix(90),
- (float) this.GetPix(248),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- isSkirt,
- "ボトムス",
- style4);
- isBra = GUI.Toggle(new Rect((float) this.GetPix(5),
- (float) this.GetPix(273),
- (float) this.GetPix(80),
- (float) this.GetPix(20)),
- isBra,
- "ブラジャー",
- style4);
- isPanz = GUI.Toggle(new Rect((float) this.GetPix(90),
- (float) this.GetPix(273),
- (float) this.GetPix(60),
- (float) this.GetPix(20)),
- isPanz,
- "パンツ",
- style4);
- isHeadset = GUI.Toggle(new Rect((float) this.GetPix(5),
- (float) this.GetPix(298),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- isHeadset,
- "ヘッド",
- style4);
- isMegane = GUI.Toggle(new Rect((float) this.GetPix(95),
- (float) this.GetPix(298),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- isMegane,
- "メガネ",
- style4);
- isAccUde = GUI.Toggle(new Rect((float) this.GetPix(5),
- (float) this.GetPix(323),
- (float) this.GetPix(40),
- (float) this.GetPix(20)),
- isAccUde,
- "腕",
- style4);
- isGlove = GUI.Toggle(new Rect((float) this.GetPix(50),
- (float) this.GetPix(323),
- (float) this.GetPix(40),
- (float) this.GetPix(20)),
- isGlove,
- "手袋",
- style4);
- isAccSenaka = GUI.Toggle(new Rect((float) this.GetPix(95),
- (float) this.GetPix(323),
- (float) this.GetPix(40),
- (float) this.GetPix(20)),
- isAccSenaka,
- "背中",
- style4);
- isStkg = GUI.Toggle(new Rect((float) this.GetPix(5),
- (float) this.GetPix(348),
- (float) this.GetPix(40),
- (float) this.GetPix(20)),
- isStkg,
- "靴下",
- style4);
- isShoes = GUI.Toggle(new Rect((float) this.GetPix(50),
- (float) this.GetPix(348),
- (float) this.GetPix(40),
- (float) this.GetPix(20)),
- isShoes,
- "靴",
- style4);
- isMaid = GUI.Toggle(new Rect((float) this.GetPix(95),
- (float) this.GetPix(348),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- isMaid,
- "メイド",
- style4);
- mekure1[selectMaidIndex] =
- GUI.Toggle(new Rect((float) this.GetPix(5),
- (float) this.GetPix(373),
- (float) this.GetPix(62),
- (float) this.GetPix(20)),
- mekure1[selectMaidIndex],
- "めくれ前",
- style4);
- mekure2[selectMaidIndex] =
- GUI.Toggle(new Rect((float) this.GetPix(67),
- (float) this.GetPix(373),
- (float) this.GetPix(40),
- (float) this.GetPix(20)),
- mekure2[selectMaidIndex],
- "後ろ",
- style4);
- zurasi[selectMaidIndex] =
- GUI.Toggle(new Rect((float) this.GetPix(105),
- (float) this.GetPix(373),
- (float) this.GetPix(50),
- (float) this.GetPix(20)),
- zurasi[selectMaidIndex],
- "ずらし",
- style4);
- voice1[selectMaidIndex] =
- GUI.Toggle(new Rect((float) this.GetPix(5),
- (float) this.GetPix(530),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- zFlg[selectMaidIndex],
- "ボイス",
- style4);
- voice2[selectMaidIndex] =
- GUI.Toggle(new Rect((float) this.GetPix(70),
- (float) this.GetPix(530),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- xFlg[selectMaidIndex],
- "Hボイス",
- style4);
- GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton && !itemCombo.isClickedComboButton;
- GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(402), (float) this.GetPix(160), 2f), (Texture) line1);
- GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(402), (float) this.GetPix(160), 1f), (Texture) line2);
- isIK[selectMaidIndex] =
- GUI.Toggle(new Rect((float) this.GetPix(5),
- (float) this.GetPix(411),
- (float) this.GetPix(30),
- (float) this.GetPix(20)),
- isIK[selectMaidIndex],
- "IK",
- style4);
- if (!isLock[selectMaidIndex])
- GUI.enabled = false;
- isLock[selectMaidIndex] =
- GUI.Toggle(new Rect((float) this.GetPix(45),
- (float) this.GetPix(411),
- (float) this.GetPix(40),
- (float) this.GetPix(20)),
- isLock[selectMaidIndex],
- "解除",
- style4);
- GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton && !itemCombo.isClickedComboButton;
- if (!isIK[selectMaidIndex])
- GUI.enabled = false;
- isBone[selectMaidIndex] =
- GUI.Toggle(new Rect((float) this.GetPix(100),
- (float) this.GetPix(411),
- (float) this.GetPix(60),
- (float) this.GetPix(20)),
- isBone[selectMaidIndex],
- "ボーン",
- style4);
- GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton;
- if (isBone[selectMaidIndex] != isBoneN[selectMaidIndex])
- {
- isBoneN[selectMaidIndex] = isBone[selectMaidIndex];
- isChange[selectMaidIndex] = true;
- }
- if (!isLock[selectMaidIndex] && unLockFlg != isLock[selectMaidIndex])
- {
- string[] strArray2 = poseArray[poseIndex[selectMaidIndex]].Split(',');
- isStop[selectMaidIndex] = false;
- poseCount[selectMaidIndex] = 20;
- if (strArray2[0].Contains("_momi") || strArray2[0].Contains("paizuri_"))
- {
- maid.body0.MuneYureL(0.0f);
- maid.body0.MuneYureR(0.0f);
- }
- else
- {
- maid.body0.MuneYureL(1f);
- maid.body0.MuneYureR(1f);
- }
- if (strArray2[0].Contains("MultipleMaidsPose"))
- {
- string path = strArray2[0].Split('/')[1];
- byte[] numArray = new byte[0];
- try
- {
- using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
- {
- numArray = new byte[fileStream.Length];
- fileStream.Read(numArray, 0, numArray.Length);
- }
- }
- catch { }
- if (0 < numArray.Length)
- {
- long hashCode = (long) Path.GetFileName(path).GetHashCode();
- maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
- Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
- {
- Maid.AutoTwist.ShoulderL, Maid.AutoTwist.ShoulderR, Maid.AutoTwist.WristL, Maid.AutoTwist.WristR,
- Maid.AutoTwist.ThighL, Maid.AutoTwist.ThighR
- };
- foreach (Maid.AutoTwist f_eType in autoTwistArray)
- maid.SetAutoTwist(f_eType, true);
- }
- }
- else if (strArray2[0].StartsWith("p") && int.TryParse(strArray2[0].Substring(1), out result))
- loadPose[selectMaidIndex] = strArray2[0];
- else if (!strArray2[0].StartsWith("dance_"))
- {
- maidArray[selectMaidIndex].CrossFade(strArray2[0] + ".anm", false, true, false, 0.0f, 1f);
- }
- else
- {
- if (!(bool) ((Object) maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm")))
- maid.body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
- maid.body0.m_Bones.GetComponent<Animation>().Play(strArray2[0] + ".anm");
- }
- if (strArray2.Length > 1)
- {
- maid.body0.m_Bones.GetComponent<Animation>()[strArray2[0] + ".anm"].time = float.Parse(strArray2[1]);
- isDanceStop = true;
- if (strArray2.Length > 2)
- {
- transform = CMT.SearchObjName(maidArray[selectMaidIndex].body0.m_Bones.transform, "Bip01", true);
- isPoseIti[selectMaidIndex] = true;
- poseIti[selectMaidIndex] = maidArray[selectMaidIndex].transform.position;
- maidArray[selectMaidIndex].transform.position = new Vector3(100f, 100f, 100f);
- }
- }
- mHandL[selectMaidIndex].initFlg = false;
- mHandR[selectMaidIndex].initFlg = false;
- mFootL[selectMaidIndex].initFlg = false;
- mFootR[selectMaidIndex].initFlg = false;
- pHandL[selectMaidIndex] = 0;
- pHandR[selectMaidIndex] = 0;
- hanten[selectMaidIndex] = false;
- hantenn[selectMaidIndex] = false;
- muneIKL[selectMaidIndex] = false;
- muneIKR[selectMaidIndex] = false;
- if (!GameMain.Instance.VRMode)
- {
- maidArray[selectMaidIndex].body0.quaDefEyeL.eulerAngles = eyeL[(int) selectList[selectMaidIndex]];
- maidArray[selectMaidIndex].body0.quaDefEyeR.eulerAngles = eyeR[(int) selectList[selectMaidIndex]];
- }
- }
- unLockFlg = isLock[selectMaidIndex];
- GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton && !itemCombo.isClickedComboButton;
- if (!isIK[selectMaidIndex])
- GUI.enabled = false;
- hanten[selectMaidIndex] =
- GUI.Toggle(new Rect((float) this.GetPix(5),
- (float) this.GetPix(479),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- hanten[selectMaidIndex],
- "左右反転",
- style4);
- bool flag1 = GUI.Toggle(new Rect((float) this.GetPix(80),
- (float) this.GetPix(479),
- (float) this.GetPix(100),
- (float) this.GetPix(20)),
- kotei[selectMaidIndex],
- "スカート固定",
- style4);
- if (kotei[selectMaidIndex] != flag1)
- {
- kotei[selectMaidIndex] = flag1;
- if (flag1)
- {
- SkirtListArray[selectMaidIndex] = new DynamicSkirtBone[100];
- for (int index2 = 0; index2 < maid.body0.goSlot.Count; ++index2)
- {
- DynamicSkirtBone fieldValue =
- GetFieldValue<BoneHair3, DynamicSkirtBone>(maid.body0.goSlot[index2].bonehair3, "m_SkirtBone");
- SkirtListArray[selectMaidIndex][index2] = fieldValue;
- SetFieldValue8<BoneHair3, DynamicSkirtBone>(maid.body0.goSlot[index2].bonehair3,
- "m_SkirtBone",
- (DynamicSkirtBone) null);
- }
- }
- else
- {
- for (int index2 = 0; index2 < maid.body0.goSlot.Count; ++index2)
- SetFieldValue8<BoneHair3, DynamicSkirtBone>(maid.body0.goSlot[index2].bonehair3,
- "m_SkirtBone",
- SkirtListArray[selectMaidIndex][index2]);
- }
- }
- GUI.Label(new Rect((float) this.GetPix(29), (float) this.GetPix(433), (float) this.GetPix(100), (float) this.GetPix(25)),
- "右手",
- style1);
- GUI.Label(new Rect((float) this.GetPix(109), (float) this.GetPix(433), (float) this.GetPix(100), (float) this.GetPix(25)),
- "左手",
- style1);
- string text = "未選択";
- if (copyIndex > 0)
- text = copyIndex.ToString() + ":" + maidArray[copyIndex - 1].status.firstName;
- if (maidCnt <= 1)
- GUI.enabled = false;
- GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(505), (float) this.GetPix(100), (float) this.GetPix(25)),
- "コピー",
- style1);
- GUI.Label(new Rect((float) this.GetPix(70), (float) this.GetPix(505), (float) this.GetPix(100), (float) this.GetPix(25)),
- text,
- style1);
- GUI.enabled = !poseCombo.isClickedComboButton && !poseGroupCombo.isClickedComboButton && !itemCombo.isClickedComboButton
- && isIK[selectMaidIndex];
- style1.fontSize = this.GetPix(13);
- style1.alignment = TextAnchor.UpperCenter;
- GUI.Label(new Rect((float) this.GetPix(-10), (float) this.GetPix(449), (float) this.GetPix(100), (float) this.GetPix(25)),
- pHandR[selectMaidIndex].ToString(),
- style1);
- GUI.Label(new Rect((float) this.GetPix(70), (float) this.GetPix(449), (float) this.GetPix(100), (float) this.GetPix(25)),
- pHandL[selectMaidIndex].ToString(),
- style1);
- style1.fontSize = this.GetPix(11);
- style1.alignment = TextAnchor.UpperLeft;
- if (GUI.Button(new Rect((float) this.GetPix(5), (float) this.GetPix(448), (float) this.GetPix(23), (float) this.GetPix(23)),
- "<",
- style3))
- {
- --pHandR[selectMaidIndex];
- if (pHandR[selectMaidIndex] < 1)
- pHandR[selectMaidIndex] = fingerRArray.GetLength(0);
- for (int index2 = 0; index2 < 20; ++index2)
- {
- string[] strArray2 = fingerRArray[pHandR[selectMaidIndex] - 1, index2].Split(',');
- Finger[selectMaidIndex, index2 + 20].localEulerAngles =
- new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
- }
- isStop[selectMaidIndex] = true;
- isLock[selectMaidIndex] = true;
- for (int index2 = 0; index2 < 10; ++index2)
- {
- if ((index2 == 0 || index2 == 5) && (bool) ((Object) mFinger[selectMaidIndex, index2 * 3]))
- mFinger[selectMaidIndex, index2 * 3].reset = true;
- }
- }
- if (GUI.Button(new Rect((float) this.GetPix(55),
- (float) this.GetPix(448),
- (float) this.GetPix(23),
- (float) this.GetPix(23)),
- ">",
- style3))
- {
- ++pHandR[selectMaidIndex];
- if (pHandR[selectMaidIndex] > fingerRArray.GetLength(0))
- pHandR[selectMaidIndex] = 1;
- for (int index2 = 0; index2 < 20; ++index2)
- {
- string[] strArray2 = fingerRArray[pHandR[selectMaidIndex] - 1, index2].Split(',');
- Finger[selectMaidIndex, index2 + 20].localEulerAngles =
- new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
- }
- isStop[selectMaidIndex] = true;
- isLock[selectMaidIndex] = true;
- for (int index2 = 0; index2 < 10; ++index2)
- {
- if ((index2 == 0 || index2 == 5) && (bool) ((Object) mFinger[selectMaidIndex, index2 * 3]))
- mFinger[selectMaidIndex, index2 * 3].reset = true;
- }
- }
- if (GUI.Button(new Rect((float) this.GetPix(85),
- (float) this.GetPix(448),
- (float) this.GetPix(23),
- (float) this.GetPix(23)),
- "<",
- style3))
- {
- --pHandL[selectMaidIndex];
- if (pHandL[selectMaidIndex] < 1)
- pHandL[selectMaidIndex] = fingerLArray.GetLength(0);
- for (int index2 = 0; index2 < 20; ++index2)
- {
- string[] strArray2 = fingerLArray[pHandL[selectMaidIndex] - 1, index2].Split(',');
- Finger[selectMaidIndex, index2].localEulerAngles =
- new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
- }
- isStop[selectMaidIndex] = true;
- isLock[selectMaidIndex] = true;
- }
- if (GUI.Button(new Rect((float) this.GetPix(135),
- (float) this.GetPix(448),
- (float) this.GetPix(23),
- (float) this.GetPix(23)),
- ">",
- style3))
- {
- ++pHandL[selectMaidIndex];
- if (pHandL[selectMaidIndex] > fingerRArray.GetLength(0))
- pHandL[selectMaidIndex] = 1;
- for (int index2 = 0; index2 < 20; ++index2)
- {
- string[] strArray2 = fingerLArray[pHandL[selectMaidIndex] - 1, index2].Split(',');
- Finger[selectMaidIndex, index2].localEulerAngles =
- new Vector3(float.Parse(strArray2[0]), float.Parse(strArray2[1]), float.Parse(strArray2[2]));
- }
- isStop[selectMaidIndex] = true;
- isLock[selectMaidIndex] = true;
- }
- if (maidCnt <= 1)
- GUI.enabled = false;
- if (GUI.Button(new Rect((float) this.GetPix(45),
- (float) this.GetPix(504),
- (float) this.GetPix(22),
- (float) this.GetPix(20)),
- ">",
- style3))
- {
- ++copyIndex;
- if (copyIndex - 1 == selectMaidIndex)
- ++copyIndex;
- if (copyIndex > maidCnt)
- copyIndex = 0;
- }
- if (isCopy)
- {
- isCopy = false;
- this.CopyIK2(maidArray[selectMaidIndex], selectMaidIndex, maidArray[copyIndex - 1], copyIndex - 1);
- }
- if (copyIndex == 0)
- GUI.enabled = false;
- if (GUI.Button(new Rect((float) this.GetPix(123),
- (float) this.GetPix(504),
- (float) this.GetPix(35),
- (float) this.GetPix(20)),
- "決定",
- style3))
- {
- this.CopyIK(maidArray[selectMaidIndex], selectMaidIndex, maidArray[copyIndex - 1], copyIndex - 1);
- isCopy = true;
- pHandL[selectMaidIndex] = pHandL[copyIndex - 1];
- pHandR[selectMaidIndex] = pHandR[copyIndex - 1];
- hanten[selectMaidIndex] = hanten[copyIndex - 1];
- hantenn[selectMaidIndex] = hantenn[copyIndex - 1];
- }
- GUI.enabled = true;
- if (poseCombo.isClickedComboButton || poseGroupCombo.isClickedComboButton)
- GUI.enabled = false;
- itemIndex2[selectMaidIndex] =
- itemCombo.List(new Rect((float) this.GetPix(35),
- (float) this.GetPix(215),
- (float) this.GetPix(95),
- (float) this.GetPix(23)),
- itemComboList[itemIndex[selectMaidIndex]].text,
- itemComboList,
- buttonStyle1,
- (GUIStyle) "box",
- listStyle3);
- GUI.enabled = true;
- if (poseGroupCombo.isClickedComboButton || isLock[selectMaidIndex])
- GUI.enabled = false;
- poseCombo.List(new Rect((float) this.GetPix(35),
- (float) this.GetPix(125),
- (float) this.GetPix(95),
- (float) this.GetPix(23)),
- poseComboList[index6].text,
- poseComboList,
- buttonStyle1,
- (GUIStyle) "box",
- listStyle2);
- if (!isLock[selectMaidIndex])
- GUI.enabled = true;
- int index7 = -1;
- for (int index2 = 0; index2 < groupList.Count; ++index2)
- {
- if (poseIndex[selectMaidIndex] < (int) groupList[index2])
- {
- index7 = index2;
- break;
- }
- }
- if (index7 < 0)
- index7 = groupList.Count;
- if (GUI.Button(new Rect((float) this.GetPix(5), (float) this.GetPix(95), (float) this.GetPix(23), (float) this.GetPix(23)),
- "<",
- style3))
- {
- isPoseInit = true;
- if (!isLock[selectMaidIndex])
- {
- for (int index2 = 0; index2 < groupList.Count; ++index2)
- {
- if (index2 == 0 && poseIndex[selectMaidIndex] <= (int) groupList[index2])
- {
- poseIndex[selectMaidIndex] = poseIndex[selectMaidIndex] != 0 ? 0 : (int) groupList[groupList.Count - 1];
- break;
- }
- if (index2 > 0 && poseIndex[selectMaidIndex] > (int) groupList[index2 - 1]
- && poseIndex[selectMaidIndex] <= (int) groupList[index2])
- {
- poseIndex[selectMaidIndex] = (int) groupList[index2 - 1];
- break;
- }
- }
- if (poseIndex[selectMaidIndex] > (int) groupList[groupList.Count - 1])
- poseIndex[selectMaidIndex] = (int) groupList[groupList.Count - 1];
- if ((bool) ((Object) maid) && maid.Visible)
- {
- string[] strArray2 = poseArray[poseIndex[selectMaidIndex]].Split(',');
- isStop[selectMaidIndex] = false;
- poseCount[selectMaidIndex] = 20;
- if (strArray2[0].Contains("_momi") || strArray2[0].Contains("paizuri_"))
- {
- maid.body0.MuneYureL(0.0f);
- maid.body0.MuneYureR(0.0f);
- }
- else
- {
- maid.body0.MuneYureL(1f);
- maid.body0.MuneYureR(1f);
- }
- if (strArray2[0].Contains("MultipleMaidsPose"))
- {
- string path = strArray2[0].Split('/')[1];
- byte[] numArray = new byte[0];
- try
- {
- using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
- {
- numArray = new byte[fileStream.Length];
- fileStream.Read(numArray, 0, numArray.Length);
- }
- }
- catch { }
- if (0 < numArray.Length)
- {
- long hashCode = (long) Path.GetFileName(path).GetHashCode();
- maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
- Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
- {
- Maid.AutoTwist.ShoulderL, Maid.AutoTwist.ShoulderR, Maid.AutoTwist.WristL,
- Maid.AutoTwist.WristR, Maid.AutoTwist.ThighL, Maid.AutoTwist.ThighR
- };
- foreach (Maid.AutoTwist f_eType in autoTwistArray)
- maid.SetAutoTwist(f_eType, true);
- }
- }
- else if (strArray2[0].StartsWith("p") && int.TryParse(strArray2[0].Substring(1), out result))
- loadPose[selectMaidIndex] = strArray2[0];
- else if (!strArray2[0].StartsWith("dance_"))
- {
- maidArray[selectMaidIndex].CrossFade(strArray2[0] + ".anm", false, true, false, 0.0f, 1f);
- }
- else
- {
- if (!(bool) ((Object) maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm")))
- maid.body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
- maid.body0.m_Bones.GetComponent<Animation>().Play(strArray2[0] + ".anm");
- }
- if (strArray2.Length > 1)
- {
- maid.body0.m_Bones.GetComponent<Animation>()[strArray2[0] + ".anm"].time = float.Parse(strArray2[1]);
- isDanceStop = true;
- if (strArray2.Length > 2)
- {
- transform = CMT.SearchObjName(maidArray[selectMaidIndex].body0.m_Bones.transform, "Bip01", true);
- isPoseIti[selectMaidIndex] = true;
- poseIti[selectMaidIndex] = maidArray[selectMaidIndex].transform.position;
- maidArray[selectMaidIndex].transform.position = new Vector3(100f, 100f, 100f);
- }
- }
- }
- }
- int index3 = -1;
- for (int index2 = 0; index2 < groupList.Count; ++index2)
- {
- if (poseIndex[selectMaidIndex] < (int) groupList[index2])
- {
- index3 = index2;
- break;
- }
- }
- int length2 = (int) groupList[0];
- int num2 = 0;
- if (index3 > 0)
- {
- length2 = (int) groupList[index3] - (int) groupList[index3 - 1];
- num2 = (int) groupList[index3 - 1];
- }
- if (index3 < 0)
- {
- index3 = groupList.Count;
- length2 = poseArray.Length - (int) groupList[index3 - 1];
- num2 = (int) groupList[index3 - 1];
- }
- poseComboList = new GUIContent[length2];
- int index4 = 0;
- for (int index2 = num2; index2 < num2 + length2; ++index2)
- {
- bool flag2 = false;
- foreach (IniKey key in this.Preferences["pose"].Keys)
- {
- if (poseArray[index2] == key.Key)
- {
- IniKey iniKey = this.Preferences["pose"][key.Key];
- if (iniKey.Value != null && iniKey.Value.ToString() != "" && iniKey.Value.ToString() != "del")
- {
- poseComboList[index4] =
- new GUIContent((index4 + 1).ToString() + ":" + iniKey.Value.Split('_')[0]
- + " " + key.Key);
- flag2 = true;
- }
- }
- }
- if (!flag2)
- poseComboList[index4] = new GUIContent((index4 + 1).ToString() + ":" + poseArray[index2]);
- ++index4;
- }
- poseCombo.scrollPos = new Vector2(0.0f, 0.0f);
- poseGroupCombo.selectedItemIndex = index3;
- poseCombo.selectedItemIndex = 0;
- }
- if (GUI.Button(new Rect((float) this.GetPix(135),
- (float) this.GetPix(95),
- (float) this.GetPix(23),
- (float) this.GetPix(23)),
- ">",
- style3))
- {
- isPoseInit = true;
- if (!isLock[selectMaidIndex])
- {
- int num2 = poseIndex[selectMaidIndex];
- for (int index2 = 0; index2 < groupList.Count; ++index2)
- {
- if (poseIndex[selectMaidIndex] < (int) groupList[index2])
- {
- poseIndex[selectMaidIndex] = (int) groupList[index2];
- break;
- }
- }
- if (num2 == poseIndex[selectMaidIndex] && poseIndex[selectMaidIndex] >= (int) groupList[groupList.Count - 1])
- poseIndex[selectMaidIndex] = 0;
- if ((bool) ((Object) maid) && maid.Visible)
- {
- string[] strArray2 = poseArray[poseIndex[selectMaidIndex]].Split(',');
- isStop[selectMaidIndex] = false;
- poseCount[selectMaidIndex] = 20;
- if (strArray2[0].Contains("_momi") || strArray2[0].Contains("paizuri_"))
- {
- maid.body0.MuneYureL(0.0f);
- maid.body0.MuneYureR(0.0f);
- }
- else
- {
- maid.body0.MuneYureL(1f);
- maid.body0.MuneYureR(1f);
- }
- if (strArray2[0].Contains("MultipleMaidsPose"))
- {
- string path = strArray2[0].Split('/')[1];
- byte[] numArray = new byte[0];
- try
- {
- using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
- {
- numArray = new byte[fileStream.Length];
- fileStream.Read(numArray, 0, numArray.Length);
- }
- }
- catch { }
- if (0 < numArray.Length)
- {
- long hashCode = (long) Path.GetFileName(path).GetHashCode();
- maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
- Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
- {
- Maid.AutoTwist.ShoulderL, Maid.AutoTwist.ShoulderR, Maid.AutoTwist.WristL,
- Maid.AutoTwist.WristR, Maid.AutoTwist.ThighL, Maid.AutoTwist.ThighR
- };
- foreach (Maid.AutoTwist f_eType in autoTwistArray)
- maid.SetAutoTwist(f_eType, true);
- }
- }
- else if (strArray2[0].StartsWith("p") && int.TryParse(strArray2[0].Substring(1), out result))
- loadPose[selectMaidIndex] = strArray2[0];
- else if (!strArray2[0].StartsWith("dance_"))
- {
- maidArray[selectMaidIndex].CrossFade(strArray2[0] + ".anm", false, true, false, 0.0f, 1f);
- }
- else
- {
- if (!(bool) ((Object) maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm")))
- maid.body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
- maid.body0.m_Bones.GetComponent<Animation>().Play(strArray2[0] + ".anm");
- }
- if (strArray2.Length > 1)
- {
- maid.body0.m_Bones.GetComponent<Animation>()[strArray2[0] + ".anm"].time = float.Parse(strArray2[1]);
- isDanceStop = true;
- if (strArray2.Length > 2)
- {
- transform = CMT.SearchObjName(maidArray[selectMaidIndex].body0.m_Bones.transform, "Bip01", true);
- isPoseIti[selectMaidIndex] = true;
- poseIti[selectMaidIndex] = maidArray[selectMaidIndex].transform.position;
- maidArray[selectMaidIndex].transform.position = new Vector3(100f, 100f, 100f);
- }
- }
- }
- }
- int index3 = -1;
- for (int index2 = 0; index2 < groupList.Count; ++index2)
- {
- if (poseIndex[selectMaidIndex] < (int) groupList[index2])
- {
- index3 = index2;
- break;
- }
- }
- int length2 = (int) groupList[0];
- int num3 = 0;
- if (index3 > 0)
- {
- length2 = (int) groupList[index3] - (int) groupList[index3 - 1];
- num3 = (int) groupList[index3 - 1];
- }
- if (index3 < 0)
- {
- index3 = groupList.Count;
- length2 = poseArray.Length - (int) groupList[index3 - 1];
- num3 = (int) groupList[index3 - 1];
- }
- poseComboList = new GUIContent[length2];
- int index4 = 0;
- for (int index2 = num3; index2 < num3 + length2; ++index2)
- {
- bool flag2 = false;
- foreach (IniKey key in this.Preferences["pose"].Keys)
- {
- if (poseArray[index2] == key.Key)
- {
- IniKey iniKey = this.Preferences["pose"][key.Key];
- if (iniKey.Value != null && iniKey.Value.ToString() != "" && iniKey.Value.ToString() != "del")
- {
- poseComboList[index4] =
- new GUIContent((index4 + 1).ToString() + ":" + iniKey.Value.Split('_')[0]
- + " " + key.Key);
- flag2 = true;
- }
- }
- }
- if (!flag2)
- poseComboList[index4] = new GUIContent((index4 + 1).ToString() + ":" + poseArray[index2]);
- ++index4;
- }
- poseCombo.scrollPos = new Vector2(0.0f, 0.0f);
- poseGroupCombo.selectedItemIndex = index3;
- poseCombo.selectedItemIndex = 0;
- }
- poseGroupIndex =
- poseGroupCombo.List(new Rect((float) this.GetPix(35),
- (float) this.GetPix(95),
- (float) this.GetPix(95),
- (float) this.GetPix(23)),
- poseGroupComboList[index7].text,
- poseGroupComboList,
- buttonStyle2,
- (GUIStyle) "box",
- listStyle4);
- if (poseGroupCombo.isClickedComboButton)
- isCombo2 = true;
- else if (isCombo2)
- {
- isCombo2 = false;
- isPoseInit = true;
- poseIndex[selectMaidIndex] = poseGroupIndex <= 0 ? 0 : (int) groupList[poseGroupIndex - 1];
- if (!isLock[selectMaidIndex] && ((bool) ((Object) maid) && maid.Visible))
- {
- string[] strArray2 = poseArray[poseIndex[selectMaidIndex]].Split(',');
- isStop[selectMaidIndex] = false;
- poseCount[selectMaidIndex] = 20;
- if (strArray2[0].Contains("_momi") || strArray2[0].Contains("paizuri_"))
- {
- maid.body0.MuneYureL(0.0f);
- maid.body0.MuneYureR(0.0f);
- }
- else
- {
- maid.body0.MuneYureL(1f);
- maid.body0.MuneYureR(1f);
- }
- if (strArray2[0].Contains("MultipleMaidsPose"))
- {
- string path = strArray2[0].Split('/')[1];
- byte[] numArray = new byte[0];
- try
- {
- using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
- {
- numArray = new byte[fileStream.Length];
- fileStream.Read(numArray, 0, numArray.Length);
- }
- }
- catch { }
- if (0 < numArray.Length)
- {
- long hashCode = (long) Path.GetFileName(path).GetHashCode();
- maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
- Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
- {
- Maid.AutoTwist.ShoulderL, Maid.AutoTwist.ShoulderR, Maid.AutoTwist.WristL, Maid.AutoTwist.WristR,
- Maid.AutoTwist.ThighL, Maid.AutoTwist.ThighR
- };
- foreach (Maid.AutoTwist f_eType in autoTwistArray)
- maid.SetAutoTwist(f_eType, true);
- }
- }
- else if (strArray2[0].StartsWith("p") && int.TryParse(strArray2[0].Substring(1), out result))
- loadPose[selectMaidIndex] = strArray2[0];
- else if (!strArray2[0].StartsWith("dance_"))
- {
- maidArray[selectMaidIndex].CrossFade(strArray2[0] + ".anm", false, true, false, 0.0f, 1f);
- }
- else
- {
- if (!(bool) ((Object) maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm")))
- maid.body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
- maid.body0.m_Bones.GetComponent<Animation>().Play(strArray2[0] + ".anm");
- }
- if (strArray2.Length > 1)
- {
- maid.body0.m_Bones.GetComponent<Animation>()[strArray2[0] + ".anm"].time = float.Parse(strArray2[1]);
- isDanceStop = true;
- if (strArray2.Length > 2)
- {
- transform = CMT.SearchObjName(maidArray[selectMaidIndex].body0.m_Bones.transform, "Bip01", true);
- isPoseIti[selectMaidIndex] = true;
- poseIti[selectMaidIndex] = maidArray[selectMaidIndex].transform.position;
- maidArray[selectMaidIndex].transform.position = new Vector3(100f, 100f, 100f);
- }
- }
- }
- int index2 = -1;
- for (int index3 = 0; index3 < groupList.Count; ++index3)
- {
- if (poseIndex[selectMaidIndex] < (int) groupList[index3])
- {
- index2 = index3;
- break;
- }
- }
- int length2 = (int) groupList[0];
- int num2 = 0;
- if (index2 > 0)
- {
- length2 = (int) groupList[index2] - (int) groupList[index2 - 1];
- num2 = (int) groupList[index2 - 1];
- }
- if (index2 < 0)
- {
- index2 = groupList.Count;
- length2 = poseArray.Length - (int) groupList[index2 - 1];
- num2 = (int) groupList[index2 - 1];
- }
- poseComboList = new GUIContent[length2];
- int index4 = 0;
- for (int index3 = num2; index3 < num2 + length2; ++index3)
- {
- bool flag2 = false;
- foreach (IniKey key in this.Preferences["pose"].Keys)
- {
- if (poseArray[index3] == key.Key)
- {
- IniKey iniKey = this.Preferences["pose"][key.Key];
- if (iniKey.Value != null && iniKey.Value.ToString() != "" && iniKey.Value.ToString() != "del")
- {
- poseComboList[index4] =
- new GUIContent((index4 + 1).ToString() + ":" + iniKey.Value.Split('_')[0]
- + " " + key.Key);
- flag2 = true;
- }
- }
- }
- if (!flag2)
- poseComboList[index4] = new GUIContent((index4 + 1).ToString() + ":" + poseArray[index3]);
- ++index4;
- }
- poseCombo.scrollPos = new Vector2(0.0f, 0.0f);
- poseGroupCombo.selectedItemIndex = index2;
- poseCombo.selectedItemIndex = 0;
- }
- if (poseCombo.isClickedComboButton)
- isCombo = true;
- else if (isCombo)
- {
- isCombo = false;
- isPoseInit = true;
- poseIndex[selectMaidIndex] = poseGroupIndex <= 0
- ? poseCombo.selectedItemIndex
- : (int) groupList[poseGroupIndex - 1] + poseCombo.selectedItemIndex;
- if (poseIndex[selectMaidIndex] == poseArray.Length)
- poseIndex[selectMaidIndex] = 0;
- if (!isLock[selectMaidIndex] && ((bool) ((Object) maid) && maid.Visible))
- {
- string[] strArray2 = poseArray[poseIndex[selectMaidIndex]].Split(',');
- isStop[selectMaidIndex] = false;
- poseCount[selectMaidIndex] = 20;
- if (strArray2[0].Contains("_momi") || strArray2[0].Contains("paizuri_"))
- {
- maid.body0.MuneYureL(0.0f);
- maid.body0.MuneYureR(0.0f);
- }
- else
- {
- maid.body0.MuneYureL(1f);
- maid.body0.MuneYureR(1f);
- }
- if (strArray2[0].Contains("MultipleMaidsPose"))
- {
- string path = strArray2[0].Split('/')[1];
- byte[] numArray = new byte[0];
- try
- {
- using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
- {
- numArray = new byte[fileStream.Length];
- fileStream.Read(numArray, 0, numArray.Length);
- }
- }
- catch { }
- if (0 < numArray.Length)
- {
- long hashCode = (long) Path.GetFileName(path).GetHashCode();
- maid.body0.CrossFade(hashCode.ToString(), numArray, false, false, false, 0.0f, 1f);
- Maid.AutoTwist[] autoTwistArray = new Maid.AutoTwist[6]
- {
- Maid.AutoTwist.ShoulderL, Maid.AutoTwist.ShoulderR, Maid.AutoTwist.WristL, Maid.AutoTwist.WristR,
- Maid.AutoTwist.ThighL, Maid.AutoTwist.ThighR
- };
- foreach (Maid.AutoTwist f_eType in autoTwistArray)
- maid.SetAutoTwist(f_eType, true);
- }
- }
- else if (strArray2[0].StartsWith("p") && int.TryParse(strArray2[0].Substring(1), out result))
- loadPose[selectMaidIndex] = strArray2[0];
- else if (!strArray2[0].StartsWith("dance_"))
- {
- maidArray[selectMaidIndex].CrossFade(strArray2[0] + ".anm", false, true, false, 0.0f, 1f);
- }
- else
- {
- if (!(bool) ((Object) maid.body0.m_Bones.GetComponent<Animation>().GetClip(strArray2[0] + ".anm")))
- maid.body0.LoadAnime(strArray2[0] + ".anm", GameUty.FileSystem, strArray2[0] + ".anm", false, false);
- maid.body0.m_Bones.GetComponent<Animation>().Play(strArray2[0] + ".anm");
- }
- if (strArray2.Length > 1)
- {
- maid.body0.m_Bones.GetComponent<Animation>()[strArray2[0] + ".anm"].time = float.Parse(strArray2[1]);
- isDanceStop = true;
- if (strArray2.Length > 2)
- {
- transform = CMT.SearchObjName(maidArray[selectMaidIndex].body0.m_Bones.transform, "Bip01", true);
- isPoseIti[selectMaidIndex] = true;
- poseIti[selectMaidIndex] = maidArray[selectMaidIndex].transform.position;
- maidArray[selectMaidIndex].transform.position = new Vector3(100f, 100f, 100f);
- }
- }
- }
- }
- if (itemCombo.isClickedComboButton)
- {
- isCombo3 = true;
- }
- else
- {
- if (!isCombo3)
- return;
- isCombo3 = false;
- strArray1 = new string[2];
- string[] strArray2 = itemArray[itemIndex2[selectMaidIndex]].Split(',');
- if (itemIndex2[selectMaidIndex] > 13)
- strArray2 = itemArray[itemIndex2[selectMaidIndex] + 1].Split(',');
- maid.DelProp(MPN.handitem, true);
- bool flag2 = false;
- if (itemIndex2[selectMaidIndex] == 0)
- {
- maid.DelProp(MPN.accvag, true);
- maid.DelProp(MPN.accanl, true);
- }
- if (itemIndex2[selectMaidIndex] == 12 || itemIndex2[selectMaidIndex] == 13)
- flag2 = true;
- if (!flag2)
- {
- maid.DelProp(MPN.kousoku_upper, true);
- maid.DelProp(MPN.kousoku_lower, true);
- }
- if (strArray2[0] != "")
- maid.SetProp(strArray2[0], strArray2[1], 0, true, false);
- if (itemIndex2[selectMaidIndex] == 12)
- {
- string[] strArray3 = itemArray[itemIndex2[selectMaidIndex] - 1].Split(',');
- maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
- }
- if (itemIndex2[selectMaidIndex] == 13)
- {
- string[] strArray3 = itemArray[itemIndex2[selectMaidIndex] + 1].Split(',');
- maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
- }
- if (itemIndex2[selectMaidIndex] == 23)
- {
- string[] strArray3 = itemArray[itemIndex2[selectMaidIndex]].Split(',');
- maid.SetProp(strArray3[0], strArray3[1], 0, true, false);
- cafeFlg[selectMaidIndex] = true;
- }
- maid.AllProcPropSeqStart();
- itemCombo.selectedItemIndex = itemIndex2[selectMaidIndex];
- itemIndex[selectMaidIndex] = itemIndex2[selectMaidIndex];
- }
- }
- else
- {
- isWear = GUI.Toggle(new Rect((float) this.GetPix(5),
- (float) this.GetPix(98),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- isWear,
- "トップス",
- style4);
- isSkirt = GUI.Toggle(new Rect((float) this.GetPix(90),
- (float) this.GetPix(98),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- isSkirt,
- "ボトムス",
- style4);
- isBra = GUI.Toggle(new Rect((float) this.GetPix(5),
- (float) this.GetPix(123),
- (float) this.GetPix(80),
- (float) this.GetPix(20)),
- isBra,
- "ブラジャー",
- style4);
- isPanz = GUI.Toggle(new Rect((float) this.GetPix(90),
- (float) this.GetPix(123),
- (float) this.GetPix(60),
- (float) this.GetPix(20)),
- isPanz,
- "パンツ",
- style4);
- isHeadset = GUI.Toggle(new Rect((float) this.GetPix(5),
- (float) this.GetPix(148),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- isHeadset,
- "ヘッド",
- style4);
- isMegane = GUI.Toggle(new Rect((float) this.GetPix(90),
- (float) this.GetPix(148),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- isMegane,
- "メガネ",
- style4);
- isAccUde = GUI.Toggle(new Rect((float) this.GetPix(5),
- (float) this.GetPix(173),
- (float) this.GetPix(40),
- (float) this.GetPix(20)),
- isAccUde,
- "腕",
- style4);
- isGlove = GUI.Toggle(new Rect((float) this.GetPix(45),
- (float) this.GetPix(173),
- (float) this.GetPix(40),
- (float) this.GetPix(20)),
- isGlove,
- "手袋",
- style4);
- isAccSenaka = GUI.Toggle(new Rect((float) this.GetPix(97),
- (float) this.GetPix(173),
- (float) this.GetPix(40),
- (float) this.GetPix(20)),
- isAccSenaka,
- "背中",
- style4);
- isStkg = GUI.Toggle(new Rect((float) this.GetPix(5),
- (float) this.GetPix(198),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- isStkg,
- "ソックス",
- style4);
- isShoes = GUI.Toggle(new Rect((float) this.GetPix(90),
- (float) this.GetPix(198),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- isShoes,
- "シューズ",
- style4);
- mekure1[selectMaidIndex] =
- GUI.Toggle(new Rect((float) this.GetPix(5),
- (float) this.GetPix(223),
- (float) this.GetPix(62),
- (float) this.GetPix(20)),
- mekure1[selectMaidIndex],
- "めくれ前",
- style4);
- mekure2[selectMaidIndex] =
- GUI.Toggle(new Rect((float) this.GetPix(67),
- (float) this.GetPix(223),
- (float) this.GetPix(40),
- (float) this.GetPix(20)),
- mekure2[selectMaidIndex],
- "後ろ",
- style4);
- zurasi[selectMaidIndex] =
- GUI.Toggle(new Rect((float) this.GetPix(105),
- (float) this.GetPix(223),
- (float) this.GetPix(50),
- (float) this.GetPix(20)),
- zurasi[selectMaidIndex],
- "ずらし",
- style4);
- }
- }
- private void GuiFunc2(int winID)
- {
- GUIStyle style1 = (GUIStyle) "label";
- style1.fontSize = this.GetPix(12);
- style1.alignment = TextAnchor.UpperLeft;
- GUIStyle style2 = (GUIStyle) "label";
- style2.fontSize = this.GetPix(11);
- style2.alignment = TextAnchor.UpperLeft;
- GUIStyle style3 = (GUIStyle) "button";
- style3.fontSize = this.GetPix(20);
- GUIStyle buttonStyle = (GUIStyle) "button";
- buttonStyle.fontSize = this.GetPix(12);
- buttonStyle.alignment = TextAnchor.MiddleLeft;
- GUIStyle style4 = new GUIStyle((GUIStyle) "toggle");
- style4.fontSize = this.GetPix(13);
- CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
- if (!faceInitFlg)
- {
- listStyle2.normal.textColor = Color.white;
- listStyle2.normal.background = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.5f));
- listStyle2.onHover.background = listStyle2.hover.background = new Texture2D(2, 2);
- listStyle2.padding.left = listStyle2.padding.right = listStyle2.padding.top = listStyle2.padding.bottom = this.GetPix(0);
- listStyle2.fontSize = this.GetPix(12);
- faceCombo.selectedItemIndex = 0;
- List<string> stringList = new List<string>(300);
- stringList.AddRange((IEnumerable<string>) faceArray);
- for (int index = 1; index < 300; ++index)
- {
- IniKey iniKey = this.Preferences["face"]["f" + (object) index];
- if (iniKey.Value != null)
- {
- string[] strArray = iniKey.Value.Split(':');
- if (strArray.Length > 1)
- stringList.Add(strArray[0] + " :" + (object) index + ":" + strArray[1]);
- }
- else
- break;
- }
- faceCombo.selectedItemIndex = 0;
- faceComboList = new GUIContent[stringList.ToArray().Length];
- for (int index = 0; index < stringList.ToArray().Length; ++index)
- faceComboList[index] = new GUIContent(stringList.ToArray()[index]);
- faceInitFlg = true;
- }
- if (faceCombo.isClickedComboButton)
- GUI.enabled = false;
- if (sceneLevel == 3 || sceneLevel == 5 || isF6)
- {
- if (!isF6)
- {
- bool flag = true;
- if (faceFlg || poseFlg || (sceneFlg || kankyoFlg) || kankyo2Flg)
- flag = false;
- if (GUI.Toggle(new Rect((float) this.GetPix(2),
- (float) this.GetPix(2),
- (float) this.GetPix(39),
- (float) this.GetPix(20)),
- flag,
- "配置",
- style4))
- {
- faceFlg = false;
- poseFlg = false;
- sceneFlg = false;
- kankyoFlg = false;
- kankyo2Flg = false;
- bGui = true;
- isGuiInit = true;
- }
- }
- if (!yotogiFlg && GUI.Toggle(new Rect((float) this.GetPix(41),
- (float) this.GetPix(2),
- (float) this.GetPix(39),
- (float) this.GetPix(20)),
- poseFlg,
- "操作",
- style4))
- {
- poseFlg = true;
- faceFlg = false;
- sceneFlg = false;
- kankyoFlg = false;
- kankyo2Flg = false;
- }
- if (GUI.Toggle(new Rect((float) this.GetPix(80), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
- faceFlg,
- "表情",
- style4))
- {
- faceFlg = true;
- poseFlg = false;
- sceneFlg = false;
- kankyoFlg = false;
- kankyo2Flg = false;
- if (!faceFlg2)
- {
- isFaceInit = true;
- faceFlg2 = true;
- maidArray[selectMaidIndex].boMabataki = false;
- faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
- }
- faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
- }
- if (GUI.Toggle(new Rect((float) this.GetPix(119), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
- kankyoFlg,
- "環境",
- style4))
- {
- poseFlg = false;
- faceFlg = false;
- sceneFlg = false;
- kankyoFlg = true;
- kankyo2Flg = false;
- }
- if (!(bool) ((Object) line1))
- {
- line1 = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.3f));
- line2 = this.MakeTex(2, 2, new Color(0.7f, 0.7f, 0.7f, 0.6f));
- }
- GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(20), (float) this.GetPix(160), 2f), (Texture) line1);
- GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(20), (float) this.GetPix(160), 1f), (Texture) line2);
- style1.fontSize = this.GetPix(13);
- style1.alignment = TextAnchor.MiddleCenter;
- GUI.Label(new Rect((float) this.GetPix(125), (float) this.GetPix(25), (float) this.GetPix(40), (float) this.GetPix(25)),
- string.Concat((object) (selectMaidIndex + 1)),
- style1);
- style1.fontSize = this.GetPix(11);
- style1.alignment = TextAnchor.UpperLeft;
- }
- if (sceneLevel > 0)
- {
- int selectMaidIndex = this.selectMaidIndex;
- if (sceneLevel == 3 || sceneLevel == 5 && (isF7 || maidCnt > 1))
- {
- if (GUI.Button(new Rect((float) this.GetPix(5),
- (float) this.GetPix(53),
- (float) this.GetPix(23),
- (float) this.GetPix(32)),
- "<",
- style3))
- {
- --this.selectMaidIndex;
- if (this.selectMaidIndex < 0)
- this.selectMaidIndex = selectList.Count - 1;
- isFaceInit = true;
- faceFlg = true;
- copyIndex = 0;
- faceCombo.selectedItemIndex = faceIndex[this.selectMaidIndex];
- }
- if (GUI.Button(new Rect((float) this.GetPix(135),
- (float) this.GetPix(53),
- (float) this.GetPix(23),
- (float) this.GetPix(32)),
- ">",
- style3))
- {
- ++this.selectMaidIndex;
- if (selectList.Count <= this.selectMaidIndex)
- this.selectMaidIndex = 0;
- isFaceInit = true;
- faceFlg = true;
- copyIndex = 0;
- faceCombo.selectedItemIndex = faceIndex[this.selectMaidIndex];
- }
- }
- if ((bool) ((Object) maidArray[this.selectMaidIndex].GetThumIcon()))
- GUI.DrawTexture(new Rect((float) this.GetPix(30),
- (float) this.GetPix(25),
- (float) this.GetPix(60),
- (float) this.GetPix(60)),
- (Texture) maidArray[this.selectMaidIndex].GetThumIcon());
- GUI.Label(new Rect((float) this.GetPix(90), (float) this.GetPix(50), (float) this.GetPix(140), (float) this.GetPix(210)),
- maidArray[this.selectMaidIndex].status.lastName + "\n" + maidArray[this.selectMaidIndex].status.firstName,
- style1);
- bool flag = GUI.Toggle(new Rect((float) this.GetPix(90),
- (float) this.GetPix(25),
- (float) this.GetPix(50),
- (float) this.GetPix(16)),
- isShosai,
- "詳細",
- style4);
- if (flag != isShosai)
- {
- isShosai = flag;
- if (isShosai)
- this.Preferences["config"]["hair_details"].Value = "true";
- else
- this.Preferences["config"]["hair_details"].Value = "false";
- this.SaveConfig();
- }
- if (isFace[selectMaidIndex])
- {
- if (GUI.Button(new Rect((float) this.GetPix(5),
- (float) this.GetPix(25),
- (float) this.GetPix(23),
- (float) this.GetPix(23)),
- "有",
- style3))
- {
- TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
- maidArray[selectMaidIndex].boMabataki = false;
- isFace[selectMaidIndex] = false;
- }
- maidArray[selectMaidIndex].boMabataki = false;
- }
- else
- {
- if (GUI.Button(new Rect((float) this.GetPix(5),
- (float) this.GetPix(25),
- (float) this.GetPix(23),
- (float) this.GetPix(23)),
- "無",
- style3))
- {
- TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
- maidArray[selectMaidIndex].boMabataki = false;
- morph.EyeMabataki = 0.0f;
- isFaceInit = true;
- isFace[selectMaidIndex] = true;
- faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
- }
- GUI.enabled = false;
- maidArray[selectMaidIndex].boMabataki = true;
- }
- }
- if (GUI.Button(new Rect((float) this.GetPix(5), (float) this.GetPix(95), (float) this.GetPix(23), (float) this.GetPix(23)),
- "<",
- style3))
- {
- --faceIndex[selectMaidIndex];
- if (faceIndex[selectMaidIndex] <= -1)
- faceIndex[selectMaidIndex] = faceComboList.Length - 1;
- TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
- maidArray[selectMaidIndex].boMabataki = false;
- morph.EyeMabataki = 0.0f;
- if (faceIndex[selectMaidIndex] < faceArray.Length)
- {
- morph.MulBlendValues(faceArray[faceIndex[selectMaidIndex]], 1f);
- }
- else
- {
- float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
- float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
- if (!isVR)
- maidArray[selectMaidIndex].boMabataki = false;
- string[] strArray = faceComboList[faceIndex[selectMaidIndex]].text.Split(':')[2].Split(',');
- fieldValue2[(int) morph.hash[(object) "eyeclose"]] = float.Parse(strArray[0]);
- fieldValue2[(int) morph.hash[(object) "eyeclose2"]] = float.Parse(strArray[1]);
- fieldValue2[(int) morph.hash[(object) "eyeclose3"]] = float.Parse(strArray[2]);
- fieldValue2[(int) morph.hash[(object) "eyeclose6"]] = float.Parse(strArray[3]);
- fieldValue1[(int) morph.hash[(object) "hitomih"]] = float.Parse(strArray[4]);
- fieldValue1[(int) morph.hash[(object) "hitomis"]] = float.Parse(strArray[5]);
- fieldValue1[(int) morph.hash[(object) "mayuha"]] = float.Parse(strArray[6]);
- fieldValue1[(int) morph.hash[(object) "mayuup"]] = float.Parse(strArray[7]);
- fieldValue1[(int) morph.hash[(object) "mayuv"]] = float.Parse(strArray[8]);
- fieldValue1[(int) morph.hash[(object) "mayuvhalf"]] = float.Parse(strArray[9]);
- fieldValue1[(int) morph.hash[(object) "moutha"]] = float.Parse(strArray[10]);
- fieldValue1[(int) morph.hash[(object) "mouths"]] = float.Parse(strArray[11]);
- fieldValue1[(int) morph.hash[(object) "mouthdw"]] = float.Parse(strArray[12]);
- fieldValue1[(int) morph.hash[(object) "mouthup"]] = float.Parse(strArray[13]);
- fieldValue1[(int) morph.hash[(object) "tangout"]] = float.Parse(strArray[14]);
- fieldValue1[(int) morph.hash[(object) "tangup"]] = float.Parse(strArray[15]);
- fieldValue1[(int) morph.hash[(object) "eyebig"]] = float.Parse(strArray[16]);
- fieldValue2[(int) morph.hash[(object) "eyeclose5"]] = float.Parse(strArray[17]);
- fieldValue1[(int) morph.hash[(object) "mayuw"]] = float.Parse(strArray[18]);
- fieldValue1[(int) morph.hash[(object) "mouthhe"]] = float.Parse(strArray[19]);
- fieldValue1[(int) morph.hash[(object) "mouthc"]] = float.Parse(strArray[20]);
- fieldValue1[(int) morph.hash[(object) "mouthi"]] = float.Parse(strArray[21]);
- fieldValue1[(int) morph.hash[(object) "mouthuphalf"]] = float.Parse(strArray[22]) + 0.01f;
- try
- {
- fieldValue1[(int) morph.hash[(object) "tangopen"]] = float.Parse(strArray[23]);
- }
- catch { }
- if ((double) float.Parse(strArray[24]) == 1.0)
- fieldValue1[(int) morph.hash[(object) "namida"]] = 1f;
- else
- fieldValue1[(int) morph.hash[(object) "namida"]] = 0.0f;
- if ((double) float.Parse(strArray[25]) == 1.0)
- fieldValue1[(int) morph.hash[(object) "tear1"]] = 1f;
- else
- fieldValue1[(int) morph.hash[(object) "tear1"]] = 0.0f;
- if ((double) float.Parse(strArray[26]) == 1.0)
- fieldValue1[(int) morph.hash[(object) "tear2"]] = 1f;
- else
- fieldValue1[(int) morph.hash[(object) "tear2"]] = 0.0f;
- if ((double) float.Parse(strArray[27]) == 1.0)
- fieldValue1[(int) morph.hash[(object) "tear3"]] = 1f;
- else
- fieldValue1[(int) morph.hash[(object) "tear3"]] = 0.0f;
- if ((double) float.Parse(strArray[28]) == 1.0)
- fieldValue1[(int) morph.hash[(object) "shock"]] = 1f;
- else
- fieldValue1[(int) morph.hash[(object) "shock"]] = 0.0f;
- if ((double) float.Parse(strArray[29]) == 1.0)
- fieldValue1[(int) morph.hash[(object) "yodare"]] = 1f;
- else
- fieldValue1[(int) morph.hash[(object) "yodare"]] = 0.0f;
- if ((double) float.Parse(strArray[30]) == 1.0)
- fieldValue1[(int) morph.hash[(object) "hoho"]] = 0.5f;
- else
- fieldValue1[(int) morph.hash[(object) "hoho"]] = 0.0f;
- if ((double) float.Parse(strArray[31]) == 1.0)
- fieldValue1[(int) morph.hash[(object) "hoho2"]] = 0.5f;
- else
- fieldValue1[(int) morph.hash[(object) "hoho2"]] = 0.0f;
- if ((double) float.Parse(strArray[32]) == 1.0)
- fieldValue1[(int) morph.hash[(object) "hohos"]] = 1f;
- else
- fieldValue1[(int) morph.hash[(object) "hohos"]] = 0.0f;
- if ((double) float.Parse(strArray[33]) == 1.0)
- fieldValue1[(int) morph.hash[(object) "hohol"]] = 1f;
- else
- fieldValue1[(int) morph.hash[(object) "hohol"]] = 0.0f;
- if ((double) float.Parse(strArray[34]) == 1.0)
- fieldValue1[(int) morph.hash[(object) "toothoff"]] = 1f;
- else
- fieldValue1[(int) morph.hash[(object) "toothoff"]] = 0.0f;
- if (strArray.Length > 35)
- morph.boNoseFook = (double) float.Parse(strArray[35]) == 1.0;
- }
- maidArray[selectMaidIndex].body0.Face.morph.FixBlendValues_Face();
- isFaceInit = true;
- faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
- }
- if (GUI.Button(new Rect((float) this.GetPix(135), (float) this.GetPix(95), (float) this.GetPix(23), (float) this.GetPix(23)),
- ">",
- style3))
- {
- ++faceIndex[selectMaidIndex];
- if (faceIndex[selectMaidIndex] == faceComboList.Length)
- faceIndex[selectMaidIndex] = 0;
- TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
- maidArray[selectMaidIndex].boMabataki = false;
- morph.EyeMabataki = 0.0f;
- if (faceIndex[selectMaidIndex] < faceArray.Length)
- {
- morph.MulBlendValues(faceArray[faceIndex[selectMaidIndex]], 1f);
- }
- else
- {
- float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
- float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
- if (!isVR)
- maidArray[selectMaidIndex].boMabataki = false;
- string[] strArray = faceComboList[faceIndex[selectMaidIndex]].text.Split(':')[2].Split(',');
- fieldValue2[(int) morph.hash[(object) "eyeclose"]] = float.Parse(strArray[0]);
- fieldValue2[(int) morph.hash[(object) "eyeclose2"]] = float.Parse(strArray[1]);
- fieldValue2[(int) morph.hash[(object) "eyeclose3"]] = float.Parse(strArray[2]);
- fieldValue2[(int) morph.hash[(object) "eyeclose6"]] = float.Parse(strArray[3]);
- fieldValue1[(int) morph.hash[(object) "hitomih"]] = float.Parse(strArray[4]);
- fieldValue1[(int) morph.hash[(object) "hitomis"]] = float.Parse(strArray[5]);
- fieldValue1[(int) morph.hash[(object) "mayuha"]] = float.Parse(strArray[6]);
- fieldValue1[(int) morph.hash[(object) "mayuup"]] = float.Parse(strArray[7]);
- fieldValue1[(int) morph.hash[(object) "mayuv"]] = float.Parse(strArray[8]);
- fieldValue1[(int) morph.hash[(object) "mayuvhalf"]] = float.Parse(strArray[9]);
- fieldValue1[(int) morph.hash[(object) "moutha"]] = float.Parse(strArray[10]);
- fieldValue1[(int) morph.hash[(object) "mouths"]] = float.Parse(strArray[11]);
- fieldValue1[(int) morph.hash[(object) "mouthdw"]] = float.Parse(strArray[12]);
- fieldValue1[(int) morph.hash[(object) "mouthup"]] = float.Parse(strArray[13]);
- fieldValue1[(int) morph.hash[(object) "tangout"]] = float.Parse(strArray[14]);
- fieldValue1[(int) morph.hash[(object) "tangup"]] = float.Parse(strArray[15]);
- fieldValue1[(int) morph.hash[(object) "eyebig"]] = float.Parse(strArray[16]);
- fieldValue2[(int) morph.hash[(object) "eyeclose5"]] = float.Parse(strArray[17]);
- fieldValue1[(int) morph.hash[(object) "mayuw"]] = float.Parse(strArray[18]);
- fieldValue1[(int) morph.hash[(object) "mouthhe"]] = float.Parse(strArray[19]);
- fieldValue1[(int) morph.hash[(object) "mouthc"]] = float.Parse(strArray[20]);
- fieldValue1[(int) morph.hash[(object) "mouthi"]] = float.Parse(strArray[21]);
- fieldValue1[(int) morph.hash[(object) "mouthuphalf"]] = float.Parse(strArray[22]) + 0.01f;
- try
- {
- fieldValue1[(int) morph.hash[(object) "tangopen"]] = float.Parse(strArray[23]);
- }
- catch { }
- if ((double) float.Parse(strArray[24]) == 1.0)
- fieldValue1[(int) morph.hash[(object) "namida"]] = 1f;
- else
- fieldValue1[(int) morph.hash[(object) "namida"]] = 0.0f;
- if ((double) float.Parse(strArray[25]) == 1.0)
- fieldValue1[(int) morph.hash[(object) "tear1"]] = 1f;
- else
- fieldValue1[(int) morph.hash[(object) "tear1"]] = 0.0f;
- if ((double) float.Parse(strArray[26]) == 1.0)
- fieldValue1[(int) morph.hash[(object) "tear2"]] = 1f;
- else
- fieldValue1[(int) morph.hash[(object) "tear2"]] = 0.0f;
- if ((double) float.Parse(strArray[27]) == 1.0)
- fieldValue1[(int) morph.hash[(object) "tear3"]] = 1f;
- else
- fieldValue1[(int) morph.hash[(object) "tear3"]] = 0.0f;
- if ((double) float.Parse(strArray[28]) == 1.0)
- fieldValue1[(int) morph.hash[(object) "shock"]] = 1f;
- else
- fieldValue1[(int) morph.hash[(object) "shock"]] = 0.0f;
- if ((double) float.Parse(strArray[29]) == 1.0)
- fieldValue1[(int) morph.hash[(object) "yodare"]] = 1f;
- else
- fieldValue1[(int) morph.hash[(object) "yodare"]] = 0.0f;
- if ((double) float.Parse(strArray[30]) == 1.0)
- fieldValue1[(int) morph.hash[(object) "hoho"]] = 0.5f;
- else
- fieldValue1[(int) morph.hash[(object) "hoho"]] = 0.0f;
- if ((double) float.Parse(strArray[31]) == 1.0)
- fieldValue1[(int) morph.hash[(object) "hoho2"]] = 0.5f;
- else
- fieldValue1[(int) morph.hash[(object) "hoho2"]] = 0.0f;
- if ((double) float.Parse(strArray[32]) == 1.0)
- fieldValue1[(int) morph.hash[(object) "hohos"]] = 1f;
- else
- fieldValue1[(int) morph.hash[(object) "hohos"]] = 0.0f;
- if ((double) float.Parse(strArray[33]) == 1.0)
- fieldValue1[(int) morph.hash[(object) "hohol"]] = 1f;
- else
- fieldValue1[(int) morph.hash[(object) "hohol"]] = 0.0f;
- if ((double) float.Parse(strArray[34]) == 1.0)
- fieldValue1[(int) morph.hash[(object) "toothoff"]] = 1f;
- else
- fieldValue1[(int) morph.hash[(object) "toothoff"]] = 0.0f;
- if (strArray.Length > 35)
- morph.boNoseFook = (double) float.Parse(strArray[35]) == 1.0;
- }
- maidArray[selectMaidIndex].body0.Face.morph.FixBlendValues_Face();
- isFaceInit = true;
- faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
- }
- if (!isShosai)
- {
- GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(130), (float) this.GetPix(100), (float) this.GetPix(25)),
- "目の開閉",
- style1);
- eyeclose = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(150),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- eyeclose,
- 0.0f,
- 1f);
- GUI.Label(new Rect((float) this.GetPix(88), (float) this.GetPix(130), (float) this.GetPix(100), (float) this.GetPix(25)),
- "にっこり",
- style1);
- eyeclose2 = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
- (float) this.GetPix(150),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- eyeclose2,
- 0.0f,
- 1f);
- GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(170), (float) this.GetPix(100), (float) this.GetPix(25)),
- "ジト目",
- style1);
- eyeclose3 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(190),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- eyeclose3,
- 0.0f,
- 1f);
- GUI.Label(new Rect((float) this.GetPix(88), (float) this.GetPix(170), (float) this.GetPix(100), (float) this.GetPix(25)),
- "ウインク",
- style1);
- eyeclose6 = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
- (float) this.GetPix(190),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- eyeclose6,
- 0.0f,
- 1f);
- GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(210), (float) this.GetPix(100), (float) this.GetPix(25)),
- "ハイライト",
- style1);
- hitomih = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(230),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- hitomih,
- 0.0f,
- 2f);
- GUI.Label(new Rect((float) this.GetPix(88), (float) this.GetPix(210), (float) this.GetPix(100), (float) this.GetPix(25)),
- "瞳サイズ",
- style1);
- hitomis = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
- (float) this.GetPix(230),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- hitomis,
- 0.0f,
- 1f);
- GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(250), (float) this.GetPix(100), (float) this.GetPix(25)),
- "眉角度",
- style1);
- mayuha = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(270),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- mayuha,
- 0.0f,
- 1f);
- GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(290), (float) this.GetPix(100), (float) this.GetPix(25)),
- "眉上げ",
- style1);
- mayuup = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(310),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- mayuup,
- 0.0f,
- 0.8f);
- GUI.Label(new Rect((float) this.GetPix(88), (float) this.GetPix(290), (float) this.GetPix(100), (float) this.GetPix(25)),
- "眉下げ",
- style1);
- mayuv = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
- (float) this.GetPix(310),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- mayuv,
- 0.0f,
- 0.8f);
- GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(330), (float) this.GetPix(100), (float) this.GetPix(25)),
- "口開け1",
- style1);
- moutha = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(350),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- moutha,
- 0.0f,
- 1f);
- GUI.Label(new Rect((float) this.GetPix(88), (float) this.GetPix(330), (float) this.GetPix(100), (float) this.GetPix(25)),
- "口開け2",
- style1);
- mouths = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
- (float) this.GetPix(350),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- mouths,
- 0.0f,
- 0.9f);
- GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(370), (float) this.GetPix(100), (float) this.GetPix(25)),
- "口角上げ",
- style1);
- mouthup = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(390),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- mouthup,
- 0.0f,
- 1.4f);
- GUI.Label(new Rect((float) this.GetPix(88), (float) this.GetPix(370), (float) this.GetPix(100), (float) this.GetPix(25)),
- "口角下げ",
- style1);
- mouthdw = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
- (float) this.GetPix(390),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- mouthdw,
- 0.0f,
- 1f);
- GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(410), (float) this.GetPix(100), (float) this.GetPix(25)),
- "舌出し",
- style1);
- tangout = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(430),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- tangout,
- 0.0f,
- 1f);
- GUI.Label(new Rect((float) this.GetPix(88), (float) this.GetPix(410), (float) this.GetPix(100), (float) this.GetPix(25)),
- "舌上げ",
- style1);
- tangup = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
- (float) this.GetPix(430),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- tangup,
- 0.0f,
- 0.7f);
- isHoho2 = GUI.Toggle(new Rect((float) this.GetPix(5),
- (float) this.GetPix(455),
- (float) this.GetPix(50),
- (float) this.GetPix(20)),
- isHoho2,
- "赤面",
- style4);
- isShock = GUI.Toggle(new Rect((float) this.GetPix(60),
- (float) this.GetPix(455),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- isShock,
- "ショック",
- style4);
- isNamida = GUI.Toggle(new Rect((float) this.GetPix(5),
- (float) this.GetPix(480),
- (float) this.GetPix(50),
- (float) this.GetPix(20)),
- isNamida,
- "涙",
- style4);
- isYodare = GUI.Toggle(new Rect((float) this.GetPix(60),
- (float) this.GetPix(480),
- (float) this.GetPix(50),
- (float) this.GetPix(20)),
- isYodare,
- "涎",
- style4);
- isTear1 = GUI.Toggle(new Rect((float) this.GetPix(5),
- (float) this.GetPix(505),
- (float) this.GetPix(50),
- (float) this.GetPix(20)),
- isTear1,
- "涙1",
- style4);
- isTear2 = GUI.Toggle(new Rect((float) this.GetPix(60),
- (float) this.GetPix(505),
- (float) this.GetPix(50),
- (float) this.GetPix(20)),
- isTear2,
- "涙2",
- style4);
- isTear3 = GUI.Toggle(new Rect((float) this.GetPix(115),
- (float) this.GetPix(505),
- (float) this.GetPix(50),
- (float) this.GetPix(20)),
- isTear3,
- "涙3",
- style4);
- isHohos = GUI.Toggle(new Rect((float) this.GetPix(5),
- (float) this.GetPix(530),
- (float) this.GetPix(50),
- (float) this.GetPix(20)),
- isHohos,
- "頬1",
- style4);
- isHoho = GUI.Toggle(new Rect((float) this.GetPix(60),
- (float) this.GetPix(530),
- (float) this.GetPix(50),
- (float) this.GetPix(20)),
- isHoho,
- "頬2",
- style4);
- isHohol = GUI.Toggle(new Rect((float) this.GetPix(115),
- (float) this.GetPix(530),
- (float) this.GetPix(50),
- (float) this.GetPix(20)),
- isHohol,
- "頬3",
- style4);
- }
- else
- {
- int i1 = 120;
- int i2 = 135;
- int num = 28;
- GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(i1), (float) this.GetPix(100), (float) this.GetPix(25)),
- "目の開閉",
- style2);
- eyeclose = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(i2),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- eyeclose,
- 0.0f,
- 1f);
- GUI.Label(new Rect((float) this.GetPix(88), (float) this.GetPix(i1), (float) this.GetPix(100), (float) this.GetPix(25)),
- "にっこり",
- style2);
- eyeclose2 = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
- (float) this.GetPix(i2),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- eyeclose2,
- 0.0f,
- 1f);
- GUI.Label(new Rect((float) this.GetPix(8),
- (float) this.GetPix(i1 + num),
- (float) this.GetPix(100),
- (float) this.GetPix(25)),
- "ジト目",
- style2);
- eyeclose3 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(i2 + num),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- eyeclose3,
- 0.0f,
- 1f);
- GUI.Label(new Rect((float) this.GetPix(88),
- (float) this.GetPix(i1 + num),
- (float) this.GetPix(100),
- (float) this.GetPix(25)),
- "見開く",
- style2);
- eyebig = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
- (float) this.GetPix(i2 + num),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- eyebig,
- 0.0f,
- 1f);
- GUI.Label(new Rect((float) this.GetPix(8),
- (float) this.GetPix(i1 + num * 2),
- (float) this.GetPix(100),
- (float) this.GetPix(25)),
- "ウインク1",
- style2);
- eyeclose6 = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(i2 + num * 2),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- eyeclose6,
- 0.0f,
- 1f);
- GUI.Label(new Rect((float) this.GetPix(88),
- (float) this.GetPix(i1 + num * 2),
- (float) this.GetPix(100),
- (float) this.GetPix(25)),
- "ウインク2",
- style2);
- eyeclose5 = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
- (float) this.GetPix(i2 + num * 2),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- eyeclose5,
- 0.0f,
- 1f);
- GUI.Label(new Rect((float) this.GetPix(8),
- (float) this.GetPix(i1 + num * 3),
- (float) this.GetPix(100),
- (float) this.GetPix(25)),
- "ハイライト",
- style2);
- hitomih = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(i2 + num * 3),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- hitomih,
- 0.0f,
- 2f);
- GUI.Label(new Rect((float) this.GetPix(88),
- (float) this.GetPix(i1 + num * 3),
- (float) this.GetPix(100),
- (float) this.GetPix(25)),
- "瞳サイズ",
- style2);
- hitomis = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
- (float) this.GetPix(i2 + num * 3),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- hitomis,
- 0.0f,
- 1f);
- GUI.Label(new Rect((float) this.GetPix(8),
- (float) this.GetPix(i1 + num * 4),
- (float) this.GetPix(100),
- (float) this.GetPix(25)),
- "眉角度1",
- style2);
- mayuha = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(i2 + num * 4),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- mayuha,
- 0.0f,
- 1f);
- GUI.Label(new Rect((float) this.GetPix(88),
- (float) this.GetPix(i1 + num * 4),
- (float) this.GetPix(100),
- (float) this.GetPix(25)),
- "眉角度2",
- style2);
- mayuw = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
- (float) this.GetPix(i2 + num * 4),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- mayuw,
- 0.0f,
- 1f);
- GUI.Label(new Rect((float) this.GetPix(8),
- (float) this.GetPix(i1 + num * 5),
- (float) this.GetPix(100),
- (float) this.GetPix(25)),
- "眉上げ",
- style2);
- mayuup = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(i2 + num * 5),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- mayuup,
- 0.0f,
- 0.8f);
- GUI.Label(new Rect((float) this.GetPix(88),
- (float) this.GetPix(i1 + num * 5),
- (float) this.GetPix(100),
- (float) this.GetPix(25)),
- "眉下げ1",
- style2);
- mayuv = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
- (float) this.GetPix(i2 + num * 5),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- mayuv,
- 0.0f,
- 0.8f);
- GUI.Label(new Rect((float) this.GetPix(8),
- (float) this.GetPix(i1 + num * 6),
- (float) this.GetPix(100),
- (float) this.GetPix(25)),
- "眉下げ2",
- style2);
- mayuvhalf = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(i2 + num * 6),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- mayuvhalf,
- 0.0f,
- 0.9f);
- GUI.Label(new Rect((float) this.GetPix(8),
- (float) this.GetPix(i1 + num * 7),
- (float) this.GetPix(100),
- (float) this.GetPix(25)),
- "口開け1",
- style2);
- moutha = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(i2 + num * 7),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- moutha,
- 0.0f,
- 1f);
- GUI.Label(new Rect((float) this.GetPix(88),
- (float) this.GetPix(i1 + num * 7),
- (float) this.GetPix(100),
- (float) this.GetPix(25)),
- "口開け2",
- style2);
- mouths = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
- (float) this.GetPix(i2 + num * 7),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- mouths,
- 0.0f,
- 0.9f);
- GUI.Label(new Rect((float) this.GetPix(8),
- (float) this.GetPix(i1 + num * 8),
- (float) this.GetPix(100),
- (float) this.GetPix(25)),
- "口幅狭く",
- style2);
- mouthc = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(i2 + num * 8),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- mouthc,
- 0.0f,
- 1f);
- GUI.Label(new Rect((float) this.GetPix(88),
- (float) this.GetPix(i1 + num * 8),
- (float) this.GetPix(100),
- (float) this.GetPix(25)),
- "口幅広く",
- style2);
- mouthi = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
- (float) this.GetPix(i2 + num * 8),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- mouthi,
- 0.0f,
- 1f);
- GUI.Label(new Rect((float) this.GetPix(8),
- (float) this.GetPix(i1 + num * 9),
- (float) this.GetPix(100),
- (float) this.GetPix(25)),
- "口角上げ",
- style2);
- mouthup = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(i2 + num * 9),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- mouthup,
- 0.0f,
- 1.4f);
- GUI.Label(new Rect((float) this.GetPix(88),
- (float) this.GetPix(i1 + num * 9),
- (float) this.GetPix(100),
- (float) this.GetPix(25)),
- "口角下げ",
- style2);
- mouthdw = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
- (float) this.GetPix(i2 + num * 9),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- mouthdw,
- 0.0f,
- 1f);
- GUI.Label(new Rect((float) this.GetPix(8),
- (float) this.GetPix(i1 + num * 10),
- (float) this.GetPix(100),
- (float) this.GetPix(25)),
- "口中央上げ",
- style2);
- mouthhe = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(i2 + num * 10),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- mouthhe,
- 0.0f,
- 1f);
- GUI.Label(new Rect((float) this.GetPix(88),
- (float) this.GetPix(i1 + num * 10),
- (float) this.GetPix(100),
- (float) this.GetPix(25)),
- "左口角上げ",
- style2);
- mouthuphalf = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
- (float) this.GetPix(i2 + num * 10),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- mouthuphalf,
- 0.0f,
- 2f);
- GUI.Label(new Rect((float) this.GetPix(8),
- (float) this.GetPix(i1 + num * 11),
- (float) this.GetPix(100),
- (float) this.GetPix(25)),
- "舌出し",
- style2);
- tangout = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(i2 + num * 11),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- tangout,
- 0.0f,
- 1f);
- GUI.Label(new Rect((float) this.GetPix(88),
- (float) this.GetPix(i1 + num * 11),
- (float) this.GetPix(100),
- (float) this.GetPix(25)),
- "舌上げ",
- style2);
- tangup = GUI.HorizontalSlider(new Rect((float) this.GetPix(88),
- (float) this.GetPix(i2 + num * 11),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- tangup,
- 0.0f,
- 0.7f);
- GUI.Label(new Rect((float) this.GetPix(8),
- (float) this.GetPix(i1 + num * 12),
- (float) this.GetPix(100),
- (float) this.GetPix(25)),
- "舌根上げ",
- style2);
- tangopen = GUI.HorizontalSlider(new Rect((float) this.GetPix(8),
- (float) this.GetPix(i2 + num * 12),
- (float) this.GetPix(70),
- (float) this.GetPix(20)),
- tangopen,
- 0.0f,
- 1f);
- bool enabled = GUI.enabled;
- if (!faceCombo.isClickedComboButton)
- GUI.enabled = true;
- GUI.enabled = enabled;
- isHoho2 = GUI.Toggle(new Rect((float) this.GetPix(5),
- (float) this.GetPix(489),
- (float) this.GetPix(50),
- (float) this.GetPix(16)),
- isHoho2,
- "赤面",
- style4);
- isShock = GUI.Toggle(new Rect((float) this.GetPix(60),
- (float) this.GetPix(489),
- (float) this.GetPix(58),
- (float) this.GetPix(16)),
- isShock,
- "ショック",
- style4);
- isNosefook = GUI.Toggle(new Rect((float) this.GetPix(115),
- (float) this.GetPix(489),
- (float) this.GetPix(62),
- (float) this.GetPix(16)),
- isNosefook,
- "鼻フック",
- style4);
- isNamida = GUI.Toggle(new Rect((float) this.GetPix(5),
- (float) this.GetPix(511),
- (float) this.GetPix(50),
- (float) this.GetPix(16)),
- isNamida,
- "涙",
- style4);
- isYodare = GUI.Toggle(new Rect((float) this.GetPix(60),
- (float) this.GetPix(511),
- (float) this.GetPix(50),
- (float) this.GetPix(16)),
- isYodare,
- "涎",
- style4);
- isToothoff = !GUI.Toggle(new Rect((float) this.GetPix(115),
- (float) this.GetPix(511),
- (float) this.GetPix(50),
- (float) this.GetPix(16)),
- !isToothoff,
- "歯",
- style4);
- isTear1 = GUI.Toggle(new Rect((float) this.GetPix(5),
- (float) this.GetPix(533),
- (float) this.GetPix(50),
- (float) this.GetPix(16)),
- isTear1,
- "涙1",
- style4);
- isTear2 = GUI.Toggle(new Rect((float) this.GetPix(60),
- (float) this.GetPix(533),
- (float) this.GetPix(50),
- (float) this.GetPix(16)),
- isTear2,
- "涙2",
- style4);
- isTear3 = GUI.Toggle(new Rect((float) this.GetPix(115),
- (float) this.GetPix(533),
- (float) this.GetPix(50),
- (float) this.GetPix(16)),
- isTear3,
- "涙3",
- style4);
- isHohos = GUI.Toggle(new Rect((float) this.GetPix(5),
- (float) this.GetPix(555),
- (float) this.GetPix(50),
- (float) this.GetPix(16)),
- isHohos,
- "頬1",
- style4);
- isHoho = GUI.Toggle(new Rect((float) this.GetPix(60),
- (float) this.GetPix(555),
- (float) this.GetPix(50),
- (float) this.GetPix(16)),
- isHoho,
- "頬2",
- style4);
- isHohol = GUI.Toggle(new Rect((float) this.GetPix(115),
- (float) this.GetPix(555),
- (float) this.GetPix(50),
- (float) this.GetPix(16)),
- isHohol,
- "頬3",
- style4);
- }
- int num1 = 0;
- if (isShosai)
- num1 = 22;
- isFaceEdit = GUI.Toggle(new Rect((float) this.GetPix(5),
- (float) this.GetPix(555 + num1),
- (float) this.GetPix(50),
- (float) this.GetPix(16)),
- isFaceEdit,
- "登録",
- style4);
- if (isFaceEdit)
- {
- inName4 = GUI.TextField(new Rect((float) this.GetPix(5),
- (float) this.GetPix(575 + num1),
- (float) this.GetPix(100),
- (float) this.GetPix(20)),
- inName4);
- if (GUI.Button(new Rect((float) this.GetPix(107),
- (float) this.GetPix(575 + num1),
- (float) this.GetPix(35),
- (float) this.GetPix(20)),
- "追加",
- style3))
- {
- GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
- GUI.FocusControl("");
- int num2 = 1;
- for (int index = 1; index < 1000; ++index)
- {
- if (this.Preferences["face"]["f" + (object) index].Value == null)
- {
- num2 = index;
- break;
- }
- }
- TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
- float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
- float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
- string str1 = inName4 + ":" + (object) fieldValue2[(int) morph.hash[(object) "eyeclose"]] + ","
- + (object) fieldValue2[(int) morph.hash[(object) "eyeclose2"]] + ","
- + (object) fieldValue2[(int) morph.hash[(object) "eyeclose3"]] + ","
- + (object) fieldValue2[(int) morph.hash[(object) "eyeclose6"]] + ","
- + (object) fieldValue1[(int) morph.hash[(object) "hitomih"]] + ","
- + (object) fieldValue1[(int) morph.hash[(object) "hitomis"]] + ","
- + (object) fieldValue1[(int) morph.hash[(object) "mayuha"]] + ","
- + (object) fieldValue1[(int) morph.hash[(object) "mayuup"]] + ","
- + (object) fieldValue1[(int) morph.hash[(object) "mayuv"]] + ","
- + (object) fieldValue1[(int) morph.hash[(object) "mayuvhalf"]] + ","
- + (object) fieldValue1[(int) morph.hash[(object) "moutha"]] + ","
- + (object) fieldValue1[(int) morph.hash[(object) "mouths"]] + ","
- + (object) fieldValue1[(int) morph.hash[(object) "mouthdw"]] + ","
- + (object) fieldValue1[(int) morph.hash[(object) "mouthup"]] + ","
- + (object) fieldValue1[(int) morph.hash[(object) "tangout"]] + ","
- + (object) fieldValue1[(int) morph.hash[(object) "tangup"]] + ","
- + (object) fieldValue1[(int) morph.hash[(object) "eyebig"]] + ","
- + (object) fieldValue2[(int) morph.hash[(object) "eyeclose5"]] + ","
- + (object) fieldValue1[(int) morph.hash[(object) "mayuw"]] + ","
- + (object) fieldValue1[(int) morph.hash[(object) "mouthhe"]] + ","
- + (object) fieldValue1[(int) morph.hash[(object) "mouthc"]] + ","
- + (object) fieldValue1[(int) morph.hash[(object) "mouthi"]] + ","
- + (object) fieldValue1[(int) morph.hash[(object) "mouthuphalf"]] + ",";
- string str2;
- try
- {
- str2 = str1 + (object) fieldValue1[(int) morph.hash[(object) "tangopen"]] + ",";
- }
- catch
- {
- str2 = str1 + "0,";
- }
- string str3 = (double) fieldValue1[(int) morph.hash[(object) "namida"]] <= 0.0
- ? str2 + (object) 0 + ","
- : str2 + (object) 1 + ",";
- string str4 = (double) fieldValue1[(int) morph.hash[(object) "tear1"]] <= 0.0
- ? str3 + (object) 0 + ","
- : str3 + (object) 1 + ",";
- string str5 = (double) fieldValue1[(int) morph.hash[(object) "tear2"]] <= 0.0
- ? str4 + (object) 0 + ","
- : str4 + (object) 1 + ",";
- string str6 = (double) fieldValue1[(int) morph.hash[(object) "tear3"]] <= 0.0
- ? str5 + (object) 0 + ","
- : str5 + (object) 1 + ",";
- string str7 = (double) fieldValue1[(int) morph.hash[(object) "shock"]] <= 0.0
- ? str6 + (object) 0 + ","
- : str6 + (object) 1 + ",";
- string str8 = (double) fieldValue1[(int) morph.hash[(object) "yodare"]] <= 0.0
- ? str7 + (object) 0 + ","
- : str7 + (object) 1 + ",";
- string str9 = (double) fieldValue1[(int) morph.hash[(object) "hoho"]] <= 0.0
- ? str8 + (object) 0 + ","
- : str8 + (object) 1 + ",";
- string str10 = (double) fieldValue1[(int) morph.hash[(object) "hoho2"]] <= 0.0
- ? str9 + (object) 0 + ","
- : str9 + (object) 1 + ",";
- string str11 = (double) fieldValue1[(int) morph.hash[(object) "hohos"]] <= 0.0
- ? str10 + (object) 0 + ","
- : str10 + (object) 1 + ",";
- string str12 = (double) fieldValue1[(int) morph.hash[(object) "hohol"]] <= 0.0
- ? str11 + (object) 0 + ","
- : str11 + (object) 1 + ",";
- string str13 = (double) fieldValue1[(int) morph.hash[(object) "toothoff"]] <= 0.0
- ? str12 + (object) 0 + ","
- : str12 + (object) 1 + ",";
- string str14 = (double) fieldValue1[(int) morph.hash[(object) "nosefook"]] <= 0.0
- ? str13 + (object) 0 + ":"
- : str13 + (object) 1 + ":";
- this.Preferences["face"]["f" + (object) num2].Value = str14;
- this.SaveConfig();
- List<string> stringList = new List<string>(300);
- stringList.AddRange((IEnumerable<string>) faceArray);
- for (int index = 1; index < 300; ++index)
- {
- IniKey iniKey = this.Preferences["face"]["f" + (object) index];
- if (iniKey.Value != null)
- {
- string[] strArray = iniKey.Value.Split(':');
- if (strArray.Length > 1)
- stringList.Add(strArray[0] + " :" + (object) index + ":" + strArray[1]);
- }
- else
- break;
- }
- faceCombo.selectedItemIndex = 0;
- faceComboList = new GUIContent[stringList.ToArray().Length];
- for (int index = 0; index < stringList.ToArray().Length; ++index)
- faceComboList[index] = new GUIContent(stringList.ToArray()[index]);
- faceCombo.selectedItemIndex = stringList.ToArray().Length - 1;
- inName4 = "";
- }
- if (faceIndex[selectMaidIndex] < faceArray.Length)
- GUI.enabled = false;
- if (GUI.Button(new Rect((float) this.GetPix(144),
- (float) this.GetPix(575 + num1),
- (float) this.GetPix(24),
- (float) this.GetPix(20)),
- "削",
- style3))
- {
- GameMain.Instance.SoundMgr.PlaySe("se002.ogg", false);
- this.Preferences["face"]["f" + faceComboList[faceIndex[selectMaidIndex]].text.Split(':')[1]].Value = "del";
- this.SaveConfig();
- List<string> stringList = new List<string>(300);
- stringList.AddRange((IEnumerable<string>) faceArray);
- for (int index = 1; index < 300; ++index)
- {
- IniKey iniKey = this.Preferences["face"]["f" + (object) index];
- if (iniKey.Value != null)
- {
- string[] strArray = iniKey.Value.Split(':');
- if (strArray.Length > 1)
- stringList.Add(strArray[0] + " :" + (object) index + ":" + strArray[1]);
- }
- else
- break;
- }
- faceCombo.selectedItemIndex = 0;
- faceComboList = new GUIContent[stringList.ToArray().Length];
- for (int index = 0; index < stringList.ToArray().Length; ++index)
- faceComboList[index] = new GUIContent(stringList.ToArray()[index]);
- faceCombo.selectedItemIndex = 0;
- for (int index = 0; index < maidCnt; ++index)
- {
- if ((bool) ((Object) maidArray[index]) && maidArray[index].Visible
- && stringList.ToArray().Length <= faceIndex[index])
- faceIndex[index] = 0;
- }
- }
- GUI.enabled = true;
- }
- if (faceCombo.isClickedComboButton)
- GUI.enabled = true;
- if (isFace[selectMaidIndex])
- faceIndex[selectMaidIndex] =
- faceCombo.List(new Rect((float) this.GetPix(35),
- (float) this.GetPix(95),
- (float) this.GetPix(95),
- (float) this.GetPix(23)),
- faceComboList[faceIndex[selectMaidIndex]].text,
- faceComboList,
- buttonStyle,
- (GUIStyle) "box",
- listStyle2);
- else
- faceCombo.List(new Rect((float) this.GetPix(35), (float) this.GetPix(95), (float) this.GetPix(95), (float) this.GetPix(23)),
- faceComboList[faceIndex[selectMaidIndex]].text,
- faceComboList,
- buttonStyle,
- (GUIStyle) "box",
- listStyle2);
- if (faceCombo.isClickedComboButton)
- isCombo = true;
- else if (isCombo)
- {
- isCombo = false;
- TMorph morph = maidArray[selectMaidIndex].body0.Face.morph;
- float[] fieldValue1 = GetFieldValue<TMorph, float[]>(morph, "BlendValues");
- morph.EyeMabataki = 0.0f;
- if (faceIndex[selectMaidIndex] < faceArray.Length)
- {
- morph.MulBlendValues(faceArray[faceIndex[selectMaidIndex]], 1f);
- }
- else
- {
- float[] fieldValue2 = GetFieldValue<TMorph, float[]>(morph, "BlendValuesBackup");
- if (!isVR)
- maidArray[selectMaidIndex].boMabataki = false;
- string[] strArray = faceComboList[faceIndex[selectMaidIndex]].text.Split(':')[2].Split(',');
- fieldValue2[(int) morph.hash[(object) "eyeclose"]] = float.Parse(strArray[0]);
- fieldValue2[(int) morph.hash[(object) "eyeclose2"]] = float.Parse(strArray[1]);
- fieldValue2[(int) morph.hash[(object) "eyeclose3"]] = float.Parse(strArray[2]);
- fieldValue2[(int) morph.hash[(object) "eyeclose6"]] = float.Parse(strArray[3]);
- fieldValue1[(int) morph.hash[(object) "hitomih"]] = float.Parse(strArray[4]);
- fieldValue1[(int) morph.hash[(object) "hitomis"]] = float.Parse(strArray[5]);
- fieldValue1[(int) morph.hash[(object) "mayuha"]] = float.Parse(strArray[6]);
- fieldValue1[(int) morph.hash[(object) "mayuup"]] = float.Parse(strArray[7]);
- fieldValue1[(int) morph.hash[(object) "mayuv"]] = float.Parse(strArray[8]);
- fieldValue1[(int) morph.hash[(object) "mayuvhalf"]] = float.Parse(strArray[9]);
- fieldValue1[(int) morph.hash[(object) "moutha"]] = float.Parse(strArray[10]);
- fieldValue1[(int) morph.hash[(object) "mouths"]] = float.Parse(strArray[11]);
- fieldValue1[(int) morph.hash[(object) "mouthdw"]] = float.Parse(strArray[12]);
- fieldValue1[(int) morph.hash[(object) "mouthup"]] = float.Parse(strArray[13]);
- fieldValue1[(int) morph.hash[(object) "tangout"]] = float.Parse(strArray[14]);
- fieldValue1[(int) morph.hash[(object) "tangup"]] = float.Parse(strArray[15]);
- fieldValue1[(int) morph.hash[(object) "eyebig"]] = float.Parse(strArray[16]);
- fieldValue2[(int) morph.hash[(object) "eyeclose5"]] = float.Parse(strArray[17]);
- fieldValue1[(int) morph.hash[(object) "mayuw"]] = float.Parse(strArray[18]);
- fieldValue1[(int) morph.hash[(object) "mouthhe"]] = float.Parse(strArray[19]);
- fieldValue1[(int) morph.hash[(object) "mouthc"]] = float.Parse(strArray[20]);
- fieldValue1[(int) morph.hash[(object) "mouthi"]] = float.Parse(strArray[21]);
- fieldValue1[(int) morph.hash[(object) "mouthuphalf"]] = float.Parse(strArray[22]) + 0.01f;
- try
- {
- fieldValue1[(int) morph.hash[(object) "tangopen"]] = float.Parse(strArray[23]);
- }
- catch { }
- if ((double) float.Parse(strArray[24]) == 1.0)
- fieldValue1[(int) morph.hash[(object) "namida"]] = 1f;
- else
- fieldValue1[(int) morph.hash[(object) "namida"]] = 0.0f;
- if ((double) float.Parse(strArray[25]) == 1.0)
- fieldValue1[(int) morph.hash[(object) "tear1"]] = 1f;
- else
- fieldValue1[(int) morph.hash[(object) "tear1"]] = 0.0f;
- if ((double) float.Parse(strArray[26]) == 1.0)
- fieldValue1[(int) morph.hash[(object) "tear2"]] = 1f;
- else
- fieldValue1[(int) morph.hash[(object) "tear2"]] = 0.0f;
- if ((double) float.Parse(strArray[27]) == 1.0)
- fieldValue1[(int) morph.hash[(object) "tear3"]] = 1f;
- else
- fieldValue1[(int) morph.hash[(object) "tear3"]] = 0.0f;
- if ((double) float.Parse(strArray[28]) == 1.0)
- fieldValue1[(int) morph.hash[(object) "shock"]] = 1f;
- else
- fieldValue1[(int) morph.hash[(object) "shock"]] = 0.0f;
- if ((double) float.Parse(strArray[29]) == 1.0)
- fieldValue1[(int) morph.hash[(object) "yodare"]] = 1f;
- else
- fieldValue1[(int) morph.hash[(object) "yodare"]] = 0.0f;
- if ((double) float.Parse(strArray[30]) == 1.0)
- fieldValue1[(int) morph.hash[(object) "hoho"]] = 0.5f;
- else
- fieldValue1[(int) morph.hash[(object) "hoho"]] = 0.0f;
- if ((double) float.Parse(strArray[31]) == 1.0)
- fieldValue1[(int) morph.hash[(object) "hoho2"]] = 0.5f;
- else
- fieldValue1[(int) morph.hash[(object) "hoho2"]] = 0.0f;
- if ((double) float.Parse(strArray[32]) == 1.0)
- fieldValue1[(int) morph.hash[(object) "hohos"]] = 1f;
- else
- fieldValue1[(int) morph.hash[(object) "hohos"]] = 0.0f;
- if ((double) float.Parse(strArray[33]) == 1.0)
- fieldValue1[(int) morph.hash[(object) "hohol"]] = 1f;
- else
- fieldValue1[(int) morph.hash[(object) "hohol"]] = 0.0f;
- if ((double) float.Parse(strArray[34]) == 1.0)
- fieldValue1[(int) morph.hash[(object) "toothoff"]] = 1f;
- else
- fieldValue1[(int) morph.hash[(object) "toothoff"]] = 0.0f;
- if (strArray.Length > 35)
- morph.boNoseFook = (double) float.Parse(strArray[35]) == 1.0;
- }
- maidArray[selectMaidIndex].body0.Face.morph.FixBlendValues_Face();
- isFaceInit = true;
- faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
- }
- GUI.enabled = !faceCombo.isClickedComboButton;
- yotogiFlg = false;
- if (sceneLevel != 14
- || !(bool)
- ((Object)
- GameObject
- .Find("/UI Root/YotogiPlayPanel/CommandViewer/SkillViewer/MaskGroup/SkillGroup/CommandParent/CommandUnit")
- ))
- return;
- yotogiFlg = true;
- }
- private void GuiFunc(int winID)
- {
- CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
- GUIStyle style1 = (GUIStyle) "label";
- style1.fontSize = this.GetPix(14);
- style1.alignment = TextAnchor.UpperLeft;
- GUIStyle style2 = (GUIStyle) "button";
- style2.fontSize = this.GetPix(16);
- style2.alignment = TextAnchor.MiddleCenter;
- GUIStyle style3 = new GUIStyle((GUIStyle) "toggle");
- style3.fontSize = this.GetPix(13);
- float pix = (float) this.GetPix(70);
- if (comboBoxList == null)
- {
- comboBoxControl.selectedItemIndex = 0;
- comboBoxList = new GUIContent[11];
- comboBoxList[0] = new GUIContent("通常");
- comboBoxList[1] = new GUIContent("横一列");
- comboBoxList[2] = new GUIContent("縦一列");
- comboBoxList[3] = new GUIContent("斜め");
- comboBoxList[4] = new GUIContent("円(外向き)");
- comboBoxList[5] = new GUIContent("円(内向き)");
- comboBoxList[6] = new GUIContent("扇");
- comboBoxList[7] = new GUIContent("V");
- comboBoxList[8] = new GUIContent("^");
- comboBoxList[9] = new GUIContent("M");
- comboBoxList[10] = new GUIContent("W");
- }
- bool flag1 = true;
- if (faceFlg || poseFlg || (sceneFlg || kankyoFlg) || kankyo2Flg)
- flag1 = false;
- if (!isF6 && GUI.Toggle(new Rect((float) this.GetPix(2),
- (float) this.GetPix(2),
- (float) this.GetPix(39),
- (float) this.GetPix(20)),
- flag1,
- "配置",
- style3))
- {
- faceFlg = false;
- poseFlg = false;
- sceneFlg = false;
- kankyoFlg = false;
- kankyo2Flg = false;
- bGui = true;
- isGuiInit = true;
- }
- if (!yotogiFlg && GUI.Toggle(new Rect((float) this.GetPix(41),
- (float) this.GetPix(2),
- (float) this.GetPix(39),
- (float) this.GetPix(20)),
- poseFlg,
- "操作",
- style3))
- {
- poseFlg = true;
- faceFlg = false;
- sceneFlg = false;
- kankyoFlg = false;
- kankyo2Flg = false;
- }
- if (GUI.Toggle(new Rect((float) this.GetPix(80), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
- faceFlg,
- "表情",
- style3))
- {
- faceFlg = true;
- poseFlg = false;
- sceneFlg = false;
- kankyoFlg = false;
- kankyo2Flg = false;
- if (!faceFlg2)
- {
- isFaceInit = true;
- faceFlg2 = true;
- maidArray[selectMaidIndex].boMabataki = false;
- faceCombo.selectedItemIndex = faceIndex[selectMaidIndex];
- }
- }
- if (GUI.Toggle(new Rect((float) this.GetPix(119), (float) this.GetPix(2), (float) this.GetPix(39), (float) this.GetPix(20)),
- kankyoFlg,
- "環境",
- style3))
- {
- poseFlg = false;
- faceFlg = false;
- sceneFlg = false;
- kankyoFlg = true;
- kankyo2Flg = false;
- }
- if (!(bool) ((Object) line1))
- {
- line1 = this.MakeTex(2, 2, new Color(0.0f, 0.0f, 0.0f, 0.3f));
- line2 = this.MakeTex(2, 2, new Color(0.7f, 0.7f, 0.7f, 0.6f));
- }
- GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(20), (float) this.GetPix(160), 2f), (Texture) line1);
- GUI.DrawTexture(new Rect((float) this.GetPix(5), (float) this.GetPix(20), (float) this.GetPix(160), 1f), (Texture) line2);
- int stockMaidCount1 = characterMgr.GetStockMaidCount();
- Rect position;
- Rect viewRect;
- if (sceneLevel != 5)
- {
- position = new Rect((float) this.GetPix(7),
- (float) this.GetPix(110),
- rectWin.width - (float) this.GetPix(14),
- rectWin.height * 0.83f);
- viewRect = new Rect(0.0f,
- 0.0f,
- position.width * 0.85f,
- (pix + (float) this.GetPix(5)) * (float) stockMaidCount1 + (float) this.GetPix(15));
- }
- else
- {
- position = new Rect((float) this.GetPix(7),
- (float) this.GetPix(110),
- rectWin.width - (float) this.GetPix(14),
- (float) ((double) rectWin.height * 0.829999983310699 * 0.980000019073486));
- viewRect = new Rect(0.0f,
- 0.0f,
- position.width * 0.85f,
- (float) (((double) pix + (double) this.GetPix(5)) * (double) stockMaidCount1
- + (double) this.GetPix(15) * 0.920000016689301));
- }
- float y = 0.0f;
- if (comboBoxControl.isClickedComboButton)
- GUI.enabled = false;
- if (GUI.Button(new Rect((float) this.GetPix(10), (float) this.GetPix(78), rectWin.width * 0.85f, (float) this.GetPix(28)),
- "呼び出す",
- style2))
- {
- isYobidashi = true;
- selectMaidIndex = 0;
- copyIndex = 0;
- for (int index = 0; index < maxMaidCnt; ++index)
- {
- if (!isLock[index] && ((bool) ((Object) maidArray[index]) && maidArray[index].Visible))
- {
- maidArray[index].CrossFade(poseArray[0] + ".anm", false, true, false, 0.0f, 1f);
- maidArray[index].SetAutoTwistAll(true);
- }
- maidArray[index] = (Maid) null;
- }
- for (int index = 0; index < maxMaidCnt; ++index)
- isStop[index] = false;
- bGui = false;
- isFadeOut = true;
- GameMain.Instance.MainCamera.FadeOut(0.0f, false, (CameraMain.dgOnCompleteFade) null, true, new Color());
- for (int index = 0; index < characterMgr.GetStockMaidCount(); ++index)
- characterMgr.GetStockMaidList()[index].Visible = false;
- }
- GUIStyle style4 = (GUIStyle) "button";
- style4.fontSize = this.GetPix(13);
- GUIStyleState guiStyleState = new GUIStyleState();
- if (GUI.Button(new Rect((float) this.GetPix(10), (float) this.GetPix(52), rectWin.width * 0.4f, (float) this.GetPix(23)),
- "7人選択",
- style4))
- {
- if (sceneLevel != 5)
- {
- selectList = new ArrayList();
- selectList.Add((object) 0);
- selectList.Add((object) 1);
- selectList.Add((object) 2);
- selectList.Add((object) 3);
- selectList.Add((object) 4);
- selectList.Add((object) 5);
- selectList.Add((object) 6);
- }
- else
- {
- int stockMaidCount2 = characterMgr.GetStockMaidCount();
- selectList = new ArrayList();
- selectList.Add((object) editMaid);
- if (stockMaidCount2 > 1)
- {
- if (editMaid >= 1)
- selectList.Add((object) 0);
- else if (stockMaidCount2 > 2)
- selectList.Add((object) 1);
- }
- if (stockMaidCount2 > 2)
- {
- if (editMaid >= 2)
- selectList.Add((object) 1);
- else if (stockMaidCount2 > 3)
- selectList.Add((object) 2);
- }
- if (stockMaidCount2 > 3)
- {
- if (editMaid >= 3)
- selectList.Add((object) 2);
- else if (stockMaidCount2 > 4)
- selectList.Add((object) 3);
- }
- if (stockMaidCount2 > 4)
- {
- if (editMaid >= 4)
- selectList.Add((object) 3);
- else if (stockMaidCount2 > 5)
- selectList.Add((object) 4);
- }
- if (stockMaidCount2 > 5)
- {
- if (editMaid >= 5)
- selectList.Add((object) 4);
- else if (stockMaidCount2 > 6)
- selectList.Add((object) 5);
- }
- if (stockMaidCount2 > 6)
- {
- if (editMaid >= 6)
- selectList.Add((object) 5);
- else if (stockMaidCount2 > 7)
- selectList.Add((object) 6);
- }
- }
- }
- if (GUI.Button(new Rect(rectWin.width * 0.5f, (float) this.GetPix(52), rectWin.width * 0.4f, (float) this.GetPix(23)),
- "選択解除",
- style4))
- {
- selectList = new ArrayList();
- if (sceneLevel == 5)
- selectList.Add((object) editMaid);
- }
- GUI.enabled = true;
- scrollPos = GUI.BeginScrollView(position, scrollPos, viewRect);
- for (int nStockNo = 0; nStockNo < characterMgr.GetStockMaidCount(); ++nStockNo)
- {
- GUI.enabled = true;
- GUI.DrawTexture(new Rect(2f, y + 2f, (float) ((double) rectWin.width * 0.829999983310699 - 4.0), pix - 4f),
- (Texture) Texture2D.whiteTexture);
- bool flag2 = false;
- for (int index = 0; index < selectList.Count; ++index)
- {
- if ((int) selectList[index] == nStockNo)
- {
- flag2 = true;
- break;
- }
- }
- if (comboBoxControl.isClickedComboButton)
- {
- GUI.enabled = false;
- GUI.Button(new Rect(0.0f, y, rectWin.width * 0.83f, pix), "", style2);
- GUI.Button(new Rect(0.0f, y, rectWin.width * 0.83f, pix), "", style2);
- }
- if (GUI.Button(new Rect(0.0f, y, rectWin.width * 0.83f, pix), "", style2))
- {
- if (flag2)
- {
- for (int index = 0; index < selectList.Count; ++index)
- {
- if ((int) selectList[index] == nStockNo && (sceneLevel != 5 || (int) selectList[index] != editMaid))
- {
- selectList.Remove((object) nStockNo);
- break;
- }
- }
- }
- else
- {
- if (selectList.Count > maxMaidCnt - 1)
- selectList.Remove(selectList[maxMaidCnt - 1]);
- selectList.Add((object) nStockNo);
- }
- }
- GUI.enabled = true;
- if (flag2)
- GUI.DrawTexture(new Rect(5f, y + 5f, (float) ((double) rectWin.width * 0.829999983310699 - 10.0), pix - 10f),
- (Texture) Texture2D.whiteTexture);
- if ((bool) ((Object) characterMgr.GetStockMaid(nStockNo).GetThumIcon()))
- GUI.DrawTexture(new Rect(0.0f, y - 5f, pix, pix), (Texture) characterMgr.GetStockMaid(nStockNo).GetThumIcon());
- string text = characterMgr.GetStockMaid(nStockNo).status.lastName + "\n"
- + characterMgr.GetStockMaid(nStockNo).status.firstName;
- guiStyleState.textColor = Color.black;
- style1.normal = guiStyleState;
- GUI.Label(new Rect((float) this.GetPix(65), y + pix / 4f, pix * 2f, pix * 3f), text, style1);
- if (flag2)
- {
- for (int index = 0; index < selectList.Count; ++index)
- {
- if ((int) selectList[index] == nStockNo)
- {
- GUI.Label(new Rect(rectWin.width * 0.7f, y + 6f, pix, pix), (index + 1).ToString(), style1);
- break;
- }
- }
- }
- y += pix + (float) this.GetPix(5);
- }
- GUI.EndScrollView();
- guiStyleState.textColor = Color.white;
- style1.normal = guiStyleState;
- comboBoxControl.List(new Rect((float) this.GetPix(10), (float) this.GetPix(25), rectWin.width * 0.56f, (float) this.GetPix(24)),
- comboBoxList[comboBoxControl.GetSelectedItemIndex()].text,
- comboBoxList,
- listStyle);
- if (!GUI.Button(new Rect(rectWin.width * 0.66f, (float) this.GetPix(25), rectWin.width * 0.24f, (float) this.GetPix(24)),
- "決定",
- style4))
- return;
- for (int index = 0; index < maxMaidCnt; ++index)
- isStop[index] = false;
- switch (comboBoxControl.GetSelectedItemIndex())
- {
- case 0:
- for (int index = 0; index < maidCnt; ++index)
- {
- Vector3 zero1 = Vector3.zero;
- Vector3 zero2 = Vector3.zero;
- if (selectList.Count <= 7)
- {
- if (selectList.Count % 2 == 1)
- {
- switch (index)
- {
- case 0:
- maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.0f));
- break;
- case 1:
- maidArray[index].SetPos(new Vector3(-0.6f, 0.0f, 0.26f));
- break;
- case 2:
- maidArray[index].SetPos(new Vector3(0.6f, 0.0f, 0.26f));
- break;
- case 3:
- maidArray[index].SetPos(new Vector3(-1.1f, 0.0f, 0.69f));
- break;
- case 4:
- maidArray[index].SetPos(new Vector3(1.1f, 0.0f, 0.69f));
- break;
- case 5:
- maidArray[index].SetPos(new Vector3(-1.47f, 0.0f, 1.1f));
- break;
- case 6:
- maidArray[index].SetPos(new Vector3(1.47f, 0.0f, 1.1f));
- break;
- }
- }
- else
- {
- switch (index)
- {
- case 0:
- maidArray[index].SetPos(new Vector3(0.3f, 0.0f, 0.0f));
- break;
- case 1:
- maidArray[index].SetPos(new Vector3(-0.3f, 0.0f, 0.0f));
- break;
- case 2:
- maidArray[index].SetPos(new Vector3(0.7f, 0.0f, 0.4f));
- break;
- case 3:
- maidArray[index].SetPos(new Vector3(-0.7f, 0.0f, 0.4f));
- break;
- case 4:
- maidArray[index].SetPos(new Vector3(1f, 0.0f, 0.9f));
- break;
- case 5:
- maidArray[index].SetPos(new Vector3(-1f, 0.0f, 0.9f));
- break;
- }
- }
- }
- else
- {
- float num1 = 0.0f;
- if (selectList.Count >= 11)
- {
- float num2 = -0.4f;
- if (selectList.Count % 2 == 1)
- {
- switch (index)
- {
- case 0:
- maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.0f + num2));
- break;
- case 1:
- maidArray[index].SetPos(new Vector3(-0.5f, 0.0f, 0.2f + num2));
- break;
- case 2:
- maidArray[index].SetPos(new Vector3(0.5f, 0.0f, 0.2f + num2));
- break;
- case 3:
- maidArray[index].SetPos(new Vector3(-0.9f, 0.0f, 0.55f + num2));
- break;
- case 4:
- maidArray[index].SetPos(new Vector3(0.9f, 0.0f, 0.55f + num2));
- break;
- case 5:
- maidArray[index].SetPos(new Vector3(-1.25f, 0.0f, 0.9f + num2));
- break;
- case 6:
- maidArray[index].SetPos(new Vector3(1.25f, 0.0f, 0.9f + num2));
- break;
- case 7:
- maidArray[index].SetPos(new Vector3(-1.57f, 0.0f, 1.3f + num2));
- break;
- case 8:
- maidArray[index].SetPos(new Vector3(1.57f, 0.0f, 1.3f + num2));
- break;
- case 9:
- maidArray[index].SetPos(new Vector3(-1.77f, 0.0f, 1.72f + num2));
- break;
- case 10:
- maidArray[index].SetPos(new Vector3(1.77f, 0.0f, 1.72f + num2));
- break;
- case 11:
- maidArray[index].SetPos(new Vector3(-1.85f, 0.0f, 2.17f + num2));
- break;
- case 12:
- maidArray[index].SetPos(new Vector3(1.85f, 0.0f, 2.17f + num2));
- break;
- default:
- maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f + num2));
- break;
- }
- }
- else
- {
- switch (index)
- {
- case 0:
- maidArray[index].SetPos(new Vector3(0.25f, 0.0f, 0.0f + num2));
- break;
- case 1:
- maidArray[index].SetPos(new Vector3(-0.25f, 0.0f, 0.0f + num2));
- break;
- case 2:
- maidArray[index].SetPos(new Vector3(0.7f, 0.0f, 0.25f + num2));
- break;
- case 3:
- maidArray[index].SetPos(new Vector3(-0.7f, 0.0f, 0.25f + num2));
- break;
- case 4:
- maidArray[index].SetPos(new Vector3(1.05f, 0.0f, 0.6f + num2));
- break;
- case 5:
- maidArray[index].SetPos(new Vector3(-1.05f, 0.0f, 0.6f + num2));
- break;
- case 6:
- maidArray[index].SetPos(new Vector3(1.35f, 0.0f, 0.9f + num2));
- break;
- case 7:
- maidArray[index].SetPos(new Vector3(-1.35f, 0.0f, 0.9f + num2));
- break;
- case 8:
- maidArray[index].SetPos(new Vector3(1.6f, 0.0f, 1.3f + num2));
- break;
- case 9:
- maidArray[index].SetPos(new Vector3(-1.6f, 0.0f, 1.3f + num2));
- break;
- case 10:
- maidArray[index].SetPos(new Vector3(1.8f, 0.0f, 1.72f + num2));
- break;
- case 11:
- maidArray[index].SetPos(new Vector3(-1.8f, 0.0f, 1.72f + num2));
- break;
- case 12:
- maidArray[index].SetPos(new Vector3(1.9f, 0.0f, 2.17f + num2));
- break;
- case 13:
- maidArray[index].SetPos(new Vector3(-1.9f, 0.0f, 2.17f + num2));
- break;
- default:
- maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f + num2));
- break;
- }
- }
- }
- else if (selectList.Count >= 8)
- {
- if (selectList.Count >= 9)
- num1 = -0.2f;
- if (selectList.Count % 2 == 1)
- {
- switch (index)
- {
- case 0:
- maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.0f + num1));
- break;
- case 1:
- maidArray[index].SetPos(new Vector3(-0.55f, 0.0f, 0.2f + num1));
- break;
- case 2:
- maidArray[index].SetPos(new Vector3(0.55f, 0.0f, 0.2f + num1));
- break;
- case 3:
- maidArray[index].SetPos(new Vector3(-1f, 0.0f, 0.6f + num1));
- break;
- case 4:
- maidArray[index].SetPos(new Vector3(1f, 0.0f, 0.6f + num1));
- break;
- case 5:
- maidArray[index].SetPos(new Vector3(-1.35f, 0.0f, 1f + num1));
- break;
- case 6:
- maidArray[index].SetPos(new Vector3(1.35f, 0.0f, 1f + num1));
- break;
- case 7:
- maidArray[index].SetPos(new Vector3(-1.6f, 0.0f, 1.4f + num1));
- break;
- case 8:
- maidArray[index].SetPos(new Vector3(1.6f, 0.0f, 1.4f + num1));
- break;
- }
- }
- else
- {
- switch (index)
- {
- case 0:
- maidArray[index].SetPos(new Vector3(0.28f, 0.0f, 0.0f + num1));
- break;
- case 1:
- maidArray[index].SetPos(new Vector3(-0.28f, 0.0f, 0.0f + num1));
- break;
- case 2:
- maidArray[index].SetPos(new Vector3(0.78f, 0.0f, 0.3f + num1));
- break;
- case 3:
- maidArray[index].SetPos(new Vector3(-0.78f, 0.0f, 0.3f + num1));
- break;
- case 4:
- maidArray[index].SetPos(new Vector3(1.22f, 0.0f, 0.7f + num1));
- break;
- case 5:
- maidArray[index].SetPos(new Vector3(-1.22f, 0.0f, 0.7f + num1));
- break;
- case 6:
- maidArray[index].SetPos(new Vector3(1.55f, 0.0f, 1.1f + num1));
- break;
- case 7:
- maidArray[index].SetPos(new Vector3(-1.55f, 0.0f, 1.1f + num1));
- break;
- case 8:
- maidArray[index].SetPos(new Vector3(1.77f, 0.0f, 1.58f + num1));
- break;
- case 9:
- maidArray[index].SetPos(new Vector3(-1.77f, 0.0f, 1.58f + num1));
- break;
- }
- }
- }
- }
- zero2.y = (float) (Math.Atan2((double) maidArray[index].transform.position.x,
- (double) maidArray[index].transform.position.z - 1.5) * 180.0 / Math.PI) + 180f;
- maidArray[index].SetRot(zero2);
- }
- break;
- case 1:
- for (int index = 0; index < maidCnt; ++index)
- {
- Vector3 zero1 = Vector3.zero;
- Vector3 zero2 = Vector3.zero;
- if (maidCnt < 9)
- {
- switch (index)
- {
- case 1:
- zero1.x = -0.6f;
- break;
- case 2:
- zero1.x = 0.6f;
- break;
- case 3:
- zero1.x = -1.2f;
- break;
- case 4:
- zero1.x = 1.2f;
- break;
- case 5:
- zero1.x = -1.8f;
- break;
- case 6:
- zero1.x = 1.8f;
- break;
- case 7:
- zero1.x = -2.4f;
- break;
- case 8:
- zero1.x = 2.4f;
- break;
- case 9:
- zero1.x = -3f;
- break;
- case 10:
- zero1.x = 3f;
- break;
- }
- }
- else
- {
- switch (index)
- {
- case 1:
- zero1.x = -0.5f;
- break;
- case 2:
- zero1.x = 0.5f;
- break;
- case 3:
- zero1.x = -1f;
- break;
- case 4:
- zero1.x = 1f;
- break;
- case 5:
- zero1.x = -1.5f;
- break;
- case 6:
- zero1.x = 1.5f;
- break;
- case 7:
- zero1.x = -2f;
- break;
- case 8:
- zero1.x = 2f;
- break;
- case 9:
- zero1.x = -2.5f;
- break;
- case 10:
- zero1.x = 2.5f;
- break;
- case 11:
- zero1.x = -3f;
- break;
- case 12:
- zero1.x = 3f;
- break;
- case 13:
- zero1.x = -3.5f;
- break;
- }
- }
- maidArray[index].SetPos(zero1);
- maidArray[index].SetRot(zero2);
- if (index >= 14)
- maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
- }
- break;
- case 2:
- for (int index = 0; index < maidCnt; ++index)
- {
- Vector3 zero1 = Vector3.zero;
- Vector3 zero2 = Vector3.zero;
- if (maidCnt < 9)
- {
- switch (index)
- {
- case 1:
- zero1.z = 0.6f;
- break;
- case 2:
- zero1.z = -0.6f;
- break;
- case 3:
- zero1.z = 1.2f;
- break;
- case 4:
- zero1.z = -1.2f;
- break;
- case 5:
- zero1.z = 1.8f;
- break;
- case 6:
- zero1.z = -1.8f;
- break;
- case 7:
- zero1.z = 2.4f;
- break;
- case 8:
- zero1.z = -2.4f;
- break;
- case 9:
- zero1.z = 3f;
- break;
- case 10:
- zero1.z = -3f;
- break;
- }
- }
- else
- {
- switch (index)
- {
- case 1:
- zero1.z = 0.5f;
- break;
- case 2:
- zero1.z = -0.5f;
- break;
- case 3:
- zero1.z = 1f;
- break;
- case 4:
- zero1.z = -1f;
- break;
- case 5:
- zero1.z = 1.5f;
- break;
- case 6:
- zero1.z = -1.5f;
- break;
- case 7:
- zero1.z = 2f;
- break;
- case 8:
- zero1.z = -2f;
- break;
- case 9:
- zero1.z = 2.5f;
- break;
- case 10:
- zero1.z = -2.5f;
- break;
- case 11:
- zero1.z = 3f;
- break;
- case 12:
- zero1.z = -3f;
- break;
- case 13:
- zero1.z = 3.5f;
- break;
- }
- }
- maidArray[index].SetPos(zero1);
- maidArray[index].SetRot(zero2);
- if (index >= 14)
- maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
- }
- break;
- case 3:
- for (int index = 0; index < maidCnt; ++index)
- {
- Vector3 zero1 = Vector3.zero;
- Vector3 zero2 = Vector3.zero;
- float num = 0.5f;
- if (maidCnt > 11)
- num = 0.25f;
- else if (maidCnt > 9)
- num = 0.32f;
- else if (maidCnt > 7)
- num = 0.4f;
- switch (index)
- {
- case 1:
- zero1.x = -num;
- zero1.z = num;
- break;
- case 2:
- zero1.x = num;
- zero1.z = -num;
- break;
- case 3:
- zero1.x = (float) (-(double) num * 2.0);
- zero1.z = num * 2f;
- break;
- case 4:
- zero1.x = num * 2f;
- zero1.z = (float) (-(double) num * 2.0);
- break;
- case 5:
- zero1.x = (float) (-(double) num * 3.0);
- zero1.z = num * 3f;
- break;
- case 6:
- zero1.x = num * 3f;
- zero1.z = (float) (-(double) num * 3.0);
- break;
- case 7:
- zero1.x = (float) (-(double) num * 4.0);
- zero1.z = num * 4f;
- break;
- case 8:
- zero1.x = num * 4f;
- zero1.z = (float) (-(double) num * 4.0);
- break;
- case 9:
- zero1.x = (float) (-(double) num * 5.0);
- zero1.z = num * 5f;
- break;
- case 10:
- zero1.x = num * 5f;
- zero1.z = (float) (-(double) num * 5.0);
- break;
- case 11:
- zero1.x = (float) (-(double) num * 6.0);
- zero1.z = num * 6f;
- break;
- case 12:
- zero1.x = num * 6f;
- zero1.z = (float) (-(double) num * 6.0);
- break;
- case 13:
- zero1.x = (float) (-(double) num * 7.0);
- zero1.z = num * 7f;
- break;
- }
- maidArray[index].SetPos(zero1);
- maidArray[index].SetRot(zero2);
- if (index >= 14)
- maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
- }
- break;
- case 4:
- for (int index = 0; index < maidCnt; ++index)
- {
- Vector3 zero1 = Vector3.zero;
- Vector3 zero2 = Vector3.zero;
- float num = (float) (0.400000005960464 + 0.0799999982118607 * (double) maidCnt);
- zero1.x = num * (float) Math.Cos(Math.PI / 180.0 * (double) (90 + 360 * index / maidCnt));
- zero1.z = num * (float) Math.Sin(Math.PI / 180.0 * (double) (90 + 360 * index / maidCnt));
- maidArray[index].SetPos(zero1);
- zero2.y = (float) (Math.Atan2((double) zero1.x, (double) zero1.z) * 180.0 / Math.PI);
- maidArray[index].SetRot(zero2);
- }
- break;
- case 5:
- for (int index = 0; index < maidCnt; ++index)
- {
- Vector3 zero1 = Vector3.zero;
- Vector3 zero2 = Vector3.zero;
- float num = (float) (0.400000005960464 + 0.0799999982118607 * (double) maidCnt);
- zero1.x = num * (float) Math.Cos(Math.PI / 180.0 * (double) (90 + 360 * index / maidCnt));
- zero1.z = num * (float) Math.Sin(Math.PI / 180.0 * (double) (90 + 360 * index / maidCnt));
- maidArray[index].SetPos(zero1);
- zero2.y = (float) (Math.Atan2((double) zero1.x, (double) zero1.z) * 180.0 / Math.PI) + 180f;
- maidArray[index].SetRot(zero2);
- }
- break;
- case 6:
- for (int index = 0; index < maidCnt; ++index)
- {
- Vector3 zero1 = Vector3.zero;
- Vector3 zero2 = Vector3.zero;
- float num = 0.0f;
- if (maidCnt > 9)
- num = -0.4f;
- else if (maidCnt > 7)
- num = -0.2f;
- switch (index)
- {
- case 0:
- zero1.z = 0.3f;
- break;
- case 1:
- zero1.x = -0.9f;
- zero1.z = -0.4f;
- zero2.y = 40f;
- break;
- case 2:
- zero1.x = 0.9f;
- zero1.z = -0.4f;
- zero2.y = -40f;
- break;
- case 3:
- zero1.x = -0.4f;
- zero1.z = -0.8f;
- zero2.y = 20f;
- break;
- case 4:
- zero1.x = 0.4f;
- zero1.z = -0.8f;
- zero2.y = -20f;
- break;
- case 5:
- zero1.x = -1.2f;
- zero1.z = 0.1f;
- zero2.y = 60f;
- break;
- case 6:
- zero1.x = 1.2f;
- zero1.z = 0.1f;
- zero2.y = -60f;
- break;
- case 7:
- zero1.x = -1.5f;
- zero1.z = 0.6f;
- zero2.y = 80f;
- break;
- case 8:
- zero1.x = 1.5f;
- zero1.z = 0.6f;
- zero2.y = -80f;
- break;
- case 9:
- zero1.x = -1.6f;
- zero1.z = 1.15f;
- zero2.y = 100f;
- break;
- case 10:
- zero1.x = 1.6f;
- zero1.z = 1.15f;
- zero2.y = -100f;
- break;
- case 11:
- zero1.x = -1.6f;
- zero1.z = 1.65f;
- zero2.y = 110f;
- break;
- case 12:
- zero1.x = 1.65f;
- zero1.z = 1.65f;
- zero2.y = -110f;
- break;
- case 13:
- zero1.x = -1.65f;
- zero1.z = 2.15f;
- zero2.y = 120f;
- break;
- }
- if (index > 0)
- zero1.z += num;
- else
- zero1.z -= num;
- maidArray[index].SetPos(zero1);
- maidArray[index].SetRot(zero2);
- if (index >= 14)
- maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
- }
- break;
- case 7:
- for (int index = 0; index < maidCnt; ++index)
- {
- Vector3 zero1 = Vector3.zero;
- Vector3 zero2 = Vector3.zero;
- float num = 0.0f;
- if (maidCnt > 11)
- num = 0.6f;
- else if (maidCnt > 9)
- num = 0.4f;
- else if (maidCnt > 7)
- num = 0.2f;
- switch (index)
- {
- case 0:
- zero1.z = 0.8f;
- break;
- case 1:
- zero1.x = -0.45f;
- zero1.z = 0.3f;
- zero2.y = -10f;
- break;
- case 2:
- zero1.x = 0.45f;
- zero1.z = 0.3f;
- zero2.y = 10f;
- break;
- case 3:
- zero1.x = -0.8f;
- zero1.z = -0.2f;
- zero2.y = -20f;
- break;
- case 4:
- zero1.x = 0.8f;
- zero1.z = -0.2f;
- zero2.y = 20f;
- break;
- case 5:
- zero1.x = -1.2f;
- zero1.z = -0.75f;
- zero2.y = -30f;
- break;
- case 6:
- zero1.x = 1.2f;
- zero1.z = -0.75f;
- zero2.y = 30f;
- break;
- case 7:
- zero1.x = -1.6f;
- zero1.z = -1.25f;
- zero2.y = -40f;
- break;
- case 8:
- zero1.x = 1.6f;
- zero1.z = -1.25f;
- zero2.y = 40f;
- break;
- case 9:
- zero1.x = -2f;
- zero1.z = -1.75f;
- zero2.y = -50f;
- break;
- case 10:
- zero1.x = 2f;
- zero1.z = -1.75f;
- zero2.y = 50f;
- break;
- case 11:
- zero1.x = -2.4f;
- zero1.z = -2.25f;
- zero2.y = -60f;
- break;
- case 12:
- zero1.x = 2.4f;
- zero1.z = -2.25f;
- zero2.y = 60f;
- break;
- case 13:
- zero1.x = -2.8f;
- zero1.z = -2.75f;
- zero2.y = -70f;
- break;
- }
- zero1.z += num;
- maidArray[index].SetPos(zero1);
- maidArray[index].SetRot(zero2);
- if (index >= 14)
- maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
- }
- break;
- case 8:
- for (int index = 0; index < maidCnt; ++index)
- {
- Vector3 zero1 = Vector3.zero;
- Vector3 zero2 = Vector3.zero;
- float num = 0.0f;
- if (maidCnt > 11)
- num = -0.6f;
- else if (maidCnt > 9)
- num = -0.4f;
- else if (maidCnt > 7)
- num = -0.2f;
- switch (index)
- {
- case 0:
- zero1.z = -0.75f;
- break;
- case 1:
- zero1.x = -0.45f;
- zero1.z = -0.2f;
- zero2.y = 20f;
- break;
- case 2:
- zero1.x = 0.45f;
- zero1.z = -0.2f;
- zero2.y = -20f;
- break;
- case 3:
- zero1.x = -0.8f;
- zero1.z = 0.3f;
- zero2.y = 35f;
- break;
- case 4:
- zero1.x = 0.8f;
- zero1.z = 0.3f;
- zero2.y = -35f;
- break;
- case 5:
- zero1.x = -1.2f;
- zero1.z = 0.8f;
- zero2.y = 50f;
- break;
- case 6:
- zero1.x = 1.2f;
- zero1.z = 0.8f;
- zero2.y = -50f;
- break;
- case 7:
- zero1.x = -1.6f;
- zero1.z = 1.3f;
- zero2.y = 65f;
- break;
- case 8:
- zero1.x = 1.6f;
- zero1.z = 1.3f;
- zero2.y = -65f;
- break;
- case 9:
- zero1.x = -2f;
- zero1.z = 1.8f;
- zero2.y = 80f;
- break;
- case 10:
- zero1.x = 2f;
- zero1.z = 1.8f;
- zero2.y = -80f;
- break;
- case 11:
- zero1.x = -2.4f;
- zero1.z = 2.3f;
- zero2.y = 90f;
- break;
- case 12:
- zero1.x = 2.4f;
- zero1.z = 2.3f;
- zero2.y = -90f;
- break;
- case 13:
- zero1.x = -2.8f;
- zero1.z = 2.8f;
- zero2.y = 100f;
- break;
- }
- zero1.z += num;
- maidArray[index].SetPos(zero1);
- maidArray[index].SetRot(zero2);
- if (index >= 14)
- maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
- }
- break;
- case 9:
- for (int index = 0; index < maidCnt; ++index)
- {
- Vector3 zero1 = Vector3.zero;
- Vector3 zero2 = Vector3.zero;
- float num = 1f;
- if (maidCnt > 9)
- num = 0.84f;
- else if (maidCnt > 7)
- num = 0.92f;
- switch (index)
- {
- case 0:
- zero1.z = 0.0f;
- break;
- case 1:
- zero1.x = -0.5f;
- zero1.z = -0.5f;
- break;
- case 2:
- zero1.x = 0.5f;
- zero1.z = -0.5f;
- break;
- case 3:
- zero1.x = -1f;
- zero1.z = 0.2f;
- break;
- case 4:
- zero1.x = 1f;
- zero1.z = 0.2f;
- break;
- case 5:
- zero1.x = -1.5f;
- zero1.z = -0.5f;
- break;
- case 6:
- zero1.x = 1.5f;
- zero1.z = -0.5f;
- break;
- case 7:
- zero1.x = -2f;
- zero1.z = 0.2f;
- break;
- case 8:
- zero1.x = 2f;
- zero1.z = 0.2f;
- break;
- case 9:
- zero1.x = -2.5f;
- zero1.z = -0.5f;
- break;
- case 10:
- zero1.x = 2.5f;
- zero1.z = -0.5f;
- break;
- case 11:
- zero1.x = -3f;
- zero1.z = 0.2f;
- break;
- case 12:
- zero1.x = 3f;
- zero1.z = 0.2f;
- break;
- case 13:
- zero1.x = -3.5f;
- zero1.z = -0.5f;
- break;
- }
- zero1.x *= num;
- maidArray[index].SetPos(zero1);
- maidArray[index].SetRot(zero2);
- if (index >= 14)
- maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
- }
- break;
- case 10:
- for (int index = 0; index < maidCnt; ++index)
- {
- Vector3 zero1 = Vector3.zero;
- Vector3 zero2 = Vector3.zero;
- float num = 1f;
- if (maidCnt > 9)
- num = 0.84f;
- else if (maidCnt > 7)
- num = 0.92f;
- switch (index)
- {
- case 0:
- zero1.z = -0.4f;
- break;
- case 1:
- zero1.x = -0.5f;
- zero1.z = 0.2f;
- break;
- case 2:
- zero1.x = 0.5f;
- zero1.z = 0.2f;
- break;
- case 3:
- zero1.x = -1f;
- zero1.z = -0.5f;
- break;
- case 4:
- zero1.x = 1f;
- zero1.z = -0.5f;
- break;
- case 5:
- zero1.x = -1.5f;
- zero1.z = 0.2f;
- break;
- case 6:
- zero1.x = 1.5f;
- zero1.z = 0.2f;
- break;
- case 7:
- zero1.x = -2f;
- zero1.z = -0.5f;
- break;
- case 8:
- zero1.x = 2f;
- zero1.z = -0.5f;
- break;
- case 9:
- zero1.x = -2.5f;
- zero1.z = 0.2f;
- break;
- case 10:
- zero1.x = 2.5f;
- zero1.z = 0.2f;
- break;
- case 11:
- zero1.x = -3f;
- zero1.z = -0.5f;
- break;
- case 12:
- zero1.x = 3f;
- zero1.z = -0.5f;
- break;
- case 13:
- zero1.x = -3.5f;
- zero1.z = 0.2f;
- break;
- }
- zero1.x *= num;
- maidArray[index].SetPos(zero1);
- maidArray[index].SetRot(zero2);
- if (index >= 14)
- maidArray[index].SetPos(new Vector3(0.0f, 0.0f, 0.7f));
- }
- break;
- }
- for (int index = 0; index < maxMaidCnt; ++index)
- {
- if (!isLock[index] && ((Object) maidArray[index] != (Object) null && maidArray[index].Visible))
- {
- maidArray[index].CrossFade(poseArray[0] + ".anm", false, true, false, 0.0f, 1f);
- maidArray[index].SetAutoTwistAll(true);
- }
- }
- }
- private void GuiFunc3(int winID)
- {
- GUIStyle style1 = (GUIStyle) "label";
- style1.fontSize = this.GetPix(12);
- style1.alignment = TextAnchor.UpperLeft;
- GUIStyle style2 = (GUIStyle) "button";
- style2.fontSize = this.GetPix(16);
- GUI.Label(new Rect((float) this.GetPix(8), (float) this.GetPix(4), (float) this.GetPix(80), (float) this.GetPix(25)),
- "名前",
- style1);
- inName = GUI.TextField(new Rect((float) this.GetPix(35),
- (float) this.GetPix(4),
- (float) this.GetPix(120),
- (float) this.GetPix(20)),
- inName);
- GUI.Label(new Rect((float) this.GetPix(180), (float) this.GetPix(4), (float) this.GetPix(100), (float) this.GetPix(25)),
- "サイズ",
- style1);
- fontSize = (int) GUI.HorizontalSlider(new Rect((float) this.GetPix(220),
- (float) this.GetPix(9),
- (float) this.GetPix(100),
- (float) this.GetPix(20)),
- (float) fontSize,
- 25f,
- 60f);
- if (fontSize != mFontSize)
- {
- mFontSize = fontSize;
- GameObject gameObject = GameObject.Find("__GameMain__/SystemUI Root").transform.Find("MessageWindowPanel").gameObject;
- MessageClass messageClass = new MessageClass(gameObject, GameMain.Instance.ScriptMgr.adv_kag.MessageWindowMgr);
- SetFieldValue2<UILabel, int>(UTY.GetChildObject(gameObject, "MessageViewer/MsgParent/Message", false)
- .GetComponent<UILabel>(),
- "mFontSize",
- fontSize);
- }
- GUI.Label(new Rect((float) this.GetPix(325), (float) this.GetPix(4), (float) this.GetPix(100), (float) this.GetPix(25)),
- fontSize.ToString() + "pt",
- style1);
- inText = GUI.TextArea(new Rect((float) this.GetPix(8),
- (float) this.GetPix(26),
- rectWin2.width - (float) this.GetPix(15),
- (float) this.GetPix(52)),
- inText,
- 300);
- if (!GUI.Button(new Rect((float) this.GetPix(8), (float) this.GetPix(82), (float) this.GetPix(60), (float) this.GetPix(20)),
- "決定",
- style2))
- return;
- isMessage = true;
- bGuiMessage = false;
- GameObject gameObject1 = GameObject.Find("__GameMain__/SystemUI Root").transform.Find("MessageWindowPanel").gameObject;
- MessageWindowMgr messageWindowMgr = GameMain.Instance.ScriptMgr.adv_kag.MessageWindowMgr;
- messageWindowMgr.OpenMessageWindowPanel();
- MessageClass inst = new MessageClass(gameObject1, messageWindowMgr);
- UILabel component = UTY.GetChildObject(gameObject1, "MessageViewer/MsgParent/Message", false).GetComponent<UILabel>();
- component.ProcessText();
- SetFieldValue2<UILabel, int>(component, "mFontSize", fontSize);
- SetFieldValue5<MessageClass, UILabel>(inst, "message_label_", component);
- inst.SetText(inName, inText, "", 0);
- inst.FinishChAnime();
- }
- }
- }
|