User Tools

Site Tools


crpl:docs:settextanchor

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
crpl:docs:settextanchor [2013/10/26 01:17] – created ThirdPartycrpl:docs:settextanchor [2021/02/05 11:44] (current) – Rmoved discussion tag Karsten75
Line 1: Line 1:
-~~DISCUSSION~~ + 
-<- [[crpl:crplreference|CRPL reference]] <- [[crpl:crplreference#screen_commands|Screen Commands]]+<- [[crpl:crplreference|CRPL reference]] <- [[crpl:crplreference#text_commands|Text Commands]]
 =====  SetTextAnchor  ===== =====  SetTextAnchor  =====
  
 ^Arguments^Result^Notation^ ^Arguments^Result^Notation^
-|corner|??? FIXME|''s1 -''|+|AnchorPoint| |''s1 --''\\ //or//\\ ''n1 --''|
  
 === Description === === Description ===
-Sets the text anchor. FIXME+Sets the text anchor point of the text box in relation to the CRPL Core. 
 + 
 +Valid string arguments are ''"UpperLeft"'', ''"UpperCenter"'', ''"UpperRight"'', ''"MiddleLeft"'', ''"MiddleCenter"'', ''"MiddleRight"'', ''"LowerLeft"'', ''"LowerCenter"'', and ''"LowerRight"''. Valid numeric arguments are 0-8, with the same order as the listed string arguments (0 equals UpperLeft, 8 = LowerRight). Unrecognized strings or numbers are treated as UpperLeft or 0. 
 + 
 +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::docs::SetTextX]] and [[crpl::docs::SetTextY]].
  
-Valid arguments are "UpperLeft", "UpperCenter", "UpperRight", "MiddleLeft", "MiddleCenter", "MiddleRight", "LowerLeft", "LowerCenter", and "LowerRight". 
 === Examples === === Examples ===
 <code> <code>
-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 
 +"LowerRight" SetTextAnchor 
 + 
 +# Warp notation 
 +SetText("Hello Creeper World"
 +SetTextAnchor("LowerRight")
 </code>  </code> 
crpl/docs/settextanchor.1382764630.txt.gz · Last modified: 2014/10/01 15:02 (external edit)