Trackmania ManiaScript Reference 2024.9.17.1117
A ManiaScript Reference of the new Trackmania.
|
Create scenes for use in menus with <Camera> manialink element. More...
#include <doc.h>
Public Member Functions | |
Ident | SceneCreate (Text LayoutFileName) |
Void | SceneDestroy (Ident SceneId) |
Void | CameraSetLocation (Ident SceneId, Vec3 Position, Real AngleDeg) |
Void | CameraSetLocation (Ident SceneId, Vec3 Position, Real AngleDeg, Real FovY_Deg) |
Void | CameraSetFromItem (Ident SceneId, Ident ItemId) |
Void | LightDir0Set (Ident SceneId, Vec3 sRGB, Real Intensity) |
Ident | ItemCreate (Ident SceneId, Text ModelName, Text SkinName, Text SkinUrl) |
Ident | ItemCreate (Ident SceneId, Text ModelName, Text SkinName, Text SkinUrl, Text SkinOptions) |
Void | ItemDestroy (Ident SceneId, Ident ItemId) |
Void | ItemSetLocation (Ident SceneId, Ident ItemId, Vec3 Position, Real AngleDeg, Boolean IsTurntable) |
Void | ItemAttachTo (Ident SceneId, Ident ItemId, Ident ParentItemId) |
Void | ItemSetVehicleState (Ident SceneId, Ident ItemId, Real Steer, Boolean Brakes, Boolean FrontLight, Integer TurboLvl, Integer BoostLvl, Boolean BurnoutSmoke) |
Void | ItemSetPlayerState (Ident SceneId, Ident ItemId, Vec3 LightrailColor, Vec3 DossardColor, Text DossardNumber, Text DossardTrigram) |
Void | ItemSetPlayerState (Ident SceneId, Ident ItemId, CUser User) |
Void | ItemTriggerPlayerGesture (Ident SceneId, Ident ItemId) |
Void | ItemSetPivot (Ident SceneId, Ident ItemId, Vec3 Pivot) |
Void | ItemSetVisible (Ident SceneId, Ident ItemId, Boolean IsVisible) |
Void | PlaneReflectEnable (Ident SceneId, Real OutOpacity, CMlQuad Quad0, CMlQuad Quad1, CMlQuad Quad2, CMlQuad Quad3) |
Void | PlaneReflectEnable (Ident SceneId, Real OutOpacity, CMlQuad Quad0, CMlQuad Quad1, CMlQuad Quad2, CMlQuad Quad3, Real HorizonAngleDeg_InCamera) |
Void | PlaneReflectRefresh () |
Void | SetBackgroundQuads (Ident SceneId, CMlQuad Quad0, CMlQuad Quad1, CMlQuad Quad2, CMlQuad Quad3) |
Void | CubeMapSetImage2ds (Ident SceneId, Text RelName0, Text RelName1, Text RelName2, Text RelName3) |
Void | ColorGradingSetImage2ds (Ident SceneId, Text RelName0, Text RelName1, Text RelName2, Text RelName3) |
Void | MoodLightDir0Set (Ident SceneId, Integer iMood, Vec3 sRGB, Real Intensity, Real AltitudeDeg, Real AzimutDeg) |
Void | PodiumTweakShadingSet (Ident SceneId, Real BaseColor, Real CubeReflect, Real PlaneReflect) |
Void | PostFxSet (Ident SceneId, Real BloomIntensity) |
Additional Inherited Members | |
Public Attributes inherited from CNod | |
Ident const | Id |
Create scenes for use in menus with <Camera> manialink element.
SkinNameOrUrl: can be 'Skins/Model/....', 'http://....', 'Default' (or '') for item default skin, 'Profile' for the user choice for the model. ModelName: item filename.
Ident CMenuSceneManager::ItemCreate | ( | Ident | SceneId, |
Text | ModelName, | ||
Text | SkinName, | ||
Text | SkinUrl, | ||
Text | SkinOptions ) |
SkinNameOrUrl: can be 'Skins/Model/....', 'http://....', 'Default' (or '') for item default skin, 'Profile' for the user choice for the model. ModelName: item filename.
Void CMenuSceneManager::MoodLightDir0Set | ( | Ident | SceneId, |
Integer | iMood, | ||
Vec3 | sRGB, | ||
Real | Intensity, | ||
Real | AltitudeDeg, | ||
Real | AzimutDeg ) |
iMood: BackgroundQuads AltitudeDeg: 0=horizon, 90°=Zenith AzimutDeg: 0=North(+Z), 90=East(-X), 180=South(-Z), 270=West(+X) !! the feature is enabled only when all 4 Moods have been set !!
Void CMenuSceneManager::PodiumTweakShadingSet | ( | Ident | SceneId, |
Real | BaseColor, | ||
Real | CubeReflect, | ||
Real | PlaneReflect ) |
All scales are [0,1] range
LayoutFileName: can be 'Default' (or '') for default painter scene, 'Empty' for a simple empty scene, or a filename to game data.