跳到主要内容
版本:Next

Interface IMarkers

Namespace: OblivionMp.Sdk
Assembly: OblivionMp.Sdk.dll

Markers over player characters: a line of text above their head, seen only by this player.

public interface IMarkers

Methods​

CreateMarker(MainCharacter, string, MarkerColor)​

Creates a marker over target showing text in color.

MarkerHandle CreateMarker(MainCharacter target, string text, MarkerColor color)

Parameters​

target MainCharacter

text string

color MarkerColor

Returns​

MarkerHandle

The marker, or None if the target has no spawned pawn yet.

DestroyMarker(MarkerHandle)​

Removes a marker. Does nothing for None or a marker already removed.

void DestroyMarker(MarkerHandle handle)

Parameters​

handle MarkerHandle

SetMarkerOpacity(MarkerHandle, float)​

Sets a marker's opacity, from 0 (fully transparent) to 1 (fully opaque). Does nothing for None.

void SetMarkerOpacity(MarkerHandle handle, float opacity)

Parameters​

handle MarkerHandle

opacity float

SetMarkerText(MarkerHandle, string, MarkerColor)​

Changes the text and color of a marker. Does nothing for None.

void SetMarkerText(MarkerHandle handle, string text, MarkerColor color)

Parameters​

handle MarkerHandle

text string

color MarkerColor

SetMarkerVisible(MarkerHandle, bool)​

Shows or hides a marker without removing it. Does nothing for None.

void SetMarkerVisible(MarkerHandle handle, bool visible)

Parameters​

handle MarkerHandle

visible bool

  • Methods
    • CreateMarker(MainCharacter, string, MarkerColor)
    • DestroyMarker(MarkerHandle)
    • SetMarkerOpacity(MarkerHandle, float)
    • SetMarkerText(MarkerHandle, string, MarkerColor)
    • SetMarkerVisible(MarkerHandle, bool)