Skip to content

Commit

Permalink
Updated vBot to work with new UIGraph
Browse files Browse the repository at this point in the history
  • Loading branch information
Oen44 committed Dec 7, 2024
1 parent 0e60d15 commit 58b8922
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
5 changes: 5 additions & 0 deletions modules/game_bot/default_configs/vBot_4.7/vBot/analyzer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 0 additions & 2 deletions modules/game_bot/default_configs/vBot_4.7/vBot/analyzer.otui
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions modules/game_bot/default_configs/vBot_4.8/vBot/analyzer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 0 additions & 2 deletions modules/game_bot/default_configs/vBot_4.8/vBot/analyzer.otui
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 58b8922

Please sign in to comment.