C# Class CrisisAtSwissStation.LevelEditor.Editor

Inheritance: System.Windows.Forms.Form
Datei anzeigen Open project: danielpcox/Crisis-at-Swiss-Station

Public Methods

Method Description
CurrDirHack ( ) : string

Returns up through "Content folder

Editor ( ) : System
IsEmptyString ( string s ) : bool
RotateVector2 ( Vector2 point, float radians ) : Vector2

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
AreObjPropertiesValid ( ) : bool

Are all the object properties entered by the user valid?

ClearToolMenu ( ) : void

Set all tool squares to "unchecked."

Editor_FormClosing ( object sender, FormClosingEventArgs e ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify

MakeSpaceObject ( string texName, Image tex, Point mp ) : void
PopulateTextureList ( string dir ) : void
SaveRoom ( ) : void
b_ApplyProperties_Click ( object sender, EventArgs e ) : void

Apply properties in text box to currently selected object.

b_Front_Click ( object sender, EventArgs e ) : void
cbox_Scripted_CheckedChanged ( object sender, EventArgs e ) : void
dist ( Point p, Point center ) : double
drawPhysicsObject ( PhysicsObject obj, PaintEventArgs e ) : void
enableEditing ( bool editingWorld ) : void
exitToolStripMenuItem_Click ( object sender, EventArgs e ) : void
load_file ( bool loadWorld, string filter, string title ) : void
mi_Load_Room_Click ( object sender, EventArgs e ) : void
mi_Load_World_Click ( object sender, EventArgs e ) : void
mi_New_World_Click ( object sender, EventArgs e ) : void
mi_Save_As_Click ( object sender, EventArgs e ) : void
mi_Save_Click ( object sender, EventArgs e ) : void
paintedCircle ( float radius, Vector2 gameposition ) : List
paintedSquare ( float sidelength, Vector2 gameposition ) : List
painting_clicked_insert ( MouseEventArgs e ) : void
painting_clicked_select ( MouseEventArgs e ) : void
pb_Level_MouseClick ( object sender, MouseEventArgs e ) : void
pb_Level_MouseDown ( object sender, MouseEventArgs e ) : void
pb_Level_MouseMove ( object sender, MouseEventArgs e ) : void
pb_Level_MouseUp ( object sender, MouseEventArgs e ) : void
pb_Level_Paint ( object sender, PaintEventArgs e ) : void
rb_AnimationObjects_CheckedChanged ( object sender, EventArgs e ) : void
rb_BackgroundObjects_CheckedChanged ( object sender, EventArgs e ) : void
rb_BoxObjects_CheckedChanged ( object sender, EventArgs e ) : void
rb_CircleObjects_CheckedChanged ( object sender, EventArgs e ) : void
rb_Door_CheckedChanged ( object sender, EventArgs e ) : void
rb_HoleObject_CheckedChanged ( object sender, EventArgs e ) : void
rb_HorizontalMovingPlatform_CheckedChanged ( object sender, EventArgs e ) : void
rb_MovingPlatform_CheckedChanged ( object sender, EventArgs e ) : void
rb_PaintedObjects_CheckedChanged ( object sender, EventArgs e ) : void
rb_PistonObject_CheckChanged ( object sender, EventArgs e ) : void
rb_SeeSawObject_CheckedChanged ( object sender, EventArgs e ) : void
rb_SwitchObject_CheckedChanged ( object sender, EventArgs e ) : void
rb_Vanish_Walls_CheckedChanged ( object sender, EventArgs e ) : void
rb_WinDoorObject_CheckedChanged ( object sender, EventArgs e ) : void
refreshResizeObjectBox ( ) : void
showMessage ( string title, string text ) : void
switchRooms ( ) : void
tb_Density_Leave ( object sender, EventArgs e ) : void
tb_Rotation_Leave ( object sender, EventArgs e ) : void
tool_Insertion_Click ( object sender, EventArgs e ) : void
tool_Selection_Click ( object sender, EventArgs e ) : void
updateTitle ( ) : void

Changes the title of the main editor screen to display the name of the selected room.

Method Details

CurrDirHack() public static method

Returns up through "Content folder
public static CurrDirHack ( ) : string
return string

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

Editor() public method

public Editor ( ) : System
return System

IsEmptyString() public static method

public static IsEmptyString ( string s ) : bool
s string
return bool

RotateVector2() public static method

public static RotateVector2 ( Vector2 point, float radians ) : Vector2
point Vector2
radians float
return Vector2