Commit graph

924 commits

Author SHA1 Message Date
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
ysj1173886760
a841358e69 DIRECTOR: implement some basic field operations for text cast 2021-07-08 02:25:11 +02:00
Paul Gilbert
0136043f09 COMMON: Revert Change Rect and Point to have int32 fields
This reverts commit 1c3e7fb4e9.
2021-07-06 20:35:42 -07: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
Paul Gilbert
baccbedf50 GRAPHICS: Changed surface classes sizes from uint16 to int16 2021-07-04 18:24:27 -07:00
Paul Gilbert
1c3e7fb4e9 COMMON: Change Rect and Point to have int32 fields 2021-07-04 18:24:26 -07:00
djsrv
58ab956d72 GRAPHICS: MACGUI: Don't allow font IDs to be overridden
New fonts are automatically assigned a unique ID.
2021-07-02 18:08:21 -04: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
6db3b93050 GRAPHICS: MACGUI: add an overload version for findBestColor 2021-06-30 16:29:00 +02:00
ysj1173886760
b512f33263 GRAPHICS: MACGUI: pass an event of lbutton_up to those widgets should clear widgets correctly. 2021-06-30 16:29:00 +02:00
ysj1173886760
bb26ca4d46 GRAPHICS: MACGUI: reset variable for handling events for macwidgets when wm won't handle events correctly 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
111bd187bc GRAPHICS: MACGUI: use _active to replace _invertOuter in macbutton 2021-06-20 14:33:53 +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
36be209490 GRAPHICS: MACGUI: modify macbutton to fit new logic of 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
3098ff11b4 GRAPHICS: MACGUI: parse slant directly from name when we didn't get any slants. 2021-06-20 14:33:53 +02:00
ysj1173886760
931817d907 GRAPHICS: MACGUI: restore the cursorType when we pop the cursor, currently we use kMacCursorArrow for the default one 2021-06-20 14:33:53 +02:00
ysj1173886760
112765eb6c GRAPHICS: MACGUI: add _inEditableArea to WM, to distinguish whether the cursor type is set by director or ourself 2021-06-20 14:33:53 +02:00
ysj1173886760
c8f603262b GRAPHICS: MACGUI: fix incorrect memory accessing 2021-06-20 14:33:53 +02:00
ysj1173886760
d31331eb9a DIRECTOR: modify the behaviour of resizeScreen to avoid memory leaks. Introduce _surface to director which will provide consistency for those engines which uses macgui. 2021-06-20 14:33:53 +02:00
ysj1173886760
4928f35aac GRAPHICS: MACGUI: create function "resizeScreen" to creating and resizing screen for WM 2021-06-20 14:33:53 +02:00