<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.perfecttower2.com/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AUI%2Fdoc</id>
	<title>Module:UI/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.perfecttower2.com/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AUI%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.perfecttower2.com/w/index.php?title=Module:UI/doc&amp;action=history"/>
	<updated>2026-10-07T13:01:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.perfecttower2.com/w/index.php?title=Module:UI/doc&amp;diff=4326&amp;oldid=prev</id>
		<title>Speedybrain: Documentation</title>
		<link rel="alternate" type="text/html" href="https://wiki.perfecttower2.com/w/index.php?title=Module:UI/doc&amp;diff=4326&amp;oldid=prev"/>
		<updated>2026-10-07T01:41:32Z</updated>

		<summary type="html">&lt;p&gt;Documentation&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Draws [[Factory]] interfaces. It has one so far, the crafting grid, which [[Module:Recipe table]] calls for [[Template:Crafting|&amp;lt;nowiki&amp;gt;{{Crafting}}&amp;lt;/nowiki&amp;gt;]] (through [[Module:Crafting]]). Inspired by [https://minecraft.wiki/w/Module:UI Minecraft Wiki&amp;#039;s Module:UI]. The look is in [[Template:Crafting/styles.css]] (TemplateStyles), which the grid adds itself.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;crafting(args)&amp;lt;/code&amp;gt;: the 8×4 input grid, the output slot and the cost.&lt;br /&gt;
** The inputs are &amp;lt;code&amp;gt;A1&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;H4&amp;lt;/code&amp;gt; (columns A to H, rows 1 to 4) and the output is &amp;lt;code&amp;gt;Output&amp;lt;/code&amp;gt;. Each takes an item stack as described in [[Module:Factory slot]], which draws the slots. A slot&amp;#039;s link is &amp;lt;code&amp;gt;A1link&amp;lt;/code&amp;gt; and so on, &amp;lt;code&amp;gt;Olink&amp;lt;/code&amp;gt; for the output.&lt;br /&gt;
** The smallest rectangle that holds all inputs, at least 2×2, is drawn from the top-left corner as open slots; the rest of the 8×4 grid is drawn as locked slots.&lt;br /&gt;
** &amp;lt;code&amp;gt;cost&amp;lt;/code&amp;gt; is the cost in Factory resources, formatted by [[Module:FormatNumber]], so it follows the reader&amp;#039;s number format (scientific notation or named numbers). It defaults to 0, and negative values show as 0.&lt;br /&gt;
* &amp;lt;code&amp;gt;formatDoubleInteger(amount, nonNegative)&amp;lt;/code&amp;gt;: an older formatter for counts (&amp;lt;code&amp;gt;1.5E6&amp;lt;/code&amp;gt;, ∞). The grid only calls it when &amp;lt;code&amp;gt;cost&amp;lt;/code&amp;gt; isn&amp;#039;t a number, and then it returns a &amp;quot;NaN&amp;quot; error.&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!-- Categories below this line --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Module documentation pages]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Speedybrain</name></author>
	</entry>
</feed>