Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / VirtualButton are always Squares?

Author
Message
ghzero
6
Years of Service
User Offline
Joined: 13th Jun 2017
Location: Germany
Posted: 17th Sep 2017 09:42
is it possible to have VirtualButton which are recktangle(different size in width and height)
instead of square with same pixel size in width and height,
or are VirtualButton only possible as Squares?

my question based on the need to create menufields to let the user do choises.
the menufields i prefer are rectangle - widther than heigh.
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 17th Sep 2017 10:06 Edited at: 17th Sep 2017 10:11
SetVirtualButtonSize( index, sizeX, sizeY )

alternative use a sprite and
GetPointerPressed ()
GetSpriteHitTest ( iSpriteIndex, x, y )
AGK (Steam) V2017.08.16 : Windows 10 Pro 64 Bit : AMD (17.7.2) Radeon R7 265 : Mac mini OS Sierra (10.12.2)
ghzero
6
Years of Service
User Offline
Joined: 13th Jun 2017
Location: Germany
Posted: 17th Sep 2017 10:17 Edited at: 17th Sep 2017 15:07
thank you very much.

my mistake was: I was only looking on the parameters that are viewed after type setVirtualButtonsize
which told me :
Integer index, Float size

now I noticed that arrow on left side which can me show more optional parameter:
Integer index, Float sizex, Float sizey

best regards and thank - to early for me on this sunday

example with (re)size of virtualbuttons 4 ppl who found this thread:

Login to post a reply

Server time is: 2024-04-18 09:16:38
Your offset time is: 2024-04-18 09:16:38