Show / Hide Table of Contents

Class MyMultiTextPanelComponent

Inheritance
System.Object
MyComponentBase
MyEntityComponentBase
MyEventProxyEntityComponent
MyMultiTextPanelComponent
Implements
IMyTextSurfaceProvider
Inherited Members
MyEventProxyEntityComponent.SyncType
MyEventProxyEntityComponent.OnBeforeRemovedFromContainer()
MyEventProxyEntityComponent.AttachSyncToEntity
MyEntityComponentBase.Container
MyEntityComponentBase.Entity
MyEntityComponentBase.OnAfterAddedToContainer
MyEntityComponentBase.BeforeRemovedFromContainer
MyComponentBase.SetContainer(IMyComponentContainer)
MyComponentBase.GetAs<T>()
MyComponentBase.OnAddedToScene()
MyComponentBase.OnRemovedFromScene()
MyComponentBase.RemoveExistingComponentOnNewInsert
MyComponentBase.ContainerBase
Namespace: Sandbox.Game.EntityComponents
Assembly: Sandbox.Game.dll
Syntax
[MyComponentType]
[MyComponentBuilder]
public class MyMultiTextPanelComponent : MyEventProxyEntityComponent, IMyEntityComponentBase, IMyComponentBase, IMyEventProxy, IMyEventOwner, IMyTextSurfaceProvider, IMyTextPanelProvider

Constructors

MyMultiTextPanelComponent()

Declaration
public MyMultiTextPanelComponent()

MyMultiTextPanelComponent(List<MySerializedTextPanelData>, Single)

Declaration
public MyMultiTextPanelComponent(List<MySerializedTextPanelData> panelsData, float maxRenderDistance)
Parameters
Type Name Description
System.Collections.Generic.List<MySerializedTextPanelData> panelsData
System.Single maxRenderDistance

Properties

AnyPanelNeedsUpdateByOwner

Declaration
public bool AnyPanelNeedsUpdateByOwner { get; }
Property Value
Type Description
System.Boolean

ComponentTypeDebugString

Declaration
public override string ComponentTypeDebugString { get; }
Property Value
Type Description
System.String
Overrides
MyEntityComponentBase.ComponentTypeDebugString

PanelComponent

Declaration
public MyTextPanelComponent PanelComponent { get; }
Property Value
Type Description
Sandbox.Game.Entities.Blocks.MyTextPanelComponent

Panels

Declaration
public List<MyTextPanelComponent> Panels { get; }
Property Value
Type Description
System.Collections.Generic.List<Sandbox.Game.Entities.Blocks.MyTextPanelComponent>

PanelTexturesByteCount

Declaration
public int PanelTexturesByteCount { get; }
Property Value
Type Description
System.Int32

RangeIndex

Declaration
public int RangeIndex { get; set; }
Property Value
Type Description
System.Int32

SelectedPanelIndex

Declaration
public int SelectedPanelIndex { get; }
Property Value
Type Description
System.Int32

SurfaceCount

Declaration
public int SurfaceCount { get; }
Property Value
Type Description
System.Int32

UseGenericLcd

Declaration
public bool UseGenericLcd { get; }
Property Value
Type Description
System.Boolean

WorldPosition

Declaration
public Vector3D WorldPosition { get; }
Property Value
Type Description
Vector3D

Methods

AddToScene(Nullable<Int32>)

Declaration
public void AddToScene(Nullable<int> renderObjectIndex = null)
Parameters
Type Name Description
System.Nullable<System.Int32> renderObjectIndex

ChangeText(Int32, String)

Declaration
public void ChangeText(int panelIndex, string text)
Parameters
Type Name Description
System.Int32 panelIndex
System.String text

CreateTerminalControls<T>()

Declaration
public static void CreateTerminalControls<T>()
    where T : MyTerminalBlock, IMyTextSurfaceProvider, IMyMultiTextPanelComponentOwner
Type Parameters
Name Description
T

Deserialize(MyObjectBuilder_ComponentBase)

Declaration
public override void Deserialize(MyObjectBuilder_ComponentBase builder)
Parameters
Type Name Description
MyObjectBuilder_ComponentBase builder
Overrides
MyComponentBase.Deserialize(MyObjectBuilder_ComponentBase)

GetPanelComponent(Int32)

Declaration
public MyTextPanelComponent GetPanelComponent(int panelIndex)
Parameters
Type Name Description
System.Int32 panelIndex
Returns
Type Description
Sandbox.Game.Entities.Blocks.MyTextPanelComponent

GetSurface(Int32)

Declaration
public IMyTextSurface GetSurface(int index)
Parameters
Type Name Description
System.Int32 index
Returns
Type Description
IMyTextSurface

Init(MyComponentDefinitionBase)

Declaration
public override void Init(MyComponentDefinitionBase definition)
Parameters
Type Name Description
MyComponentDefinitionBase definition
Overrides
MyComponentBase.Init(MyComponentDefinitionBase)

IsSerialized()

