2 Commits
v2.7 ... v2.7.1

Author SHA1 Message Date
GreenComfyTea
2390bfe8ac Bump version to v2.7.1 2024-05-23 18:35:07 +03:00
GreenComfyTea
7398bab9ea [Buff UI] Fix buffs not working when Sorting by Timer/Duration is selected 2024-05-12 10:26:43 +03:00
2 changed files with 9 additions and 9 deletions

View File

@@ -36,7 +36,7 @@ local os = os;
local ValueType = ValueType; local ValueType = ValueType;
local package = package; local package = package;
this.version = "2.7"; this.version = "2.7.1";
this.config_folder = "MHR Overlay\\configs\\"; this.config_folder = "MHR Overlay\\configs\\";
this.current_config_value_file_name = "MHR Overlay\\config.json"; this.current_config_value_file_name = "MHR Overlay\\config.json";

View File

@@ -205,7 +205,7 @@ function this.sort_buffs(_displayed_buffs, cached_config)
if infinite_buffs_location == "First" then if infinite_buffs_location == "First" then
if left.is_infinite and right.is_infinite then if left.is_infinite and right.is_infinite then
return left.timer < right.timer; return left.name < right.name;
elseif left.is_infinite then elseif left.is_infinite then
return true; return true;
elseif right.is_infinite then elseif right.is_infinite then
@@ -217,7 +217,7 @@ function this.sort_buffs(_displayed_buffs, cached_config)
elseif infinite_buffs_location == "Last" then elseif infinite_buffs_location == "Last" then
if left.is_infinite and right.is_infinite then if left.is_infinite and right.is_infinite then
return left.timer < right.timer; return left.name < right.name;
elseif left.is_infinite then elseif left.is_infinite then
return false; return false;
elseif right.is_infinite then elseif right.is_infinite then
@@ -236,7 +236,7 @@ function this.sort_buffs(_displayed_buffs, cached_config)
if infinite_buffs_location == "First" then if infinite_buffs_location == "First" then
if left.is_infinite and right.is_infinite then if left.is_infinite and right.is_infinite then
return left.timer > right.timer; return left.name > right.name;
elseif left.is_infinite then elseif left.is_infinite then
return false; return false;
elseif right.is_infinite then elseif right.is_infinite then
@@ -248,7 +248,7 @@ function this.sort_buffs(_displayed_buffs, cached_config)
elseif infinite_buffs_location == "Last" then elseif infinite_buffs_location == "Last" then
if left.is_infinite and right.is_infinite then if left.is_infinite and right.is_infinite then
return left.timer > right.timer; return left.name > right.name;
elseif left.is_infinite then elseif left.is_infinite then
return true; return true;
elseif right.is_infinite then elseif right.is_infinite then
@@ -269,7 +269,7 @@ function this.sort_buffs(_displayed_buffs, cached_config)
if infinite_buffs_location == "First" then if infinite_buffs_location == "First" then
if left.is_infinite and right.is_infinite then if left.is_infinite and right.is_infinite then
return left.duration < right.duration; return left.name < right.name;
elseif left.is_infinite then elseif left.is_infinite then
return true; return true;
elseif right.is_infinite then elseif right.is_infinite then
@@ -281,7 +281,7 @@ function this.sort_buffs(_displayed_buffs, cached_config)
elseif infinite_buffs_location == "Last" then elseif infinite_buffs_location == "Last" then
if left.is_infinite and right.is_infinite then if left.is_infinite and right.is_infinite then
return left.duration < right.duration; return left.name < right.name;
elseif left.is_infinite then elseif left.is_infinite then
return false; return false;
elseif right.is_infinite then elseif right.is_infinite then
@@ -300,7 +300,7 @@ function this.sort_buffs(_displayed_buffs, cached_config)
if infinite_buffs_location == "First" then if infinite_buffs_location == "First" then
if left.is_infinite and right.is_infinite then if left.is_infinite and right.is_infinite then
return left.duration > right.duration; return left.name > right.name;
elseif left.is_infinite then elseif left.is_infinite then
return false; return false;
elseif right.is_infinite then elseif right.is_infinite then
@@ -312,7 +312,7 @@ function this.sort_buffs(_displayed_buffs, cached_config)
elseif infinite_buffs_location == "Last" then elseif infinite_buffs_location == "Last" then
if left.is_infinite and right.is_infinite then if left.is_infinite and right.is_infinite then
return left.duration > right.duration; return left.name > right.name;
elseif left.is_infinite then elseif left.is_infinite then
return true; return true;
elseif right.is_infinite then elseif right.is_infinite then