Author Topic: Determining size of GUI  (Read 1258 times)

kap42

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Determining size of GUI
« on: August 04, 2014, 11:39:39 AM »
I've got a very simple GUI in my game. It's just a panel on the left side of the game screen, covering about one sixth of the screen. I want to be able to determine how wide the panel is, and I want it in the the same coordinates that I use for the game, so that I can stop the game from scrolling too far (the scrolling should stop once the left edge of the level reaches the right edge of the panel).

It's probably pretty simple, but I've yet to get it to work. Any help would be appreciated!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Determining size of GUI
« Reply #1 on: August 04, 2014, 11:50:03 AM »
NGUIMath.Calculate series of functions