Link Search Menu Expand Document

Interface

Подкатегории

Функции


dialog_message

funcX

void dialog_message(string text)

Displays a message in the NPC response window in dialog or barter screen.


display_stats

funcX

void display_stats()
  • Updates player’s stats in the inventory display window or on the character screen.
  • NOTE: works only when the interface window is opened

get_viewport_x

int get_viewport_x()

get_viewport_y

int get_viewport_y()

intface_redraw

funcX

void intface_redraw(bool winType)

Redraws main game interface. Useful after direct changes to current player weapons or stats to reflect changes.

  • redraws main game interface, useful to reflect changes after directly changing current player weapons or stats
  • winType: the type number of the interface window (see WINTYPE_* constants in sfall.h). Pass -1 to redraw all interface windows.

inventory_redraw

funcX

void inventory_redraw(invSide)

Redraws inventory items list in the inventory/loot/barter screens. Argument invSide specifies which side needs to be redrawn: 0 - the player, 1 - target (container/NPC in loot/barter screens), -1 - both sides (same as without argument).


set_viewport_x

void set_viewport_x(int view_x)

set_viewport_y

void set_viewport_y(int view_y)