MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / drawTabs

Function drawTabs

src/OpenLoco/src/Ui/Windows/MessageWindow.cpp:676–695  ·  view source on GitHub ↗

0x0042AB92

Source from the content-addressed store, hash-verified

674
675 // 0x0042AB92
676 static void drawTabs(Window& self, Gfx::DrawingContext& drawingCtx)
677 {
678 auto skin = ObjectManager::get<InterfaceSkinObject>();
679
680 // Message Tab
681 {
682 uint32_t imageId = skin->img;
683 imageId += InterfaceSkin::ImageIds::tab_messages;
684
685 Widget::drawTab(self, drawingCtx, imageId, widx::tab_messages);
686 }
687
688 // Setting Tab
689 {
690 uint32_t imageId = skin->img;
691 imageId += InterfaceSkin::ImageIds::tab_message_settings;
692
693 Widget::drawTab(self, drawingCtx, imageId, widx::tab_settings);
694 }
695 }
696
697 // 0x0042A826 and 0x0042AB6A
698 static void onUpdate(Window& self)

Callers 1

drawFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected