Active UI v1.0
The user interface of Flux.
Modules
Hooks hooks
GM gamemode
Client side of the interface hooks: the
GM handlers that make Derma use the Flux skin, create the fonts once the schema has loaded and again when the screen resolution changes, open the tab menu in place of the scoreboard, fill the tab menu and the player menu of the scoreboard, center the panels of the tab menu and flash the game window when the intro appears.hook.Add handlers
Globals globals
Bars object
Hook handlers of the bars library, registered as
FLBarHooks: they keep the bars positioned and up to date, animate their fill and hide them outside their display range.DermaScale library
Scales the stock Derma interface with the screen resolution.
Flux.Bars class
HUD bars: horizontal progress bars such as a respawn timer or a "getting up" timer.
Flux.Help class
Help: the pages of the Help tab of the tab menu.
Flux.Notification class
On-screen notifications: short messages that slide in at the top right corner of the screen.
Flux.Player class
Flux.Prompt class
Prompts: questions that the server asks a single player.
Flux.TabMenu class
Opens and closes the tab menu from code.
Font library
Creates and keeps track of the fonts of the Flux interface.
hooks (prompt) object
Hook handlers of the prompts library, registered as
FLPrompts.InfoDisplay class
The info display: a row of round icons in the top left corner of the HUD that each show a percentage, such as health and armor.
menubar library
model_panel class
MVC library
A small request and response layer between the client and the server, loosely modeled on model-view-controller.
Panel class
Extensions of the
Panel metatable: removal that hides the panel first, positions and sizes that scale with the screen resolution, and a way to make a panel undraggable.Player class
Theme library
Themes control how the Flux interface looks.
theme_hooks object
Hook handlers of the theme library, registered as
flThemeHooks.ThemeBase class
Base class of the interface themes.
vgui library
Panels
fl_avatar_panel panel
A Steam avatar image (
fl_avatar_panel) that opens the player's Steam profile on left click and copies their SteamID on right click.fl_base_panel panel
The base panel (
fl_base_panel) that most Flux panels derive from.fl_button panel
The standard Flux button (
fl_button): a title with an optional FontAwesome icon, drawn by the active theme's PaintButton hook.fl_counter panel
A numeric stepper (
fl_counter): a value with a button above it to increase it, a button below it to decrease it and an optional title.fl_frame panel
A window panel (
fl_frame) with a title header and a close button, drawn by the active theme's PaintFrame hook.fl_help panel
The help page of the tab menu (
fl_help): the 'help' Lumen template mounted into the panel.fl_horizontalbar panel
A horizontal row of panels (
fl_horizontalbar) that can be scrolled when its contents do not fit.fl_image_button panel
A button that shows an image instead of a title (
fl_image_button).fl_intro panel
The intro screen (
fl_intro): a full screen panel that plays the logo animation for four seconds, then fades out and removes itself.fl_menu_item panel
A single option of an
fl_menu: a DButton in the theme's colors with an optional icon.fl_notification panel
A notification popup (
fl_notification): lines of text on a rounded card with an accent stripe, over a blurred background, that fade in and out.fl_scoreboard panel
The scoreboard page of the tab menu (
fl_scoreboard): a scrollable list with one fl_scoreboard_player card per initialized player, drawn by the active theme's PaintScoreboard hook, which also writes how many players are online.fl_scoreboard_player panel
The card of one player on the scoreboard (
fl_scoreboard_player): their avatar, name and ping.fl_selector panel
A modal dialog (
fl_selector) that asks the player to pick one choice from a combo box.fl_sidebar panel
A vertical list of panels (
fl_sidebar) that scrolls without a visible scrollbar, drawn by the active theme's PaintSidebar hook.fl_tab_menu panel
The tab menu (
fl_tab_menu): the full screen menu that opens in place of the scoreboard, with a bar of buttons at the top and one content panel open at a time.fl_text_entry panel
A text entry (
fl_text_entry) in the theme's colors with an optional character limit.fl_tile_board panel
A board (
fl_tile_board) that lays its child panels out on a grid of equally sized cells.Templates
help template
The Help tab of the tab menu: a row of tabs, one for every page that
Flux.Help:add_page has added, and the page that is selected below them, in a scrolling view.help_commands template
The Commands page of the Help tab: every command the local player may run, grouped by category, with its syntax, its description, its aliases and its subcommands.
help_credits template
The Credits page of the Help tab: the people behind Flux.
help_plugins template
The Plugins page of the Help tab: the schema, then every plugin with its author and its description.
Themes
cl_theme_factory theme
The factory theme: Flux's default theme and the base that other themes derive from.
Skins
cl_skin skin
The 'Flux' Derma skin, which Flux makes the default skin of all Derma panels: a flat, dark skin that draws the stock controls (frames, buttons, text entries, lists, trees, menus, sliders, tabs and tooltips) with rounded boxes and FontAwesome glyphs instead of the GWEN texture atlas.