Commit graph

838 commits

Author SHA1 Message Date
ysj1173886760
1d3cf51b7b GRAPHICS: MACGUI: fix the bug when closing the menu, the highlight part was not correctly set 2021-04-25 02:24:15 +02:00
ysj1173886760
5d2a73fe01 GRAPHICS: MACGUI: add win95 mode for menu behaviour, currently in win95 mode, it will exit the menu only when you click something useful(trigger some event) 2021-04-25 02:24:15 +02:00
ysj1173886760
e459e5acf8 GRAPHICS: MACGUI: add win95 mode for menu padding 2021-04-25 02:24:15 +02:00
ysj1173886760
0a9ffd5f06 GRAPHICS: MACGUI: remove unnecessary codes 2021-04-25 02:24:15 +02:00
ysj1173886760
ee8d9dea03 GRAPHICS: MACGUI: set fgcolor as default format color when we are in win95 mode 2021-04-25 02:24:15 +02:00
ysj1173886760
7ef3b88a94 GRAPHICS: MACGUI: save background color for mactextwindow, add new behaviour for win95 mode 2021-04-25 02:24:15 +02:00
ysj1173886760
47f4912083 GRAPHICS: MACGUI: add new flag kWMModeWin95 for macwindowmanager 2021-04-25 02:24:15 +02:00
ysj1173886760
a98097e8d2 GRAPHICS: MACGUI: set fgcolor as default color, fix the behaviour for appendText when _str is empty 2021-04-25 02:24:15 +02:00
ysj1173886760
803cd6d715 GRAPHICS: MACGUI: bring kWMModeNoDesktop flag useful again 2021-04-25 02:24:15 +02:00
Eugene Sandulenko
5e7fe2dc57
JANITORIAL: Replace spaces in indentation with tabs 2021-04-15 21:20:36 +02:00
ysj1173886760
3b47e56155 GRAPHICS: MACGUI: clean the codes 2021-04-12 14:04:25 +02:00
ysj1173886760
39b84a1574 GRAPHICS: MACGUI: modify the titlePos in datafiles 2021-04-12 14:04:25 +02:00
ysj1173886760
b8f8fdbf19 GRAPHICS: MACGUI: make title color depend on the border color 2021-04-12 14:04:25 +02:00
ysj1173886760
3b53a4f2f7 GRAPHICS: MACGUI: move titlePos into BorderOffsets 2021-04-12 14:04:25 +02:00
ysj1173886760
7f47b9f6c0 GRAPHICS: MACGUI: move border stuff into macwindowborder 2021-04-12 14:04:25 +02:00
ysj1173886760
c2353d3797 GRAPHICS: MACGUI: use lazy load to load built-in border types, add scrollbar flag to indicate whether the window has scroll bar 2021-04-12 14:04:25 +02:00
ysj1173886760
aeacf0d4d2 GRAPHICS: MACGUI: modify the position where it draws the title, currently, it will draw title at the center of title box 2021-04-12 14:04:25 +02:00
ysj1173886760
83341beddd GRAPHICS: MACGUI: modify the way that setBorderType set the border, currently, it will set all borders which is the subset of flag 2021-04-12 14:04:25 +02:00
ysj1173886760
a0964d690c GRAPHICS: MACGUI: Add border flags to the builtin border types, fix the remaining part of macgui which are not adapt to border flags. 2021-04-12 14:04:25 +02:00
ysj1173886760
858624c0c9 GRAPHICS: MACGUI: fix the bug of the border flag is not correctly initialized 2021-04-12 14:04:25 +02:00
ysj1173886760
6d7e794ed3 GRAPHICS: MACGUI: Add flag to indicate the border type, move drawTitle and drawScrollBar into macwindowborder 2021-04-12 14:04:25 +02:00
ysj1173886760
307147c565 GRAPHICS: MACGUI: use titlePos to calc titleIndex, change the titleWidth in 9-patch when title is changed 2021-04-12 14:04:25 +02:00
ysj1173886760
9298eba78d GRAPHICS: MACGUI: remove the check that is not needed 2021-04-12 14:04:25 +02:00
ysj1173886760
8894317e89 GRAPHICS: MACGUI: add titleIndex and titleWidth to macborder in order suit to 9-patch 2021-04-12 14:04:25 +02:00
Orgad Shaneh
49053f2b9b GRAPHICS: Remove unused const
Amends commit 0443d5a133.

