SFML community forums

Help => General => Topic started by: bitano on April 07, 2015, 12:14:56 am

Title: InGame scrollable window
Post by: bitano 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?
Title: Re: InGame scrollable window
Post by: eXpl0it3r on April 07, 2015, 12:19:49 am
There are always multiple ways to achieve something.

Using a view should work just fine. :)
Title: Re: InGame scrollable window
Post by: bitano 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