MCPcopy Create free account
hub / github.com/axmolengine/axmol / changeStartAngle

Method changeStartAngle

tests/cpp-tests/Source/DrawNodeTest/DrawNodeTest.cpp:1573–1582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1571}
1572
1573void DrawNodeBaseTest::changeStartAngle(ax::Object* pSender, ax::ui::Slider::EventType type)
1574{
1575 if (type == ax::ui::Slider::EventType::ON_PERCENTAGE_CHANGED)
1576 {
1577 slider[sliderType::AngleStart] = dynamic_cast<ax::ui::Slider*>(pSender);
1578 sliderValue[sliderType::AngleStart] = slider[sliderType::AngleStart]->getPercent() * 3.6;
1579 sliderLabel[sliderType::AngleStart]->setString("startAngle: (" +
1580 Value(sliderValue[sliderType::AngleStart]).asString() + ")");
1581 }
1582}
1583
1584void DrawNodeBaseTest::changeRotation(ax::Object* pSender, ax::ui::Slider::EventType type)
1585{

Callers

nothing calls this directly

Calls 4

asStringMethod · 0.80
ValueClass · 0.50
getPercentMethod · 0.45
setStringMethod · 0.45

Tested by

no test coverage detected