Comments (9)
I can try to implement this in a couple of days if @crackedmind isn't going to get ahead of me.
from remnantsaveguardian.
That would be amazing. For whoever gets to it first, here's a rundown of where things stand. Some of this is probably the absolute wrong way to do things.
The "view analyzer" context menu can be enabled by changing its visibility to Visible
here:
When clicked, that menu option fires an event for the Backups page that provides the backup in question in the event arguments:
RemnantSaveGuardian/RemnantSaveGuardian/Views/Pages/BackupsPage.xaml.cs
Lines 123 to 131 in 4d3264b
The main window listens for that event, and then attempts to add a new navigation item using a new instance the world analyzer page that loads the backup save's data:
RemnantSaveGuardian/RemnantSaveGuardian/Views/Windows/MainWindow.xaml.cs
Lines 150 to 199 in 4d3264b
The main roadblock I've hit is that navigating to/from this new page seems buggy. Depending on how I try to do it, it appears to be just a duplicate of the existing world analyzer page or can't be selected. Or if I manage to select it via code, it's not possible to select it again after the user has navigated away from it.
from remnantsaveguardian.
@Wuxriff The fix only partially works. When you "open" an analzyer for a backup, it appears to open a new page titled with the save backup's name, but it's actually displaying the data for the active backup. It appears to be a full copy of the active save world analyzer page because if you navigate to the missing items tab on the backup analyzer page and then navigate to the active save analyzer page, the missing items tab is also active there.
from remnantsaveguardian.
Thx, will take a look 👀
from remnantsaveguardian.
Done 👀
from remnantsaveguardian.
This is something different. Will check for sure.
from remnantsaveguardian.
After some research I came to the conclusion that I don't know how to make the Wpf.Ui framework display the 'selected tab' style while using NavigateExternal method, seems like it's impossible. Since you are using it and MVVM for some reason, then we could rewrite everything to real MVVM with events, but I would not want to do this.
I propose to replace RootNavigation.Navigate(pageTag); to RootNavigation.NavigateExternal(page); (as it was) and postpone until some future huge refactorings.
from remnantsaveguardian.
That was the key! We can do RootNavigation.NavigateExternal(page)
and navItem.IsActive = true
and things function exactly how the user would expect. Thanks for taking a look at this!
Edit: only thing left is to figure out if there's a way to update the "breadcrumb" title on the main window when we navigate to a backup analyzer page.
Edit again: It's kind of ugly, but we can do a Navigate(pageTag)
to set the breadcrumb and then a NavigateExternal(page)
to actually set the page.
from remnantsaveguardian.
Yeah, we can, but it's against the framework - I tried to find a better solution and removed them in my pull request.
If you are satisfied with how it works now, then I think that this task can be closed as completed 😎
from remnantsaveguardian.
Related Issues (20)
- Adventure tab permanently grayed-out even though I have an adventure. HOT 2
- Some of the levels are assigned to incorrect worlds
- Error loading main window: could not find a part of the path 'C:\Users\{user name}\Saved Games\Remnant2'. HOT 1
- spelling mistake on Forlorn Coast
- Can someone help with this HOT 1
- Unable to switch to english language on non english default culture HOT 4
- Non-disabled Log
- Adventure mode grayed and campain not refreshing
- Adventure mode doesn't refresh
- World_Jungle Error HOT 4
- Injectable Sewer hole does not show available item: Ring of the castaway HOT 1
- Brocwithe quarter not showing in adventure mode HOT 1
- Adventure mode dosent work anymore?
- world_Jungle error HOT 2
- World Jungle Error Fix HOT 2
- False positive on Ethereal Manor HOT 1
- Possible cause of world_Jungle error
- nvm i did a stupid
- Не работает вкладка ПРИКЛЮЧЕНИЕ в игре Remnant2
- Link broken HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from remnantsaveguardian.