Sign: Difference between revisions

From Virtual Paradise Wiki
Jump to navigation Jump to search
Created page with "==Usage== sign [color=''text color''] [bcolor=''background color''] [margin=''margin''] [vmargin=''vertical magin''] [[hmargin=''horizontal magin''] [align=''alignmen..."
 
Sleepy E (talk | contribs)
m OCD fix for bcolor default
 
(15 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{feature|1|0.3.0|  |Vp_sign_example.png|Sign with example code applied}}
The '''sign''' command allows the user to create text on objects which are able to receive sign textures (rwx with one or more surfaces tagged 100, or group name "vp_sign" in OBJ and MD5Mesh models)
{{Clear}}
==Usage==
==Usage==
     sign [color=''text color''] [bcolor=''background color''] [margin=''margin'']  
     '''sign''' [''"text"''] [''color=''] [''bcolor=''] [''margin=''] [''vmargin=''] [''hmargin=''] [''align=''] [''shadow OR noshadow''] [''name=''] [global]
    [vmargin=''vertical magin''] [[hmargin=''horizontal magin''] [align=''alignment''] [''shadow'']
 
==Description==
==Arguments==
===Text Color===
; Text : Text to render on the sign. If omitted, the contents of the description field is used for the text<br>'''Values:''' Text string within double-quotes (e.g. "This is a string")<br>'''Default:''' [contents of Description field]
Foreground color of the sign text
; Color : The foreground color of the sign text<br>'''Values:''' Color Names, Hexadecimal colors<br>'''Default:''' White
===Background Color===
; Bcolor : The background color of the sign<br>'''Values:''' Color Names, Hexadecimal colors<br>'''Default:''' 0000C0 (Medium blue)
Background color of the sign
; Margin : The overall margin of the sign. Same as setting HMargin and VMargin to the same value<br>'''Values:''' Decimal numbers greater than 0.0<br>'''Default:''' 0.0
===Margin===
; Vmargin : The space between the edge of the sign, and the top of the text<br>'''Values:''' Decimal numbers greater than 0.0<br>'''Default:''' 0.0
===Vertical Margin===
; Hmargin : The space between the left/right edges of the sign, and the left/right edges of the text<br>'''Values:''' Decimal numbers greater than 0.0<br>'''Default:''' 0.0
===Horizontal Margin===
; Align : Controls the general anchor point of the text<br>'''Values:''' Left, Right, Center<br>'''Default:''' Center
===Alignment===
; Noshadow OR Shadow : Adds a 1 Pixel black shadow to the text<br>'''Default:''' Noshadow
Left, center or right. Default center.
; Name : The name of the object(s) to initiate the command on (see [[Name]] for more information)<br>'''Default:''' Current object only
===Shadow===
; Global : If set, this will cause a trigger (e.g. activate, adone) to initiate this command for all users have the object in view. Otherwise, the command will be initiated only for the user who activates the trigger<br>'''Default:''' Not set
Add a one-pixel black shadow to the text(like the avatar name tags)
 
==Example==
create sign "Building is FUN :D" color=white bcolor=blue vmargin=40.0 hmargin=2.0 align=center shadow
 
Creates the sign visible on the example image on this page.
 
create sign "Not clicked"; activate sign "Clicked" global
 
Creates a sign with the text "Not clicked", which changes to "Clicked" if a users clicks it (for anyone who has it within view, due to the "global" flag being set).


[[Category: Action Commands]]
{{Build}}
[[Category: Script commands]]

Latest revision as of 22:40, 25 July 2018

Sign
Sign with example code applied
Build required 1
Version required 0.3.0


The sign command allows the user to create text on objects which are able to receive sign textures (rwx with one or more surfaces tagged 100, or group name "vp_sign" in OBJ and MD5Mesh models)

Usage

   sign ["text"] [color=] [bcolor=] [margin=] [vmargin=] [hmargin=] [align=] [shadow OR noshadow] [name=] [global]

Arguments

Text
Text to render on the sign. If omitted, the contents of the description field is used for the text
Values: Text string within double-quotes (e.g. "This is a string")
Default: [contents of Description field]
Color
The foreground color of the sign text
Values: Color Names, Hexadecimal colors
Default: White
Bcolor
The background color of the sign
Values: Color Names, Hexadecimal colors
Default: 0000C0 (Medium blue)
Margin
The overall margin of the sign. Same as setting HMargin and VMargin to the same value
Values: Decimal numbers greater than 0.0
Default: 0.0
Vmargin
The space between the edge of the sign, and the top of the text
Values: Decimal numbers greater than 0.0
Default: 0.0
Hmargin
The space between the left/right edges of the sign, and the left/right edges of the text
Values: Decimal numbers greater than 0.0
Default: 0.0
Align
Controls the general anchor point of the text
Values: Left, Right, Center
Default: Center
Noshadow OR Shadow
Adds a 1 Pixel black shadow to the text
Default: Noshadow
Name
The name of the object(s) to initiate the command on (see Name for more information)
Default: Current object only
Global
If set, this will cause a trigger (e.g. activate, adone) to initiate this command for all users have the object in view. Otherwise, the command will be initiated only for the user who activates the trigger
Default: Not set

Example

create sign "Building is FUN :D" color=white bcolor=blue vmargin=40.0 hmargin=2.0 align=center shadow

Creates the sign visible on the example image on this page.

create sign "Not clicked"; activate sign "Clicked" global

Creates a sign with the text "Not clicked", which changes to "Clicked" if a users clicks it (for anyone who has it within view, due to the "global" flag being set).

Object Scripting

Triggers:

ActivateAdoneBumpBumpendCreate

Commands:

AnimateAnimationAmbientCameraColorDiffuseFrameFramerateGroupLightMoveNameNoiseNormalmapOpacityPathPictureRotateSayShearScaleSignSolidSoundSpecularSpecularmapTeleportTeleportxTeleportxyzTextureUrlVisibleWeb