Files
tooll3--t3/Operators/Lib/render/basic/Text.t3ui
T
2026-07-13 13:13:17 +08:00

332 lines
8.7 KiB
Plaintext

{
"FormatVersion": 3,
"Id": "fd31d208-12fe-46bf-bfa3-101211f8f497"/*Text*/,
"Description": "Creates flat 2D Text as an Object in 3D Space from bitmap fonts.\nFor each character a quad mesh is generated. [TextSprites] can be used to manipulate these generated objects.\n\nAny String Operator like [AString], [RandomString], etc. can be used as string input.\n\nThe fonts used consist of a BmFont font definition file and the matching MSDF (multichannel distance field) texture",
"SymbolTags": "1",
"InputUis": [
{
"InputId": "065b6437-64ed-4ebc-bee0-578677421efb"/*BillboardMode*/,
"Position": {
"X": -126.37311,
"Y": 594.7006
}
},
{
"InputId": "0e5f05b4-5e8a-4f6d-8cac-03b04649eb67"/*Color*/,
"Position": {
"X": -266.3731,
"Y": 279.70062
},
"Description": "Defines which color the surfaces of the letters have"
},
{
"InputId": "28be4e86-6761-4d07-80bf-abf6f82897e4"/*CullMode*/,
"Position": {
"X": 610.4731,
"Y": 489.61145
},
"GroupTitle": "Draw Options",
"Description": "Defines whether / which surface is rendered invisible"
},
{
"InputId": "50c9ab21-39f4-4e92-b5a7-ad9e60ae6ec3"/*FontPath*/,
"Position": {
"X": 252.9892,
"Y": 818.09973
},
"GroupTitle": "Font & Size",
"Description": "Defines which font is used",
"Usage": "FilePath",
"FileFilter": "fnt"
},
{
"InputId": "62827185-635e-4bf4-b13a-301547b55acc"/*Sharpness*/,
"Position": {
"X": 13.626892,
"Y": 559.7006
}
},
{
"InputId": "7a76d5aa-1f44-4238-9333-7c2951becc31"/*EnableZTest*/,
"Position": {
"X": 615.275,
"Y": 607.82385
},
"Description": "Activates / deactivates whether the text covers / is covered by other elements."
},
{
"InputId": "82cc31ff-3307-4b6d-be70-16e471c2ffc9"/*HorizontalAlign*/,
"Position": {
"X": 645.4279,
"Y": 1038.7572
},
"Description": "Defines where the pivot is located in the horizontal position"
},
{
"InputId": "835d7f17-9de4-4612-a2f0-01c1346cdf1a"/*Spacing*/,
"Position": {
"X": 645.4279,
"Y": 898.7572
},
"Description": "Defines how wide the gaps between the letters and words are",
"Min": -10.0,
"Max": 10.0,
"Scale": 0.1
},
{
"InputId": "989e6950-fd32-4d0b-97c2-d03264cb2db5"/*Shadow*/,
"Position": {
"X": -126.37311,
"Y": 419.70062
},
"Description": "Defines the color / opacity of the shadow that appears as an outline\nColors brighter than 1 create a glow effect"
},
{
"InputId": "ae7f7e83-fa18-44fd-b639-3bd0dbd3ac06"/*VerticalAlign*/,
"Position": {
"X": 645.4279,
"Y": 1003.7572
},
"GroupTitle": "Alignment",
"Description": "Defines how high the letters are in relation to the pivot.\n\nTop: The pivot point is on the row line\nMiddle: The letters are centered above the pivot\nBottom: The pivot is at the bottom of the letters such as 'y', 'g', etc."
},
{
"InputId": "d89c518c-a862-4f46-865b-0380350b7417"/*Size*/,
"Position": {
"X": 645.4279,
"Y": 863.7572
},
"ExcludedFromPresets": "True",
"Description": "Uniformly scales the Text",
"Min": 0.0,
"Max": 500.0,
"Scale": 1.0
},
{
"InputId": "de0fed7d-d2af-4424-baf3-81606e26559f"/*Position*/,
"Position": {
"X": 645.4279,
"Y": 968.7572
},
"Description": "Offsets the position of the Text element",
"AddPadding": "True",
"Scale": 0.01,
"UseVec2Control": "Position"
},
{
"InputId": "eaf9dc37-e70f-4197-895c-b5607456b4a2"/*LineHeight*/,
"Position": {
"X": 645.4279,
"Y": 933.7572
},
"Description": "Defines the space between the lines, if there are more than 1"
},
{
"InputId": "f1f1be0e-d5bc-4940-bbc1-88bfa958f0e1"/*InputText*/,
"Position": {
"X": 645.4279,
"Y": 793.7574
},
"Description": "String / Input for the text to be drawn",
"Usage": "Multiline"
}
],
"SymbolChildUis": [
{
"ChildId": "0618fcf2-ff9e-41bc-93e2-f4059b0d1eff"/*Vector4Components*/,
"Style": "Resizable",
"Size": {
"X": 111.079544,
"Y": 59.905018
},
"Position": {
"X": 13.626892,
"Y": 279.70062
}
},
{
"ChildId": "0ac06af7-96fe-4761-a0d7-f7c253ecfc48"/*LoadImage*/,
"Position": {
"X": 598.59595,
"Y": 307.63022
}
},
{
"ChildId": "0c3c9def-c419-4d1d-9a7f-58941a5cae8f"/*GetForegroundColor*/,
"Position": {
"X": -266.3731,
"Y": 314.70062
}
},
{
"ChildId": "0f187149-0932-4a8f-ae00-86513c0a4d51"/*RasterizerState*/,
"Position": {
"X": 750.4731,
"Y": 489.61145
}
},
{
"ChildId": "0f61fb31-eab8-401d-83b6-ce5bc54409fe"/*Draw*/,
"Position": {
"X": 925.4279,
"Y": 1073.7572
}
},
{
"ChildId": "143c7600-57f9-4e58-8185-04293704d041"/*_RenderFontBuffer*/,
"Position": {
"X": 785.4279,
"Y": 793.7574
}
},
{
"ChildId": "2b65ff72-e36b-45c9-a7ae-e6d016c6ed83"/*PickBlendMode*/,
"Position": {
"X": 755.275,
"Y": 642.824
}
},
{
"ChildId": "2e0462df-06bc-4854-a4a3-e6057f4a72d1"/*InputAssemblerStage*/,
"Position": {
"X": 1236.2932,
"Y": 135.57228
}
},
{
"ChildId": "395e0473-ce2f-46e4-be5f-e38682ee3b8c"/*SearchAndReplace*/,
"Position": {
"X": 382.65103,
"Y": 360.25864
}
},
{
"ChildId": "40b536a8-4a74-4e18-8522-c6a137984463"/*SrvFromStructuredBuffer*/,
"Position": {
"X": 925.4279,
"Y": 793.7574
}
},
{
"ChildId": "4f27bf70-0d11-483f-b9e8-1e509b8493f4"/*FloatsToBuffer*/,
"Position": {
"X": 153.62689,
"Y": 244.70062
}
},
{
"ChildId": "65008714-e069-4dc6-b4b6-a4c73229daa9"/*SamplerState*/,
"Position": {
"X": 738.59595,
"Y": 342.63022
}
},
{
"ChildId": "673bf3f1-d8c2-468a-87c3-0e6a11ecbf26"/*BlendColors*/,
"Position": {
"X": -126.37311,
"Y": 279.70062
}
},
{
"ChildId": "6e95b73b-978b-4fb0-962a-080f4e54845a"/*Vector4Components*/,
"Style": "Resizable",
"Size": {
"X": 111.079544,
"Y": 59.905018
},
"Position": {
"X": 13.626892,
"Y": 419.70062
}
},
{
"ChildId": "7609847c-ece5-4e9e-8bc4-f6a26689d4a3"/*SrvFromTexture2d*/,
"Position": {
"X": 738.59595,
"Y": 307.63022
}
},
{
"ChildId": "7ac21b66-d617-460a-af7b-f109b830e639"/*DepthStencilState*/,
"Position": {
"X": 755.275,
"Y": 607.82385
}
},
{
"ChildId": "8991cb54-67d6-4dc9-b4fa-7861e367d737"/*_TransformsCBuffer*/,
"Position": {
"X": 738.59595,
"Y": 202.63022
}
},
{
"ChildId": "8eaabe25-84fd-4d9e-bb33-200cd6c65e9d"/*OutputMergerStage*/,
"Position": {
"X": 895.275,
"Y": 572.824
}
},
{
"ChildId": "9fee529f-0ddb-415b-ab27-6fab96fff7d8"/*SetPixelAndVertexShaderStage*/,
"Position": {
"X": 878.59595,
"Y": 132.63022
}
},
{
"ChildId": "c2075c9d-ddb6-4db9-8690-f093ca36fe97"/*Rasterizer*/,
"Position": {
"X": 890.4731,
"Y": 489.61145
}
},
{
"ChildId": "d52a235c-65dd-4ab3-a153-61b02eea3867"/*VertexShader*/,
"Position": {
"X": 738.59595,
"Y": 132.63022
}
},
{
"ChildId": "de6553be-c32a-44c2-978f-f39096fffc3d"/*BoolToFloat*/,
"Position": {
"X": 13.626892,
"Y": 594.7006
}
},
{
"ChildId": "ebc4cfb8-952d-487e-b89f-b3274cc60a73"/*Execute*/,
"Position": {
"X": 1236.2932,
"Y": 170.57228
}
},
{
"ChildId": "f28e2537-bf94-4c58-91ba-89518574c24a"/*PixelShader*/,
"Position": {
"X": 738.59595,
"Y": 167.63022
}
}
],
"OutputUis": [
{
"OutputId": "3f8b20a7-c8b8-45ab-86a1-0efcd927358e"/*Output*/,
"Position": {
"X": 1795.0107,
"Y": 18.747711
}
}
],
"Links": [
{
"Id": "fc762a96-b3c6-44a0-83bf-ccabebea227c",
"Title": "Adding fonts",
"Description": "How to add new fonts to TiXL",
"LinkUrl": "https://github.com/tixl3d/tixl/wiki/help.AddingFonts",
"LinkType": "Documentation"
}
]
}