Beispiel #1
0
    protected override void ButtonModule(string text_modulePreviour, string moduleHrefString, HrefModule moduleHref)
    {
        string       text            = text_modulePreviour + moduleHrefString;
        float        preferredWidth  = ChatManager.Instance.GetPreferredWidth(text, this.FONT_SIZE, true);
        float        preferredWidth2 = ChatManager.Instance.GetPreferredWidth(base.get_name(), this.FONT_SIZE, true);
        float        num             = preferredWidth - preferredWidth2;
        int          row             = (int)(num / this.LINE_WIDTH);
        Button2Touch buttonTouch     = this.GetButtonTouch();

        buttonTouch.SetButton2Touch(this.m_chatInfo, this.m_rootContent, null, moduleHref.m_hrefModuleClick);
        buttonTouch.m_myRectTransform.set_anchoredPosition(new Vector2(num, (float)(-(float)this.GetButtonItemY(row))));
        buttonTouch.Underline(preferredWidth2, this.FONT_SIZE, true);
    }
Beispiel #2
0
 protected virtual void ButtonModule(string text_modulePreviour, string moduleHrefString, HrefModule moduleHref)
 {
 }