Search found 11 matches

by Silver Ankh
Thu Jan 25, 2018 8:27 pm
Forum: Support and Development
Topic: love.graphics.print( coloredText ) question
Replies: 7
Views: 713

Re: love.graphics.print( coloredText ) question

I'm very pleased to write with you, but I think we do not understand each other because of my bad english. Sorry, I'm trying hard ;) However. The following two have the same result: love.graphics.print({green, "TEXT"}, 10, 10) And love.graphics.setColor(green) love.graphics.print("TEXT", 10, 10) Hmm...
by Silver Ankh
Wed Jan 24, 2018 12:58 am
Forum: Support and Development
Topic: love.graphics.print( coloredText ) question
Replies: 7
Views: 713

Re: love.graphics.print( coloredText ) question

erasio wrote:
Sun Jan 21, 2018 12:07 pm
Well. It actually is doing exactly the same!
Not exactly I think.

Code: Select all

love.graphics.setColor(green)
love.graphics.print({blue, "TEXT"}, 10, 10)
is not the same as:

Code: Select all

love.graphics.setColor(green)
love.graphics.setColor(blue)
love.graphics.print("TEXT", 10, 10)
This is what I mean.
by Silver Ankh
Wed Jan 24, 2018 12:16 am
Forum: Support and Development
Topic: io.open() question
Replies: 4
Views: 415

Re: io.open() question

@zorg
Thanks for the explanation!
by Silver Ankh
Tue Jan 23, 2018 6:08 pm
Forum: Support and Development
Topic: io.open() question
Replies: 4
Views: 415

Re: io.open() question

Is working for me. I used io.open and file:lines.
Now I found love.filesystem.lines :awesome:
I'll change this in my app for better consistency.
Thank you!
by Silver Ankh
Tue Jan 23, 2018 5:19 pm
Forum: Support and Development
Topic: io.open() question
Replies: 4
Views: 415

io.open() question

I have two directories: [LOVE2D directory] and [App directory] . When I start app from LOVE2D directory using love.exe "App directory" , for every newImage, newSource, newFont etc. current directory is [App directory] , only for io.open current directory is [LOVE2D directory] . Is this OK? Seems to ...
by Silver Ankh
Sat Jan 20, 2018 8:40 pm
Forum: Support and Development
Topic: love.graphics.print( coloredText ) question
Replies: 7
Views: 713

Re: love.graphics.print( coloredText ) question

I expected coloredText option for print do the same as setColor (for the moment). Now I understand is not. Thank you!
by Silver Ankh
Sat Jan 20, 2018 7:08 pm
Forum: Support and Development
Topic: love.graphics.print( coloredText ) question
Replies: 7
Views: 713

love.graphics.print( coloredText ) question

I have a program (v0.11): local green = {0, 1, 0, 1} local blue = {0, 0, 1, 1} local white = {1, 1, 1, 1} function love.draw() love.graphics.setColor(green) -- something -- love.graphics.setColor(white) love.graphics.print({blue, "TEXT"}, 10, 10) end Text is not printed in blue unless color will be ...
by Silver Ankh
Mon Jan 01, 2018 5:08 pm
Forum: Support and Development
Topic: BUG in touch/mouse callbacks on Windows
Replies: 4
Views: 608

Re: BUG in touch/mouse callbacks on Windows

davisdude wrote:
Mon Jan 01, 2018 4:50 pm
You can use the isTouch parameter for mousepressed/released to determine if it originated as a touch or click.
You probably don't understand what I mean. I can't use isTouch parameter because love.mousepressed() is NOT triggered when I touch the screen. Is triggered in other, wrong moment.
by Silver Ankh
Mon Jan 01, 2018 4:58 pm
Forum: Support and Development
Topic: BUG in touch/mouse callbacks on Windows
Replies: 4
Views: 608

Re: BUG in touch/mouse callbacks on Windows

love uses SDL for input, and SDL's touch/mouse event code on Windows uses Microsoft's Windows APIs pretty directly. This might be an issue with Windows or your touchscreen's drivers. OK, love.touchpressed() and love.touchreleased() working fine, I can use them for touch instead of mouse callbacks, ...
by Silver Ankh
Mon Jan 01, 2018 4:04 pm
Forum: Support and Development
Topic: BUG in touch/mouse callbacks on Windows
Replies: 4
Views: 608

BUG in touch/mouse callbacks on Windows

When touch is RELEASED two callbacks are triggered: love.touchreleased() and love.mousereleased() and it seems to be OK,but when touch is PRESSED only love.touchpressed() is triggered, however love.mousepressed() is triggered when touch is moved or when touch is released (together with love.mouserel...