You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.1 KiB
38 lines
1.1 KiB
using UnityEngine; |
|
using System; |
|
using UIWidgets; |
|
|
|
namespace UIWidgetsSamples { |
|
public class Table : ListViewCustom<TableRowComponent,TableRow> { |
|
// this function is required |
|
protected override void SetData(TableRowComponent component, TableRow item) |
|
{ |
|
component.SetData(item); |
|
} |
|
|
|
// those functions are optional |
|
protected override void HighlightColoring(TableRowComponent component) |
|
{ |
|
//base.HighlightColoring(component); |
|
component.Cell01Text.color = HighlightedColor; |
|
component.Cell02Text.color = HighlightedColor; |
|
component.Cell04Text.color = HighlightedColor; |
|
} |
|
|
|
protected override void SelectColoring(TableRowComponent component) |
|
{ |
|
//base.SelectColoring(component); |
|
component.Cell01Text.color = SelectedColor; |
|
component.Cell02Text.color = SelectedColor; |
|
component.Cell04Text.color = SelectedColor; |
|
} |
|
|
|
protected override void DefaultColoring(TableRowComponent component) |
|
{ |
|
//base.DefaultColoring(component); |
|
component.Cell01Text.color = DefaultColor; |
|
component.Cell02Text.color = DefaultColor; |
|
component.Cell04Text.color = DefaultColor; |
|
} |
|
} |
|
} |