Help:Text modding: Difference between revisions

Ginger (talk | contribs)
→Icons: Remove zr as it's not recognized by any libraries
修改了raw这一control的相关内容
Line 261: Line 261:
|}
|}
There is also a <code>sound2</code> control node. It is unknown how this differs from the <code>sound</code> control node, aside from it only having 1 parameter and being terminated with a <code>0xCD</code> byte (which is represented in MSYT by a <code>205</code> entry.)
There is also a <code>sound2</code> control node. It is unknown how this differs from the <code>sound</code> control node, aside from it only having 1 parameter and being terminated with a <code>0xCD</code> byte (which is represented in MSYT by a <code>205</code> entry.)
'''Raw'''
The exact purpose of it remains unclear, but it can be confirmed that under certain circumstances, the following two formats are equivalent. Sometimes text with `choice` may incorrectly load part of the next paragraph; using `raw` instead of `choice` can prevent this from happening.
          {
            "control": {
              "kind": "raw",
              "one": {
                "eight": {
                  "unknown_1": [],
                  "field_1": [
                    0,
                    0,
                    1,
                    0,
                    2,
                    0,
                    3
                  ],
                  "field_2": [
                    0,
                    0,
                    0,
                    4
                  ]
                }
              }
            }
          }
        ]
      },
          {
            "control": {
              "kind": "choice",
              "choice_labels": [
                0,
                1,
                2,
                3
              ],
              "selected_index": 0,
              "cancel_index": 4,
              "unknown": 18
            }
          }
        ]
      },


==Saving the files==
==Saving the files==