Not logged in
Register | Login

Menu:

Game Maker Extensions Menu:

av. 9/10 | Who rated

Credit to DFortun81

Downloads: 2134

Tags:

Get a refer button for this extension!

BBcode

html [example]
download
[download]

WinSkin

Posted by DFortun81 on July 20, 2007

This is an extension that adds RMXP's window skin capabilities to Game Maker. In RMXP, a "window" is created using a single background, the same is now possible for GM. WinSkin provides easy to use Window skinning and you can even modify some of the settings.

An example is provided in the main download. If you have any further questions pertaining to this extension, please post your question or PM it to me.

WinSkin takes a background that looks like this:
User submitted image

And can turn it into something like this if you get good enough: (NOTE: Different Window skin used in this picture)
[view image]

Functions List:
To Initialize:
winskin_init(fillalpha, borderalpha, tilesides, tilefill, winskin);
winskin_set_tile_sides(tilesides);
winskin_set_fillalpha(alpha);
winskin_set_tile_fill(tilefill);
winskin_set_borderalpha(alpha);
winskin_set_winskin(back);

To Draw:
draw_arrow_down_skinned(x, y);
draw_arrow_left_skinned(x, y);
draw_arrow_right_skinned(x, y);
draw_arrow_up_skinned(x, y);
draw_continue_skinned(x, y);
draw_pointer_skinned(x, y, animate, xscale, yscale);
draw_selectionbox_skinned(x1, y1, x2, y2);
draw_selectionbox_skinned_ext(centerx, centery, w, h);
draw_window_skinned(x1, y1, x2, y2);

To Animate:
winskin_step();

To Access Settings:
winskin_get_tile_sides();
winskin_get_tile_fill();
winskin_get_fillalpha();
winskin_get_borderalpha();
winskin_get_winskin();

    

» Add a Screenshot


Functions:

winskin_init(fillalpha, borderalpha, tilesides, tilefill, winskin)

Initializes WinSkin.

winskin_set_tile_sides(tilesides)

Tells WinSkin to tile sides of the windows or not.

winskin_set_fillalpha(alpha)

Tells WinSkin what the fill's alpha property should be.

winskin_set_tile_fill(tilefill)

Tells WinSkin to tile the fill of the windows or not.

winskin_set_borderalpha(alpha)

Tells WinSkin what the border's alpha property should be.

winskin_set_winskin(back)

Tells WinSkin what background to use as the skin should be.

draw_arrow_down_skinned(x, y)

Draws the "Down" arrow.

draw_arrow_left_skinned(x, y)

Draws the "Left" arrow.

draw_arrow_right_skinned(x, y)

Draws the "Right" arrow.

draw_arrow_up_skinned(x, y)

Draws the "Up" arrow.

draw_continue_skinned(x, y)

Draws the Continue image.

draw_pointer_skinned(x, y, animate, xscale, yscale)

Draws the Pointer image. (Also called Cursor.)

draw_selectionbox_skinned(x1, y1, x2, y2)

Draws a selection box from x1, y1 to x2, y2.

draw_selectionbox_skinned_ext(x, y, w, h)

Draws a selection box centered at x, y.

draw_window_skinned(x1, y1, x2, y2)

Draws a Window from x1, y1 to x2, y2.

winskin_step()

Animates certain images used by WinSkin. (Use ONLY 1 time per object per step.)

winskin_get_tile_sides()

Returns whether WinSkin is tiling the sides.

Returns tilesides?

winskin_get_tile_fill()

Returns whether WinSkin is tiling the fill.

Returns tilefill?

winskin_get_fillalpha()

Returns the alpha property for the fill.

Returns fillalpha

winskin_get_borderalpha()

Returns the alpha property for the border.

Returns borderalpha

winskin_get_winskin()

Returns the background currently used as a skin.

Returns background id





You not logged on! It is recommended you logon before commenting so we can tell who you are!

Comments:

9:49pm, 20 Jul 2007
Jonah

OMG, this, is, AWESOME! I actually had to change the second image into a link because it was breaking the layout in Internet Explorer 6. I also re-cached the images so if the referral image didn't work before (if you tried it) it should work now.

Thanks for uploading anyways

8:26pm, 23 Jul 2007
Schyler

This is pretty cool.