{"id":2715,"date":"2020-04-21T08:34:01","date_gmt":"2020-04-20T23:34:01","guid":{"rendered":"http:\/\/taki-lab.site\/bocci\/?p=2715"},"modified":"2020-04-21T08:34:05","modified_gmt":"2020-04-20T23:34:05","slug":"%e3%80%90c%e3%80%91%e3%80%90altseed%e3%80%91%e3%80%90%e6%95%b0%e7%8b%ac%e3%80%91%e3%83%91%e3%83%ac%e3%83%83%e3%83%88%e3%81%8b%e3%82%89%e6%95%b0%e5%ad%97%e3%82%92%e5%85%a5%e5%8a%9b%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/taki-lab.site\/bocci\/?p=2715","title":{"rendered":"\u3010C#\u3011\u3010ALTSEED\u3011\u3010\u6570\u72ec\u3011\u30d1\u30ec\u30c3\u30c8\u304b\u3089\u6570\u5b57\u3092\u5165\u529b\u3059\u308b"},"content":{"rendered":"\n<p>\u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-\u81ea\u5206\u3001\u307c\u3063\u3061\u3067\u3059\u304c\u4f55\u304b\uff1f\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"yyRS0Oc1Oz\"><a href=\"https:\/\/taki-lab.site\/bocci\/?p=2708\">\u3010C#\u3011\u3010ALTSEED\u3011\u3010\u6570\u72ec\u3011\u30d1\u30ec\u30c3\u30c8\u306b\u00d7\u3092\u8ffd\u52a0\u3002<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;\u3010C#\u3011\u3010ALTSEED\u3011\u3010\u6570\u72ec\u3011\u30d1\u30ec\u30c3\u30c8\u306b\u00d7\u3092\u8ffd\u52a0\u3002&#8221; &#8212; \u81ea\u5206\u3001\u307c\u3063\u3061\u3067\u3059\u304c\u4f55\u304b\uff1f\" src=\"https:\/\/taki-lab.site\/bocci\/?p=2708&#038;embed=true#?secret=zNDQ9COK4l#?secret=yyRS0Oc1Oz\" data-secret=\"yyRS0Oc1Oz\" width=\"474\" height=\"267\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>\u6700\u65b0\u30bd\u30fc\u30b9\u306f\u3053\u3061\u3089(gitHub)<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/takishita2nd\/sudokuGUI\">https:\/\/github.com\/takishita2nd\/sudokuGUI<\/a><\/p>\n\n\n\n<p>\u4eca\u56de\u3067\u30d1\u30ec\u30c3\u30c8\u51e6\u7406\u3092\u5b8c\u6210\u3055\u305b\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30d1\u30ec\u30c3\u30c8\u306e\u6570\u5b57\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u3089\u3001\u305d\u306e\u30d1\u30ec\u30c3\u30c8\u30de\u30b9\u306e\u6570\u5b57\u3092\u53d6\u5f97\u3057\u3066\u3001\u30d1\u30ec\u30c3\u30c8\u3092\u6d88\u53bb\u3057\u3001\u30de\u30b9\u306b\u6570\u5b57\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u306f\u3001\u30d1\u30ec\u30c3\u30c8\u306e\u3069\u306e\u30de\u30b9\u304c\u30af\u30ea\u30c3\u30af\u3055\u308c\u305f\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u306fSquareObject\u306b\u5b9f\u88c5\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    public bool isClick(asd.Vector2DF pos)\n    {\n        if (pos.X > _x &amp;&amp; pos.X &lt; _x + width\n            &amp;&amp; pos.Y > _y &amp;&amp; pos.Y &lt; _y + height)\n        {\n            return true;\n        }\n        else\n        {\n            return false;\n        }\n    }<\/code><\/pre>\n\n\n\n<p>\u3084\u3063\u3066\u3044\u308b\u3053\u3068\u306fupdateTexture()\u3068\u540c\u3058\u3067\u3001\u30de\u30a6\u30b9\u30ab\u30fc\u30bd\u30eb\u304c\u30de\u30b9\u306e\u4e2d\u306b\u3042\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u5b9a\u3057\u3066\u3001true\/false\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u3057\u3066\u3082\u3046\u4e00\u3064\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>        public int getValue()\n        {\n            return _value;\n        }\n<\/code><\/pre>\n\n\n\n<p>\u3053\u3063\u3061\u306f\u7279\u306b\u8aac\u660e\u306f\u5165\u3089\u306a\u3044\u3067\u3059\u3088\u306d\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u3092Palette\u30af\u30e9\u30b9\u306b\u5b9f\u88c5\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>        public int getClickValue(asd.Vector2DF pos)\n        {\n            for (int row = 0; row &lt; 3; row++)\n            {\n                for (int col = 0; col &lt; 3; col++)\n                {\n                    if(paletteSquareObjects&#91;row, col].isClick(pos) == true)\n                    {\n                        return paletteSquareObjects&#91;row, col].getValue();\n                    }\n                }\n            }\n            if (PaletteBatsuSquareObject.isClick(pos))\n            {\n                return 0;\n            }\n            return 0;\n        }\n<\/code><\/pre>\n\n\n\n<p>isClick()\u3067\u30de\u30a6\u30b9\u30ab\u30fc\u30bd\u30eb\u304c\u30de\u30b9\u306e\u4e2d\u306b\u3042\u308b\u304b\u3092\u78ba\u8a8d\u3057\u3066\u3001\u305d\u306e\u4e2d\u306b\u3042\u308c\u3070getValue()\u3067\u5024\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u3092\u00d7\u306b\u3082\u5b9f\u88c5\u3057\u3001\u3053\u3061\u3089\u306f\u7a7a\u767d\u3092\u610f\u5473\u3059\u308b0\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u3092sudokuUI\u306b\u5b9f\u88c5\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>            \/\/ Altseed\u304c\u9032\u884c\u53ef\u80fd\u304b\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3002\n            while (asd.Engine.DoEvents())\n            {\n                asd.Vector2DF pos = asd.Engine.Mouse.Position;\n                if (!mouseHold)\n                {\n                    for (int row = 0; row &lt; 9; row++)\n                    {\n                        for (int col = 0; col &lt; 9; col++)\n                        {\n                            squareObjects&#91;row, col].updateTexture(pos);\n                            if(squareObjects&#91;row, col].isClick(pos) == true)\n                            {\n                                clickedSquareObject = squareObjects&#91;row, col];\n                            }\n                        }\n                    }\n                }\n                else\n                {\n                    \/\/palette.updateTexture(pos);\n                }\n\n                if (asd.Engine.Mouse.LeftButton.ButtonState == asd.ButtonState.Push)\n                {\n                    if (mouseHold)\n                    {\n                        if (!palette.isClick(pos))\n                        {\n                            palette.hide();\n                            mouseHold = false;\n                        }\n                        else\n                        {\n                            int value = palette.getClickValue(pos);\n                            if(clickedSquareObject != null)\n                            {\n                                clickedSquareObject.setValue(value);\n                                palette.hide();\n                                mouseHold = false;\n                            }\n                        }\n                    }\n                    else\n                    {\n                        mouseHold = true;\n                        palette.show(pos);\n                        for (int row = 0; row &lt; 9; row++)\n                        {\n                            for (int col = 0; col &lt; 9; col++)\n                            {\n                                if (squareObjects&#91;row, col].isClick(pos) == true)\n                                {\n                                    clickedSquareObject = squareObjects&#91;row, col];\n                                }\n                            }\n                        }\n                    }\n                }\n<\/code><\/pre>\n\n\n\n<p>mouseHold==true\uff08\u30d1\u30ec\u30c3\u30c8\u8868\u793a\u4e2d\uff09\u3067\u3001\u30d1\u30ec\u30c3\u30c8\u304c\u30af\u30ea\u30c3\u30af\u3055\u308c\u305f\u5834\u5408\u3001\u5148\u307b\u3069\u5b9f\u88c5\u3057\u305fgetClickValue()\u3092\u4f7f\u7528\u3057\u3066\u3001\u6570\u5024\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>9\u00d79\u306e\u3069\u3053\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u304b\u3092\u899a\u3048\u3066\u304a\u304b\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u305f\u3081\u3001\u30d1\u30ec\u30c3\u30c8\u3092\u8868\u793a\u3059\u308b\u969b\u306b\u3001\u3069\u306e\u30de\u30b9\u3092\u30af\u30ea\u30c3\u30af\u3055\u308c\u305f\u304b\u3092\u899a\u3048\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u899a\u3048\u305f\u30de\u30b9\u306b\u5bfe\u3057\u3066\u3001\u30d1\u30ec\u30c3\u30c8\u304b\u3089\u53d6\u5f97\u3057\u305f\u6570\u5024\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3061\u306a\u307f\u306b\u3001palette.updateTexture(pos)\u3092\u30b3\u30e1\u30f3\u30c8\u5316\u3057\u3066\u3044\u308b\u306e\u306f\u3001\u30d1\u30ec\u30c3\u30c8\u306b\u3082\u30de\u30a6\u30b9\u30ab\u30fc\u30bd\u30eb\u3067\u30c6\u30af\u30b9\u30c1\u30e3\u3092\u9069\u7528\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001\u30d1\u30ec\u30c3\u30c8\u3092\u6d88\u3057\u305f\u3068\u304d\u306b\u30c6\u30af\u30b9\u30c1\u30e3\u304c\u6b8b\u3063\u3066\u3057\u307e\u3046\u304b\u3089\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u591a\u5206\u3001\u30a8\u30f3\u30b8\u30f3\u306e\u30d0\u30b0\u3002<\/p>\n\n\n\n<p>\u306a\u306e\u3067\u3001\u30d1\u30ec\u30c3\u30c8\u306b\u306f\u30de\u30a6\u30b9\u30ab\u30fc\u30bd\u30eb\u3067\u30c6\u30af\u30b9\u30c1\u30e3\u9069\u7528\u306f\u8ae6\u3081\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video controls src=\"http:\/\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/04\/20200421075018.mp4\"><\/video><\/figure>\n\n\n\n<p>\u3060\u3044\u3076\u5f62\u306b\u306a\u3063\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u5b8c\u6210\u307e\u3067\u3042\u3068\u5c11\u3057\u3067\u3059\u3002<\/p>\n\n\n\n<a href=\"\/\/blog.with2.net\/link\/?2023426:1010\" target=\"_blank\" rel=\"noopener noreferrer\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2019\/12\/03a6eee54039f74ded0b8f7548b1868f.png?w=474\" title=\"\u30d1\u30bd\u30b3\u30f3\u30e9\u30f3\u30ad\u30f3\u30b0\"><\/a>\n\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089\u3002 \u6700\u65b0\u30bd\u30fc\u30b9\u306f\u3053\u3061\u3089(gitHub) https:\/\/github.com\/takishita2nd\/sudokuGUI \u4eca\u56de\u3067\u30d1\u30ec\u30c3\u30c8\u51e6\u7406\u3092\u5b8c\u6210\u3055\u305b\u307e\u3059\u3002 \u30d1\u30ec\u30c3\u30c8\u306e\u6570\u5b57\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u3089\u3001\u305d\u306e\u30d1 &hellip; <a href=\"https:\/\/taki-lab.site\/bocci\/?p=2715\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">\u3010C#\u3011\u3010ALTSEED\u3011\u3010\u6570\u72ec\u3011\u30d1\u30ec\u30c3\u30c8\u304b\u3089\u6570\u5b57\u3092\u5165\u529b\u3059\u308b<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"\u3010C#\u3011\u3010ALTSEED\u3011\u3010\u6570\u72ec\u3011\u30d1\u30ec\u30c3\u30c8\u304b\u3089\u6570\u5b57\u3092\u5165\u529b\u3059\u308b\n#TechCommit\n","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[174,3],"tags":[184,137,175],"class_list":["post-2715","post","type-post","status-publish","format-standard","hentry","category-c","category-3","tag-altseed","tag-c","tag-175"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8SDbY-HN","jetpack-related-posts":[{"id":2926,"url":"https:\/\/taki-lab.site\/bocci\/?p=2926","url_meta":{"origin":2715,"position":0},"title":"\u3010C#\u3011\u3010\u30d4\u30af\u30ed\u30b9\u3011\u3010ALTSEED\u3011\u6570\u5b57\u5165\u529b\u30de\u30b9\u306b\u6570\u5b57\u3092\u5165\u529b\u3059\u308b","author":"taki","date":"2020\u5e745\u670812\u65e5","format":false,"excerpt":"\u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089\u3002 https:\/\/taki-lab.site\/bocci\/?p=2909 \u6700\u2026","rel":"","context":"C#","block_context":{"text":"C#","link":"https:\/\/taki-lab.site\/bocci\/?cat=174"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2688,"url":"https:\/\/taki-lab.site\/bocci\/?p=2688","url_meta":{"origin":2715,"position":1},"title":"\u3010C#\u3011\u3010ALTSEED\u3011\u3010\u6570\u72ec\u3011\u30d1\u30ec\u30c3\u30c8\u306e\u8868\u793a\u3001\u975e\u8868\u793a","author":"taki","date":"2020\u5e744\u670816\u65e5","format":false,"excerpt":"\u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089\u3002 https:\/\/taki-lab.site\/bocci\/?p=2682 \u6700\u2026","rel":"","context":"C#","block_context":{"text":"C#","link":"https:\/\/taki-lab.site\/bocci\/?cat=174"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/04\/palette.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":2894,"url":"https:\/\/taki-lab.site\/bocci\/?p=2894","url_meta":{"origin":2715,"position":2},"title":"\u3010C#\u3011\u3010\u30d4\u30af\u30ed\u30b9\u3011\u3010ALTSEED\u3011\u30d1\u30ec\u30c3\u30c8\u304b\u3089\u6570\u5b57\u3092\u5165\u529b\u3059\u308b","author":"taki","date":"2020\u5e745\u67089\u65e5","format":false,"excerpt":"\u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089\u3002 https:\/\/taki-lab.site\/bocci\/?p=2869 \u6700\u2026","rel":"","context":"C#","block_context":{"text":"C#","link":"https:\/\/taki-lab.site\/bocci\/?cat=174"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2669,"url":"https:\/\/taki-lab.site\/bocci\/?p=2669","url_meta":{"origin":2715,"position":3},"title":"\u3010C#\u3011\u3010ALTSEED\u3011\u3010\u6570\u72ec\u3011UI\u3092\u8003\u3048\u308b\u3002","author":"taki","date":"2020\u5e744\u670813\u65e5","format":false,"excerpt":"\u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089\u3002 https:\/\/taki-lab.site\/bocci\/?p=2661 W\u2026","rel":"","context":"C#","block_context":{"text":"C#","link":"https:\/\/taki-lab.site\/bocci\/?cat=174"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/04\/squares_sample1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/04\/squares_sample1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/04\/squares_sample1.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":2737,"url":"https:\/\/taki-lab.site\/bocci\/?p=2737","url_meta":{"origin":2715,"position":4},"title":"\u3010C#\u3011\u3010ALTSEED\u3011\u3010\u6570\u72ec\u3011\u3053\u308c\u304b\u3089\u3084\u308b\u3053\u3068\u3002","author":"taki","date":"2020\u5e744\u670824\u65e5","format":false,"excerpt":"\u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089\u3002 https:\/\/taki-lab.site\/bocci\/?p=2731 \u3068\u2026","rel":"","context":"C#","block_context":{"text":"C#","link":"https:\/\/taki-lab.site\/bocci\/?cat=174"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2702,"url":"https:\/\/taki-lab.site\/bocci\/?p=2702","url_meta":{"origin":2715,"position":5},"title":"\u3010C#\u3011\u3010ALTSEED\u3011\u3010\u6570\u72ec\u3011\u30d1\u30ec\u30c3\u30c8\u306e\u4f5c\u6210","author":"taki","date":"2020\u5e744\u670818\u65e5","format":false,"excerpt":"\u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089\u3002 https:\/\/taki-lab.site\/bocci\/?p=2688 \u6700\u2026","rel":"","context":"C#","block_context":{"text":"C#","link":"https:\/\/taki-lab.site\/bocci\/?cat=174"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts\/2715","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2715"}],"version-history":[{"count":1,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts\/2715\/revisions"}],"predecessor-version":[{"id":2717,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts\/2715\/revisions\/2717"}],"wp:attachment":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2715"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2715"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2715"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}