Textfield Height

Forums 💬 FlowCanvas ⚙️ Support Textfield Height

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #12150
    spayke
    Participant

      hi Galavakis, I wanted to expand textfield ‘Text’ in heigh(in inspector, screenshot included)

      I was able to change height of ‘tag’ or ‘comments’ by adding this to ‘Editor.Node.cs’ > line 766:

      node.tag = EditorGUILayout.TextArea(node.tag, GUILayout.Height(160));

      But I can’t find textfield for ‘Text'(in screenshot), is it possible do that? maybe i need somehow replace ‘textfield’ of string ports to ‘textarea’ in order to expand height? It may require changes in FC files, but for this project it’s crucial(and it wont be updated FlowCanvas to new versions)

      #12155
      Gavalakis
      Keymaster

        Hey,

        Do you want to change ALL textfields to be areafields, or just a single node textfield? Do you want to change the text of the Debug Log specifically or the text of a custom node you have?

         

        #12154
        spayke
        Participant

          I wanted to change only Macro textfields, for dialogue system I made in FC(screenshot). it’s kinda hard to read/edit when text is longer than field 🙁

          maybe it’s easier to add new ‘string(textarea)’ version for macro value inputs?(any option will do for me)

          #12153
          Gavalakis
          Keymaster

            Hey,

            This is actually quite tricky especially for macro ports which are added dynamicaly. You can change how all textfields are inspected from the “EditorUtils.ReflectedInspector.cs” file at line #206. Something like this may work for you, but please note that this is totaly a temp solution for your case specifically 🙂

            Let me know if something like this works for you.

            #12152
            spayke
            Participant

              I tested it, and it works great, thank you! You are the best 🙂

              #12151
              Gavalakis
              Keymaster

                You are very welcome!

                I am glad this works for you 🙂

              Viewing 6 posts - 1 through 6 (of 6 total)
              • You must be logged in to reply to this topic.