Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   useasgui() ? (https://forums.graalonline.com/forums/showthread.php?t=75344)

killerogue 07-13-2007 10:22 PM

useasgui() ?
 
I was thinking (this would also solve Knight's issues with using different types of gui layouts for gui controls) what if we had a useasgui() function? Where in the params you must specify by string and x and y on the image how which part of the image should be used. :o

Inverness 07-14-2007 11:56 AM

Wtf are you talking about? There are already variables for showing only parts of images if thats what you mean.

Twinny 07-14-2007 02:44 PM

Do you want to make a zombie gui from different sources? x_x

zokemon 07-14-2007 10:25 PM

I think he's talking about the layout in a GUI profile bitmap. How would you implement this kind of function though Stan? Like what object(s) would have it?

killerogue 07-15-2007 03:06 AM

Well, I was meaning in terms of making any part of a regular image and having it able to be used as a gui. Like take for example, an image you want to use as you would gui but it cannot fit within the gui profile bitmap outline.

I figure it'd be something like

showimg(100, "block.png", player.x, player.y).useasgui(5, 5, 10, 10);

First two params as starting coordinates and last as width, height. I'm probably giving a bad example.

But a best explanation would just be, taking an image that can't fit within the normal gui profile bitmap sizes and using it almost like a gui window along with the functions available to it. Edit: Such as being able to resize it and stretch the chosen piece of image.

Ugh, I suck at explanations.

Inverness 07-15-2007 03:46 AM

GuiShowImgCtrl

?

GuiStretchCtrl

?

zokemon 07-15-2007 04:12 AM

You can move those red lines on profile bitmaps Stan. There should be an example of how I did it on Maloria with the Maloria GUIs.

killerogue 07-15-2007 04:29 AM

Quote:

Originally Posted by zokemon (Post 1330529)
You can move those red lines on profile bitmaps Stan. There should be an example of how I did it on Maloria with the Maloria GUIs.

I'll have to take a look later. I didn't know you could do that. :o Of course. Something else I was trying was to try and use an image that didn't fit within the normal sizes of the gui window profile bitmap. But Inverness pointed out stretch and showimg ctrls. :P Thanks anywho.

Well, I'm done with suggestions.

Also, thanks Zero.

Inverness 07-15-2007 04:30 AM

Quote:

Originally Posted by zokemon (Post 1330529)
You can move those red lines on profile bitmaps Stan. There should be an example of how I did it on Maloria with the Maloria GUIs.

I didn't know that :(

zokemon 07-15-2007 04:38 AM

Quote:

Originally Posted by killerogue (Post 1330531)
I'll have to take a look later. I didn't know you could do that. :o Of course. Something else I was trying was to try and use an image that didn't fit within the normal sizes of the gui window profile bitmap. But Inverness pointed out stretch and showimg ctrls. :P Thanks anywho.

Well, I'm done with suggestions.

Also, thanks Zero.

Not a problem. ;)


All times are GMT +2. The time now is 05:59 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.