Skip to content
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

Migrate overmap_ui.cpp to ui_adaptor #40095

Merged
merged 13 commits into from
May 3, 2020
Merged

Conversation

Qrox
Copy link
Contributor

@Qrox Qrox commented May 3, 2020

Summary

SUMMARY: Interface "Migrate overmap_ui.cpp to ui_adaptor"

Purpose of change

Migrate more UIs to ui_adaptor. This PR is based on #40023.

Describe the solution

Encapsulate initialization and redrawing code in ui_adaptor callbacks.

Testing

Tested by opening/closing sub-UIs and resizing the game window with or without sub-UIs open. Redrawing and resizing were working as intended.

Additional context

Also removed display_table which is no longer used in the game.

@Qrox Qrox requested a review from KorGgenT as a code owner May 3, 2020 03:10
@ifreund ifreund added [C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style Info / User Interface Game - player communication, menus, etc. labels May 3, 2020
@ZhilkinSerg ZhilkinSerg merged commit 08f6210 into CleverRaven:master May 3, 2020
@Qrox Qrox deleted the migrate-ui-13 branch May 4, 2020 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style Info / User Interface Game - player communication, menus, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants