MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / Animate

Method Animate

engine/Poseidon/UI/Map/UIMapDialogs.cpp:1500–1526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1498}
1499
1500void Notepad::SetPosition(Vector3Par pos)
1501{
1502 ControlObjectContainer::SetPosition(pos);
1503
1504 DisplayMap* parent = dynamic_cast<DisplayMap*>(_parent);
1505 if (parent)
1506 {
1507 parent->AdjustMapVisibleRect();
1508 }
1509}
1510
1511void Notepad::Animate(int level)
1512{
1513 switch (_briefing->ActiveBookmark())
1514 {
1515 case 0:
1516 _paper.SetTexture(_shape, level, _paper1);
1517 break;
1518 case 1:
1519 _paper.SetTexture(_shape, level, _paper2);
1520 break;
1521 case 2:
1522 _paper.SetTexture(_shape, level, _paper3);
1523 break;
1524 case 3:
1525 _paper.SetTexture(_shape, level, _paper4);
1526 break;
1527 case 4:
1528 _paper.SetTexture(_shape, level, _paper6);
1529 break;

Callers

nothing calls this directly

Calls 11

GetDaysInMonthFunction · 0.85
ActiveBookmarkMethod · 0.80
GetYearMethod · 0.80
GetTimeInYearMethod · 0.80
GetTimeOfDayMethod · 0.80
UVOffsetMethod · 0.80
SetTextureMethod · 0.45
DirectionMethod · 0.45
XMethod · 0.45
ZMethod · 0.45
RotateMethod · 0.45

Tested by

no test coverage detected