1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

[skip ci] Fix some typos in the code

This commit is contained in:
Emmanouil Papadeas 2023-05-18 14:10:15 +03:00
parent 243bb1d9aa
commit 1669cc1a42
5 changed files with 8 additions and 12 deletions

View file

@ -2396,9 +2396,6 @@ msgstr ""
msgid "Radius:"
msgstr ""
msgid "Height:"
msgstr ""
#. Found in the tool options of the 3D Shape Edit tool, under the Mesh category if a spherical object is selected.
msgid "Radial segments:"
msgstr ""

View file

@ -1,4 +1,3 @@
# gdlint: ignore=max-public-methods
extends Node
# use these variables in your extension to access the api
@ -174,7 +173,7 @@ class PanelAPI:
dockable.add_child(node)
tabs[0].insert_node(0, node) # Insert at the beginning
else:
push_error("No Tabs Found!!!")
push_error("No tabs found!")
return
top_menu_container.ui_elements.append(node)
# refreshing Panels submenu
@ -246,7 +245,7 @@ class PanelAPI:
# Get children in the parent, the initial parent is the node we entered as "parent"
while child_number < 2:
# If parent isn't a (layout_split) resource then there is no point
# in continuing (This is just a Sanity Check and should always pass)
# in continuing (this is just a sanity check and should always pass)
if !scan_target.has_method("get_first"):
break
@ -348,7 +347,7 @@ class ProjectAPI:
return {"cel": cel, "type": cel.get_class_name()}
func get_cel_info_at(project: Project, frame: int, layer: int) -> Dictionary:
# frames from left to right, layers from bottomn to top
# frames from left to right, layers from bottom to top
clamp(frame, 0, project.frames.size() - 1)
clamp(layer, 0, project.layers.size() - 1)
var cel = project.frames[frame].cels[layer]

View file

@ -12,7 +12,7 @@ var _for_frame := 0 # cache for which frame?
# Only use "_spacing_mode" and "_spacing" variables (the others are set automatically)
# The _spacing_mode and _spacing values are to be CHANGED only in the tool scripts (e.g Pencil.gd)
var _spacing_mode := false # Enables spacing (continuos gaps between two strokes)
var _spacing_mode := false # Enables spacing (continuous gaps between two strokes)
var _spacing := Vector2.ZERO # Spacing between two strokes
var _stroke_dimensions := Vector2.ONE # 2d vector containing _brush_size from Draw.gd
var _spacing_offset := Vector2.ZERO # The "INITIAL" error between position and position.snapped()

View file

@ -6,7 +6,7 @@ var _brush_size_dynamics := 1
var _cache_limit := 3
var _brush_interpolate := 0
var _brush_image := Image.new()
var _orignal_brush_image := Image.new() # contains the orignal _brush_image (whithout resizing)
var _orignal_brush_image := Image.new() # contains the original _brush_image, without resizing
var _brush_texture := ImageTexture.new()
var _strength := 1.0
var _picking_color := false
@ -222,7 +222,7 @@ func commit_undo() -> void:
func draw_tool(position: Vector2) -> void:
if Global.mirror_view:
# Even brushes are not perfectly centred and are offseted by 1 px so we add it
# Even brushes are not perfectly centred and are offsetted by 1 px so we add it
if int(_stroke_dimensions.x) % 2 == 0:
position.x += 1
_prepare_tool()
@ -318,7 +318,7 @@ func _draw_tool(position: Vector2) -> PoolVector2Array:
# Thanks to https://godotengine.org/qa/35276/tile-based-line-drawing-algorithm-efficiency
func draw_fill_gap(start: Vector2, end: Vector2) -> void:
if Global.mirror_view:
# Even brushes are not perfectly centred and are offseted by 1 px so we add it
# Even brushes are not perfectly centred and are offsetted by 1 px so we add it
if int(_stroke_dimensions.x) % 2 == 0:
start.x += 1
end.x += 1

View file

@ -2,7 +2,7 @@ extends Control
var axes: Node2D
var do_pool = [] # A pool that stores data of points removed by undo
var delete_pool = [] # A pool that containg deleted data and their index
var delete_pool = [] # A pool that containing deleted data and their index
var vanishing_point_res := preload("res://src/UI/PerspectiveEditor/VanishingPoint.tscn")
var tracker_disabled := false
onready var vanishing_point_container = $"%VanishingPointContainer"