Barotrauma Client Doc
Barotrauma.EditorImage Class Reference

Public Types

enum class  DrawTargetType { Camera , World }
 

Public Member Functions

 EditorImage (string path, Vector2 pos)
 
bool IsMouseOn ()
 
Vector2 GetMousePos ()
 
void Update (float deltaTime)
 
void UpdateRectangle ()
 
void Draw (SpriteBatch spriteBatch)
 
void DrawEditing (SpriteBatch spriteBatch, Camera cam)
 

Public Attributes

Texture2D? Image
 
string ImagePath
 
Vector2 Position
 
float Rotation
 
float Opacity = 1f
 
float Scale = 1f
 
DrawTargetType DrawTarget
 
bool Selected
 
Rectangle Bounds
 

Detailed Description

Definition at line 329 of file EditorImage.cs.

Member Enumeration Documentation

◆ DrawTargetType

Enumerator
Camera 
World 

Definition at line 331 of file EditorImage.cs.

Constructor & Destructor Documentation

◆ EditorImage()

Barotrauma.EditorImage.EditorImage ( string  path,
Vector2  pos 
)

Definition at line 353 of file EditorImage.cs.

Member Function Documentation

◆ Draw()

void Barotrauma.EditorImage.Draw ( SpriteBatch  spriteBatch)

Definition at line 548 of file EditorImage.cs.

◆ DrawEditing()

void Barotrauma.EditorImage.DrawEditing ( SpriteBatch  spriteBatch,
Camera  cam 
)

Definition at line 555 of file EditorImage.cs.

◆ GetMousePos()

Vector2 Barotrauma.EditorImage.GetMousePos ( )

Definition at line 363 of file EditorImage.cs.

◆ IsMouseOn()

bool Barotrauma.EditorImage.IsMouseOn ( )

◆ Update()

void Barotrauma.EditorImage.Update ( float  deltaTime)

Definition at line 378 of file EditorImage.cs.

◆ UpdateRectangle()

void Barotrauma.EditorImage.UpdateRectangle ( )

Definition at line 536 of file EditorImage.cs.

Member Data Documentation

◆ Bounds

Rectangle Barotrauma.EditorImage.Bounds

Definition at line 346 of file EditorImage.cs.

◆ DrawTarget

DrawTargetType Barotrauma.EditorImage.DrawTarget

Definition at line 343 of file EditorImage.cs.

◆ Image

Texture2D? Barotrauma.EditorImage.Image

Definition at line 337 of file EditorImage.cs.

◆ ImagePath

string Barotrauma.EditorImage.ImagePath

Definition at line 338 of file EditorImage.cs.

◆ Opacity

float Barotrauma.EditorImage.Opacity = 1f

Definition at line 341 of file EditorImage.cs.

◆ Position

Vector2 Barotrauma.EditorImage.Position

Definition at line 339 of file EditorImage.cs.

◆ Rotation

float Barotrauma.EditorImage.Rotation

Definition at line 340 of file EditorImage.cs.

◆ Scale

float Barotrauma.EditorImage.Scale = 1f

Definition at line 342 of file EditorImage.cs.

◆ Selected

bool Barotrauma.EditorImage.Selected

Definition at line 344 of file EditorImage.cs.