This page has been translated automatically.
Видеоуроки
Interface
Essentials
Advanced
Подсказки и советы
Основы
Программирование на C#
Рендеринг
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Физика
Редактор UnigineEditor
Обзор интерфейса
Работа с ассетами
Настройки и предпочтения
Работа с проектами
Настройка параметров узла
Setting Up Materials
Настройка свойств
Освещение
Landscape Tool
Sandworm
Использование инструментов редактора для конкретных задач
Extending Editor Functionality
Встроенные объекты
Ноды (Nodes)
Объекты (Objects)
Эффекты
Декали
Источники света
Geodetics
World Objects
Звуковые объекты
Объекты поиска пути
Players
Программирование
Основы
Настройка среды разработки
Примеры использования
UnigineScript
C++
C#
Унифицированный язык шейдеров UUSL
File Formats
Rebuilding the Engine Tools
GUI
Двойная точность координат
API
Containers
Common Functionality
Controls-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
Работа с контентом
Оптимизация контента
Материалы
Art Samples
Tutorials
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии SDK! Пожалуйста, переключитесь на самую актуальную документацию для последней версии SDK.
Внимание! Эта версия документации описывает устаревшую версию SDK, которая больше не поддерживается! Пожалуйста, обновитесь до последней версии SDK.

Unigine::SystemDialog Class

Header: #include <UnigineApp.h>

This class is used to create and manage system dialogs displaying informational, warning, and error messages.

SystemDialog Class

Members


SystemDialog ( ) #

Constructor.

void setType ( int type ) #

Sets the type of the system dialog.

Arguments

  • int type - Dialog type to be set: one of the TYPE_* values.

int getType ( ) #

Returns the current type of the system dialog.

Return value

Dialog type to be set: one of the TYPE_* values.

void setTitle ( const char * title ) #

Sets a new title for the system dialog.

Arguments

  • const char * title - Dialog title to be set.

const char * getTitle ( ) #

Returns the current title of the system dialog.

Return value

Current dialog title.

void setMessage ( const char * message ) #

Sets a new message of the system dialog.

Arguments

  • const char * message - Dialog message to be set.

const char * getMessage ( ) #

Returns the current message of the system dialog.

Return value

Current dialog message.

void setDefaultButtonReturn ( int val ) #

Sets a default button to be pressed by default when the user hits the Return key on the keyboard.

Arguments

int getDefaultButtonReturn ( ) #

Returns the current default button to be pressed by default when the user hits the Return key on the keyboard.

Return value

Number of the button, in the range from 0 to the total number of buttons.

void setDefaultButtonEscape ( int escape ) #

Sets a default button to be pressed by default when the user hits the Escape key on the keyboard.

Arguments

int getDefaultButtonEscape ( ) #

Returns the current default button to be pressed by default when the user hits the Escape key on the keyboard.

Return value

Number of the button, in the range from 0 to the total number of buttons.

int getNumButtons ( ) #

Returns the total number of buttons of the system dialog.

Return value

Total number of dialog buttons.

int addButton ( ) #

Adds a new button to the system dialog.

Return value

Number of the new added button.

int addButton ( const char * name ) #

Adds a new button to the system dialog.

Arguments

  • const char * name - Name of the button to be added.

Return value

Number of the new added button.

void removeButton ( int num ) #

Removes the button with the specified number from the system dialog.

Arguments

void swapButtons ( int num_0, int num_1 ) #

Swaps two buttons with the specified numbers.

Arguments

const char * getButtonName ( int num ) #

Returns the name of the button by its number.

Arguments

Return value

Name of the button with the specified number.

void setButtonName ( int num, const char * name ) #

Sets as new name for the button with the specified number.

Arguments

  • int num - Number of the button to be renamed, in the range from 0 to the total number of buttons.
  • const char * name - New name to be set for the button with the specified number.
Last update: 29.04.2021
Build: ()