![]() |
Q weapons list replacement
I am trying to make a new menuing system for a playerworld that is comming up.. and i have run into a snag, i cannot find any threads on it either, i wouldnt know where to look.
i am trying to create a list of items in a sub-menu similar to how the layout of the original Q list works, images getting cut off on the bottom, but stil showing at least a little bit. i know how to get the rest of it done, but its the image cutting off that is giving me a hard time, can anyone help with maybe either a sample script or some commands that would work? thank you, i would post what i have so far, except i am too afraid they would get stolen and put on other playerworlds. Thanks in advance! Mortur |
Andor has same thing their NAts might help
|
You could be able to use changeimgpart, although there's no way of finding out the height and width of an image, so you'd probably have to make all of them the same size.
|
Thats what i was afraid of.. making them all the same size... either that or just do a text scroll.. and showing the image on the side... when the cursor comes on it...
|
Quote:
|
Here is an example for a custom one .. if you want to make the bags (like sub menus ill xplain after the script)
NPC Code: thats like a custom weapon inv. if u want the bag its simple .. you would do like NPC Code: that would make a bag called Tools with a weapon called Hammer in it .. but when you use stuff like if (hasweapon(Tools/Hammer)) make sure to include the subdir.. ok have fun ;) (btw my weapon system doesnt work with sub dirs .. i should make something like it ..I would but im not going to use it so I would just waste my time .. ;P) |
Your problem probably isn't that images are getting cut off, but that they're all drawing on the same layer. Try using a lower layer for the background of the menu and higher layers for the weapon images.
(by layers I mean using changeimgvis of course) |
The problem is that i WANT them to get cut off at a certin point... just like the Q menu...
but i dont think it can be done.... not at least without some super major scripting.... i could do it, but is it worth it? i dont know. I think i will stick with another idea, and have it with text and have the icon of the weapon apear on the side of it. |
You CAN'T make a custom Q menu like the current one. There is no way to get the width and height of the NPC Image. You CAN however make the NPC's cut off. Just loop through each weapon and if it is below or above a certain point, find how much it extends out and use changeimgpart to correct it.
|
Quote:
|
Quote:
|
There is away to do it with a 2 layer menu, and the menu items apear between sandwiched and can only be seen through the hole in the upper one. but i think that would be too buggy, and i dont believe anyone has tried that before, so i am not going to waste my time on making it and find out it lags like crazy.
Thanks for all the help everyone!:D |
| All times are GMT +2. The time now is 07:52 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.