ManiaScript Trackmania 2020  30/10/2024
CMlScriptIngame Class Reference

API for GameModes Manialinks. More...

#include <2024_10_30.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 10373 of file 2024_10_30.h.

Member Enumeration Documentation

◆ EInGameMenuResult

Enumerator
Resume 
Quit 
NormalMenu 
AdvancedMenu 
ServerSettings 

Definition at line 10378 of file 2024_10_30.h.

10378  {
10379  Resume,
10380  Quit,
10381  NormalMenu,
10382  AdvancedMenu,
10384  };

◆ 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 10388 of file 2024_10_30.h.

10388  {
10389  Default,
10390  Silence,
10391  StartMatch,
10392  EndMatch,
10393  StartRound,
10394  EndRound,
10395  PhaseChange,
10396  TieBreakPoint,
10397  TiePoint,
10398  VictoryPoint,
10399  Capture,
10400  TimeOut,
10401  Notice,
10402  Warning,
10404  PlayerHit,
10405  Checkpoint,
10406  Finish,
10407  Record,
10408  ScoreProgress,
10409  RankChange,
10410  Bonus,
10411  FirstHit,
10412  Combo,
10414  Custom1,
10415  Custom2,
10416  Custom3,
10417  Custom4,
10418  };

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 10434 of file 2024_10_30.h.

◆ CurrentServerDesc

Text CMlScriptIngame::CurrentServerDesc

Definition at line 10522 of file 2024_10_30.h.

◆ CurrentServerJoinLink

Text CMlScriptIngame::CurrentServerJoinLink

Definition at line 10526 of file 2024_10_30.h.

◆ CurrentServerLogin

Text CMlScriptIngame::CurrentServerLogin

Definition at line 10514 of file 2024_10_30.h.

◆ CurrentServerModeName

Text CMlScriptIngame::CurrentServerModeName

Definition at line 10530 of file 2024_10_30.h.

◆ CurrentServerName

Text CMlScriptIngame::CurrentServerName

Definition at line 10518 of file 2024_10_30.h.

◆ GameTime

Integer CMlScriptIngame::GameTime

Definition at line 10422 of file 2024_10_30.h.

◆ IsInGameMenuDisplayed

Boolean CMlScriptIngame::IsInGameMenuDisplayed

Definition at line 10510 of file 2024_10_30.h.

◆ IsSpectator

Boolean CMlScriptIngame::IsSpectator

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

Definition at line 10438 of file 2024_10_30.h.

◆ IsSpectatorClient

Boolean CMlScriptIngame::IsSpectatorClient

Client actually desires to spectate instead of playing.

Definition at line 10442 of file 2024_10_30.h.

◆ Map

CMap* const CMlScriptIngame::Map

Definition at line 10458 of file 2024_10_30.h.

◆ ParentApp

CManiaAppPlaygroundCommon* const CMlScriptIngame::ParentApp

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

Definition at line 10454 of file 2024_10_30.h.

◆ Playground

CPlaygroundClient* const CMlScriptIngame::Playground

Definition at line 10426 of file 2024_10_30.h.

◆ SplitScreenCount

Integer CMlScriptIngame::SplitScreenCount

Definition at line 10538 of file 2024_10_30.h.

◆ SplitScreenIsHorizontal

Boolean CMlScriptIngame::SplitScreenIsHorizontal

Definition at line 10542 of file 2024_10_30.h.

◆ SplitScreenNum

Integer CMlScriptIngame::SplitScreenNum

Definition at line 10534 of file 2024_10_30.h.

◆ Teams

Array<CTeam const * const > CMlScriptIngame::Teams

Definition at line 10482 of file 2024_10_30.h.

◆ UI

CUIConfig const* const CMlScriptIngame::UI

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

Definition at line 10430 of file 2024_10_30.h.

◆ UseClans

Boolean CMlScriptIngame::UseClans

Definition at line 10446 of file 2024_10_30.h.

◆ UseForcedClans

Boolean CMlScriptIngame::UseForcedClans

Definition at line 10450 of file 2024_10_30.h.


The documentation for this class was generated from the following file:
CMlScriptIngame::Silence
@ Silence
Definition: 2024_10_30.h:10390
CMlScriptIngame::Finish
@ Finish
Definition: 2024_10_30.h:10406
CMlScriptIngame::ServerSettings
@ ServerSettings
Definition: 2024_10_30.h:10383
CMlScriptIngame::FirstHit
@ FirstHit
Definition: 2024_10_30.h:10411
CMlScriptIngame::RankChange
@ RankChange
Definition: 2024_10_30.h:10409
CMlScriptIngame::Quit
@ Quit
Definition: 2024_10_30.h:10380
CMlScriptIngame::Custom1
@ Custom1
Definition: 2024_10_30.h:10414
CMlScriptIngame::Checkpoint
@ Checkpoint
Definition: 2024_10_30.h:10405
CMlScriptIngame::Bonus
@ Bonus
Definition: 2024_10_30.h:10410
CMlScriptIngame::PhaseChange
@ PhaseChange
Definition: 2024_10_30.h:10395
CMlScriptIngame::NormalMenu
@ NormalMenu
Definition: 2024_10_30.h:10381
CMlScriptIngame::TiePoint
@ TiePoint
Definition: 2024_10_30.h:10397
CMlScriptIngame::PlayerEliminated
@ PlayerEliminated
Definition: 2024_10_30.h:10403
CMlScriptIngame::ScoreProgress
@ ScoreProgress
Definition: 2024_10_30.h:10408
CMlScriptIngame::Resume
@ Resume
Definition: 2024_10_30.h:10379
CMlScriptIngame::Warning
@ Warning
Definition: 2024_10_30.h:10402
CMlScriptIngame::TimeOut
@ TimeOut
Definition: 2024_10_30.h:10400
CMlScriptIngame::Capture
@ Capture
Definition: 2024_10_30.h:10399
CMlScriptIngame::Notice
@ Notice
Definition: 2024_10_30.h:10401
CMlScriptIngame::Default
@ Default
Definition: 2024_10_30.h:10389
CMlScriptIngame::Record
@ Record
Definition: 2024_10_30.h:10407
CMlScriptIngame::PlayerHit
@ PlayerHit
Definition: 2024_10_30.h:10404
CMlScriptIngame::PlayersRemaining
@ PlayersRemaining
Definition: 2024_10_30.h:10413
CMlScriptIngame::TieBreakPoint
@ TieBreakPoint
Definition: 2024_10_30.h:10396
CMlScriptIngame::Custom4
@ Custom4
Definition: 2024_10_30.h:10417
CMlScriptIngame::VictoryPoint
@ VictoryPoint
Definition: 2024_10_30.h:10398
CMlScriptIngame::StartMatch
@ StartMatch
Definition: 2024_10_30.h:10391
CMlScriptIngame::StartRound
@ StartRound
Definition: 2024_10_30.h:10393
CMlScriptIngame::EndMatch
@ EndMatch
Definition: 2024_10_30.h:10392
CMlScriptIngame::Custom3
@ Custom3
Definition: 2024_10_30.h:10416
CMlScriptIngame::EndRound
@ EndRound
Definition: 2024_10_30.h:10394
CMlScriptIngame::AdvancedMenu
@ AdvancedMenu
Definition: 2024_10_30.h:10382
CMlScriptIngame::Combo
@ Combo
Definition: 2024_10_30.h:10412
CMlScriptIngame::Custom2
@ Custom2
Definition: 2024_10_30.h:10415