Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: InGame scrollable window  (Read 1628 times)

0 Members and 2 Guests are viewing this topic.

bitano

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
InGame scrollable window
« on: April 07, 2015, 12:14:56 am »
Hi guys,

I want to have a scrollable window in my game (for instance to display an inventory).

I'd setup my own InvWindow class which will be part of my Gui class. For the scrollable part of the window i'm assuming i'd best use a separate sf::view to display the items in.

Is this assumption correct or is this the wrong way to go about?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: InGame scrollable window
« Reply #1 on: April 07, 2015, 12:19:49 am »
There are always multiple ways to achieve something.

Using a view should work just fine. :)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

bitano

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
Re: InGame scrollable window
« Reply #2 on: April 07, 2015, 12:21:39 am »
There are always multiple ways to achieve something.

Using a view should work just fine. :)

So very true. My main concern was whether this approach was actually a wrong one (since i want to do this right and am somewhat new to the views). But that doesn't seem to be the case so hurray!

Thanks :-D