Is there any shortcut for testing BASS UI on game made with Sierra style UI

Started by Barn Owl, Tue 15/04/2025 23:49:53

Previous topic - Next topic

Barn Owl

Edit: I may have figured out the way to do this, exporting and importing the GUIs from the BASS, after already having replaced the global script. I think that might do it.

Edit 2: No that didn't work. Why didn't I back up my game before trying that? Just kidding, everything is backed up.

Edit 3: Solved. Its not that arduous of a process.


Hey all,

I've made a lot of progress on creating a bizarre adventure here. Having a grand old time.

The Sierra style UI was what I grew up with and continue to love. So at the beginning I chose that option from the start wizard. However, now that the game is coming to life, I think the BASS style might be better suited for this game... despite having already hand drawn all of the Sierra style GUIs, hah.

Of course there's the long way of starting a new project, choosing BASS, and exporting/importing all scripts & sprites etc. That is doable, but nobody likes doing that.

I have tried, with some success, to copy the GUI section of the global script of a BASS project, and replace that section of the global Sierra script, along with importing the TwoClickHandler. That did function, and result in a playable rendition of my game with one click to rule them all. However, the GUIs of course no longer function. I'm not sure how to replace gIconBar with gInventory etc.

Is there any shortcut/ easy was to switch UI styles? Or should I just go ahead and start importing all the assets into a new project?

As always, thank you, and I apologize if my questions are that of a sniveling novice.

Snarky

Quote from: Barn Owl on Tue 15/04/2025 23:49:53Edit: I may have figured out the way to do this, exporting and importing the GUIs from the BASS, after already having replaced the global script. I think that might do it.

Edit 2: No that didn't work. Why didn't I back up my game before trying that? Just kidding, everything is backed up.

Well, that is what I would recommend. You will then need to link all the event handlers for all the controls to the right functions.

How did it not work?

Khris

Provided you've used mostly standard events, the main thing you need to import from the BASS template is the on_mouse_click function.
If you set it up so that a left click checks GetlocationType() and runs the interact event on hotspots and objects and the talk to event on characters, you're probably 90% there.
The Useinv event shouldn't really need any work at all, you'll only need the BASS inv GUI. You can however alter the existing Sierra GUI for that. Remove the buttons that switch cursor modes and replace them with an inv window.

Barn Owl

Quote from: Snarky on Wed 16/04/2025 07:29:21
Quote from: Barn Owl on Tue 15/04/2025 23:49:53Edit: I may have figured out the way to do this, exporting and importing the GUIs from the BASS, after already having replaced the global script. I think that might do it.

Edit 2: No that didn't work. Why didn't I back up my game before trying that? Just kidding, everything is backed up.

Well, that is what I would recommend. You will then need to link all the event handlers for all the controls to the right functions.

How did it not work?

It did end up working. The issue was, the BASS template doesn't have a gTextBorder. So I had to import the BASS guis, yet keep the gTextBorder from the Sierra style. Now there's one minor thing that's not working yet I think I can figure it out. Not much work overall. However, after some deliberation, I may just keep the Sierra style after all, hah. 

SMF spam blocked by CleanTalk