Skip to content

Commit 1cd6146

Browse files
committed
Many Minds, Shroud, Downpour, and Relentless Gaze reminder tokens will now use black font instead of white one for reminder tokens
1 parent 0d44430 commit 1cd6146

File tree

5 files changed

+15
-2
lines changed

5 files changed

+15
-2
lines changed

objects/165f82/contained/a576cc/object.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"b": 0.1518
2626
},
2727
"Tags": [
28+
"Black Text",
2829
"Spirit"
2930
],
3031
"LayoutGroupSortIndex": 0,

objects/362697/contained/a15508/object.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"b": 0.1529
2626
},
2727
"Tags": [
28+
"Black Text",
2829
"Spirit"
2930
],
3031
"LayoutGroupSortIndex": 0,

objects/c5e07e/contained/a95c14/object.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"b": 0.1518
2626
},
2727
"Tags": [
28+
"Black Text",
2829
"Spirit"
2930
],
3031
"LayoutGroupSortIndex": 0,

objects/f33e62/contained/1c6929/object.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"b": 0.1518
2626
},
2727
"Tags": [
28+
"Black Text",
2829
"Spirit"
2930
],
3031
"LayoutGroupSortIndex": 0,

script.lua

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8127,15 +8127,21 @@ function getReminderXml(params)
81278127
end
81288128
function setReminderLabel(params)
81298129
local obj, num = params.obj, params.num
8130-
obj.clearButtons();
8130+
obj.clearButtons()
81318131
if num > 0 then
8132+
local color
8133+
if obj.hasTag("Black Text") then
8134+
color = Color(0, 0, 0)
8135+
else
8136+
color = Color.White
8137+
end
81328138
obj.createButton({
81338139
click_function = "nullFunc",
81348140
function_owner = Global,
81358141
label = tostring(num),
81368142
position = Vector(0,0.15,0),
81378143
font_size = 700,
8138-
font_color = Color.White,
8144+
font_color = color,
81398145
width = 0,
81408146
height = 0,
81418147
})
@@ -8170,6 +8176,9 @@ function spawnMaskedReminder(color, obj, isMarker)
81708176
else
81718177
name = color.."'s "..obj.getName().." Reminder"
81728178
tags = {"Destroy", "Mask", "Reminder Token"}
8179+
if obj.hasTag("Black Text") then
8180+
table.insert(tags, "Black Text")
8181+
end
81738182
scale = Vector(0.9, 0.9, 0.9)
81748183
scriptSuffix = "function onNumberTyped(_, num) Global.call(\"setReminderLabel\", {obj = self, num = num}); self.script_state = tostring(num) end"
81758184
onLoadSuffix = "self.max_typed_number = 99; if(saved_data ~= \"\") then onNumberTyped(nil, tonumber(saved_data)) end"

0 commit comments

Comments
 (0)