Game Maker Community: Vista Aero Windows! - Game Maker Community

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Vista Aero Windows! *UPDATED Yet again! Version 3!*

#1 User is offline   Recreate 

  • Programmer
  • Group: GMC Member
  • Posts: 2636
  • Joined: 05-April 08

Post icon  Posted 26 August 2009 - 08:10 PM

I made this mostly because i was bored and had nothing better to do.
There is another one of these floating around here, but its not too good, Here is my attempt.
It uses .png files for everything, external, I will put them in sprites later...
It uses a .png dll for alpha, so it will work in GM6.
Old Screenshot:
Posted Image
Other old Screenshot:
Posted Image

NEW Screenshot!
Posted Image
It contains 3 scripts, for initializing the system, drawing a window(relative to the drawing object's x,y) and minimizing a window
It also includes buttons, disables buttons, and a blur.(blur turned off in this screenshot...)
The blur slows down the same when you have several windows opened, so i added something to turn off blur if the game lags too much.
It can be disabled, All the (local) variables used are:
window_width_vwin//the width of the window
window_height_vwin//the height of the window
window_caption_vwin//the caption
window_icon_wvin//the sprite to use as the icon
window_in_x_vwin//don't touch this or any under \/
window_in_y_vwin
window_pressed_vwin
window_drag_vwin
window_mx_vwin
window_my_vwin//don't touch this or any above /\
window_bkalpha_vwin//the white rectangle's alpha
window_blur_vwin//true if blur is on
window_buttonsshow_vwin//true if you want the buttons to be drawn/shown
window_mindisable_vwin//true if the minimize button is disabled
window_maxdisable_vwin//don't touch this one, its not implemented
window_closedisable_vwin//true if the close button is disabled
window_minimized_vwin //FALSE if it is minimized
lagtest //i reccomend that you don't touch this one
checkforlag //true and it will check for lag, if not true...it wont

New Download V3:VWINv3.zip

Quote

OLD Example .GMK Download:Vistawindows2.zip(no mirrors this time)
Old Example .gmk

Quote

Download:Vistawindows.zip
Mirror 1:Rapidshare
Mirror 2:Mediafire
Mirror 3:Newppg

Video:Click Here

Enjoy
Comment about it and be sure to tell me any suggestions!
Thanks
~ReCreate

This post has been edited by Recreate: 27 August 2009 - 05:35 PM

0

#2 User is offline   Ryan-Phoenixan 

  • GMC Member
  • Group: GMC Member
  • Posts: 207
  • Joined: 29-July 04

Posted 26 August 2009 - 08:34 PM

It's not an exact Vista Aero copy yet, but at the same time, it looks good as it is now.
0

#3 User is offline   Recreate 

  • Programmer
  • Group: GMC Member
  • Posts: 2636
  • Joined: 05-April 08

Posted 26 August 2009 - 08:49 PM

thanks, I am working on glowing text now.
Anyways, What should i add to make it look more vista-like?
0

#4 User is offline   BBGaming 

  • Programmer
  • Group: GMC Member
  • Posts: 2092
  • Joined: 11-June 06

Posted 26 August 2009 - 09:17 PM

You call Hockeyflyer's "not too good", but yours has no functionality whatsoever? This is basically draws a border with translucent sprites. There's a huge number of complexities required to make this usable. Blur, dragability, depth sorting, buttons, dockability (if you want anything other than text), etc.

It's a decent experiment into drawing, but it's not enough. Especially since it uses a dll file. Sorry.
0

#5 User is offline   Jangos_Legacy 

  • GMC Member
  • Group: GMC Member
  • Posts: 400
  • Joined: 15-February 07

Posted 26 August 2009 - 09:25 PM

Why use a PNG dll when you could use sprite_add_alpha()?
Oh, just read it's for GM6.
Why not just do it in GM7 with the built in features?

This post has been edited by Jangos_Legacy: 26 August 2009 - 09:26 PM

0

#6 User is offline   Newly Discovered 

  • Harmonious Genius
  • Group: GMC Member
  • Posts: 2216
  • Joined: 14-October 05

Posted 26 August 2009 - 09:34 PM

your glass effect doesn't even do anything.
do you know what vista looks like?
0

#7 User is offline   Recreate 

  • Programmer
  • Group: GMC Member
  • Posts: 2636
  • Joined: 05-April 08

Posted 26 August 2009 - 09:36 PM

View PostB&B_Gaming, on Aug 26 2009, 04:20 PM, said:

You call Hockeyflyer's "not too good", but yours has no functionality whatsoever? This is basically draws a border with translucent sprites. There's a huge number of complexities required to make this usable. Blur, dragability, depth sorting, buttons, dockability (if you want anything other than text), etc.

It's a decent experiment into drawing, but it's not enough. Especially since it uses a dll file. Sorry.

Well...The shadows look kind of bad...no...very bad...it is very slow(5FPS), But i did not mean that.
Anyways, all those features are being planned, i already got glowing text and dragability, depth sorting is next, and buttons should be really easy, about dockability, that should be easy too.

Quote

Why use a PNG dll when you could use sprite_add_alpha()?
Oh, just read it's for GM6.
Why not just do it in GM7 with the built in features?

If i did, It would Not be GM6 Compatible.
That is why i used the dll, If you want you can use the GM7 Functions.
0

#8 User is offline   Newly Discovered 

  • Harmonious Genius
  • Group: GMC Member
  • Posts: 2216
  • Joined: 14-October 05

Posted 26 August 2009 - 10:35 PM

I took the liberty of helping:
http://www.poofuploa...oads/232771.gmk

glowing caption text (with a nicer font - screw window's default, it's a bad choice)
draggable windows (windows are also constrained to stay within the room)
easier way to draw the text on the window (I added an in_x and in_y variable that starts at the 0,0 position from the inside area of the window)
(check your scripts, I added vwin_step for window constraint, dragging, and some variable handling)

I didn't add depth sorting, but I can. I didn't because it would take about 20 minutes, and I'm starving.
after I'm finished eating a few bowls of chili, I'll come back and throw it in.

This post has been edited by Newly Discovered: 26 August 2009 - 10:36 PM

0

#9 User is offline   Recreate 

  • Programmer
  • Group: GMC Member
  • Posts: 2636
  • Joined: 05-April 08

Posted 26 August 2009 - 10:52 PM

Ah...I already got all of that stuff working too...
Edit: I will definitely use your dragging code, its better than mine :mellow:

Quote

your glass effect doesn't even do anything.
do you know what vista looks like?

I am Working on making it more realistic, and yes, i do know what it looks like.
Edit: Update read first post!

This post has been edited by Recreate: 26 August 2009 - 11:49 PM

0

#10 User is offline   Newly Discovered 

  • Harmonious Genius
  • Group: GMC Member
  • Posts: 2216
  • Joined: 14-October 05

Posted 27 August 2009 - 12:51 AM

I strongly suggest changing your glow to the one I used. It's faster and it looks A TON better.
as for your depth. make a global.depth variable.
when you click any window, global.depth+=1. with the window you click, change it's depth to global.depth.
global.win_depth-=1
depth=global.win_depth

I changed your get mouse click to mouse_check_button_pressed...it made more sense.
now all you need is to check if you're over the top window, not over the ones behind.

This post has been edited by Newly Discovered: 27 August 2009 - 12:55 AM

0

#11 User is offline   Recreate 

  • Programmer
  • Group: GMC Member
  • Posts: 2636
  • Joined: 05-April 08

Posted 27 August 2009 - 02:22 AM

Your glowing text only glows the first half of the whole text, not the whole thing, have you noticed that?
Also...I don't quite get what you mean about the depth thing...
I got Blurring working now, And a lag test, if the game lags too much, it will turn blurring off.(funny how vista itself doesn't do that :mellow:)
0

#12 User is offline   Newly Discovered 

  • Harmonious Genius
  • Group: GMC Member
  • Posts: 2216
  • Joined: 14-October 05

Posted 27 August 2009 - 03:23 AM

I already fixed the depth in mine. and what do you mean it only glows the first half of the whole text. it's glowing everything on my side.
Posted Image
0

#13 User is offline   Recreate 

  • Programmer
  • Group: GMC Member
  • Posts: 2636
  • Joined: 05-April 08

Posted 27 August 2009 - 04:28 AM

Hmm...Perhaps it uses a method for creating the glow that does not work on all PC's?
What i meant is that not all the text glows, only the first half.
Also, Can you show me how you did the depth...mine is kind of...buggy...
Edit: I am also working on the caption buttons right now, you can disable buttons, disable certain buttons, and stuff like that.

This post has been edited by Recreate: 27 August 2009 - 04:29 AM

0

#14 User is offline   Newly Discovered 

  • Harmonious Genius
  • Group: GMC Member
  • Posts: 2216
  • Joined: 14-October 05

Posted 27 August 2009 - 04:41 AM

here you go:
http://www.poofuploa...ads/1345299.gmk

depth sorting.
global depth.
also, you cannot click on more than one window at a time, even if they're stacked.
0

#15 User is offline   Recreate 

  • Programmer
  • Group: GMC Member
  • Posts: 2636
  • Joined: 05-April 08

Posted 27 August 2009 - 05:56 AM

Nice, Will use the depth code, But the glow is not right.Posted Image
I got the blur working(as i said) but it is very slow, i am working on making it faster...
Edit:Maybe i can't use your depth code...oh well.

This post has been edited by Recreate: 27 August 2009 - 05:59 AM

0

#16 User is offline   Mayhem Games 

  • GMC Member
  • Group: GMC Member
  • Posts: 225
  • Joined: 05-April 07

Posted 27 August 2009 - 09:37 AM

Sweet!
0

#17 User is offline   Recreate 

  • Programmer
  • Group: GMC Member
  • Posts: 2636
  • Joined: 05-April 08

Posted 27 August 2009 - 04:13 PM

Thanks <_<
Here is a screenshot of what i got so far...The buttons should have alpha in aero...so i am working on that right now. :unsure:
Posted Image(the reason i am using an image the the bk is so that you can easily notice the blur and transparency.)
The buttons are a bit...buggy...I am going to continue working on them today ;)
Edit: Fixed, Version 3 added!
See first post!

This post has been edited by Recreate: 27 August 2009 - 05:36 PM

0

#18 User is offline   Newly Discovered 

  • Harmonious Genius
  • Group: GMC Member
  • Posts: 2216
  • Joined: 14-October 05

Posted 27 August 2009 - 06:58 PM

well, the update is a step in the right direction; however, I don't understand why you cannot use my depth code? I set it in your example myself.
to be frank, I not only did that, but I completely revamped every part of the engine. I even added a better interface which uses a much smaller image.

it includes everything yours does, other than win buttons and a blur, and then some. my depth works, my dragging works (without dragging more than one window), and my glow works, which is now a shadow rather than a glow.

if you don't want to use these things, I don't understand why, because they're only making it better. but...it's your gui, do what you want.
I think I'll take a stab at the blurring.
0

#19 User is offline   Recreate 

  • Programmer
  • Group: GMC Member
  • Posts: 2636
  • Joined: 05-April 08

Posted 27 August 2009 - 07:11 PM

Well...The depth requires several objects...kind of defeats the purpose of the whole thing, It was originally meant to be used with some scripts, Not a ton of objects, and the 3 objects that are there are an exception, each object represents a window.
Go ahead and take a stab at blurring, mine is a bit slow...
0

#20 User is offline   Newly Discovered 

  • Harmonious Genius
  • Group: GMC Member
  • Posts: 2216
  • Joined: 14-October 05

Posted 27 August 2009 - 08:32 PM

the depth only uses one object, the controller. the rest of the depth sorting is within the window's step script.
I completely rewrote the entire gui, all of the scripts, etc. and I even changed the drawing code. It uses a sprite for the window and one for the shadow.
I opened a blank gmk and made a blur, then set it up to work when I used draw_surface_part so I could draw only behind the window.
I finished it, put it in the gui, and it wasn't working right. the windows were refreshing overtop of the blur, so it pretty much erased the blur. after about 10 minutes of playing with the drawing order of the two, I came up with this:
Posted Image

I'm getting 60/60 fps.
I turned up the room speed and got a max of 63/999 fps. But it's a blur, come on! It can't be that fast.

This post has been edited by Newly Discovered: 27 August 2009 - 08:36 PM

0

Share this topic:


  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users