IScoreFlash PushScreen Method (, Object, , , Int32)ScoreFlash API Documentation V4.6.0
Pushes a message to the screen, at screenPosition. Aside of using screenPosition instead of the layout settings of the ScoreFlash instance this is called on, this does the same as PushLocal(Object, GUIStyle, GUIStyle, Int32).

Namespace: NarayanaGames.ScoreFlashComponent
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax

ScoreMessage PushScreen(
	Vector2 screenPosition,
	Object message,
	GUIStyle style,
	GUIStyle styleHighDensity,
	int messageQueueID
)

Parameters

screenPosition
Type: Vector2
where should the message have its reference point on the screen?
message
Type: OnlineSystem Object
The message to be animated by ScoreFlash. This can be a string, a fully configured custom renderer, an int, long, float, double or any object with a useful ToString() method
style
Type: GUIStyle
a custom style, or null to use the custom style ScoreFlash of skin (this parameter is optional!) If you have a specific color assigned to that style that you want to be used, you need to have "Colors / Color Selection Mode" set to UseColorFromSkin (see colorSelectionMode, ScoreFlash ColorControl).
styleHighDensity
Type: GUIStyle
a custom style, or null to use the custom style ScoreFlash of skinHighDensity (this parameter is optional!)
messageQueueID
Type: OnlineSystem Int32
An integer that defines which message queue is used for this message. Any two messages that have different IDs will be treated completely independently; in particular ScoreFlash will not try to make them be readable by pushing older messages "up". When the IDs are the same, ScoreFlash checks the screen distance of the reference position and if that distance is larger than 15 pixels, the messages will also not push previous messages up. If you want to use ScoreFlash for objects, it's recommended that you use ScoreFlashFollow3D which automatically uses this. If you follow your own approach, the easiest way to make this work is by simply using the game object's instance ID (OnlineObject.GetInstanceID()a>). This parameter is optional!

Return Value

the ScoreMessage representing this text
Remarks

See ScoreFlash for several usage examples and links to tutorial videos.
See Also