X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fgame%2Fg_menu.pas;h=4d2da495216be1983b5f6e38ae4454fc3f7dc6a0;hb=82108dd50fb12ef54f0cd04891901782781fe442;hp=3a6f0e7d6efb7895642f1cd3f86bf1b5522e1354;hpb=24f025e51e5faa8c8f28f6ec6614335a5977303a;p=d2df-sdl.git diff --git a/src/game/g_menu.pas b/src/game/g_menu.pas index 3a6f0e7..4d2da49 100644 --- a/src/game/g_menu.pas +++ b/src/game/g_menu.pas @@ -161,6 +161,7 @@ begin gRevertPlayers := TGUISwitch(menu.GetControl('swRevertPlayers')).ItemIndex = 0; gChatBubble := TGUISwitch(menu.GetControl('swChatBubble')).ItemIndex; gPlayerIndicator := TGUISwitch(menu.GetControl('swPlayerIndicator')).ItemIndex; + gPlayerIndicatorStyle := TGUISwitch(menu.GetControl('swPlayerIndicatorStyle')).ItemIndex; if TGUIScroll(menu.GetControl('scScaleFactor')).Value <> TempScale then begin TempScale := TGUIScroll(menu.GetControl('scScaleFactor')).Value; @@ -571,6 +572,9 @@ begin with TGUISwitch(menu.GetControl('swPlayerIndicator')) do ItemIndex := gPlayerIndicator; + with TGUISwitch(menu.GetControl('swPlayerIndicatorStyle')) do + ItemIndex := gPlayerIndicatorStyle; + TempScale := Round(g_dbg_scale - 1); TGUIScroll(menu.GetControl('scScaleFactor')).Value := TempScale; @@ -2784,6 +2788,12 @@ begin AddItem(_lc[I_MENU_GAME_INDICATOR_OWN]); AddItem(_lc[I_MENU_GAME_INDICATOR_ALL]); end; + with AddSwitch(_lc[I_MENU_GAME_INDICATOR_STYLE]) do + begin + Name := 'swPlayerIndicatorStyle'; + AddItem(_lc[I_MENU_GAME_INDICATOR_ARROW]); + AddItem(_lc[I_MENU_GAME_INDICATOR_NAME]); + end; with AddScroll(_lc[I_MENU_GAME_SCALE_FACTOR]) do begin Name := 'scScaleFactor';