Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

SetSilentMode

Enables or disables silent mode for the Info Window output.

ValueTrue to suppress automatic output to the Info Window (default), False to enable it.

Default value is True (silent mode on).

When silent mode is disabled (False), calls to GetGumpFullLines, GetGumpShortLines, and GetGumpButtonsDescription automatically send their full results to the Info Window.

When silent mode is enabled (True, default), these methods return their data without writing anything to the Info Window.

Note: FillInfoWindow / FillNewWindow is not affected by this setting — it always writes to the Info Window regardless of the silent mode state.

Does nothing if the character is not connected.

Включает или отключает тихий режим для вывода в окно информации (Info Window).

ValueTrue для подавления автоматического вывода в Info Window (по умолчанию), False для включения вывода.

Значение по умолчанию — True (тихий режим включён).

Когда тихий режим отключён (False), вызовы GetGumpFullLines, GetGumpShortLines и GetGumpButtonsDescription автоматически отправляют полные результаты в окно информации.

Когда тихий режим включён (True, по умолчанию), эти методы возвращают данные без записи в Info Window.

Примечание: FillInfoWindow / FillNewWindow не зависит от этой настройки — всегда пишет в Info Window независимо от состояния тихого режима.

Не выполняет действий, если персонаж не подключён.

Pascal

procedure SetSilentMode(Value: Boolean);

Python

def SetSilentMode(Value: bool) -> None: ...

Pascal Example

begin
  // Enable gump info output to Info Window
  SetSilentMode(False);
  if GetGumpsCount > 0 then
    GetGumpFullLines(0);  // result also appears in Info Window
  SetSilentMode(True);  // restore default
end.

Python Example

# Enable gump info output to Info Window
SetSilentMode(False)
if GetGumpsCount() > 0:
    GetGumpFullLines(0)  # result also appears in Info Window
SetSilentMode(True)  # restore default

See Also

GetGumpFullLines, GetGumpShortLines, GetGumpButtonsDescription, FillInfoWindow