{"id":119408,"date":"2024-11-25T14:18:39","date_gmt":"2024-11-25T06:18:39","guid":{"rendered":"https:\/\/www.tm-robot.com\/?post_type=docs&#038;p=119408"},"modified":"2024-11-25T14:27:54","modified_gmt":"2024-11-25T06:27:54","slug":"how-to-use-tmcraft-shell-to-program-the-customized-ui","status":"publish","type":"docs","link":"https:\/\/www2.tm-robot.com\/ko\/docs\/how-to-use-tmcraft-shell-to-program-the-customized-ui\/","title":{"rendered":"How to Use TMcraft Shell to Program the Customized UI"},"content":{"rendered":"<p>Examples are valid for:<br \/>\nTMflow Software version: 2.16 or above.<br \/>\nTM Robot Hardware version: HW 3.2 or above<br \/>\nOther specific requirements: None<br \/>\nNote that older or newer software versions may have different results.<\/p>\n<hr \/>\n<p><span style=\"color: #3366ff;\">The following will use the game of blackjack to explain.<\/span><\/p>\n<h1>Introduction<\/h1>\n<p>BlackJack is a game that combines human-computer interaction. This document will teach you how to use simple coding skills to make a game screen. For example: the main game screen transfers the variables of the TMflow project to the corresponding image, and the START button, etc.<\/p>\n<p>\ud83d\udd25 <span class=\"hljs-variable\">Download<\/span> <span class=\"hljs-variable\">the<\/span> <span class=\"hljs-built_in\">Black<\/span> <span class=\"hljs-variable\">Jack<\/span> <span class=\"hljs-variable\">Shell<\/span> <span class=\"hljs-variable\">ZIP<\/span> <span class=\"hljs-built_in\">File<\/span><span class=\"hljs-operator\">! <\/span><span class=\"hljs-operator\">\ud83d\udc49\u00a0<\/span><a href=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/BlackJack_Shell_FB4AA666.zip\">Download Here!<\/a><\/p>\n<ul>\n<li>Main Screen<\/li>\n<\/ul>\n<p><a href=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/blackjack1.jpg\"><img loading=\"lazy\" class=\"aligncenter wp-image-119415\" src=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/blackjack1.jpg\" alt=\"\" width=\"668\" height=\"391\" srcset=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/blackjack1.jpg 827w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/blackjack1-300x176.jpg 300w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/blackjack1-768x449.jpg 768w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/blackjack1-360x211.jpg 360w\" sizes=\"(max-width: 668px) 100vw, 668px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/blackjack2.jpg\"><img loading=\"lazy\" class=\"aligncenter wp-image-119409\" src=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/blackjack2.jpg\" alt=\"\" width=\"666\" height=\"390\" srcset=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/blackjack2.jpg 827w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/blackjack2-300x176.jpg 300w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/blackjack2-768x449.jpg 768w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/blackjack2-360x211.jpg 360w\" sizes=\"(max-width: 666px) 100vw, 666px\" \/><\/a><\/p>\n<p>You can design the main screen of the game by yourself. Here we convert our design to an image to show on the screen.<\/p>\n<ul>\n<li>Start Button<\/li>\n<\/ul>\n<p><a href=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj3.jpg\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-119427\" src=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj3.jpg\" alt=\"\" width=\"827\" height=\"484\" srcset=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj3.jpg 827w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj3-300x176.jpg 300w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj3-768x449.jpg 768w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj3-360x211.jpg 360w\" sizes=\"(max-width: 827px) 100vw, 827px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj4.jpg\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-119421\" src=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj4.jpg\" alt=\"\" width=\"827\" height=\"516\" srcset=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj4.jpg 827w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj4-300x187.jpg 300w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj4-768x479.jpg 768w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj4-360x225.jpg 360w\" sizes=\"(max-width: 827px) 100vw, 827px\" \/><\/a><\/p>\n<p>This button connects to the TMflow play function. When you tap it, the game will start.<\/p>\n<ul>\n<li>Introduction of the game<\/li>\n<\/ul>\n<p><a href=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj5.jpg\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-119433\" src=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj5.jpg\" alt=\"\" width=\"827\" height=\"470\" srcset=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj5.jpg 827w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj5-300x170.jpg 300w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj5-768x436.jpg 768w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj5-360x205.jpg 360w\" sizes=\"(max-width: 827px) 100vw, 827px\" \/><\/a><\/p>\n<p>After the game starts, the screen will show the introduction of the game so the player can check the game rules.<\/p>\n<ul>\n<li>Game status<\/li>\n<\/ul>\n<p><a href=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj9.jpg\"><img loading=\"lazy\" class=\"aligncenter wp-image-119457\" src=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj9.jpg\" alt=\"\" width=\"842\" height=\"492\" srcset=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj9.jpg 1309w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj9-300x175.jpg 300w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj9-1024x598.jpg 1024w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj9-768x449.jpg 768w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj9-360x210.jpg 360w\" sizes=\"(max-width: 842px) 100vw, 842px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj7.jpg\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-119445\" src=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj7.jpg\" alt=\"\" width=\"886\" height=\"25\" srcset=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj7.jpg 886w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj7-300x8.jpg 300w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj7-768x22.jpg 768w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj7-360x10.jpg 360w\" sizes=\"(max-width: 886px) 100vw, 886px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj8.jpg\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-119439\" src=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj8.jpg\" alt=\"\" width=\"413\" height=\"375\" srcset=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj8.jpg 413w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj8-300x272.jpg 300w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj8-360x327.jpg 360w\" sizes=\"(max-width: 413px) 100vw, 413px\" \/><\/a><\/p>\n<p>To help players understand the game process, we show the game status on the right top of the screen. Including the :<\/p>\n<p>1. Dealing cards<\/p>\n<p>2. Please replenish the cards<\/p>\n<p>3. Detecting gestures<\/p>\n<p>4. Poker card stuck<\/p>\n<ul>\n<li>Variable Application<\/li>\n<\/ul>\n<p><a href=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj10.jpg\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-119469\" src=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj10.jpg\" alt=\"\" width=\"827\" height=\"247\" srcset=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj10.jpg 827w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj10-300x90.jpg 300w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj10-768x229.jpg 768w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj10-360x108.jpg 360w\" sizes=\"(max-width: 827px) 100vw, 827px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj11.jpg\"><img loading=\"lazy\" class=\"aligncenter wp-image-119463\" src=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj11.jpg\" alt=\"\" width=\"503\" height=\"373\" srcset=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj11.jpg 768w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj11-300x223.jpg 300w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj11-360x267.jpg 360w\" sizes=\"(max-width: 503px) 100vw, 503px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj12.jpg\"><img loading=\"lazy\" class=\"aligncenter wp-image-119475\" src=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj12.jpg\" alt=\"\" width=\"551\" height=\"385\" srcset=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj12.jpg 768w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj12-300x210.jpg 300w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj12-360x252.jpg 360w\" sizes=\"(max-width: 551px) 100vw, 551px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj13.jpg\"><img loading=\"lazy\" class=\"aligncenter wp-image-119481\" src=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj13.jpg\" alt=\"\" width=\"563\" height=\"478\" srcset=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj13.jpg 856w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj13-300x255.jpg 300w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj13-768x652.jpg 768w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj13-360x306.jpg 360w\" sizes=\"(max-width: 563px) 100vw, 563px\" \/><\/a><\/p>\n<p>To make sure the UI follows the TMflow project, we use several <strong>global variables<\/strong> as commands and set up the connections to these variables in Visual Studio to display different images on the screen. For example the values of the cards.<\/p>\n<ul>\n<li>Total points of the olayer and the dealer<\/li>\n<\/ul>\n<p>After the player does the NO gesture, the TMflow project will follow the rules to calculate the total points of the card and send the result (as the variables: g_player_t) out to the TMcraft shell. When TMcraft gets the variable value, it will show the corresponding image of the number. Same as the dealer. (as the variables: g_dealer_total)<\/p>\n<ul>\n<li>Game win\/lose result<\/li>\n<\/ul>\n<p><a href=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj14.jpg\"><img loading=\"lazy\" class=\"aligncenter wp-image-119523\" src=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj14.jpg\" alt=\"\" width=\"702\" height=\"405\" srcset=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj14.jpg 827w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj14-300x173.jpg 300w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj14-768x443.jpg 768w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj14-360x208.jpg 360w\" sizes=\"(max-width: 702px) 100vw, 702px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj15.jpg\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-119517\" src=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj15.jpg\" alt=\"\" width=\"501\" height=\"235\" srcset=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj15.jpg 501w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj15-300x141.jpg 300w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj15-360x169.jpg 360w\" sizes=\"(max-width: 501px) 100vw, 501px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj16.jpg\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-119511\" src=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj16.jpg\" alt=\"\" width=\"526\" height=\"246\" srcset=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj16.jpg 526w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj16-300x140.jpg 300w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj16-360x168.jpg 360w\" sizes=\"(max-width: 526px) 100vw, 526px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj17.jpg\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-119505\" src=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj17.jpg\" alt=\"\" width=\"410\" height=\"253\" srcset=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj17.jpg 410w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj17-300x185.jpg 300w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj17-360x222.jpg 360w\" sizes=\"(max-width: 410px) 100vw, 410px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj18.jpg\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-119499\" src=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj18.jpg\" alt=\"\" width=\"626\" height=\"60\" srcset=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj18.jpg 626w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj18-300x29.jpg 300w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj18-360x35.jpg 360w\" sizes=\"(max-width: 626px) 100vw, 626px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj19.jpg\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-119493\" src=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj19.jpg\" alt=\"\" width=\"864\" height=\"31\" srcset=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj19.jpg 864w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj19-300x11.jpg 300w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj19-768x28.jpg 768w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj19-360x13.jpg 360w\" sizes=\"(max-width: 864px) 100vw, 864px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj20.jpg\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-119487\" src=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj20.jpg\" alt=\"\" width=\"497\" height=\"47\" srcset=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj20.jpg 497w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj20-300x28.jpg 300w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj20-360x34.jpg 360w\" sizes=\"(max-width: 497px) 100vw, 497px\" \/><\/a><\/p>\n<p>When both the player and the dealer reach the ideal total points, one of whom is busted, or one of whose total points are 21 within two cards, the TMflow project will compare the two, give the final result, and return the variable to the TMcraft shell.<\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>Tap anywhere to return to the start screen<\/li>\n<\/ul>\n<p><a href=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj21.jpg\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-119535\" src=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj21.jpg\" alt=\"\" width=\"865\" height=\"196\" srcset=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj21.jpg 865w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj21-300x68.jpg 300w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj21-768x174.jpg 768w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj21-360x82.jpg 360w\" sizes=\"(max-width: 865px) 100vw, 865px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj22.jpg\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-119529\" src=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj22.jpg\" alt=\"\" width=\"550\" height=\"599\" srcset=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj22.jpg 550w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj22-275x300.jpg 275w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/bj22-360x392.jpg 360w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/a><\/p>\n<p>In the .xaml (UI layout panel), set up various interface layers, including the game start screen, game introduction screen, game table screen, and win\/lose display screen. When the game ends and the win\/lose screen is shown, if the player clicks anywhere on the screen again, the program logic will be triggered to set the Visibility parameter of the game start screen to &#8220;Visible&#8221; and the Visibility parameters of other screens to &#8220;Collapsed.&#8221;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Examples are valid for: TMflow Software version: 2.16 or above. TM Robot Hardware version: HW 3.2 or above Other specific requirements: None Note that older or newer software versions may have different results. The following will use the game of blackjack to explain. Introduction BlackJack is a game that combines human-computer interaction. This document will [&hellip;]<\/p>\n","protected":false},"author":8760,"featured_media":0,"parent":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"doc_category":[4759],"doc_tag":[],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Use TMcraft Shell to Program the Customized UI | Techman Robot<\/title>\n<meta name=\"robots\" content=\"noindex, follow\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Use TMcraft Shell to Program the Customized UI | Techman Robot\" \/>\n<meta property=\"og:description\" content=\"Examples are valid for: TMflow Software version: 2.16 or above. TM Robot Hardware version: HW 3.2 or above Other specific requirements: None Note that older or newer software versions may have different results. The following will use the game of blackjack to explain. Introduction BlackJack is a game that combines human-computer interaction. This document will [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www2.tm-robot.com\/ko\/docs\/how-to-use-tmcraft-shell-to-program-the-customized-ui\/\" \/>\n<meta property=\"og:site_name\" content=\"Techman Robot\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-25T06:27:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/blackjack1.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.tm-robot.com.cn\/de\/#organization\",\"name\":\"Techman Robot\",\"url\":\"https:\/\/www.tm-robot.com.cn\/de\/\",\"sameAs\":[],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.tm-robot.com.cn\/de\/#logo\",\"inLanguage\":\"ko-KR\",\"url\":\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2018\/09\/logo.png\",\"contentUrl\":\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2018\/09\/logo.png\",\"width\":221,\"height\":196,\"caption\":\"Techman Robot\"},\"image\":{\"@id\":\"https:\/\/www.tm-robot.com.cn\/de\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.tm-robot.com.cn\/de\/#website\",\"url\":\"https:\/\/www.tm-robot.com.cn\/de\/\",\"name\":\"Techman Robot\",\"description\":\"Intelligent Cobots for a World of Applications\",\"publisher\":{\"@id\":\"https:\/\/www.tm-robot.com.cn\/de\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.tm-robot.com.cn\/de\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www2.tm-robot.com\/ko\/docs\/how-to-use-tmcraft-shell-to-program-the-customized-ui\/#primaryimage\",\"inLanguage\":\"ko-KR\",\"url\":\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/blackjack1.jpg\",\"contentUrl\":\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/blackjack1.jpg\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www2.tm-robot.com\/ko\/docs\/how-to-use-tmcraft-shell-to-program-the-customized-ui\/#webpage\",\"url\":\"https:\/\/www2.tm-robot.com\/ko\/docs\/how-to-use-tmcraft-shell-to-program-the-customized-ui\/\",\"name\":\"How to Use TMcraft Shell to Program the Customized UI | Techman Robot\",\"isPartOf\":{\"@id\":\"https:\/\/www.tm-robot.com.cn\/de\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www2.tm-robot.com\/ko\/docs\/how-to-use-tmcraft-shell-to-program-the-customized-ui\/#primaryimage\"},\"datePublished\":\"2024-11-25T06:18:39+00:00\",\"dateModified\":\"2024-11-25T06:27:54+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www2.tm-robot.com\/ko\/docs\/how-to-use-tmcraft-shell-to-program-the-customized-ui\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www2.tm-robot.com\/ko\/docs\/how-to-use-tmcraft-shell-to-program-the-customized-ui\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www2.tm-robot.com\/ko\/docs\/how-to-use-tmcraft-shell-to-program-the-customized-ui\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.tm-robot.com.cn\/ko\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Docs\",\"item\":\"https:\/\/www2.tm-robot.com\/ko\/docs\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Use TMcraft Shell to Program the Customized UI\"}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Use TMcraft Shell to Program the Customized UI | Techman Robot","robots":{"index":"noindex","follow":"follow"},"og_locale":"ko_KR","og_type":"article","og_title":"How to Use TMcraft Shell to Program the Customized UI | Techman Robot","og_description":"Examples are valid for: TMflow Software version: 2.16 or above. TM Robot Hardware version: HW 3.2 or above Other specific requirements: None Note that older or newer software versions may have different results. The following will use the game of blackjack to explain. Introduction BlackJack is a game that combines human-computer interaction. This document will [&hellip;]","og_url":"https:\/\/www2.tm-robot.com\/ko\/docs\/how-to-use-tmcraft-shell-to-program-the-customized-ui\/","og_site_name":"Techman Robot","article_modified_time":"2024-11-25T06:27:54+00:00","og_image":[{"url":"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/blackjack1.jpg"}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/www.tm-robot.com.cn\/de\/#organization","name":"Techman Robot","url":"https:\/\/www.tm-robot.com.cn\/de\/","sameAs":[],"logo":{"@type":"ImageObject","@id":"https:\/\/www.tm-robot.com.cn\/de\/#logo","inLanguage":"ko-KR","url":"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2018\/09\/logo.png","contentUrl":"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2018\/09\/logo.png","width":221,"height":196,"caption":"Techman Robot"},"image":{"@id":"https:\/\/www.tm-robot.com.cn\/de\/#logo"}},{"@type":"WebSite","@id":"https:\/\/www.tm-robot.com.cn\/de\/#website","url":"https:\/\/www.tm-robot.com.cn\/de\/","name":"Techman Robot","description":"Intelligent Cobots for a World of Applications","publisher":{"@id":"https:\/\/www.tm-robot.com.cn\/de\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.tm-robot.com.cn\/de\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ko-KR"},{"@type":"ImageObject","@id":"https:\/\/www2.tm-robot.com\/ko\/docs\/how-to-use-tmcraft-shell-to-program-the-customized-ui\/#primaryimage","inLanguage":"ko-KR","url":"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/blackjack1.jpg","contentUrl":"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2024\/11\/blackjack1.jpg"},{"@type":"WebPage","@id":"https:\/\/www2.tm-robot.com\/ko\/docs\/how-to-use-tmcraft-shell-to-program-the-customized-ui\/#webpage","url":"https:\/\/www2.tm-robot.com\/ko\/docs\/how-to-use-tmcraft-shell-to-program-the-customized-ui\/","name":"How to Use TMcraft Shell to Program the Customized UI | Techman Robot","isPartOf":{"@id":"https:\/\/www.tm-robot.com.cn\/de\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www2.tm-robot.com\/ko\/docs\/how-to-use-tmcraft-shell-to-program-the-customized-ui\/#primaryimage"},"datePublished":"2024-11-25T06:18:39+00:00","dateModified":"2024-11-25T06:27:54+00:00","breadcrumb":{"@id":"https:\/\/www2.tm-robot.com\/ko\/docs\/how-to-use-tmcraft-shell-to-program-the-customized-ui\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www2.tm-robot.com\/ko\/docs\/how-to-use-tmcraft-shell-to-program-the-customized-ui\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www2.tm-robot.com\/ko\/docs\/how-to-use-tmcraft-shell-to-program-the-customized-ui\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.tm-robot.com.cn\/ko\/"},{"@type":"ListItem","position":2,"name":"Docs","item":"https:\/\/www2.tm-robot.com\/ko\/docs\/"},{"@type":"ListItem","position":3,"name":"How to Use TMcraft Shell to Program the Customized UI"}]}]}},"_links":{"self":[{"href":"https:\/\/www2.tm-robot.com\/ko\/wp-json\/wp\/v2\/docs\/119408"}],"collection":[{"href":"https:\/\/www2.tm-robot.com\/ko\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www2.tm-robot.com\/ko\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www2.tm-robot.com\/ko\/wp-json\/wp\/v2\/users\/8760"}],"replies":[{"embeddable":true,"href":"https:\/\/www2.tm-robot.com\/ko\/wp-json\/wp\/v2\/comments?post=119408"}],"version-history":[{"count":3,"href":"https:\/\/www2.tm-robot.com\/ko\/wp-json\/wp\/v2\/docs\/119408\/revisions"}],"predecessor-version":[{"id":119549,"href":"https:\/\/www2.tm-robot.com\/ko\/wp-json\/wp\/v2\/docs\/119408\/revisions\/119549"}],"wp:attachment":[{"href":"https:\/\/www2.tm-robot.com\/ko\/wp-json\/wp\/v2\/media?parent=119408"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www2.tm-robot.com\/ko\/wp-json\/wp\/v2\/doc_category?post=119408"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www2.tm-robot.com\/ko\/wp-json\/wp\/v2\/doc_tag?post=119408"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}