Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: GUI fixed elements on the screen  (Read 2700 times)

0 Members and 1 Guest are viewing this topic.

Ennio

  • Lurker
  • *
  • Karma: 2
  • Offline Offline
  • Posts: 40
    • View Profile
GUI fixed elements on the screen
« on: January 18, 2012, 09:55:49 AM »

So here we are with my daily question  :D

What about fixed elements on the screen (like GUI object)? If my scene is 1024x768 and my main layer is 2000x768...how can i show a window (or something) that "follow" the scene scroll and remain visible and at its position, wherever the actor it's going?

I thought that i can add a new layer (GUI layer 1024x768) to all my scenes, with highest z-index, where i load all my gui-window. Could be right solution?
Logged

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: GUI fixed elements on the screen
« Reply #1 on: January 18, 2012, 01:32:33 PM »

you have two options. Either create a layer 1024x768 in scene editor, or use a window object. It would depend on the fact if such GUI should be universal (for more scenes) or only in a single scene. If you will have one global gui, I'd definitely recommend using window object because

1: you don't have to recreate it in every scene
2: you cut down loading times because the window is loaded only once
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

Ennio

  • Lurker
  • *
  • Karma: 2
  • Offline Offline
  • Posts: 40
    • View Profile
Re: GUI fixed elements on the screen
« Reply #2 on: January 18, 2012, 02:14:31 PM »

Good :D Thank you!
Logged
 

Page created in 0.044 seconds with 20 queries.