C# 클래스 vimage.Config

파일 보기 프로젝트 열기: Torrunt/vimage 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
AltDown bool
ContextMenu List
ContextMenu_Animation List
Control_Close List
Control_Copy List
Control_CopyAsImage List
Control_Delete List
Control_Drag List
Control_FitToMonitorAlt List
Control_FitToMonitorAuto List
Control_FitToMonitorHeight List
Control_FitToMonitorWidth List
Control_Flip List
Control_NextFrame List
Control_NextImage List
Control_OpenAtLocation List
Control_OpenConfig List
Control_OpenContextMenu List
Control_OpenDuplicateImage List
Control_PauseAnimation List
Control_PrevFrame List
Control_PrevImage List
Control_RandomImage List
Control_ReloadConfig List
Control_ResetImage List
Control_RotateAntiClockwise List
Control_RotateClockwise List
Control_ToggleAlwaysOnTop List
Control_ToggleBackgroundForTransparency List
Control_ToggleSmoothing List
Control_ZoomAlt List
Control_ZoomFaster List
CtrlDown bool
CustomActionBindings List
CustomActions List
ShiftDown bool

공개 메소드들

메소드 설명
Config ( ) : System
ControlToString ( object code ) : string

Converts Keyboard.Key or Mouse.Button to their string name.

ControlsToString ( List controls ) : string

Converts list of controls (Keyboard.Key and Mouse.Button) to their string names seperated by commas.

Init ( ) : void
IsControl ( Keyboard keyCode, List Control ) : bool

Returns true if Keyboard.Key is one of Control bindings.

IsControl ( Mouse code, List Control ) : bool

Returns true if Mouse.Button is one of Control bindings.

IsControl ( object code, List Control ) : bool

Returns true if code is one of Control bindings.

KeyToString ( Keyboard key ) : string

Converts SFML Keyboard.Key to upper-case string.

Load ( string configFile ) : void

Loads and parses a config txt file. If it doesn't exist, a default one will be made.

MouseButtonToString ( int code ) : string
Save ( string configFile ) : void

Saves settings to config txt file.

SetControls ( List controls ) : void
SetDefaultContextMenu ( ) : void
SetDefaultControls ( ) : void
SetDefaultCustomActions ( ) : void
StringToControls ( string str ) : List
StringToKey ( string str ) : Keyboard.Key

Converts upper-case string to SFML Keyboard.Key.

StringToMouseButton ( string str ) : int

Converts upper-case string to SFML Mouse.Button (as an int + offset).

UpdateControl ( string name, int bind ) : List

비공개 메소드들

메소드 설명
ReadSection ( StreamReader reader, List setting, string sectionName = "" ) : string
RemoveSpaces ( string str ) : string
VariableAmountOfStrings ( int amount, string s ) : string
WriteComment ( StreamWriter writer, string comment = "" ) : void
WriteContextMenuItems ( StreamWriter writer, List items, int depth = 1 ) : void
WriteContextMenuSetup ( StreamWriter writer, string name, List contextMenu ) : void
WriteControl ( StreamWriter writer, string name, List controls ) : void
WriteCustomActionBindings ( StreamWriter writer, string name, List customActionBindings ) : void
WriteCustomActions ( StreamWriter writer, string name, List customActions ) : void
WriteSetting ( StreamWriter writer, string name, bool value, string comment = "" ) : void
WriteSetting ( StreamWriter writer, string name, int value, string comment = "" ) : void
WriteSetting ( StreamWriter writer, string name, string value, string comment = "" ) : void

메소드 상세

Config() 공개 메소드

public Config ( ) : System
리턴 System

ControlToString() 공개 정적인 메소드

Converts Keyboard.Key or Mouse.Button to their string name.
public static ControlToString ( object code ) : string
code object
리턴 string

ControlsToString() 공개 정적인 메소드

Converts list of controls (Keyboard.Key and Mouse.Button) to their string names seperated by commas.
public static ControlsToString ( List controls ) : string
controls List
리턴 string

Init() 공개 메소드

public Init ( ) : void
리턴 void

IsControl() 공개 정적인 메소드

Returns true if Keyboard.Key is one of Control bindings.
public static IsControl ( Keyboard keyCode, List Control ) : bool
keyCode Keyboard
Control List
리턴 bool

IsControl() 공개 정적인 메소드

Returns true if Mouse.Button is one of Control bindings.
public static IsControl ( Mouse code, List Control ) : bool
code Mouse
Control List
리턴 bool

IsControl() 공개 정적인 메소드

Returns true if code is one of Control bindings.
public static IsControl ( object code, List Control ) : bool
code object
Control List
리턴 bool

KeyToString() 공개 정적인 메소드

Converts SFML Keyboard.Key to upper-case string.
public static KeyToString ( Keyboard key ) : string
key Keyboard
리턴 string

Load() 공개 메소드

Loads and parses a config txt file. If it doesn't exist, a default one will be made.
public Load ( string configFile ) : void
configFile string
리턴 void

MouseButtonToString() 공개 정적인 메소드

