public HtmlTextField()
        {
            HtEngine.RegisterLogger(new Unity3DLogger());
            HtEngine.RegisterDevice(new Unity3DDevice());
            _compiler = HtEngine.GetCompiler();
            _text     = string.Empty;

            AddEventListenerObsolete(MouseEvent.MOUSE_DOWN, __mouseDown, true);
        }
Exemple #2
0
    public void Awake()
    {
        Debug.Log("Initializing Demo");

        // our logger
        HtEngine.RegisterLogger(new HtmlLogger());
        // our device
        HtEngine.RegisterDevice(new HtmlDevice());
        // our compiler
        this.compiler = HtEngine.GetCompiler();
        // set up first html
        this.html = demo0;
    }
Exemple #3
0
    public void Awake()
    {
        Debug.Log("Initializing Demo");

        // our logger
        HtEngine.RegisterLogger(new Unity3DLogger());
        // our device
        HtEngine.RegisterDevice(new NGUIDevice());
        // link hover color.
        HtEngine.LinkHoverColor = HtColor.Parse("#FF4444");
        // link pressed factor.
        HtEngine.LinkPressedFactor = 0.5f;
        // link function name.
        HtEngine.LinkFunctionName = "onLinkClicked";

        html      = GetComponent <NGUIHTML>();
        html.html = demo0;
    }
Exemple #4
0
    void Awake()
    {
        //初始化html引擎

        if (m_HtEngineInitd)
        {
            return;
        }

        m_HtEngineInitd = true;

        // our logger
        HtEngine.RegisterLogger(new HTMLEngineLogger());
        // our device
        HtEngine.RegisterDevice(new NGUIDevice());

        // link function name.
        HtEngine.LinkFunctionName = "OnLinkClick";
    }