C# 클래스 Nez.IMGUI

파일 보기 프로젝트 열기: prime31/Nez

공개 메소드들

메소드 설명
beginWindow ( float x, float y, float width, float height, bool useRawMousePosition = true ) : void

begins an IMGUI window specifying where and how large it should be. If you are not using IMGUI in world space (for example, inside a Scene with a scaled resolution policy) passing false for useRawMousePosition will use the Input.scaledMousePosition.

button ( string text ) : bool
endWindow ( ) : void
header ( string text ) : void

creates a full width header with text

progressBar ( float value ) : float

value should be between 0 and 1

slider ( float value, string name = "" ) : float

value should be between 0 and 1

space ( float verticalSpace ) : void

adds some vertical space

toggle ( string text, bool isChecked ) : bool

creates a checkbox/toggle

비공개 메소드들

메소드 설명
IMGUI ( ) : Microsoft.Xna.Framework.Graphics
drawString ( string text, Color color, TextAlign align = TextAlign.Center, float elementHeight = ELEMENT_HEIGHT ) : void
endElement ( float elementHeight = ELEMENT_HEIGHT ) : void
isMouseBetween ( float left, float right ) : bool
isMouseOverElement ( ) : bool

메소드 상세

beginWindow() 공개 정적인 메소드

begins an IMGUI window specifying where and how large it should be. If you are not using IMGUI in world space (for example, inside a Scene with a scaled resolution policy) passing false for useRawMousePosition will use the Input.scaledMousePosition.
public static beginWindow ( float x, float y, float width, float height, bool useRawMousePosition = true ) : void
x float The x coordinate.
y float The y coordinate.
width float Width.
height float Height.
useRawMousePosition bool If set to true use raw mouse position.
리턴 void

button() 공개 정적인 메소드

public static button ( string text ) : bool
text string
리턴 bool

endWindow() 공개 정적인 메소드

public static endWindow ( ) : void
리턴 void

header() 공개 정적인 메소드

creates a full width header with text
public static header ( string text ) : void
text string Text.
리턴 void

progressBar() 공개 정적인 메소드

value should be between 0 and 1
public static progressBar ( float value ) : float
value float Value.
리턴 float

slider() 공개 정적인 메소드

value should be between 0 and 1
public static slider ( float value, string name = "" ) : float
value float Value.
name string
리턴 float

space() 공개 정적인 메소드

adds some vertical space
public static space ( float verticalSpace ) : void
verticalSpace float Vertical space.
리턴 void

toggle() 공개 정적인 메소드

creates a checkbox/toggle
public static toggle ( string text, bool isChecked ) : bool
text string Text.
isChecked bool If set to true is checked.
리턴 bool