ProceedColor: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Client function}} This function creates custom color scheme for Custom Widgets. == Syntax == <syntaxhighlight lang="lua"> colorscheme proceedColor(hex6 MainColor,...")
 
Line 11: Line 11:


=== Required Arguments ===  
=== Required Arguments ===  
*'''MainColor'' - Main color of scheme
*'''MainColor''' - Main color of scheme
*'''RedColor''' - Color of deactivated check box
*'''RedColor''' - Color of deactivated check box
*'''GreenColor''' - Color of activated check box
*'''GreenColor''' - Color of activated check box

Revision as of 15:18, 20 July 2018

This function creates custom color scheme for Custom Widgets.

Syntax

colorscheme proceedColor(hex6 MainColor, hex6 RedColor, hex6 GreenColor, [bool DarkTheme])
  • hex6 - string with length equal to 6, and contains only HEX chars: 0-9 and A-F.

Required Arguments

  • MainColor - Main color of scheme
  • RedColor - Color of deactivated check box
  • GreenColor - Color of activated check box

Other Arguments

  • DarkTheme - Boolean value to set theme with dark colors of background. Default - false.

Returns

Returns Color Scheme, what you can put in method setColorScheme.

Example

This example creating all default color schemes:

RedColorsDark = proceedColor("f94f4f", "ef2d2d", "46c169", true) --Red Theme
BlueColorsDark = proceedColor("5278e2", "4667d0", "46c169", true) --Blue Theme

RedColors = proceedColor("f94f4f", "ef2d2d", "46c169", false) --Red Theme
BlueColors = proceedColor("5278e2", "4667d0", "46c169", false) --Blue Theme

PurpleColors = proceedColor("743597", "582A72", "9741C6", false) --Purple Theme
PurpleColorsDark = proceedColor("A53FC5", "200F26", "7E3396", true) --Purple Theme

See Also

Resource Wiki with content located here: Resource:CustomWidgets

Custom Widgets

This methods working for all elements except CustomDialogs and CustomTooltips

Set Functions

Get Functions

Event Functions


Custom Windows

Create Function

Set Functions

Get Functions

Event Functions


Custom Buttons

Create Function

Set Functions

Get Functions

Event Functions


Custom Progress Bars

Create Function

Set Functions

Get Functions

Event Functions


Custom Scroll Bars

Create Function

Set Functions

Get Functions


Custom Edit Boxes

All functions, what has mark CustomEditBox available for CustomEdit, CustomMemo and CustomSpinner.

Create Functions

Set Functions

Get Functions

Event Functions


Custom Check Boxes

Create Function

Set Functions

Get Functions

Event Functions


Custom Combo Boxes

Create Function

Set Functions

Get Functions

Event Functions


Custom Tabbed Panels

Create Function

Set Functions

Get Functions

Event Functions


Custom Labels

Create Function

Set Functions

Get Functions

Event Functions


Custom Dialogs

Create Function

Event Functions


Custom Tool Tips

Create Function

Set Function

Get Function


Custom Loadings

Create Function

Set Functions

Get Functions


Custom Scroll Panes

Create Function

Set Functions

Get Functions

Event Functions


Custom Table Views

Create Function

Set Functions

Get Functions

Event Functions


Custom Static Images

Create Function

Set Function

Get Function

Event Functions


Custom Text Boxes

Create Function

Set Function

Get Function


Custom Events


Other about Custom Widgets