Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Jowan-Spooner committed May 23, 2024
1 parent 11a1a41 commit 3150904
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion addons/dialogic/Modules/Character/subsystem_portraits.gd
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ func get_valid_portrait(character:DialogicCharacter, portrait:String) -> String:
return ""

if "{" in portrait and dialogic.has_subsystem("Expressions"):
var test := dialogic.Expressions.execute_string(portrait)
var test: Variant = dialogic.Expressions.execute_string(portrait)
if test:
portrait = str(test)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ func _process(delta:float) -> void:

var center := get_viewport_rect().size / 2.0

var dist_x := abs(base_position.x - center.x)
var dist_y := abs(base_position.y - center.y)
var dist_x := absf(base_position.x - center.x)
var dist_y := absf(base_position.y - center.y)
var x_e := center.x - bubble_rect.size.x
var y_e := center.y - bubble_rect.size.y
var influence_x := remap(clamp(dist_x, x_e, center.x), x_e, center.x * 0.8, 0.0, 1.0)
Expand Down
2 changes: 0 additions & 2 deletions addons/dialogic/Modules/Text/node_dialog_text.gd
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ func _set(property: StringName, what: Variant) -> bool:
return true
return false

return false


func _ready() -> void:
# add to necessary
Expand Down

0 comments on commit 3150904

Please sign in to comment.