SponsorBlock Notification (#47)

* SponsorBlock Notification

* Lint fix

* Reuse animation for multiple skips

* Small change

* Rename color utils

* Lint fix

---------

Co-authored-by: github-action linter <githubaction@githubaction.com>
This commit is contained in:
Brahim Hadricheandgithub-action linter authored and GitHub committed 2023-02-10 15:20:08 -05:00
1 parent 9697ac58d0
commit e0020ffa66
17 files changed
+460 -62

No files matched your search

@@ -0,0 +1,19 @@
namespace ColorUtils
function HexToInt(color as dynamic) as integer
if color = invalid
return 0
end if
if color.left(1) = "#"
color = color.mid(1)
end if
value = Val(color.mid(0, 2), 16) * 16777216 + Val(color.mid(2, 2), 16) * 65536 + Val(color.mid(4, 2), 16) * 256
if color.Len() = 6
value += 255
else if color.Len() = 8
value += Val(color.mid(6, 2), 16)
end if
return value
end function
end namespace
-17
View File
@@ -1,17 +0,0 @@
function IsDebugMode() as boolean
appInfo = CreateObject("roAppInfo")
bsConst = appInfo.GetValue("bs_const")
symbols = bsConst.Tokenize(";")
for each symbol in symbols
keyValuePair = symbol.Tokenize("=")
if keyValuePair.Count() <> 2
continue for
end if
if UCase(keyValuePair[0]) = "DEBUG"
return UCase(keyValuePair[1]) = "TRUE"
end if
end for
return false
end function