Commit Graph

9 Commits (606d7cd8143ea351518483cc87006122c2f04eef)

Author SHA1 Message Date
Peter Nelson 7737aa6640 Codechange: Make all NWidgetPart arrays constexpr.
This ensures that the arrays are not created at runtime and prevents using non-constexpr values.
5 months ago
Peter Nelson 71aaed860b
Codechange: Missing some conversions to WidgetID. (#11773) 5 months ago
Peter Nelson a0dfb76e34 Codechange: Replace mishmash of types for widget index with WidgetID.
Indices were stored as int, but often passed around as uint/uint8_t and casts.

Now they should all use WidgetID.
6 months ago
Peter Nelson fd84f73323
Fix #11643: Empty area at top of survey preview. (#11647)
Empty area at the top of some textfile windows due to calling
SetDisplayedPlane() after calling FinishInitNested(), and/or changing
the displayed plane and not calling ReInit() after.

This was previously hidden by CheckForMissingGlyphs() reinitialising
all windows anyway.
6 months ago
rubidium42 27082f9efa Codechange: pass std::string references to OpenBrowser 7 months ago
Peter Nelson 90bd8e64d8 Change: Simplify help window widgets and use sparse padding. 7 months ago
Peter Nelson 18fb8e153f Codechange: Add __FILE__/__LINE__ of WindowDesc to WindowDesc.
This is to allow unit-tests to produce more useful output.
8 months ago
frosch b6c8f301be Codechange: Silence warnings about intentionally unused parameters. 9 months ago
Niels Martin Hansen 41de0d46f3 Feature: Help and manuals access window 9 months ago