Eugene Sandulenko
815c8aa6df
GRAPHICS: MACGUI: Fix bullet lists indentation
2023-09-26 23:40:00 +02:00
Eugene Sandulenko
d629ff44f9
GRAPHICS: MACGUI: Properly fill in table struct in MacText
2023-09-26 17:39:13 +02:00
Eugene Sandulenko
358bbe93cc
GRAPHICS: MACGUI: More work on digesting tables in MacText
2023-09-25 23:30:38 +02:00
Eugene Sandulenko
a5a96f5cfd
GRAPHICS: MACTEXT: Revert long word processing in MacText
...
This effectively reverts 2b6754e187
I have no idea why I merged it as is, but the changes in that PR #2865
were all non-sensible and hacky
2023-09-25 23:30:38 +02:00
Eugene Sandulenko
1a1161f1d9
GRAPHICS: MACGUI: Added Table structs to MacText
2023-09-25 23:30:38 +02:00
Eugene Sandulenko
5a706831c2
GRAPHICS: MACGUI: Pass Markdown tables to MacText
2023-09-25 23:30:38 +02:00
Eugene Sandulenko
547c8f3e03
GRAPHICS: MACTEXT: Fix MacText color when using U32String
...
Fixed HelpDialog on classic theme
2023-09-22 18:06:33 +02:00
Eugene Sandulenko
4b77a4f148
GRAPHICS: MACGUI: Improve debug output in MacText rendering
2023-09-22 18:03:07 +02:00
D G Turner
61299275b8
GRAPHICS: MACGUI: Fix GCC Signed vs. Unsigned Comparison Compiler Warning
2023-09-19 02:00:28 +01:00
Eugene Sandulenko
220f230d2f
GRAPHICS: MACGUI: Fix out of bounds access when clicking outside of help text
2023-09-17 21:12:34 +02:00
Eugene Sandulenko
2df56f182d
GRAPHICS: MACGUI: Wrap more relevant code into #ifdef USE_PNG
2023-09-17 13:43:47 +02:00
Eugene Sandulenko
70d47e31ed
GRAPHICS: MACGUI: Remove leftover debug paint
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
ba851757f0
GRAPHICS: MACGUI: Used more logical sizes for headers
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
004eba9d25
GRAPHICS: MACGUI: Fix MacText transparency rendering
...
Could lead to regressions, need more testing
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
eb169e8ed1
GRAPHICS: MACGUI: Added (disabled) code for dumping MacText rendering into PNG
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
152feb0f46
GRAPHICS: MACGUI: Properly pass link URLs from Markdown to MacText
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
c4b3ece401
GRAPHICS: MACGUI: Load pictures from a specified zip file in Markdown
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
1c39564262
GRAPHICS: MACGUI: Properly process missing images in Markdown
2023-09-17 00:56:28 +02:00
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
f53d39741d
GRAPHICS: MACGUI: Added tag for switching font to MacText
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
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
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
3cfc80e110
GRAPHICS: MACGUI: Properly set default text color in MacText
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
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
027e3794d3
GRAPHICS: MACGUI: implemented italic and bold Markdown output
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
115b30779c
GRAPHICS: MACGUI: Fix MacText rendering in 32bpp mode
2023-08-16 01:12:31 +02:00
BLooperZ
289dfabb42
MACGUI: Encode UTF-8 in windows mode
...
This fixes hebrew rendering of PDA in Pink
also reverts commit 2fe812db97
.
2023-06-29 09:50:04 +03:00
D G Turner
0e472905ad
GRAPHICS: MACGUI: Fix Set But Unused Variable GCC Compiler Warning
...
These were left over from "Fix alignment issues for multiline text"
recent commit.
2023-06-25 03:44:59 +01:00
Harishankar Kumar
283b5c4b20
GRAPHICS: MACGUI: Fix kMacRoman fonts issues with special characters
...
This commit removes Mac Roman from plainByteMode(), this partially
reverts commit `9d4ac18be542eed5fdbb52519fd95ea7ac47a9e4` from
PR #3823 , this change breaks Hebrew rendering in Pink.
Fixes rendering of texts in `theapartment` using MacRoman fonts.
2023-06-21 20:18:39 +03:00
Harishankar Kumar
b7e09d8259
GRAPHICS: MACGUI: Fix alignment issues for multiline text
...
This patch fixes the alignment issue for multiline text in text castMember
it increases the line height of each line by one, this added change over
multiple lines result in fixed alignment. This patch also removes the height
reduction due to empty line (which cumulatively caused the alignment issue).
`DATA/SUPPORT/INTRODUCTION@111` of 'warlock-100' has this alignment issue
where the text "The Blaster" was above the button it was supposed to be.
2023-06-21 20:18:39 +03:00
Scott Percival
14c7756d06
GRAPHICS: MACGUI: Fix edge cases of getMouseWord
2023-03-24 21:27:34 +01:00
Roland van Laar
157b1d9a48
GRAPHICS: MACGUI: keep formatting in empty text
...
When text is emptied by user action, e.g. backspace, the formattting
should be preserved.
In the game Majestic a text box for user input would start out with the
correct formatting, i.e. green text on a black background. When the user
would then press backspace till the text was gone, the method
`MacText::getTextChunk` would return an empty string, with the
formatting removed. If the user started typing again the text would use
the default formatting with black text on black background.
Fixes: https://trello.com/c/POQZRCEO/546-text-doesnt-show-in-majestic-in-text-box
2023-02-17 15:02:52 +01:00
Roland van Laar
d33005f8b2
JANITORIAL: GRAPHICS: print fgcolor in base 10
...
All colors in debug output in mactext use base 10
where this line was in base 16.
2023-02-17 15:02:52 +01:00
Eugene Sandulenko
e5c1ef3fbb
DIRECTOR: Fix regression from 48740a2ad1
...
The color values went inverted, but in several places they left
untouched.
In general, it is not a good idea to have this hardcoded, but at least
now we have this addressed.
2023-02-10 00:53:38 +01:00
elasota
261ced8ca4
GRAPHICS: Fix getRowCol returning uninitialized variable nsx if there were no chunks for the chosen line.
2022-11-28 18:43:55 +01:00
Hubert Maier
a3ec89bf51
JANITORIAL: GRAPHICS: Correct Spelling Mistake
...
begining -> beginning
2022-11-15 22:52:43 +02:00