Return-To-The-Roots / s25client

Return To The Roots (Settlers II(R) Clone)
http://www.rttr.info
GNU General Public License v2.0
478 stars 77 forks source link

Use a 3-state enum for the window close behavior #1499

Closed Flamefire closed 2 years ago

Flamefire commented 2 years ago

Additionally to regular close behavior (close on right click, ESC, ...) and full custom behavior we need a mode that only ignores right click, e.g. for the observation window. Hence introduce an enum instead of the bool which additionally makes the window constructors much more readable.

Also a bit refactoring in the draw code: Translated comments, renamed snake_case variables and related functions for easier understanding of the code and this change. Additionally updated the turtle submodule which now uses less of the preprocessor