Commit Graph

155 Commits

Author SHA1 Message Date
Garux e9459b79d8 fix .game no_patch key handling
OG behavior was to have preference to hide patch toolbar, if no_patch was set to non empty string xD
patch toolbar was shown by default anyway xD
now treat "1" as hide, anything else = show, including non set
2023-10-05 21:02:50 +06:00
Garux 4b8468fea1 fix icon name typo 2023-09-19 20:25:08 +06:00
Garux 158b724dba * support multiple Extra Resource Paths 2023-08-22 15:40:09 +06:00
Garux 39f4bdfab6 * installer of map developer's files (common shaders/textures/w/e is included in gamepack) 2023-08-18 11:51:02 +06:00
Garux e1c814f600 * "Built-In Group Dialog" layout option, embeds entity, textures etc dialog on the right of main window 2022-11-11 08:31:17 +03:00
Garux f7b9e7e482 fix nonmodal dialogs going behind main window in linux
notes:
was okay in windows
wnd position is not preserved on hiding via Close event now, requires extra handling, as in class RotateDialog or g_guiSettings (no much critical cases exist)
min max buttons aren't shown (when requested) in Ubuntu, shown in Windows; were shown for Qt::Window flag
2022-10-31 15:16:53 +03:00
Garux 6bfa626a38 fix ubuntu build, suppress spammy warning there 2022-10-27 10:30:27 +03:00
Garux 9d3d204018 Qt 2022-10-27 09:10:31 +03:00
Garux bf3f194cff * cloneSelected, cloneSelectedMakeUnique: select cloned stuff (was preserving original selected)
important for cloneSelectedMakeUnique usability and when objects order in .map matters
2021-11-24 23:49:46 +03:00
Garux ee06831f97 Optional grid color scheme to fit the Adwaita Dark GTK theme 2021-11-15 01:59:23 +03:00
Garux 522f6f907e rename cmdlib and imagelib to fix name clashes 2021-10-31 14:13:02 +03:00
Garux d812cbd4d4 replace ArrayRange by tcb::span (reproduction of std::span) 2021-10-24 08:32:10 +03:00
Garux 02a3b9c026 use ostream_write( CopiedString ) 2021-09-18 15:30:11 +03:00
Garux 2222100316 indent classes, align by spaces 2021-03-24 00:25:15 +03:00
Garux d734199601 manage path routines 2021-01-22 02:21:54 +03:00
Garux 2734cbd1e0 * ctrl + shift + z: redo alias 2021-01-05 01:40:44 +03:00
Garux f401facb4f fix main wnd splits being set before window is actually maximized/fullscreened 2020-12-30 12:51:04 +03:00
Garux 2f2140efa4 support map loading on autorestart from path with spaces 2020-12-20 17:01:23 +03:00
Garux a5be520748 swap RotateSelectionClockwise, RotateSelectionAnticlockwise toolbar buttons for visual logic "right button rotates to right" and reverse 2020-10-13 08:23:19 +03:00
Garux 35309c8c6c fix Gdk-CRITICAL **: IA__gdk_window_get_window_type: assertion 'GDK_IS_WINDOW (window)' failed 2020-06-05 23:49:04 +03:00
Garux e11341f8f6 fix Gtk-CRITICAL **: gtk_window_realize_icon: assertion 'info->icon_pixmap == NULL' failed 2020-06-05 21:03:10 +03:00
Garux 95809d79f5 use GtkToolItem in toolbars 2020-05-27 08:18:22 +03:00
Garux dac8fd48a3 gtk_timeout_add -> g_timeout_add
gtk_timeout_remove -> g_source_remove
2020-05-22 01:29:08 +03:00
Garux 0ba68e1a29 gtk_toolbar_set_orientation -> gtk_orientable_set_orientation 2020-05-22 01:16:05 +03:00
Garux 64e0c125e8 replace gtk_toolbar_append_space() 2020-05-22 01:16:02 +03:00
Garux 62603d25fb don't check equality to gboolean FALSE and TRUE 2020-05-21 16:27:31 +03:00
Garux 0140da6e72 only #include <gtk/gtk.h> 2020-05-21 16:27:17 +03:00
Garux 12263f74d1 use gtk_widget_get_window() instead of widget->window 2020-05-21 16:24:40 +03:00
Garux ff33df7d45 replace GTK_WIDGET_VISIBLE -> gtk_widget_get_visible() 2020-05-19 23:46:54 +03:00
Garux e1a145c234 remove excess (GdkModifierType) casts 2020-05-19 21:40:52 +03:00
Garux 0831e0966d Replace GDK_<keyname> with GDK_KEY_<keyname> 2020-05-19 21:15:11 +03:00
Garux 7ae79b263d minor refactoring 2020-04-28 08:30:25 +03:00
Garux 06cd1e98ff * Model Browser: default bind '/'
m1 = assign model to selected entity nodes (shift + e to select nodes of group entities)
		m1x2 = insert "misc_model" with given model
		m1 drag = rotate model
		Preferences.Model Browser: list of * separated folderToLoad/depth values, e.g. *models/mapobjects/99*maps/1*; */99* loads root
