21.02.2016, 17:57
Quote:
I'm not sure how to convert to int properly, since (int)0xFF000000 won't work, but this works well:
Код:
StreamerNative.SetDynamicObjectMaterialText(tmpobjid.Id, 0, "WC", ObjectMaterialSize.X512X512, "Arial", 200, true, Convert.ToInt32("0xFFFFFFFF", 16), Convert.ToInt32("0xFF000000", 16), ObjectMaterialTextAlign.Center); Код:
tmpobjid.SetMaterialText(0, "WC", ObjectMaterialSize.X512X512, "Ariel", 200, true, Color.FromInteger(Convert.ToInt32("0xFFFFFFFF", 16), ColorFormat.ARGB), Color.FromInteger(Convert.ToInt32("0xFF000000", 16), ColorFormat.ARGB), ObjectMaterialTextAlign.Center); |
Are you running linux? http://sampsharp.timpotze.nl/install...a.dll-on-linux