- Parameters:
Style:id
: Style:id_INFO- Returns:
- Parameters:
- Returns:
- Remarks: Constructor.
- Parameters:
filename[]
: filename[]_INFO- Returns:
- Parameters:
- Returns:
- Remarks: XML callback for loading the tag.
- Parameters:
Float:x
: Float:x_INFOFloat:y
: Float:y_INFOFloat:letterX
: Float:letterX_INFOFloat:letterY
: Float:letterY_INFOFloat:textX
: Float:textX_INFOFloat:textY
: Float:textY_INFOcolour
: colour_INFOboxColour
: boxColour_INFObgColour
: bgColour_INFOshadow
: shadow_INFO- Returns:
- Remarks: Creates a text draw style structure according to given parameters, can be used to display any text in the given style without repeated redefinitions.
- Parameters:
- Returns:
- Remarks: XML callback for loading the tag.
- Parameters:
name[]
: name[]_INFO- Returns:
- Parameters:
hash
: hash_INFO- Returns:
- Parameters:
Style:styleID
: Style:styleID_INFOname[]
: name[]_INFO- Returns:
- Remarks: Copies a text draw style and returns the new handle.
- Parameters:
Style:styleID
: Style:styleID_INFOdata[E_TD_DATA]
: data[E_TD_DATA]_INFO- Returns:
- Parameters:
Style:styleID
: Style:styleID_INFOname[]
: name[]_INFO- Returns:
- Parameters:
Text:textID
: Text:textID_INFOFloat:x
: Float:x_INFOFloat:y
: Float:y_INFO- Returns:
- Remarks: Moves a single bit of text, not all with a style.
- Parameters:
Text:textID
: Text:textID_INFOFloat:x
: Float:x_INFO- Returns:
- Remarks: Moves a single bit of text, not all with a style.
- Parameters:
Text:textID
: Text:textID_INFOFloat:y
: Float:y_INFO- Returns:
- Remarks: Moves a single bit of text, not all with a style.
- Parameters:
Style:styleID
: Style:styleID_INFOFloat:x
: Float:x_INFOFloat:y
: Float:y_INFObool:update
: bool:update_INFO- Returns:
- Remarks: Update is default false to not modify moved texts.
- Parameters:
Style:styleID
: Style:styleID_INFOFloat:x
: Float:x_INFObool:update
: bool:update_INFO- Returns:
- Remarks: Update is default false to not modify moved texts.
- Parameters:
Style:styleID
: Style:styleID_INFOFloat:y
: Float:y_INFObool:update
: bool:update_INFO- Returns:
- Remarks: Update is default false to not modify moved texts.
- Parameters:
Style:styleID
: Style:styleID_INFOFloat:x
: Float:x_INFOFloat:y
: Float:y_INFObool:update
: bool:update_INFO- Returns:
- Parameters:
Style:styleID
: Style:styleID_INFOFloat:x
: Float:x_INFObool:update
: bool:update_INFO- Returns:
- Parameters:
Style:styleID
: Style:styleID_INFOFloat:y
: Float:y_INFObool:update
: bool:update_INFO- Returns:
- Parameters:
Style:styleID
: Style:styleID_INFOFloat:x
: Float:x_INFOFloat:y
: Float:y_INFObool:update
: bool:update_INFO- Returns:
- Parameters:
Style:styleID
: Style:styleID_INFOFloat:x
: Float:x_INFObool:update
: bool:update_INFO- Returns:
- Parameters:
Style:styleID
: Style:styleID_INFOFloat:y
: Float:y_INFObool:update
: bool:update_INFO- Returns:
- Parameters:
Style:styleID
: Style:styleID_INFOalignment
: alignment_INFObool:update
: bool:update_INFO- Returns:
- Remarks: Designed to take ta_align enum values and numbers.
- Parameters:
Style:styleID
: Style:styleID_INFOcolour
: colour_INFObool:update
: bool:update_INFO- Returns:
- Parameters:
Style:styleID
: Style:styleID_INFObool:use
: bool:use_INFObool:update
: bool:update_INFO- Returns:
- Parameters:
Style:styleID
: Style:styleID_INFOcolour
: colour_INFObool:update
: bool:update_INFO- Returns:
- Parameters:
Style:styleID
: Style:styleID_INFOsize
: size_INFObool:update
: bool:update_INFO- Returns:
- Parameters:
Style:styleID
: Style:styleID_INFOsize
: size_INFObool:update
: bool:update_INFO- Returns:
- Parameters:
Style:styleID
: Style:styleID_INFOcolour
: colour_INFObool:update
: bool:update_INFO- Returns:
- Parameters:
Style:styleID
: Style:styleID_INFOfont
: font_INFObool:update
: bool:update_INFO- Returns:
- Parameters:
Style:styleID
: Style:styleID_INFObool:set
: bool:set_INFObool:update
: bool:update_INFO- Returns:
- Parameters:
Style:styleID
: Style:styleID_INFOtime
: time_INFOexisting
: existing_INFO- Returns:
- Remarks: Doesn't update existing timed texts, just new ones. Now does all of them.
- Parameters:
text[]
: text[]_INFOStyle:id
: Style:id_INFOText:slot
: Text:slot_INFO- Returns:
- TextDraw id.
- Remarks: Basically the application layer, creates a text_draw with the saved data.
- Parameters:
text[]
: text[]_INFOStyle:id
: Style:id_INFOText:slot
: Text:slot_INFO- Returns:
- TextDraw id.
- Remarks: Basically the application layer, creates a text_draw with the saved data.
- Parameters:
Style:id
: Style:id_INFObool:pos
: bool:pos_INFO- Returns:
- Remarks: Loops through all texts displayed using the current render style and updates their real display.
- Parameters:
Text:slot
: Text:slot_INFOStyle:id
: Style:id_INFO- Returns:
- Remarks: Updates a single text's appearance. Modified to use a timer with a delay of 1ms, to be called after the current slew of updates. This means that doing a whole load of modifications at once will all be committed to players at the same time. This used to be done with the optional "update" parameter.
- Parameters:
styleId
: styleId_INFO- Returns:
- Remarks: Just nulls the name to remove it's active marker.
- Parameters:
Text:textDraw
: Text:textDraw_INFO- Returns:
- Remarks: Destroys this text draw only if it is marked for garbage collection. It does not however check that no-one can see the text draw, so those people who can currently see it will loose it.
- Parameters:
Text:textDraw
: Text:textDraw_INFO- Returns:
- Remarks: Optimised for multiple people. Not very well though...
- Parameters:
- Returns:
- Remarks: Links two TDs so that manipulating one does the other too. They are already linked through their style, but that's only for style updates. This handles things like screen position updates etc.
- Parameters:
text[]
: text[]_INFOStyle:id
: Style:id_INFO- Returns:
- Internal Text: id, not actual text draw's id.
- Remarks: Generates a text draw for to display to people.
- Parameters:
Text:td
: Text:td_INFOtext[]
: text[]_INFO- Returns:
- Remarks: Changes the text on people's screens quickly. This function DOES NOT update linked TDs as the point is that they display the same data in different ways, so will need to be updated in different ways.
- Parameters:
text[]
: text[]_INFOhash
: hash_INFO- Returns:
- Parameters:
text[]
: text[]_INFOstyle[]
: style[]_INFO- Returns:
- Parameters:
playerid
: playerid_INFOText:textDraw
: Text:textDraw_INFO- Returns:
- Remarks: Now destroys any existing text draws using the same style in the same place to avoid overlaps.
- Parameters:
playerid
: playerid_INFOText:textDraw
: Text:textDraw_INFOrevision
: revision_INFO- Returns:
- Remarks: Public so the timer can call it to hide texts with a time set.
- Parameters:
Text:textDraw
: Text:textDraw_INFO- Returns:
- Parameters:
Text:textDraw
: Text:textDraw_INFO- Returns:
- Remarks: Destroys the real text draw if marked for garbage collection. Hides all linked TDs.
- Parameters:
playerid
: playerid_INFOreason
: reason_INFO- Returns:
- Remarks: Required to fix bugs in the textdraw system by hiding all visible ones.
- Parameters:
Text:textDraw
: Text:textDraw_INFO- Returns:
- Remarks: Tells the system to remove a text draw when no-one can see it anymore to free up text draw slots. Note that linked TDs don't share garbage status. This is because I said so, not for any good reason (other that I can't be bothered to code it up). Ergo this behaviour is a feature, not a bug!
- Parameters:
Text:textDraw
: Text:textDraw_INFOStyle:style
: Style:style_INFOtime
: time_INFOdefer
: defer_INFO- Returns:
- Remarks: Entry point for changing the apperance of a text draw to look like another one. How smooth this is depends on the difference and the time given. The default update time is 50ms (20fps), which isn't too bad. Don't modify revision versions in here as if there is a hide timer, it still applies regardless of what style is currently applied. No longer takes a playerid parameter - it's just tough but easy to work around using y_text.