Michael Bernardi
99dee55494
Fix JSDrawCustomImage using wrong ctx
2026-04-01 02:19:01 +11:00
Michael Bernardi
421530c3ea
Use class prototypes for all script types.
2026-04-01 02:19:01 +11:00
16cd1c07ff
Swap Duktape for quickjs-ng
...
Co-authored-by: Basssiiie <Basssiiie@users.noreply.github.com >
Co-authored-by: Tulio Leao <tupaschoal@gmail.com >
2026-04-01 02:18:36 +11:00
Gymnasiast
2e7e429516
Replace drawText* calls that pass STR_STRING + formatter
2026-03-26 17:10:50 +01:00
Gymnasiast
49fa735600
Do not run drawText* through formatter if there are no arguments
2026-03-26 16:00:06 +01:00
Aaron van Geffen
8ed4b34907
Move includes out of Drawing.h and into their actual users
2026-03-26 12:55:37 +01:00
Gymnasiast
a5c32ab60c
Rename DrawText* to drawText*
2026-03-25 23:16:25 +01:00
Gymnasiast
2398d91fb2
Rename DrawTextBasic() to DrawText()
2026-03-25 23:15:49 +01:00
Gymnasiast
5620437c99
Rename functions in Drawing.String.h to adhere to code style rules
2026-03-25 23:14:57 +01:00
Gymnasiast
800e656c4b
Merge TTFGetStringWidth and GfxGetStringWidth
2026-03-25 23:14:57 +01:00
Gymnasiast
df1564c9cd
Namespace Drawing.String.cpp, declare its functions in Drawing.String.h
2026-03-25 23:14:57 +01:00
Gymnasiast
38adb756ee
Make DrawText() internal again
2026-03-22 13:21:15 +01:00
Gymnasiast
f999cab0a7
Stop using common formatter for window captions
2026-03-03 14:47:00 +01:00
Gymnasiast
1292cb1a3a
Use Widget::setString() instead of manual string setting
2026-03-03 14:46:59 +01:00
matheusvb3
b4903577ed
Remove global using namespace declarative in header files
2026-03-01 13:33:21 +01:00
matheusvb3
7270b33dde
Resolve function declaration and definition parameter name mismatch ( #26094 )
2026-02-24 22:49:07 +01:00
Michael Steenbeek
4878894a7e
Use PaletteIndex in RenderTarget ( #25948 )
2026-02-07 23:41:40 +01:00
matheusvb3
416a005b88
Replace uses of .size() or .length() with .empty() when appropriate ( #25950 )
2026-02-05 13:14:12 +01:00
Gymnasiast
a80fa16c20
Refactor ImportFlags into FlagHolder
2026-01-31 14:00:52 +01:00
Michael Steenbeek
343c7a70d7
Change colour to a strong enum ( #25873 )
2026-01-28 10:06:45 +01:00
Michael Steenbeek
3e4261323a
Rename some palette indices ( #25843 )
2026-01-18 21:24:45 +00:00
Gymnasiast
e46d2eba9e
Move colour map to its own file
2026-01-17 18:46:54 +01:00
Gymnasiast
04a3d02023
Rename members of ColourShadeMap
2026-01-16 19:25:58 +01:00
matheusvb3
b53cf66ea2
Bring some variables to inner scope
2026-01-16 12:45:15 -03:00
matheusvb3
bba937a03d
Remove more redundant namespace qualifiers ( #25828 )
2026-01-16 08:38:20 +01:00
matheusvb3
162977a84b
Remove redundant namespace qualifiers from miscellaneous files ( #25816 )
2026-01-14 23:15:07 +01:00
Aaron van Geffen
ed1e2a84b4
Remove Drawing.h include from a few more places ( #25779 )
2026-01-09 12:54:44 +01:00
Gymnasiast
a13b1c4e11
Make PaletteIndex into a strong enum and move into namespace
2026-01-07 23:55:30 +01:00
Michael Steenbeek
78a654fcbd
Rename missed occurrences of DrawPixelInfo/DPI to RenderTarget/RT ( #25768 )
2026-01-07 19:58:49 +00:00
Gymnasiast
8861833292
Pass PaletteIndex to Rectangle::fill() and IDrawingContext::FillRect()
2026-01-07 12:48:01 +01:00
Aaron van Geffen
b5cd780b3e
Rework drawing header includes ( #25744 )
...
* Move Csg unit into OpenRCT2 namespace
* Move G1Element into its own header file
* Clean up SpriteCommands.h
* Add trailing namespace comment to Csg.cpp
* Remove Drawing.h dependency from Graph.h
* Add <memory> include to G1Element.h
* Remove Drawing.h include from ImageTable.h (used by all objects!)
* Drop Drawing.h dependency from OpenGLFramebuffer.h
* Drop Drawing.h dependency from TextureCache.h
* Drop Drawing.h include from TitleScene.h
* Drop Drawing.h dependency from Widget.h
* Add <optional> include to SpriteFile.h
* Add Drawing.h to PlayTests, S6ImportExportTests
* Include <cstdint> in TitleScene.h for SIZE_MAX
2026-01-05 19:09:34 +00:00
Aaron van Geffen
40aaf97c07
Update copyright years to 2026 ( #25741 )
2026-01-05 13:42:59 +00:00
mix
b7250d4ca3
Fix #25469 : Assertion when drawing in ui.imageManager.draw callback ( #25716 )
2025-12-28 19:10:44 +01:00
Gymnasiast
7236631db5
Create strong enum+Flagholder for G1 flags
2025-12-27 20:25:59 +01:00
Gymnasiast
e6fa262b9e
Rename G1Element members, add unions for palette entries
2025-12-27 16:56:54 +01:00
Aaron van Geffen
8a0a655025
Unwrangle Drawing.h and Paint.h ( #25706 )
...
* Drop Drawing.h include from Paint.h
* Split off RenderTarget to its own header/unit
* Move FilterPaletteID to its own header
2025-12-26 12:58:33 +01:00
matheusvb3
490bf3ec30
Remove redundant parentheses around FlagHolder method invocations ( #25695 )
2025-12-23 18:16:44 +01:00
Michael Steenbeek
5a547fc2bb
Fix return value of Widget::height()
2025-12-12 18:26:05 +01:00
mix
e0f9e756cb
Rename OpenRCT2::MapSelection functions to lowerCamelCase
2025-11-23 00:17:16 +00:00
mix
6631b452ad
Encapsulate selected tiles and invalidate when changed
2025-11-23 00:17:15 +00:00
mix
f3cedcc1d9
Remove manual map selection invalidation calls
2025-11-23 00:17:15 +00:00
Michael Steenbeek
6f24577027
Fix return value of Widget::width()
2025-11-08 10:27:58 +01:00
Gymnasiast
b3c854e3aa
Move ColourFlags/ColourWithFlags to own compilation units
2025-11-04 00:09:07 +01:00
Gymnasiast
64ef3da5a4
Use FlagHolder in ColourWithFlags
2025-11-03 23:25:31 +01:00
Gymnasiast
0ec4e3353b
Update members of FontStyle
2025-11-03 23:25:30 +01:00
Gymnasiast
124352c922
Update members of TextAlignment
2025-11-03 23:25:29 +01:00
Gymnasiast
7c51ccde1e
Rename Rect namespace to Rectangle
2025-10-23 18:44:45 +02:00
Gymnasiast
298f3fdeb1
Replace remaining rectangle flags with Rect::FillMode enum
2025-10-23 18:42:50 +02:00
Gymnasiast
679064da77
Replace INSET_RECT_FLAG_FILL_MID_LIGHT with Rect::FillBrightness enum
2025-10-23 18:42:07 +02:00
Gymnasiast
93c3d99546
Move rectangle drawing into its own namespace
2025-10-23 18:41:08 +02:00