ManiaScript Trackmania 2020  14/07/2025
CMlScriptIngame Class Reference

API for GameModes Manialinks. More...

#include <2025_07_14.h>

Inheritance diagram for CMlScriptIngame:
CMlScript CNod CSmMlScriptIngame

Public Types

enum  EInGameMenuResult {
  Resume, Quit, NormalMenu, AdvancedMenu,
  ServerSettings
}
 
enum  EUISound {
  Default, Silence, StartMatch, EndMatch,
  StartRound, EndRound, PhaseChange, TieBreakPoint,
  TiePoint, VictoryPoint, Capture, TimeOut,
  Notice, Warning, PlayerEliminated, PlayerHit,
  Checkpoint, Finish, Record, ScoreProgress,
  RankChange, Bonus, FirstHit, Combo,
  PlayersRemaining, Custom1, Custom2, Custom3,
  Custom4
}
 
- Public Types inherited from CMlScript
enum  LinkType {
  ExternalBrowser, ManialinkBrowser, Goto, ExternalFromId,
  ManialinkFromId, GotoFromId
}
 

Public Member Functions

Void ShowCurChallengeCard ()
 
Void ShowModeHelp ()
 
Void CopyServerLinkToClipBoard ()
 
Void JoinTeam1 ()
 
Void JoinTeam2 ()
 
Void RequestSpectatorClient (Boolean Spectator)
 
Void SetSpectateTarget (Text Player)
 
Void ShowProfile (Text Player)
 
Void ShowInGameMenu ()
 
Void CloseInGameMenu (CMlScriptIngame::EInGameMenuResult Result)
 
Void CloseScoresTable ()
 
Void PlayUiSound (CMlScriptIngame::EUISound Sound, Integer SoundVariant, Real Volume)
 
- Public Member Functions inherited from CMlScript
Void Dbg_SetProcessed (CMlScriptEvent Event)
 
Boolean IsKeyPressed (Integer KeyCode)
 
Void EnableMenuNavigation (Boolean EnableInputs, Boolean WithAutoFocus, CMlControl AutoBackControl, Integer InputPriority)
 
Void EnableMenuNavigation (Boolean EnableInputs, Boolean WithAutoFocus, Boolean WithManualScroll, CMlControl AutoBackControl, Integer InputPriority)
 
Void OpenLink (Text Url, CMlScript::LinkType LinkType)
 
Void TriggerPageAction (Text ActionString)
 
Void SendCustomEvent (Text Type, Array< Text > Data)
 
Void PreloadImage (Text ImageUrl)
 
Void PreloadAll ()
 
Text Dbg_DumpDeclareForVariables (CNod Nod, Boolean StatsOnly)
 
Text FilterProfanities (Text TextToFilter)
 

Public Attributes

Integer GameTime
 
CPlaygroundClient *const Playground
 
CUIConfig const *const UI
 
CUIConfig *const ClientUI
 
Boolean IsSpectator
 
Boolean IsSpectatorClient
 
Boolean UseClans
 
Boolean UseForcedClans
 
CManiaAppPlaygroundCommon *const ParentApp
 
CMap *const Map
 
Array< CTeam const *const > Teams
 
Boolean IsInGameMenuDisplayed
 
Text CurrentServerLogin
 
Text CurrentServerName
 
Text CurrentServerDesc
 
Text CurrentServerJoinLink
 
Text CurrentServerModeName
 
Integer SplitScreenNum
 
Integer SplitScreenCount
 
Boolean SplitScreenIsHorizontal
 
- Public Attributes inherited from CMlScript
CMlPage *const Page
 
Boolean const PageIsVisible
 
Boolean PageAlwaysUpdateScript
 
Integer const Now
 
Integer const Period
 
Integer const CurrentTime
 
CUser *const LocalUser
 
CTitle *const LoadedTitle
 
Array< CMlScriptEvent *const > PendingEvents
 
Boolean Dbg_WarnOnDroppedEvents
 
Real const MouseX
 
Real const MouseY
 
Boolean const MouseLeftButton
 
Boolean const MouseRightButton
 
Boolean const MouseMiddleButton
 
Boolean const KeyUp
 
Boolean const KeyDown
 
Boolean const KeyLeft
 
Boolean const KeyRight
 
Boolean const KeyReturn
 
Boolean const KeySpace
 
Boolean const KeyDelete
 
Boolean EnableMenuNavigationInputs
 
Boolean const IsMenuNavigationForeground
 
CParsingManager *const Xml
 
CHttpManager *const Http
 
CVideoManager *const Video
 
CAudioManager *const Audio
 
CInputManager *const Input
 
CDataFileMgr *const DataFileMgr
 
CScoreMgr *const ScoreMgr
 
CRankingsZoneMgr *const ZoneMgr
 
CUserV2Manager *const UserMgr
 
CAnimManager *const AnimMgr
 
CMenuSceneManager *const MenuSceneMgr
 
CSystemPlatform *const System
 
CWSNotificationManager *const WSNotificationMgr
 
