-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #349 from Mr-Auto/stuff
Random stuff, again
- Loading branch information
Showing
60 changed files
with
1,399 additions
and
1,450 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,23 @@ | ||
set_camera_layer_control_enabled(false) | ||
|
||
g_current_timer = nil | ||
-- default load_time 36 | ||
function change_layer(layer_to, load_time) | ||
|
||
if state.camera_layer == layer_to then | ||
return | ||
end | ||
if g_current_timer ~= nil then | ||
clear_callback(g_current_timer) | ||
g_current_timer = nil | ||
end | ||
-- if we don't want the load time, we can just change the actual layer | ||
if load_time == nil or load_time == 0 then | ||
state.camera_layer = layer_to | ||
return | ||
end | ||
|
||
state.layer_transition_timer = load_time | ||
state.transition_to_layer = layer_to | ||
state.camera_layer = layer_to | ||
end |
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
Oops, something went wrong.