builders:sign
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
builders:sign [2022/08/20 19:00] – amanda | builders:sign [2022/08/28 22:23] (current) – amanda | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Sign ====== | ====== Sign ====== | ||
- | This is an item of class 54. | + | This is an item of class 54. You can use Fiddle>Create |
- | + | ||
- | (Create | + | |
This object will dynamically create a string of text based upon the value you enter in the ' | This object will dynamically create a string of text based upon the value you enter in the ' | ||
+ | |||
+ | Use Fiddle > Modify object to get at the text field. | ||
The field can be a simple string, but can also be prefixed by the following - | The field can be a simple string, but can also be prefixed by the following - | ||
- | | #c//n// | Sets the text to this color. | + | | #c//n// | Sets the text to this color. |
- | | #b//n// | Sets the background color. If you want to use the colorMap, specify #240 | | + | | #b//n// | Sets the background color. If you want to use the colorMap, specify #c240 | |
| #s//n// | Sets point size | | | #s//n// | Sets point size | | ||
| #f//sss// | Sets font to use (see below) | | | #f//sss// | Sets font to use (see below) | | ||
Line 18: | Line 18: | ||
This works by dynamically generating an img file for your text string at runtime. | This works by dynamically generating an img file for your text string at runtime. | ||
+ | |||
+ | e.g. | ||
+ | * # | ||
+ | * # | ||
Fonts available. | Fonts available. | ||
- | [[https:// | + | Specifying a font of " |
+ | |||
+ | Otherwise you may specify the name of a supported font. An up-to-date list is available by clicking | ||
Notes- | Notes- | ||
- | * Some fonts simply don't work. These are just a dump from my PC; let me know if you have issues, or want any adding. | + | * Some fonts simply don't work. These are mostly |
* An error in your string may cause either a default version, or nothing, to be displayed. | * An error in your string may cause either a default version, or nothing, to be displayed. | ||
* In the latter case, use Fiddle> | * In the latter case, use Fiddle> | ||
* Rotations > 90 don't seem to work even though they should :( | * Rotations > 90 don't seem to work even though they should :( | ||
* Different fonts behave differently w.r.t scaling, antialiasing and rotations. | * Different fonts behave differently w.r.t scaling, antialiasing and rotations. | ||
- | * Non-ASCII characters probably won't work. | ||
* Don't touch imageURL or imageVersion - On Signs, these are set dynamically at runtime by the server. | * Don't touch imageURL or imageVersion - On Signs, these are set dynamically at runtime by the server. | ||
* Using the generated imageURLs (sign.*.img) on other objects is currently discouraged as they are only generated when a sign is requested, and I can see that there will be a need to purge unused ones.. | * Using the generated imageURLs (sign.*.img) on other objects is currently discouraged as they are only generated when a sign is requested, and I can see that there will be a need to purge unused ones.. | ||
* If you want to use the same text just in different colors, set #c to 239 and use the same exact value in ' | * If you want to use the same text just in different colors, set #c to 239 and use the same exact value in ' | ||
- | * | + | * Fix orientation to 0 for normal text; 1 for backwards text! |
BUGS: | BUGS: | ||
- | * BUG: background fill isn' | + | * Non-ASCII characters probably won' |
* On clicking " | * On clicking " |
builders/sign.1661022054.txt.gz · Last modified: 2022/08/20 19:00 by amanda