UIMenuColourPickerPanel

image

An under menu version of the same side panel.

Constructor

UIMenuColourPickePanel(ColorPickerType panelType)
UIMenuVehicleColourPickerPanel.New()

Parameters

Current Value

Gets or Sets the current picker value

public int Value {get;set;}
panel:Value(val)

Color

Returns the SColor instance of the current selected value

public SColor Color {get;}
panel:Color()

Events

PickerSelect

VehicleColorPickerSelectEvent(UIMenuItem menu, UIVehicleColourPickerPanel panel, int index, SColor color)
PickerSelect = function(value, color)
end

PickerHovered

VehicleColorPickerHoverEvent(int index, SColor color)
PickerHovered = function(value, color)
end

PickerRollout

// not an error, same delegate, different name
VehicleColorPickerHoverEvent(int index, SColor color);
panel.OnColorRollOut += (index, color) =>
{
    // code here
}
PickerRollOut = function(value, color)
end