Files
Inglonias adb20a2a90 Convert old sidebars to JSON and remove C++ sidebars. (#58113)
* Adjust some widgets in prep for legacy sidebars

* Add JSONized "legacy" labels(narrow) sidebars

* skeleton time

woo so spooky

* Added reference images

For the love of god delete these before you merge

* classic health widget done

* Classic sidebar complete without vehicle info

* trimmed IDs

* untrimmed the top level ID

* Added the overmap and a vehicle widget.

* Compass switched to default version

* Tidied up the classic sidebar. Began working on the compact sidebar.

* Continued work on the compact sidebar

* Finished the needs and env layouts for compact sidebar

* Filled out the rest of the compact sidebar.

Sidenote: A lot of these widgets need to be set to not have labels. Will need to work on that during testing.

* Linted new sidebars

* Completely hide the old panel styles.

* Delete reference images

* Remove unused functions to initialize sidebar

* Even more functions throwing unused function errors!

* Following the compiler's wishes and trashing panels.cpp!

* On a hunch, I just trashed all the "draw_" functions except for minimap, hint, and message.

* Nope, don't need render_wind anymore either. Wow.

* Removed unused vars to make clang happy.

* Fixed bad widgets.

* More work on sidebars.

* Add the ability to specify width of layout widgets

* Astyled widget.cpp

* Fixed a bad condition

* Dynamic re-widthing for columns.

* Astyle again

* Reduce col_padding to 1

* Added padding

* Fixed failing test cases

* Removed unread variable.

* Astyle

* Update sidebar-legacy-classic.json

* Label work

* Removed colons from labels. If you want them back, add them back.
* Increased col_padding back to 2

* Added classic safe mode widget

* Removed bad alignment

* More chewing

* Added a proper weariness transition widget.

* Added custom label separators for sidebar widgets.

* Changed existing custom sidebar sep to ": " to preserve behavior

* Upload my changes and tests.

* Astyled and got things working

* I got it to work!

* Documentation

* Fixed sidebar.json whitespace

* Replaced magic string with a variable.

* Fixed whitespace and misplaced comments

* Fixed the documentation

* Update WIDGETS.md

* Moved the default separator to widget.cpp

* Removed unnecessary argument from layout function.

* Fixed a bug with calculating label width.

* Astyle

* Fixed test failures

Somehow...

* Comment needs to be on the right line!

* Simplify

* Apply suggestions from code review

Co-authored-by: David Seguin <davidseguin@live.ca>

* Make separator mandatory for sidebar style widgets

* Tone down the error.

* Clarified separator documentation

* Apply suggestions from code review

Co-authored-by: David Seguin <davidseguin@live.ca>

* Added separators to legacy sidebars

* Fixed oopsies caused by merging

* More work

* More widget work

* Fixed separator cross-contamination

* Astyled

* Astyled

* Removed a debug var

* Fixed a null pointer issue.

* Update sidebar-legacy-classic.json

* Disable non-JSON panels and finish up.

* Linted and astyled

* More linting

* Removed more unused functions

* Fixed a warning

* Remove const

* Fixed a bug that would prevent importing existing save files.

* Added body part status to classic and compact.

* Remove moon phase from compact sidebar

* Prevent error on initial install of game.

* Extend all sidebars when Magiclysm is running.

* Fixed copy-from and id issues for magiclysm

* Fixed failing widget tests

* Astyled

* Commented out unused (for now) variables

* Fixed weariness widget for labels-narrow sidebar

* Apply suggestions from code review

Co-authored-by: David Seguin <davidseguin@live.ca>

Co-authored-by: Eric Pierce <wapcaplet88@gmail.com>
Co-authored-by: David Seguin <davidseguin@live.ca>
2022-06-24 01:52:26 -04:00

16 lines
259 B
JSON

[
{
"id": "date_desc_label",
"type": "widget",
"label": "Date",
"style": "text",
"var": "date_text"
},
{
"id": "date_desc_no_label",
"type": "widget",
"copy-from": "date_desc_label",
"flags": [ "W_LABEL_NONE" ]
}
]