private void DrawObjectiveLine(MyHudObjectiveLine objective) { MyGuiDrawAlignEnum align = MyGuiDrawAlignEnum.HORISONTAL_CENTER_AND_VERTICAL_TOP; var color = Color.AliceBlue; var basePos = new Vector2(0.45f, 0.01f); var offset = new Vector2(0f, 0.02f); var bgPos = ConvertHudToNormalizedGuiPosition(ref basePos); MyGuiManager.DrawString(MyFontEnum.Debug, new StringBuilder(objective.Title), bgPos, 1f, drawAlign: align, colorMask: color); basePos += offset; bgPos = ConvertHudToNormalizedGuiPosition(ref basePos); MyGuiManager.DrawString(MyFontEnum.Debug, new StringBuilder("- " + objective.CurrentObjective), bgPos, 1f, drawAlign: align); }
private void DrawObjectiveLine(MyHudObjectiveLine objective) { MyGuiDrawAlignEnum align = MyGuiDrawAlignEnum.HORISONTAL_CENTER_AND_VERTICAL_TOP; var color = Color.AliceBlue; var basePos = new Vector2(0.45f, 0.01f); var offset = new Vector2(0f, 0.02f); var bgPos = ConvertHudToNormalizedGuiPosition(ref basePos); MyGuiManager.DrawString(MyFontEnum.Debug, new StringBuilder(objective.Title), bgPos, 1f, drawAlign: align, colorMask: color); basePos += offset; bgPos = ConvertHudToNormalizedGuiPosition(ref basePos); MyGuiManager.DrawString(MyFontEnum.Debug, new StringBuilder("- " + objective.CurrentObjective), bgPos, 1f, drawAlign: align); }