public bool TryGetInstancedIndoorMapHighlightColor(InstancedIndoorMapRenderable renderable, out Color color)
        {
            var interop = new ColorInterop();

            bool result = NativeIndoorMapsApi_TryGetInstancedIndoorMapRenderableHighlightColor(NativePluginRunner.API, renderable.NativeInstance, renderable.InstanceIndex, out interop);

            color = interop.ToColor();

            return(result);
        }
        internal static void SetColor(IntPtr sceneServiceHandle, [MarshalAs(UnmanagedType.LPStr)] string objectID, ref ColorInterop color)
        {
            var sceneService = sceneServiceHandle.NativeHandleToObject <MapGameObjectScene>();

            sceneService.SetColorInternal(objectID, color.ToColor());
        }
 private static extern bool NativeIndoorMapsApi_TryGetInstancedIndoorMapRenderableHighlightColor(IntPtr ptr, IntPtr renderable, int instanceIndex, out ColorInterop color);
 private static extern void NativeIndoorMapsApi_SetIndoorHighlight(IntPtr ptr, [MarshalAs(UnmanagedType.LPStr)] string indoorMapId, [MarshalAs(UnmanagedType.LPStr)] string highlightEntityId, ref ColorInterop color);
 private static extern int NativeBuildingsApi_SetHighlightStyleAttributes(IntPtr ptr, int buildingHighlightId, ref ColorInterop color);
Esempio n. 6
0
        public static void UpdateLabel(IntPtr labelServiceHandle, [MarshalAs(UnmanagedType.LPStr)] string labelId, ref ColorInterop textColor, ref Vector2 position, float rotationAngleDegrees)
        {
            var labelService = labelServiceHandle.NativeHandleToObject <LabelServiceInternal>();

            labelService.UpdateLabel(labelId, textColor.ToColor(), position, rotationAngleDegrees);
        }
Esempio n. 7
0
        public static void AddLabel(IntPtr labelServiceHandle, [MarshalAs(UnmanagedType.LPStr)] string labelId, [MarshalAs(UnmanagedType.LPStr)] string labelText, ref ColorInterop color, int baseFontSize, double fontScale)
        {
            var labelService = labelServiceHandle.NativeHandleToObject <LabelServiceInternal>();

            labelService.AddLabel(labelId, labelText, color.ToColor(), baseFontSize, fontScale);
        }