{{newin (日本語)|[[0.10.0 (日本語)|0.10.0]]|100|type=関数}}
Replaces the contents of the Text object with a new unformatted string.

== 関数 ==
=== 概要 ===
<source lang="lua">
Text:set( textstring )
</source>
=== 引数 ===
{{param (日本語)|string|textstring|The new string of text to use.}}
=== 返値 ===
ありません。

== 関数 ==
=== 概要 ===
<source lang="lua">
Text:set( coloredtext )
</source>
=== 引数 ===
{{param (日本語)|table|coloredtext|A table containing colors and strings to use as the new text, in the form of <code>{color1, string1, color2, string2, ...}</code>.}}
{{subparam|table|color1|A table containing red, green, blue, and optional alpha components to use as a color for the next string in the table, in the form of <code>{red, green, blue, alpha}</code>.}}
{{subparam|string|string1|A string of text which has a color specified by the previous color.}}
{{subparam|table|color2|A table containing red, green, blue, and optional alpha components to use as a color for the next string in the table, in the form of <code>{red, green, blue, alpha}</code>.}}
{{subparam|string|string2|A string of text which has a color specified by the previous color.}}
{{subparam|tables and strings|...|Additional colors and strings.}}
=== 返値 ===
ありません。
=== 注釈 ===
The color set by [[love.graphics.setColor]] will be combined (multiplied) with the colors of the text, when drawing the Text object.

== 関数 ==
{{oldin|[[11.0]]|110|type=variant|text=Use [[Text:clear]] instead}}
Clears the contents of the Text object.
=== 概要 ===
<source lang="lua">
Text:set( )
</source>
=== 引数 ===
なし。
=== 返値 ===
ありません。

== 関連 ==
* [[parent::Text (日本語)]]
* [[Text:setf (日本語)]]
* [[Text:add (日本語)]]
* [[Text:addf (日本語)]]
* [[Text:clear (日本語)]]
[[Category:Functions (日本語)]]
{{#set:Description=Replaces the contents of the Text object with a new string.}}
== そのほかの言語 ==
{{i18n (日本語)|Text:set}}