-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Ashfall to Dialog Result Box Context
Add Interop.hasTea, checks player inventory for a specific tea type Add hot/cold shader
- Loading branch information
Showing
4 changed files
with
258 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
local common = require("mer.ashfall.common.common") | ||
|
||
local shader | ||
|
||
---@return mgeShaderHandle | { temperature: number } | ||
local function getShader() | ||
shader = mgeShadersConfig.load{ name = "ashfall"} | ||
return shader | ||
end | ||
|
||
event.register("load", function() | ||
local shader = getShader() | ||
shader.enabled = true | ||
end) | ||
|
||
event.register("Ashfall:UpdateHud", function() | ||
local shader = getShader() | ||
shader.temperature = common.data.temp | ||
end) |
Oops, something went wrong.