The manual describes how to organize the three-button projector alignment menu using the EasyPlay script.
序章
One of the routine tasks of the game is to orient and align the projector blueprint to the desired boundaries. This tutorial demonstrates how to accomplish this task using the EasyPlay script, which allows you to do this through a two-level context menu using three control buttons.
The menu allows you to control any number of projectors, but their number is still limited by the size of the screen on which the output is carried out. If the menu goes beyond the screen, then some of its items will simply not be visible, and screen scrolling is not supported.
The buttons can be placed either on the digital panel of any ship controller, or separately, which allows you to observe the process of drawing orientation when changing its coordinates.
A demo craft is placed in the workshop and controls two projectors that allow you to print a Drone Raider and detach it from the printer for further play. あなたはできる use the script code located in the Custom Data of the EasyPlay block for your needs.
Installation and setup
You will need a controller (cockpit, control station, pilot’s seat) on the digital panel of which the control buttons will be placed, or a keypad with three buttons, or three separate buttons (for a small grid). You will also need a screen on which the menu will be displayed and, もちろん, a program block into which you need to load the EasyPlay script.
Now you need to copy the script code from the demo craft into the Custom Date field of your EasyPlay software block.
で lcd 変数, specify the name of the controller, LCD panel, or any other block that has a screen for output. 例えば:
* in square brackets you can specify the screen number to output
lcd = "コックピット[2]"
それから, で main 変数, you need to specify the exact names of the blocks of your projectors using the \N separator instead of those specified there. 例えば:
* list the names of your projectors with a delimiter \N main = "My Projector 1\NMy Projector 2\NMy Projector 3\NExit" * or use multiline notation main = "My Projector 1 My Projector 2 My Projector 3 出口"
で @menu, remove the first line of code that is used for demo crafting. The print option to align the projector is also not needed.
@menu { * delete this line \lcd = cond(Oper of Control Seat = True : "Control Seat" : "PB EasyPlay") ...
Now all that’s left is to place the controls on the controller’s numeric pad, or in the button settings.
Specify the メニュー argument for the first button, メニュー(下) for the second button, と メニュー(上) for the third button. The first button brings up the menu on the screen, and the remaining ones move the pointer and change the values along the alignment axes.
Menu control
Press the 1st button to bring up the menu on the screen. Move the pointer to the desired projector name and press the 1st button again. The second level menu will appear on the screen — control of the projection coordinates along the axes, where the options Pos are the offset along the axis, と Rot is the rotation of the blueprint.
Now use the cursor buttons to select the desired option and press the 1st button again: の “:” サイン (colon) will change to the “=” サイン (等しい)
The pointer buttons will then increment or decrement the value, and the blueprint will move accordingly. Press the 1st button again to return to menu pointer control. 実は, すべて.
ノート: the script uses the Custom Data field of the projectors, keep this in mind if other scripts also use this
これが今日私たちがこの目的で共有するすべてです 宇宙エンジニア ガイド. このガイドは元々、次の者によって作成および執筆されました。 Survival Ready. このガイドを更新できなかった場合, これに従って最新のアップデートを見つけることができます リンク.