C# Class AGS.Editor.RoomSettingsEditor

Inheritance: AGS.Types.EditorContentPanel
Show file Open project: adventuregamestudio/ags Class Usage Examples

Public Methods

Method Description
RoomSettingsEditor ( Room room ) : System

Protected Methods

Method Description
HandleKeyPress ( Keys keyData ) : bool
OnCommandClick ( string command ) : void
OnDispose ( ) : void
OnGetHelpKeyword ( ) : string
OnPanelClosing ( bool canCancel, bool &cancelClose ) : void
OnPropertyChanged ( string propertyName, object oldValue ) : void
OnWindowActivated ( ) : void

Private Methods

Method Description
DoesThisPanelHaveFocus ( ) : bool
ExtendBitmapIfSmallerThanScreen ( Bitmap source ) : Bitmap
ExtendCanvasSizeOf8BitBitmap ( Bitmap source, int newWidth, int newHeight ) : Bitmap

The built-in .NET drawing routines don't work with 8-bit images, so we have to do this manually. How rubbish. The source image is destroyed and a new one returned to replace it.

ImportBackground ( int bgIndex ) : void
ProcessZoomAndPanKeyPresses ( Keys keyData ) : bool
RepopulateBackgroundList ( int selectIndex ) : void
ResizePaneToMatchWindowAndRoomSize ( ) : void
RoomSettingsEditor_MouseWheel ( object sender, MouseEventArgs e ) : void
RoomSettingsEditor_Resize ( object sender, EventArgs e ) : void
SetDefaultPropertyGridList ( ) : void
SetFocusToAllowArrowKeysToWork ( ) : void
UpdateScrollableWindowSize ( ) : void
btnChangeImage_Click ( object sender, EventArgs e ) : void
btnDelete_Click ( object sender, EventArgs e ) : void
btnExport_Click ( object sender, EventArgs e ) : void
bufferedPanel1_DoubleClick ( object sender, EventArgs e ) : void
bufferedPanel1_MouseDown ( object sender, MouseEventArgs e ) : void
bufferedPanel1_MouseMove ( object sender, MouseEventArgs e ) : void
bufferedPanel1_MouseUp ( object sender, MouseEventArgs e ) : void
bufferedPanel1_Paint ( object sender, PaintEventArgs e ) : void
chkCharacterOffset_CheckedChanged ( object sender, EventArgs e ) : void
cmbBackgrounds_SelectedIndexChanged ( object sender, EventArgs e ) : void
cmbViewType_SelectedIndexChanged ( object sender, EventArgs e ) : void
sldTransparency_Scroll ( object sender, EventArgs e ) : void
sldZoomLevel_Scroll ( object sender, EventArgs e ) : void

Method Details

HandleKeyPress() protected method

protected HandleKeyPress ( Keys keyData ) : bool
keyData Keys
return bool

OnCommandClick() protected method

protected OnCommandClick ( string command ) : void
command string
return void

OnDispose() protected method

protected OnDispose ( ) : void
return void

OnGetHelpKeyword() protected method

protected OnGetHelpKeyword ( ) : string
return string

OnPanelClosing() protected method

protected OnPanelClosing ( bool canCancel, bool &cancelClose ) : void
canCancel bool
cancelClose bool
return void

OnPropertyChanged() protected method

protected OnPropertyChanged ( string propertyName, object oldValue ) : void
propertyName string
oldValue object
return void

OnWindowActivated() protected method

protected OnWindowActivated ( ) : void
return void

RoomSettingsEditor() public method

public RoomSettingsEditor ( Room room ) : System
room AGS.Types.Room
return System