isaacscript-common 1.2.252 → 1.2.253
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -92,6 +92,11 @@ export declare function hexToKColor(hexString: string, alpha: float): KColor;
|
|
|
92
92
|
* is enabled or not.
|
|
93
93
|
*/
|
|
94
94
|
export declare function isLuaDebugEnabled(): boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Since this is a UI element, we do not want to draw it in water reflections. `renderOffset` will
|
|
97
|
+
* be a non-zero value in reflections.
|
|
98
|
+
*/
|
|
99
|
+
export declare function isReflectionRender(renderOffset: Vector): boolean;
|
|
95
100
|
/**
|
|
96
101
|
* Helper function to print something to the in-game console. Use this instead of invoking the
|
|
97
102
|
* `Isaac.ConsoleOutput` method directly because it will automatically insert a newline at the end
|
package/dist/functions/utils.lua
CHANGED
|
@@ -66,6 +66,11 @@ end
|
|
|
66
66
|
function ____exports.isLuaDebugEnabled(self)
|
|
67
67
|
return package ~= nil
|
|
68
68
|
end
|
|
69
|
+
function ____exports.isReflectionRender(self, renderOffset)
|
|
70
|
+
local x = math.floor(renderOffset.X + 0.5)
|
|
71
|
+
local y = math.floor(renderOffset.Y + 0.5)
|
|
72
|
+
return x ~= 0 or y ~= 0
|
|
73
|
+
end
|
|
69
74
|
function ____exports.printConsole(self, msg)
|
|
70
75
|
Isaac.ConsoleOutput(msg .. "\n")
|
|
71
76
|
end
|