Skip to content

Commit

Permalink
Capture filename updated to capture.png
Browse files Browse the repository at this point in the history
  • Loading branch information
Angar0Os committed Nov 19, 2024
1 parent 7c48d96 commit 7ce17b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scene_capture_texture.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ while not hg.ReadKeyboard():Key(hg.K_Escape) and hg.IsWindowOpen(win) do

-- Take screenshot if CaptureTexture is ready and user pressed space
elseif (state == "capture" and frame_count_capture <= frame) then
png_filename = "screen_capture_texture_lua" .. ".png"
png_filename = "capture" .. ".png"
hg.SavePNG(picture, png_filename)
state = "none" -- Reset state to none to be able to screenshot again
end
Expand Down
2 changes: 1 addition & 1 deletion scene_capture_texture.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@

# Take screenshot if CaptureTexture is ready and user pressed space
elif(state == "capture" and frame_count_capture <= frame):
png_filename = "screen_capture_texture_python" + ".png"
png_filename = "capture" + ".png"
hg.SavePNG(picture, png_filename)
state = "none" #Reset state to none to be able to screenshot again

Expand Down

0 comments on commit 7ce17b6

Please sign in to comment.