From 58b8922745207a74a969fce3591a609c552ae7a7 Mon Sep 17 00:00:00 2001 From: Arkadiusz Lach Date: Sat, 7 Dec 2024 06:18:44 +0100 Subject: [PATCH] Updated vBot to work with new UIGraph --- modules/game_bot/default_configs/vBot_4.7/vBot/analyzer.lua | 5 +++++ modules/game_bot/default_configs/vBot_4.7/vBot/analyzer.otui | 2 -- modules/game_bot/default_configs/vBot_4.8/vBot/analyzer.lua | 5 +++++ modules/game_bot/default_configs/vBot_4.8/vBot/analyzer.otui | 2 -- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/modules/game_bot/default_configs/vBot_4.7/vBot/analyzer.lua b/modules/game_bot/default_configs/vBot_4.7/vBot/analyzer.lua index 2a64745f..06074121 100644 --- a/modules/game_bot/default_configs/vBot_4.7/vBot/analyzer.lua +++ b/modules/game_bot/default_configs/vBot_4.7/vBot/analyzer.lua @@ -119,6 +119,11 @@ local toggle = function() end local drawGraph = function(graph, value) + if graph:getGraphsCount() == 0 then + graph:createGraph() + graph:setLineWidth(1, 1) + graph:setLineColor(1, "#FF0000") + end graph:addValue(value) end diff --git a/modules/game_bot/default_configs/vBot_4.7/vBot/analyzer.otui b/modules/game_bot/default_configs/vBot_4.7/vBot/analyzer.otui index feb1c4bb..7ed60e17 100644 --- a/modules/game_bot/default_configs/vBot_4.7/vBot/analyzer.otui +++ b/modules/game_bot/default_configs/vBot_4.7/vBot/analyzer.otui @@ -178,8 +178,6 @@ AnalyzerLootItem < UIItem AnalyzerGraph < UIGraph height: 140 capacity: 400 - line-width: 1 - color: red margin-top: 5 margin-left: 5 margin-right: 5 diff --git a/modules/game_bot/default_configs/vBot_4.8/vBot/analyzer.lua b/modules/game_bot/default_configs/vBot_4.8/vBot/analyzer.lua index 74859f16..7a2c8e5d 100644 --- a/modules/game_bot/default_configs/vBot_4.8/vBot/analyzer.lua +++ b/modules/game_bot/default_configs/vBot_4.8/vBot/analyzer.lua @@ -133,6 +133,11 @@ local toggle = function() end local drawGraph = function(graph, value) + if graph:getGraphsCount() == 0 then + graph:createGraph() + graph:setLineWidth(1, 1) + graph:setLineColor(1, "#FF0000") + end graph:addValue(value) end diff --git a/modules/game_bot/default_configs/vBot_4.8/vBot/analyzer.otui b/modules/game_bot/default_configs/vBot_4.8/vBot/analyzer.otui index 216d9583..78899bfa 100644 --- a/modules/game_bot/default_configs/vBot_4.8/vBot/analyzer.otui +++ b/modules/game_bot/default_configs/vBot_4.8/vBot/analyzer.otui @@ -229,8 +229,6 @@ AnalyzerLootItem < UIItem AnalyzerGraph < UIGraph height: 140 capacity: 400 - line-width: 1 - color: red margin-top: 5 margin-left: 5 margin-right: 5