OpenTTD Source  20241108-master-g80f628063a
script_widget.h File Reference

Types related to the script widgets. More...

#include "../company_type.h"

Go to the source code of this file.

Enumerations

enum  ScriptListWidgets : WidgetID {
  WID_SCRL_CAPTION , WID_SCRL_LIST , WID_SCRL_SCROLLBAR , WID_SCRL_INFO_BG ,
  WID_SCRL_ACCEPT , WID_SCRL_CANCEL
}
 Widgets of the ScriptListWindow class. More...
 
enum  ScriptSettingsWidgets : WidgetID {
  WID_SCRS_CAPTION , WID_SCRS_BACKGROUND , WID_SCRS_SCROLLBAR , WID_SCRS_ACCEPT ,
  WID_SCRS_RESET , WID_SCRS_SETTING_DROPDOWN = -1
}
 Widgets of the ScriptSettingsWindow class. More...
 
enum  ScriptDebugWidgets : WidgetID {
  WID_SCRD_VIEW , WID_SCRD_NAME_TEXT , WID_SCRD_SETTINGS , WID_SCRD_SCRIPT_GAME ,
  WID_SCRD_RELOAD_TOGGLE , WID_SCRD_LOG_PANEL , WID_SCRD_VSCROLLBAR , WID_SCRD_COMPANY_BUTTON_START ,
  WID_SCRD_COMPANY_BUTTON_END = WID_SCRD_COMPANY_BUTTON_START + MAX_COMPANIES - 1 , WID_SCRD_BREAK_STRING_WIDGETS , WID_SCRD_BREAK_STR_ON_OFF_BTN , WID_SCRD_BREAK_STR_EDIT_BOX ,
  WID_SCRD_MATCH_CASE_BTN , WID_SCRD_CONTINUE_BTN , WID_SCRD_HSCROLLBAR
}
 Widgets of the ScriptDebugWindow class. More...
 

Detailed Description

Types related to the script widgets.

Definition in file script_widget.h.

Enumeration Type Documentation

◆ ScriptDebugWidgets

Widgets of the ScriptDebugWindow class.

Enumerator
WID_SCRD_VIEW 

The row of company buttons.

WID_SCRD_NAME_TEXT 

Name of the current selected.

WID_SCRD_SETTINGS 

Settings button.

WID_SCRD_SCRIPT_GAME 

Game Script button.

WID_SCRD_RELOAD_TOGGLE 

Reload button.

WID_SCRD_LOG_PANEL 

Panel where the log is in.

WID_SCRD_VSCROLLBAR 

Vertical scrollbar of the log panel.

WID_SCRD_COMPANY_BUTTON_START 

Buttons in the VIEW.

WID_SCRD_COMPANY_BUTTON_END 

Last possible button in the VIEW.

WID_SCRD_BREAK_STRING_WIDGETS 

The panel to handle the breaking on string.

WID_SCRD_BREAK_STR_ON_OFF_BTN 

Enable breaking on string.

WID_SCRD_BREAK_STR_EDIT_BOX 

Edit box for the string to break on.

WID_SCRD_MATCH_CASE_BTN 

Checkbox to use match caching or not.

WID_SCRD_CONTINUE_BTN 

Continue button.

WID_SCRD_HSCROLLBAR 

Horizontal scrollbar of the log panel.

Definition at line 37 of file script_widget.h.

◆ ScriptListWidgets

Widgets of the ScriptListWindow class.

Enumerator
WID_SCRL_CAPTION 

Caption of the window.

WID_SCRL_LIST 

The matrix with all available Scripts.

WID_SCRL_SCROLLBAR 

Scrollbar next to the Script list.

WID_SCRL_INFO_BG 

Panel to draw some Script information on.

WID_SCRL_ACCEPT 

Accept button.

WID_SCRL_CANCEL 

Cancel button.

Definition at line 16 of file script_widget.h.

◆ ScriptSettingsWidgets

Widgets of the ScriptSettingsWindow class.

Enumerator
WID_SCRS_CAPTION 

Caption of the window.

WID_SCRS_BACKGROUND 

Panel to draw the settings on.

WID_SCRS_SCROLLBAR 

Scrollbar to scroll through all settings.

WID_SCRS_ACCEPT 

Accept button.

WID_SCRS_RESET 

Reset button.

WID_SCRS_SETTING_DROPDOWN 

Dynamically created dropdown for changing setting value.

Definition at line 26 of file script_widget.h.