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.

Code Snippets / [DBP] - New Mouse for your DBP games

Author
Message
Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 12th Apr 2012 23:05 Edited at: 4th Jun 2012 21:29
sup guys!
i made an alternative mouse function for your dbp games.
its fully controllable, easy to use, and only 1 function for your loop.

i also noticed that not many people familiar with CurveValue and CurveAngle commands of dbp.
they are really usefull! i made that mouse using them also.



Edit:
2nd version: added some draggable windows just like in Ubuntu.


Advanced Updater for your games!
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 22nd Apr 2012 23:30
OMG dude thats awesome and the clicking!!!!!!!

Mr Kohlenstoff
17
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Germany
Posted: 15th May 2012 18:53
Hehe, reminds me of this goo-ball-mouse of World of Goo.

And I didn't even know curveangle actually existed.... good to know, thank you. I've written this function over and over again since I was always to lazy to search and copy it to my new projects.
curvevalue however seems to be pretty much the same as usual linear interpolation of the form "current# = f#*new# + (1-f#)*old#", so I usually just use that formula instead.

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 2nd Jun 2012 17:57
hehe, cool

"You're not going crazy. You're going sane in a crazy world!" ~Tick
Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 4th Jun 2012 21:30
thanks guys!
here i added a quick new feature.. it uses Smooth window dragging, just like in ubuntu!

take a look:


Advanced Updater for your games!
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 5th Jun 2012 15:28
Yeah nice! Could do with some windows skidding to a halt.

Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 5th Jun 2012 19:26
@Pincho Paxton: good idea. i might do that.. thanks.

Advanced Updater for your games!
gwheycs62egydws
14
Years of Service
User Offline
Joined: 17th Aug 2009
Location: The World
Posted: 8th Jul 2012 05:49
@Sergey K

very impressive ;o)

I was thinking about click on role up / role down window

oo and some color to it

that I think I can do on my own

to move side ways - is to move forward
Since a Strait line gets thin fast
gwheycs62egydws
14
Years of Service
User Offline
Joined: 17th Aug 2009
Location: The World
Posted: 8th Jul 2012 06:13
my tweak to this

using the "Advanced2D" plugin

I had to change

CreateWindow to CreateWindowz
as it is a reserved word

the next part to be changed so I could color the line to the color I wanted was

line WindowList(a).PosX,WindowList(a).PosY,WindowList(a).PosX+WindowList(a).SizeX,WindowList(a).PosY,RGB(255,87,128)

to

a2Line WindowList(a).PosX,WindowList(a).PosY,WindowList(a).PosX+WindowList(a).SizeX,WindowList(a).PosY,RGB(255,87,128)

with a bit of work a color could be set before the window is built
so it's all the same color or just some of the lines color gets changed




to move side ways - is to move forward
Since a Strait line gets thin fast
Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 8th Jul 2012 18:10
@Resourceful: yeah i will make a color full chat system + tab system + scrool down/up and much more as soon as i fix my main pc. althought i will use the D3D plugin for those stuff.. i dont like the advanced2D plugin >_<

Advanced Updater for your games!
gwheycs62egydws
14
Years of Service
User Offline
Joined: 17th Aug 2009
Location: The World
Posted: 9th Jul 2012 02:25
@Sergey K

the only reason I went with "advanced2D plugin"
was because I could pick the color for the line
well in a limited way ;oP

I will look into the "D3D plugin" for color choices

to move side ways - is to move forward
Since a Strait line gets thin fast
gwheycs62egydws
14
Years of Service
User Offline
Joined: 17th Aug 2009
Location: The World
Posted: 9th Jul 2012 03:12 Edited at: 9th Jul 2012 03:25
@Sergery K

ok cloggy's dll in now in place for changing line color

it just needs a way to pick the color better since it uses 4 sets of numbers instead of 3



to move side ways - is to move forward
Since a Strait line gets thin fast

Login to post a reply

Server time is: 2024-04-19 17:06:46
Your offset time is: 2024-04-19 17:06:46