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

Getting Font type

$
0
0
Code:
IMyTextPanel panel = GridTerminalSystem.GetBlockWithName("panel") as IMyTextPanel;
            string selectedFont = panel.GetValue<string>("Font");
            Echo(selectedFont);
            panel.SetValue("Font", "Red");
A simple code I tried for checking the new fonts that DEV version has, I get exception that the property type is not string but MyTextPanel, which don't actually exist.
Trying IMyTextPanel also throw same error. :(

Viewing all articles
Browse latest Browse all 645

Trending Articles