Eugene Sandulenko
91a829db69
GRAPHICS: MACGUI: Implemented image rendering in Markdown
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
34acf247be
GRAPHICS: MACGUI: Used switch() statement in MacText formatting parsing
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
7ddffd0a44
GRAPHICS: MACGUI: Fix computing of cursor position for indented lines in MacText
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
01263461a5
GRAPHICS: MACGUI: Fix bullet lists indentation in the Markdown
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
49ef52079c
GRAPHICS: MACGUI: Improved blockcode rendering in Markdown
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
efdc9c3193
GRAPHICS: MACGUI: More rebust debug output in Markdown
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
c9a123b45a
GRAPHICS: MACGUI: Implemented rendering for blockcode and raw_html_tag in Markdown
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
f53d39741d
GRAPHICS: MACGUI: Added tag for switching font to MacText
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
1a6ad65f17
GRAPHICS: MACGUI: Added crash on raw html tags processing in Markdown
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
c668169636
GRAPHICS: MACGUI: Encode images into MacText from Markdown
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
03a758c3b1
GRAPHICS: MACGUI: Proper indentation of bullet lists in Markdown
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
0294d607de
GRAPHICS: MACGUI: Made inentation in Markdown dynamic and fix it for long lines
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
c147f4ee5f
GUI: Indent list items in Markdown
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
168f4b7b3a
GRAPHICS: MACGUI: Apply indentation to MacText
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
2df991721d
GRAPHICS: MACGUI: Added initial code for indentaiton in MacText
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
e237634777
COMMON: Turn sd_markdown into a class
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
ce8a0456db
COMMON: Reduce Common:: namespace pollution by Markdown
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
fe0fbe5cff
COMMON: Make Markdown return Common::String
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
9de6c06d9d
GRAPHICS: MACGUI: Simplified buffer manipulation in Markdown
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
125d3dfa69
GRAPPHICS: MACGUI: Added a way to get link under cursor for MacText
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
6044980b2d
GRAPHICS: MACGUI: Paint links blue in MarkDown
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
5b00cc3f56
GRAPHICS: MACGUI: Implemented color on/off for MacText
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
85f54663f5
GRAPHICS: JANITORIAL: More logical text formatting processing sequence
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
1e6d7db76e
GRAPHICS: MACGUI: Added one more ident level for lists in Marcdown
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
3cfc80e110
GRAPHICS: MACGUI: Properly set default text color in MacText
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
4033c0f869
GRAPHICS: MACGUI: Implemented nested list processing in MarkDown
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
f12386adea
COMMON: FORMATS: Catch list start in Markdown
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
fd844bc00f
GRAPHICS: MACGUI: Added kWMModeNoCursorOverride
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
f086c5cd13
GRAPHICS: MACGUI: Added more debug output to MacText
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
85a492e039
GRAPHICS: MACGUI: Properly reset font slant on end of formatting
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
a314def2cc
GRAPHICS: MACGUI: Added Header formatting, synced with stripFormatting(), fixed closing formatting
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
32f7eec2c6
GRAPHICS: MACGUI: Remove using of \015 as a binary MacText formatting
...
It was not used, and moreover \015 is \x0d which is \r. oops
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
ee7573b222
GRAPHICS: MACGUI: Marked Markdown parts with STUB and started real rendering
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
027e3794d3
GRAPHICS: MACGUI: implemented italic and bold Markdown output
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
d69a9689cc
GRAPHICS: MACGUI: fix printing out of debug info in Markdown
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
d10f80a8c9
GRAPHICS: MACGUI: Implement equivalent of tag opening and closing for MacText
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
bbc6dbcd10
GRAPHICS: MACGUI: Properly grow buffer for Markdown
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
5719847354
GRAPHICS: MACGUI: Pass setMarkdownText through MacTextWindow
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
f6ffcf3c82
GRAPHICS: MACGUI: Implemented stubs for Markdown parser
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
ce04c4b309
GRAPHICS: MACGUI: Initial stub for MacText::setMarkdownText()
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
115b30779c
GRAPHICS: MACGUI: Fix MacText rendering in 32bpp mode
2023-08-16 01:12:31 +02:00
Wyatt Radkiewicz
41a942c5ce
ALL: Renamed TS_ARGB to MS_ARGB
2023-08-13 00:22:10 +02:00
Harishankar Kumar
26aa07c4d4
DIRECTOR: High IDs for custom scrollable border
...
This patch bumps IDs of scrollable border to 0x1000 and above, so that
they don't conflict with IDs normal borders, additionally to support this
change windowType is changed from `byte` type to `uint32` type.
2023-08-03 09:49:20 +02:00
Harishankar Kumar
442c1a5d41
DIRECTOR: Implement events for scroll type text cast
...
This patch implements events for scrolltype text cast members, callbacks
in MacTextWindow is used to redirect events to director engine.
`ATD\HD\bbTWRFL2.DXR@392` of 'totaldistortion-win' uses `mouseUp` score
script attached to scrolltype text cast member, which when clicked calls
`getMouseLine` to find the clicked book, thus opening it.
2023-08-03 09:49:20 +02:00
Harishankar Kumar
14c6939a9c
GRAPHICS: MACGUI: Execute window _callback
in MacTextWindow
...
This patch ensures that the `_callback` function is executed in the
MacTextWindow class.
2023-08-03 09:49:20 +02:00
Harishankar Kumar
f3a6c27df6
GRAPHICS: MACGUI: Add no-border scrollbar, Win95 Border Refactored
...
Win95 scrollbar loading is refactored to use existing `borders` array
in `datafiles.cpp`, Added no-border scrollbar for MacOS, Win95.
This is to support scrollable text cast members in Director, which
will be used by `totaldistortion-win` game.
--start-movie="ATD\HD\bbTWRFL2.DXR@392" totaldistortion-win
2023-08-03 09:49:20 +02:00
Harishankar Kumar
a7e737b6e4
GRAPHICS: MACGUI: Implement background window
...
This patch adds background window, these are special type of window where
the window is always in background and in a multi-window environment, it
will prevent the window from being brought to front.
2023-08-02 18:42:24 +02:00
Harishankar Kumar
9b6d9b0c27
GRAPHICS: Fix WinFont scaling memory leak when scaling fonts.
...
Memory leak happened because the scaled generated fonts were not
being cached or saved anywhere, thus they were not being destructed
and freed. Added logic to cache generated font in _winFontRegistry
itself.
Leaks observed in `trektech-win` of director engine in first few frames itself.
2023-07-08 22:13:28 +03:00
elasota
229f711ccd
GRAPHICS: MACGUI: Load MacFont TTF as monochrome
2023-06-30 10:40:43 +03:00
elasota
bb5ea049d5
GRAPHICS: MACGUI: Constness fixes
2023-06-30 10:40:43 +03:00