2020-04-26 07:28:23 +03:00
Garux d26669d041 try to fix MAC compilation #40 : probably more elegant 'environ' variable access 2020-04-04 21:46:39 +03:00
Garux a7de623115 try to fix MAC compilation #40 : workaround ambiguous 'environ' global variable availability 2020-04-04 21:09:36 +03:00
Thomas Debesse 66e6781c9b use Instance_isSelected() function 2020-03-03 02:00:15 +03:00
Garux 4ebfc1dcac refactor template class LatchedValue use
make m_sGameFile LatchedValue
fix odd prompt to restart after game change via global preferences dialog + OK in local preferences
sort games list alphabetically by .game file name
2019-09-07 23:04:10 +03:00
Garux 1a18246a1f * suggest to automatically restart editor on change of preferences, which require this
* suggest to restart after selected game preference change
import of https://gitlab.com/xonotic/netradiant/merge_requests/141 e2f605b12f
2019-09-06 11:22:28 +03:00
Garux 3bb51ba6b9 * fix invisible radiant with floating 3D camera window hidden in non floating layout 2019-08-30 12:30:16 +03:00
Garux 4e82cdf2f4 shorten code 2019-08-23 19:21:39 +03:00
Garux aa99f4d254 * UV Tool (edit texture alignment of selected face) modifiers:
pivot control point and lines: ctrl = snap hard to face vertices and grid
		grid density controls: shift = change density of both axes synchronously, ctrl = power of two grid
		scale lines: shift = scale axes synchronously, ctrl = snap hard to vertices
		alt + m1 on grid = skew texture (is possible alright in BP and Valve220 map formats, not in AP); ctrl = snap hard to edges
		texture move: shift = only move along the axis with the biggest move, ctrl = snap grid lines hard to vertices and pivot
		rotate: shift = rotate with step of 15 degrees, ctrl = snap hard to edges
2019-05-19 10:30:44 +03:00
Garux eff4d4224c use hardcoded opengl font names in windows only 2019-04-12 20:54:23 +03:00
Garux 502c0f8bc1 * all plugins commands are bindable
support detachable menus in submenus of plugins menus
user_shortcuts_init() and user_shortcuts_save() are moved to not the most convenient spot, as init has to happen after plugins init and before menus creation
2019-03-13 19:45:51 +03:00
Garux a1abcd8c83 * bindable commands TextureProjectAxial/Ortho/Cam, using default texdef, unlike surface inspector buttons 2019-03-08 12:52:19 +03:00
Garux 74a3da969c * ctrl + r: clone stuff and repeat recent transforms; clipper tool toggle resets transforms stack 2019-01-18 15:00:06 +03:00
Garux fb53d5094a some more sensible gui default sizes 2019-01-11 18:35:37 +03:00
Garux 9a2886e624 add build tool skeleton; does nothing, button is hidden 2018-12-10 23:01:09 +03:00
Garux 51c798fd9c * Snap to grid in a component mode: snap whole objects, if no components selected
* Snap brush/its vertices to grid: rebuild brush from snapped vertices with optional texture vertex lock
2018-12-10 21:00:33 +03:00
Garux d83d5977b7 * fix: update component modes toolbar buttons on entering clipper mode 2018-11-14 22:38:00 +03:00
Garux 2836989099 binds... * z, backspace (DeleteSelection): also delete selected components (vertices/edges/faces) of brush in a component mode 2018-10-18 20:14:29 +03:00