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
339 B

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