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());
        }
示例#3
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);
        }
示例#4
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);
        }