Skip to content

Commit d55a8a7

Browse files
committed
Updating Game Menu and Options gumps to use
procedural background drawing. Removing unneeded shapes from exult.flx Also updating Gumps so they call paint on their direct parent class and do not directly call Gump::Paint
1 parent 8000019 commit d55a8a7

20 files changed

+35
-42
lines changed

Makefile.common

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -298,11 +298,6 @@ EXULT_FLX_OBJECTS := \
298298
data/sav_upup.shp \
299299
data/sav_slider.shp \
300300
data/sav_selected.shp \
301-
data/gameplayoptions.shp \
302-
data/gamemenu.shp \
303-
data/audiooptions.shp \
304-
data/videooptions.shp \
305-
data/miscoptions.shp \
306301
data/hp_bar.shp \
307302
data/sfx_icon.shp \
308303
data/mtgm.mid \
@@ -322,7 +317,8 @@ EXULT_FLX_OBJECTS := \
322317
data/exultmsg_es.txt \
323318
data/exultmsg_fr.txt \
324319
data/endfont.shp \
325-
data/transparentmenu.shp
320+
data/transparentmenu.shp \
321+
data\checkmark_background.shp
326322

327323
EXULT_BG_FLX := data/exult_bg.flx data/exult_bg_flx.h
328324
EXULT_BG_FLX_OBJECTS := \

data/Makefile.am

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ EXULT_FLX_OBJECTS = \
2020
sav_upup.shp \
2121
sav_slider.shp \
2222
sav_selected.shp \
23-
gameplayoptions.shp \
24-
gamemenu.shp \
25-
audiooptions.shp \
26-
videooptions.shp \
27-
miscoptions.shp \
2823
hp_bar.shp \
2924
sfx_icon.shp \
3025
mtgm.mid \
@@ -47,6 +42,7 @@ EXULT_FLX_OBJECTS = \
4742
endfont.shp \
4843
scroll_left.shp \
4944
scroll_right.shp \
45+
checkmark_background.shp \
5046
mixer.shp
5147

5248
EXULT_BG_FLX_OBJECTS = \

data/audiooptions.shp

-3.91 KB
Binary file not shown.

data/flx.in

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ sav_up.shp
1717
sav_upup.shp
1818
sav_slider.shp
1919
sav_selected.shp
20-
gameplayoptions.shp
21-
gamemenu.shp
22-
audiooptions.shp
23-
videooptions.shp
2420
hp_bar.shp
2521
sfx_icon.shp
2622
notebook.shp
@@ -38,7 +34,6 @@ sb_maps.shp
3834
sb_notebook.shp
3935
sb_backpack.shp
4036
transparentmenu.shp
41-
miscoptions.shp
4237
exultmsg.txt
4338
exultmsg_de.txt
4439
exultmsg_es.txt

data/gamemenu.shp

-2.23 KB
Binary file not shown.

data/gameplayoptions.shp

-3.48 KB
Binary file not shown.

data/miscoptions.shp

-3.88 KB
Binary file not shown.

data/videooptions.shp

-3.65 KB
Binary file not shown.

gumps/AudioOptions_gump.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,9 @@ void AudioOptions_gump::load_settings() {
454454
}
455455

456456
AudioOptions_gump::AudioOptions_gump()
457-
: Modal_gump(nullptr, EXULT_FLX_AUDIOOPTIONS_SHP, SF_EXULT_FLX) {
458-
set_object_area(TileRect(0, 0, 0, 0), 8, 187); //++++++ ???
457+
: Modal_gump(nullptr, -1) {
458+
SetProceduralBackground(TileRect(29, 2, 166, 186), -1);
459+
459460
const Exult_Game game = Game::get_game_type();
460461
const std::string title = Game::get_gametitle();
461462
have_config_pack = Audio::have_config_sfx(title, &configpack);

gumps/File_gump.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ int File_gump::toggle_option(Gump_button* btn // Button that was clicked.
488488
*/
489489

490490
void File_gump::paint() {
491-
Gump::paint(); // Paint background
491+
Modal_gump::paint(); // Paint background
492492
// Paint text objects.
493493
for (auto& name : names) {
494494
if (name) {

0 commit comments

Comments
 (0)