![]() |
Some Gui problems
Well, I'm setting up an Inventory on Maloria, and there's obviously an area there with the slots for the item icons. It's a 4x6 grid, basically, and there' up/down page buttons. So I have this function to show the items for the page:
PHP Code:
Help. :< |
h and w should both be temp variables.
And use the F2 window (echo) rather than player.chat. Because most likely all the loops are being completed so fast player.chat only shows the last result. |
Okay, I did change them to that, but I also figured out why that's happening. It has to do with the chat system on Maloria, so there's nothing wrong with the for loops. However, the icons are showing in...odd places.
Here's what I have now: PHP Code:
|
Quote:
|
Quote:
|
The icon coords, are you taking them into consideration from the inventory itself?
Like before the loop get the x and y of the inventory object etc.. |
The loop is determining the coordinates though o.0
|
Quote:
|
Hmm, then my guess is, you're not giving them a coordinate in the Inventory control? I'm not used to use the inventory itself as an gui control.. I just use an image and then a for() loop and place them on the image itself..
and I use another method for placing them (Thanks Contiga for that one :p) PHP Code:
PHP Code:
|
Thanks Chompy...well now I'm having problems with dragging the icon around. Here's what I have:
PHP Code:
By the way, Chompy, where the hell have you been? You haven't been on Maloria in forever. D: |
Quote:
I'm switching to a faster modem tomorrow, because our current one just plainly sucks.. I think my current modem is run by teletubies =/ |
Quote:
|
Quote:
And Zeo, you said you fixed it when you were on RC, but you didn't D: |
Quote:
|
Quote:
It worked for me atleast xD |
Quote:
And Chompy wtf, it works the same as before for me...I already tried exactly what you did, which was use mousescreenx and mousescreeny and it didn't change anything...D: |
Quote:
|
Quote:
Anyways, I signed back on and it suddenly works, so wtf o.o |
Quote:
It works only for an even grid (like your 6x6 example) So i changed the y to: PHP Code:
PHP Code:
|
| All times are GMT +2. The time now is 10:08 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.