Deprecated FLOATING_TEXT.
This commit is contained in:
parent
62e6d23ab3
commit
180a84327a
2 changed files with 27 additions and 25 deletions
|
@ -69,3 +69,30 @@
|
|||
{CLEAR_VARIABLE TIME_ACTIONS_time_begin}
|
||||
{CLEAR_VARIABLE TIME_ACTIONS_time_end}
|
||||
#enddef
|
||||
|
||||
#define FLOATING_TEXT FILTER COLOR_VALUE TEXT
|
||||
{DEPRECATE FLOATING_TEXT 1.9.4}
|
||||
|
||||
# Floats the given text above the given unit in the same manner as
|
||||
# damage numbers are displayed in combat. For example when a unit
|
||||
# steps on a hidden trap and is dealt 8 damage, let's show this to
|
||||
# the player like all other damage is:
|
||||
#! {FLOATING_TEXT x,y=$x1,$y1 255,0,0 "8"}
|
||||
[store_unit]
|
||||
[filter]
|
||||
{FILTER}
|
||||
[/filter]
|
||||
|
||||
kill=no
|
||||
variable=FLOATING_TEXT_temp
|
||||
[/store_unit]
|
||||
|
||||
[unstore_unit]
|
||||
variable=FLOATING_TEXT_temp
|
||||
find_vacant=no
|
||||
red,green,blue={COLOR_VALUE}
|
||||
text={TEXT}
|
||||
[/unstore_unit]
|
||||
|
||||
{CLEAR_VARIABLE FLOATING_TEXT_temp}
|
||||
#enddef
|
||||
|
|
|
@ -18,31 +18,6 @@
|
|||
[/message]
|
||||
#enddef
|
||||
|
||||
#define FLOATING_TEXT FILTER COLOUR_VALUE TEXT
|
||||
# Floats the given text above the given unit in the same manner as
|
||||
# damage numbers are displayed in combat. For example when a unit
|
||||
# steps on a hidden trap and is dealt 8 damage, let's show this to
|
||||
# the player like all other damage is:
|
||||
#! {FLOATING_TEXT x,y=$x1,$y1 255,0,0 "8"}
|
||||
[store_unit]
|
||||
[filter]
|
||||
{FILTER}
|
||||
[/filter]
|
||||
|
||||
kill=no
|
||||
variable=FLOATING_TEXT_temp
|
||||
[/store_unit]
|
||||
|
||||
[unstore_unit]
|
||||
variable=FLOATING_TEXT_temp
|
||||
find_vacant=no
|
||||
red,green,blue={COLOUR_VALUE}
|
||||
text={TEXT}
|
||||
[/unstore_unit]
|
||||
|
||||
{CLEAR_VARIABLE FLOATING_TEXT_temp}
|
||||
#enddef
|
||||
|
||||
#define HIGHLIGHT_IMAGE X Y IMAGE BACKGROUND_VALUE
|
||||
# Scrolls to the given location, blinks the given image in and out a few
|
||||
# times, and then leaves the image in place. Use this to pinpoint an
|
||||
|
|
Loading…
Add table
Reference in a new issue