Difference between revisions of "LCD Panel"
Lexmechanic (talk | contribs) m (cp/ error) |
m (Added methods that are available with the programmable block) |
||
Line 45: | Line 45: | ||
GPS coordinates shown in the GPS format in the text panel will appear in the GPS and can be activated (=shown on HUD). | GPS coordinates shown in the GPS format in the text panel will appear in the GPS and can be activated (=shown on HUD). | ||
+ | |||
+ | |||
+ | == Use with the programmable block== | ||
+ | The LCD Panel could be accessed with the programmable block as <code>IMyTextPanel</code>. It could work in ´Texture Mode´ in which the selected textures are shown or the ´Text Mode´ in which the text is shown. The following methods are available:<ref>http://www.reddit.com/r/spaceengineers/comments/2y8for/call_a_lcd_screen_with_programmable_block/cp77do6</ref> | ||
+ | |||
+ | {| class="wikitable" | ||
+ | |- | ||
+ | ! Method !! Description | ||
+ | |- | ||
+ | | <code>bool WritePublicText(String value, bool append = false)</code> | ||
+ | | Writes ''value'' to the public text field. If append is ''true'' then the ''value'' is appended to the end of the current text. | ||
+ | |- | ||
+ | | <code>String GetPublicText()</code> | ||
+ | | Returns the current content of the public text field. | ||
+ | |- | ||
+ | | <code>bool WritePublicTitle(String value, bool append = false)</code> | ||
+ | | Sets the public title to ''value''. If append is ''true'' then the ''value'' is appended to the end of the current title. | ||
+ | |- | ||
+ | | <code>String GetPublicTitle()</code> | ||
+ | | Returns the current public title. | ||
+ | |- | ||
+ | | <code>void AddImageToSelection(String id)</code> | ||
+ | | Adds an image/texture to the end of the list of selected textures. If no image/texture with the name ''id'' exists the texture ´Offline´ is added instead. | ||
+ | |- | ||
+ | | <code>void AddImagesToSelection(List<String> ids)</code> | ||
+ | | Adds the images/textures to the end of the list of selected textures. If no image/texture with the name ''id'' exists the texture ´Offline´ is added instead. | ||
+ | |- | ||
+ | | <code>void ShowPublicTextOnScreen()</code> | ||
+ | | Enables the text to be shown. | ||
+ | |- | ||
+ | | <code>void ShowTextureOnScreen()</code> | ||
+ | | Enables the textures to be shown. | ||
+ | |} | ||
+ | |||
+ | ==Links== | ||
+ | <references /> |
Revision as of 07:23, 11 April 2015
Notice |
---|
This is a stub is missing some values. Build times and power consumption are set to 0. Some components may be optional. Please update |
The LCD panel can display a variety of messages and textures. To access its settings, select it and pressing the 'T' or 'K' key. Selecting it and pressing "K", the "K-menu" is entered.
The panel's title and text can be made public, private, or a combination of both. Textures applied can be selected from a list or custom textures can be selected. Textures can be set to rotate on a timer, changing from one to the next.
GPS coordinates shown in the GPS format in the text panel will appear in the GPS and can be activated (=shown on HUD).
Use with the programmable block
The LCD Panel could be accessed with the programmable block as IMyTextPanel
. It could work in ´Texture Mode´ in which the selected textures are shown or the ´Text Mode´ in which the text is shown. The following methods are available:[1]
Method | Description |
---|---|
bool WritePublicText(String value, bool append = false)
|
Writes value to the public text field. If append is true then the value is appended to the end of the current text. |
String GetPublicText()
|
Returns the current content of the public text field. |
bool WritePublicTitle(String value, bool append = false)
|
Sets the public title to value. If append is true then the value is appended to the end of the current title. |
String GetPublicTitle()
|
Returns the current public title. |
void AddImageToSelection(String id)
|
Adds an image/texture to the end of the list of selected textures. If no image/texture with the name id exists the texture ´Offline´ is added instead. |
void AddImagesToSelection(List<String> ids)
|
Adds the images/textures to the end of the list of selected textures. If no image/texture with the name id exists the texture ´Offline´ is added instead. |
void ShowPublicTextOnScreen()
|
Enables the text to be shown. |
void ShowTextureOnScreen()
|
Enables the textures to be shown. |