{"id":2454,"date":"2025-11-19T21:47:49","date_gmt":"2025-11-19T21:47:49","guid":{"rendered":"https:\/\/golemitegames.com\/?post_type=docs&#038;p=2454"},"modified":"2025-11-21T21:33:21","modified_gmt":"2025-11-21T21:33:21","password":"","slug":"info-icon","status":"publish","type":"docs","link":"https:\/\/golemitegames.com\/index.php\/docs\/info-icon\/","title":{"rendered":"Info Icon"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" style=\"font-size:22px;text-transform:capitalize\">Introduction<\/h2>\n\n\n\n<p>Info Icon display various Icons depending on the settings you choose for the Icon Type. It connects to <a href=\"https:\/\/golemitegames.com\/index.php\/docs\/resource-node\/\" title=\"Resource Node\">ResourceNode<\/a>, <a href=\"https:\/\/golemitegames.com\/index.php\/docs\/item-container\/\" title=\"Item Container\">ItemContainer<\/a> and <a href=\"https:\/\/golemitegames.com\/index.php\/docs\/crafter\/\" title=\"Crafter\">Crafter<\/a> classes to display relevent information. <br><br>Info Icons should either have a <a href=\"https:\/\/golemitegames.com\/index.php\/docs\/ui-billboard\/\" title=\"UI Billboard\">UI Billboard<\/a> attached or be a child of one to maintain rotation with the Camera.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:22px;text-transform:capitalize\">Setting up<\/h2>\n\n\n\n<p>There is a prefab InfoIcon located in \/prefabs\/UI. <br><br>Setting up without the prefab is easy and just requires two Image components for the background and the Icon.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:22px;text-transform:capitalize\">Settings<\/h2>\n\n\n\n<p><strong>Icon Type<\/strong><br>Icon will change depending on the Icon Type used &#8211; <br><br>Resource Type &#8211; Will display the same Icon as the first <a href=\"https:\/\/golemitegames.com\/index.php\/docs\/resource\/\" title=\"Resource\">Resource<\/a> in the List of Resources set on the <a href=\"https:\/\/golemitegames.com\/index.php\/docs\/resource-node\/\" title=\"Resource Node\">ResourceNode<\/a>.<br> <br>Same As Container Type &#8211; If the <a href=\"https:\/\/golemitegames.com\/index.php\/docs\/item-container\/\" title=\"Item Container\">ItemContainer<\/a> is using specific types of items, use the first specific <a href=\"https:\/\/golemitegames.com\/index.php\/docs\/item\/\" title=\"Item\">item<\/a> icon.<br><br>Largest Item Amount &#8211; Adds up all the <a href=\"https:\/\/golemitegames.com\/index.php\/docs\/item-amount\/\" title=\"Item Amount\">ItemAmounts<\/a> in the <a href=\"https:\/\/golemitegames.com\/index.php\/docs\/item-container\/\" title=\"Item Container\">ItemContainer<\/a> and updates the icon with the item icon with largest amount.<br><br>Crafter Blueprint &#8211; Displays the <a href=\"https:\/\/golemitegames.com\/index.php\/docs\/crafter\/\" title=\"Crafter\">Crafters<\/a> current <a href=\"https:\/\/golemitegames.com\/index.php\/docs\/blueprint\/\" title=\"Blueprint\">Blueprint<\/a>, does not display anything in the queue.<br><br>Manual &#8211; Set your own icon, assign either a <a href=\"https:\/\/golemitegames.com\/index.php\/docs\/crafter\/\" title=\"Crafter\">Crafter<\/a> or <a href=\"https:\/\/golemitegames.com\/index.php\/docs\/item-container\/\" title=\"Item Container\">ItemContainer<\/a> to still use background color changes of the assigned depending on conditions.<br><br><strong>Icon<\/strong><br>Assign an Image component to display an Icon based on the Icon Type setting.<br><br><strong>Background<\/strong><br>Assign an Image component to change the background colour of the Image based on <a href=\"https:\/\/golemitegames.com\/index.php\/docs\/item-container\/\" title=\"Item Container\">ItemContainer<\/a> and <a href=\"https:\/\/golemitegames.com\/index.php\/docs\/crafter\/\" title=\"Crafter\">Crafter<\/a> triggers. <br><br><strong>Valid Color <\/strong><br>Change the color to display when <a href=\"https:\/\/golemitegames.com\/index.php\/docs\/item-container\/\" title=\"Item Container\">ItemContainer<\/a> and <a href=\"https:\/\/golemitegames.com\/index.php\/docs\/crafter\/\" title=\"Crafter\">Crafter<\/a> are in positive state.<br><br><strong>Invalid Color<\/strong><br>Change the color to display when <a href=\"https:\/\/golemitegames.com\/index.php\/docs\/item-container\/\" title=\"Item Container\">ItemContainer<\/a> and <a href=\"https:\/\/golemitegames.com\/index.php\/docs\/crafter\/\" title=\"Crafter\">Crafter<\/a> are in negative state.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:22px;text-transform:capitalize\">Scripting<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-csharp\" data-lang=\"C#\" data-show-lang=\"0\"><code>\/\/\/ &lt;summary&gt;\n\/\/\/ Updates the icon depending on the iconType set\n\/\/\/ &lt;\/summary&gt;\npublic void RefreshIcon()<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Info Icon display various Icons depending on the settings you choose for the Icon Type. It connects to ResourceNode, ItemContainer and Crafter classes to display relevent information. Info Icons should either have a UI Billboard attached or be a child of one to maintain rotation with the Camera. Setting up There is a prefab [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"doc_category":[46],"doc_tag":[],"class_list":["post-2454","docs","type-docs","status-publish","hentry","doc_category-resource-and-production"],"acf":[],"aioseo_notices":[],"year_month":"2026-04","word_count":273,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"rickitz5h","author_nicename":"rickitz5h","author_url":"https:\/\/golemitegames.com\/index.php\/author\/rickitz5h\/"},"doc_category_info":[{"term_name":"Resource And Production","term_url":"https:\/\/golemitegames.com\/index.php\/docs-category\/resource-and-production\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/docs\/2454","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/comments?post=2454"}],"version-history":[{"count":8,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/docs\/2454\/revisions"}],"predecessor-version":[{"id":2577,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/docs\/2454\/revisions\/2577"}],"wp:attachment":[{"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/media?parent=2454"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/doc_category?post=2454"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/doc_tag?post=2454"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}