Loading

Paste #pxp1x8dsg

  1. Index: src/table/settings.ini
  2. ===================================================================
  3. --- src/table/settings.ini  (revision 27142)
  4. +++ src/table/settings.ini  (working copy)
  5. @@ -3507,12 +3507,12 @@
  6.  
  7.  [SDTC_VAR]
  8.  ifdef    = ENABLE_NETWORK
  9. -var      = gui.network_chat_box_width
  10. +var      = gui.network_chat_box_width_pct
  11.  type     = SLE_UINT16
  12.  flags    = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
  13. -def      = 620
  14. -min      = 200
  15. -max      = 65535
  16. +def      = 40
  17. +min      = 10
  18. +max      = 100
  19.  cat      = SC_EXPERT
  20.  
  21.  [SDTC_VAR]
  22. Index: src/network/network_chat_gui.cpp
  23. ===================================================================
  24. --- src/network/network_chat_gui.cpp    (revision 27142)
  25. +++ src/network/network_chat_gui.cpp    (working copy)
  26. @@ -120,7 +120,7 @@
  27.  
  28.     _chatmsg_list        = ReallocT(_chatmsg_list, _settings_client.gui.network_chat_box_height);
  29.     _chatmsg_box.x       = 10;
  30. -   _chatmsg_box.width   = _settings_client.gui.network_chat_box_width;
  31. +   _chatmsg_box.width   = _settings_client.gui.network_chat_box_width_pct * _screen.width / 100;
  32.     NetworkReInitChatBoxSize();
  33.     _chatmessage_visible = false;
  34.  
  35. Index: src/settings_type.h
  36. ===================================================================
  37. --- src/settings_type.h (revision 27142)
  38. +++ src/settings_type.h (working copy)
  39. @@ -144,7 +144,7 @@
  40.     uint8  station_gui_sort_by;              ///< sort cargo entries in the station gui by station name or amount
  41.     uint8  station_gui_sort_order;           ///< the sort order of entries in the station gui - ascending or descending
  42.  #ifdef ENABLE_NETWORK
  43. -   uint16 network_chat_box_width;           ///< width of the chat box in pixels
  44. +   uint16 network_chat_box_width_pct;       ///< width of the chat box in pixels
  45.     uint8  network_chat_box_height;          ///< height of the chat box in lines
  46.     uint16 network_chat_timeout;             ///< timeout of chat messages in seconds
  47.  #endif
  48.  

Comments