Clockwork themeclient
Theme defined in core/cl_theme.lua
Defines the default Clockwork theme and the Clockwork derma skin.
THEME:CreateFonts adds the framework's fonts through cw.fonts, THEME:Initialize sets the default icons,
colors, fonts and sounds through cw.option and the size of the cw.bars bars, and THEME.skin holds the Paint*
functions passed to derma.DefineSkin. The character menu and main menu callbacks in THEME.hooks do nothing in
this theme.
Summary
Methods
cw.core:FontScreenScale.Methods
Creates the fonts of the default theme, scaled to the screen with cw.core:FontScreenScale.
Sets the default theme's icons, option names and descriptions, colors, fonts, sounds and top bar size.
Called when the main menu is closed; removes the main menu's background blur.
Paints the active tab of a property sheet.
Parameters
- panel
- w
- h
Paints a button in its pressed, disabled, hovered or normal state.
Parameters
- panel
- w
- h
Paints a scroll bar's down button in its pressed, disabled, hovered or normal state.
Parameters
- panel
- w
- h
Paints a scroll bar's left button in its pressed, disabled, hovered or normal state.
Parameters
- panel
- w
- h
Paints a scroll bar's right button in its pressed, disabled, hovered or normal state.
Parameters
- panel
- w
- h
Paints a scroll bar's up button in its pressed, disabled, hovered or normal state.
Parameters
- panel
- w
- h
THEME.skin:PaintCategoryButton(panel, w, h)
client gamemodes/catwork/gamemode/core/cl_theme.lua:1168Paints a category list button, with alternating line colors and selected and hovered states.
Parameters
- panel
- w
- h
Paints a category list's outer background.
Parameters
- panel
- w
- h
Paints a check box as checked or unchecked, greyed out when disabled.
Parameters
- panel
- w
- h
THEME.skin:PaintCollapsibleCategory(panel, w, h)
client gamemodes/catwork/gamemode/core/cl_theme.lua:1154Paints a collapsible category, as just its header while it is collapsed.
Parameters
- panel
- w
- h
Paints a combo box in its disabled, open or pressed, hovered or normal state.
Parameters
- panel
- w
- h
Paints a combo box's arrow button, following the state of its combo box.
Parameters
- panel
- w
- h
Paints a tree expand button as a plus when collapsed and a minus when expanded.
Parameters
- panel
- w
- h
Paints a frame, with its shadow if enabled, using the inactive texture while it lacks focus.
Parameters
- panel
- w
- h
Paints a list box's background.
Parameters
- panel
- w
- h
Paints a list view's background, if it has one.
Parameters
- panel
- w
- h
Paints a list view line when it is selected, hovered or an alternate line.
Parameters
- panel
- w
- h
Paints a menu's background, with the icon column if the menu draws one.
Parameters
- panel
- w
- h
Paints a menu bar's background strip.
Parameters
- panel
- w
- h
Paints a menu option's hover highlight and its check mark when checked.
Parameters
- panel
- w
- h
Paints the arrow that marks a menu option with a submenu.
Parameters
- panel
- w
- h
Paints a menu spacer as a dark translucent line.
Parameters
- panel
- w
- h
Paints a number wang's down arrow in its disabled, pressed, hovered or normal state.
Parameters
- panel
- w
- h
Paints a number wang's up arrow in its disabled, pressed, hovered or normal state.
Parameters
- panel
- w
- h
Paints a number slider's line and its notches.
Parameters
- panel
- w
- h
Paints a panel's background in its background color, if the panel has a background.
Parameters
- panel
- w
- h
Paints a progress bar filled to the panel's fraction.
Parameters
- panel
- w
- h
Paints a property sheet's body below its active tab.
Parameters
- panel
- w
- h
Paints a scroll bar grip in its disabled, pressed, hovered or normal state.
Parameters
- panel
- w
- h
Paints a selection highlight over the panel's area.
Parameters
- panel
- w
- h
Paints a drop shadow over the panel's area.
Parameters
- panel
- w
- h
Paints a slider knob in its disabled, pressed, hovered or normal state.
Parameters
- panel
- w
- h
Paints an inactive tab as a solid magenta rectangle.
Parameters
- panel
- w
- h
Paints a text entry's background (disabled, focused or normal) and its text.
Parameters
- panel
- w
- h
Paints a tool tip's background.
Parameters
- panel
- w
- h
Paints a tree's background, if it has one.
Parameters
- panel
- w
- h
Paints the connecting lines of a tree node, if the tree draws lines.
Parameters
- panel
- w
- h
THEME.skin:PaintTreeNodeButton(panel, w, h)
client gamemodes/catwork/gamemode/core/cl_theme.lua:1099Paints the selection highlight behind a selected tree node's label.
Parameters
- panel
- w
- h
Paints the track of a vertical scroll bar.
Parameters
- panel
- w
- h
THEME.skin:PaintWindowCloseButton(panel, w, h)
client gamemodes/catwork/gamemode/core/cl_theme.lua:812Paints a frame's close button in its disabled, pressed, hovered or normal state.
Parameters
- panel
- w
- h
THEME.skin:PaintWindowMaximizeButton(panel, w, h)
client gamemodes/catwork/gamemode/core/cl_theme.lua:850Paints a frame's maximize button in its disabled, pressed, hovered or normal state.
Parameters
- panel
- w
- h
THEME.skin:PaintWindowMinimizeButton(panel, w, h)
client gamemodes/catwork/gamemode/core/cl_theme.lua:831Paints a frame's minimize button in its disabled, pressed, hovered or normal state.
Parameters
- panel
- w
- h
Called after the character menu has initialized; does nothing in the default theme.
Parameters
- panel Panel The character menu
THEME.hooks:PostCharacterMenuOpenPanel(panel)
client gamemodes/catwork/gamemode/core/cl_theme.lua:269Called after a character menu panel is opened; does nothing in the default theme.
Parameters
- panel Panel The character menu
Called after the character menu is painted; does nothing in the default theme.
Parameters
- panel Panel The character menu
Called every frame while the character menu is open; does nothing in the default theme.
Parameters
- panel Panel The character menu
Called after the main menu has initialized; does nothing in the default theme.
Parameters
- panel Panel The main menu
THEME.hooks:PostMainMenuOpenPanel(panel, panelToOpen)
client gamemodes/catwork/gamemode/core/cl_theme.lua:282Called after a main menu panel is opened; does nothing in the default theme.
Parameters
- panel Panel The main menu
- panelToOpen Panel The panel that was opened
Called after the main menu is painted; does nothing in the default theme.
Parameters
- panel Panel The main menu
Called after the main menu is rebuilt; does nothing in the default theme.
Parameters
- panel Panel The main menu
Called every frame while the main menu is open; does nothing in the default theme.
Parameters
- panel Panel The main menu