MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / render_all

Method render_all

src/SB/Game/zTalkBox.cpp:1695–1725  ·  view source on GitHub ↗

namespace

Source from the content-addressed store, hash-verified

1693
1694}; // namespace
1695void ztalkbox::render_all()
1696{
1697 if (!(shared.permit & 1))
1698 {
1699 return;
1700 }
1701
1702 if (!shared.state)
1703 {
1704 return;
1705 }
1706
1707 if (!shared.active->flag.visible)
1708 {
1709 return;
1710 }
1711
1712 ztextbox& d = *shared.active->dialog_box;
1713
1714 if (d.flag.active)
1715 {
1716 d.deactivate();
1717 }
1718
1719 if (d.flag.show_backdrop)
1720 {
1721 d.render_backdrop();
1722 }
1723
1724 d.tb.render(*(xtextbox::layout*)&shared.lt, shared.begin_jot, shared.end_jot);
1725}
1726void ztalkbox::reset_all()
1727{
1728 shared.flags = 0;

Callers

nothing calls this directly

Calls 3

render_backdropMethod · 0.80
deactivateMethod · 0.45
renderMethod · 0.45

Tested by

no test coverage detected