MultipleMaids.Gui.cs 423 KB

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