mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-20 12:33:14 +00:00
Some changes in the comments
We should probably avoid using "I" in comments, as it's not clear who is speaking, and `##` should only be used for documentation string and not normal comments.
This commit is contained in:
parent
e916722e12
commit
0e1825988e
1 changed files with 5 additions and 5 deletions
|
@ -98,11 +98,11 @@ func _notification(what: int) -> void:
|
||||||
|
|
||||||
|
|
||||||
func _on_color_picker_color_changed(color: Color) -> void:
|
func _on_color_picker_color_changed(color: Color) -> void:
|
||||||
## due to the decimal nature of the color values, some values get rounded off
|
# Due to the decimal nature of the color values, some values get rounded off
|
||||||
## unintentionally before entering this method.
|
# unintentionally before entering this method.
|
||||||
## I've noticed that even tho the decimal values change, the HTML remains same after the change.
|
# Even though the decimal values change, the HTML code remains the same after the change.
|
||||||
## So i'm using this trick to convert the values back to how they are shown in
|
# So we're using this trick to convert the values back to how they are shown in
|
||||||
## the color picker's UI.
|
# the color picker's UI.
|
||||||
color = Color(color.to_html())
|
color = Color(color.to_html())
|
||||||
if Tools.picking_color_for == MOUSE_BUTTON_RIGHT:
|
if Tools.picking_color_for == MOUSE_BUTTON_RIGHT:
|
||||||
right_color_rect.color = color
|
right_color_rect.color = color
|
||||||
|
|
Loading…
Add table
Reference in a new issue