A Godot Engine app to help streamers organize Majority Judgment polls in their streams.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
336 B

extends "../base.gd"
func _init(value, context: String) -> void:
var type = type2str(value)
var passed: String = "|%s| %s == true" % [type, value]
var failed: String = "|%s| %s != true" % [type, value]
self.context = context
self.success = (value == true)
self.expected = passed
self.result = passed if self.success else failed