public static MouseButtonToString ( int code ) : string
code int
리턴 string

Save() 공개 메소드

Saves settings to config txt file.
public Save ( string configFile ) : void
configFile string
리턴 void

SetControls() 공개 정적인 메소드

public static SetControls ( List controls ) : void
controls List
리턴 void

SetDefaultContextMenu() 공개 메소드

public SetDefaultContextMenu ( ) : void
리턴 void

SetDefaultControls() 공개 메소드

public SetDefaultControls ( ) : void
리턴 void

SetDefaultCustomActions() 공개 메소드

public SetDefaultCustomActions ( ) : void
리턴 void

StringToControls() 공개 정적인 메소드

public static StringToControls ( string str ) : List
str string
리턴 List

StringToKey() 공개 정적인 메소드

Converts upper-case string to SFML Keyboard.Key.
public static StringToKey ( string str ) : Keyboard.Key
str string
리턴 Keyboard.Key

StringToMouseButton() 공개 정적인 메소드

Converts upper-case string to SFML Mouse.Button (as an int + offset).
public static StringToMouseButton ( string str ) : int
str string
리턴 int

UpdateControl() 공개 메소드

public UpdateControl ( string name, int bind ) : List
name string
bind int
리턴 List

프로퍼티 상세

AltDown 공개적으로 정적으로 프로퍼티

public static bool AltDown
리턴 bool

ContextMenu 공개적으로 프로퍼티

public List ContextMenu
리턴 List

ContextMenu_Animation 공개적으로 프로퍼티

public List ContextMenu_Animation
리턴 List

Control_Close 공개적으로 프로퍼티

public List Control_Close
리턴 List

Control_Copy 공개적으로 프로퍼티

public List Control_Copy
리턴 List

Control_CopyAsImage 공개적으로 프로퍼티

public List Control_CopyAsImage
리턴 List

Control_Delete 공개적으로 프로퍼티

public List Control_Delete
리턴 List

Control_Drag 공개적으로 프로퍼티

public List Control_Drag
리턴 List

Control_FitToMonitorAlt 공개적으로 프로퍼티

public List Control_FitToMonitorAlt
리턴 List

Control_FitToMonitorAuto 공개적으로 프로퍼티

public List Control_FitToMonitorAuto
리턴 List

Control_FitToMonitorHeight 공개적으로 프로퍼티

public List Control_FitToMonitorHeight
리턴 List

Control_FitToMonitorWidth 공개적으로 프로퍼티

public List Control_FitToMonitorWidth
리턴 List

Control_Flip 공개적으로 프로퍼티

public List Control_Flip
리턴 List

Control_NextFrame 공개적으로 프로퍼티

public List Control_NextFrame
리턴 List

Control_NextImage 공개적으로 프로퍼티

public List Control_NextImage
리턴 List

Control_OpenAtLocation 공개적으로 프로퍼티

public List Control_OpenAtLocation
리턴 List

Control_OpenConfig 공개적으로 프로퍼티

public List Control_OpenConfig
리턴 List

Control_OpenContextMenu 공개적으로 프로퍼티

public List Control_OpenContextMenu
리턴 List

Control_OpenDuplicateImage 공개적으로 프로퍼티

public List Control_OpenDuplicateImage
리턴 List

Control_PauseAnimation 공개적으로 프로퍼티

public List Control_PauseAnimation
리턴 List

Control_PrevFrame 공개적으로 프로퍼티

public List Control_PrevFrame
리턴 List

Control_PrevImage 공개적으로 프로퍼티

public List Control_PrevImage
리턴 List

Control_RandomImage 공개적으로 프로퍼티

public List Control_RandomImage
리턴 List

Control_ReloadConfig 공개적으로 프로퍼티

public List Control_ReloadConfig
리턴 List

Control_ResetImage 공개적으로 프로퍼티

public List Control_ResetImage
리턴 List

Control_RotateAntiClockwise 공개적으로 프로퍼티

public List Control_RotateAntiClockwise
리턴 List

Control_RotateClockwise 공개적으로 프로퍼티

public List Control_RotateClockwise
리턴 List

Control_ToggleAlwaysOnTop 공개적으로 프로퍼티

public List Control_ToggleAlwaysOnTop
리턴 List

Control_ToggleBackgroundForTransparency 공개적으로 프로퍼티

public List Control_ToggleBackgroundForTransparency
리턴 List

Control_ToggleSmoothing 공개적으로 프로퍼티

public List Control_ToggleSmoothing
리턴 List

Control_ZoomAlt 공개적으로 프로퍼티

public List Control_ZoomAlt
리턴 List

Control_ZoomFaster 공개적으로 프로퍼티

public List Control_ZoomFaster
리턴 List

CtrlDown 공개적으로 정적으로 프로퍼티

public static bool CtrlDown
리턴 bool

CustomActionBindings 공개적으로 프로퍼티

public List CustomActionBindings
리턴 List

CustomActions 공개적으로 프로퍼티

public List CustomActions
리턴 List

ShiftDown 공개적으로 정적으로 프로퍼티

public static bool ShiftDown
리턴 bool