diff --git a/guide.lua b/guide.lua index dd8ba43..809f9d7 100644 --- a/guide.lua +++ b/guide.lua @@ -60,8 +60,9 @@ end -- \brief Creates table with machine information while providing few shortcuts for common fields -- \param fields table -- \param machineName string +-- \param num (optional) number -- \returns string -local function createMachineInformationTable(fields,machineName) +local function createMachineInformationTable(fields,machineName,num) local fieldLabels={ inputVoltage="Input voltage level", outputVoltage="Output voltage level", @@ -81,7 +82,7 @@ local function createMachineInformationTable(fields,machineName) }) end - return createTable(rows,false,string.format("Figure 1. Machine information for %s",machineName)) + return createTable(rows,false,string.format("Figure %d. Machine information for %s",(num or 1),machineName)) end local pages={ @@ -660,6 +661,104 @@ local pages={ ||Picture 2. Nuclear Reactor with some Nuclear Reactor Chamber.|| ]] } + }, + + { + name="powerStorage", + title=S("Power storage"), + icon="industrialtest:batbox", + content={ + [[ + ||Power storage|| + + ||This mod introduces a few nodes which allow for storing energy in them. It is useful in case some energy deficit happens or to charge electric items in them. Each of those have power input on each side except one marked with connector which is the output. Those are following:|| + + + + + ||BatBox|| + + ]], + createMachineInformationTable({ + { + name="inputVoltage", + value="LV" + }, + { + name="outputVoltage", + value="LV" + }, + { + name="powerCapacity", + value=string.format("%d EU",industrialtest.BatBox.capacity) + } + },S("BatBox")), + [[ + + + ||CESU|| + + ]], + createMachineInformationTable({ + { + name="inputVoltage", + value="MV" + }, + { + name="outputVoltage", + value="MV" + }, + { + name="powerCapacity", + value=string.format("%d EU",industrialtest.CESU.capacity) + } + },S("CESU"),2), + [[ + + + ||MFE|| + + ]], + createMachineInformationTable({ + { + name="inputVoltage", + value="HV" + }, + { + name="outputVoltage", + value="HV" + }, + { + name="powerCapacity", + value=string.format("%d EU",industrialtest.MFE.capacity) + } + },S("MFE"),3), + [[ + + + ||MFSU|| + + ]], + createMachineInformationTable({ + { + name="inputVoltage", + value="EV" + }, + { + name="outputVoltage", + value="EV" + }, + { + name="powerCapacity", + value=string.format("%d EU",industrialtest.MFSU.capacity) + } + },S("MFSU"),4), + [[ + + + ||Picture 1. BatBox with some energy.|| + ]] + } } } diff --git a/textures/industrialtest_guide_batbox.png b/textures/industrialtest_guide_batbox.png new file mode 100644 index 0000000..b3e6fcf Binary files /dev/null and b/textures/industrialtest_guide_batbox.png differ