summaryrefslogtreecommitdiffhomepage
path: root/samples/10_advanced_debugging/00_logging
diff options
context:
space:
mode:
authorAmir Rajan <[email protected]>2021-12-10 00:09:48 -0600
committerAmir Rajan <[email protected]>2021-12-10 00:09:48 -0600
commiteaa29e72939f5edf61735ccbb73c36ee89369f65 (patch)
treec310fac2e39bd799bf7fc1f73d35c12bcc5187b7 /samples/10_advanced_debugging/00_logging
parent33dfdde9ae03e3218b4796f3595d3b727f626587 (diff)
downloaddragonruby-game-toolkit-contrib-eaa29e72939f5edf61735ccbb73c36ee89369f65.tar.gz
dragonruby-game-toolkit-contrib-eaa29e72939f5edf61735ccbb73c36ee89369f65.zip
Synced with DragonRuby Game Toolkit v3.2.
Diffstat (limited to 'samples/10_advanced_debugging/00_logging')
-rw-r--r--samples/10_advanced_debugging/00_logging/app/main.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/samples/10_advanced_debugging/00_logging/app/main.rb b/samples/10_advanced_debugging/00_logging/app/main.rb
new file mode 100644
index 0000000..f97b9d8
--- /dev/null
+++ b/samples/10_advanced_debugging/00_logging/app/main.rb
@@ -0,0 +1,19 @@
+def tick args
+ args.outputs.background_color = [255, 255, 255, 0]
+ if args.state.tick_count == 0
+ args.gtk.log_spam "log level spam"
+ args.gtk.log_debug "log level debug"
+ args.gtk.log_info "log level info"
+ args.gtk.log_warn "log level warn"
+ args.gtk.log_error "log level error"
+ args.gtk.log_unfiltered "log level unfiltered"
+ puts "This is a puts call"
+ args.gtk.console.show
+ end
+
+ if args.state.tick_count == 60
+ puts "This is a puts call on tick 60"
+ elsif args.state.tick_count == 120
+ puts "This is a puts call on tick 120"
+ end
+end