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

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.
Paints a button in its pressed, disabled, hovered or normal state.
Paints a scroll bar's down button in its pressed, disabled, hovered or normal state.
Paints a scroll bar's left button in its pressed, disabled, hovered or normal state.
Paints a scroll bar's right button in its pressed, disabled, hovered or normal state.
Paints a scroll bar's up button in its pressed, disabled, hovered or normal state.
Paints a category list button, with alternating line colors and selected and hovered states.
Paints a category list's outer background.
Paints a check box as checked or unchecked, greyed out when disabled.
Paints a collapsible category, as just its header while it is collapsed.
Paints a combo box in its disabled, open or pressed, hovered or normal state.
Paints a combo box's arrow button, following the state of its combo box.
Paints a tree expand button as a plus when collapsed and a minus when expanded.
Paints a frame, with its shadow if enabled, using the inactive texture while it lacks focus.
Paints a list box's background.
Paints a list view's background, if it has one.
Paints a list view line when it is selected, hovered or an alternate line.
Paints a menu's background, with the icon column if the menu draws one.
Paints a menu bar's background strip.
Paints a menu option's hover highlight and its check mark when checked.
Paints the arrow that marks a menu option with a submenu.
Paints a menu spacer as a dark translucent line.
Paints a number wang's down arrow in its disabled, pressed, hovered or normal state.
Paints a number wang's up arrow in its disabled, pressed, hovered or normal state.
Paints a number slider's line and its notches.
Paints a panel's background in its background color, if the panel has a background.
Paints a progress bar filled to the panel's fraction.
Paints a property sheet's body below its active tab.
Paints a scroll bar grip in its disabled, pressed, hovered or normal state.
Paints a selection highlight over the panel's area.
Paints a drop shadow over the panel's area.
Paints a slider knob in its disabled, pressed, hovered or normal state.
Paints an inactive tab as a solid magenta rectangle.
Paints a text entry's background (disabled, focused or normal) and its text.
Paints a tool tip's background.
Paints a tree's background, if it has one.
Paints the connecting lines of a tree node, if the tree draws lines.
Paints the selection highlight behind a selected tree node's label.
Paints the track of a vertical scroll bar.
Paints a frame's close button in its disabled, pressed, hovered or normal state.
Paints a frame's maximize button in its disabled, pressed, hovered or normal state.
Paints a frame's minimize button in its disabled, pressed, hovered or normal state.
Called after the character menu has initialized; does nothing in the default theme.
Called after a character menu panel is opened; does nothing in the default theme.
Called after the character menu is painted; does nothing in the default theme.
Called every frame while the character menu is open; does nothing in the default theme.
Called after the main menu has initialized; does nothing in the default theme.
Called after a main menu panel is opened; does nothing in the default theme.
Called after the main menu is painted; does nothing in the default theme.
Called after the main menu is rebuilt; does nothing in the default theme.
Called every frame while the main menu is open; does nothing in the default theme.

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.