- Public Attributes inherited from CNod
Ident const Id
 

Detailed Description

API for GameModes Manialinks.

Supported declare modes :

  • Local
  • Persistent

Definition at line 10401 of file 2025_07_14.h.

Member Enumeration Documentation

◆ EInGameMenuResult

Enumerator
Resume 
Quit 
NormalMenu 
AdvancedMenu 
ServerSettings 

Definition at line 10406 of file 2025_07_14.h.

10406  {
10407  Resume,
10408  Quit,
10409  NormalMenu,
10410  AdvancedMenu,
10412  };

◆ EUISound

Enumerator
Default 
Silence 
StartMatch 
EndMatch 
StartRound 
EndRound 
PhaseChange 
TieBreakPoint 
TiePoint 
VictoryPoint 
Capture 
TimeOut 
Notice 
Warning 
PlayerEliminated 
PlayerHit 
Checkpoint 
Finish 
Record 
ScoreProgress 
RankChange 
Bonus 
FirstHit 
Combo 
PlayersRemaining 
Custom1 
Custom2 
Custom3 
Custom4 

Definition at line 10416 of file 2025_07_14.h.

10416  {
10417  Default,
10418  Silence,
10419  StartMatch,
10420  EndMatch,
10421  StartRound,
10422  EndRound,
10423  PhaseChange,
10424  TieBreakPoint,
10425  TiePoint,
10426  VictoryPoint,
10427  Capture,
10428  TimeOut,
10429  Notice,
10430  Warning,
10432  PlayerHit,
10433  Checkpoint,
10434  Finish,
10435  Record,
10436  ScoreProgress,
10437  RankChange,
10438  Bonus,
10439  FirstHit,
10440  Combo,
10442  Custom1,
10443  Custom2,
10444  Custom3,
10445  Custom4,
10446  };

Member Function Documentation

◆ CloseInGameMenu()

Void CMlScriptIngame::CloseInGameMenu ( CMlScriptIngame::EInGameMenuResult  Result)

◆ CloseScoresTable()

Void CMlScriptIngame::CloseScoresTable ( )

◆ CopyServerLinkToClipBoard()

Void CMlScriptIngame::CopyServerLinkToClipBoard ( )

◆ JoinTeam1()

Void CMlScriptIngame::JoinTeam1 ( )

◆ JoinTeam2()

Void CMlScriptIngame::JoinTeam2 ( )

◆ PlayUiSound()

Void CMlScriptIngame::PlayUiSound ( CMlScriptIngame::EUISound  Sound,
Integer  SoundVariant,
Real  Volume 
)

◆ RequestSpectatorClient()

Void CMlScriptIngame::RequestSpectatorClient ( Boolean  Spectator)

Request change of IsSpectatorClient (not immediate, and it may be refused).

◆ SetSpectateTarget()

Void CMlScriptIngame::SetSpectateTarget ( Text  Player)

Set the spectated player, but do not switch to spectator mode automatically. Equivalent to numpad1/2/3/4

◆ ShowCurChallengeCard()

Void CMlScriptIngame::ShowCurChallengeCard ( )

◆ ShowInGameMenu()

Void CMlScriptIngame::ShowInGameMenu ( )

◆ ShowModeHelp()

Void CMlScriptIngame::ShowModeHelp ( )

◆ ShowProfile()

Void CMlScriptIngame::ShowProfile ( Text  Player)

Member Data Documentation

◆ ClientUI

CUIConfig* const CMlScriptIngame::ClientUI

Locally accessible by the client script to locally override settings from the server.

Definition at line 10462 of file 2025_07_14.h.

◆ CurrentServerDesc

Text CMlScriptIngame::CurrentServerDesc

Definition at line 10550 of file 2025_07_14.h.

◆ CurrentServerJoinLink

Text CMlScriptIngame::CurrentServerJoinLink

Definition at line 10554 of file 2025_07_14.h.

◆ CurrentServerLogin

Text CMlScriptIngame::CurrentServerLogin

Definition at line 10542 of file 2025_07_14.h.

◆ CurrentServerModeName

Text CMlScriptIngame::CurrentServerModeName

Definition at line 10558 of file 2025_07_14.h.

◆ CurrentServerName

Text CMlScriptIngame::CurrentServerName

Definition at line 10546 of file 2025_07_14.h.

◆ GameTime

Integer CMlScriptIngame::GameTime

Definition at line 10450 of file 2025_07_14.h.

◆ IsInGameMenuDisplayed

Boolean CMlScriptIngame::IsInGameMenuDisplayed

Definition at line 10538 of file 2025_07_14.h.

◆ IsSpectator

Boolean CMlScriptIngame::IsSpectator

Is in spectator mode - may be only for a short time between rounds.

Definition at line 10466 of file 2025_07_14.h.

◆ IsSpectatorClient

Boolean CMlScriptIngame::IsSpectatorClient

Client actually desires to spectate instead of playing.

Definition at line 10470 of file 2025_07_14.h.

