@@ -99,7 +99,8 @@ SUBDIRS = [
99
99
Subproject ('3rdparty/libogg' , lambda x : x .env .CLIENT and not x .env .HAVE_SYSTEM_OGG ),
100
100
Subproject ('3rdparty/vorbis' , lambda x : x .env .CLIENT and (not x .env .HAVE_SYSTEM_VORBIS or not x .env .HAVE_SYSTEM_VORBISFILE )),
101
101
Subproject ('3rdparty/opusfile' , lambda x : x .env .CLIENT and not x .env .HAVE_SYSTEM_OPUSFILE ),
102
- Subproject ('3rdparty/mainui' , lambda x : x .env .CLIENT ),
102
+ Subproject ('3rdparty/mainui' , lambda x : x .env .CLIENT and not x .env .TUI ),
103
+ Subproject ('3rdparty/maintui' , lambda x : x .env .CLIENT and x .env .TUI ),
103
104
Subproject ('3rdparty/vgui_support' , lambda x : x .env .CLIENT ),
104
105
Subproject ('3rdparty/MultiEmulator' ,lambda x : x .env .CLIENT ),
105
106
# Subproject('3rdparty/freevgui', lambda x: x.env.CLIENT),
@@ -137,6 +138,9 @@ def options(opt):
137
138
grp .add_option ('--enable-dedicated' , action = 'store_true' , dest = 'ENABLE_DEDICATED' , default = False ,
138
139
help = 'enable building Xash Dedicated Server alongside client [default: %(default)s]' )
139
140
141
+ grp .add_option ('--enable-tui' , action = 'store_true' , dest = 'ENABLE_TUI' , default = False ,
142
+ help = 'enable TUI main menu [default: %(default)s]' )
143
+
140
144
grp .add_option ('--gamedir' , action = 'store' , dest = 'GAMEDIR' , default = 'valve' ,
141
145
help = 'engine default (base) game directory [default: %(default)s]' )
142
146
@@ -415,6 +419,8 @@ def configure(conf):
415
419
conf .env .CLIENT = False
416
420
conf .env .LAUNCHER = False
417
421
422
+ conf .env .TUI = conf .options .ENABLE_TUI
423
+
418
424
conf .define_cond ('SUPPORT_HL25_EXTENDED_STRUCTS' , conf .options .SUPPORT_HL25_EXTENDED_STRUCTS )
419
425
420
426
if conf .env .SAILFISH == 'aurora' :
0 commit comments