C# 클래스 GarrysModLuaShared.gui

The gui library is similar to the input library but features functions that are more focused on the mouse's interaction with GUI panels.
파일 보기 프로젝트 열기: OmegaExtern/gmod-csharp-binary-module

공개 메소드들

메소드 설명
ActivateGameUI ( LuaState luaState ) : void

Opens the game menu overlay.

EnableScreenClicker ( LuaState luaState, bool enabled ) : void

Enables the mouse cursor without restricting player movement, like using Sandbox's Context Menu.

HideGameUI ( LuaState luaState ) : void

Hides the game menu overlay.

InternalCursorMoved ( LuaState luaState, double deltaX, double deltaY ) : void

Simulates a mouse move with the given deltas.

InternalKeyCodePressed ( LuaState luaState, KEY key ) : void

Simulates a key press for the given key.

InternalKeyCodeReleased ( LuaState luaState, KEY key ) : void

Simulates a key release for the given key.

InternalKeyCodeTyped ( LuaState luaState, KEY key ) : void

Simulates a key type typing to the specified key.

InternalKeyTyped ( LuaState luaState, double code ) : void

Simulates a ASCII symbol writing. Use for write text in chat or VGUI. Don't work while console open!

InternalMouseDoublePressed ( LuaState luaState, MOUSE key ) : void

Simulates a double mouse key press for the given mouse key.

InternalMousePressed ( LuaState luaState, MOUSE key ) : void

Simulates a mouse key press for the given mouse key.

InternalMouseReleased ( LuaState luaState, MOUSE key ) : void

Simulates a mouse key release for the given mouse key.

InternalMouseWheeled ( LuaState luaState, double delta ) : void

Simulates a mouse wheel scroll with the given delta.

IsConsoleVisible ( LuaState luaState ) : bool

Returns whenever the console is visible.

IsGameUIVisible ( LuaState luaState ) : bool

Returns whenever the game menu overlay ( main menu ) is open or not.

MousePos ( LuaState luaState ) : double>.Tuple

Returns the cursor's position on the screen.

MousePos ( LuaState luaState, double &mouseX, double &mouseY ) : void

Returns the cursor's position on the screen.

MouseX ( LuaState luaState ) : double

Returns X component of the mouse position.

MouseY ( LuaState luaState ) : double

Returns Y component of the mouse position.

OpenURL ( LuaState luaState, string url ) : void

Opens specified URL in the steam overlay browser. The URL has to start with either "http://" or "https://".

SetMousePos ( LuaState luaState, double mouseX, double mouseY ) : void

Sets the cursor's position on the screen, relative to the topleft corner of the window.

메소드 상세

ActivateGameUI() 공개 정적인 메소드

Opens the game menu overlay.
public static ActivateGameUI ( LuaState luaState ) : void
luaState LuaState Pointer to lua_State struct.
리턴 void

EnableScreenClicker() 공개 정적인 메소드

Enables the mouse cursor without restricting player movement, like using Sandbox's Context Menu.
public static EnableScreenClicker ( LuaState luaState, bool enabled ) : void
luaState LuaState Pointer to lua_State struct.
enabled bool Whether the cursor should be enabled or not (true = enable, false = disable).
리턴 void

HideGameUI() 공개 정적인 메소드

Hides the game menu overlay.
public static HideGameUI ( LuaState luaState ) : void
luaState LuaState Pointer to lua_State struct.
리턴 void

InternalCursorMoved() 공개 정적인 메소드

Simulates a mouse move with the given deltas.
public static InternalCursorMoved ( LuaState luaState, double deltaX, double deltaY ) : void
luaState LuaState Pointer to lua_State struct.
deltaX double The movement delta on the x axis.
deltaY double The movement delta on the y axis.
리턴 void

InternalKeyCodePressed() 공개 정적인 메소드

Simulates a key press for the given key.
public static InternalKeyCodePressed ( LuaState luaState, KEY key ) : void
luaState LuaState Pointer to lua_State struct.
key KEY The key.
리턴 void

