This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
crpl:docs:settextanchor [2013/10/26 05:17] – created ThirdParty | crpl:docs:settextanchor [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ~~DISCUSSION~~ | + | |
- | <- [[crpl: | + | <- [[crpl: |
===== SetTextAnchor | ===== SetTextAnchor | ||
^Arguments^Result^Notation^ | ^Arguments^Result^Notation^ | ||
- | |corner|??? FIXME|'' | + | |AnchorPoint| |'' |
=== Description === | === Description === | ||
- | Sets the text anchor. | + | Sets the text anchor |
+ | |||
+ | Valid string arguments are ''" | ||
+ | |||
+ | The AnchorPoint refers to the point on the text box that anchors to the CRPLCore. UpperLeft anchors the upper left corner of the text box to the CRPL Core, causing the text to display down and to the right of the CRPL Core. | ||
+ | |||
+ | The anchor point attaches to the center of the CRPL Core by default, but can be changed with [[crpl:: | ||
- | Valid arguments are " | ||
=== Examples === | === Examples === | ||
< | < | ||
- | examples go here | + | # Display text with the text box anchored on the LowerRight corner, |
+ | # making the text appear above and to the left of the CRPL Core. | ||
+ | "Hello Creeper World" SetText | ||
+ | " | ||
+ | |||
+ | # Warp notation | ||
+ | SetText(" | ||
+ | SetTextAnchor(" | ||
</ | </ |