UI controls/widgets that contain state, and/or handling state that might not belong in the ViewModel?
Posted: 30 May 2024, 13:21
Hi,
I've asked along this topic before, but recently I recorded a video for a UI Engineer friend asking a similar question, and realized the video is way clearer than typing things out. I'm basically struggling to understand how in MVVM/Noesis to model the kinds of interactions you see in the video, especially the missile launch control, where there's clearly some state accruing but it's seemingly all just in the UI, so it shouldn't exactly go on the "ShipViewModel" (pretending they use MVVM in this game for our discussion). I'm not sure where to stick that kind of state.
How would you go about structuring things for that order UI and the transition to picking the missile launch targets -> accruing that UI state somewhere before accepting it and sending it off to the ship/simulation? This is gonna be a common loop for me and I keep banging my head against it.
Here's the video, an example I filmed from the game "Nebulous Fleet Command", and I do apologize for the language but again was originally a video for a friend :)
I appreciate any help!
I've asked along this topic before, but recently I recorded a video for a UI Engineer friend asking a similar question, and realized the video is way clearer than typing things out. I'm basically struggling to understand how in MVVM/Noesis to model the kinds of interactions you see in the video, especially the missile launch control, where there's clearly some state accruing but it's seemingly all just in the UI, so it shouldn't exactly go on the "ShipViewModel" (pretending they use MVVM in this game for our discussion). I'm not sure where to stick that kind of state.
How would you go about structuring things for that order UI and the transition to picking the missile launch targets -> accruing that UI state somewhere before accepting it and sending it off to the ship/simulation? This is gonna be a common loop for me and I keep banging my head against it.
Here's the video, an example I filmed from the game "Nebulous Fleet Command", and I do apologize for the language but again was originally a video for a friend :)
I appreciate any help!