diff --git a/content/out_0.json b/content/out_0.json index d01e9f9..159deb1 100755 --- a/content/out_0.json +++ b/content/out_0.json @@ -1 +1 @@ -{"sprites":[{"name":"button_bg","tags":[{"from":0,"to":0,"name":"idle"},{"from":1,"to":1,"name":"hover"},{"from":2,"to":2,"name":"click"},{"from":3,"to":3,"name":"disabled"}],"packs":[{"frame":{"x":4,"y":4,"w":366,"h":200},"packed":{"x":1320,"y":2909,"w":374,"h":208},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":366,"h":200},"packed":{"x":1694,"y":2909,"w":374,"h":208},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":366,"h":200},"packed":{"x":2068,"y":2909,"w":374,"h":208},"meta":{"duration":300}},{"frame":{"x":4,"y":4,"w":366,"h":200},"packed":{"x":2442,"y":2909,"w":374,"h":208},"meta":{"duration":100}}]},{"name":"card","tags":[{"from":0,"to":0,"name":"idle"},{"from":1,"to":1,"name":"hover"},{"from":2,"to":4,"name":"click"},{"from":5,"to":7,"name":"flip"},{"from":8,"to":8,"name":"back_idle"},{"from":9,"to":9,"name":"back_hover"},{"from":10,"to":10,"name":"back_click"},{"from":11,"to":13,"name":"back_flip"},{"from":14,"to":15,"name":"drag"},{"from":16,"to":17,"name":"back_drag"},{"from":18,"to":18,"name":"wait"},{"from":19,"to":19,"name":"shadow"}],"packs":[{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":1578,"y":821,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":1790,"y":821,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":2002,"y":821,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":2214,"y":821,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":2426,"y":821,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":2638,"y":821,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":2850,"y":821,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":0,"y":2656,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":212,"y":2656,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":424,"y":2656,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":636,"y":2656,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":848,"y":2656,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":1060,"y":2656,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":1272,"y":2656,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":1484,"y":2656,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":1696,"y":2656,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":1908,"y":2656,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":2120,"y":2656,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":2332,"y":2656,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":2544,"y":2656,"w":212,"h":253},"meta":{"duration":100}}]},{"name":"dropdown_bg","tags":[{"from":0,"to":0,"name":"idle"},{"from":1,"to":1,"name":"hover"}],"packs":[{"frame":{"x":4,"y":4,"w":510,"h":172},"packed":{"x":0,"y":3140,"w":518,"h":180},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":510,"h":172},"packed":{"x":518,"y":3140,"w":518,"h":180},"meta":{"duration":100}}]},{"name":"hmg_bg","tags":[{"from":0,"to":0,"name":"idle"},{"from":1,"to":1,"name":"hover"},{"from":2,"to":2,"name":"open"},{"from":3,"to":3,"name":"open_hover"}],"packs":[{"frame":{"x":4,"y":4,"w":240,"h":140},"packed":{"x":448,"y":3320,"w":248,"h":148},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":240,"h":140},"packed":{"x":696,"y":3320,"w":248,"h":148},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":240,"h":140},"packed":{"x":944,"y":3320,"w":248,"h":148},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":240,"h":140},"packed":{"x":1192,"y":3320,"w":248,"h":148},"meta":{"duration":100}}]},{"name":"main_bg","tags":[{"from":0,"to":0,"name":"idle"}],"packs":[{"frame":{"x":4,"y":4,"w":1570,"h":1080},"packed":{"x":0,"y":0,"w":1578,"h":1088},"meta":{"duration":100}}]},{"name":"main_card_bg","tags":[{"from":0,"to":0,"name":"solitaire"},{"from":1,"to":1,"name":"solitaire_hover"},{"from":2,"to":2,"name":"fourtimes"},{"from":3,"to":3,"name":"fourtimes_hover"},{"from":4,"to":4,"name":"octopus"},{"from":5,"to":5,"name":"octopus_hover"}],"packs":[{"frame":{"x":4,"y":4,"w":481,"h":739},"packed":{"x":1271,"y":1088,"w":489,"h":747},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":481,"h":739},"packed":{"x":1760,"y":1088,"w":489,"h":747},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":481,"h":739},"packed":{"x":2249,"y":1088,"w":489,"h":747},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":481,"h":739},"packed":{"x":0,"y":1909,"w":489,"h":747},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":481,"h":739},"packed":{"x":489,"y":1909,"w":489,"h":747},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":481,"h":739},"packed":{"x":978,"y":1909,"w":489,"h":747},"meta":{"duration":100}}]},{"name":"main_settings_bg","tags":[{"from":0,"to":0,"name":"idle"},{"from":1,"to":1,"name":"hover"}],"packs":[{"frame":{"x":4,"y":4,"w":652,"h":223},"packed":{"x":0,"y":2909,"w":660,"h":231},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":652,"h":223},"packed":{"x":660,"y":2909,"w":660,"h":231},"meta":{"duration":100}}]},{"name":"main_title_bg","tags":[{"from":0,"to":0,"name":"idle"}],"packs":[{"frame":{"x":4,"y":4,"w":780,"h":560},"packed":{"x":1822,"y":1909,"w":788,"h":568},"meta":{"duration":100}}]},{"name":"menu_bar","tags":[{"from":0,"to":0,"name":"idle"}],"packs":[{"frame":{"x":4,"y":4,"w":240,"h":160},"packed":{"x":1036,"y":3140,"w":248,"h":168},"meta":{"duration":100}}]},{"name":"navigation_bg","tags":[{"from":0,"to":0,"name":"idle"},{"from":1,"to":1,"name":"hover"}],"packs":[{"frame":{"x":4,"y":4,"w":593,"h":157},"packed":{"x":1284,"y":3140,"w":601,"h":165},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":593,"h":157},"packed":{"x":1885,"y":3140,"w":601,"h":165},"meta":{"duration":100}}]},{"name":"panel_bg_nine_slice","tags":[{"from":0,"to":0,"name":"idle"}],"packs":[{"frame":{"x":4,"y":4,"w":400,"h":400},"packed":{"x":2610,"y":1909,"w":408,"h":408},"meta":{"duration":100}}]},{"name":"rank","tags":[],"packs":[{"frame":{"x":4,"y":4,"w":64,"h":64},"packed":{"x":1440,"y":3320,"w":72,"h":72},"meta":{"duration":100}}]},{"name":"recycle","tags":[{"from":0,"to":0,"name":"idle"},{"from":1,"to":3,"name":"hover"}],"packs":[{"frame":{"x":4,"y":4,"w":240,"h":300},"packed":{"x":2738,"y":1088,"w":248,"h":308},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":240,"h":300},"packed":{"x":2738,"y":1396,"w":248,"h":308},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":240,"h":300},"packed":{"x":2849,"y":0,"w":248,"h":308},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":240,"h":300},"packed":{"x":2849,"y":308,"w":248,"h":308},"meta":{"duration":100}}]},{"name":"side_menu_bg","tags":[{"from":0,"to":0,"name":"idle"}],"packs":[{"frame":{"x":4,"y":4,"w":347,"h":659},"packed":{"x":1467,"y":1909,"w":355,"h":667},"meta":{"duration":100}}]},{"name":"suit","tags":[{"from":0,"to":0,"name":"spades"},{"from":1,"to":1,"name":"hearts"},{"from":2,"to":2,"name":"diamonds"},{"from":3,"to":3,"name":"clubs"}],"packs":[{"frame":{"x":4,"y":4,"w":64,"h":64},"packed":{"x":1512,"y":3320,"w":72,"h":72},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":64,"h":64},"packed":{"x":1584,"y":3320,"w":72,"h":72},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":64,"h":64},"packed":{"x":1656,"y":3320,"w":72,"h":72},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":64,"h":64},"packed":{"x":1728,"y":3320,"w":72,"h":72},"meta":{"duration":100}}]},{"name":"swiggle","tags":[{"from":0,"to":0,"name":"idle"},{"from":1,"to":1,"name":"small"}],"packs":[{"frame":{"x":4,"y":4,"w":1263,"h":813},"packed":{"x":1578,"y":0,"w":1271,"h":821},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":1263,"h":813},"packed":{"x":0,"y":1088,"w":1271,"h":821},"meta":{"duration":100}}]},{"name":"tab3_bg","tags":[{"from":0,"to":0,"name":"idle"},{"from":1,"to":1,"name":"hover"},{"from":2,"to":2,"name":"active"}],"packs":[{"frame":{"x":4,"y":4,"w":440,"h":150},"packed":{"x":2486,"y":3140,"w":448,"h":158},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":440,"h":150},"packed":{"x":2610,"y":2317,"w":448,"h":158},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":440,"h":150},"packed":{"x":0,"y":3320,"w":448,"h":158},"meta":{"duration":100}}]}]} \ No newline at end of file +{"sprites":[{"name":"button_bg","tags":[{"from":0,"to":0,"name":"idle"},{"from":1,"to":1,"name":"hover"},{"from":2,"to":2,"name":"click"},{"from":3,"to":3,"name":"disabled"}],"packs":[{"frame":{"x":4,"y":4,"w":366,"h":200},"packed":{"x":2738,"y":1594,"w":374,"h":208},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":366,"h":200},"packed":{"x":0,"y":2909,"w":374,"h":208},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":366,"h":200},"packed":{"x":374,"y":2909,"w":374,"h":208},"meta":{"duration":300}},{"frame":{"x":4,"y":4,"w":366,"h":200},"packed":{"x":748,"y":2909,"w":374,"h":208},"meta":{"duration":100}}]},{"name":"card","tags":[{"from":0,"to":0,"name":"idle"},{"from":1,"to":1,"name":"hover"},{"from":2,"to":4,"name":"click"},{"from":5,"to":7,"name":"flip"},{"from":8,"to":8,"name":"back_idle"},{"from":9,"to":9,"name":"back_hover"},{"from":10,"to":10,"name":"back_click"},{"from":11,"to":13,"name":"back_flip"},{"from":14,"to":15,"name":"drag"},{"from":16,"to":17,"name":"back_drag"},{"from":18,"to":18,"name":"wait"},{"from":19,"to":19,"name":"shadow"}],"packs":[{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":2738,"y":1088,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":2738,"y":1341,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":2849,"y":0,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":2849,"y":253,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":2849,"y":506,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":1578,"y":821,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":1790,"y":821,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":2002,"y":821,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":2214,"y":821,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":2426,"y":821,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":2638,"y":821,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":2850,"y":821,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":0,"y":2656,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":212,"y":2656,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":424,"y":2656,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":636,"y":2656,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":848,"y":2656,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":1060,"y":2656,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":1272,"y":2656,"w":212,"h":253},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":204,"h":245},"packed":{"x":1484,"y":2656,"w":212,"h":253},"meta":{"duration":100}}]},{"name":"dropdown_bg","tags":[{"from":0,"to":0,"name":"idle"},{"from":1,"to":1,"name":"hover"}],"packs":[{"frame":{"x":4,"y":4,"w":510,"h":172},"packed":{"x":1122,"y":2909,"w":518,"h":180},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":510,"h":172},"packed":{"x":1640,"y":2909,"w":518,"h":180},"meta":{"duration":100}}]},{"name":"hmg_bg","tags":[{"from":0,"to":0,"name":"idle"},{"from":1,"to":1,"name":"hover"},{"from":2,"to":2,"name":"open"},{"from":3,"to":3,"name":"open_hover"}],"packs":[{"frame":{"x":4,"y":4,"w":240,"h":140},"packed":{"x":2546,"y":3117,"w":248,"h":148},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":240,"h":140},"packed":{"x":2794,"y":3117,"w":248,"h":148},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":240,"h":140},"packed":{"x":2610,"y":2317,"w":248,"h":148},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":240,"h":140},"packed":{"x":2858,"y":2317,"w":248,"h":148},"meta":{"duration":100}}]},{"name":"main_bg","tags":[{"from":0,"to":0,"name":"idle"}],"packs":[{"frame":{"x":4,"y":4,"w":1570,"h":1080},"packed":{"x":0,"y":0,"w":1578,"h":1088},"meta":{"duration":100}}]},{"name":"main_card_bg","tags":[{"from":0,"to":0,"name":"solitaire"},{"from":1,"to":1,"name":"solitaire_hover"},{"from":2,"to":2,"name":"fourtimes"},{"from":3,"to":3,"name":"fourtimes_hover"},{"from":4,"to":4,"name":"octopus"},{"from":5,"to":5,"name":"octopus_hover"}],"packs":[{"frame":{"x":4,"y":4,"w":481,"h":739},"packed":{"x":1271,"y":1088,"w":489,"h":747},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":481,"h":739},"packed":{"x":1760,"y":1088,"w":489,"h":747},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":481,"h":739},"packed":{"x":2249,"y":1088,"w":489,"h":747},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":481,"h":739},"packed":{"x":0,"y":1909,"w":489,"h":747},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":481,"h":739},"packed":{"x":489,"y":1909,"w":489,"h":747},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":481,"h":739},"packed":{"x":978,"y":1909,"w":489,"h":747},"meta":{"duration":100}}]},{"name":"main_settings_bg","tags":[{"from":0,"to":0,"name":"idle"},{"from":1,"to":1,"name":"hover"}],"packs":[{"frame":{"x":4,"y":4,"w":652,"h":223},"packed":{"x":1696,"y":2656,"w":660,"h":231},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":652,"h":223},"packed":{"x":2356,"y":2656,"w":660,"h":231},"meta":{"duration":100}}]},{"name":"main_title_bg","tags":[{"from":0,"to":0,"name":"idle"}],"packs":[{"frame":{"x":4,"y":4,"w":780,"h":560},"packed":{"x":1822,"y":1909,"w":788,"h":568},"meta":{"duration":100}}]},{"name":"menu_bar","tags":[{"from":0,"to":0,"name":"idle"}],"packs":[{"frame":{"x":4,"y":4,"w":240,"h":160},"packed":{"x":2158,"y":2909,"w":248,"h":168},"meta":{"duration":100}}]},{"name":"navigation_bg","tags":[{"from":0,"to":0,"name":"idle"},{"from":1,"to":1,"name":"hover"}],"packs":[{"frame":{"x":4,"y":4,"w":593,"h":157},"packed":{"x":0,"y":3117,"w":601,"h":165},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":593,"h":157},"packed":{"x":601,"y":3117,"w":601,"h":165},"meta":{"duration":100}}]},{"name":"panel_bg_nine_slice","tags":[{"from":0,"to":0,"name":"idle"}],"packs":[{"frame":{"x":4,"y":4,"w":400,"h":400},"packed":{"x":2610,"y":1909,"w":408,"h":408},"meta":{"duration":100}}]},{"name":"rank","tags":[],"packs":[{"frame":{"x":4,"y":4,"w":64,"h":64},"packed":{"x":3042,"y":3117,"w":72,"h":72},"meta":{"duration":100}}]},{"name":"recycle","tags":[{"from":0,"to":0,"name":"idle"},{"from":1,"to":1,"name":"hover"},{"from":2,"to":2,"name":"disabled"}],"packs":[{"frame":{"x":4,"y":4,"w":180,"h":160},"packed":{"x":2406,"y":2909,"w":188,"h":168},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":180,"h":160},"packed":{"x":2594,"y":2909,"w":188,"h":168},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":180,"h":160},"packed":{"x":2782,"y":2909,"w":188,"h":168},"meta":{"duration":100}}]},{"name":"side_menu_bg","tags":[{"from":0,"to":0,"name":"idle"}],"packs":[{"frame":{"x":4,"y":4,"w":347,"h":659},"packed":{"x":1467,"y":1909,"w":355,"h":667},"meta":{"duration":100}}]},{"name":"suit","tags":[{"from":0,"to":0,"name":"spades"},{"from":1,"to":1,"name":"hearts"},{"from":2,"to":2,"name":"diamonds"},{"from":3,"to":3,"name":"clubs"}],"packs":[{"frame":{"x":4,"y":4,"w":64,"h":64},"packed":{"x":3042,"y":3189,"w":72,"h":72},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":64,"h":64},"packed":{"x":2970,"y":2909,"w":72,"h":72},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":64,"h":64},"packed":{"x":3042,"y":2909,"w":72,"h":72},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":64,"h":64},"packed":{"x":2970,"y":2981,"w":72,"h":72},"meta":{"duration":100}}]},{"name":"swiggle","tags":[{"from":0,"to":0,"name":"idle"},{"from":1,"to":1,"name":"small"}],"packs":[{"frame":{"x":4,"y":4,"w":1263,"h":813},"packed":{"x":1578,"y":0,"w":1271,"h":821},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":1263,"h":813},"packed":{"x":0,"y":1088,"w":1271,"h":821},"meta":{"duration":100}}]},{"name":"tab3_bg","tags":[{"from":0,"to":0,"name":"idle"},{"from":1,"to":1,"name":"hover"},{"from":2,"to":2,"name":"active"}],"packs":[{"frame":{"x":4,"y":4,"w":440,"h":150},"packed":{"x":1202,"y":3117,"w":448,"h":158},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":440,"h":150},"packed":{"x":1650,"y":3117,"w":448,"h":158},"meta":{"duration":100}},{"frame":{"x":4,"y":4,"w":440,"h":150},"packed":{"x":2098,"y":3117,"w":448,"h":158},"meta":{"duration":100}}]}]} \ No newline at end of file diff --git a/content/out_0.png b/content/out_0.png index b238878..3847ee0 100755 Binary files a/content/out_0.png and b/content/out_0.png differ diff --git a/content/sprites/recycle.ase b/content/sprites/recycle.ase index 66f9bbb..ed076cb 100755 Binary files a/content/sprites/recycle.ase and b/content/sprites/recycle.ase differ diff --git a/screens/solitaire.ase b/screens/solitaire.ase index e20d0bb..5de7d12 100755 Binary files a/screens/solitaire.ase and b/screens/solitaire.ase differ diff --git a/src/solitaire_back.ts b/src/solitaire_back.ts index 9fcee6d..5722f0d 100644 --- a/src/solitaire_back.ts +++ b/src/solitaire_back.ts @@ -206,7 +206,7 @@ export class Recycle extends Command { resolve() { this.pov.recycle() - this.game.recycle() + this.game.recycle(this.pov.max_recycles - this.pov.nb_recycles) } } diff --git a/src/solitaire_game.ts b/src/solitaire_game.ts index 14ee85f..8445d2e 100644 --- a/src/solitaire_game.ts +++ b/src/solitaire_game.ts @@ -118,13 +118,35 @@ class RecycleView extends Play { return this._data as RecycleData } + disable() { + this.anim.play('disabled') + } + + enable() { + this.anim.play('idle') + } + + anim!: Anim + _init() { + let anim = this.make(Anim, Vec2.make(0, 0), { name: 'recycle' }) + this.anim = anim let self = this this.make(Clickable, Vec2.make(20, 20), { rect: Rect.make(0, 0, 140, 160), + on_hover() { + if (anim._animation !== 'disabled') { + anim.play('hover') + } + }, + on_hover_end() { + if (anim._animation !== 'disabled') { + anim.play('idle') + } + }, on_click() { self.data.on_recycle() } @@ -375,6 +397,9 @@ export class SolitaireGame extends Play { let { dealer, stock, tableus } = this + this.recycle_view.visible = false + this.recycle_view.enable() + let cards = [ ...stock.free(), ...tableus.flatMap(_ => _.free()) @@ -400,6 +425,10 @@ export class SolitaireGame extends Play { let { stock, tableus, cmd, pov } = this + if (pov.recycles_left === 0) { + this.recycle_view.disable() + } + this.settings_status.settings = pov.settings stock.add_stocks(pov.stock.stock.cards.map(card => @@ -437,6 +466,9 @@ export class SolitaireGame extends Play { hit_stock(cards: Array) { this.stock.hit(cards) + if (this.stock.can_recycle) { + this.recycle_view.visible = true + } } @@ -446,7 +478,11 @@ export class SolitaireGame extends Play { cant_recycle() { } - recycle() { + recycle(left: number) { + if (left === 0) { + this.recycle_view.disable() + } + this.recycle_view.visible = false this.stock.recycle() } @@ -503,6 +539,6 @@ export class SolitaireGame extends Play { game_started() { - console.log(this.solitaire_data.status) + //console.log(this.solitaire_data.status) } }