New Custom Inventory: Scroll Arrows not working

Started by barefoot, Sun 20/02/2011 11:33:54

Previous topic - Next topic

barefoot

Hi

I am making a new Inventory Window and have looked for the following problem i am having:

The graphics I use are fine and the Inv Window, Look and Select buttons for the Inventory GUI all  work as they should except the Arrows.

I have a imported my own images for the Arrows and have set their button scripts like the Scroll down below and have in Events used 'RunScript'. Somehow it fails to works, naturally it is the same for the ScrollUp Arrow.. (I checked with original Inv Window and it looks fine from what I can tell).

Inv Window is set: Left 0 Top 377 and is 104 x 640 Button Name: btnInvDown2

I have put a few Inventory Items in while testing.

Z Order is 0.  I don't know if anything could be blocking it or weather i'm missing something?

Code: ags

function btnInvDown2_OnClick(GUIControl *control, MouseButton button)
{

  invCustomInv.ScrollDown();
}


I'm not sure what else I can say/show.

Thank you for any help if you can see / help with this problem

barefoot




I May Not Be Perfect but I Have A Big Heart ..

Khris

Quote from: barefoot on Sun 20/02/2011 11:33:54I have put a few Inventory Items in while testing.

Just to exclude this is as possible cause: you have put in more inv items than fit into a row, right?
And the functions are properly linked to the buttons' OnClick events?

barefoot

Hi Khris

I put in 5 inv items at 4 per row so should scroll down to see last one.

The events are RunScript and I have given the arrow button script as shown above.

Not sure why.. In the meantime I am playing with the original inv and that works ok.

I basically copied what was in Original Inv events. But arrows fail.

cheers

barefoot


I May Not Be Perfect but I Have A Big Heart ..

Khris

Debugging 101: Put a Display("It works"); in the button's function.

barefoot

Hi Khris

The Display works... but still not scrolling down..

cheers

barefoot
I May Not Be Perfect but I Have A Big Heart ..

SMF spam blocked by CleanTalk