![]() |
Need help with Health GUI.
I have a main GUI that doesn't have the health bar as apart of the image, so i can try to edit the health separately, well the problem is, if i create a new GUIshowimgCtrl for the health, it overlaps the main GUI it's supposed to be apart of and makes it look weird. Does anyone have any suggestions I can use to help fix this?
edit: if something doesn't make sense, let me know. |
Provide your images, the code you're using to draw it, and what it looks like when it's drawn.
|
2 Attachment(s)
PHP Code:
|
Use the partx/party/partw/parth to modify the dimensions of the subimage you're using. If you made that script you'll understand how to use them. If not check the documentation (if it exists).
|
there is wiki on it, but it doesn't say much:
http://wiki.graal.net/index.php/Crea...lient/TShowImg partx: float party: float etc.. |
Quote:
|
Quote:
http://forums.graalonline.com/forums...hp?t=134265659 You need to isolate the bar image, and display it over the main GUI. After you've isolated the bar image, adjust the x and y of the bar GUI until it's in the right position. Then you can modify the partw depending on your health's ratio. I.e: partw =(hp / hpmax) * bar_width; |
In some ways they are, just wish they had a bit more to them is all. but that's just me. ;p
edit: oh and if i read his post correctly, it was what SSSSSS wanted, but in reverse, i wanted one GUI on top of the other. otherwise it looked funny because the health bar would be on top of the other GUI parts even with the partx, party, edit. Although guys i do thank you anyway ;p i figured out what i needed to do, and you guys answered other questions i had that i was gonna ask later anyway, thanks again :D |
| All times are GMT +2. The time now is 01:14 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.