◆ Map

CMap* const CMlScriptIngame::Map

Definition at line 10486 of file 2025_07_14.h.

◆ ParentApp

CManiaAppPlaygroundCommon* const CMlScriptIngame::ParentApp

Will be Null if the script is not runing in a layer of an app.

Definition at line 10482 of file 2025_07_14.h.

◆ Playground

CPlaygroundClient* const CMlScriptIngame::Playground

Definition at line 10454 of file 2025_07_14.h.

◆ SplitScreenCount

Integer CMlScriptIngame::SplitScreenCount

Definition at line 10566 of file 2025_07_14.h.

◆ SplitScreenIsHorizontal

Boolean CMlScriptIngame::SplitScreenIsHorizontal

Definition at line 10570 of file 2025_07_14.h.

◆ SplitScreenNum

Integer CMlScriptIngame::SplitScreenNum

Definition at line 10562 of file 2025_07_14.h.

◆ Teams

Array<CTeam const * const > CMlScriptIngame::Teams

Definition at line 10510 of file 2025_07_14.h.

◆ UI

CUIConfig const* const CMlScriptIngame::UI

(read-only) UI actually displayed, as defined by the server.

Definition at line 10458 of file 2025_07_14.h.

◆ UseClans

Boolean CMlScriptIngame::UseClans

Definition at line 10474 of file 2025_07_14.h.

◆ UseForcedClans

Boolean CMlScriptIngame::UseForcedClans

Definition at line 10478 of file 2025_07_14.h.


The documentation for this class was generated from the following file:
CMlScriptIngame::Silence
@ Silence
Definition: 2025_07_14.h:10418
CMlScriptIngame::Finish
@ Finish
Definition: 2025_07_14.h:10434
CMlScriptIngame::ServerSettings
@ ServerSettings
Definition: 2025_07_14.h:10411
CMlScriptIngame::FirstHit
@ FirstHit
Definition: 2025_07_14.h:10439
CMlScriptIngame::RankChange
@ RankChange
Definition: 2025_07_14.h:10437
CMlScriptIngame::Quit
@ Quit
Definition: 2025_07_14.h:10408
CMlScriptIngame::Custom1
@ Custom1
Definition: 2025_07_14.h:10442
CMlScriptIngame::Checkpoint
@ Checkpoint
Definition: 2025_07_14.h:10433
CMlScriptIngame::Bonus
@ Bonus
Definition: 2025_07_14.h:10438
CMlScriptIngame::PhaseChange
@ PhaseChange
Definition: 2025_07_14.h:10423
CMlScriptIngame::NormalMenu
@ NormalMenu
Definition: 2025_07_14.h:10409
CMlScriptIngame::TiePoint
@ TiePoint
Definition: 2025_07_14.h:10425
CMlScriptIngame::PlayerEliminated
@ PlayerEliminated
Definition: 2025_07_14.h:10431
CMlScriptIngame::ScoreProgress
@ ScoreProgress
Definition: 2025_07_14.h:10436
CMlScriptIngame::Resume
@ Resume
Definition: 2025_07_14.h:10407
CMlScriptIngame::Warning
@ Warning
Definition: 2025_07_14.h:10430
CMlScriptIngame::TimeOut
@ TimeOut
Definition: 2025_07_14.h:10428
CMlScriptIngame::Capture
@ Capture
Definition: 2025_07_14.h:10427
CMlScriptIngame::Notice
@ Notice
Definition: 2025_07_14.h:10429
CMlScriptIngame::Default
@ Default
Definition: 2025_07_14.h:10417
CMlScriptIngame::Record
@ Record
Definition: 2025_07_14.h:10435
CMlScriptIngame::PlayerHit
@ PlayerHit
Definition: 2025_07_14.h:10432
CMlScriptIngame::PlayersRemaining
@ PlayersRemaining
Definition: 2025_07_14.h:10441
CMlScriptIngame::TieBreakPoint
@ TieBreakPoint
Definition: 2025_07_14.h:10424
CMlScriptIngame::Custom4
@ Custom4
Definition: 2025_07_14.h:10445
CMlScriptIngame::VictoryPoint
@ VictoryPoint
Definition: 2025_07_14.h:10426
CMlScriptIngame::StartMatch
@ StartMatch
Definition: 2025_07_14.h:10419
CMlScriptIngame::StartRound
@ StartRound
Definition: 2025_07_14.h:10421
CMlScriptIngame::EndMatch
@ EndMatch
Definition: 2025_07_14.h:10420
CMlScriptIngame::Custom3
@ Custom3
Definition: 2025_07_14.h:10444
CMlScriptIngame::EndRound
@ EndRound
Definition: 2025_07_14.h:10422
CMlScriptIngame::AdvancedMenu
@ AdvancedMenu
Definition: 2025_07_14.h:10410
CMlScriptIngame::Combo
@ Combo
Definition: 2025_07_14.h:10440
CMlScriptIngame::Custom2
@ Custom2
Definition: 2025_07_14.h:10443