Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Two more window/bitmap concerns

Okay, what I'm trying to do here is code an item selection system where the items are represented by pictures and scroll horizontally, like in Silent Hill 2. The thing is, I don't want the window background around it; ie, with self.windowskin = nil. But there are two problems:

1) The "border" around the window remains active; any window.content within 16 pixels of the edge of the screen is hidden, and

2) The cursor_rect disappears as well, along with the windowskin!

Is there any way to dispose of the border so that window content can be right up against the edge of the screen, and is there any way to keep the cursor_rect without keeping the whole background of the window?

(I tried making the background an "empty" graphic, but the cursor disappears then too.)

Screenshots follow. (Please don't criticize the atrocious appearance of everything. I'm trying to make it work, then I'll make it look good!)

Screen1: without self.windowskin = nil
Screen2: with self.windowskin = nil
Screen3: What I want it to look like! (haxx0red screenshot)
 
Wow. You solved the problem with 1 line.

Well, one of the problems. :P There's still the issue of the border ... I managed to make a work-around by specifying the left edge of the window as -16, so the border is outside the screen, but is there a better way to achieve the same thing?
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top