OpenTTD Source 20260208-master-g43af8e94d0
LeagueTable Struct Reference

Struct about custom league tables. More...

#include <league_base.h>

Inheritance diagram for LeagueTable:

Public Member Functions

 LeagueTable (LeagueTableID index, const EncodedString &title={}, const EncodedString &header={}, const EncodedString &footer={})
 ~LeagueTable ()
 (Empty) destructor has to be defined else operator delete might be called with nullptr parameter

Data Fields

EncodedString title {}
 Title of the table.
EncodedString header {}
 Text to show above the table.
EncodedString footer {}
 Text to show below the table.

Detailed Description

Struct about custom league tables.

Definition at line 52 of file league_base.h.

Constructor & Destructor Documentation

◆ LeagueTable()

LeagueTable::LeagueTable ( LeagueTableID index,
const EncodedString & title = {},
const EncodedString & header = {},
const EncodedString & footer = {} )
inline

Definition at line 57 of file league_base.h.

◆ ~LeagueTable()

LeagueTable::~LeagueTable ( )
inline

(Empty) destructor has to be defined else operator delete might be called with nullptr parameter

Definition at line 63 of file league_base.h.

Field Documentation

◆ footer

EncodedString LeagueTable::footer {}

Text to show below the table.

Definition at line 55 of file league_base.h.

Referenced by ScriptLeagueWindow::DrawWidget(), and ScriptLeagueWindow::UpdateWidgetSize().

◆ header

EncodedString LeagueTable::header {}

Text to show above the table.

Definition at line 54 of file league_base.h.

Referenced by ScriptLeagueWindow::DrawWidget(), and ScriptLeagueWindow::UpdateWidgetSize().

◆ title

EncodedString LeagueTable::title {}

Title of the table.

Definition at line 53 of file league_base.h.

Referenced by ScriptLeagueWindow::BuildTable().


The documentation for this struct was generated from the following file: