Added checks for OutlineColorContainers/Corpses in gl_highlighting

(same as OutlineColor, in case player set them to negative values.)

Updated resource files.
This commit is contained in:
NovaRain
2024-06-28 21:12:54 +08:00
parent abd62dd834
commit b852d6f168
6 changed files with 8 additions and 7 deletions
+3 -3
View File
@@ -26,12 +26,12 @@ CheckLOS=1
; You can set a custom color from the game palette by multiplying the color index value by 256 (in 4.2.7 or later)
OutlineColor=16
; Set the color of outlines for corpses
OutlineColorCorpses=4
; Set the color of outlines for containers
OutlineColorContainers=4
; Set the color of outlines for corpses
OutlineColorCorpses=4
; Motion Scanner mode:
; 0 - ignored
; 1 - requires Motion Sensor to be present in the player's inventory to activate highlighting
Binary file not shown.
+5 -4
View File
@@ -36,8 +36,8 @@ variable alsoCorpse;
variable alsoCritter;
variable checkLOS;
variable outlineColor;
variable outlineColorCorpses;
variable outlineColorContainers;
variable outlineColorCorpses;
variable motionScanner;
variable highlightFailMsg1;
variable highlightFailMsg2;
@@ -173,10 +173,11 @@ procedure start begin
alsoCritter := GetConfig(configSection, "Critters", 0);
checkLOS := GetConfig(configSection, "CheckLOS", 0);
outlineColor := GetConfig(configSection, "OutlineColor", 16);
outlineColorCorpses := GetConfig(configSection, "OutlineColorCorpses", 16);
outlineColorContainers := GetConfig(configSection, "OutlineColorContainers", 16);
if (outlineColor < 1) then outlineColor := 64;
outlineColorContainers := GetConfig(configSection, "OutlineColorContainers", 16);
if (outlineColorContainers < 1) then outlineColorContainers := 64;
outlineColorCorpses := GetConfig(configSection, "OutlineColorCorpses", 16);
if (outlineColorCorpses < 1) then outlineColorCorpses := 64;
motionScanner := GetConfig(configSection, "MotionScanner", 0);
highlightFailMsg1 := Translate("HighlightFail1", "You aren't carrying a motion sensor.");
Binary file not shown.
Binary file not shown.
Binary file not shown.