-
-
Notifications
You must be signed in to change notification settings - Fork 994
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
Add functionality to Time Schedule Editor #8066
Conversation
selected schedule write to utils/schedule.cfg on scenario save
Note about translatable strings - this reuses an already-translatable string, |
Out of curiosity, does this write out the translatable attributes with the leading underscore? |
Just wondering, would it be difficult to have the schedule button either pull up existing schedules or temporarily show whatever tint was chosen in the dialog, but not save anything? It would be convenient for testing maps at various times of day, either for the map design or terrain graphics drawing. I could swear it used to load predefined schedules, but I'm probably misremembering. |
Probably not yet. I'll see if I can fix it. |
Adding preview for the tints should be easy. I'm not so sure about schedule, but I'll look into it. |
@doofus-01 It did, if you choose a schedule in the Assign Time Schedule item after clicking the Time button. |
Allows to quickly preview changes in color without closing dialog.
New argument helps to identify slider.
Where's the code that writes the addon's _main.cfg? Does it write a |
@CelticMinstrel The code that writes the _main.cfg is in Also, this part already existed before my changes. |
I see it. Technically the lines I was looking for were the ones just after that line, but either way it looks like the |
@babaissarkar we're currently in the string freeze leading up to the 1.18.0 release, so either:
|
@Pentarctagon New Strings replaced with existing ones, see fcd7e80. |
Any other issues that need to be addressed before merging? |
@Pentarctagon No, there shouldn't be anything else. |
An entry should be added to https://github.com/wesnoth/wesnoth/tree/master/changelog_entries Other than that, I'll merge this in a couple days if there are no other comments. |
The changelog file should probably be named differently. If unsure you could use the PR number. |
@CelticMinstrel File renamed to |
Schedule name is no longer generated. Schedule ID is used in Assign Schedule menu if schedule name is empty.
I've implemented changes suggested by @soliton- and @CelticMinstrel in fb6d8c9.
|
Alright, I'll be merging this tomorrow then if there are no additional comments. |
Autogenerated ID is only used as a fallback.
Thanks for sticking with this! |
also add tooltip to preview button and update copyright notice (missing from wesnoth#8066)
Changes :
Save Scenario As
menu item now writes the current assigned schedule toutils/schedule.cfg
.color_slider_callback()
has new parameter to identify slider. Previously with one callback, the g and b sliders in the ui were not updating their values.Description
textbox added incustom_tod
dialog that allows to view and modify thedescription
key of the[time]
tag.