Declaration
public override bool IsSerialized()
Returns
Type Description
System.Boolean
Overrides
MyComponentBase.IsSerialized()

OnAddedToContainer()

Declaration
public override void OnAddedToContainer()
Overrides
MyEntityComponentBase.OnAddedToContainer()

OnSelectImageSuccess(Int32, Int32[])

Declaration
[Event(null, 799)]
[Reliable]
[Broadcast]
public void OnSelectImageSuccess(int panelIndex, int[] selection)
Parameters
Type Name Description
System.Int32 panelIndex
System.Int32[] selection

RemoveItems(Int32, Int32[])

Declaration
public void RemoveItems(int panelIndex, int[] selection)
Parameters
Type Name Description
System.Int32 panelIndex
System.Int32[] selection

Reset()

Declaration
public void Reset()

SelectItems(Int32, Int32[])

Declaration
public void SelectItems(int panelIndex, int[] selection)
Parameters
Type Name Description
System.Int32 panelIndex
System.Int32[] selection

SelectPanel(Int32)

Declaration
public void SelectPanel(int index)
Parameters
Type Name Description
System.Int32 index

SendAddImagesToSelectionRequest(Int32, Int32[])

Declaration
protected void SendAddImagesToSelectionRequest(int panelIndex, int[] selection)
Parameters
Type Name Description
System.Int32 panelIndex
System.Int32[] selection

SendChangeTextRequest(Int32, String)

Declaration
protected void SendChangeTextRequest(int panelIndex, string text)
Parameters
Type Name Description
System.Int32 panelIndex
System.String text

SendRemoveSelectedImageRequest(Int32, Int32[])

Declaration
protected void SendRemoveSelectedImageRequest(int panelIndex, int[] selection)
Parameters
Type Name Description
System.Int32 panelIndex
System.Int32[] selection

SendUpdateSpriteCollection(Int32, MySerializableSpriteCollection)

Declaration
protected void SendUpdateSpriteCollection(int panelIndex, MySerializableSpriteCollection sprites)
Parameters
Type Name Description
System.Int32 panelIndex
MySerializableSpriteCollection sprites

Serialize()

Declaration
public List<MySerializedTextPanelData> Serialize()
Returns
Type Description
System.Collections.Generic.List<MySerializedTextPanelData>

Serialize(Boolean)

Declaration
public override MyObjectBuilder_ComponentBase Serialize(bool copy = false)
Parameters
Type Name Description
System.Boolean copy
Returns
Type Description
MyObjectBuilder_ComponentBase
Overrides
MyComponentBase.Serialize(Boolean)

SerializePanel(Int32)

Declaration
public MySerializedTextPanelData SerializePanel(int panelIndex)
Parameters
Type Name Description
System.Int32 panelIndex
Returns
Type Description
MySerializedTextPanelData

SetPanelData(MySerializedTextPanelData, Int32)

Declaration
public void SetPanelData(MySerializedTextPanelData serializedData, int panelIndex)
Parameters
Type Name Description
MySerializedTextPanelData serializedData
System.Int32 panelIndex

SetRender(MyRenderComponentScreenAreas)

Declaration
public void SetRender(MyRenderComponentScreenAreas render)
Parameters
Type Name Description
MyRenderComponentScreenAreas render

UpdateAfterSimulation(Boolean)

Declaration
public void UpdateAfterSimulation(bool isWorking = true)
Parameters
Type Name Description
System.Boolean isWorking

UpdateScreen(Boolean)

Declaration
public void UpdateScreen(bool isWorking)
Parameters
Type Name Description
System.Boolean isWorking

UpdateSpriteCollection(Int32, MySerializableSpriteCollection)

Declaration
public void UpdateSpriteCollection(int panelIndex, MySerializableSpriteCollection sprites)
Parameters
Type Name Description
System.Int32 panelIndex
MySerializableSpriteCollection sprites

Explicit Interface Implementations

IMyTextSurfaceProvider.GetSurface(Int32)

Declaration
IMyTextSurface IMyTextSurfaceProvider.GetSurface(int index)
Parameters
Type Name Description
System.Int32 index
Returns
Type Description
IMyTextSurface

IMyTextSurfaceProvider.SurfaceCount

Declaration
int IMyTextSurfaceProvider.SurfaceCount { get; }
Returns
Type Description
System.Int32

Implements

IMyTextSurfaceProvider

Extension Methods

MyEntityContainerEventExtensions.RegisterForEntityEvent(MyEntityComponentBase, MyStringHash, MyEntityContainerEventExtensions.EntityEventHandler)
MyEntityContainerEventExtensions.RegisterForEntityEvent(MyEntityComponentBase, MyEntity, MyStringHash, MyEntityContainerEventExtensions.EntityEventHandler)
MyEntityContainerEventExtensions.UnregisterForEntityEvent(MyEntityComponentBase, MyEntity, MyStringHash)
MyEntityContainerEventExtensions.RaiseEntityEvent(MyEntityComponentBase, MyStringHash, MyEntityContainerEventExtensions.EntityEventParams)
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