Upload files to 'UI'

This commit is contained in:
Jeison Yehuda Amihud (Blender Dumbass) 2020-12-17 06:33:55 +00:00
parent acc9501a24
commit 26d2187fa6

View file

@ -228,8 +228,8 @@ def image(layer, win ,path, x, y, width=0, height=0, fit="crop", cell=0):
win.images[cell][path] = "LOADING-IMAGE"
if win.imageload < 10:
win.imageload += 1
if win.imageload < 1: # This needs to be fixed. Because multithreading
win.imageload += 1 # gives tons of errors when loading single images.
def loadimage(layer, win ,path, x, y, width, height, fit):
# Loading the image into the cairo.
@ -253,6 +253,7 @@ def image(layer, win ,path, x, y, width=0, height=0, fit="crop", cell=0):
else:
load1 = GdkPixbuf.Pixbuf.new_from_file("settings/themes/"\
+win.settings["Theme"]+"/icons/blender.png")
os.remove("/tmp/vcstudio_blender_thumbnail"+part+".png")
@ -741,13 +742,14 @@ def text(outlayer, win, name, x, y, width, height, set_text="", parse=False, fil
# So here we draw the cursor
if editable:
UI_color.set(layer, win, "node_blendfile")
if win.text[name]["cursor"][0] == win.text[name]["cursor"][1]:
layer.rectangle(
win.text[name]["cursor"][0]*12+5 +offsetX,
5,
(win.text[name]["cursor"][1]*12)-(win.text[name]["cursor"][0]*12)+2,
30
)
if win.text[name]["cursor"][0] == win.text[name]["cursor"][1]:
if win.blink:
layer.rectangle(
win.text[name]["cursor"][0]*12+5 +offsetX,
5,
(win.text[name]["cursor"][1]*12)-(win.text[name]["cursor"][0]*12)+2,
30
)
else:
roundrect(layer, win,
win.text[name]["cursor"][0]*12+5 +offsetX,