|
| MapConfiguration | GetMapConfig () |
| | Get map config.
|
| |
| bool | IsOpen () |
| | Check if the map is opened.
|
| |
| int | GetMapSizeX () |
| | Get map sizeX in meters.
|
| |
| int | GetMapSizeY () |
| | Get map sizeY in meters.
|
| |
| float | GetMaxZoom () |
| | Get maximal zoom.
|
| |
| float | GetMinZoom () |
| | Get minimal zoom.
|
| |
| float | GetTargetZoomPPU () |
| | Get target zoom in the form of PixelPerUnit value, which is different from current zoom if interpolation is ongoing.
|
| |
| bool | IsZooming () |
| | Get whether zoom interpolation is ongoing.
|
| |
| vector | GetCurrentPan () |
| | Get current DPIScaled pan offsets.
|
| |
| CanvasWidget | GetMapWidget () |
| | Get map widget.
|
| |
| Widget | GetMapMenuRoot () |
| | Get map menu root widget.
|
| |
| void | SetMapWidget (Widget mapW) |
| | Set map widget.
|
| |
| MapItem | GetHoveredItem () |
| | Get hovered item.
|
| |
| void | GetMapVisibleFrame (out vector min, out vector max) |
| | Return visible frame in the form of min and max point, used to ignore update of f.e. icons when they are not visible.
|
| |
| float | GetCurrentZoom () |
| | Get how much pixels per unit(meter) are currently visible on screen.
|
| |
| void | GetMapCursorWorldPosition (out float worldX, out float worldY) |
| | Get map cursor world position.
|
| |
| void | GetMapCenterWorldPosition (out float worldX, out float worldY) |
| | Get map center of screen world position.
|
| |
| SCR_MapModuleBase | GetMapModule (TypeName moduleType) |
| | Get a specific map module.
|
| |
| SCR_MapUIBaseComponent | GetMapUIComponent (TypeName componentType) |
| | Get a specific map UI component.
|
| |
| void | OpenMap (MapConfiguration config) |
| | Open the map.
|
| |
| void | CloseMap () |
| | Close the map.
|
| |
| MapConfiguration | SetupMapConfig (EMapEntityMode mapMode, ResourceName configPath, Widget rootWidget) |
| | Prepare MapConfiguration object from provided map config.
|
| |
| void | CenterMap () |
| | Center the map.
|
| |
| void | ZoomOut () |
| | Set minimal zoom and center the map.
|
| |
| void | ShowScriptDebug () |
| | Show/hide debug info table.
|
| |
| void | SetZoom (float targetPPU, bool instant=false) |
| | Set zoom value.
|
| |
| void | ZoomSmooth (float targetPixPerUnit, float zoomTime=0.25, bool zoomToCenter=true, bool reinitZoom=false) |
| | Interpolated zoom.
|
| |
| void | ZoomPanSmooth (float targetPixPerUnit, float worldX, float worldY, float zoomTime=0.25) |
| | Interpolated zoom with custom pan target for simultaneous use of zoom+pan.
|
| |
| void | SetPan (float x, float y, bool isPanEnd=true, bool center=true, bool updatingPan=false) |
| | Pan the map to target position, all of scripted panning is called through this.
|
| |
| void | Pan (EMapPanMode panMode, float panValue=0) |
| | Pan the map by px amount.
|
| |
| void | PanSmooth (float panX, float panY, float panTime=0.25) |
| | Interpolated pan.
|
| |
| void | InvokeOnSelect (vector selectionPos) |
| | Triggers OnSelection event.
|
| |
| void | SelectItem (MapItem item) |
| | Select target MapItem.
|
| |
| void | HoverItem (MapItem item) |
| | Set hover mode to target MapItem.
|
| |
| void | ClearSelection () |
| | Clear selected items.
|
| |
| void | ClearHover () |
| | Clear hover state.
|
| |
| void | WorldToScreen (float worldX, float worldY, out int screenPosX, out int screenPosY, bool withPan=false) |
| | Use canvas world coords to get DPIscaled screen coords, flips the y-axis.
|
| |
| void | WorldToScreenCustom (float worldX, float worldY, out int screenPosX, out int screenPosY, float targetPPU, bool withPan=false) |
| | Use canvas world coords and defined pixel per unit to get DPIscaled screen coords, flips the y-axis.
|
| |
| void | ScreenToWorld (int screenPosX, int screenPosY, out float worldX, out float worldY) |
| | Use scaled screen coords to get canvas world coords, flips the y-axis.
|
| |
| void | ScreenToWorldNoFlip (int screenPosX, int screenPosY, out float worldX, out float worldY) |
| | Use scaled screen coords to get canvas world coords without flipping the y-axis.
|
| |
| bool | UpdateZoomBounds () |
| | Calculate zoom min/max.
|
| |
| void | DeactivateModule (SCR_MapModuleBase module) |
| | Deactivate module, removing it from loadable list until config is reloaded.
|
| |
| void | DeactivateComponent (SCR_MapUIBaseComponent component) |
| | Deactivate UI component, removing it from loadable list until config is reloaded.
|
| |
| void | UpdateViewPort () |
| | Updates view port.
|
| |
| override void | EOnFrame (IEntity owner, float timeSlice) |
| |
| override void | EOnInit (IEntity owner) |
| |
| void | SCR_MapEntity (IEntitySource src, IEntity parent) |
| |
| void | ~SCR_MapEntity () |
| |
| proto external void | UpdateTexts () |
| |
| proto external void | AbsorbData () |
| | Absorb world data and create precalculated form for visualisation.
|
| |
| proto external vector | Offset () |
| | Starting offset of the map.
|
| |
| proto external vector | Size () |
| | Terrain dimensions (x, height = maxElevation-minElevation, z)
|
| |
| proto external float | TerrainUnitScale () |
| | Terrain unit scale.
|
| |
| proto external void | SetSelection (vector start, vector end) |
| | Set selection to visualise (from -> to)
|
| |
| proto external void | ResetSelection () |
| | Reset selection to visualise (from -> to)
|
| |
| proto external void | SetFrame (vector start, vector end) |
| | Set frame to visualise (from -> to)
|
| |
| proto external void | ZoomChange (float level) |
| | Set new zoom.
|
| |
| proto external void | PosChange (float x, float y) |
| | Set new pos of map.
|
| |
| proto external void | CursorChange (float x, float y) |
| | Set new pos of cursor.
|
| |
| proto external float | MinElevation () |
| | Minimal map elevation.
|
| |
| proto external float | MaxElevation () |
| | Maximal map elevation.
|
| |
| proto external float | ElevationAt (vector pos) |
| | Get elevation at coords.
|
| |
| proto external void | ShowDiag (bool bEnable) |
| | Show/ Hide diag.
|
| |
| proto external MapItem | CreateCustomMapItem () |
| | Create custom representation from script This representation has no entity and you have to support position and orientation yourself (watch MapItem Api)
|
| |
| proto external int | CountOfVisible () |
| | Count of visible.
|
| |
| proto external MapItem | GetVisible (int iIndex) |
| | Visible by index.
|
| |
| proto external int | GetVisibleAll (out notnull array< MapItem > outItems) |
| | Gets all the visible map entities in the current view.
|
| |
| proto external int | GetInsideRect (out notnull array< MapItem > outItems, vector from, vector to) |
| | Get entities in rectangle. Flips the screen y-axis before performing its operation.
|
| |
| proto external int | GetInsideCircle (out notnull array< MapItem > outItems, vector origin, float range) |
| | Get entities in circle. Flips the screen y-axis before performing its operation.
|
| |
| proto external MapItem | GetClose (vector origin, float range) |
| | Get entities in rectangle. Flips the screen y-axis before performing its operation.
|
| |
| proto external int | GetSelected (out notnull array< MapItem > outItems) |
| | Get all selected entities.
|
| |
| proto external int | GetByType (out notnull array< MapItem > outItems, int type) |
| | Get entities by descriptor type.
|
| |
| proto external void | ResetSelected () |
| | Reset all entity selection.
|
| |
| proto external void | ResetHovering () |
| | Reset all entity hovering tag.
|
| |
| proto external void | ResetHighlighted () |
| | Reset all entity highlighted tag.
|
| |
| proto external void | ShowMultiple (int type, bool bEnable) |
| | Show/ hide multiple items by type (EMapDescriptorType) of item.
|
| |
| proto external void | ShowEditor (bool bEnable) |
| | Show/ hide editor items.
|
| |
| proto external void | ShowDebug (bool bEnable) |
| | Show/ hide debug items (camera, map sizes)
|
| |
| proto external void | EnableVisualisation (bool bValue) |
| | Enable/ Disable visualisation.
|
| |
| proto external void | EnableGrid (bool bValue) |
| | Enable/ Disable grid visibility.
|
| |
| proto external void | EnableOverlay (bool bValue) |
| | Enable/ Disable overlay.
|
| |
| proto external void | InitializeLayers (int count, int factionSize=4) |
| | Clear layer setup + set new layer count.
|
| |
| proto external int | LayerCount () |
| | Get layer count.
|
| |
| proto external MapLayer | GetLayer (int index) |
| | Get layer by Index.
|
| |
| proto external void | SetLayer (int index) |
| | Set active layer.
|
| |
| proto external int | GetLayerIndex () |
| | Returns -1 if no valid index previously set.
|
| |
| proto external void | SetImagesetMapping (notnull array< int > values) |
| | Sets corresponding multiple imageset indices for MapDescriptors usage.
|
| |
|
| static ScriptInvokerBase< MapConfigurationInvoker > | GetOnMapInit () |
| | Get on map init invoker, caution: called during the first frame of opening the map when widget related stuff is not initialized yet.
|
| |
| static ScriptInvokerBase< MapConfigurationInvoker > | GetOnMapOpen () |
| | Get on map open invoker.
|
| |
| static ScriptInvokerBase< MapConfigurationInvoker > | GetOnMapOpenComplete () |
| | Get on map open complete invoker.
|
| |
| static ScriptInvokerBase< MapConfigurationInvoker > | GetOnMapClose () |
| | Get on map close invoker.
|
| |
| static ScriptInvokerBase< ScriptInvokerFloat2Bool > | GetOnMapPan () |
| | Get on map pan invoker.
|
| |
| static ScriptInvokerFloat2 | GetOnMapPanEnd () |
| | Get on map pan interpolated end invoker.
|
| |
| static ScriptInvokerFloat | GetOnMapZoom () |
| | Get on map zoom invoker.
|
| |
| static ScriptInvokerFloat | GetOnMapZoomEnd () |
| | Get on map zoom interpolated end invoker.
|
| |
| static ScriptInvokerBase< MapItemInvoker > | GetOnSelectionChanged () |
| | Get on selection changed invoker.
|
| |
| static ScriptInvokerVector | GetOnSelection () |
| | Get on selection invoker.
|
| |
| static ScriptInvokerBase< MapItemInvoker > | GetOnHoverItem () |
| | Get on hover item invoker.
|
| |
| static ScriptInvokerBase< MapItemInvoker > | GetOnHoverEnd () |
| | Get on hover end invoker.
|
| |
| static ScriptInvokerInt | GetOnLayerChanged () |
| | Get on layer changed invoker.
|
| |
| static SCR_MapEntity | GetMapInstance () |
| | Get map entity instance.
|
| |
| static string | GetGridLabel (vector pos, int resMin=2, int resMax=4, string delimiter=" ") |
| | Get grid coordinates for given position.
|
| |
| static void | GetGridPos (vector pos, out int gridX, out int gridZ, int resMin=2, int resMax=4) |
| | Get grid coordinates for given position.
|
| |
|
| void | OnMapOpen (MapConfiguration config) |
| | Map open event.
|
| |
| void | OnMapClose () |
| | Map close event.
|
| |
| void | OnLifeStateChanged (ECharacterLifeState previousLifeState, ECharacterLifeState newLifeState) |
| | SCR_CharacterControllerComponent event Called only in case of a fullscreen map.
|
| |
| void | OnPlayerDeleted (int playerId, IEntity player) |
| | SCR_BaseGameMode event Called only in case of a fullscreen map.
|
| |
| void | OnUserSettingsChanged () |
| | Game event.
|
| |
| void | OnWindowResized (int width, int height, bool windowed) |
| | Game event.
|
| |
| void | SetupLayersAndProps (inout MapConfiguration configObject, SCR_MapConfig mapCfg) |
| | Layer and map properties config setup, if missing creates a default one.
|
| |
| void | SetupDescriptorTypes (SCR_MapDescriptorDefaults descriptorDefaultsConfig) |
| | Map properties config setup, matches imageset indices defined in map layout (MapWidget) to descriptor types.
|
| |
| bool | FitPanBounds (inout float panX, inout float panY, bool center) |
| | Adjust provided pan values by pan bounds conditions.
|
| |
| void | AssignViewLayer (bool isInit) |
| | Checks whether layer should change based on current zoom.
|
| |
| void | InitLayers (MapConfiguration mapConfig) |
| | Initialize layers from config.
|
| |
| void | InitDescriptors (int layerID, MapLayer layer, SCR_LayerConfiguration layerConfig, MapConfiguration mapConfig) |
| | Init visibility and default config values for descriptors based on type.
|
| |
| void | ActivateModules (array< ref SCR_MapModuleBase > modules) |
| | Activate modules.
|
| |
| void | ActivateComponents (array< ref SCR_MapUIBaseComponent > components) |
| | Activate UI components.
|
| |
| void | ActivateOtherComponents (EMapOtherComponents componentFlags) |
| | Activate other components.
|
| |
| void | Cleanup () |
| | Map close cleanup.
|
| |
| void | PanUpdate (float timeSlice) |
| | Interpolated pan update.
|
| |
| void | ZoomUpdate (float timeSlice) |
| | Interpolated zoom update.
|
| |
| void | UpdateDebug () |
| | Update map debug table.
|
| |
| void | UpdateMap (float timeSlice) |
| | Handle update of modules, components and pan/zoom interpolation.
|
| |
| proto external void | EnableLegend (bool bValue) |
| | Enable/ Disable legend.
|
| |
|
| static SCR_MapEntity | s_MapInstance |
| |
| static ref ScriptInvokerBase< MapConfigurationInvoker > | s_OnMapInit = new ScriptInvokerBase<MapConfigurationInvoker>() |
| |
| static ref ScriptInvokerBase< MapConfigurationInvoker > | s_OnMapOpen = new ScriptInvokerBase<MapConfigurationInvoker>() |
| |
| static ref ScriptInvokerBase< MapConfigurationInvoker > | s_OnMapOpenComplete = new ScriptInvokerBase<MapConfigurationInvoker>() |
| |
| static ref ScriptInvokerBase< MapConfigurationInvoker > | s_OnMapClose = new ScriptInvokerBase<MapConfigurationInvoker>() |
| |
| static ref ScriptInvokerBase< ScriptInvokerFloat2Bool > | s_OnMapPan = new ScriptInvokerBase<ScriptInvokerFloat2Bool> |
| |
| static ref ScriptInvokerFloat2 | s_OnMapPanEnd = new ScriptInvokerFloat2() |
| |
| static ref ScriptInvokerFloat | s_OnMapZoom = new ScriptInvokerFloat() |
| |
| static ref ScriptInvokerFloat | s_OnMapZoomEnd = new ScriptInvokerFloat() |
| |
| static ref ScriptInvokerVector | s_OnSelection = new ScriptInvokerVector() |
| |
| static ref ScriptInvokerInt | s_OnLayerChanged = new ScriptInvokerInt() |
| |
| static ref ScriptInvokerBase< MapItemInvoker > | s_OnSelectionChanged = new ScriptInvokerBase<MapItemInvoker>() |
| |
| static ref ScriptInvokerBase< MapItemInvoker > | s_OnHoverItem = new ScriptInvokerBase<MapItemInvoker>() |
| |
| static ref ScriptInvokerBase< MapItemInvoker > | s_OnHoverEnd = new ScriptInvokerBase<MapItemInvoker>() |
| |