X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_options.pas;h=91b0a05bb755c9f87762b127ec68ffedd0cfb2e7;hb=83221a8d1b958465bd68e3c79575f4a94c8ffa42;hp=ecc30f9b7606d64e9dec8b22579d5609d9d84944;hpb=b9615dc5473b0eadac9f3298714b440ff406d322;p=d2df-sdl.git diff --git a/src/game/g_options.pas b/src/game/g_options.pas index ecc30f9..91b0a05 100644 --- a/src/game/g_options.pas +++ b/src/game/g_options.pas @@ -77,16 +77,58 @@ var gsItemRespawnTime: Word = 60; gsWarmupTime: Word = 30; +{$IFDEF HEADLESS} + e_NoGraphics: Boolean = True; +{$ELSE} + e_NoGraphics: Boolean = False; +{$ENDIF} + e_FastScreenshots: Boolean = true; // it's REALLY SLOW with `false` + g_dbg_scale: Single = 1.0; + r_pixel_scale: Single = 1.0; + + gwin_has_stencil: Boolean = false; + gwin_k8_enable_light_experiments: Boolean = false; + g_dbg_aimline_on: Boolean = false; + g_dbg_input: Boolean = False; + + var (* touch *) + g_touch_enabled: Boolean = False; + g_touch_size: Single = 1.0; + g_touch_offset: Single = 50.0; + g_touch_fire: Boolean = True; + g_touch_alt: Boolean = False; + + {--- Read-only dirs ---} + GameWAD: string; + DataDirs: SSArray; + ModelDirs: SSArray; + MegawadDirs: SSArray; + MapDirs: SSArray; + WadDirs: SSArray; + AllMapDirs: SSArray; // Maps + Megawads + + {--- Read-Write dirs ---} + LogFileName: string; + LogDirs: SSArray; + SaveDirs: SSArray; + CacheDirs: SSArray; + ConfigDirs: SSArray; + ScreenshotDirs: SSArray; + StatsDirs: SSArray; + MapDownloadDirs: SSArray; + WadDownloadDirs: SSArray; + + GameWADName: string = 'GAME'; + implementation uses - {$INCLUDE ../nogl/noGLuses.inc} {$IFDEF USE_SDL2} SDL2, {$ENDIF} - e_log, e_input, g_console, g_window, g_sound, g_gfx, g_player, Math, - g_map, g_net, g_netmaster, SysUtils, CONFIG, g_game, g_main, e_texture, - g_items, wadreader, e_graphics, g_touch, envvars, g_system; + e_log, e_input, g_console, g_sound, g_gfx, g_player, Math, + g_map, g_net, g_netmaster, SysUtils, CONFIG, g_game, + g_items, wadreader, envvars; var machine: Integer; @@ -270,7 +312,8 @@ begin gsSpawnInvul := 0; gsItemRespawnTime := 60; gsGameFlags := GAME_OPTION_ALLOWEXIT or GAME_OPTION_DMKEYS or - GAME_OPTION_BOTVSPLAYER or GAME_OPTION_BOTVSMONSTER; + GAME_OPTION_BOTVSPLAYER or GAME_OPTION_BOTVSMONSTER or + GAME_OPTION_TEAMHITTRACE or GAME_OPTION_TEAMHITPROJECTILE; gsPlayers := 1; (* section MasterServer *) @@ -331,6 +374,8 @@ initialization conRegVar('r_texfilter', @gTextureFilter, '', ''); conRegVar('r_npot', @glNPOTOverride, '', ''); conRegVar('r_interp', @gLerpActors, '', 'interpolate actors'); + conRegVar('r_scale', @g_dbg_scale, 0.01, 100.0, 'render scale', '', false); + conRegVar('r_resolution_scale', @r_pixel_scale, 0.01, 100.0, 'upscale factor', '', false); (* Sound *) conRegVar('s_nosound', @gNoSound, '', ''); @@ -364,4 +409,13 @@ initialization conRegVar('g_save_stats', @gSaveStats, '', ''); conRegVar('g_screenshot_stats', @gScreenshotStats, '', ''); conRegVar('g_lastmap', @gsMap, '', ''); + + conRegVar('d_input', @g_dbg_input, '', ''); + + (* touch *) + conRegVar('touch_enable', @g_touch_enabled, 'enable/disable virtual buttons', 'draw buttons'); + conRegVar('touch_fire', @g_touch_fire, 'enable/disable fire when press virtual up/down', 'fire when press up/down'); + conRegVar('touch_size', @g_touch_size, 0.1, 10, 'size of virtual buttons', 'button size'); + conRegVar('touch_offset', @g_touch_offset, 0, 100, '', ''); + conRegVar('touch_alt', @g_touch_alt, 'althernative virtual buttons layout', 'althernative layout'); end.