MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / Render

Method Render

KBotExt/DirectX.cpp:83–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83int Direct3D11Render::Render() const
84{
85 static char buf[255];
86 static std::string connectedTo = "";
87 static std::string currentInfo = "";
88 if (gamePatch == "0.0.0")
89 {
90 currentInfo = "Failed to connect, most likely blocked by antivirus or firewall";
91 }
92 else
93 {
94 if (LCU::IsProcessGood())
95 connectedTo = "| Connected to: " + LCU::leagueProcesses[LCU::indexLeagueProcesses].second;
96
97 if (champSkins.empty())
98 currentInfo = "Fetching skin data...";
99 else
100 currentInfo = "";
101 }
102
103 sprintf_s(buf, ("KBotExt by kebs - %s %s \t %s ###AnimatedTitle"), gamePatch.c_str(), connectedTo.c_str(), currentInfo.c_str());
104
105 ImGui::SetNextWindowPos(ImVec2(0, 0), ImGuiCond_FirstUseEver);
106 ImGui::SetNextWindowSize(ImVec2(685, 462), ImGuiCond_FirstUseEver);
107 ImGui::SetNextWindowSize(ImVec2(static_cast<float>(S.Window.width - 15), static_cast<float>(S.Window.height - 38)));
108 constexpr ImGuiWindowFlags flags = /*ImGuiWindowFlags_NoTitleBar |*/ ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove |
109 ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoSavedSettings;
110 ImGui::Begin(buf, nullptr, flags); // , ImGuiWindowFlags_AlwaysAutoResize);
111 if (constexpr ImGuiTabBarFlags tab_bar_flags = 0; ImGui::BeginTabBar("TabBar", tab_bar_flags))
112 {
113 if (!closedClient)
114 {
115 GameTab::Render();
116
117 ProfileTab::Render();
118
119 InfoTab::Render();
120
121 ChampsTab::Render();
122
123 SkinsTab::Render();
124
125 MiscTab::Render();
126
127 CustomTab::Render();
128
129 SettingsTab::Render();
130 }
131 else
132 {
133 LoginTab::Render();
134
135 SettingsTab::Render();
136 }
137 ImGui::EndTabBar();
138 }
139
140 ImGui::End();

Callers 1

wWinMainFunction · 0.45

Calls 3

ImVec2Function · 0.85
c_strMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected