Trackmania ManiaScript Reference 2024.9.17.1117
A ManiaScript Reference of the new Trackmania.
|
API for the plugins of the map editor. More...
#include <doc.h>
Public Types | |
enum | ValidationStatus { NotValidable , Validable , Validated } |
Public Types inherited from CMapEditorPlugin | |
enum | CardinalDirections { North , East , South , West } |
enum | CardinalDirections8 { North , East , South , West , NorthEast , SouthEast , SouthWest , NorthWest } |
enum | RelativeDirections { Forward , RightForward , Right , RightBackward , Backward , LeftBackward , Left , LeftForward } |
enum | PlaceMode { Unknown , Terraform , Block , Macroblock , Skin , CopyPaste , Test , Plugin , CustomSelection , OffZone , BlockProperty , Path , GhostBlock , Item , Light , FreeBlock , FreeMacroblock } |
enum | EditMode { Unknown , Place , FreeLook , Erase , Pick , SelectionAdd , SelectionRemove } |
enum | ShadowsQuality { NotComputed , VeryFast , Fast , Default , High , Ultra } |
enum | ValidationStatus { NotValidable , Validable , Validated } |
enum | MapElemColor { Default , White , Green , Blue , Red , Black } |
enum | PhaseOffset { None , One8th , Two8th , Three8th , Four8th , Five8th , Six8th , Seven8th } |
enum | MapElemLightmapQuality { Normal , High , VeryHigh , Highest , Low , VeryLow , Lowest } |
enum | MapElemColorPalette { Classic , Stunt , Red , Orange , Yellow , Lime , Green , Cyan , Blue , Purple , Pink , White , Black } |
Public Types inherited from CManiaApp | |
enum | ELinkType { ExternalBrowser , ManialinkBrowser } |
Public Member Functions | |
Void | ClearMapMetadata () |
Void | RequestEnterPlayground () |
Void | RequestLeavePlayground () |
Public Member Functions inherited from CMapEditorPlugin | |
Void | HideOtherPlugins () |
Void | ShowOtherPlugins () |
Void | ComputeShadows () |
Void | ComputeShadows (CMapEditorPlugin::ShadowsQuality ShadowsQuality) |
Void | DisplayDefaultSetObjectivesDialog () |
Boolean | Undo () |
Boolean | Redo () |
Void | Help () |
Void | Validate () |
Void | AutoSave () |
Void | Quit () |
Void | QuickQuit () |
Void | QuitAndSetResult (Text Type, Array< Text > Data) |
Void | QuickQuitAndSetResult (Text Type, Array< Text > Data) |
Void | TestMapFromStart () |
Void | TestMapFromCoord (Int3 Coord, CMapEditorPlugin::CardinalDirections Dir) |
Void | TestMapFromMacroblockInstance (CMacroblockInstance MbInstance) |
Void | TestMapWithMode (Text RulesModeName) |
Void | TestMapWithMode (Text RulesModeName, Text SettingsXml) |
Void | TestMapWithMode_SplitScreen (Text RulesModeName) |
Void | TestMapWithMode_SplitScreen (Text RulesModeName, Integer ScreenCount) |
Void | TestMapWithMode_SplitScreen (Text RulesModeName, Integer ScreenCount, Integer FakeCount, Text SettingsXml) |
Void | SaveMap (Text FileName) |
Void | SaveMapGamepadEditor (Text FileName) |
Void | SaveMap (Text FileName, Text Path) |
Void | SetNextMapElemColorPalette () |
CMapEditorPlugin::MapElemColor | GetMapElemColor (CBlock Block) |
CMapEditorPlugin::MapElemColor | GetMapElemColor (CItemAnchor AnchoredObject) |
CMapEditorPlugin::MapElemColor | GetMapElemColor (CAnchorData Anchor) |
Void | SetMapElemColor (CBlock Block, CMapEditorPlugin::MapElemColor Color) |
Void | SetMapElemColor (CItemAnchor AnchoredObject, CMapEditorPlugin::MapElemColor Color) |
Void | SetMapElemColor (CAnchorData Anchor, CMapEditorPlugin::MapElemColor Color) |
Text | GetColorPaletteName (CMapEditorPlugin::MapElemColorPalette EColorPalette) |
Vec3 | GetColorPaletteCurrentColor (CMapEditorPlugin::MapElemColorPalette EColorPalette, CMapEditorPlugin::MapElemColor EColor) |
Vec3 | GetColorPaletteColorblindColor (CMapEditorPlugin::MapElemColorPalette EColorPalette, CMapEditorPlugin::MapElemColor EColor) |
Vec3 | GetColorPaletteNotColorblindColor (CMapEditorPlugin::MapElemColorPalette EColorPalette, CMapEditorPlugin::MapElemColor EColor) |
Boolean | GetRaceCamera (Vec3 Position, Real Yaw, Real Pitch, Real Roll, Real FovY) |
Void | RemoveAllBlocks () |
Void | RemoveAllTerrain () |
Void | RemoveAllOffZone () |
Void | RemoveAllObjects () |
Void | RemoveAll () |
Void | RemoveAllBlocksAndTerrain () |
Void | ShowCustomSelection () |
Void | HideCustomSelection () |
Void | CopyPaste_Copy () |
Void | CopyPaste_Cut () |
Void | CopyPaste_Remove () |
Void | CopyPaste_SelectAll () |
Void | CopyPaste_ResetSelection () |
Void | OpenToolsMenu () |
Void | EditMediatrackIngame () |
Void | PreloadAllBlocks () |
Void | PreloadAllItems () |
Boolean | CanPlaceBlock (CBlockModel BlockModel, Int3 Coord, CMapEditorPlugin::CardinalDirections Dir, Boolean OnGround, Integer VariantIndex) |
Boolean | PlaceBlock (CBlockModel BlockModel, Int3 Coord, CMapEditorPlugin::CardinalDirections Dir) |
Boolean | CanPlaceGhostBlock (CBlockModel BlockModel, Int3 Coord, CMapEditorPlugin::CardinalDirections Dir) |
Boolean | PlaceGhostBlock (CBlockModel BlockModel, Int3 Coord, CMapEditorPlugin::CardinalDirections Dir) |
Boolean | CanPlaceBlock_NoDestruction (CBlockModel BlockModel, Int3 Coord, CMapEditorPlugin::CardinalDirections Dir, Boolean OnGround, Integer VariantIndex) |
Boolean | PlaceBlock_NoDestruction (CBlockModel BlockModel, Int3 Coord, CMapEditorPlugin::CardinalDirections Dir) |
Boolean | CanPlaceRoadBlocks (CBlockModel BlockModel, Int3 StartCoord, Int3 EndCoord) |
Boolean | PlaceRoadBlocks (CBlockModel BlockModel, Int3 StartCoord, Int3 EndCoord) |
Boolean | CanPlaceTerrainBlocks (CBlockModel BlockModel, Int3 StartCoord, Int3 EndCoord) |
Boolean | PlaceTerrainBlocks (CBlockModel BlockModel, Int3 StartCoord, Int3 EndCoord) |
Boolean | PlaceTerrainBlocks_NoDestruction (CBlockModel BlockModel, Int3 StartCoord, Int3 EndCoord) |
Boolean | CanPlaceMacroblock (CMacroblockModel MacroblockModel, Int3 Coord, CMapEditorPlugin::CardinalDirections Dir) |
Boolean | PlaceMacroblock (CMacroblockModel MacroblockModel, Int3 Coord, CMapEditorPlugin::CardinalDirections Dir) |
Boolean | PlaceMacroblock_AirMode (CMacroblockModel MacroblockModel, Int3 Coord, CMapEditorPlugin::CardinalDirections Dir) |
Boolean | CanPlaceMacroblock_NoDestruction (CMacroblockModel MacroblockModel, Int3 Coord, CMapEditorPlugin::CardinalDirections Dir) |
Boolean | PlaceMacroblock_NoDestruction (CMacroblockModel MacroblockModel, Int3 Coord, CMapEditorPlugin::CardinalDirections Dir) |
Boolean | CanPlaceMacroblock_NoTerrain (CMacroblockModel MacroblockModel, Int3 Coord, CMapEditorPlugin::CardinalDirections Dir) |
Boolean | PlaceMacroblock_NoTerrain (CMacroblockModel MacroblockModel, Int3 Coord, CMapEditorPlugin::CardinalDirections Dir) |
Boolean | RemoveMacroblock (CMacroblockModel MacroblockModel, Int3 Coord, CMapEditorPlugin::CardinalDirections Dir) |
Boolean | RemoveMacroblock_NoTerrain (CMacroblockModel MacroblockModel, Int3 Coord, CMapEditorPlugin::CardinalDirections Dir) |
CBlock | GetBlock (Int3 Coord) |
CBlock | GetBlock (CBlockModel BlockModel, Int3 Coord, CMapEditorPlugin::CardinalDirections Dir) |
CBlock | GetGhostBlock (CBlockModel BlockModel, Int3 Coord, CMapEditorPlugin::CardinalDirections Dir) |
Boolean | IsBlockModelSkinnable (CBlockModel BlockModel) |
Integer | GetNbBlockModelSkins (CBlockModel BlockModel) |
Text | GetBlockModelSkin (CBlockModel BlockModel, Integer SkinIndex) |
Boolean | IsItemModelSkinnable (CGameItemModel ItemModel) |
Integer | GetNbItemModelSkins (CGameItemModel ItemModel) |
Text | GetItemModelSkin (CGameItemModel ItemModel, Integer SkinIndex) |
Text | GetSkinDisplayName (Text SkinFileName) |
Text | GetBlockSkinBg (CBlock Block) |
Text | GetBlockSkinFg (CBlock Block) |
Void | SetBlockSkin (CBlock Block, Text SkinFileName) |
Void | SetBlockSkins (CBlock Block, Text BgSkinFileName, Text FgSkinFileName) |
Text | GetItemSkinBg (CItemAnchor AnchoredObject) |
Text | GetItemSkinFg (CItemAnchor AnchoredObject) |
Void | SetItemSkin (CItemAnchor AnchoredObject, Text SkinFileName) |
Void | SetItemSkins (CItemAnchor AnchoredObject, Text BgSkinFileName, Text FgSkinFileName) |
Boolean | IsSkinForeground (CBlockModel BlockModel, Text SkinFileName) |
Boolean | IsSkinForeground (CGameItemModel ItemModel, Text SkinFileName) |
Boolean | IsMacroblockModelSkinnable (CMacroblockModel BlockModel) |
Boolean | SetMacroblockSkin (CMacroblockInstance Macroblock, Text SkinFileName) |
Boolean | OpenBlockSkinDialog (CBlock Block) |
Boolean | RemoveBlock (Int3 Coord) |
Boolean | RemoveBlock (CBlockModel BlockModel, Int3 Coord, CMapEditorPlugin::CardinalDirections Dir) |
Boolean | RemoveGhostBlock (CBlockModel BlockModel, Int3 Coord, CMapEditorPlugin::CardinalDirections Dir) |
Boolean | RemoveTerrainBlocks (Int3 StartCoord, Int3 EndCoord) |
Integer | GetBlockGroundHeight (CBlockModel BlockModel, Integer CoordX, Integer CoordZ, CMapEditorPlugin::CardinalDirections Dir) |
Integer | GetGroundHeight (Integer CoordX, Integer CoordZ) |
Int3 | GetMouseCoordOnGround () |
Int3 | GetMouseCoordAtHeight (Integer CoordY) |
CBlock | GetStartLineBlock () |
Boolean | RemoveItem (CAnchorData Item) |
Void | CopyPaste_AddOrSubSelection (Int3 StartCoord, Int3 EndCoord) |
Boolean | CopyPaste_Symmetrize () |
Integer | CopyPaste_GetSelectedCoordsCount () |
Void | SaveMacroblock (CMacroblockModel MacroblockModel) |
Boolean | CopyPaste_ApplyColorToSelection (CMapEditorPlugin::MapElemColor Color) |
Boolean | CopyPaste_IncreaseSelectionPhaseOffset (CMapEditorPlugin::PhaseOffset Offset) |
Boolean | CopyPaste_DecreaseSelectionPhaseOffset (CMapEditorPlugin::PhaseOffset Offset) |
Boolean | CopyPaste_SetSelectionPhaseOffset (CMapEditorPlugin::PhaseOffset Offset) |
Boolean | CopyPaste_ApplyLightmapQualityToSelection (CMapEditorPlugin::MapElemLightmapQuality LightmapQuality) |
Void | CopyPaste_GetLightmapQualityInSelection () |
CMacroblockModel | GetMacroblockModelFromFilePath (Text MacroblockModelFilePath) |
CBlockModel | GetTerrainBlockModelFromName (Text TerrainBlockModelName) |
CBlockModel | GetBlockModelFromName (Text BlockModelName) |
CBlockClipList | CreateFrameClipList () |
CBlockClipList | CreateFixedClipList () |
Void | UnvalidateMetadata () |
Void | UnvalidateGameplayInfo () |
Void | UnvalidatePlayfield () |
Boolean | RemoveMacroblock_NoTerrain_NoUnvalidate (CMacroblockModel MacroblockModel, Int3 Coord, CMapEditorPlugin::CardinalDirections Dir) |
Boolean | PlaceMacroblock_NoTerrain_NoUnvalidate (CMacroblockModel MacroblockModel, Int3 Coord, CMapEditorPlugin::CardinalDirections Dir) |
Void | ResetAutoRepeat () |
Void | ComputeItemsForMacroblockInstance (CMacroblockInstance MacroBlockInstance) |
Void | GetConnectResults (CBlock ExistingBlock, CBlockModel NewBlock) |
Void | GetConnectResults (CBlock ExistingBlock, CMacroblockModel NewBlock) |
Void | GetConnectResults (CMacroblockInstance ExistingBlock, CBlockModel NewBlock) |
Void | GetConnectResults (CMacroblockInstance ExistingBlock, CMacroblockModel NewBlock) |
Integer | GetStartBlockCount (Boolean IncludeMultilaps) |
Integer | GetFinishBlockCount (Boolean IncludeMultilaps) |
Integer | GetMultilapBlockCount () |
Integer | GetCheckpointBlockCount () |
Integer | GetItemsCountResult () |
CMacroblockInstance | CreateMacroblockInstance (CMacroblockModel MacroblockModel, Int3 Coord, CMapEditorPlugin::CardinalDirections Dir, CMapEditorPlugin::MapElemColor Color, Boolean ForceMacroblockColor) |
CMacroblockInstance | CreateMacroblockInstance (CMacroblockModel MacroblockModel, Int3 Coord, CMapEditorPlugin::CardinalDirections Dir, CMapEditorPlugin::MapElemColor Color, Boolean ForceMacroblockColor, Integer UserData) |
CMacroblockInstance | CreateMacroblockInstance (CMacroblockModel MacroblockModel, Int3 Coord, CMapEditorPlugin::CardinalDirections Dir, CBlockClipList DefaultClipList, CMapEditorPlugin::MapElemColor Color, Boolean ForceMacroblockColor) |
CMacroblockInstance | CreateMacroblockInstance (CMacroblockModel MacroblockModel, Int3 Coord, CMapEditorPlugin::CardinalDirections Dir, CBlockClipList DefaultClipList, CMapEditorPlugin::MapElemColor Color, Boolean ForceMacroblockColor, Integer UserData) |
CMacroblockInstance | GetMacroblockInstanceFromOrder (Integer Order) |
CMacroblockInstance | GetMacroblockInstanceFromUnitCoord (Int3 Coord) |
CMacroblockInstance | GetLatestMacroblockInstance () |
CMacroblockInstance | GetLatestMacroblockInstance (Integer Offset) |
CMacroblockInstance | GetMacroblockInstanceConnectedToClip (CBlockClip Clip) |
Boolean | RemoveMacroblockInstance (CMacroblockInstance MacroblockInstance) |
Boolean | RemoveMacroblockInstanceFromOrder (Integer Order) |
Boolean | RemoveMacroblockInstanceFromUnitCoord (Integer Order) |
Boolean | RemoveMacroblockInstancesByUserData (Integer UserData) |
Void | ResetAllMacroblockInstances () |
Integer | GetMaxOrder () |
Boolean | SetMapType (Text MapType) |
Text | GetMapType () |
Void | SetMapStyle (Text MapStyle) |
Text | GetMapStyle () |
Text | GetAvailableMapName () |
Boolean | IsMapFileNameAvailable (Text MapName) |
Vec3 | GetVec3FromCoord (Int3 Coord) |
Boolean | DoesAnchorHaveSpawn (CAnchorData Anchor) |
Public Member Functions inherited from CManiaApp | |
CUILayer | UILayerCreate () |
Void | UILayerDestroy (CUILayer Layer) |
Void | UILayerDestroyAll () |
Void | LayerCustomEvent (CUILayer Layer, Text Type, Array< Text > Data) |
Void | OpenLink (Text Url, CManiaApp::ELinkType LinkType) |
Boolean | OpenFileInExplorer (Text FileName) |
Void | Dialog_Message (Text Message) |
Text | Dbg_DumpDeclareForVariables (CNod Nod, Boolean StatsOnly) |
Ident | TTS_Context_Enter (Integer Level) |
Ident | TTS_Context_Leave (Ident ContextId) |
Void | TTS_Context_Change (Ident ContextId, CMlControl Control) |
Void | TTS_Context_Change (Ident ContextId, Text Text, Boolean Translate) |
Void | TTS_Context_Read (Integer Level) |
Void | TTS_Context_Read (Ident ContextId) |
Text | FilterProfanities (Text TextToFilter) |
Public Attributes | |
Boolean | CustomEditAnchorData |
CMapType::ValidationStatus | ValidationStatus |
Text | ValidabilityRequirementsMessage |
Boolean | ValidationEndRequested |
Boolean | ValidationEndNoConfirm |
Boolean const | IsSwitchedToPlayground |
CUIConfigMgr *const | UIManager |
Array< CUser *const > | Users |
Public Attributes inherited from CMapEditorPlugin | |
Array< CMapEditorPluginEvent *const > | PendingEvents |
CMap *const | Map |
Text const | MapName |
Text const | MapFileName |
Boolean const | IsEditorReadyForRequest |
Boolean const | BackToMainMenuRequested |
Boolean | HoldLoadingScreen |
CMapEditorPlugin::ShadowsQuality const | CurrentShadowsQuality |
Boolean const | IsUltraShadowsQualityAvailable |
Boolean | EnableMapTypeStartTest |
CMapEditorPlugin::PlaceMode | PlaceMode |
CMapEditorPlugin::EditMode | EditMode |
CMapEditorPlugin::MapElemColor | NextMapElemColor |
CMapEditorPlugin::MapElemColorPalette | MapElemColorPalette |
Boolean const | IsColorBlindModeActive |
Array< CMapEditorPlugin::MapElemColorPalette > | MapElemColorPalettes |
Boolean | ForceMacroblockColor |
CMapEditorPlugin::PhaseOffset | NextItemPhaseOffset |
CMapEditorPlugin::PhaseOffset | NextMbAdditionalPhaseOffset |
CMapEditorPlugin::MapElemLightmapQuality | NextMapElemLightmapQuality |
Boolean | ForceMacroblockLightmapQuality |
Boolean | UndergroundMode |
Boolean | BlockStockMode |
CMapEditorInventory *const | Inventory |
Boolean | HideInventory |
Real | CameraVAngle |
Real | CameraHAngle |
Real | CameraToTargetDistance |
Vec3 | CameraTargetPosition |
Vec3 const | CameraPosition |
Real | ThumbnailCameraVAngle |
Real | ThumbnailCameraHAngle |
Real | ThumbnailCameraRoll |
Real | ThumbnailCameraFovY |
Vec3 | ThumbnailCameraPosition |
Boolean | EnableAirMapping |
Boolean | EnableMixMapping |
Array< CMapEditorPlugin::MapElemLightmapQuality > | CopyPaste_GetLightmapQualityInSelection_Results |
Array< CItemAnchor *const > | MacroblockInstanceItemsResults |
Array< Text > | GetItemsCountRequest |
CMapEditorCamera *const | Camera |
CMapEditorCursor *const | Cursor |
Array< CItemAnchor *const > | Items |
Array< Text > | MediatrackIngameClips |
Integer | MediatrackIngameEditedClipIndex |
Array< CBlock *const > | Blocks |
Array< CBlockModel *const > | BlockModels |
Array< CBlockModel *const > | TerrainBlockModels |
Array< CMacroblockModel *const > | MacroblockModels |
Array< CBlock *const > | ClassicBlocks |
Array< CBlock *const > | TerrainBlocks |
Array< CBlock *const > | GhostBlocks |
Array< CBlockClipList *const > | FixedClipLists |
Array< CBlockClipList *const > | FrameClipLists |
Array< CBlockClipList *const > | MacroblockInstanceClipLists |
Array< CMacroblockInstance *const > | MacroblockInstances |
Array< CMapEditorConnectResults *const > | ConnectResults |
Array< CAnchorData *const > | AnchorData |
Array< Int3 > | CustomSelectionCoords |
Vec3 | CustomSelectionRGB |
Boolean | EnableEditorInputsCustomProcessing |
Boolean | EnableCursorShowingWhenInterfaceIsFocused |
Boolean | HideEditorInterface |
Boolean | HideBlockHelpers |
Boolean | ShowPlacementGrid |
Boolean const | IsTesting |
Boolean const | IsValidating |
Boolean const | EditorInputIsDown_Menu |
Boolean const | EditorInputIsDown_SwitchToRace |
Boolean const | EditorInputIsDown_Undo |
Boolean const | EditorInputIsDown_Redo |
Boolean const | EditorInputIsDown_CursorTiltLeft |
Boolean const | EditorInputIsDown_CursorTiltRight |
Boolean const | EditorInputIsDown_CursorUp |
Boolean const | EditorInputIsDown_CursorRight |
Boolean const | EditorInputIsDown_CursorDown |
Boolean const | EditorInputIsDown_CursorLeft |
Boolean const | EditorInputIsDown_CursorRaise |
Boolean const | EditorInputIsDown_CursorLower |
Boolean const | EditorInputIsDown_CursorTurn |
Boolean const | EditorInputIsDown_CursorPick |
Boolean const | EditorInputIsDown_CursorPlace |
Boolean const | EditorInputIsDown_CursorDelete |
Boolean const | EditorInputIsDown_CameraUp |
Boolean const | EditorInputIsDown_CameraRight |
Boolean const | EditorInputIsDown_CameraDown |
Boolean const | EditorInputIsDown_CameraLeft |
Boolean const | EditorInputIsDown_CameraZoomNext |
Boolean const | EditorInputIsDown_Camera0 |
Boolean const | EditorInputIsDown_Camera1 |
Boolean const | EditorInputIsDown_Camera3 |
Boolean const | EditorInputIsDown_Camera7 |
Boolean const | EditorInputIsDown_Camera9 |
Boolean const | EditorInputIsDown_PivotChange |
Boolean const | EditorInputIsDown_CursorTurnSlightly |
Boolean const | EditorInputIsDown_CursorTurnSlightlyAntiClockwise |
Boolean const | EditorInputIsDown_IconUp |
Boolean const | EditorInputIsDown_IconRight |
Boolean const | EditorInputIsDown_IconDown |
Boolean const | EditorInputIsDown_IconLeft |
Boolean const | EditorInputIsDown_RemoveAll |
Boolean const | EditorInputIsDown_Save |
Boolean const | EditorInputIsDown_SelectAll |
Boolean const | EditorInputIsDown_Copy |
Boolean const | EditorInputIsDown_Cut |
Boolean const | EditorInputIsDown_Paste |
Real const | CollectionSquareSize |
Real const | CollectionSquareHeight |
Integer const | CollectionGroundY |
CMapEditorPlugin::ValidationStatus const | ValidationStatus |
Real | BleacherSpectatorsFillRatio |
Integer | BleacherSpectatorsCount |
Text | ManialinkText |
CMlPage *const | ManialinkPage |
Public Attributes inherited from CManiaApp | |
Text const | ManiaAppUrl |
Text const | ManiaAppBaseUrl |
Integer const | Now |
Boolean const | IsVisible |
Integer | LayersDefaultManialinkVersion |
CUser *const | LocalUser |
CTitle *const | LoadedTitle |
Boolean | EnableMenuNavigationInputs |
Array< CUILayer *const > | UILayers |
CParsingManager *const | Xml |
CHttpManager *const | Http |
CVideoManager *const | Video |
CAudioManager *const | Audio |
CInputManager *const | Input |
CDataFileMgr *const | DataFileMgr |
CScoreMgr *const | ScoreMgr |
CRankingsZoneMgr *const | ZoneMgr |
CTrackingMgr *const | TrackingMgr |
CUserV2Manager *const | UserMgr |
CWSNotificationManager *const | WSNotificationMgr |
CSystemPlatform *const | System |
Boolean | TTS_Disabled |
Public Attributes inherited from CNod | |
Ident const | Id |
API for the plugins of the map editor.
Supported declare modes :