Detected by Clang.
2021-04-10 15:29:08 +03:00
ysj1173886760
2ab965e53e GRAPHICS: MACGUI: fix the bug dumping when initializing Wage Engine 2021-04-01 16:08:56 +02:00
ysj1173886760
0dcde7c96a GRAPHICS: MACGUI: add new feature that when scroll wheel, the scroll bar will also display 2021-04-01 16:08:56 +02:00
ysj1173886760
1afc246a69 GRAPHICS: MACGUI: Added the callback function for drawing invert pixel for default palette, which is used to draw the scroll bar 2021-04-01 16:08:56 +02:00
ysj1173886760
aba96cb38f GRAPHICS: MACGUI: recalc the scrollSize and scrollPos, in order to fix scroll bar for mactextwindow 2021-04-01 16:08:56 +02:00
ysj1173886760
0443d5a133 GRAPHICS: MACGUI: remove drawSimpleBorder which draws the border manually 2021-04-01 16:08:56 +02:00
ysj1173886760
43e95f3a48 GRAPHICS: MACGUI: set palette in macwindowmanager line 41 as default a palette of MacWindowManager 2021-04-01 16:08:56 +02:00
ysj1173886760
c5481d9c02 GRAPHICS: MACGUI: modify the logic of drawInput and appendText, in order to fix the bug of cursor dislocation and incorrectly drawing the input 2021-04-01 16:08:56 +02:00
ysj1173886760
63f5de7069 GRAPHICS: MACGUI: init _textShadow at mactext constructor 2021-04-01 16:08:56 +02:00
ysj1173886760
0fdf29ca19 GRAPHICS: MACGUI: fix the bug when splitting a new line 2021-04-01 16:08:56 +02:00
ysj1173886760
db6a0fce54 GRAPHICS: MACGUI: fix the problem of incorrectly render the cursor and selected area 2021-03-27 13:05:31 +01:00
ysj1173886760
8e8219d0ea GRAPHICS: MACGUI: fix the bug when splitting a new line 2021-03-27 13:05:31 +01:00
ysj1173886760
6aea4cb68b GRAPHICS: MACGUI: fix the bug of MacTextWindow incorrectly drawing the surface 2021-03-27 13:05:31 +01:00
ysj1173886760
85ecee5cde GRAPHICS: MACGUI: fix the bug of splitString which incorrectly deal with \n and incorrect order of draw rectangles in draw function 2021-03-27 13:05:31 +01:00
ysj1173886760
3f4e072632 GRAPHICS: MACGUI: Added flag to load ScummVM wallpaper optionally 2021-03-27 13:05:31 +01:00
ysj1173886760
312788b228 GRAPHICS: MACGUI: fix the bug dumping when initializing Wage Engine 2021-03-27 13:05:31 +01:00
ysj1173886760
2b6754e187 GRAPHICS: MACGUI: fix the bug of dealing with long word in MacText
it now can deal with the word with many font
it now can deal with multi paragraph and had it`s own wrapping
empty string and sequence of \n is tested
2021-03-20 15:15:56 +01:00
Eugene Sandulenko
f8ac24d27a GRAPHICS: MACGUI: Better handling for setActiveWidget
This fixes cursor in editable text widgets.
2021-03-19 20:13:57 +01:00
Eugene Sandulenko
3dc6137b6f GRAPHICS: MACGUI: Fix crash for first cursor undrawing 2021-03-03 16:20:51 +01:00
Paul Gilbert
44d616d9c0 GRAPHICS: Compilation fixes 2021-02-26 18:20:11 -08:00
Henrik "Henke37" Andersson
2300f0a7d4 MACGUI: Use getValOrDefault 2021-02-12 00:41:23 +01:00
Cameron Cawley
c877097b49 ALL: Remove use of "" in Common::U32String constructors 2020-11-16 16:56:58 +00:00
Vladimir Serbinenko
3fc822e55c
COMMON: introduce substr for U32String (#2585)
It's safer than direct array manipulation. Replace current uses
of subsetting with substr.
2020-11-01 22:53:03 +01:00
Eugene Sandulenko
8c52f6db12 GRAPHICS: MACGUI: Reset MacWindget dirty flag on blit.
This reduces amount of unnecessary redraws.
2020-08-24 20:53:37 +02:00
Nathanael Gentry
2512ca2d5b GRAPHICS: MACGUI: Fix hex format decoding 2020-08-20 13:17:01 -04:00
Nathanael Gentry
d2a1102423 GRAPHICS: MACGUI: Fix screen copying with direct draw 2020-08-19 16:59:18 -04:00