Logic Blocks - question / suggestion?

Q&A about the latest versions
Post Reply
domel
Posts: 14
Joined: Fri May 25, 2018 6:24 pm

Logic Blocks - question / suggestion?

Post by domel » Tue Jul 10, 2018 1:26 pm

Hi all,
i was wondering if it's possible, (and if not could it be implemented in the future),
to have 'size' or 'position' change using logic blocks to change pixels to percentage as well?

i've found some work around from 2015, but it seems to be highly over-complicating what otherwise would be only changing pixels to percents in the dropdown menu in logic block settings (from user's point of view... not sure how difficult that would be to implement)

thanks,
dom

User avatar
Hopki
Gnome
Posts: 8454
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Re: Logic Blocks - question / suggestion?

Post by Hopki » Fri Jul 13, 2018 1:23 pm

Hi dom,
Whats your use case?
Some elements work better if you just use scale or size/position with player width.
However things like popup images work better with percentage.
I say this because this has come up before and I don't think its that easy to do if at all.
But as always if there is a good use case I can create a feature request.
Cheers,
Hopki

domel
Posts: 14
Joined: Fri May 25, 2018 6:24 pm

Re: Logic Blocks - question / suggestion?

Post by domel » Fri Jul 13, 2018 3:04 pm

Hi Hopki,
That's what i was afraid of... just hoping it might not be that difficult, but as usual, it looks easier from outside.

My case is the size of iframe loading into a text window. for the big screens/resolutions it has a fixed size of 800x400px,
then if screen is less then 800 then it stacks two columns (of 400px each) on top of each other (but showing only 400x400 with a scrollbar), with the bottom column having an adjustable height depending on the amount of text in it...

the problem i'm getting is when opening it on mobile device - it's all fine in portrait mode, but switching to landscape the window is too big with few lines disappearing at the bottom of the screen. so then rather then using pixels would prefer to switch to like 80% so i'm sure it fits on the screen.

hope it makes sense.
dom

User avatar
Tony
Posts: 493
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Re: Logic Blocks - question / suggestion?

Post by Tony » Sun Jul 15, 2018 3:09 am

Hi Hopki,

I'm running into the same issue where I need to go from a pixel based positioning to a percentage based display. The only way I've found to do it now is to have two elements with the same image, one pixel positioned the other percentage positioned and visually swap one for the other.

What I'd like to do is to have a popup open an container, to a fixed position and size, on the canvas. The container would contain text, an image etc. Clicking on the image would have it zoom, from it's original position, up to fullscreen and be responsive to changes in the browser window size. Clicking on the fullscreen version would scale it down back to the original pixel dimensions.

Here's an example using the two image version. Unfortunately I don't know a way to have it appear as though it's the original image zooming.

https://s3-ap-southeast-2.amazonaws.com ... index.html

Here's the skin

Fullscreen_image.zip
(7.43 KiB) Downloaded 7 times
I'm hoping you may have an alternate way to do it :D

Cheers,

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: http://tonyredhead.com - http://redsquare.com | roundme: http://round.me/@tonyredhead | instagram: https://www.instagram.com/tonyredhead/

Post Reply

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot], Google [Bot] and 20 guests