*1 For the coordinates below marked with *1, specifying a negative coordinate makes it relative to the bottom-right corner of the base image.
If you need to specify a negative coordinate for any reason, write it as --number (two minus signs).
The basic settings file for a balloon.
In addition to the balloon name and author information, it configures things such as the display positions of parts and text display.
descript.txt contains the standard settings for the entire balloon. On top of these settings, each surface of the balloon can be further adjusted in its own individual settings file, balloon(s/k)*s.txt.
charset,Shift_JIS
type,balloon
name,凡例さんの吹き出し
homeurl,http://ssp.shillest.net/ukadoc/manual/hogehoge/example/
craftman,ukadog
craftmanw,うか犬
craftmanurl,http://ssp.shillest.net/ukadoc/manual/index.html
origin.x,14
origin.y,14
validrect.left,0
validrect.top,0
validrect.right,0
validrect.bottom,-12
wordwrappoint.x,-20
font.color.r,0
font.color.g,0
font.color.b,0
cursor.blendmethod,mergepennot
cursor.style,square
cursor.brush.color.r,0
cursor.brush.color.g,127
cursor.brush.color.b,127
cursor.pen.color.r,0
cursor.pen.color.g,0
cursor.pen.color.b,0
cursor.font.color.r,0
cursor.font.color.g,0
cursor.font.color.b,0
arrow0.x,296
arrow0.y,8
arrow1.x,296
arrow1.y,-18
onlinemarker.x,16
onlinemarker.y,-27
sstpmarker.x,16
sstpmarker.y,-20
sstpmessage.x,28
sstpmessage.y,-21
sstpmessage.font.name,MS ゴシック
sstpmessage.font.height,7
number.font.name,Arial
number.font.height,10
number.font.color.r,0
number.font.color.g,0
number.font.color.b,0
number.xr,-28
number.y,-24
communicatebox.x,8
communicatebox.y,21
communicatebox.width,385
communicatebox.height,20
Compared with descript.txt files for ghosts and shells, this file has the distinctive feature of having many settings that are mandatory, either by specification or in practice.
In SSP, setting homeurl for a balloon also enables network updates from Explorer and similar tools.
Note that strings beginning with \ or % are treated as Sakura Script or environment variable tags and discarded for security reasons. To include them as literal characters, escape them as \\ or \%.
Character encoding used for display. Shift_JIS is recommended when compatibility with older environments is required; otherwise, UTF-8 is recommended.
(OS default settings or SSP->Internationalization->Default character encoding->Text definition)
The name of the balloon.
Required
File set type. For a balloon, use balloon.
required | balloon( on SSP)
Author name of the balloon. ASCII alphanumeric characters only.
No value
Author name of the balloon.
No value
ID name of the balloon. ASCII alphanumeric characters only.
no value
Author's URL.
No value
URL for network updates.
no value
The URL of the metainfo folder containing the balloon's information. The format and meaning are the same as metainfo in the ghost's descript.txt.
The value can be obtained through the property system's metainfo.
No value
The URL of the balloon's GitHub project. The format and meaning are the same as githubrepo in the ghost's descript.txt.
The value can be obtained through the property system's githubrepo.
No value
A base string used to prevent UUID collisions. The format and meaning are the same as uuid_base in the ghost's descript.txt.
The value can be obtained through the property system's uuid_base.
No value
The recommended screen DPI value for this balloon. If not specified, it defaults to the fixed Windows standard of 96.
Check Scale under System - Display in the Windows settings of the environment where the balloon was created, then select a value from the conversion table below.
Guideline: 144 (150%) for a 4K monitor, 120–144 (125–150%) for a recent laptop
96
The filename of the balloon description text file opened during installation or from the owner draw menu.
readme.txt
The character encoding of the description text file.
(OS default setting or SSP->Internationalization->Character encoding when omitted->readme)
Cursor used over interactive areas of the balloon. mousecursor can be used starting with SSP 2.5.40.
Cursor specified by the ghost → cursor configured in the OS (arrow)
The cursor (I-beam) used in input boxes.
Cursor specified by the ghost → OS-configured cursor (I-beam)
The cursor (watch) used while processing something and unable to respond.
Cursor specified by the ghost → OS-configured cursor (watch)
The cursor (arrow) used for areas of the balloon that cannot be operated.
Cursor specified by the ghost → OS-configured cursor (arrow)
The X coordinate of the text start position.
In vertical writing (vertical is 1), this indicates the right edge of the first column.
This is usually left unspecified, allowing validrect to define it.
Horizontal writing=validrect.left Vertical writing=validrect.right
The Y coordinate of the text start position.
In vertical writing (vertical is 1), this is the starting position for character progression.
This is usually left unspecified, allowing validrect to define it.
validrect.top
Left position of the text drawing area.
unknown
Top position of the text drawing area.
unknown
Right position of the text drawing area.
unknown
Bottom position of the text drawing area.
unknown
X coordinate at which automatic line wrapping occurs.
Used only for horizontal writing (vertical is 0).
If unspecified, text is treated as writable up to validrect.right.
validrect.right
Y coordinate at which automatic line wrapping occurs.
Used only for vertical writing (vertical is 1); ignored for horizontal writing.
If unspecified, text is treated as writable up to validrect.bottom.
validrect.bottom
If 1 is specified, text in this balloon is displayed in Japanese vertical writing (characters advance from top to bottom and lines advance from right to left).
When using vertical writing, the meaning of coordinate specifications in descript.txt changes as follows. Coordinates should still be specified relative to the top-left corner of the balloon image.
Coordinates that should be measured from the right edge, such as origin.x and number.x, can be specified as negative values according to the rules for *1 (for example, origin.x,-14 means 14 pixels from the right edge of the balloon image).
The vertical-writing variant of the specified font (with @ prefixed to the font name) is used automatically.
If the specified font has no vertical-writing variant (such as a font file placed in the balloon folder or a Western font), it is automatically replaced with the vertical-writing variant of the environment's standard Gothic font.
Note also that the following settings work relative to the character advancement direction, rather than the “on-screen orientation.”
\f[align,~] aligns characters within a column (left = top, right = bottom), while \f[valign,~] aligns them across the line thickness (top = right, bottom = left).\f[underline,true], and anchor underlines) are drawn along the right side of a column.One limitation is that the SSTP marker's sender display and the network update progress display are also drawn vertically. The input box (communicatebox) remains horizontal.
This can also be specified per balloon surface in balloon(s/k)*s.txt, but switching between vertical and horizontal writing for different surfaces in the same balloon will disrupt the layout of text that was displayed before the switch.
0 (horizontal writing)
Font to use. The default is MS ゴシック.
You can also specify a font file placed in the balloon's folder as the font name (SSP only).
Multiple font names can be specified, separated by commas. They are selected from those installed automatically in the order listed (highest priority first) (SSP only).
MS ゴシック
Height of the font to use. (Unit: pixels, not points)
12
Font color red (0–255)
0
Font color green (0–255)
0
Font color blue (0–255)
0
Font shadow color red (0–255). Set to none to disable.
none
Font shadow color green (0–255). Set to none to disable.
none
Font shadow color blue (0–255). Set to none to disable.
none
Style of the font shadow color. offset displays it shifted down and right; outline adds an outline.
offset
Always use bold font. 0 disables / 1 enables.
0
Always use italic style. 0 disables / 1 enables.
0
Always underline. 0 disables it / 1 enables it.
0
Always apply strikethrough. 0 disables it / 1 enables it.
0
Always add an outline. 0 disables / 1 enables.
0
Defines a light-colored text style to indicate that an operation is disabled. Use it with \f[disable] (or \f[color,disable], etc.).
For 「font definition」, you can define any of the definitions beginning with font. as-is. The definition method is the same.
Example: disable.font.color
Only disable.font.color is a color mixed with the balloon's image color; the others are the same as the font. definitions.
Shape of the choice marker.
square displays a rectangle.
underline displays an underline.
square+underline displays a rectangle and an underline.
none displays neither a rectangle nor an underline.
square
Raster operation command for the choice marker.
none means no operation.
notmaskpen means r2_notmaskpen.
mergepennot means r2_mergepennot.
SSP allows all operators supported by the Win32 API SetROP2 function (reference: SetROP2 function (external site))
In this case too, specify the lowercase mode name without the "R2_" prefix.
none
Red component (0–255) of the choice marker font color
Used when no raster operation command is specified.
0
Green component (0–255) of the choice marker font color
Used when no raster operation command is specified.
0
Blue component (0–255) of the choice marker font color
Used when no raster operation command is specified.
0
Red component (0–255) of the choice marker shadow color
Used when no raster operation command is specified.
font.shadowcolor
Green component (0–255) of the choice marker shadow color
Used when no raster operation command is specified.
font.shadowcolor
Blue component (0–255) of the choice marker shadow color
Used when no raster operation command is specified.
font.shadowcolor
Display style of the choice marker shadow. offset places it at the lower right; outline adds an outline.
Used when no raster operation command is specified.
font.shadowstyle
Color red for the rectangular border and underline of the choice marker (0–255)
cursor.font.color.r
Color green for the rectangular border and underline of the choice marker (0–255)
cursor.font.color.g
Color blue for the rectangular border and underline of the choice marker (0–255)
cursor.font.color.b
Red component (0–255) of the color inside the choice marker rectangle
0
Green component (0–255) of the color inside the choice marker rectangle
0
Blue component (0–255) of the color inside the choice marker rectangle
0
Shape of the marker for unselected choices.
square displays a rectangle.
underline displays an underline.
square+underline displays a rectangle and an underline.
none displays neither a rectangle nor an underline.
unknown
Font color red for unselected choices (0–255)
Used when no raster operation command is available.
0
Font color green for unselected choices (0–255)
Used when no raster operation command is available.
0
Font color blue for unselected choices (0–255)
Used when no raster operation command is available.
0
Shadow color red for unselected choices (0–255)
font.shadowcolor
Shadow color green for unselected choices (0–255)
font.shadowcolor
Shadow color blue for unselected choices (0–255)
font.shadowcolor
Shadow display style for unselected choices. offset places the shadow at the bottom right; outline draws an outline.
font.shadowstyle
Color red for the rectangular border and underline of unselected choices (0–255)
cursor.notselect.font.color.r
Color green for the rectangular border and underline of unselected choices (0–255)
cursor.notselect.font.color.g
Color blue for the rectangular border and underline of unselected choices (0–255)
cursor.notselect.font.color.b
Red component (0–255) of the color inside the rectangle of an unselected choice
0
Green component (0–255) of the color inside the rectangle of an unselected choice
0
Blue component (0–255) of the color inside the rectangle of an unselected choice
0
Red component (0–255) of the anchor font color
0
Green component (0–255) of the anchor font color
0
Blue component (0–255) of the anchor font color
0
Anchor shadow color, red (0–255)
font.shadowcolor
Anchor shadow color, green (0–255)
font.shadowcolor
Anchor shadow color, blue (0–255)
font.shadowcolor
Anchor shadow display style. offset displays the shadow at the lower right; outline adds an outline.
font.shadowstyle
Shape of the selected anchor.
Displays a rectangle with square.
Displays an underline with underline.
Displays a rectangle and underline with square+underline.
Displays neither a rectangle nor an underline with none.
underline
Raster operation command for anchors.
none means no operation.
notmaskpen means r2_notmaskpen.
mergepennot means r2_mergepennot.
SSP allows all operators available through the Win32API SetROP2 function (see: SetROP2 function (external site)).
In this case as well, specify the lowercase mode name without the "R2_" prefix.
none
Color of the rectangular border and underline of a selected anchor, red (0–255)
anchor.font.color.r
Color of the rectangular border and underline of a selected anchor, green (0–255)
anchor.font.color.g
Color of the rectangular border and underline of a selected anchor, blue (0–255)
anchor.font.color.b
Red component (0–255) of the color inside the selected anchor's rectangle
0
Green component (0–255) of the color inside the selected anchor's rectangle
0
Blue component (0–255) of the color inside the selected anchor's rectangle
0
Shape of a non-selected anchor.
Display a rectangle with square.
Display an underline with underline.
Display a rectangle and underline with square+underline.
Display neither a rectangle nor an underline with none.
Unknown
Font color of an unselected anchor, red (0–255)
Used when there is no raster operation command.
0
Font color of an unselected anchor, green (0–255)
Used when there is no raster operation command.
0
Font color of an unselected anchor, blue (0–255)
Used when there is no raster operation command.
0
Shadow color of an unselected anchor, red (0–255)
font.shadowcolor
Shadow color of an unselected anchor, green (0–255)
font.shadowcolor
Shadow color of an unselected anchor, blue (0–255)
font.shadowcolor
Shadow display style for an unselected anchor. offset places the shadow at the bottom right; outline adds an outline.
font.shadowstyle
Color of the rectangular border and underline of an unselected anchor, red (0–255)
anchor.notselect.font.color.r
Color of the rectangular border and underline of an unselected anchor, green (0–255)
anchor.notselect.font.color.g
Color of the rectangular border and underline of an unselected anchor, blue (0–255)
anchor.notselect.font.color.b
Color inside the rectangle of an unselected anchor, red (0–255)
0
Color inside the rectangle of an unselected anchor, green (0–255)
0
Color inside the rectangle of an unselected anchor, blue (0–255)
0
The shape of visited anchors.
Display a rectangle with square.
Display an underline with underline.
Display a rectangle and an underline with square+underline.
Display neither a rectangle nor an underline with none.
Unknown
Red font color of visited anchors (0–255)
0
Green font color of visited anchors (0–255)
0
Blue font color of visited anchors (0–255)
0
Red shadow color of visited anchors (0–255)
font.shadowcolor
Green shadow color of visited anchors (0–255)
font.shadowcolor
Blue shadow color of visited anchors (0–255)
font.shadowcolor
Shadow display style for visited anchors. offset places it at the lower right; outline adds an outline.
font.shadowstyle
Red color of the rectangular frame and underline of the visited anchor's choice marker (0–255)
anchor.visited.font.color.r
Green color of the rectangular frame and underline of the visited anchor's choice marker (0–255)
anchor.visited.font.color.g
Blue color of the rectangular frame and underline of the visited anchor's choice marker (0–255)
anchor.visited.font.color.b
Color inside the choice marker rectangle of a visited anchor, red (0–255)
0
Color inside the choice marker rectangle of a visited anchor, green (0–255)
0
Color inside the choice marker rectangle of a visited anchor, blue (0–255)
0
X coordinate of the click-wait marker.
Same as arrow1
Y coordinate of the click-wait marker.
Same as arrow1
The X coordinate of the SSTP marker.
Unknown
The Y coordinate of the SSTP marker.
Unknown
X coordinate where the SSTP message display starts.
unknown
Y coordinate where the SSTP message display starts.
unknown
X coordinate where the SSTP message display ends. Measured from the left. (If a negative value is specified, measured from the right.)
Used only for horizontal writing (vertical is 0). For vertical writing, use sstpmessage.yb.
unknown
Y coordinate where the SSTP message display ends. Measured from the top. (If a negative value is specified, measured from the bottom.)
Used only for vertical writing (vertical is 1); ignored for horizontal writing.
In vertical writing, characters advance from top to bottom, so specify the display end position with the Y coordinate rather than the X coordinate of sstpmessage.xr.
unknown
The interval at which the online indicator animation changes frames. Values below 50 milliseconds are not allowed, to avoid unnecessarily increasing the load.
500 milliseconds
The X coordinate of the online indicator.
Unknown
The Y coordinate of the online indicator.
Unknown
Font used for SSTP messages. The default is MS Gothic.
You can also specify a font file placed in the balloon folder as the font name (SSP only).
Multiple font names can be specified as a comma-separated list. The fonts are selected from those installed on the system in the order written, from highest to lowest priority (SSP only).
MS Gothic
SSTP message height (in pixels, not points).
10
SSTP message font red (0–255)
0
SSTP message font green (0–255)
0
SSTP message font blue (0–255)
192
The font used for the counter number.
A font file placed in the balloon's folder can also be specified as the font name (SSP only).
Multiple font names can be specified, separated by commas. One is selected from the fonts installed automatically, in the order listed (SSP only).
MS Gothic
The height of the counter number in pixels (not points).
10
Red component of the counter number's font color (0–255)
0
Green component of the counter number's font color (0–255)
0
Blue component of the counter number's font color (0–255)
0
The X coordinate of the counter number. Same as number.xr; this is an alias for specifying the position from the left.
In horizontal writing (vertical is 0), this indicates the right edge of the number (that is, the edge toward which the number extends). In vertical writing, it indicates the position of the column containing the number; number.yb determines the edge toward which the number extends.
Unknown
The X coordinate of the counter number, measured from the right. Same as number.x.
Unknown
The Y coordinate of the counter number.
In horizontal writing (vertical is 0), this indicates the top edge of the number. In vertical writing, it indicates the bottom edge (vertical numbers extend upward from their bottom edge).
Unknown
The Y coordinate of the counter number, measured from the bottom. Same as number.y; this is an alias for explicitly specifying that, in vertical writing, the bottom edge is the reference point.
Unknown
X coordinate of the upper scroll-marker arrow.
Unknown
Y coordinate of the upper scroll-marker arrow.
Unknown
X coordinate of the lower scroll-marker arrow.
Unknown
Y coordinate of the lower scroll-marker arrow.
Unknown
Font used in the input box.
A font file placed in the balloon folder can also be specified as the font name (SSP only).
Multiple font names can be specified, separated by commas. They are selected from those installed automatically in the order listed, which determines priority (SSP only).
MS ゴシック
Red font color of the input box (0–255)
0
Green font color of the input box (0–255)
0
Blue font color of the input box (0–255)
0
Red background color of the input box (0–255)
Center color of the input box image
Green background color of the input box (0–255)
Center color of the input box image
Blue background color of the input box (0–255)
Center color of the input box image
Red component (0–255) of the text color for the hint text displayed faintly when the input box is empty (--placeholder=)
A color shifted toward the text color's background color and further desaturated
Green component (0–255) of the text color for the hint text displayed faintly when the input box is empty (--placeholder=)
A color shifted toward the text color's background color and further desaturated
Blue component (0–255) of the text color for the hint text displayed faintly when the input box is empty (--placeholder=)
A color shifted toward the text color's background color and further desaturated
X coordinate of the input area's starting point.
Unknown
Y coordinate of the input area's starting point.
Unknown
Width of the input area.
Unknown
Height of the input area.
Unknown
Controls the display of areas that use the image's transparent color (the color in the top-left pixel) but are not transparent according to the transparency values.
If set to 0, the image's original color (the transparent color) is displayed at the specified transparency.
If set to 1, the area is filled with black instead of the image color, then displayed at the specified transparency.
For example, an image with a completely white pna will be displayed as-is, without a transparent color, if this is set to 0.
This setting applies to the entire balloon and cannot be overridden.
Unspecified (behaves as 1 for images that use pna as transparency, and as 0 for images that use the image's own alpha channel as transparency)
If 1 or true is specified, surfaces with transparent images (PNG files with an alpha channel) or .pna files use the alpha channel as transparency. If neither an alpha channel nor a .pna file is present, the conventional behavior is used: the color at the top-left of the image is treated as the key color.
If full is specified, all surfaces without an alpha channel are also treated as opaque, in addition to the above (the top-left key color is not made transparent).
Note that input-box balloons cannot be made translucent unless use_input_alpha is also set to 1.
This setting applies to the entire balloon and cannot be overridden.
0
If the value is 1, input-box balloons are also made translucent. However, the input box border cannot be made translucent.
This setting applies to the entire balloon and cannot be overridden.
0
If the value is 1, image parts such as the online indicator and SSTP marker can also be drawn outside the balloon.
This setting applies to the entire balloon and cannot be overridden.
0
Adjusts the balloon's position along the x-axis from its default position.
Specify a numeric value in pixels or a keyword.
For numeric values, positive is always to the right, regardless of whether the balloon appears on the left or right. Note that unlike the shell's balloon.offsetx, the sign is not reversed when the balloon appears on the right.
center (top has the same effect in SSP only) fixes the balloon to the top center of the shell.
bottom (SSP only) fixes the balloon to the bottom center of the shell.
Other strings (such as left, right, and free) are not accepted and are treated as 0. In SSP, a warning is written to the error log.
Also, only in SSP, this can be specified in descript.txt.
0
Adjusts the balloon's position along the y-axis from its default position.
Specify a numeric value in pixels. Positive is down and negative is up.
The default position changes according to the windowposition.x setting:
center,top……the bottom edge of the balloon meets the top edge of the shell image
bottom……the top edge of the balloon meets the bottom edge of the shell image
Numeric value……the top edges of the balloon and shell image overlap
Only in SSP, this can also be specified in descript.txt.
0
Whether to force the balloon to stay within the screen. 1 keeps it within the screen; 0 does not (it can extend beyond the screen).
Only in SSP, this can also be specified in descript.txt.
1
Individual settings files for each balloon surface (balloons0.png, balloonk0.png, ...) and input box.
Settings in descript.txt are treated as the default settings. If the same item is set here, only that item is overridden.
One file can be provided for each surface (for example, balloons0s.txt for balloons0.png; note the s at the end of the filename).
Basically, all items can be configured, but name, type, craftman, craftmanurl, id, homeurl, and readme, which apply to the balloon as a whole, cannot be configured (they have no effect).
Additionally, windowposition.x and windowposition.y are available to adjust the display position relative to the shell's surfaces (SSP also allows these to be configured in descript.txt).
For the multiple-line input box balloonc5.png (SSP 2.9.10), the range specified by communicatebox.x/y/width/height in balloonc5s.txt covers both the input field and the row of buttons beneath it.
This range does not inherit the values in descript.txt (for a one-line input box). If not specified in balloonc5s.txt, the range is inset 8 pixels from each edge of the image.
The text size follows font.height in balloonc5s.txt (or font.height in descript.txt if omitted); the typeface and colors follow communicatebox.font.name/font.color/background.color.
Specifies the filename of the image used for the scroll arrows. The extension is not required.
For example, if set to arrow, arrow0 (up) and arrow1 (down) are loaded automatically.
arrow / individual: arrows,arrowk,arrowp*def
Specifies the filename of the image used for the SSTP marker. The extension is not required.
sstp or sstp_new / individual: sstp_news,sstp_newk,sstp_newp*def
Specifies the filename of the image displayed by the \![*] tag. The extension is not required.
marker / individual: markers,markerk,markerp*def
Specifies the filename of the image used to indicate online status. The extension is not required.
For example, if set to online, images are loaded in the order online0, online1, online2, ... and animated while online.
online / individual: onlines,onlinek,onlinep*def
Specifies the filename of the image used to indicate that a click is awaited. The extension is not required.
clickwait / individual: clickwaits,clickwaitk,clickwaitp*def
The name of the recommended ghost for use with this balloon. A strong warning is displayed if the balloon is used with another ghost.
[SSP 2.9.35] The ghost's UUID can be specified instead of its name. The warning is also determined by the specified UUID (in the list of recommended ghosts shown in the warning, entries specified by UUID are displayed by ghost name if found).
Not specified
Relative path to the recommended ghost. A strongly worded warning appears if you try to use anything else.
Not specified
When writing the definition above, it indicates that the specified balloon is extremely specialized for a particular ghost in terms of its shape, images, and other aspects, to the extent that a prompt may appear asking whether to delete it when that ghost is uninstalled.
In other words, it is strongly recommended that you do not specify this if the balloon is designed so that it could possibly be used with even one other ghost.