Outline

Functions


get_outline

sfall.h

int get_outline(ObjectPtr obj)

Gets the current outline color for an object.


outlined_object

sfall.h

ObjectPtr outlined_object()

Returns an object that is currently highlighted by hovering the mouse above it.


set_outline

sfall.h

void set_outline(ObjectPtr obj, int color)
  • sets the outline color of an object (see OUTLINE_* constants in sfall.h)
  • can also set a custom color from the game palette by shifting the color index value left by 8 bits: 0xCC00 where CC is the palette index (available since sfall 4.2.7/3.8.27)
  • passing 0 will disable the outline