THEME.skin:PaintActiveTab(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:801

Paints the active tab of a property sheet.

Parameters

  • panel
  • w
  • h

THEME.skin:PaintButton(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:646

Paints a button in its pressed, disabled, hovered or normal state.

Parameters

  • panel
  • w
  • h

THEME.skin:PaintButtonDown(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:903

Paints a scroll bar's down button in its pressed, disabled, hovered or normal state.

Parameters

  • panel
  • w
  • h

THEME.skin:PaintButtonLeft(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:949

Paints a scroll bar's left button in its pressed, disabled, hovered or normal state.

Parameters

  • panel
  • w
  • h

THEME.skin:PaintButtonRight(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:972

Paints a scroll bar's right button in its pressed, disabled, hovered or normal state.

Parameters

  • panel
  • w
  • h

THEME.skin:PaintButtonUp(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:926

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:1168

Paints a category list button, with alternating line colors and selected and hovered states.

Parameters

  • panel
  • w
  • h

THEME.skin:PaintCategoryList(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:1163

Paints a category list's outer background.

Parameters

  • panel
  • w
  • h

THEME.skin:PaintCheckBox(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:680

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:1154

Paints a collapsible category, as just its header while it is collapsed.

Parameters

  • panel
  • w
  • h

THEME.skin:PaintComboBox(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:1016

Paints a combo box in its disabled, open or pressed, hovered or normal state.

Parameters

  • panel
  • w
  • h

THEME.skin:PaintComboDownArrow(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:995

Paints a combo box's arrow button, following the state of its combo box.

Parameters

  • panel
  • w
  • h

THEME.skin:PaintExpandButton(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:701

Paints a tree expand button as a plus when collapsed and a minus when expanded.

Parameters

  • panel
  • w
  • h

THEME.skin:PaintFrame(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:627

Paints a frame, with its shadow if enabled, using the inactive texture while it lacks focus.

Parameters

  • panel
  • w
  • h

THEME.skin:PaintListBox(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:1037

Paints a list box's background.

Parameters

  • panel
  • w
  • h

THEME.skin:PaintListView(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:1194

Paints a list view's background, if it has one.

Parameters

  • panel
  • w
  • h

THEME.skin:PaintListViewLine(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:1183

Paints a list view line when it is selected, hovered or an alternate line.

Parameters

  • panel
  • w
  • h

THEME.skin:PaintMenu(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:733

Paints a menu's background, with the icon column if the menu draws one.

Parameters

  • panel
  • w
  • h

THEME.skin:PaintMenuBar(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:1206

Paints a menu bar's background strip.

Parameters

  • panel
  • w
  • h

THEME.skin:PaintMenuOption(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:756

Paints a menu option's hover highlight and its check mark when checked.

Parameters

  • panel
  • w
  • h

THEME.skin:PaintMenuRightArrow(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:771

Paints the arrow that marks a menu option with a submenu.

Parameters

  • panel
  • w
  • h

THEME.skin:PaintMenuSpacer(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:746

Paints a menu spacer as a dark translucent line.

Parameters

  • panel
  • w
  • h

THEME.skin:PaintNumberDown(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:1067

Paints a number wang's down arrow in its disabled, pressed, hovered or normal state.

Parameters

  • panel
  • w
  • h

THEME.skin:PaintNumberUp(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:1046

Paints a number wang's up arrow in its disabled, pressed, hovered or normal state.

Parameters

  • panel
  • w
  • h

THEME.skin:PaintNumSlider(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:1141

Paints a number slider's line and its notches.

Parameters

  • panel
  • w
  • h

THEME.skin:PaintPanel(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:607

Paints a panel's background in its background color, if the panel has a background.

Parameters

  • panel
  • w
  • h

THEME.skin:PaintProgress(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:1148

Paints a progress bar filled to the panel's fraction.

Parameters

  • panel
  • w
  • h

THEME.skin:PaintPropertySheet(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:780

Paints a property sheet's body below its active tab.

Parameters

  • panel
  • w
  • h

THEME.skin:PaintScrollBarGrip(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:882

Paints a scroll bar grip in its disabled, pressed, hovered or normal state.

Parameters

  • panel
  • w
  • h

THEME.skin:PaintSelection(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:1109

Paints a selection highlight over the panel's area.

Parameters

  • panel
  • w
  • h

THEME.skin:PaintShadow(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:618

Paints a drop shadow over the panel's area.

Parameters

  • panel
  • w
  • h

THEME.skin:PaintSliderKnob(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:1114

Paints a slider knob in its disabled, pressed, hovered or normal state.

Parameters

  • panel
  • w
  • h

THEME.skin:PaintTab(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:795

Paints an inactive tab as a solid magenta rectangle.

Parameters

  • panel
  • w
  • h

THEME.skin:PaintTextEntry(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:714

Paints a text entry's background (disabled, focused or normal) and its text.

Parameters

  • panel
  • w
  • h

THEME.skin:PaintTooltip(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:1201

Paints a tool tip's background.

Parameters

  • panel
  • w
  • h

THEME.skin:PaintTree(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:669

Paints a tree's background, if it has one.

Parameters

  • panel
  • w
  • h

THEME.skin:PaintTreeNode(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:1084

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:1099

Paints the selection highlight behind a selected tree node's label.

Parameters

  • panel
  • w
  • h

THEME.skin:PaintVScrollBar(panel, w, h)

client gamemodes/catwork/gamemode/core/cl_theme.lua:873

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:812

Paints 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:850

Paints 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:831

Paints a frame's minimize button in its disabled, pressed, hovered or normal state.

Parameters

  • panel
  • w
  • h

THEME.hooks:PostCharacterMenuInit(panel)

client gamemodes/catwork/gamemode/core/cl_theme.lua:257

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:269

Called after a character menu panel is opened; does nothing in the default theme.

Parameters

  • panel Panel The character menu

THEME.hooks:PostCharacterMenuPaint(panel)

client gamemodes/catwork/gamemode/core/cl_theme.lua:265

Called after the character menu is painted; does nothing in the default theme.

Parameters

  • panel Panel The character menu

THEME.hooks:PostCharacterMenuThink(panel)

client gamemodes/catwork/gamemode/core/cl_theme.lua:261

Called every frame while the character menu is open; does nothing in the default theme.

Parameters

  • panel Panel The character menu

THEME.hooks:PostMainMenuInit(panel)

client gamemodes/catwork/gamemode/core/cl_theme.lua:273

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:282

Called 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

THEME.hooks:PostMainMenuPaint(panel)

client gamemodes/catwork/gamemode/core/cl_theme.lua:286

Called after the main menu is painted; does nothing in the default theme.

Parameters

  • panel Panel The main menu

THEME.hooks:PostMainMenuRebuild(panel)

client gamemodes/catwork/gamemode/core/cl_theme.lua:277

Called after the main menu is rebuilt; does nothing in the default theme.

Parameters

  • panel Panel The main menu

THEME.hooks:PostMainMenuThink(panel)

client gamemodes/catwork/gamemode/core/cl_theme.lua:290

Called every frame while the main menu is open; does nothing in the default theme.

Parameters

  • panel Panel The main menu

Defined in