16 Commits

Author SHA1 Message Date
Kahrl
2fd897da13 Settings tab: double click opens/closes trees 2015-10-18 11:03:59 +02:00
Kahrl
470641b986 Settings tab: don't autoscroll when toggling "Show technical names" 2015-10-18 10:42:44 +02:00
Kahrl
2a385ab883 Fix GUITable selection issues with trees
- setOpenedTrees(): this internal function was calling setSelected()
  to update m_selected. Since setSelected() calls autoScroll(),
  this caused the scrollbar to scroll back to the selected row
  in some cases when that shouldn't be done.

  For example, clicking the "+" to open a tree caused autoscroll.

  Fix this by making setOpenedTrees() modify m_selected directly.

- setDynamicData(): set scrollbar position after calling
  setSelected(), not before. This avoids setSelected()'s autoscroll
  messing up the scrollbar position again.

- setSelected(): If an invisible row is selected, open all parents
  of the selected row in order to make the selected row visible.

  This fixes the issue where all the trees are closed again whenever
  you return from the setting edit dialog to the settings tab.
2015-10-17 23:57:28 +02:00
est31
dd302e0032 Use UTF-8 instead of narrow
Use wide_to_utf8 and utf8_to_wide instead of wide_to_narrow and narrow_to_wide at almost all places.
Only exceptions: test functions for narrow conversion, and chat, which is done in a separate commit.
2015-07-08 10:12:44 +02:00
Craig Robbins
0731f9ed2a Move globals from main.cpp to more sane locations
Move debug streams to log.cpp|h

Move GUI-related globals to clientlauncher

Move g_settings and g_settings_path to settings.cpp|h

Move g_menuclouds to clouds.cpp|h

Move g_profiler to profiler.cpp|h
2015-04-01 23:04:25 +10:00
Aaron Suen
e8d51554ae Clean scaling pre-filter for formspec/HUD. 2015-04-01 00:01:05 -04:00
Loic Blot
188c15c3d8 Replace std::list to std::vector into tile.cpp (m_texture_trash) and move tile.hpp to src/client/ 2015-03-05 11:59:40 +01:00
Kahrl
48276275ee Fix clipping rectangle of GUITable row highlight 2015-01-10 19:56:14 +01:00
Kahrl
93fb2c62fa Ignore some mouse events sent from scrollbar to GUITable
Fixes #1567, #1806.
2014-12-06 22:45:23 +01:00
BlockMen
efa7ad44fa Add [colorize modifier 2014-10-05 16:49:52 +02:00
sapier
e61f679750 Make scrollbar scale according to DPI and scaling factor 2014-08-16 15:30:56 +02:00
Kahrl
cdd4be36fd Make GUITable mouse wheel scrolling faster 2014-06-27 23:55:01 +02:00
Kahrl
bd7e6ac910 Handle missing tablecolumns[], fixes bug #1187 2014-06-24 02:00:29 +02:00
Kahrl
e31e7179fa GUITable typo fixes in comments 2014-06-24 01:06:24 +02:00
sapier
c2bc32f83b Fix small memory leaks on shutdown 2014-06-20 19:50:47 +02:00
Kahrl
d58f5a0878 Add formspec table 2014-01-13 18:11:08 -05:00