Rubidium
86cb184eb4
Codechange: use std::source_location over __FILE__ and __LINE__ for WindowDesc
3 months ago
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
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.
5 months ago
Peter Nelson
18fb8e153f
Codechange: Add __FILE__/__LINE__ of WindowDesc to WindowDesc.
...
This is to allow unit-tests to produce more useful output.
7 months ago
frosch
39e67b6f4c
Codechange: Use existing widget ids instead of raw numbers.
8 months ago
frosch
b6c8f301be
Codechange: Silence warnings about intentionally unused parameters.
9 months ago
Peter Nelson
e8015e497d
Codechange: Use begin/end of nwidget parts of begin/length.
...
This simplifies processing nwidget parts as, unlike the remaining length, the pointer to the end of the list never changes. This is the same principle as we use(d) for tracking end instead of length for C-style strings.
And this removes 160~ instances of the lengthof() macro.
9 months ago
Tyler Trahan
08cb5ba2cd
Fix: Don't show screenshot GUI in screenshots ( #9674 )
3 years ago
glx22
5799402f7a
Codechange: Rename window related DeleteXXX to match new behaviour
3 years ago
TechGeekNZ
3c8d0aa354
Cleanup: Give `TakeScreenshot` a more sensible name
4 years ago
TechGeekNZ
ed6f31f601
Cleanup: Remove redundant implementation of TakeScreenshot
4 years ago
JMcKiern
6dfe5c852e
Fix #7927 : Incorrect resolution shown in "Huge screenshot" query window. ( #7949 )
4 years ago
TELK
e04ca904a9
Feature: Minimap screenshot
4 years ago
pnda
e558aa8ff4
Feature: Screenshot window
4 years ago