Author Topic: Need help with an Bag for an MMORPG Game  (Read 2079 times)

UltraTM

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 5
    • View Profile
Need help with an Bag for an MMORPG Game
« 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 :(

sandolkakos

  • Newbie
  • *
  • Thank You
  • -Given: 16
  • -Receive: 1
  • Posts: 17
    • View Profile
Re: Need help with an Bag for an MMORPG Game
« Reply #1 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

UltraTM

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: Need help with an Bag for an MMORPG Game
« Reply #2 on: September 13, 2014, 04:10:04 AM »
Ok fixed it now :)

thanks for the help
« Last Edit: September 13, 2014, 09:43:09 AM by UltraTM »