Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 903

Need help with LCD panel method

$
0
0
This block of code does exactly what I want it to.
Code:
var screen = (IMyTextPanel)GridTerminalSystem.GetBlockWithName("LCD Panel");
screen.ShowTextureOnScreen();
This code throws an error.
Code:
List<IMyTerminalBlock> allScreens = new List<IMyTerminalBlock>();
GridTerminalSystem.GetBlocksOfType<IMyTextPanel>(allScreens);
allScreens[0].ShowTextureOnScreen();
This is the error:
"'Sandbox.ModAPI.Ingame.IMyTerminalBlock' does not contain a definition for 'ShowTextureOnScreen'...

Need help with LCD panel method

Viewing all articles
Browse latest Browse all 903

Trending Articles