InternalKeyCodeReleased() 공개 정적인 메소드

Simulates a key release for the given key.
public static InternalKeyCodeReleased ( LuaState luaState, KEY key ) : void
luaState LuaState Pointer to lua_State struct.
key KEY The key.
리턴 void

InternalKeyCodeTyped() 공개 정적인 메소드

Simulates a key type typing to the specified key.
public static InternalKeyCodeTyped ( LuaState luaState, KEY key ) : void
luaState LuaState Pointer to lua_State struct.
key KEY The key.
리턴 void

InternalKeyTyped() 공개 정적인 메소드

Simulates a ASCII symbol writing. Use for write text in chat or VGUI. Don't work while console open!
public static InternalKeyTyped ( LuaState luaState, double code ) : void
luaState LuaState Pointer to lua_State struct.
code double ASCII code of symbol, see .
리턴 void

InternalMouseDoublePressed() 공개 정적인 메소드

Simulates a double mouse key press for the given mouse key.
public static InternalMouseDoublePressed ( LuaState luaState, MOUSE key ) : void
luaState LuaState Pointer to lua_State struct.
key MOUSE The key.
리턴 void

InternalMousePressed() 공개 정적인 메소드

Simulates a mouse key press for the given mouse key.
public static InternalMousePressed ( LuaState luaState, MOUSE key ) : void
luaState LuaState Pointer to lua_State struct.
key MOUSE The key.
리턴 void

InternalMouseReleased() 공개 정적인 메소드

Simulates a mouse key release for the given mouse key.
public static InternalMouseReleased ( LuaState luaState, MOUSE key ) : void
luaState LuaState Pointer to lua_State struct.
key MOUSE The key.
리턴 void

InternalMouseWheeled() 공개 정적인 메소드

Simulates a mouse wheel scroll with the given delta.
public static InternalMouseWheeled ( LuaState luaState, double delta ) : void
luaState LuaState Pointer to lua_State struct.
delta double The amount of scrolling to simulate.
리턴 void

IsConsoleVisible() 공개 정적인 메소드

Returns whenever the console is visible.
public static IsConsoleVisible ( LuaState luaState ) : bool
luaState LuaState Pointer to lua_State struct.
리턴 bool

IsGameUIVisible() 공개 정적인 메소드

Returns whenever the game menu overlay ( main menu ) is open or not.
public static IsGameUIVisible ( LuaState luaState ) : bool
luaState LuaState Pointer to lua_State struct.
리턴 bool

MousePos() 공개 정적인 메소드

Returns the cursor's position on the screen.
public static MousePos ( LuaState luaState ) : double>.Tuple
luaState LuaState Pointer to lua_State struct.
리턴 double>.Tuple

MousePos() 공개 정적인 메소드

Returns the cursor's position on the screen.
public static MousePos ( LuaState luaState, double &mouseX, double &mouseY ) : void
luaState LuaState Pointer to lua_State struct.
mouseX double Mouse X coordinate.
mouseY double Mouse Y coordinate.
리턴 void

MouseX() 공개 정적인 메소드

Returns X component of the mouse position.
public static MouseX ( LuaState luaState ) : double
luaState LuaState Pointer to lua_State struct.
리턴 double

MouseY() 공개 정적인 메소드

Returns Y component of the mouse position.
public static MouseY ( LuaState luaState ) : double
luaState LuaState Pointer to lua_State struct.
리턴 double

OpenURL() 공개 정적인 메소드

Opens specified URL in the steam overlay browser. The URL has to start with either "http://" or "https://".
public static OpenURL ( LuaState luaState, string url ) : void
luaState LuaState Pointer to lua_State struct.
url string URL to open.
리턴 void

SetMousePos() 공개 정적인 메소드

Sets the cursor's position on the screen, relative to the topleft corner of the window.
public static SetMousePos ( LuaState luaState, double mouseX, double mouseY ) : void
luaState LuaState Pointer to lua_State struct.
mouseX double The X coordinate to move the cursor to.
mouseY double The Y coordinate to move the cursor to.
리턴 void