-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vehicle type exclusion list for "Disable despawning" feature #1441
Conversation
…nto feature/allow-despawn-by-type � Conflicts: � TLM/TLM/TLM.csproj
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still need to test in-game
Tested in-game and it works but... it's a bit weird. Summarising the
I have no way of knowing, as a user, that if I don't Additionally, the options are on separate tabs (Gameplay vs. Maintenance) and there's no obvious linkage between the TM:PE I'm wondering if it would be better to refactor how despawning works more generally? For example:
|
Looks good! |
…s or via right click on despawning button on the main menu in game
Updated. |
?? |
You've created some code in |
Waiting for #1444 |
Just been testing this again and it still feels a bit weird the association of I noticed also that the // OptionsManager.LoadData():
GameplayTab_VehicleBehaviourGroup.DisableDespawning.Value = !LoadBool(data, idx: 15, true); // inverted
// OptionsManager.SaveData():
save[15] = (byte)(Options.disableDespawning ? 0 : 1); // inverted Would it make sense to rename the Also it would mean that |
To me making an option: Allow despawn suggest that despawning is disabled by default. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comments above
Keep in mind that modal opens when you right click despawning button on the main menu in game (tooltip needs an update). I wanted to create single solution for all. |
I've added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool.
Maybe it would be nice to indent that button if possible to make it clear it belongs to Disable de-spawning. (I have some code for that in my mod if you needed help)
@kianzarrin I'm not sure if necessary, I already tweaked the button text so IMO it's pretty descriptive what it does and when it is active: |
@kianzarrin can you post link to your code for indenting buttons and I'll add that to the base button class in separate PR as part of 11.6.5.2 branch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
@aubergine10 my code actually puts the checkbox and the button in the same raw but it can be modified to indent the button. we need to add a panel. I think this should work: var container = button.parent as UIComponent; // not sure about this line.
var panel = container.AddUIComponent<UIPanel>();
panel.width = container.width;
panel.height = button.height;
button.AlignTo(panel, UIAlignAnchor.TopLeft);
button.relativePosition += new Vector3(10, 0); |
Add options to allow despawn of specific vehicle types when "Disable despawning" feature is active
Closes #1434