MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / SetSliderSwitchItem

Method SetSliderSwitchItem

ui/UISlider.cpp:96–104  ·  view source on GitHub ↗

sets visual characteristics of slider.

Source from the content-addressed store, hash-verified

94
95// sets visual characteristics of slider.
96void UISlider::SetSliderSwitchItem(UIItem *item) {
97 if (switch_item)
98 delete switch_item;
99
100 if (item) {
101 switch_item = item->CopyUIItem();
102 } else
103 switch_item = UIPrimativeItem(GR_DARKGRAY).CopyUIItem();
104}
105
106void UISlider::SetSliderItem(UIItem *item) {
107 if (slider_item)

Callers

nothing calls this directly

Calls 2

UIPrimativeItemClass · 0.85
CopyUIItemMethod · 0.45

Tested by

no test coverage detected