ysj1173886760
e4762aef5e
DIRECTOR: don't scroll for auto expand text.
2021-07-26 17:10:10 +08:00
ysj1173886760
bd6f680648
GRAPHICS: MACGUI: fix rendering text.
...
previously, it will blink due to i was using transBlitFrom to blit text to composed surface.
for now, i've fixed the render logic, this should behave correct and more faster than ever.
2021-07-26 14:31:57 +08:00
ysj1173886760
70e2ca433c
GRAPHICS: MACGUI: fix rendering text shadow with non-black text.
2021-07-24 15:10:13 +08:00
ysj1173886760
0f6c0f0904
GRAPHICS: MACGUI: clean the formats in mactext
2021-07-23 17:06:38 +08:00
djsrv
c4626eef97
GRAPHICS: MACGUI: Fix compilation
...
Forgot to eliminate new uses of _encodeType when rebasing. As formatting
strings only use ASCII characters the encoding shouldn't really matter,
and using the default of UTF-8 is easier than fetching the actual
encoding from the relevant MacTextRun.
2021-07-12 00:54:37 -04:00
djsrv
5bc3ad06c0
GRAPHICS: MACGUI: Move encoding tracking to MacFontRun
...
Font is basically the only way to determine a piece of text's encoding
in Director. Since MacFontRun tracks fonts, it's the nicest place to
handle encoding too.
2021-07-12 00:38:05 -04:00
ysj1173886760
c6bd9f908f
GRAPHICS: MACGUI: fixing mactext for dealing with fg color
2021-07-09 19:48:37 +08:00
ysj1173886760
f4a2b8b963
GRAPHICS: MACGUI: amend drawing color
2021-07-09 19:48:37 +08:00
ysj1173886760
947764159c
DIRECTOR: fix rendering text separately. read fg color though text, instead of argument
2021-07-09 09:41:31 +08:00
ysj1173886760
4c9db11696
GRAPHICS: MACGUI: amend setting bgcolor and fgcolor. drawing color by fgcolor
2021-07-09 09:41:31 +08:00
ysj1173886760
dc41917a74
DIRECTOR: implement text chunk fields operations
2021-07-08 02:25:11 +02:00
ysj1173886760
6e2a8fc08f
GRAPHICS: MACGUI: implement setting text slant and text fontId of text chunks
2021-07-08 02:25:11 +02:00
ysj1173886760
42aa4739f8
DIRECTOR: implement chunk field operations for text cast member
2021-07-08 02:25:11 +02:00
ysj1173886760
56fad1585b
DIRECTOR: implement setting text size for text cast member
2021-07-08 02:25:11 +02:00
ysj1173886760
1492a06a84
GRAPHICS: MACGUI: amend interLinear for mactext
2021-07-08 02:25:11 +02:00
ysj1173886760
60c0e78d95
GRAPHICS: MACGUI: add line spacing for mactext
2021-07-08 02:25:11 +02:00
djsrv
e9d9b9f569
DIRECTOR: Revert FXmp handling
...
This reverts commit 4dabee7e8b .
This reverts commit 3fda461d5f .
This reverts commit 831c014f9e .
This reverts commit b3b55e59e9 .
2021-07-06 16:47:20 -04:00
djsrv
3fda461d5f
GRAPHICS: MACGUI: Handle FontXPlatformMap in MacFontManager::getFont
2021-07-05 22:54:14 -04:00
djsrv
831c014f9e
DIRECTOR: Make FXmp available to MacText
2021-07-05 22:53:35 -04:00
djsrv
b3b55e59e9
GRAPHICS: MACGUI: Add parent to MacFontRun
2021-07-05 22:53:35 -04:00
Le Philousophe
25426c0a80
MACGUI: Fix int/int32 build failures
...
All of this is because Rect and Surface have moved to int32
2021-07-05 23:54:34 +02:00
ysj1173886760
1945e3ec5c
GRAPHICS: MACGUI: realloc surface after changing dims
2021-06-30 16:29:00 +02:00
ysj1173886760
bcd33eeba3
DIRECTOR: fix rendering text to suit for different style text
2021-06-30 16:29:00 +02:00
ysj1173886760
d0317fa1bb
DIRECTOR: use text style to determine whether text should fix dims
2021-06-30 16:29:00 +02:00
ysj1173886760
202f6ce7e5
GRAPHICS: MACGUI: move set fixed dims to ctor for mactext
2021-06-30 16:29:00 +02:00
ysj1173886760
c759e27fe7
GRAPHICS: MACGUI: introduce _fixedDims to mactext, which represent for whether mactext should auto expanding.
2021-06-30 16:29:00 +02:00
ysj1173886760
787454f908
GRAPHICS: MACGUI: support partial color setting in mactext
2021-06-30 16:29:00 +02:00
ysj1173886760
ba858522eb
GRAPHICS: MACGUI: add basic color changing support for mactext
2021-06-30 16:29:00 +02:00
ysj1173886760
258c8447a2
GRAPHICS: MACGUI: modify the behaviour of selection. we will select whole area when we select whole text.
2021-06-26 16:08:20 +02:00
ysj1173886760
76e0494f27
GRAPHICS: MACGUI: clean the code
2021-06-26 16:08:20 +02:00
ysj1173886760
b442d634b4
GRAPHICS: MACGUI: fix drawing selection when we have borders in mactext
2021-06-26 16:08:20 +02:00
ysj1173886760
576ce1176e
GRAPHICS: MACGUI: fix heap overflow when drawing selection in mactext
2021-06-26 16:08:20 +02:00
ysj1173886760
46f8b7df75
GRAPHICS: MACGUI: amend drawing selection in mactext
2021-06-26 16:08:20 +02:00
ysj1173886760
868f58b3c2
GRAPHICS: MACGUI: update selection after setting text in mactext
2021-06-26 16:08:20 +02:00
ysj1173886760
832455d812
GRAPHICS: MACGUI: eliminate offset in macbutton. amend the behaviour of setEditable in mactext
2021-06-26 16:08:20 +02:00
ysj1173886760
325481b38e
GRAPHICS: MACGUI: amend the behaviour when we destruct mactext and setting the selRange
2021-06-26 16:08:20 +02:00
ysj1173886760
78d77319e7
GRAPHICS: MACGUI: eliminate vertical 1 offset in mac
2021-06-26 16:08:20 +02:00
ysj1173886760
9d63692348
GRAPHICS: MACGUI: eliminate offsets in mactext
2021-06-26 16:08:20 +02:00
ysj1173886760
39fc525bf0
DIRECTOR: modify and organize the logic of mactext and macbutton.
...
eliminated a lot of magic offsets.
reaching nearly 100% reappearance.
2021-06-26 16:08:20 +02:00
ysj1173886760
158406487a
GRAPHICS: MACGUI: re-organize the logic of calculating offsets of mactext and macbutton.
2021-06-26 16:08:20 +02:00
ysj1173886760
93421af649
GRAPHICS: MACGUI: clean the code and write comments for readability
2021-06-20 14:33:53 +02:00
ysj1173886760
fd8483f7cc
GRAPHICS: MACGUI: fix drawing the mactext,
...
currently we have some problems when dealing with the alignments, so i changed to this one.
It's may get a little bit slow, but we may optimize it later
2021-06-20 14:33:53 +02:00
ysj1173886760
343597bd43
GRAPHICS: MACGUI: add setText for mactext
2021-06-20 14:33:53 +02:00
ysj1173886760
cae7c025e5
GRAPHICS: MACGUI: use ascent to determine the vertical offset when rendering mactext
2021-06-20 14:33:53 +02:00
ysj1173886760
3817c90148
GRAPHICS: MACGUI: deal with plain bytes specially when we calculating the string width.
2021-06-20 14:33:53 +02:00
ysj1173886760
72162c41b4
GRAPHICS: MACGUI: introduce _plainByteMode to mactext for working with plain bytes. introduce _encodeType to mactext for recording encoding type
2021-06-20 14:33:53 +02:00
ysj1173886760
d30e009eff
GRAPHICS: MACGUI: fix regression of scrolling cursor in mactext
2021-06-13 00:41:26 +02:00
ysj1173886760
ce11b8efb9
GRAPHICS: MACGUI: small fix for getRowCol in mactext to suit for new offset system
2021-06-13 00:41:26 +02:00
ysj1173886760
e18b26d69e
GRAPHICS: MACGUI: clean most of the offset in mactext
2021-06-13 00:41:26 +02:00
ysj1173886760
e575393e52
GRAPHICS: MACGUI: fix the cursor position calculating in mactext
2021-06-13 00:41:26 +02:00