Jump to content

Captivity Event: Stories viewer


Recommended Posts

Posted

Okay, it's not the libpng issue. I don't know what exactly is going on (though I did find a bug I introduced trying to fix libpng).

 

It appears that the background isn't being drawn fully when running on windows. If you were to open each event individually, the background loads fine, but updating it doesn't. That may be a bug with the GUI framework itself, as the behavior doesn't exists on OS other than windows.

Posted
5 minutes ago, Antonio1038 said:

is it normal to be so bright bcause yours isnt      Screenshot2025-07-22130724.png.6a3f64bf6da1187da4237d34bf235a7c.png

Yes, my screenshot are made using the equivalent of "darkmode" of my system. The GUI Framework takes its color from the operating system itself. If you were to tinker with how your desktop windows looks like, that would affect the application too.

Posted
9 minutes ago, bicobus said:

Okay, it's not the libpng issue. I don't know what exactly is going on (though I did find a bug I introduced trying to fix libpng).

 

It appears that the background isn't being drawn fully when running on windows. If you were to open each event individually, the background loads fine, but updating it doesn't. That may be a bug with the GUI framework itself, as the behavior doesn't exists on OS other than windows.

i now how to let the picture load on Windows if i take the preview and swipe it out of my screen it loads why i dont now i not that good with thos things and one question can i edit the events thanks

Posted
1 hour ago, Antonio1038 said:

i now how to let the picture load on Windows if i take the preview and swipe it out of my screen it loads why i dont now i not that good with thos things and one question can i edit the events thanks

I found out what happens, not why it happen. The way the code work is by destroying the children of the window, then redrawing the whole with new widgets and a new background. Normally, that should trigger a full redraw of the window but, as you can see, only a partial redraw is called. By wiggling your window off screen, you are probably triggering said full redraw.

 

So I made a bit of a change and forced a full redraw every time the user click a button in the preview window. Update incoming.

Posted

Thanks. Found the cause (for real this time). You can verify yourself by downloading the artifact from https://github.com/bicobus/wxpython_debug/actions/runs/16457917408

 

This feature has been a thorn in my side for a long time, as the history of the repository I just linked can attest. The behavior being different between operating systems is what is weird. I'll be pushing an update later today.

Posted

Firstly i would like to say thank you for making this. I got it working quickly and it has helped me to understand how the overall mod works.

 

Is it possible to have an edit function, Would be awesome to be able to select the default mod and use to create our own.

 

I'm currently inspired to make one for Shokuho. (Though that mod overrides the background pictures for events, unsure how to get past that)

Posted
12 hours ago, Lemlim22 said:

Firstly i would like to say thank you for making this. I got it working quickly and it has helped me to understand how the overall mod works.

 

Is it possible to have an edit function, Would be awesome to be able to select the default mod and use to create our own.

 

I'm currently inspired to make one for Shokuho. (Though that mod overrides the background pictures for events, unsure how to get past that)

Yep, the tool's been written to provide a visual aid and help troubleshoot event chains. Them chains can become rather long and unwieldy. I originally wanted to create a graphical editor to ease the pain of writing events, however such function is most likely never going to be implemented. The reason being that the anatomy of one event is way too complex and possess way too many potential elements, most of which you usually don't need. I really don't want to suffer the pain of implementing such feature. There are existing tools that supports xml editing guided by an XSD, though most are pricey (oxygenxml, liquid technology). There is one free editor from Microsoft though, called XML Notepad which I invite you to try.

Posted

Thank you. I appreciate the response and difficulty in such things.

 

Have you any thoughts in how to over ride the event back ground images.

Posted

With images files of the same name in an overriding module loaded after the module being overridden.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...