示例#1
0
        public TextSceneEntity(string text, Color textColor, Vector3 location, TextDisplayMode textDisplayMode = TextDisplayMode.FacingCameraAlways, int fontSize = 8, string fontFamily = "Arial")
        {
            _text            = text;
            _textColor       = textColor;
            _location        = location;
            _textDisplayMode = textDisplayMode;
            _font            = new Font3D(fontFamily, (uint)fontSize);

            // Set requires SeletionId to false to exclude this item from selection, tooltips and also
            // prevent issues with maximum number of selectable meshes
            this.RequiresSelectionId = false;
        }
示例#2
0
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    //	* New Method: Set Dialogue
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    public void SetDialogueText(string Text, TextDisplayMode eDisplayMode = TextDisplayMode.SUPERFAST)
    {
        if (Text != "")
        {
            m_DBTextControl.lPerBoxDialogue = GetWordWrappingString(Text);
            GetDialogueGUIText().text       = "";
            m_eDisplayMode = eDisplayMode;

            SetVisibility(true);
            ResetTimers();
        }
    }