Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: UltraTM on September 08, 2014, 12:47:38 PM

Title: Need help with an Bag for an MMORPG Game
Post by: UltraTM on September 08, 2014, 12:47:38 PM
Hello @ all :)

I got an problem with NGUI.

I need to have an bag for my game.

so the code is basicly i have a panel and an background for it.
also i have an Close button in the window.

Then i have an item inside which is the base item.
this item gets cloned via an code to generate the item count which my bag has.


My problem is that i cant get the bag slots with the background centerd :(

Also cant get it work that the Close Button and other stuff is always for an example in the top right corner when the window is getting resized.


I attach some Screenshots.
and hope someone could help.

Playing now since 3 hours around and cant get this worked :(
Title: Re: Need help with an Bag for an MMORPG Game
Post by: sandolkakos on September 08, 2014, 01:22:38 PM
You can to use the Anchors to keep your Elements positioned according another ones.

Get a look in this tutorial:
https://www.youtube.com/watch?v=GIpccFRIXmo
Title: Re: Need help with an Bag for an MMORPG Game
Post by: UltraTM on September 13, 2014, 04:10:04 AM
Ok fixed it now :)

thanks for the help