SirDigby
SirDigby
Explore posts from servers
SMSatisfactory Modding
Created by SirDigby on 10/29/2024 in #help-developing-mods
How to determine which side of a buildable a line trace hit
I know I can do hitResult.ImpactNormal.Z to determine if I hit the top of a buildable, but doing hitResult.ImpactNormal.Y will give different results based on how the buildable is rotated. Is there any way I can determine "This hit the left side"?
15 replies
SMSatisfactory Modding
Created by SirDigby on 9/28/2024 in #help-developing-mods
How to properly close a widget
I have a reference to an open widget that I want to close, but how can I do so properly? I can remove it from the viewport with Remove from Parent but then the mouse is still in UI mode until I press Esc.
8 replies
SMSatisfactory Modding
Created by SirDigby on 9/27/2024 in #help-developing-mods
Get location in front of player
How can I get the location just in front of the player? Ideally I'd want to make sure nothing occupies the space as well. From past experience I'm guessing it has something to do with getting the player camera and the forward vector, but I'm not sure exactly.
45 replies
SMSatisfactory Modding
Created by SirDigby on 9/25/2024 in #help-developing-mods
New Consumable
Is there any documentation or examples of creating a new consumable item (like berries or nuts)? I'm trying to figure out how/where to register it so it actually available in-game. I don't plan on making it craftable so adding it to a schematic with a recipe unlock doesn't make sense.
14 replies
CC#
Created by SirDigby on 8/24/2023 in #help
❔ WinUI: Find element within data template item
I have a FlipView with bound data and a data template. I'm trying to get a reference to a named element for the selected item, but can't find anything that works with WinUI. I found this which shows how to do it with WPF via DataTemplate.FindName, but that isn't an option in WinUI https://learn.microsoft.com/en-us/dotnet/desktop/wpf/data/how-to-find-datatemplate-generated-elements?view=netframeworkdesktop-4.8 For context, I'm trying to modify the WinUI 3 Gallery's 'Connected Animation' example to work going from a ListView to a FlipView
2 replies
CC#
Created by SirDigby on 8/30/2022 in #help
WinUI3 - Button always disabled [Answered]
4 replies