Game
Immortal Sins

7 years ago

Another minor thing, but the news tab on the launcher now uses Microsoft Edge on Windows 10, with fallback to Internet Explorer for older Windows.


OK. I’m going to get a bit technical here so follow along as best as you can. In the Windows Presentation Foundation (and Windows Forms) there’s a component named WebBrowser. This component shows web pages. The issue here is that it relies on MSHTML (that’s Internet Explorer’s Web Renderer). To make matters worse, if there isn’t a specific tag, it will stick to Version 8 (which doesn’t support modern web technologies). I did add that tag, but relying on IE ain’t gonna be good for long. Thankfully, an update to the Microsoft Community Toolkit (a collection of components for UWP apps) added a few libraries that allow the usage of UWP components to WPF and Windows Forms apps. In my case, I used the WebViewCompatible component. That library switches between MSHTML and EdgeHTML (Microsoft Edge). So, if you are on Windows 10, it uses Edge. If you are on Windows 8.1 or older, you get IE. Now, why didn’t I use a library that provides a different renderer (say, Chromium)? At the moment, it’s a clusterfuck to integrate it to WPF. A library breaks the AnyCPU compilation (compiling the code in the AnyCPU configuration allows the launcher to run in both 32-bit and 64-bit machines using the same executable), another need C++ libraries to ship as well and another hasn’t been updated since. So, for now, this is the best solution until I find a better one.



0 comments

Loading...

Next up

Added achievements. Because why not?

It's pretty early, but here's a look at a mob manager, handling the enemies in the game. The code streamlines the programming of the enemies. Hopefully, I can expand it to more useful ways.

Enjoy a nice dish, get a nice buff. What's not to like?

Waz zis? An overhauled map? Yes. Coming soon.

A small teaser for the next update.

It's a bit early, but I have something cooking. Keep an eye out.

It's still pretty early work, but I am working on making the UI more dynamic and sleek. Including faces changing depending on their HP.

Something something... Stuff that I worked on.

A bit of an old but goodie coming back: Quick Load! In an upcoming update, you can jump back to where you left off with a push of a button.

Jump List returns in the next update.