mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 14:04:43 -04:00
* Add feautre request #358 * Remove the if statement in src/UI/Canvas/TileMode.gd Co-authored-by: Daniel Simon <dasimon@gmx.org>
This commit is contained in:
parent
ab6bebd6d4
commit
d85efce73a
5 changed files with 97 additions and 63 deletions
|
@ -23,8 +23,10 @@ func _draw() -> void:
|
|||
# Mostly used to hide the grid if it goes outside the canvas boundaries
|
||||
draw_rect(Rect2(pos, size), Global.default_clear_color)
|
||||
|
||||
var tilemode_opacity = 1.0 - Global.tilemode_opacity
|
||||
|
||||
for i in range(Global.current_project.layers.size()):
|
||||
var modulate_color := Color(1, 1, 1, current_cels[i].opacity)
|
||||
var modulate_color := Color(1, 1, 1, current_cels[i].opacity - tilemode_opacity)
|
||||
if Global.current_project.layers[i].visible: # if it's visible
|
||||
if Global.tile_mode:
|
||||
for pos in positions:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue