Text (1.01)

Plugin Information

Information
Developer: Dewin
Download: Text
Download Count: 0
Release Date: May 07, 2008

What is Text

Text is a plugin that allows you to create 'text objects' via windower console commands.

Text objects at their most basic level are some text, a font for said text, and a location onscreen to draw said text. They are used extensively by many plugins, such as TParty, Recast, Distance, and Expwatch.

You can use Text, for instance, to display a list of macros that are changed on-the-fly. One instance might be macros to choose an avatar and to choose a bloodpact on the selected avatar.

Usage

Text (1.01) can be loaded by opening your Windower console and typing load text. Text (1.01) is autoload friendly, one can add the load text command to their init.txt file in the scripts folder where Windower resides. See the Commands section for further usage details.

Commands

verbose <level>

Adjusts message spam.

  • Verbosity 0 suppresses all messages except errors
  • Verbosity 1 (default) only reports when a wildcard match didn't match anything
  • Verbosity 2 reports all actions
create <name>

Creates a text object named <name> using default settings. The textobject will be initially invisible. delete <names> Deletes text object(s)

set <names> fg <red> <green> <blue> [<alpha>]

Sets the foreground color (red, green, blue, and optional alpha). Alpha defaults to 255 if omitted.

set <names> bg <red> <green> <blue> [<alpha>]

Sets the background color (red, green, blue, and optional alpha). Alpha defaults to 255 if omitted.

set <names> position <x> <y>

Shortcut to setting x and y at the same time.

set <names> show

Show the text object(s).

set <names> hide

Hide the text object(s).

set <names> showbg

Show the background for the text object(s).

set <names> hidebg

Hide the background for the text object(s).

set <names> text "<text>"

Sets text displayed by the text object(s). Quotes are mandatory if the text includes any space. You can display multiline text by separating multiple lines with '&#092;n'

set <names> align {left|right}

Changes text alignment.

set <names> font <fontname> <fontsize>

Changes font and font size.

set <names> bold 0/1

Changes whether the text is bolded or not.

set <names> italic 0/1

Changes whether the text is italicized or not.

To save time, you may chain multiple 'set' commands together:

text set MyTextObject fg 255 255 255 255 bg 0 0 0 192 text "White text on a translucent black background"

To change the defaults applied to new text objects, replace 'set <names>' with 'setdefault'. e.g. to ensure all newly created text objects are in 10 point Courier New:

text setdefault font "Courier New" 10

To modify text objects not created by the Text plugin, replace set <names> with devset <name>. Note that devset is case sensitive, does not support wildcards, and is not supported. If devset breaks your plugins, well, you've been warned.

Text object names are case-insensitive (internally they are converted to lowercase). In addition, all names are modified slightly to avoid a possible conflict with textobjects created by Windower or its plugins.

Most commands can apply to multiple text objects. There is limited support for wildcards:

  • A name of 'Group1*' will match all names starting with 'Group1'. Note that this can only occur at the END of the name for performance reasons.
  • You can list multiple names, e.g. 'Group1A,Group1B,Group1C'
  • You can mix wildcards and lists: 'Group1*,Group2*,Group3A,Group3B'

Note that commands that take multiple objects only work on objects already created with 'text create'.

TextObject Names of Other Plugins

This list is for 'text devset'. It is not guarunteed to be accurate, and 'text devset' is not supported

Plugin/Feature Textobject name Notes
Consolenot modifiable
FPS Displaynot modifiable
Distance (1.2) TargetDecimal, TargetDot, TargetInt
ExpWatch (2.0) ewText
MediaCenter (1.0) MCText
Precognition (1.0) Precognition
Recast (1.73) RecastDisplay
StatusTimer (1.0)n/aUse StatusTimer's console commands
Tickle (1.0) TickCount
TParty (1.1) PartyTP0..PartyTP17, AllianceMP0..AllianceMP17, TargetHP Color changes to PartyTP won't stick. Visibility changes are likely to be lost upon party member list changes.
YarnBall (3.02) YarnTimers
ZoneTimer (1.0) n/aUse ZoneTimer's console commands
plugins/text.txt · Last modified: 2009/08/16 12:18 by krellion
www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0