API:Sandbox.ModAPI.Ingame.IMyButtonPanel
From Space Engineers Wiki
Contents
- 1 Sandbox.ModAPI.Ingame.IMyButtonPanel
- 1.1 Namespace
- 1.2 Assembly
- 1.3 Syntax
- 1.4 Methods
- 1.5 Properties
- 1.5.1 BlockDefinition
- 1.5.2 CheckConnectionAllowed
- 1.5.3 CubeGrid
- 1.5.4 DefinitionDisplayNameText
- 1.5.5 DisassembleRatio
- 1.5.6 DisplayNameText
- 1.5.7 IsBeingHacked
- 1.5.8 IsFunctional
- 1.5.9 IsWorking
- 1.5.10 Max
- 1.5.11 Min
- 1.5.12 NumberInGrid
- 1.5.13 Orientation
- 1.5.14 OwnerId
- 1.5.15 Position
- 1.5.16 CustomName
- 1.5.17 CustomNameWithFaction
- 1.5.18 DetailedInfo
- 1.5.19 ShowOnHUD
Sandbox.ModAPI.Ingame.IMyButtonPanel
Interface for button panel blocks.
Namespace
Assembly
Sandbox.Common (Sandbox.Common.dll)
Syntax
public interface IMyButtonPanel : IMyTerminalBlock, IMyCubeBlock, IMyEntity
Methods
GetOwnerFactionTag
string GetOwnerFactionTag()
This returns a string with the faction tag of the associated owner.
GetPlayerRelationToOwner
MyRelationsBetweenPlayerAndBlock GetUserRelationToOwner(long playerId)
GetUserRelationToOwner
MyRelationsBetweenPlayerAndBlock GetUserRelationToOWner(long playerId)
UpdateIsWorking
void UpdateIsWorking()
Updates the current value of the IsWorking property.
UpdateVisual
void UpdateVisual()
{{subst:Tempalte:IMyTerminalBlockMethods}}
Properties
BlockDefinition
SerializableDefinitionId BlockDefinition {get;}
CheckConnectionAllowed
bool CheckConnectionAllowed {get;}
CubeGrid
IMyCubeGrid CubeGrid {get;}
DefinitionDisplayNameText
string DefinitionDisplayNameText {get;}
DisassembleRatio
float DisassembleRatio {get;}
DisplayNameText
string DisplayNameText {get;}
IsBeingHacked
bool IsBeingHacked {get;}
If the block is being ground down, returns true.
IsFunctional
bool IsFunctional {get;}
Determines whether or not the block is built enough to perform its function.
IsWorking
bool IsWorking {get;}
Max
Vector3I Max {get;}
Min
Vector3I Min {get;}
NumberInGrid
int NumberInGrid {get;}
Returns the number of this block's type in the grid (not quantity of blocks of that type on the grid). For instance, if you have a thruster, and add a second thruster, this will return 2. If you remove the second thruster and build another one to replace it, it will return 3.
Orientation
MyBlockOrientation Orientation {get;}
OwnerId
long OwnerId {get;}
Position
Vector3I Position {get;}
CustomName
string CustomName {get;}
The name of the block as shown in the terminal list.
CustomNameWithFaction
string CustomNameWithFaction {get;}
DetailedInfo
string DetailedInfo {get;}
ShowOnHUD
Bool ShowOnHUD {get;}
Returns whether or not ShowOnHUD is active.