Skip to content

Commit

Permalink
v4.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Arubinu committed Apr 13, 2022
1 parent e69d5f8 commit 774893e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 19 deletions.
9 changes: 3 additions & 6 deletions RocketStats/Managements/WindowManagement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ void RocketStats::RenderIcon()
void RocketStats::RenderOverlay()
{
bool show_overlay = ((rs_enable_inmenu && is_in_menu) || (rs_enable_ingame && is_in_game && (!is_in_scoreboard || is_in_freeplay)) || (rs_enable_inscoreboard && is_in_scoreboard && !is_in_freeplay));
if (!rs_disp_overlay || !show_overlay)
if (!rs_disp_overlay || !show_overlay || (rs_recovery != RecoveryFlags_Off && rs_recovery != RecoveryFlags_Finish))
return;

ImGui::SetNextWindowPos({ 0.f, 0.f }, ImGuiCond_FirstUseEver);
Expand Down Expand Up @@ -359,11 +359,8 @@ void RocketStats::RenderOverlay()
if (rs_rotate_enabled)
start = ImRotateStart(drawlist);

if (rs_recovery == RecoveryFlags_Off || rs_recovery == RecoveryFlags_Finish)
{
for (auto& element : theme_render.elements)
RenderElement(drawlist, element);
}
for (auto& element : theme_render.elements)
RenderElement(drawlist, element);

if (rs_rotate_enabled)
ImRotateEnd(rs_crotate, start, drawlist, ImRotationCenter(start, ImGui::GetBackgroundDrawList()));
Expand Down
2 changes: 1 addition & 1 deletion RocketStats/RocketStats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include "RocketStats.h"

BAKKESMOD_PLUGIN(RocketStats, "RocketStats", "4.0.8", PERMISSION_ALL)
BAKKESMOD_PLUGIN(RocketStats, "RocketStats", "4.0.9", PERMISSION_ALL)

#pragma region Utils
Stats RocketStats::GetStats()
Expand Down
2 changes: 1 addition & 1 deletion RocketStats_themes/Circle/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"author": "Rimey",
"version": "v1.0.1",
"version": "v1.0.2",
"date": "14/09/2019",
"x": "100vw - (100% + 150px)",
"y": "100vh - (100% - 55px)",
Expand Down
22 changes: 11 additions & 11 deletions RocketStats_themes/Default/config.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"author": "@Lyliiya & @NuSa_yt",
"version": "v1.0.0",
"version": "v1.0.1",
"date": "25/06/2019",
"x": 0.7,
"y": 0.575,
"width": 175,
"height": 155,
"height": "(6 * 20px) + 35px",
"scale": 1.0,
"opacity": 1.0,
"elements": [
Expand All @@ -14,8 +14,8 @@
"type": "rectangle",
"x": 0,
"y": 0,
"width": 175,
"height": 155,
"width": "100%",
"height": "100%",
"rounding": 5,
"scale": 2,
"fill": [ 0, 0, 0, 0.5 ],
Expand All @@ -26,7 +26,7 @@
"type": "text",
"value": "{{GameMode}}",
"x": 10,
"y": 10,
"y": "(0 * 20px) + 10px",
"align": "left",
"valign": "top",
"color": [ 255, 255, 255 ],
Expand All @@ -37,7 +37,7 @@
"type": "text",
"value": "{{Rank}} {{Div}}",
"x": 10,
"y": 30,
"y": "(1 * 20px) + 10px",
"align": "left",
"valign": "top",
"color": [ 180, 180, 180 ],
Expand All @@ -48,7 +48,7 @@
"type": "text",
"value": "MMR : {{MMR}}",
"x": 10,
"y": 50,
"y": "(2 * 20px) + 10px",
"align": "left",
"valign": "top",
"color": [ 255, 255, 255 ],
Expand All @@ -60,7 +60,7 @@
"value": "MMRChange : {{MMRChange}}",
"sign": "MMRChange",
"x": 10,
"y": 70,
"y": "(3 * 20px) + 10px",
"align": "left",
"valign": "top",
"color": [ 0, 255, 0 ],
Expand All @@ -71,7 +71,7 @@
"type": "text",
"value": "Win : {{Win}}",
"x": 10,
"y": 90,
"y": "(4 * 20px) + 10px",
"align": "left",
"valign": "top",
"color": [ 0, 255, 0 ],
Expand All @@ -82,7 +82,7 @@
"type": "text",
"value": "Loss : {{Loss}}",
"x": 10,
"y": 110,
"y": "(5 * 20px) + 10px",
"align": "left",
"valign": "top",
"color": [ 255, 0, 0 ],
Expand All @@ -95,7 +95,7 @@
"chameleon": "Streak",
"sign": "Streak",
"x": 10,
"y": 130,
"y": "(6 * 20px) + 10px",
"align": "left",
"valign": "top",
"color": [ 0, 255, 0 ],
Expand Down

0 comments on commit 774893e

Please sign in to comment.