GithubHelp home page GithubHelp logo

gmodchatmod's Introduction

Garry's Mod Chat Mod

Garry's Mod Chat Mod mod is a light-weight solution to creating a new chat box. It works internally within source engine so it doesn't look hacky and feel like it too.

API

chat.Resize(w,h)

Sets the chat box to width w and height h

chat.GetFilterButton()

Gets the filter button panel

chat.GetPanel()

Gets the main panel

chat.GetInput()

Gets the input text area

chat.GetInputLine()

Gets the input text area's parent

chat.GetHistory()

Gets the text history box (where you see other's chat messages)

chat.SetFont(fontname)

Sets all the text in the chat panel to fontname font.

chat.IsActive()

Returns if the player is able to type

chat.IsOpen()

Returns if chat is open

chat.IsTyping()

Returns if the keyboard focus is the input box

#History panel functions

chat.Append(text)

Appends text to the history panel

chat.SetColor(color)

Sets the color for upcoming chat.Append(text)

chat.InsertClickableText(id) chat.EndClickableText()

Used for clickable text (broken?) Check the garrysmod wiki.

chat.InsertStandardFade()

Inserts the standard fade for upcoming text from chat.Append

#Hooks

hook ChatModInitialize

called when the chat mod initializes (usually after someone opens chat)

hook ChatResized

called when chat is resized with chat.Resize

gmodchatmod's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mrluckygamer

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.